显示标签为“techskills”的博文。显示所有博文
显示标签为“techskills”的博文。显示所有博文

2010-09-07

Get BIN or ROOT path with repect to the running shell script

export BINPATH=$(dirname $(readlink -f $0))
export ROOTPATH=$(dirname $BINPATH)

2010-04-13

生者随机,取者有意

名人苍井空(维基英文中文)最近刚上Twitter,她有一条微博
我使用的是翻译。谢谢。在中国我的球迷。 I use a translator in chinese. Thank you for my fans in China.
请注意,这“球迷”机器翻译的是如此奇妙,令人遐想遍及宙海。谁说技术奇点(Technological singularity)还远着呢!它分明是已临近了!


我一直认为“智能”,那种自发产生的智能。智能不是一种能力,它更不是一种状态,而是一种结构。它有着连贯内容,正是“生者随机,取者有意”。

2007-11-03

Open source works best when it is done iteratively

Ian Murdock said this. It is right!

Now we have the ability to develop software iteratively. Moreover we want to have the ability to distribute it iteratively. The distribution makes people feel the world becomes more better and this process is smooth. So we need a more better package management that is adaptive in the evolution of software system. The Debian has given a great wonderful contribution. I hope the Indiana do so better.

More choices are better than no choice.

2007-10-21

Annoying acrobat's warning: The Organizer database is damaged

The acrobat 8 is brittler than 7. For a long time, I was annoyed by the warning - "The Organizer database is damaged and will be reset the next time Acrobat is launched".

SOLUTION:
To delete the following directory manually.

%appdata%\Adobe\Acrobat\8.0\organizer70

2007-09-26

减少能耗也是每位软件开发者的责任 - LessWatts

硬件运转能耗极大依赖于软件设计,这不仅依赖于操作系统而且也依赖于应用软件。

LessWatts ( http://www.lesswatts.org )上就有不少的技巧可供我们使用。

2007-02-07

Acrobat trouble shoot again, "This page contains renderable text"

There are always some papers that is not OCRed well. And more, I have tried to take these papers to do the 'OCR text recognization' once more with acrobat. I am frustrated, and the acrobat gave me a error, 'This page contains renderable text'. Googled it, there is a troubleshoot, but it did not work to me. Although there is still not a clear solution, thanks the post, which gives me a well explanation about the renderable text.

Finally, I found a solution that is quite simple:
  1. Export all images of the troubled pdf in TIFF format;
  2. Combine these images into a new pdf;
  3. OCR the new pdf

2005-11-25

Add CMD prompt option to context menu of Windows Explorer

Using the following registry, you can open a cmd prompt window by clicking 'Open CMD here' option of context menu of windows explorer. the default working directory of cmd prompt is the folder where the context menu poped up.

--------------------------------------
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt]
@="Open CMD Prompt Here"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt\command]
@="Cmd.exe /k pushd %L"

2005-11-24

Run Groovy in Windows Exploer directly

Groovy is not directly excuted by windows expoler in the current release, helped by ‘groovy.bat’ in cmd window. Using the following registry file, you can open or run groovy script conviently.

Note: you must adjust the groovy path in the following registry file, according with your enviroment.

-------------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.groovy]
@="groovyFile"

[HKEY_CLASSES_ROOT\.groovy\ShellNew]
"NullFile"=""

[HKEY_CLASSES_ROOT\groovyFile]
@="Groovy Program"

[HKEY_CLASSES_ROOT\groovyFile\Shell]
@="open"

[HKEY_CLASSES_ROOT\groovyFile\Shell\open]

[HKEY_CLASSES_ROOT\groovyFile\Shell\open\command]
@="\"D:\\java\\groovy-1.0-jsr-03\\bin\\groovy.bat\" \"%1\" %*"