Mirror: GIMP Brushes and Scrips from gimphelp.org

Today is used some arrow brushes from GIMPhelp.org. They had some nice brushes from "Paul Sherman", thanks buddy!

I mirrored their download folder, in case the site disappears.

http://juliusbeckmann.de/mirror/www.gimphelp.org/

HTC Dream (G1) zurück auf Android 1.6 flashen

Wer sein HTC Dream alias T-Mobile G1 zurück auf ein (deutsches) Android 1.6 flashen will, der halte sich an diese Anleitung von steff.
Für den Fall dass sein Seite inkl. der Download offline geht, hier der Link zu meinem Mirror.

PHP: Deprecated session_is_registered and session_unregister

Today i found in a older website i administrate some messages in the Apache error logfiles.

They looked like this:

PHP Deprecated: Function session_is_registered() is deprecated
PHP Deprecated: Function session_unregister() is deprecated

I searched the web and found this replacement code:

//session_is_registered($var);
array_key_exists($variable, $_SESSION);

and

//session_unregister($var)
unset($_SESSION[$var]);

I hope this might help someone.

Hint:
Do not use isset() here, because it might be wrong!
PHP - Benchmark isset() or array_key_exists() ?

Bash: Rename all files in current directory to lowercase

Just some code i used to rename my holiday pictures to lowercase.

find ./* -type f -maxdepth 0 | while read upName; do loName=`echo "${upName}" | tr '[:upper:]' '[:lower:]'`; mv "$upName" "$loName"; done

find lists all files in current directory. -type f lists only files, not directorys.

The while loop iterates over the file list.

echo | tr makes the filename variable lowercase.

mv finally moves the file.

Thanks to Veikko for the maxdepth hint.

Bash: Sleepsort Algorithm

Some code that a friend showed to me was this:

#!/bin/bash

function f() {
  sleep "$1"
  echo "$1"
}

while [ -n "$1" ]
do
  f "$1" &
  shift
done

wait

Example:

./sleepsort 9 3 7 1 3 2 4 7 4 6

He called it "sleepsort". And somehow, it really works. Not the fastest, but it works.

Wie man Videos von Youtube, Vimeo und Co. unter Ubuntu kinderleicht abspeichern kann.

Von einem Mitstudenten habe ich im Blog einen Artikel gefunden, der zeigt wie einfach man unter Ubuntu Videos von Webseiten lokal abspeichern kann.
http://jumplink-share.blogspot.com/2011/01/webvideos-ohne-zusatzsoftware-auf-die.html
Es wird keine Zusatzsoftware benötigt und es ist so einfach dass man sich problemlos daran erinnern kann.
Danke JumpLink!

MySQL: Save RAM by disabling InnoDB

If you run a MySQL Server and have not much RAM, like in a OpenVZ Container or VirtualServer, there is some saving possibility by disabling InnoDB in your my.cnf.
By default InnoDB Engine is enabled and uses about 100MB of RAM. You can disable InnoDB in your /etc/mysql/my.cnf with the keyword "skip-innodb".
But check first if there are any databases with InnoDB Tables in your MySQL Server. They will stop working if you just disable it.

Linux: How i satisfied a windows user with Ubuntu

A few days ago, a friend of mine had a hard disk failure. Luckily, i had a old disk i could offer for replacement. But instead of installing Windows XP or Windows 7, my friend wanted to try Ubuntu Linux.

In the following post, i will mention some programs and tips to satisfy a windows user with Ubuntu Linux.


|Den ganzen Beitrag lesen...

Auto: Meine Tux Auto-Fahne

Jetzt zur WM 2010 in Südafrika gab es kaum ein Auto ohne Auto-Fahnen zu sehen. Dies hat mich auf eine Idee gebracht ...

|Den ganzen Beitrag lesen...

Ubuntu: Howto move min/max/close buttons to the right in Ubuntu Lynx 10.4

With version 10.4 Ubuntu design team decided to move the minimize/maximize/close buttons to the left. Maybe to look like mac. For everybody who do not like this and want their buttons back on the right, follow the instructions.

|Den ganzen Beitrag lesen...