8/03/2007

强赞助人和HP services(notebook)


来美国前在国内买的二手,助人的,质量很不错。

前几天重装系统然后找不到无线驱动,非常感谢助人(join-2008.com)的同志帮忙找到发过来,非常感谢,呵呵,在这里小小广告一下~

最近风扇不知道怎么回事,一直转个不停,cpu的利用率只有2-5%的时候也是这样,这在以前是没有出现过的,以前这时候就知道一般是firefox占据90%cpu了。本来问题也不大,不过今天在安静的图书馆待着就觉出区别来了。在hp的网站上反映了一下,说偶笔记本最近风扇好像有异常,感觉好像是控制风扇的部分有问题了。没想到1个小时以后就收到一封信件问欧的地址电话,说要送一个dropbox过来。回信告知地址。刚才钓鱼回来收到信件说dropbox已经寄出..

这个服务做的到位阿,让人感觉真舒服。

btw,hp的小本用久了,感觉也很喜欢。唯一欠缺的就是指点杆做的比thinkpad还是要差很多。

8/01/2007

昨天练杆收获


crappie两条。准备蒸了吃:)

7/30/2007

ksh yourshell.sh or sh yourshell.sh?


Nearlly all bash shell scripts could run in ksh environments and in the past of my years of writing and executing shell scripts I rarely noticed the difference of these two way.

but it is different, I know that.

here's example which will show some point...

PS shell variable

Changing your Command Prompt (the PS1 shell variable)


The UNIX shell displays a command prompt when the system is ready to accept commands on the command line. The default command prompt is a single character (typically $ or #).

Changing or customizing the command prompt makes your life easier when jumping from system to system, or when logging in as multiple users on a single system (e.g. your personal/non-privileged account and root). To customize your prompt you will need to modify the PS1 shell variable.

PS1 stands for "prompt string 1" and defines the primary prompt string. If you wanted your command prompt to contain the current username and hostname separated by the "@" character and enclosed in brackets (e.g. [root@hawk] #), PS1 would need to be re-defined with the following command(s):


export PS1="[${LOGNAME}@$(hostname)] # "

or

PS1="[${LOGNAME}@$(hostname)] # "
export PS1

The shell variable LOGNAME contains the username you logged in with, and $(hostname) will execute the hostname command which will print the name of the current host system. Exporting PS1 makes it available to any subshells you create during the login session.

Since PS1 in this example was re-defined on the command line, it will be lost as soon as you log out. To retain this definition across login sessions you will need to add the previous command(s) to your shell initialization file (.profile if the Korn shell is your default shell).

Korn Shell Arrays

$ colors[0]=RED
$ colors[1]=GREEN
$ colors[2]=BLUE

Alternatively, you can perform the same assignments using a single command:

$ set -A colors RED GREEN BLUE

Adding a dollar sign and an opening brace to the front of the general syntax and a closing brace on the end allows you to access individual array elements:

${arrayname[subscript]}

Using the array we defined above, let's access (print) each array element one by one:

$ print ${colors[0]}
RED
$ print ${colors[1]}
GREEN
$ print ${colors[2]}
BLUE
$

If you access an array without specifying a subscript, 0 will be used:

$ print ${colors[]}
RED
$

The while construct can be used to loop through each position in the array:

$ i=0
$ while [ $i -lt 3 ]
> do
> print ${colors[$i]}
> (( i=i+1 ))
> done
RED
GREEN
BLUE

7/29/2007

UNIVERSAL CUSTOMIZER 1.0.0.8

http://www.u3community.com/viewtopic.php?t=४३४
这个冬冬好用!

This software will customize the U3-CDROM to any ISO file you want.

WARNING: Please backup all data on your flash drive before running this software. It is recommended that you backup the U3 CD-ROM before running this software. To do this follow these directions.

    1. Go to My Computer on the Desktop.
    2. Right-Click where it says 'U3-CDROM' are something similar to that name.
    3. Once the menu comes up click 'Open'.
    4. Now simultaneously press 'CTRL' and the 'A' key on the keyboard.
    5. Now simultaneously press 'CTRL' and the 'C' key on the keyboard.
    6. Now go to your desktop and make a new folder (name it anything like U3BACKUP).
    7. Go to your new folder.
    8. Now simultaneously press 'CTRL' and the 'V' key on the keyboard.
    9. Done.


HOW TO USE UNIVERSAL CUSTOMIZER 1.0.0.8

    1. Download the software Universal Customizer 1.0.0.8.
    2. Extract to the Desktop and execute Universal_Customizer.
    3. Insert a U3 Drive into your PC.
    4. Follow the on-screen instructions.
    5. Done.


INFORMATION
Updates: Changed the version variable to '*' so it should now customize all U3 Drives without a problem.
New: Packaged the zip file with a command-line ISO maker.

I scanned the files with Norton AntiVirus 2006.

This computer application is not able to make a classic(normal) flash drive U3 compliant.

The pre-packaged 'U3CUSTOM.ISO' file is the loader for the U3 SwitchBlade/Hacksaw.

You might have to run this software 2 or more times before it works properly (you might get an error message) and manually put your files back on the flash drive and re-install your U3 software titles.

To make your own 'U3CUSTOM.ISO' file follow these directions. (XP/NT/2003 Only)

    1. Navigate to the directory where you extracted Universal_Customizer.zip to and open the 'U3CUSTOM' folder.
    2. Copy your custom files* to that folder.
    3. Go to the parent directory.
    4. Execute 'ISOCreate.cmd' (It will create an ISO with the CD name of 'U3CDROM')
    5. Launch 'Universal_Customizer' and your done.

*Use the files in the folder where you backed up your U3 CD-ROM if you want to restore your U3 LaunchPad.

U3 FIRMWARE ISO's
Memorex LaunchPad
SanDisk LaunchPad

How to use these ISO files

    1. Download an ISO from one of the above links to the directory where you extracted UC 1.0.08 to in the 'BIN' folder.
    2. Rename your current 'U3CUSTOM' file to 'U3CUSTOM.OLD' or something(just to keep that file).
    3. Rename your newly downloaded ISO file to 'U3CUSTOM'.
    4. Go to the parent directory and execute 'Universal_Customizer'.
    5. Done.