Live Chat!

A complete zenity dialog examples 2

* * * * ½ 13 votos

April 22nd, 2007 mysurface

This is a continues post of A complete zenity dialog examples 1, in this post we will covers zenity dialog for progress, question, warning, scale, text info and list.
How to create zenity progress dialog?
Progress dialog is to track a progression of a routine, it can be anything, let say I want store the results list [...]

Posted in X11, lsof, tee, zenity | Hits: 47321 | 9 Comments »

svn command line tutorial for beginners 2

* * *     6 votos

April 17th, 2007 mysurface

This is the continues tutorial for svn command line tutorial for beginners 1. The previous post covers Introduction of subversion, installation links, how to get help, create svn repository, import files into a new repository and list the files inside a repo.
svn command line tutorial for beginners continues ….
How to checkout files from svn repo?
This [...]

Posted in Developer, diff, mv, svn, vimdiff | Hits: 46553 | 9 Comments »

Something for my mouse cursor

* * * * * 1 votos

April 15th, 2007 mysurface

Sometimes mouse cursor can be very annoying, when you are reading some articles, writing blog post. Especially when you are using a low quality optical mouse that always have jitter motion on mouse cursor, it will disturbs your reading and writing as well. To cater this issue, we have a package called unclutter to hide [...]

Posted in Misc, oneko, pkill, unclutter, xsetroot | Hits: 17693 | 1 Comment »

Why linux live cd are important? How useful is it?

* * * * * 2 votos

April 4th, 2007 mysurface

There a plenty of linux live cd, check out frozentech.com, scroll down the list and you will see this line:
Currently displaying 315 LiveCD/DVDs
With various tools such as Kadischi, linux live script, Ubuntu Customization Kit etc, you can easily come out your own live cd. What you required is just the matter of time to fine [...]

Posted in Misc, df, fdisk, ls, scp | Hits: 18981 | 12 Comments »

monitor custom programs with ps and watch

* * * *   1 votos

March 26th, 2007 mysurface

ps is a very useful tool to list all current running processes with various info such as CPU usage, memory usage, process status, process id etc.
watch is another good tool to continuously execute some programs in infinite loop. watch allows you to make use of commands such as ps, netstat, lsof into monitoring purpose.
The common [...]

Posted in Admin, ps, watch | Hits: 12594 | 4 Comments »

How to manipulate files with name like ‘-life.mp3′

* * * *   1 votos

March 21st, 2007 mysurface

Sometimes, you may find some file you can’t delete because of the filename begins with minus(-). LBE have that example on the post “Remove file start with special character”, as simple as this
rm ./-life.mp3
The same way you can manipulate those files by mv, cp etc. The important highlights here is ./
dot(.) is actually means current [...]

Posted in Common, mplayer, mv, rm | Hits: 13982 | 3 Comments »

Squeeze multiple blank lines to one

* * * * * 2 votos

March 10th, 2007 toydi

Documents like RFCs may contain many blank-line blocks.
To save the trees, i always squeeze multiple blank lines down to single blank line, before printing.
Once I did this manually (yes, it’s like hell), but now I use cat -s:
cat -s rfc2324.txt | tr -d ‘\\f’ | lpr
I use tr -d to remove any form feed character, [...]

Posted in Text Manipulation, cat, lpr, tr | Hits: 11038 | No Comments »

write a message to login users through terminal

* * * *   1 votos

March 10th, 2007 mysurface

To write a message to users that have login, you can using the command write. But before that, you need to check who is login, and which terminal he is login to, use command who.
Let say you was unable to call your friend, maybe he forgot to bring his cellphone and you know he is [...]

Posted in Admin, Common, wall, who, write | Hits: 22872 | 19 Comments »

check your memory usage

          0 votos

February 2nd, 2007 mysurface

To check for the overall usage of memory including physical and swap memory, we can use a simple command - free.
You just need to type free and it will shows you the information of the memory usage. Lets, take mine as an example:

[...]

Posted in Common, free | Hits: 15301 | No Comments »

Remove all .svn directories at once

* * * * ½ 2 votos

January 19th, 2007 toydi

When you check out a project code base from a svn repository, each downloaded directory (from top to the deepest) contains a .svn hidden directory that keeps svn’s necessary metadata.
If you want to remove them all at once, here’s one way to do it:
~/project_dir $> find -name .svn -print0 | xargs -0 rm -rf
find [...]

Posted in Common, find, rm, xargs | Hits: 20470 | 4 Comments »