how to simulate slow internet connection

June 29, 2009 by paragasu


#apt-get install iprelay
$iprelay -b 2500 8000:localhost:80

point the browser to localhost:8000
you can see how website look like with connection speed of 2.5Kbps.

simulate slow internet connection

debian changing eth* name

June 23, 2009 by paragasu

changing eth0 name to eth1 and eth2 after each reboot. it is a bug in udev package.

make all image clickable

June 6, 2009 by paragasu

make all image in a page to have a direct link.


$content = ''; //content of a page with <img tag
$content = preg_replace('/<img alt=".*" \/>/',
'<a href="\\1">\</a>', $content);

preg_replace manual

dns with minimum downtime

June 5, 2009 by paragasu

it is important to change the TTL setting of the domain to a short time (60s) before migrating to new server.
and wait for the dns record to propagate before changing the dns records.

how to check what debian version

June 5, 2009 by paragasu


$cat /etc/debian_version

or


$lsb_release -a

check debian version

sdlmame – new game emulator for linux

June 5, 2009 by paragasu

sdlmame is a new alternative that replace the old xmame

sdlmame installation howto

not clickable link in IE

June 4, 2009 by paragasu

one of my client complaining to me about this problem (using IE 7). another hasLayout problem

not sure which one really fix the problem. But avoiding
<div>and <span> tags inside <a> tags might help.

can’t make links appear clickable in IE

not clickable image in a link

css tests and experiments

find all setuid or setgid files

May 19, 2009 by paragasu


#find / -type f \( -perm -4000 -o -perm -2000 \) -exec ls -ld '{}' \;

How do I find all setuid and setgid files?

wget download the whole website

May 19, 2009 by paragasu


$wget -r --level=1 -k -p http://websiteurl.com/

wget tips
mastering wget

debian iceweasel chinese language support

May 17, 2009 by paragasu

Practically, just need it so the webpage with chinese writing in it doesn’t look ugly

#apt-get install iceweasel-l10n-zh-cn


chinese debian mini howto