August 18th, 2010
This is how you can easily disable display power management on Linux.
Useful if you wish to watch videos while videoplayer doesn’t support automatic dpms disabling.
Files nodpms.sh/yesdpms.sh for disabling/enabling dpms are also available on scripts.
Create a file nodpms.sh with following content
#! /bin/sh
xset s noblank -dpms
To disable display power management just run: sh ./nodpms.sh
xset is a user preference utility for X.
The “s” option lets you set the screen saver parameters.
“noblank” sets the preference to display a pattern rather than blank the video.
“-dpms” disables Energy Star mode.
UNIX man pages: xset(1)
Tags: dpms, Linux, x, xorg, xset
Posted in Linux, Scripts | No Comments »
July 2nd, 2010

This phrase have been told years before Scotty was even born, but I still must agree with him.
Startup Quote
Tags: funny, picture
Posted in Web | No Comments »
July 2nd, 2010
Tags: flash, video
Posted in Uncategorized, Web | No Comments »
July 2nd, 2010
“It would take About 66 quadrillion years for a desktop PC to crack your password.”
But how many years would it take me to understand not to give my password to some shady site? I bet seven and a half.
How secure is my password?
Posted in Uncategorized | No Comments »
July 2nd, 2010
Visual guide for installing Ubuntu server to Virtualbox virtual machine.
If you are just installing Ubuntu server you might want to skip to step 13 otherwise start from step 1.
Tags: Linux, server, ubuntu, virtualbox, vm, vmware
Posted in Linux | No Comments »
June 24th, 2010
openSUSE 11.2:
As root, open file /etc/sysconfig/network/dhcp
and find a line (i had it on line 92) where it says
DHCLIENT_SET_HOSTNAME="yes"
Change this line to
DHCLIENT_SET_HOSTNAME="no"
Then the hostname defined in /etc/HOSTNAME will be used.
Tags: dhcp, Linux, openuse
Posted in Linux | No Comments »
June 3rd, 2010
svn cp <trunkurl> <branchurl> -m <message>
e.g. svn cp file:///svn/project/trunk file:///svn/project/branches/1.0 -m ‘my first branch’
Tags: branch, repository, subversion, svn, svnadmin, trunk
Posted in Programming, Uncategorized | No Comments »
April 26th, 2010
mysqldump -u <username> -p -v <database> > /tmp/dump.sql
mysqladmin -u <username> -p create <database>
mysql -u <username> -p <database> < /tmp/dump.sql
Tags: Database, mysql, Web
Posted in Database, Web | No Comments »