Archive for April, 2010

Setting Background Wallpaper in Fluxbox

April 23, 2010

First of all you need images to show as wallpaper. You can easily get them from various wallpaper sites on the web. Make sure you store the files in a single directory - you can organize them into sub-directories if there are too many.
Install feh which is an application for viewing images. This is in [...]

Posted in FreeBSD Unix No Comments »

Always Keep root shell as part of base OS

April 21, 2010

Most people keep bash as their preferred shell program in FreeBSD. The problem with bash is that it does not come as part of the default FreeBSD package - it has to be installed as a third party application either using pkg_add or by compiling it from ports.
chsh -s /usr/local/bin/bash
If for some reason your ports [...]

Posted in FreeBSD Unix No Comments »

Installing FreeBSD over an old installation

April 21, 2010

A crucial part in installing FreeBSD again over a corrupt or existing FreeBSD installation is knowing how to recreate the disk partitions. By default, even if you change the disk geometry and slicing configuration, the actual changes will be written to the disk, only when installation of files is about to start.
In such a [...]

Posted in FreeBSD Unix No Comments »

How to embed a Google map in a Wordpress blog

April 16, 2010

Overview
I get a lot of requests from people who want to put up a google map in their blog (which most of the time is Wordpress) but they have no idea how to do it. Unlike embedding  a google map in a standard web page ,  a simple pasting of the map script will not [...]

Posted in Maps, Programming No Comments »

JQuery - difference between append() and prepend()

April 12, 2010

append() and prepend() methods: similar to appendChild, except jQuery accepts a string, a DOM element, or a jQuery object as valid arguments. jQuery converts the argument into a text node or element depending on what is passed.

$(”#leftNav ul”).append(”<li>after the last &lt;li&gt;</li>”); // adds <li> at the end of <ul>
$(”#leftNav ul”).prepend(”<li>before the first &lt;li&gt;</li>”); [...]

Posted in Javascript/Jquery No Comments »