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: , ,

12:08:00 by fishy - thought - Permanent Link

no comments yet - no trackbacks yet - karma: -1 [+/-]

Monday, February 07, 2005

Linux Note: Change console resolution

Original post

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:

depth640*480800*6001024*7681280*1024
8-bit769771773775
15-bit784787790793
16-bit785788791794
24-bit786789792795

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: , ,

01:29:00 by fishy - linux - Permanent Link

no comments yet - no trackbacks yet - karma: 2 [+/-]

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: , ,

00:18:00 by fishy - linux - Permanent Link

no comments yet - no trackbacks yet - karma: 2 [+/-]

A blog about open source, patches, thoughts and geeks