Archive for 07月, 2009

habak作的桌面 星期四, 07月 23rd, 2009

screenshot-2009-07-23-20-32-40

沩山漂流不错 星期五, 07月 17th, 2009

车程2小时。

漂流最快需要1小时40分钟的样子。当然是我最快。 :D

screenshot-2009-07-17-21-51-11

foxr 星期一, 07月 6th, 2009

整理下code.google.com建立项目的步骤 星期日, 07月 5th, 2009

登录并建立项目。
http://code.google.com/hosting/ 里面的 “Sign in to create a project”
简单的命名项目(如fvwm-eexp),写项目描述和简介,选择subversion管理模式。

进入本地的目标工作目录。
☎ cd .fvwm

按照 http://code.google.com/p/fvwm-eexp/source/checkout 的说明,检出版本1。此过程,会产生.svn仓库目录。
☎ svn checkout https://fvwm-eexp.googlecode.com/svn/trunk/ fvwm-eexp –username exp.exp
输入密码,此随机密码在 http://code.google.com/hosting/settings。

项目仓库的.svn目录,会建立在项目名fvwm-eexp/下面。把仓库搬过来。因为我们并不一定使用项目名作为本地目录名。
☎ mv fvwm-eexp/.svn .
清除那些dump临时文件。
☎ sudo rm dump-*

引用:
subversion项目管理的核心,就是.svn。保证此目录,跟随在本地工作目录就是。

添加需要的文件。并提交(带上-m注释)。
☎ svn add config f.action f.thumbnail f.window thumbnail.bash desktop-pic.rc theme/
☎ svn ci -m “第一次提交”
会显示提交了版本2。

别人检出,可以只读的这样操作。
svn co http://fvwm-eexp.googlecode.com/svn/trunk/ fvwm-eexp-read-only

这里可以看到全部管理的项目。
http://code.google.com/u/exp.exp/
提交历史在这里看。
http://code.google.com/u/exp.exp/updates

pic 星期日, 07月 5th, 2009

screenshot

perldoc -q “insert a line” 星期六, 07月 4th, 2009

perldoc -q "insert a line"
Found in /usr/share/perl/5.10/pod/perlfaq5.pod
How do I change, delete, or insert a line in a file, or append to the beginning of a
file?
(contributed by brian d foy)

The basic idea of inserting, changing, or deleting a line from a text file
involves reading and printing the file to the point you want to make the change,
making the change, then reading and printing the rest of the file. Perl doesn’t
provide random access to lines (especially since the record input separator, $/,
is mutable), although modules such as "Tie::File" can fake it.