Tuesday, December 28, 2004

ang tibay ng nokia 3200(with camera)

nakapila ako sa enteng kabisote sa glorietta last sunday. yung isang nakapila nalaglag yung cellphone nya mula sa second floor, sira-sira yung casing. pero gumagana pa rin yung cellphone, pati yung camera. ang tibay :-)

atsaka buti na lang kamo walang nalaglagan sa ulo nung cellphone.

Thursday, December 23, 2004

pumunta ng pangasinan

nagdeploy ng program sa branch ng jamaica sa may alaminos pangasinan kahapon wednesday, cash na rin ang ibinayad nila. kanina naman kinuha ko dun sa sucat yung cheque, may withholding tax daw yung ni-charge ko, ang gulang talaga ng accountant na yun ng kliyente kong yun. binawasan pa ng dalawang libo yung singil ko sa kanila.

ang hirap talaga ng freelance, pina-patsy ka na once na singilan na. pero nakaka-comply naman ako lagi sa mga requested features nila sa program. susunod nga maghi-hire ako ng taga-singil, para hindi na ako ang direktang maniningil sa kliyente, account manager nga ba tawag dun. susunod itutuloy ko na gamitin yung company name ko. para mas business-like ang programming business ko sa kanila. hindi yung laging ni-ba-bargain nila ako.

next week sa naga bicol naman.

Friday, December 17, 2004

AllAPI.net - Your #1 source for using API-functions in Visual Basic!

AllAPI.net - Your #1 source for using API-functions in Visual Basic!

Programmer's Corner - Prevent multiple instances of your application from running Source Code Sample

Programmer's Corner - Prevent multiple instances of your application from running Source Code Sample

Option Explicit

Private Declare Function ShowWindow Lib "User32" (ByVal hWnd As Long, ByVal nCmdShow As Long) As Long
Private Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" _
(ByVal lpClassName As Any, ByVal lpWindowName As Any) As Long
Private Const SW_SHOWMAXIMIZED = 3

Private Sub Form_Load()
'What: Find a previous instance of an app, and maximize it.
'Who: Eric D. Burdo, Sean Solo
'When: 6/28/2000 8:35

Dim hWnd As Long
Dim sTitle As String

If App.PrevInstance Then 'Is there a previous instance?
sTitle = Caption 'Store the current caption of this form
Caption = "Test ABC" 'Change the caption to something else
hWnd = FindWindow(0&, "Test 123") 'Find the window
If hWnd = 0 Then 'If the window is not found
Exit Sub '>>>>>>>>>>>> Something is wrong, so leave
Else 'Otherwise
AppActivate sTitle 'Activate the program
ShowWindow hWnd, SW_SHOWMAXIMIZED 'And maximize the window
End If
Unload frmMain 'Unload this form (ends the program)
End If
End Sub

detects if other app grab the focus

13th month bonus(or pay)

airfagev - Home of Proud Pinoy Smartphone Users

Category: Off-Topic/For Fun
Subject: 13th Month Bonus? Is it really a bonus? Please read
Posted on 12/10/2004 11:32:43 AM

Note:
I received this email from a friend last year. Just thought of sharing this to those who don't know it yet. Merry Christmas!

------

Why is there a 13th month bonus when its really isn't a bonus? The mystery is finally revealed!

When the British were in Singapore, they were being paid weekly & they argued that Singaporeans were actually being cheated into believing that the 13th month pay is a bonus.

Singaporeans are being paid monthly which is equivalent to 4 weeks pay coz there are 4 weeks in a month.

As the British were paid weekly, it worked out to the same.

You see, there are 7 days in a week. 4 weeks in a month. 12 months in a year. Then 12 months should work out to 48 weeks only.

But 1 year worked out to 52 weeks!!! Hence the 13th month is your own pay not bonus!! .

So, the British argued that there is in fact no bonus at all.
It is a very simple calculation that stunned many!!!!

Thursday, December 16, 2004

Call .NET ASMX from ASP

Call .NET ASMX from ASP:

Call .NET ASMX from ASP
Let's say you have an ASMX webservice written in C# or VB.NET or some other .NET language, and you want to call it from an ASP page written in VBScript.

There are a couple of ways to do this.

Use the MS Soap Toolkit.
http://www.microsoft.com/downloads/details.aspx?FamilyId=C943C0DD-CEEC-4088-9753-86F052EC8450&displaylang=en

But as the download page states, this toolkit will be retired in April 2005. This means Microsoft will no longer support its use. This would mean, for example, that if a security bug were found in the toolkit after April 2005, Microsoft would not be bound to correct it and issue a patch. Because of this, most developers are not writing new code on the SOAP Toolkit.

Write a client of the webservice in C# (or VB.NET) and have that *client* expose a COM interface. You would do this with tlbexp.exe and follow along the guidelines for COM--to-.NET interop. In this case the ASP page would call the COM component, which would then act as the client to the webservice.
http://msdn.microsoft.com/library/en-us/vbcn7/html/vaconIntroductionToCOMInteroperability.asp

If the webservice is simple, then you may be able to use MSXML to make the call. Here is an example.
http://cheeso.members.winisp.net/srcview.aspx?dir=web-services&file=Soap-v4.js

and here's an article covering that technique:
http://www.eggheadcafe.com/articles/20001006.asp

Use an alternative SOAP toolkit for COM-based environments (like VBScript). PocketSOAP is one.
http://www.pocketsoap.com/pocketsoap/

Are there other ways to do this?


-Dino


