Archive for the ‘Coding’ Category.

PD1001 Webcam on Hardy Heron

I have an old webcam (Creative PD1001) which is not officially supported on Linux. Fortunately, Endpoints EPCAM USB Camera Driver is known to work with PD1001 on many Linux distros. Continue reading ‘PD1001 Webcam on Hardy Heron’ »

SQL Injection Attacks Still Common

Once a while, I would comb through my server logs to see i there is any unusual activities. Among all types of "attacks" that I could identify within my server logs, It seems that SQL injection attacks are still the most common type of attack. Continue reading ‘SQL Injection Attacks Still Common’ »

TIFF Merge/Split Utility EncoderValue

A While ago, I created a TIFF Merge and Split Utility that can be used to merge multiple TIFF files into a single file or split a multi-frame TIFF file into multiple single-frame TIFF files. Continue reading ‘TIFF Merge/Split Utility EncoderValue’ »

TBB Mandelbrot Set

In an earlier post, I created a simple prime finding program using Intel’s TBB (Thread Building Block). The main benefit of using TBB is that threading and thread synchronization mechanism are abstracted away within the TBB library so we do not need to deal with threads explicitly. Also, TBB is optimized for performance and scales nicely as the number of processing unit increases. Continue reading ‘TBB Mandelbrot Set’ »

An Obscure System.Web.Mail Error Message

Today I encountered a rather obscure error while maintaining some old ASP.Net code (Framework 1.1). Continue reading ‘An Obscure System.Web.Mail Error Message’ »

Producer-Consumer: A Duplicate File Finder

Processes tend to benefit greatly from multi-core processors if they are CPU bound (i.e. computational intensive tasks). The actual speedup depends on the portion of the code that must remain sequential. Continue reading ‘Producer-Consumer: A Duplicate File Finder’ »

Extending the GridView — Part IV

In the previous three posts(I, II, III), I showed you how to inherit from GridView control to create an extended control that can bind to a generic list of objects. In this final post of the series, I will show you a simple example to illustrate how to use the GridViewEx control. Continue reading ‘Extending the GridView — Part IV’ »

Extending the GridView — Part III

In Part II, I showed you how to extend the GridView control so that we can bind a generic list to it. Because GridViewEx inherits from GridView, it has all the functionalities GridView has (i.e. paging). Sometimes, it is desirable to change the number of items displayed on a page dynamically, to accommodate this, we will create a GridViewPager control (ascx). Continue reading ‘Extending the GridView — Part III’ »

Extending the GridView — Part II

In Part I, I talked about why we needed to extend the GridView and some of the benefit in doing that. In this post, I will discuss how to extend the standard GridView control to take advantage of binding to the type safe value objects mentioned previously. Continue reading ‘Extending the GridView — Part II’ »

On Windows Vista UAC

It seems that a lot of people do not like Windows Vista UAC’s. While UAC looks and feels a lot like sudo in Debian Linux (e.g. Ubuntu), it behaves quite differently than sudo. Continue reading ‘On Windows Vista UAC’ »

Extending the GridView — Part I

Most business applications require presenting result sets to the end users in the form of some kind of grid views. Continue reading ‘Extending the GridView — Part I’ »

Malware that Disguises as Antivirus Software

The techniques malware writers use nowadays are becoming more and more sophisticated. The last time I spotted a malware was almost two years ago. At that time, a page that I was visiting contained a JPEG image that was exploit by a zero-day vulnerability. Continue reading ‘Malware that Disguises as Antivirus Software’ »

A Simple TBB Program: TBB Prime

I have been playing around with Intel’s Threading Building Block for a while and have started to really appreciate its simplicity and elegance: Instead of thinking in threads and thread synchronizations, one can just simply concentrate on the problem on the hand. Continue reading ‘A Simple TBB Program: TBB Prime’ »

A Line of Code Could Bring Visual Studio .Net Down to Its Knees

It seems at least to me that as more bells and whistles were added to each new release of Microsoft’s products, the qualities of which have been deteriorating. Continue reading ‘A Line of Code Could Bring Visual Studio .Net Down to Its Knees’ »

Develop TBB Using KDevelop and Code::Blocks

I have been playing around with Intel’s open source TBB (Threading Building Block) recently. Continue reading ‘Develop TBB Using KDevelop and Code::Blocks’ »