November 9, 2010, 3:30 pm
When working with micro-controller projects, it is often necessary to perform calculations in binary and hexadecimal forms. While almost all calculator tools (such as calc under Windows and gcalctool in Linux) can handle such tasks, they are designed for general purpose calculations and not geared specifically towards working with digital circuits. Continue reading ‘Hex/Bin/Dec Converter And Calculator’ »
August 19, 2010, 7:37 pm
One of my recent projects was to build a POV display device. There are already many microcontroller based POV devices out there, but most of those I have seen use around eight LEDs and have fixed font types. So I thought of developing something that is larger (e.g. using more LEDs) and more flexible (e.g. can display both text and images). Continue reading ‘POV And POV Image Encoder’ »
November 27, 2009, 9:03 pm
Sometimes a group of concurrently running threads may need to rendezvous at a certain point in time before they can further proceed. This situation commonly arises in areas like event simulation, where the events are synchronized via a clock event (see illustration below): Continue reading ‘A Simple Thread Barrier Implementation’ »
July 22, 2009, 12:00 am
I am running Ubuntu 9.04 64bit. One thing I noticed is that the integrated debugger is behaving quite flaky for the included Monodevelop 2.0 package. After some research, it turned out that a lot of people are having similar issues. Continue reading ‘Monodevelop on Ubuntu 9.04’ »
July 14, 2009, 9:55 pm
Even though multi-core processors are almost ubiquitous nowadays, applications are slow to catch up. Of course, one could always re-write the applications in order to take the full advantages in a multi-core environment. But it is not an easy undertaking. Continue reading ‘Poor Man’s Parallel Task Dispatcher’ »
December 22, 2008, 8:37 pm
In my previous post, I discussed how to merge and split a two level tree. Before moving on to discuss its applications, let us take a look at the output of the sample program I gave before. Continue reading ‘Two Level Tree and Its Applications — II’ »
December 21, 2008, 10:19 pm
A two level tree is a simple tree data structure. Unlike in a typical tree where the tree depths could be arbitrary, a two level tree has only two levels as its name suggests. Two level tree is also equivalent to a star. Continue reading ‘Two Level Tree and Its Applications — I’ »
September 9, 2008, 9:08 pm
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’ »
September 5, 2008, 9:08 pm
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’ »
August 17, 2008, 10:56 pm
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’ »
August 16, 2008, 8:04 pm
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’ »
August 15, 2008, 8:10 pm
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’ »
August 8, 2008, 8:41 pm
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’ »
June 6, 2008, 9:41 pm
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’ »
May 25, 2008, 9:47 pm
When exceptions occur during the execution of an application, the stack trace contains the detailed location of where the exception is originated. Continue reading ‘Event Logging Using Reflection’ »