Archive for the 'General' Category

Illusion - Can you beat it?

Few days back on of my friend sent me an email with following picture and I think this has to be the best illusion ever created or I have seen.

Illusion
If you look at the above images from your seat in front of the computer, Mr. Angry is on the left, and Mr. Calm is on the right. Get up from your seat, and move back 5-6 feet, and WOW!! they switch places. Click on the image to view larger version. When the size of the image increases the distance to switch places also increases. Give your self a try.

Does this prove that we sometimes may not be seeing what’s actually there?

Highlighting Source Code in HTML

I have just finished with configuring the code prettifier on one of my site. It was so easy to implement and took hardly 5 minutes to complete the configuration.

Code Prettifier supports many language syntaxes, like Java, C, C++, PHP, HTML, Bash Scripts etc.

Here are the steps to setup Code Prettifier on your website running wordpress blog.

  1. Download code prettifier distribution.
  2. Upload the script and stylesheets in your theme folder (you will need to adjust the paths in the script and link tag)
    <link href="prettify.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="prettify.js"></script>
  3. Add onload="prettyPrint();" to your document’s body tag.
  4. Put your code snippet in following tags and it will highlight the code automatically.
    <pre class="prettyprint">...</pre>
    or
    <code class="prettyprint">...</code>

Thats all you have to put in your theme to get this lovely highlighted source code features in your blog.

Semester Exams are here !

Another semester is complete and I am preparing for the exam. I am gradually moving towords completion of my MS program.

This semester, I believe, was one of the best I have had so far. I studied Marketing Management and Design Patterns, both were wonderful courses and the Professors were brilliant.

I have enjoyed the class room studies but preps are not good ;). I will be back on Tuesday 19th June, to write about what happened in the Exams.

Wish me Good Luck !

« Previous PageNext Page »