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...
View ArticleExtracting 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...
View ArticleDesktop 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...
View ArticleFlex: 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...
View ArticleStarting with Haskell
Few days back I started learning Haskell, a purely functional programming language. A functional programming language has a different paradigm altogether from the so called imperative languages (C,...
View ArticleSet comprehensions in Haskell
Remember “Set comprehensions” in Mathematics? Being of mathematical nature Haskell provides the same kind of programming touch feel. It has a notion of list comprehensions i.e. you define a set of...
View ArticleQuick Sort – Poster boy for Haskell’s Elegance
Finally I reached to write Quick Sort code in Haskell. This code generally requires ~ 10-12 LOC in imperative languages (I implemented last in C & Perl). In Haskell (and not surprisingly) it is...
View ArticleTower of Hanoi in Haskell
Before moving into Types in Haskell which is one big chapter in this book I am following I thought of having some more familiarization with the language. How about solving Tower of Hanoi problem...
View ArticleRubular
Writing correct Regular Expressions have always been a tough game for me. Just came across this nice site called Rubular where you can make and test your regular expressions (and may be with practice...
View ArticlePython Error “TypeError ‘float’ object not callable”
If you see this error in python: TypeError ‘float’ object not callable It seems that you are trying to call a method or function and a property or variable with the same name is available in the...
View ArticleUnderstanding unicode in python and writing text in devanagri script
This Unicode HOWTO by Python Software Foundation is a short but informative read about Unicode handling in python. Understanding the brief history of characters standardization from ASCII to Unicode is...
View ArticleBeware of Collection.retainAll in Java!
Yesterday I got a nasty bug! Basically, I observed that a map – which was populated with about 20 values (no significance of particular number here) on first access (in a static manner) – was missing...
View Article
More Pages to Explore .....