August 26, 2010

Pidgin invisibility cloak

Filed under: Tools — Tags: , , , , — shijitht @ 1:54 pm

Go Invisible option in pidgin is an option only. It will set status to busy. But there is a solution for it.

Go online.
Enable the XMPP console in Tools > Plugins.
Now select Tools->XMMP Console->XMMP Console.
Check your gmail account is selected in the console.
Put these code in the second box and hit enter.
Don’t mind the trail of code in the monitor, but a hacker could find it pretty useful.

<presence type="unavailable">

Now go invisible.
To reset change unavailable to available and put it in the console.
For more go to http://www.madhusudancs.info/invisible.

August 22, 2010

Brief note about using Git

Filed under: Commands, Tools — Tags: , , — shijitht @ 7:51 pm

This is a short note including everyday commands. You can find more details like installing git and more commands at http://help.github.com/.
Don’t forget $ man git.

Create a repo graphically and do the following to get started.

The first section is to set up your name and email as a committer.

“git commit” allows to commit locally with  comment specified using -m option.
Here $ git commit -m “first commit” will make your local repo a step ahead of remote repo.
Check status using $ git status .
At first we need to connect to the remote repo. Origin is the remote repo-name used here, I suggest github or whatever name say your real repo name.
Now push using git push. Here master branch pushed to origin(remote repo-name).
To start tracking/add a new file → $ git add <file name> .
To commit to the remote repo → $ git push <repo name>  <branch name>.

Default branch choice is master.
To see branches → $ git branch .
Add -a option if you wish to see remote branches also.
To add a new branch for parallel developing → $ git branch <branch name> .
Move to the new branch → $ git checkout <branch name> .
To push a new branch →
$ git push <remote repo name>  <local branch name> :<remote branch name>.

If you use both branch names same, the ” <local branch name>: ” is optional.
To delete a branch locally → $ git branch -d .
To delete remote branch → $ git push <repo name>   :<remote branch name> .
i.e. nothing pushed( local section blank ).
To add a tag → $ git tag <tag name>
To update remote repo → $ git push   – – tags
To remove tags → $ git push <repo name>  :<tag name> .
Creating a folder demands adding files under it and use git rm in case of file deletion. So better keep file names distinct.
Use git clone/fetch to create a local copy of a repo.
To remove a repo do it graphically.

Useful links :

August 21, 2010

GitHub key update delay

Filed under: Commands — Tags: , , , , — shijitht @ 10:35 pm

Changing the current rsa public key or adding a new key wont work as soon as you do it. The usual delay I get is about 10-30 min. So don’t get frustrated and change keys continuously. Keep patience and wait. Do
$ ssh git@github.com   in intervals until confirmation. The success message is

ERROR: Hi shijith! You've successfully authenticated, but GitHub does not
provide shell access

August 19, 2010

New Twitter “Tweet Button”

Filed under: WordPress — Tags: , , — shijitht @ 4:50 pm


You can get a new tweet button after each post, just like “like button”. This will enable easy sharing of posts among readers.

Go to Appearance > Extra and enable the option for Tweet Button. 😀

C boolean

Filed under: C — Tags: , — shijitht @ 3:52 pm

C do not have a built-in boolean type. In C, zero means false and non-zero means true. So we don’t have to use boolean types in comparison operations. If a comparison say  using  “== ”   succeeds, one would be returned. Zero in case of a failure. Run the program to remove debuts,

         printf("False = %d True = %d\n",1==0,1==1);

August 9, 2010


Filed under: Commands — Tags: , , , — shijitht @ 12:03 pm
df (1)               - report file system disk space usage

df is used for checking file system size, used size and available size. By default it reports in numbers of 1k block. Two useful options are

            Use 1024-byte block units when writing space figures.
            Display in human readable format, Kb, Mb, or Gb.

Use man to find more.

August 7, 2010

BloGTK WordPress setup

Filed under: Tools, WordPress — Tags: , , , , , , , — shijitht @ 6:39 pm

