Sunday, July 25, 2010

Add Code to Your Blog

Well, have you ever put code samples in your blog? If you have did that, but without using any code syntax highlighter, it will certainly look like a mess. Don’t agree? See this. This is a code fraction for java. It doesn’t have any of those text-formatting, just typed using only the normal Blogger fonts.

* This application simply prints hello world in the screen
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!"); // Display the text

What do you say? Is it readable or look pretty? Not at all! This kind of code samples will certainly drive your readers out of the site. Even we wrap the code with the HTML 'code' tag, it won't look much better. Therefore you should use a code highlighter. I was searching for that stuff and finally one of my friends tell me about a syntax highlighter. And later I found another technique. So I thought I will share it with you.

Sunday, July 18, 2010

1984 – Apple Macintosh Commercial

Does 1984 remind you about the favorite novel written by George Orwell? Well that's not what I'm exactly going to talk about. But this is about the favorite television commercial by Apple computers which based on the so called book. If you can remember, the novel 1984 depicts a time where world is governed by three superpower holders (superstates) after a global atomic war. And the government maintain a pervasive surveillance, and incessant public mind control to control the information and stop civilians standing against them. And finally the symbol of the book – "Big brother", the dictator of the Oceania (which is one of the previously called states) controls and decides everything the public must know. People are constantly being reminded of him by displaying "Big Brother is watching you"