In a fast paced business environment with fast changing requirements, the tools for expressing and constructing a program become extremely vital for the productivity of the programmer. Given this assumption, the primary of these tools, the choice of programming language becomes extremely essential for productivity. Having worked in C and C++ and having seen a host of different languages I … Continue reading "What should be my lingua franca of programming?"
My friend Rahul was giving me a demo of their Web UI and a small but nifty feature caught my eye. They had a feature of being able to configure their systems using the Web UI (which is pretty cool in itself!) and the console output from the configuration command in turn would be displayed … Continue reading "Linux commands output in PHP"
Erlang Ring Benchmark Problem: In the Programming Erlang book by Joe Armstrong, we find this problem at the end of the Concurrent Programming chapter. Write a ring benchmark. Create N processes in a ring. Send a message round the ring M times so that a total of N * M messages get sent. Time how … Continue reading "Erlang Ring Code"
Finally moved the site to WordPress 2.5.1. My own personal blog has been on wordpress.com and that UI was quite inspiring. Now I stand inspired. And definitely the ease with which WP upgrades is quite awesome. However it would have been even greater if I could just upgrade by clicking on a button without even … Continue reading "Moved to WP 2.5.1"
For the last few days I had been googling for some good help for coding networked flash applications for a pet project of mine. Mostly using Flex & Ruby. There have been quite a few I saw – made with flash and using Java; but nothing to my personal liking. And hence I set to … Continue reading "Multiuser Chat using Flex and Ruby"
class Dir def self.mkdirs(p) return if File.exists? dir, file = File.split(p) Dir.mkdirs(dir) if !File.exists?(dir) Dir.mkdir(p) end end #sample usage: Dir.mkdirs(‘test/tmp/tempest’)