« March 2009 | Main | May 2009 »

April 30, 2009

April 29, 2009

还是那个 9.04 中新增的酷酷的通知系统。

只需要用命令 notify-send 就可以了,直接输入命令

notify-send "Done" "东西下载完了"

看看效果。

第一个参数是标题,第二个参数是通知的内容。

其他参数大家 man 一下就晓得了,很简单的

9.04 发布好几天了,这几天一直被 mail-notification 的新邮件对话框头疼,根本不是宣传中的那个酷酷的新提醒方式,总是弹出一个对话框,烦死人。

终于在 http://ubuntuforums.org/showpost.php?p=6962165&postcount=11 这里看到了解决方法,其实也很简单,运行 gconf-editor,把 /apps/mail-notification/popups 里的 actions 里的三个东西清空,然后世界清静了。

April 27, 2009

April 25, 2009

April 24, 2009

April 23, 2009

April 22, 2009

现在知道如下三个


  • toilet

  • boxes

  • cowsay

可以执行下面几个命令看看效果
cowsay -f dragon ChaiFeng.com
boxes -d boy <<< ChaiFeng.com
toilet ChaiFeng.com

更详细的内容就去 man 吧

需要安装一个名叫"vrms"的软件,vrms 其实就是 "virtual Richard M. Stallman" 的缩写 :D

使用也很简单,直接运行 vrms 就可以。

看看我用了哪些非自由的软件:

taylor@taylor-desktop:~$ vrms
           Non-free packages installed on taylor-desktop