BloGTK is an application for blogging. We can use it for posting new articles, instead of browser. It has everything offered by word press editor. Install the software first.
DEB family type “apt-get install blogtk” and RPM group type “yum install blogtk” as root in the terminal. After installing, select it from Application/Internet/BloGTK Webblog Client. If it is not starting, take terminal. Type blogtk to start it. It might show an error like “no module named gtkhtml2”. Then you should install python-gtkhtml2. If apt-get or yum fails to find such a package, you can get it here, python-gtkhtml2. Select appropriate package from the liked site and double-click to install. If installed correctly, blogtk would run.
The settings are, go to Edit/Account and Settings and set

Server URL : http://you.wordpress.com/xmlrpc.php
Username : username
Password : password
Blogging System: Movable type
Press OK and select Connect in File.

Now you are ready to post. Select the desired Blog and Category to start writing new posts. You can see 3 tabs. Edit Post for normal editing, Advanced for tags etc and Preview shows preview. The demerits are no text formatting, HTML editor, grammar checking etc. This my first post using BloGTK. I finished it early but I don’t have the usual satisfaction using Word Press. I think you can use it as an offline tool for blogging. It is good tool for a blogger having limited Internet access.
Thanks to this..

Text pre formatting in WordPress

Filed under: WordPress — Tags: , , , , , — shijitht @ 2:11 pm

To insert a code or a pre formatted text, you can use “Preformatted” instead of “Paragraph” in visual editor. For html editor corresponding tag is pre. In html editor enclose the text in these tags.

<pre> text </pre>.

For writing code you can use code tag.

<code> code </code>.

For coloring the code according to language syntax and proper listing, use sourcecode tag. Use it as


lang could be

  • actionscript3
  • bash
  • coldfusion
  • cpp
  • csharp
  • css
  • delphi
  • erlang
  • fsharp
  • diff
  • groovy
  • javascript
  • java
  • javafx
  • matlab (keywords only)
  • objc
  • perl
  • php
  • text
  • powershell
  • python
  • ruby
  • scala
  • sql
  • vb
  • xml

For more details go to http://en.support.wordpress.com/code/.

Facebook Like button for your site

Filed under: WordPress — Tags: , , , , — shijitht @ 1:43 pm

WordPress editor allows only text in posts and sidebar. It strips off scripts(js) and rich html like iframe, forms etc while saving. WordPress did this for security. But it restricts users from using many amazing functionalities of social network as they offer. Facebook provides Like button code in iframe format and as javascript. We can’t use it in wordpress.com. Getsociallive provides a service for Like buttons. It gives a Like button. And on click, it goes to a Getsociallive page. The destination page has Like button service + Adds. It’s OK, but I thought a Facebook page will do better. So replaced the destination link of Getsociallive code with the Facebook Like service link. Resulting code for my site is

<p><a title="Like This!"
colorscheme=light&amp;height=80" scrolling="no" frameborder="0"
style="border:none; overflow:hidden;
width:450px; height:80px;" rel="nofollow" target="_blank">
<img style="border:0;margin:0;padding:0;"
width="49" height="23" alt="Like This!" /></a></p>

Replace shijitht.wordpress.com in the above code with your site address to make it yours. If you like, you can generate code at http://developers.facebook.com/docs/reference/plugins/like. Put the code in the text widget and add it to sidebar to get a Like button like mine. Like This!

August 6, 2010

Malayalam font

Filed under: Tools — Tags: , , — shijitht @ 12:44 am

We could hardly understand words of a Malayalam site. The problem is lack of correct font. For example go to manoramaonline. At the first look, you will close it. As many of our doubts, googling resolves it. But many consider it a huge effort, I don’t know why ?.

You get a Malayalam font, double-click and press install. Manorama.ttf is at the bottom. If fails or something unexpected happens, go ahead with following commands. As root

# mkdir /usr/share/fonts/manorama
# cp  Manorama.ttf /usr/share/fonts/manorama
# fc-cache  -fv

First we created a folder manorama in font directory(/usr/share/fonts/). Then copied Manorama.ttf font to that. The third command updated font information cache files. Restart your browser to start reading in mother-tang.

Click to download Manorama.ttf 

Older Posts »

Create a free website or blog at WordPress.com.