Yesterday, I lost 3.5 hours of my life in one of the most horrible ways imaginable – by watching one of the most pathetic movies of my life. I left the cinema hall feeling thoroughly disgusted with the movie and it’s director. The saddest and most depressing part is, this movie is gonna make a [...]
Humming loudly to vent some of the happiness bubbling up in me, I entered the elevator and jabbed ’10′. Wordlessly, the doors slid shut and the metal cabin slowly started making its way up the steel corridor. It stopped at floor 4. Someone entered and pressed ’9′. I was too busy humming and celebrating to [...]
Mashups seem like an awesome idea (I know I am a little late on the scene). Thinking of dipping my legs into the Mash(up) Sea. Link
So what exactly is the difference between a class and a struct in C++? After wondering and debating internally for quite a long time, I looked around the net and found the (simple) explanation that: "The only difference between a struct and a class is in the default access." That is, a sruct is public [...]
How easy would it be to build include graphs in ruby? Here's my first attempt: PLAIN TEXT RUBY: $list_of_files = Hash.new $list_of_files.each {|node| node = Array.new } def store_includes(pathname) lines = IO.readlines(pathname) lines.each {|line| if line.include? "#include" include_file = line[line.index("#include")+"#include".size,line.size] fidx = 0 sidx = 0 if include_file.include?("\"") fidx = include_file.index("\"") + 1 sidx [...]
Is there a more efficient way to extract the file extensions in ruby? I currently do the following. PLAIN TEXT RUBY: ext = File.basename(filepath).reverse.split('.')[0].reverse
I am having hell managing 5 different mail accounts. Since I hop from PC to PC, I can't afford a desktop client (fyi, i prefer Thunderbird). So it really irritates me having to log into 5 different pages to check all my mail. Yup, this means a lot of mails goes unread. I looked around [...]
Welcome to Tech-no-Spark! This is primarily a tech blog. I will be putting my random thoughts as well as discourses and discussions regarding information technology.