http://www.zhihua-lai.com is a fun place. Zhihua Lai has created this place and he has put all the useful, interesting stuffs on the site (kinda as a web storage. :)
If you are happy, come to this site a lot more often and also, any advices are welcome.
You will find my CV (Education, Experience and etc), pictures, music, some programs etc on this site.
E: admin AT zhihua-lai DOT com
Thank you for reading this.
Zhihua, 6/November/2007
Blog
分類: 所有 | 亂七八糟(14) | 計算科學(13) | 生活(11) | 成功(4) | 有意思(10) | 怀念(3) | 分享(4) | 共: 13 - 統計
( 每頁 : 8 9 10 11 12 13 14 15 16 )
( 頁數 : 1 2 ) 后一頁 »
最新評論
1 -
Windows 批處理編程 - 2008-12-19_02.11AM.html Power of windows command shell
I managed to use just pure windows command shell scripting to process around 500M text data ....
pure means not external exe/com files needed,,, just windows built-in commands (e.g. for, call, if ... )
amazing,,, windows scripting (*.bat, *.cmd) can just do almost anything... it is as powerful as linux shell script...
ok ,, here is the task....
there is a csv file,, let's say A.csv, which contains something like this...
1 5 2 18 0 24 18 0 54
2 5 3 18 1 14 18 1 44
...閱讀全文>>Top |
類別: 計算科學 |
閱讀 (96) |
搜索 (2881) |
評論 (0)
2 -
YES!! - 2008-12-10_19.20PM.html
%yes
y
y
y
y (Ctrl+C)
%
yes .... now i will talk about something about "yes" utility...
in linux,, usually located at /usr/bin/, there is a file called "yes"
...閱讀全文>>Top |
類別: 計算科學 |
閱讀 (157) |
搜索 (3416) |
評論 (0)
3 -
Spectrum Master - 2008-12-10_13.59PM.html Spectrum Master
I got to play around with this machine these days... Spectrum Master MS2721B, MS2723B, MS2724B....
When I finished the measurements,,, i had to copy around 100M data from the SM to USB stick.
anyway, it took longer than i expect (maybe it does not support USB2.0 transfer)...
Why not use FTP??? I tried,,, and i couldn't login... i couldn't find access details on the manual or internet ..
What the hell is the account name and password to login to vxWorkds 5 ftp?
...閱讀全文>>Top |
類別: 計算科學 |
閱讀 (61) |
搜索 (2946) |
評論 (0)
4 -
U 盤病毒解決方案 - 2008-12-2_07.36AM.html
A startup script to enable autorun.inf virus protection
Some virus create autorun.inf file to enable automatic file execution when you browse the folder,, which is very annoying... you can create a folder with the same name and in this case the virus would have trouble to write to that file. "Autorun.inf" even can not be overwritten because it is a folder...
Put the script at the startup to make sure every drive has a hidden folder "autorun.inf"
@echo off
REM A Batch Script to Create Folder 'autorun.inf'
REM This can prevent autorun.inf virus.
REM Free to use, put at startup recommended.
REM by Zhihua Lai, 2 - Dec - 2008
...閱讀全文>>Top |
類別: 計算科學 |
閱讀 (77) |
搜索 (2908) |
評論 (0)
5 -
DELPHI 動態數組小結 - 2007-09-29_13.50PM.html 總結出几點關于動態數組的
﹛﹛動態數組在內存中一定是連續存放的
﹛﹛動態數組每次setLength,﹛會把以前在內存的東東拷貝到新的位置﹛然后刪掉以前的東東(所以效率很低),所以盡可能一次性分配足夠大的內存
﹛﹛動態數組是自動管理的,﹛當引用計數為0(可以賦為NIL時)﹛內存自動銷毀﹛(不包括用new產生的和Object)
Top |
類別: 計算科學 |
閱讀 (84) |
搜索 (2709) |
評論 (0)
6 -
XP的批處理文件 - mvjpg.bat.txt I have come to a problem... i have a pictures folder which has lots of subdirs and
lots of irregular filenames such as "kdjfksjdf.jpg", "kdjflkajsdfasd.jpg"
usually i renamed them randomly to avoid the same filenames when i grabbed it from internet...
So i want to upload them to the website and i want them arranged in good order....
Each folder should be ordered by numbers 1, 2, 3.....
Each folder has at most 39 files, 1.jpg, 2.jpg, .... 39.jpg
How can I do this?
So .... Super XP has provided batch file....
...閱讀全文>>Top |
類別: 計算科學 |
閱讀 (155) |
搜索 (3023) |
評論 (0)
7 -
56 Bytes - 2007-08-14_17.43PM.html @rem This file is generated by machine... at 2008-05-29 14:05:24
@rem .COM file to .BAT convertor,,, programmed by admin@zhihua-lai.com
@if exist %0.bat %0.bat
@debug < %0
@dir /l tv.com
@goto eof
e0100 b8 12 00 cd 10 b9 01 00 ba 01 00 81 f9 80 02 7c
e0110 0a b9 01 00 42 81 fa e0 01 7f 10 8b c1 48 b3 50
e0120 f6 f3 fe c0 b4 0c cd 10 41 eb e0 b4 01 cd 21 b8
e0130 03 00 cd 10 b4 4c cd 21
...閱讀全文>>Top |
類別: 計算科學 |
閱讀 (152) |
搜索 (2273) |
評論 (0)
8 -
Delphi 動態數組 - 2007-06-19_01.19AM.html I was stuck the whole afternoon in debugging... finally i found something interesting...
Every time Delphi's Dynamic Array , (setLength fun) is extended, the original array cells' addresses may be changed...
Because I use TTreeView to link its Data (Pointer) to a particular cell of a dynamic array.
e.g.
TreeView.Data:=@dynamic_array[i];
...閱讀全文>>Top |
類別: 計算科學 |
閱讀 (92) |
搜索 (2315) |
評論 (0)
分類: 所有 | 亂七八糟(14) | 計算科學(13) | 生活(11) | 成功(4) | 有意思(10) | 怀念(3) | 分享(4) | 共: 13 - 統計
( 每頁 : 8 9 10 11 12 13 14 15 16 )
( 頁數 : 1 2 ) 后一頁 »