Quantcast
Channel: Uncategorized – What I learned today!
Browsing all 13 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

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...

View Article

Image may be NSFW.
Clik here to view.

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...

View Article

Image may be NSFW.
Clik here to view.

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...

View Article

Image may be NSFW.
Clik here to view.

Starting 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 Article


Image may be NSFW.
Clik here to view.

Set 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 Article

Image may be NSFW.
Clik here to view.

Quick 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 Article

Image may be NSFW.
Clik here to view.

Tower 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 Article


Image may be NSFW.
Clik here to view.

Rubular

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 Article


Image may be NSFW.
Clik here to view.

XKCD Joke – Donald Knuth

View Article

Image may be NSFW.
Clik here to view.

Python 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 Article

Image may be NSFW.
Clik here to view.

Understanding 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 Article

Image may be NSFW.
Clik here to view.

Beware 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

Browsing all 13 articles
Browse latest View live




Latest Images