Disable DPMS on Linux

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)

Web 2.0 and social media revolution

July 2nd, 2010

Startup Quotes

July 2nd, 2010


This phrase have been told years before Scotty was even born, but I still must agree with him.
Startup Quote

The Diva Dance from the Fifth Element

July 2nd, 2010

I love this <3



Here is the original:

How secure is your password?

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?

Installing Ubuntu server to Virtualbox

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.

Disallow DHCP client to change hostname

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.

Creating new branches on SVN

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’

How not to use Powerpoint

May 17th, 2010

How to rename MySQL database

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