fglrx-modaliases Identifiers supported by the ATI graphics driver
human-icon-theme Human Icon theme
linux-generic Complete Generic Linux kernel
linux-restricted-modules- Non-free Linux 2.6.24 modules on x86/x86_64
linux-restricted-modules- Non-free Linux 2.6.27 modules helper script
linux-restricted-modules- Restricted Linux modules for generic kernels
nvidia-173-modaliases Modaliases for the NVIDIA binary X.Org driver
nvidia-177-kernel-source NVIDIA binary kernel module source
nvidia-177-modaliases Modaliases for the NVIDIA binary X.Org driver
nvidia-180-modaliases Modaliases for the NVIDIA binary X.Org driver
nvidia-71-modaliases Modaliases for the NVIDIA binary X.Org driver
nvidia-96-modaliases Modaliases for the NVIDIA binary X.Org driver
nvidia-glx-177 NVIDIA binary Xorg driver
opera The Opera Web Browser
picasa Image management application from Google
pptview view PowerPoint slide shows
rar Archiver for .rar files
skype Skype - Take a deep breath
sun-java6-bin Sun Java(TM) Runtime Environment (JRE) 6 (architecture
sun-java6-jdk Sun Java(TM) Development Kit (JDK) 6
sun-java6-jre Sun Java(TM) Runtime Environment (JRE) 6 (architecture
sun-java6-plugin The Java(TM) Plug-in, Java SE 6
tangerine-icon-theme Tangerine Icon theme
tango-icon-theme Tango Icon theme
Reason: Creative Commons Attribution-ShareAlike 2.5 License
unrar Unarchiver for .rar files (non-free version)
Reason: Modifications problematic

Non-free packages with status other than installed on taylor-deskto

linux-restricted-modules- ( dei) Non-free Linux 2.6.24 modules on x86/x86_64

Contrib packages installed on taylor-desktop

flashplugin-nonfree Adobe Flash Player plugin installer
gstreamer0.10-pitfdll GStreamer plugin for using MS Windows binary codecs
msttcorefonts Installer for Microsoft TrueType core fonts
nvidia-common Find obsolete NVIDIA drivers
nvidia-kernel-common NVIDIA binary kernel module common files
nvidia-settings Tool of configuring the NVIDIA graphics driver

26 non-free packages, 1.4% of 1897 installed packages.
6 contrib packages, 0.3% of 1897 installed packages.


April 21, 2009

  • eGuideDog is a software system for the blind. Now voice web browser, text-to-speech software are under development. More software such as voice mail client and special tools will be developed. An easy-to-use Linux distribution for the blind is the goal. 一个面向盲人的软件系统,而且还是跨平台的。
  • TTS(余音)是一个TTS软件。它比eSpeak的设计更简易,但文件较大。由于使用了真人发声,它比eSpeak的发音更自然。

April 20, 2009

April 19, 2009

April 18, 2009

April 16, 2009

今天 InfoQ 上《QCon北京站2009相关之博客+照片=春色满园》一文的最后有我的相册链接。当然了,我不是来说这个的。是关于最后面的"白璧微瑕"里面提到

无线网络一直不够稳定,电源插座准备也不足

电源插座不足确实是个挺大的问题,要不然就是坐在最后面。然后............(看全文)

有个叫做 qconbeijing 的无线路由还是默认用户和口令,即 admin/admin。

但是我发誓,我没有干任何坏事,也没有告诉任何人。只是悄悄的重启了一下无线路由,这样网速能快一点。

下次注意点,太低级的错误了。

要是有人恶意使用,问题还是挺大的。

April 15, 2009

  • Omegle is a brand-new service for meeting new friends. When you use Omegle, we pick another user at random and let you have a one-on-one chat with each other. Chats are completely anonymous, although there is nothing to stop you from revealing personal details if you would like. 简单说就是随机的和某人聊天。

April 14, 2009

这次去参加 QCon 最让我失望的是手中的相机,过年的时候把用了好几年的相机给了我妹妹。这次借了一个卡片机,不知道是太傻瓜了我不会用,还是相机就有问题,大部分照片要么是模糊要么是重影,奇怪的是人像基本上都还不错。


April 13, 2009

平时经常用 curl 和 wget 下载一些东西,但是有的网站要判断 User-Agent。

我们可以使用 curl 和 wget 的 --user-agent,但每次都加参数也很不方便,修改配置文件就是一劳永逸的办法了。

把下面的代码添加到 ~/.curlrc
--user-agent=Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8

把下面的代码添加到 ~/.wgetrc
header = User-Agent: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8

April 12, 2009

虽然说为了环保为了节省,还是少打印,多看电子书。可是为了自己的身体,整天坐在电脑前面腰酸背痛的,打印出来就可以舒舒服服的躺在床上随手翻阅了。但是也有不少的 PDF 文档禁止打印,Windows 上有很多现成的工具,Linux 也有,而且是合法的。

解除 PDF 的打印限制其实很简单,就是把 PDF 转换成 PostScript,然后再转换回来。

首先,需要确认安装了 xpdf-utils,Debian/Ubuntu 中安装就很简单,sudo aptitude install xpdf-utils。

然后执行 pdf2ps filename.pdf 就可以生成一个 filename.ps 的文件。如果打开 PDF 需要口令,那就加上 -upw 参数,类似这样 pdf2ps -upw yourpassword filename.pdf

最后再 ps2pdf filename.ps filename-1.pdf 就会生成一个 filename-1.pdf 的文件了,这个 PDF 就没有了以上的那些限制。

April 7, 2009

April 6, 2009

12点37分准时发车,下午4点准时到站,出了西站就打车,4点半的时候已经到了酒店。
如家的网速也没有传说中的那么慢,觉得挺快啊。
屋子里面果然很温馨,粉红色的床单上面满是心,暖色调的灯光,只可惜我们是两个大老爷们睡一个屋。
电视也很大,壁挂的。

April 5, 2009

今天 man mount 的时候,发现一个参数 --bind,可以用来 mount 普通目录,在 2.4.0 以上的 Linux 中可以使用。

比如,现在有个目录 doc,然后再建一个新目录 Documents,运行命令 sudo mount --bind doc Documents 就可以把 doc 目录挂载到 Documents 上,这两个目录的内容一模一样,就像做了一个符号链接。

运行 mount 查看一下当前的挂载列表,会发现有这么一条
/home/chaifeng/doc on /home/chaifeng/Documents type none (rw,bind)

April 4, 2009

April 3, 2009

1、2009年4月1号,太原终于正式开通了动车组。
2、平时的火车票都是提前5天预售,我准备6号出发,1号晚上8点就可以买票了。
3、到了火车站才知道,动车组提前20天预售,时间真是很长很长啊。
4、动车组虽然新开,但是票一样的紧张,下次买票一定要赶紧啦,1号晚上去买6号的票,上午的已经买不到了,只好买到12点37分的。当然了,如果大家的要求不象我这么高,二等坐席还是有票的。
5、买票之前,就听小贺同学说了,动车组的票是蓝色的,还有什么磁条,得去车站排队买才是这种票,预售票点的还是普通票。于是我赶晚上10点半到了火车站去排队买票,买票的人还真不少,排了大半天,买到了,可是......可是......竟然是普通票!!!
6、第二天,也就是4月2号,帮胡同学和杨同学买票,今天的票竟然就是传说中的蓝色票,有没有磁条没看见,在火车站里所有买到动车组的票看到的都是蓝色!!!天哪,难道4月1号,新票还没有印出来吗?
7、预览票图,屎黄屎黄的是我上京赶集的票,蓝哇哇的是胡同学的票。
dongchezu.jpg
8、昨天买新衣服了,一件杰克穷死的风衣还一件长袖带帽的。嗯,上次买衣服已经是前年的事情了。
9、最近很忙很忙。
10、还是动车组,一直宣传说是3个小时就可以到北京,但宣传的是最快的那趟。买下票以后才知道,我碰巧坐的是最慢的一趟,3个半小时到,中间还要停三站!胡同学12点半的票就是直达,耗时2小时59分!!!
11、发现自己连话都不会说了

April 1, 2009