Sunday, December 5, 2010

how to extract archives the simple way

Its easy as this.

*edit: Or you can use "atool". A script that covers the same functionality as the code below but supports even more complex operations.

Add this code to your .bashrc:

extract () {
   if [ -f $1 ] ; then
       case $1 in
           *.tar.bz2)   tar xvjf $1    ;;
           *.tar.gz)    tar xvzf $1    ;;
           *.bz2)       bunzip2 $1     ;;
           *.rar)       unrar x $1     ;;
           *.gz)        gunzip $1      ;;
           *.tar)       tar xvf $1     ;;
           *.tbz2)      tar xvjf $1    ;;
           *.tgz)       tar xvzf $1    ;;
           *.zip)       unzip $1       ;;
           *.Z)         uncompress $1  ;;
           *.7z)        7z x $1        ;;
           *)           echo "don't know how to extract '$1'..." ;;
       echo "'$1' is not a valid file!"

From now on you can extract the listes archives simply by calling "extract archive".

Wednesday, September 15, 2010

Monitoring changes in filesystem

Hi there,

here a quick hint how to monitor changes in files and folders:

inotifywait --exclude 'log' -rme modify,attrib,move,close_write,create,delete,delete_self folder/

This example show everything beside changes that are made on files which have the string "log" in its name.

You can use this to see for example what config files are change by a program.

Wednesday, September 8, 2010

My current android desktop

hi again :),

i spent some time to modify the desktop of my nexus one. On the right site, you can see how it looks like and now i will give you a short introduction how to achieve this.

Wallpaper: You can download the wallpaper here.
Icons: A set with the base icons can be found here (there are other colors too). Even more icons, for different apps, are located here (only green ones). To make your own icons, you can find the psd file here.
Dock: The dock-bar image: here
Used Apps: Desktop Visualizer, to add custom icons to your desktop apps. LauncherPro a home replacement which is a lot smoother and is more customizable. Multicon Widget to make the icons on your desktop smaller. Weather Widget Snowstorm.

LauncherPro allows you to change to dock-bar background and the icons by itself so you can simple change the look in the settings menu.

Its a bit tricky to have the icons on the desktop either. As you can see the icons are smaller as the normal desktop icons would be. You can achieve this by adding the 1x1 or 1x2 Multicon desktop widget. Then click it to open the configuration screen where you can select which icons to show. Click one of the four icons, then choose the "Shortcuts" tab and select "Desktop Visualizer". To hide the icon placeholders you don't need just add a blank icon to it. You can find this blank icons in the configuration tab "Other", its called . After that you can select an icon and the app what should be launched by clicking this icon. Obviously you have to copy the icons to you phone first. And thats it. Doing so, you can add smaller icons to your desktop with a different look. You can even vary the sice by choosing an other Multicon layout.

If you still have questions feel free to ask.

My Apps 1 - Widget Locker

hi there,
today i will start a post series where i show you the android apps i regularly use on my nexus one.

The first one i want to mention is an app called Widget Locker. You can see an image on the left. Its a "simple" lock-screen replacement. Normally you only have two sliders when you turn your phone on but, as you can see on the left, its possible to add more of these sliders with Widget Locker. You can not only add sliders, you can add every widget you like. Its great to have a widget to control your audio player on the lock-screen. :)

Thats it, you should try it to see whats possible with this app.


Wednesday, April 7, 2010

New Look

I changed my desktop a bit. :)

Basically its a combination of themes and other stuff found on the internet but slightly modified be me.

Here we go:

Plasmatheme: Rhabarbermarmelade (Part of this suite: click )
Qtcurve theme and KDE colors: Zink Suite with some modifications ( click) original: ( click)
Icons: Leo like Icons with custom color to make them a bit darker ( click)
Firefoxtheme: Its qtcurve with some userchrome.css modifications ( click).
Wallpaper: Flavoured original ( click)

Tuesday, March 9, 2010

Rename file with special char in filename

Sometimes you cannot rename a file cause the filename contains a special char that cannot be recognized. In this case you can rename a file by its inode.

Its as simple as this:
ls -il (to get the inode)
find . -type f -inum "inode num goes here" -exec mv {} newfilename \; (find file by inode and rename it)

Sunday, February 21, 2010

speed up amarok

to make amarok faster, just remove all playlists from the collection dirs. You can do this easiely by executing the following command:

find ./ -name \*.m3u -exec rm {} \;

Monday, January 11, 2010

Disable kde 4 debug output

A short tip this time.

In kde 4.* you can disable debug output what speeds up the start time kde apps need.


and disable all apps.

have fun