Thursday, May 31, 2012

VB. NET DAY function. 'Day' is a type and cannot be used as an expression.

The day function to retrieve the day part from a DATE data type is a very common function in VB.NET
usually I will use DAY(now) to retrieve the day part. which return 1 to 31 normally.


It is working well for all my ASP.NET project until recently I started a VB.NET project because I need to synchronize a local DB using HTTP to my server. Which I need a stand alone application for the local user to help me CLICK a button to sync some data. and further improve it to becomes a automated windows service. But before that you will get an error message 
'Day' is a type and cannot be used as an expression.


I was like WTF with this VB.NET, everything should be the same as ASP.NET
it is really a frustration to look around for solution.

So the only thing you need to do is to import that DAMN visual basic reference

Imports Microsoft.VisualBasic.DateAndTime


everything will go fine after that, I guess this import is a "DEFAULT" import for ASP.NET
VB.NET  application or VB.NET services do not have this default setting.



Thursday, May 17, 2012

My guitar performance from youtube

I didn't know it hit 15k view.. perhaps I should start practicing my guitar again!


Tuesday, May 1, 2012

Time flies.. Internet speed increases

Just some thoughts when today I am clearing up my gmail. I saw some post which is 2006. I do believe that time we already had broadband, that's why we are able to send attachment which is 3MB+ if not usually we will not be doing that for if this was year back at 2000.

I remember when I started to use internet, it was just 33.6 kbps. We still have to use some dial up 1515 for TMnet and Jaring for 1511. I remember even earlier. Jaring has some other 03- xxxx number. Per minute usage is about 1.5 cents + 1 cents internet access fees. I use to play online game such as quake and etc at 56kbps that time. Our ping is like 100+ but we still be able to play it really well and enjoy the game. At the same time, I play Shattered Galaxy which is another MMORTS which exists till today in 2.5 D Yet people never leave that game.

In 56kbps era, when we need to download a mp3 file it tooks us at least 10 minutes to finish. When broadband comes into our live, we have 384kps,512kps and also 1.0 mbps. That's the time we feel that technology and communication really bridges us one head further. downloading songs not longer an issues, and we go for downloading movies and games and so on. Very soon our telco introduce 3G which has 384kpbs bandwidth. In 2006, I believe the 3G PCMCIA card costs about RM 1.7k. I use it for years and finally they have upgraded to 1.2 Mbps then later to 1.8Mbps ,3.6 and recently 7.2 Mbps

Well, 3 years back fiber optics are introduced using the technology of GEPON, which allows Fiber to Home not a dream anymore. People can enjoy internet speed of 10Mbps++ till 50Mbps and even beyond to 100Mbps as some claim. And very soon 4G (ITU) not those fake 4G, that can also reach 100MBps.

time flies, thinking back how things works, how human technology has benefit us really amaze me.