posted on Monday, November 22, 2004 11:21 AM
Comments
# re: Call .NET ASMX from VBScript
ptau
Posted @ 11/22/2004 12:21 PM
yes, try webservice.htc (http://msdn.microsoft.com/library/default.asp?url=/workshop/author/webservice/webservice.asp)
this's realy cool thing ;)
# re: WebService behavior
Dino
Posted @ 11/22/2004 3:30 PM
According to http://msdn.microsoft.com/workshop/author/behaviors/behaviors_node_entry.asp

...the webservice behavior enables client-side script to invoke remote methods exposed by Web Services, or other Web servers, that support the SOAP and Web Services Description Language (WSDL) 1.1.

Client-side script, not server-side script.
So yes, this gives you the ability to invoke a webservice, but not really from server-side ASP.

I have updated the title on this post accordingly. The original title was "Call .NET ASMX from VBScript" and now it is "Call .NET ASMX from ASP" .


# re: re: WebService behavior
ptau
Posted @ 11/22/2004 4:10 PM
yes, webservice behavior is a client-side technics. but if you take a closer look at this webservice.htc source (jscript with some xml meta declarations) you'll find a complete set of soap/webservice operations (much more complete than at link #3 in original post). the only action needed is replacement of the client-side call (XMLHttp) to its server-side equivalent.

client negotiation

nkipag-usap s dati ko kliyente na taasan ng konti yung ibabayad sa bawat branch deployment. ayaw pa pumayag ng una. pero napapayag ko rin sa huli. ang hirap pag direktang software engineer ang kausap nila. magpapaliwanag pa ako kung bakit ganun ang presyo. there is too much drudgery sa pagpapaliwanag, mag-hire n lng kaya ako ng account manager, para di na ako ang direktang naniningil.

Wednesday, December 15, 2004

Slashdot | Linux Has Fewer Bugs Than Rivals

Slashdot | Linux Has Fewer Bugs Than Rivals: Re:20-30 bugs per 1000 lines??? (Score:5, Interesting)
by Iphtashu Fitz (263795) on Tuesday December 14, @10:07AM (#11081334)
I'm gonna call bullshit on this figure.

Keep in mind that you need to know the definition of a bug. It's not necessarially what you think it might be, but what the researchers defined. By their definition a condition that could never occur could be considered to be a bug. For example:

int foo ()
{
if (0)
return;

do_something();

return (0);
}

This overly-simple example could be considered to be a bug. If the condition is ever true the function will return an undefined value, but the condition will never be true so you couldn't possibly return an undefined value. It's not at all uncommon to find code with similar logic scattered throughout - improperly defined loops, conditionals, etc. could result in theoretical bugs that no path of execution can actually get to.

Then there are the kinds of bugs that only occur in extremly specific situations. About 13 years ago I had to track down a bug that caused a report package to crash. It took me a while to figure it out but eventually I did. The program would crash only on specific days. It'd only crash on Wednesdays. It'd only crash on certian Wednesdays - Wednesdays in September. Even more specifically, usually only the 3rd or 4th Wednesday in September.

The bug was that whoever wrote the code that printed a header on the reports was extremely anal about memory usage. He calculated exactly how many characters it would take for a buffer to hold the full date. The problem was he miscalculated by 1 character. With "Wednesday" being the longest day spelled out and "September" being the longest month, a 2 digit date (eg. Wednesday September 23) meant that the full date string would overflow the buffer by 1 character. This kind of bug wouldn't show up very often - only a few times a year - but it was a pretty nasty one when it did.

Monday, December 13, 2004

FIFO

sabado bumili ako ng pang-gi-gift sm, libre gift wrap s sm. yung may bayad 15 to 35 ang service charge. pumila ako dun s libre ng 11:30am, na-giftwrap yung gift ko 1pm na.

nanakit ang tuhod ko s pagpila at pagtayo.

heheh! yan kasi ang hilig sa libre :D

Friday, December 10, 2004

Firebird Development: .NET Providers

Firebird Development: .NET Providers

Wednesday, December 08, 2004

solution for Auto-attach to process '[360] aspnet_wp.exe' on machine failed

.NET 247 : Unable to debug after installing VS2005 on microsoft.public.vsnet.debugging: "Auto-attach to process '[360] aspnet_wp.exe' on machine"


Installing the Visual Studio 2005 Beta would configure IIS to use the v2.0
.NET Framework, it would cause that Visual Studio.NET 2003 cannot debug
against the new version.

Do you have tried the following resolution to configured IIS using the v1.1
.NET Framework again::

Open a command prompt and navigated to the 2.0 .NET Framework folder:
C:\Windows\Microsoft.NET\Framework\v2.0.*

Then run the following command to remove the 2.0 mappings from IIS:
ASPNET_RegIIS.exe -u

After this we navigated to the 1.1 .NET Framework folder:
C:\Windows\Microsoft.NET\Framework\v1.1.4322

Run the following command to configure IIS to use the 1.1 .NET Framework
ASPNET_RegIIS -i

may nagpapagawa sa akin ng thesis

asp.net, c#, interbase yung database. ang pinagagawa friendster-like na website

ang problema bukas kailangan na yung program, ngayon lng binanggit :-)

Tuesday, December 07, 2004

An illustrated Guide to CPU improvements

An illustrated Guide to CPU improvements

Monday, December 06, 2004

Window Shopping Megamall

ang ganda na ng mga computer stores s megamall, magkakasama na and andaling libutin. bale cyberzone nasa 5th floor.

Saturday, December 04, 2004

friendship and distance

there's no distance between two friends, cause love gives wing to the heart

Friday, December 03, 2004

nagdemo kami s mga japanese programmers ng honda

nagdemo kmi ng program namin, pos, inventory, billing system s mga japanese programmers.

bumilib yata s program namin laluna dun sa real-time and fast yung actual qty ng program namin :-)

18,000 yung items, under-the-hood yung actual qty hindi namin ni-quequery yon. populated by trigger yata yung qty summary nung program namin! kaya mabilis :-)