Irony of language fondness

There is an irony about fondness of language in a programmer’s life. I am not very particular about any programming language, I can read and understand and code in quite a few of those. But, my affection is not same for every language I know, and there is the irony. My favorite language is C++. … Continue reading Irony of language fondness

git push heroku master; server sent publickey

Recently I have been having some trouble with heroku git push from my Windows PC. Whenever I run, I an stung with this message: PuTTY Fatal Error No supported authentication methods available (server sent: publickey) I have tried several things like adding keys with heroku keys:add etc. Finally, following helped: Apparently, meta about remote was … Continue reading git push heroku master; server sent publickey

What is linked list and how pointers work?

Today, I was talking with one of my friends about how we studied data structures in freshmen/sophomore years and how some troubled in understanding pointers. Joel probably says that, it is an aptitude that not everyone can have. So, just then an analogy for linked list hit in my imagination and my friend told me to … Continue reading What is linked list and how pointers work?

Read_file_bytes

Yesterday, I needed a tool for reading files as bytes. Hexdump programs generally do some formatting and stuff. I did not want that. I wanted to have a straight forward, simple sweet tool, that simply reads a file and prints it's bytes. Time required for searching such a tool is indeed greater than the amount … Continue reading Read_file_bytes

PostgreSQL as Object Database

This is a live blog (i.e. I'd be updating this post time by time. I am starting to use PostgreSQL as Object Database, mainly as a part of my course project. Object oriented extension of SQL is quite interesting - I, kinda, am loving it. However, all object oriented extensions are not yet implemented by … Continue reading PostgreSQL as Object Database

Computer Science Brain Hammers

I’m writing here after pretty long while. Several times I felt like writing, but could not do it altogether. Life seems a bit busier. It is almost just a “get up from bed – go to job – drink movie – sleep” cycle. By the way, in a discussion with my colleagues I found myself … Continue reading Computer Science Brain Hammers

glut in MS Visual Studio 2010 (MSVS10)

One of my earlier blogs, OpenGL and glut in C++ with MS Visual Studio 2008 (MSVS9) described how to set up your Visual Studio and Computer to work with glut, as well as OpenGL. Now with the new edition, Microsoft Visual Studio 2010, as the version shifted from v6.0A to v7.0A, we need to change some … Continue reading glut in MS Visual Studio 2010 (MSVS10)

Never forget a return statement

Mathematics defines a function as something that returns something upon some input. For us, the programmers, it is not just so… what we call function, in C family of programming languages, is rather a procedure from our perspective.C like languages have a rule that, a function must have a return type, and many internal implementation … Continue reading Never forget a return statement

OpenGL, Tree as a fractal, trigonometric Approach

Our goal is to, Draw a tree using fractals with recursion Take user input for: Depth of tree/sub-trees Angle between leftmost and rightmost branch in same depth Fractals are useful way of approaching to infinity and for drawing some real life like objects where same pattern recurs. To do so, we are drawing single line … Continue reading OpenGL, Tree as a fractal, trigonometric Approach

Randomizing the C++ Random function

In programming, we often need to use the random number generator. C++ also provide us with one function for the purpose, the rand(). Alright, it functions properly, I have nothing to blame it about, but one thing you might have noticed, it always generates the same sequence of random numbers, i.e. these are not really … Continue reading Randomizing the C++ Random function