Archive for January, 2008

Saving Jpeg images with any compression ratio

Adjusting the compression for jpeg images is not as simple as you might hope in .NET. Here’s a snippet to get the job done in VBUsing the code is strait forward, just call like this: [code language=vb] SaveJpeg(destPath, img, 50) The work is done by the following 2 functions, read comments in code for explanaition. [...]

More »

How to create a Google-adsense-style banner script

I’ve had Google adsense ads on my site for some time now. Putting the ads on your site is really easy. Just get a few lines of javascript from Google, paste it in your web page and you’re good to go. So what does it take to create something similar for your own banners?What the [...]

More »

Reusing an old LCD panel

I recently got my hands on an old broken laptop. The LCD screen however is still okay. Now, wouldn’t it be cool to reuse the old LCD panel? Just hook up a VGA connector and we’re ready to run, I thought… Turns out it’s not that simple.The thing is, VGA uses an analogue signal, and [...]

More »

XML and the explosion of content

In the good ol’ days, saving settings was usually done using a plain text file, or maybe an ini-file. Nowadays XML is the way to go. And although XML has many advantages over plain text, size is not one of them.[code language=xml] Elmer, Sales [Person] Name = Elmer Department = Sales Elmer Sales Elmer Sales [...]

More »

Archive

More »