Flex: Storing custom user strings in controls

Few days back while I was programming on Flex this cool problem came through. Problem was that I created buttons dynamically in the code based on some parameters passed to the function. These parameters would decide the label, id and color of the button. In addition to this there was an information called category which [...]

Desktop Twitter – twitter out of the browser

Desktop Twitter is an Adobe AIR desktop application written in Flex (Actionscript) which I wrote up few days back. It is an attempt to bring the twitter experience out of the browser. Current version of the application that am giving out so it contains minimal features. A screenshot is shown at left. Twitter Rest APIs [...]

Extracting full path while uploading a file to server in Flex

In my free prototyping time I decided writing a simple uploader in AIR (what else?). I could create a working application in minutes using FileReference class and its method browse() (for opening a File Selection Dialog) and upload() method to upload the file.
But something looked odd. I wished to show the user the filepath he [...]

A generic binary search implementation in C – thoughts

Wish you a very happy new year!
This is an attempt to discuss a problem I’ve come across. Some common things that I would like to suggest people going for computer science interviews are -

listen to the question with full concentration on every word; avoid wandering for the similar questions that your friend discussed this morning
do [...]

tweaks in C

What does following code mean ?

scanf(“%[^a]“,dummy);

It means that continue accepting a string before you encounter the character ‘a’. This can be used to input a string containing white space characters by putting ‘\n’ as the character where to stop.

IO redirection on shell

A simple question: When do we use ‘>’ or ‘<’ and when do we use ‘|’ (i.e. pipe) for redirection of I/O ?
A simpler answer:
When we have to redirect to/from a file then ‘>’ or ‘<’ is used and when we have to redirect to/from a program then ‘|’ is used.

A good C problem

There are numbers from 1 to N in an array. out of these, one of the number gets duplicated and one is missing. The task is to write a program to find out the duplicate number. Conditions: you have to do it in O(n) time without using any auxilary space (array, bitsets, maps etc..)
I tried [...]

long time no see :)

Yes, long time. But I have excuses with me. I was ill and after the recovery, had loads of work. really. Now when I am eased from my work, I can blog !!
Just to tell you something about what all happened in this *long* time :-

I suffered from minor ‘dengue’. Dengue is a viral fever [...]

Hello world!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!