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) | 搜索 (3414) | 评论 (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....

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) | 搜索 (2945) | 评论 (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) | 搜索 (2906) | 评论 (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) | 搜索 (2272) | 评论 (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) | 搜索 (2314) | 评论 (0)




分类: 所有 | 乱七八糟(14) | 计算科学(13) | 生活(11) | 成功(4) | 有意思(10) | 怀念(3) | 分享(4) | 共: 13 - 统计
( 每页 : 8 9 10 11 12 13 14 15 16 )
( 页数 : 1 2后一页 »


  Google `Zhihua Lai`   Hosted On Fasthosts Locations of visitors to this page

最后更新: December 05 2007 22:18:00