La Vita è Bella
Tuesday, February 22, 2005
Just remember a program I've wrote
I've wrote a PHP program to verify proxy servers in a MySQL db. It use wget to direct download a webpage, and then use the proxy to download the webpage, and diff them.
So I need 2 temp filename for the 2 downloaded file, I forgot the function &tmpfile&, so I generate 2 random numbers, and use the md5 hashs of the numbers as the filename...
tags: php, md5, random
12:08:00 by fishy - thought - Permanent Link
no comments yet - no trackbacks yet - karma: -2 [+/-]
Monday, February 07, 2005
Linux Note: Change console resolution
Just change the grub setting(the file "/boot/grub/menu.lst", or press "e" in grub menu), add "vga=xxx" to the end of the "kernel" line, which xxx is a number to define the resolution as the following table:
| depth | 640*480 | 800*600 | 1024*768 | 1280*1024 |
|---|---|---|---|---|
| 8-bit | 769 | 771 | 773 | 775 |
| 15-bit | 784 | 787 | 790 | 793 |
| 16-bit | 785 | 788 | 791 | 794 |
| 24-bit | 786 | 789 | 792 | 795 |
I've picked 792 for 24-bit 1024*768, and see the wonderful cute console :) But maybe 24-bit is a waste for console, maybe I should pick 773 or 790.
tags: linux, resolution, console
01:29:00 by fishy - linux - Permanent Link
no comments yet - no trackbacks yet - karma: -1 [+/-]
Saturday, February 05, 2005
Xfce rocks! (and Hiweed-Debian rocks)
I've burned the latest Hiweed-Debian Desktop and LiveCD today. Hiweed-Debian is a Debian distribution with only less than 300M ISO, good Chinese support and Xfce X system.
Xfce and Hiweed-Debian really rocks! Xfce is so cool and lightweighted. Full function, well support for Qt and gtk applications, small and fast.
But the UTF-8 support of Hiweed-Debian is not well, I can't mount my NTFS and FAT partitions use the utf8 charset. Hope the next version can add the full UTF-8 support, just like SuSE and other distributions.
tags: xfce, debian, linux
00:18:00 by fishy - linux - Permanent Link
no comments yet - no trackbacks yet - karma: 2 [+/-]


