Archive for May, 2012

By now, you all must have had heard of Zurker. Some people are calling it a replacement of FB. Though the idea is very creative to make the user also a part of the hierarchy. Though only the time can tell how big is it gonna be or will it be a complete flop. Presently its still in beta phase and one can join it by referral only. Those who are interested can join it from the following referral URL.
http://www.zurker.in/i-206112-xpocqviwbd

Firefox to chrome

Posted: May 24, 2012 in Technology, Uncategorized
Tags: ,

Dear Firefox,
I used to be a fan of you. We have witnessed a no. of events of my life together through those Facebook updates. We shared a lot of history together which can be found under your history tab. You know a lot of my secrets. But it seems like the time has come to depart. Now you have started to become a problem in my life. When I want you, you takes a lot of time to serve my requests. When I leave you there for enough time to serve me later, you start giving me troubles in my other jobs (CPU usage problem when left idle for enough time). Though I hate to leave you but you leave me no option than to find another companion for the journey ahead. But I want you to understand that I am not leaving you for forever. I know you are the best and I will not be able to find someone else who would serve me like you but its better for me to stay away from you for sometime.

Yours only,
JK

a basic kernel

Posted: May 20, 2012 in Technology
Tags:

http://wiki.osdev.org/Bare_bones

Following is the code to clear the screen on terminal.

main() {write(1, "\33[H\33[2J", 7);}

Above program does nothing but writes an escape sequence on screen. Escape sequences are used to control the display properties like graphics,control cursor movements and key reassignment. Above one is specific to clear the screen. \33[H sends the cursor to home location and \33[2J clears the text on screen. It can also be used interchangeably i.e first clear the screen and then send the cursor to home location since printing of terminal info (like root@localhost] ) takes place after executing the complete process though if you write the separate programs for both escape sequences individually and then execute them sequencially, output may differ based on order of execution.

To read about what are the escape sequences, refer to http://en.wikipedia.org/wiki/Escape_sequence

Here you can find a complete list of escape sequences. Have fun with your terminal 🙂

I was watching movies today and was very annoyed with the screensaver black screen which appears at every 10-15 minutes. Though I always keep the screensaver off but this was the first time I realised that the setting was not working. Then I googled a bit and found that so many people are already facing this issue. Some suggested to turn off the dpsm by
xset dpsm
(learn more about dpsm and xset from the installed man pages on your system)
but it didnt seem to work. Then I digged a bit into the system and found the gsettings tool to edit the system wide settings from command line. To list all the settings keys in system do
gsettings list-recursively
You can redirect the result to another file or can also use piped “less” command to browse through the keys. I found one key related to screensaver
org.gnome.desktop.screensaver idle-activation-enabled.
Toggle its value to false if its not already by using following command,
gsettings set org.gnome.desktop.screensaver idle-activation-enabled false
You can use dconf-editor also to edit these settings. dconf-editor is not installed by default in your system.
Now you need to logout and loging again for the settings to take effect. Its working for me. For people it also does not work, try turning off the power settings by
gsettings set org.gnome.settings-daemon.power active false
But as turning off the power settings is not a good solution, you can also try installing caffeine.
For installing caffeine, refer to here

every time I start up my ubuntu 12.04, my laptop’s brightness always get reset to the maximum. I always keep the brightness to as minimum as possible. After some googling, i found this command line tool xbacklight which is pretty useful. command “xbacklight -set 50” reduce your brightness by 50%. just add this to your .bashrc file and u r good to go. To install xbacklight, do
sudo apt-get install xbacklight
[update]
sometimes adding this to .bashrc will not work. Try to add this command to “startup applications”.

Was just browsing through the net from my FF12 in Ubuntu 12.04, right clicked on a web page and saw this new element in right click menu list “Inspect Item (Q)”. Just clicked on that and wow, its a can of “lovely worms”. Better source browsing with respect to the items on page, 3D view of the page to explain the layered structure of the page. I would say it makes a great learning experience for HTML/ Web Programming beginners to understand the different tags of HTML. Also it makes easy to understand the layout of complex web pages. I would say its a great great feature mozilla have embedded into FF. Though I am a little ate for this as Mozilla embedded it in 10.x release of FF only but its never late to have learnt something new.

3D Screenshot of the page when I was writing this blog entry