Nowadays Vinay Deolalikar’s claimed proof of p versus np problem is being discussed in many blogs and in many different platforms. And with the light of these discussions, my interests in theoretical computer science and math is awakened . Hence I wanted to write something about mathematics (Although I’m not a mathematician but always have [...]
Author Archive
Measure the temperature of the system in Linux
In linux you can use lm-sensors to measure the temperature and the pc health of the system. Via the following snippet you can monitor the system by refreshing the statistics every 2 seconds: #!/bin/bash while [ 1 ]; do sensors; sleep 2; clear; done;
The Nightfall
This is another great short story (but longer than the others), by Asimov. He wrote this short story in 1941 when he was 21 years old and got 15 dollars as a reward from “Astounding Science Fiction” Magazine:). Nightfall If the stars should appear one night in a thousand years, how would men believe and [...]
The Last Answer
Here comes the second short story of Isaac Asimov: Note: This short story is taken from here. The Last Answer by Isaac Asimov — © 1980 Murray Templeton was forty-five years old, in the prime of life, and with all parts of his body in perfect working order except for certain key portions of his [...]
The Last Question
Beside being a genius, “Isaac Asimov” was surely one of the most fascinating science fiction author of his age. He had written many good novels like Robot and Foundation series. But beside his novels, he had written many thought provoking short stories as well. “The Last Question” was one of them. About this short story, [...]
My vimrc file for Perl, Python, PHP and C code
Here is my .vimrc file that is highly modified for programming in perl, python, php or C: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 [...]
Firefox Plugins that you should know
One of the reason that still i have been using Firefox as my primary browser is because of its large base of plugins. In this post i’ll try to list some of my favorite Firefox plugins and provide some short descriptions mostly taken from the plugin’s web site. Security Https Everywhere: This plugin is provided [...]
A Theoretical Computer Science Cheat Sheet
I usually don’t like the cheat-sheets because they are so subtle and you’re able to find much more comprehensive information with better explanations on Google. But sometimes all you need to know is a simple formula or a function, which you can get benefit of a cheat-sheet for enough information with less effort. For programming [...]
Weighted Random Number Generation in Java
I made small class for weighted random generation. It is inspired from the Eli Bendersky’s blog post: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 import java.util.Arrays; [...]
An Intuitional Perspective on Dimensions and Dimensionality in Geometry
Mathematical objects with dimensions higher than 3 are usually hard to grasp both visually and geometrically. There are some funny jokes about it too. I want to share here one of them: An engineer, a physicist, and a mathematician are discussing how to visualize four dimensions: Engineer: I never really get it… Physicist: Oh it’s [...]
Recent Comments