My Headless Linux Server

Finally I setup-ed my linux server for my home! Woo Hoo!!
Now I can code, develop my stuff & sites, get my hands dirty inside linux, stream music & videos within home network, or even host an online presence with DDns…. And I can do all these without even touching the server. well things are enormous to explore with this!
And also figured out that you can switch on a machine remotely :) magic packet – WOL

Its running CentOS 6 on Intel Atom processor (D425KT) with 2GB Memory, great to run for 24×7 with very less power consumption.

How to set screen size in mobile/wap site?

If you didn’t know, well its easy as putting your leg in mud clean.
You can set width for your wap site to enclose the whole mobile screen size by using ‘viewport’ meta tag. As you know, meta tags are special instructions sent to browser in our case mobile browser. With many meta tags available, we have another one called ‘viewport’ used to control layout.

Use this tag in head:
<meta name="viewport" content="width=device-width">

“width=device-width” will set width of your site to available width of device screen size. So, now you can use css properties like width:100% to create clean layouts

I hope this helps!

Is your eclipse working in Fedora 15?

Just after I updated my server to Fedora 15, I found out that eclipse is crashing when code/content assist comes up. I started searching in internet for a solution and got many with a lot not fixing my issue. Finally, I figured out why.. Its due to the new libwebkit!

With lot and lot of changes in Gnome 3, they also managed to change the name of libwebkit to libwebkitgtk. Obviously, eclipse can’t know this (like the other tons of application struggling in Gnome 3).

So to make your eclipse work with Code assist without crashing, do the following

  1. Create a symbolic link for libwebkit
    ln -s /usr/lib/libwebkitgtk-1.0.so.0 /usr/lib/libwebkit-1.0.so.2
    or whatever version of libwebkit you have
  2. Add org.eclipse.swt.browser.UseWebKitGTK=true to eclipse.ini or config.ini of eclipse

I hope this helps.
See ya!

A Blog to post!!

I have a blog to post!
I have a blog to post!!
I have a blog to post!!!
I have a blog to post!!!!
I have a blog to post!!!!!

May be I can remember like this….
Busy days btw

First Hands-On CodeIgniter 2.0

Development version of CodeIgniter 2.0 is now available in BitBucket (no stable or RC yet!). Last week, I tested all my apps and found out what are changes to be done for your app to work in CI 2.0
Read the rest of this entry »

Data Description (dd) aka Data Destroyer

Want to create bootable usb sticks or pen drives? There is an easy way to do it, by using dd command.
dd stands for Data Description which is a low level copying command that does copying through raw data. By means of raw data, it has the power to clone the boot tables found in your iso cd/dvd images.

Syntax:
dd if=[source_iso] of=[device]

Just be careful while specifying input and output parameters! if is INPUT and of is OUTPUT. This command is nicknamed ‘Data Destroyer’, reversing the parameters will result in loss of some or all data in disk.

Example
dd if=~/Download/boot.iso of=/dev/sdc

You can use findfs command to know your usb device name
findfs LABEL="DEVICE_LABEL"

I have already cautioned you. Please be careful while using this dd command. Be feared of ‘Data Destroyer’ :)

Kohana Vs CodeIgniter

benchmark result
Source : http://pr0digy.com/codeigniter/benchmark-update-static-cake-codeigniter-kohana/