Posts

Showing posts from March, 2007

Fighting for the World's Smallest Website

Image
Did you ever noticed that there is some webmasters are fighting for the title of World's Smallest Website ? The first website I know doing this is guimp.com where it is only 18x18 pixels in size which is smaller than a small fingernail. But yet it have all the functionality to be voted as qualified website where it have site navigation, and even packed full of fun projects including pong, pacman, space invaders, pinball, a blog and pixel art. Then I started googling around to find whether this is the one and only smallest website in the world but no... There is other websites with smaller size and have the equal functions too. You can check it out for yourself. The sites that I have found with this intention to be the Smallest Website are: http://www.guimp.com - 18 x 18 pixels http://dot16.pixeltemple.com - 16 x 16 pixels http://www.coolornot.com/ - 15 x 17 pixels http://www.121pixels.tk - 11 x 11 pixels So, if you found something like this and I didn't list it here, plea

My Cheat Code to Create Properties in VB6

Image
Did you ever feel lazy to type the same code with a small modification but it is every where. And doing the same work repeatedly for let say 34 times? I will feel like my hand got the RSI (Repetitive Strain Injury). The most common task that I encounter this situation is when creating a set of properties for any classes. As the time goes I discover a cheap cheat code to reduce my coding work and let some script do my repeated work for me... Here is my code to create a set of 17 properties in a class... Public Sub MakePropCode() Dim vsProp Dim vlProp Dim vbProp Dim i As Long Dim sOutPut As String ' array of string properties vsProp = Array("ISNFolder", "ISDFolder", "CSVFolder", _ "DBHost", "DBUser", "DBPassword", _ "RDBHost", "RDBUser", "RDBPassword", _ "LogPath", "DRSMHost", "DRSMID", "

How to Flip Your Visual Basic Form in another Form

Image
I recently joined myLot forum . It is a paid to post forum introduced by my friend. Hah! Hah! I'm thinking about making money while hanging around the net with friends. Isn't that great? You can get money if you start a good discussion and even get money when responding in discussion in a good manners. The good thing is myLot can pay me via PayPal or e-Gold. So, if you are interested too, then you can simply join the myLot forum for free by clicking here and then click on sign up. Ups, back to the topic. While browsing the forum, I found a Visual Basic question about how to flip the content of the VB form . So, I decided to help him and make this simple step by step code. OK lets make it simple because I also hate to type a lot . We are using VB6 to create this small project. So, make sure you have VB6 installed to follow this steps. Step 1: Open up VB6 and create new project using 'Standard EXE' . Step 2: Add one CommandButton (we will use this to trigger the f

How to Add XP Visual Style to your Visual Basic Application

Image
Recently, I got some friends asking me about how can they add Windows XP visual style on their Visual Basic application. Why can't you get the XP style look when you run or compile your Visual Basic application anyway? For your information, the Windows XP Visual Styles are provided by ComCtl32.dll version 6 or later. The ComCtl32 does not apply the latest styles to the client area of an application by default. So, in order to enable it, you need to ensure that your application is linked to the new ComCtl32.dll by calling the ComCtl's InitCommonControls API call. And then, you also need to provide a Manifest file which specifies that the new version of the control styles should be used. To make this short. All you need to add to your code is this lines of codes on a module... Private Type tagInitCommonControlsEx lSize As Long lICC As Long End Type Private Declare Function InitCommonControlsEx Lib "comctl32.dll" _ (iccex As tagInitCommonControlsEx) As B

What the heck about the Pentium?

Image
Hoh! Hoh!... I recently got back my old unused Pentium III PC from my big brother, Arlong . He borrowed the PC since I bought my Hewlett Packard Notebook . Then, I'm thinking about upgrading this PC to do my 'underground project' Heheh!... I'm thinking about getting a new Pentium Dual Core processor and a big RAM for it. So, I surely have to change the motherboard. Hmm... This PC reminds me about my good old programming day while I'm studying at UTM-EDI . Sitting at my desk with my big DIY speakers (according to my brother, the power supply for the power amp have blown)... And I still remember the day that I really enjoyed Weird Al Yankovic songs... Win95 sucks and so on... Owh!... for those whe haven't heard about Weird Al Yankovic , I still have the lyrics and recently I found the Video clip of his good old song called 'It's All About The Pentiums' ... Enjoy, and have fun! Here's the lyrics... Weird Al Yankovic - It's All About

Database Development: GUIDs or IDs as Primary Key?

Image
I got quite busy so I didn't have enough time to post in this blog. Currently, I'm coding for another monitoring system device that will work in parallel with my last visual basic development on vibration monitoring . Today, I'm dealing with MySQL database that will keep all the measurement data will be updated in real time. Something that I found on my reader today catch my interest where Jeff Atwood wrote about wether to use IDs or GUIDs for database primary keys. Before you're asking me. GUID or Globally Unique Identifier is a pseudo-random number used in software applications. The difference between normal IDs that usually in form of auto increment integer value... ID Value -- ----- 1 Visual Basic Programming 2 Visual C++ Programming 3 VB .NET Programming 4 C# .NET Programming 5 Java Programming and GUID keys which most commonly written in text as a sequence of hexadecimal digits... ID Value --------------------------

The Next Generation's Baby

Image
Today's kid are born with computer around them. It is easier to tell kid about computer than their parents. Lately, I'm trying to do some java web application .