Saturday, December 20, 2008

Wednesday, December 3, 2008

Neurological Test

This is a REAL neurological test. Sit comfortably and be calm.

1. Find the C below. Do not use any cursor help.

OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOCOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO


2. If y ou already found the C, now find the 6 below.

99999999999999999999999999999999999999999999999999
99999999999999999999999999999999999999999999999999
99999999999999999999999999999999999999999999999999
99999999999999999999999999999999999999999999999999
99999999999999999999999999999999999999999999999999
99999999999999999999999999969999999999999999999999
99999999999999999999999999999999999999999999999999
99999999999999999999999999999999999999999999999999
99999999999999999999999999999999999999999999999999
99999999999999999999999999999999999999999999999999


3. Now find the N below. It’s a little more difficult..

MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM


This is NOT a joke.
If you were able to pass these 3 tests, you can cancel your annual visit to your neurologist.
Your brain is great and you’re far from having Al zheimer Disease. Congratulations!

Wednesday, October 22, 2008

吃素

尝试尝试

Wednesday, October 15, 2008

做梦的

甲:你年薪多少?
乙:800万甲。
甲:那一个月有70万哦!
乙:是的,这是基本工资。
甲:不错嘛,做什么的?
乙:做梦的。

Tuesday, October 14, 2008

Use Total Commander With The Special Profile

Create a shortcut with the target like this:

"c:\totalcmd\TOATLCMD.exe" /I=".\wincmd.ini" /F=".\wcx_ftp.ini"

Swap Caps_Lock And Escape

~/.Xmodmap

remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_lock


~/.xinitrc

if [ -f ~/.Xmodmap ]; then
xmodmap ~/.Xmodmap
fi

Some Useful Commands

dvtm || dynamic virtual terminal manager
Tiling window management for the console

xwininfo || window information utility for X
Xwininfo is a utility for displaying information about windows

usermod groupmod finger id groups
Something about user and group

Sunday, October 12, 2008

Colorful Output Of Pacman

Leprechaun's Perl Edition:

 1 #!/usr/bin/perl
 2 use strict;
 3 use warnings;
 4 my $package = shift;
 5 my @res = `pacman -Ss $package`;
 6 foreach(@res){
 7     if (/^(\S+?)\/(\S+)\s+(.+)$/){
 8         print "\033[1;31m $1\033[0;37m/\033[1;36m$2\033[0;37m\033[1;34m $3\033[0;37m\n" if $1 eq "core";
 9         print "\033[1;32m $1\033[0;37m/\033[1;36m$2\033[0;37m\033[1;34m $3\033[0;37m\n" if $1 eq "extra";
10         print "\033[1;35m $1\033[0;37m/\033[1;36m$2\033[0;37m\033[1;34m $3\033[0;37m\n" if $1 eq "community";
11     }
12 }


Bash Edition:

1 #!/bin/bash
2 echo -e "$(pacman -Ss $@ | sed \
3 -e 's#\(core/\)\(.*\)#\\033[31m\1\\033[0;37m\\033[36m\2\\033[0;37m#g' \
4 -e 's#\(extra/\)\(.*\)#\\033[32m\1\\033[0;37m\\033[36m\2\\033[0;37m#g' \
5 -e 's#\(community/\)\(.*\)#\\033[35m\1\\033[0;37m\\033[36m\2\\033[0;37m#g' \
6 -e 's#^.*/.* [0-9].*#\\033[0;36m&\\033[0;37m#g' )"

Friday, October 10, 2008

13款Firefox Gmail扩展

[Zz cnBeta.COM] http://www.cnbeta.com/articles/66696.htm

Gmail很强,但如果你使用Firefox, 配合一些Firefox Gmail扩展,則能让你的Gmail更强,得到更好的使用体验。比如你想要一个更具活力的个性签名?你想从右到左的书写Gmail邮件?你想在同一个浏览器中打开多个Gmail帐户?下面13款Firefox Gmail扩展能帮到你。

Better Gmail 2

这个Firefox扩展插件,结合一些最受欢迎的Greasmonkey脚本,易于安装扩展。你可以通过简单的复选框接口控制要使用哪些功能。

Blank Canvas

这个Firefox Gmail扩展能让你为你的Gmail实现丰富多彩的HTML签名。

Email This! Bookmarklet Extension

将你所选择的联系收件人,标题,文字进行突出显示。将与多个电子邮件地址如雅虎和独立的客户,但重点是在Gmail。

Gmail Checker

可以让您将检查新的电子邮件对传统的Gmail帐户和谷歌应用服务的帐户。

Gmail Manager

这个Firefox Gmail扩那饿除了可以给你视觉和音频的新邮件通知,它也将让您在同一个浏览器中登录到多个Gmail帐户。

Gmail Notifier

可以让你留意到多个Gmail帐户的信息状态,甚至还支持主机邮箱帐户。

Gmail RTL

这个Firefox扩展能让你从右到左的书写Gmail邮件, 不过这只是提供在希伯来文和阿拉伯文版本的服务。

Gmail S/MIME

可以让你通过Gmail系统发送和接受S/MIME加密信息。

Gspace

你的Gmail太大了,这个Firefox扩展可以把你的Gmail变成一个虚拟存储设备。

GTDInbox

GTDInbox 把你的Gmail收件箱变成一个组织工具,让您轻松整合您的邮件和项目。

WebMail Notifier

这并不是一个完全的Firefox扩展,但它还是很实用,当收到新邮件时,进行通知。

WiseStamp

这个Firefox扩展可以让你为Gmail帐户创建一个更加充满活力个性签名,个性签名将展示你的社会网络联系,即时的姓名和更多。还可以建立企业和个人签名。

Xoopit

Xoopit将修改您的Gmail搜索功能,这样您可以搜索您的附件,图片和视频,以及自己的电子邮件。您还可以添加评论,图片和转移它们到你的博客或是Facebook。

Monday, October 6, 2008

苹果牛奶瘦腹法

另类的减肥方法

苹果牛奶瘦腹法每次只需两天,到第三四天就恢复正常饮食,然后再开始两天。一般在第一个周期内就可以看到明显的瘦腹效果,如果重复两到三个周期,则效果更稳定,但过程当中一定要忍耐,要忌口!

第一天:苹果1公斤(五六个,最多不能超过七个)。在这一天里,全天只能吃苹果,不能喝水,不能喝酸奶,不能吃任何东西。吃的时候将苹果洗净,然后一小口一小口地吃。

第二天:酸奶或脱脂牛奶1000ml,分成六等份,每次喝一份。全天只喝牛奶,不能吃其他任何东西,渴了就用牛奶代替水。(也可牛奶、酸奶同时喝,但要注意分量)

如果达到理想体重后,就可以用这个方法再来一遍。中间是不能喝水的,也不能把苹果和牛奶混在一起吃,必须单独分开吃,这样才有效。不能喝水,是因为我们在减肥期间如果摄入了水分,那么身体肯定要先消耗摄入的水分,而不会消耗体内的水分。吃苹果日断水,基本上减的就是身体的水分,到了喝牛奶日,水分减得差不多了,就会减到脂肪。

关键提示:喝牛奶日很关键,不能喝水。如果循环几回,体重肯定可以下来,而且会比较切实地减掉体内的脂肪。建议可以把这个方法放在周末实行,作为清肠减重的好方法。适合人群:轻微超重,且肠胃健康者。

Thursday, September 25, 2008

西门子与东方西门子

今天去了上海西门子输配电集团参观。

十点到达目的地,一行四十几人首先来到了他们的客户中心听几个经理介绍输配电集团的几个子公司。约莫讲了一个多小时,西门子方面就为我们准备了一些茶点。食物虽说不上丰盛,但也可口,有些巧克力饼,小蛋糕,咖啡,红茶,葡萄,哈密瓜等等。

到了正午,西门子方面就带领我们去了附近的小田园酒店就餐。餐桌是他们事先预定好的。酒菜都很好吃。

这让我想起了去年暑假去的号称东方西门子的上虞卧龙电机参观的时候。正午,卧龙电机方面发给我们每人6块的食堂餐券就餐。

Wednesday, September 24, 2008

Open Source Project Logo Font Collections

The Original Link: http://phorolinux.com/open-source-project-logo-font-collections.html

This font is Ubuntu-Title. It was made using Inkscape and FontForge.



This font is Laudatio BQ Condensed. It is a commercial font. For more information, you can click here.



This font is Cholla. It’s also commercial font. For more information, you can click here.



This font is Kabel Book. You can download it here.



This font is Meta Bold LF-Roman. For more information, you can click here.

Tuesday, September 23, 2008

Sunday, September 21, 2008

关于爱情[转自内网论坛]

青4-3XX寝室,我恨你们

1、暗恋A

大一的时候,喜欢上了她们寝室的A,因为比较腼腆所以不敢直接表白。正好她们寝室的B我和是高中同学,当时玩的也比较好,所以就找B来帮着牵线。因为要打听A的一些喜好,于是差不多有一个月的时间每天和B在一起。可是似乎一直没什么进展,就有点担心是不是A对我没感觉,这时候B就总是鼓励我。我很感动,突 然发现B其实也很漂亮,只是一直很熟就没往那方面想,结果自然而然的后来反而和B成了恋人关系。

2、原来是B骗我

因为B做了我女朋友,所以和她们寝室其他人包括A都渐渐熟悉了起来。有一天去找女朋友,正好她下楼有事,A一个人在寝室。A就开玩笑说,你们小夫妻感情 还真好,我也开玩笑,当初本来追的是你,可惜你看不上我啊。A就很认真的说,胡说我怎么不知道你追过我。我很奇怪,一问才知道当初B根本就没和A说我喜欢 她的事。顿时我觉得自己被骗了,于是和B分手,让A做了我女朋友。

3、C

和B分手后,她总是不死心,总是缠着我还问我为什么和她分手。渐渐的也传出来我喜新厌旧的传闻。很郁闷,可周围又没什么朋友,就找她们寝室的C谈心。C就 说,你怎么搞的,和B好好的怎么又和A好了。我说B骗我,C就说我们一个寝室,我还不知道啊,A开始不喜欢你,后来妒忌你们故意那么说的。当时我心就凉 了,狂喝酒后来C把我掺到望月,然后就发生了不该发生的事。

4、结局

因为和C只是一时冲动,所以也没长久,很快就分了。经过这几件事,我发现我已经完全不相信感情了。青4-3XX寝室,你们毁了我。

Saturday, September 20, 2008

阿弥陀佛了

佛祖保佑。。。

Friday, September 19, 2008

无语

觉得自己真是失败啊,自己那么重视的事情居然会搞错时间。

Wednesday, September 17, 2008

Typing的时光(2)

2007-11-30 17.29.00



搞定宋体粗体破裂
2007-12-02 17.50.00



KDE3
2007-12-11 00.57.00



hintfull and SimSun
2007-12-12 14.40.00

Typing的时光(3)

一张伪浮云
2008-1-4 16.06.00



kid上传的一个插图
2008-1-21 14.28.00



Xfce4自带的混合特效
2008-2-26 16.26.00



quark's Vmware Fusion
2008-4-21 15.40.00



终于Compiz Fusion了
2008-5-13 23.11.00



传说中的圆柱体和球体
2008-6-17 01.08.00





最后来张终极浮云,当然不是我的>_<



(完)

Typing的时光(1)

第一次安安份份的使用了3个月xp,虽然每天还在逛Linux版,但是热情明显不及过去。今天,沉沦已久的桌面浮云楼被小强给顶了起来,不知不觉浮云楼已有111页,而我第一次涉足此楼时才30来页。曾几何时浮云是我心中永远的痛,随着ATI开源驱动的改善,我最终也尝试到了浮云的滋味。突然心血来潮把浮云楼里我发的部分Capture给找了出来,以此纪念我那逝去的终日typing的时光。

第一张我自己的桌面截图,虽然还没浮云
2007-11-13 23.09.09



时隔16天,第一次真透明
2007-11-29 19.13.00

Streaming Radio With Icecast And Ezstream

Leprechaun Posted In cc98

出来混迟早是要还的
尤其是答应pp的优子mm的事情
仅以此文献给我日夜yy的优子,并求正面清晰无码照片一张

好了,开始正文了
我用的是Gentoo,就以Gentoo为例,其他版本也类似

1.首先安装Icecast

这是一个Network Streaming Server
为了偷懒,我把所有的use标签都选上了

安装好以后配置之

sudo vim /etc/icecast2/icecast.xml

基本默认即可
我把我改的给说明一下:

 1 <authentication>
 2 <!-- Sources log in with username 'source' -->
 3 <source-password>abcedf</source-password>
 4 <!-- Relays log in username 'relay' -->
 5 <relay-password>abcdef</relay-password>
 6
 7 <!-- Admin logs in with the username given below -->
 8 <admin-user>web_login</admin-user>
 9 <admin-password>web_pass</admin-password>
10 </authentication>


前面的source-password和relay-password主要是为了能够relay用的
relay相当于转发,就是将上游的流媒体转发至其他机器,也可以理解为mirror
source-password就是登录上游server的密码,这必须和上游server的relay-password一样
本配置没有这种情况,因此乱写也可以
admin-user和admin-password是用来通过网络管理用的

1 <hostname>fairland.8866.org</hostname>

hostname的设置

1 <listen-socket>
2 <port>8000</port>
3 </listen-socket>


端口的设置

1 <basedir>/usr/share/icecast</basedir>
2 <logdir>/var/log/icecast</logdir>
3 <webroot>/usr/share/icecast/web</webroot>
4 <adminroot>/usr/share/icecast/admin</adminroot>


这些设置类似Apache,因为Icecast也是一个Web Server,也要像Apache一样指明document root等位置

1 <security>
2 <chroot>0</chroot>
3 <changeowner>
4 <user>icecast</user>
5 <group>nogroup</group>
6 </changeowner>
7 </security>


用户设置,从安全性的角度考虑,别使用root

然后

chown icecast:nogroup -R /var/log/icecast

接着

/etc/init.d/icecast start

如果一切顺利的话就ok了,反之自己根据提示信息找下原因,一般都是权限问题

2.接着安装Ezstream

我发现这个配置比较简单,所以就用了这个

sudo emerge -av ezstream

选上taglib,这样支持的类型多一点

Gentoo默认没有在/etc下面给你放什么配置文件,为了便于管理可以

sudo mkdir /etc/ezstream

配置文件可以从/usr/share/doc/ezstream-*/example下面拷贝,基本都不用改

我是只server mp3文件,所以就把ezstream_mp3.xml.bz2拷到了/etc/ezstream下
然后bzip2 -d解压

修改之
sudo vim ezstream_mp3.xml

1 <url>http://fairland.8866.org:8000/stream</url>
2 <sourcepassword>kangta</sourcepassword>
3 <format>MP3</format>
4 <filename>playlist.m3u</filename>


url设置和filename设置,这关系到后来填入的internet radio网址
形式就是url/filename

其他改不改无所谓,最后就是在此目录下新建一个playlist.m3u
里面填入mp3的绝对地址

kernel@fairland:/etc/ezstream$ cat playlist.m3u
/home/kernel/music/01 Mirror.mp3
/home/kernel/music/02 (don't) Leave me alone.mp3
/home/kernel/music/03 talkin' 2 myself.mp3
/home/kernel/music/04 decision.mp3
/home/kernel/music/05 GUILTY.mp3
/home/kernel/music/06 fated.mp3
/home/kernel/music/07 Together When....mp3
/home/kernel/music/08 Marionette -prelude-.mp3
/home/kernel/music/09 Marionette.mp3
/home/kernel/music/10 The Judgement Day.mp3
/home/kernel/music/11 glitter.mp3
/home/kernel/music/12 MY ALL.mp3
/home/kernel/music/13 reBiRTH.mp3
/home/kernel/music/14 untitled ~For Her~.mp3


当然没有人会这么傻的手工打

ls /home/kernel/music/*.mp3 | sudo tee playlist.m3u

最后
启动之

kernel@fairland:/etc/ezstream$ ezstream -c /etc/ezstream/ezstream_mp3.xml

Monday, September 15, 2008

终于体会到什么叫做人多

鼓励当代青年不生小孩,为社会做贡献。

Friday, September 12, 2008

Use Gvim Diff With Total Commander

The Gvim's Diff is more powerfull than Total Commander's "Compare By Content". So we can replace the "Compare By Content" with Gvim's Diff.

Add a new item in "Change Start Menu" at the menu bar. The command is the path of gvim.exe. And the parameters is "-d %P%N %T%M". Leave the start path blank. The shortcut key is optional.

If you want to compare two files, select them at the source window and target window. At last click the menu item in start menu.

My Vimrc

  1 " Get out of VI's compatible mode
  2 set nocompatible
  3
  4 " Set GUI options
  5 if has("gui_running")
  6 "    set guifont=Courier\ New:h10
  7 "    set guifont=Lucida\ Console:h9
  8     set guifont=Consolas:h9
  9     set guioptions=
 10 "    colorscheme torte
 11     colorscheme desert
 12 "    colorscheme evening
 13 else
 14     colorscheme ron
 15 endif
 16
 17 " How many lines of history VIM has to remember
 18 set history=100
 19
 20 " Set to auto read when a file is changed from the outside
 21 set autoread
 22
 23 " No sound on errors
 24 "set novisualbell
 25 "set visualbell
 26 set noerrorbells
 27 set guicursor=a:blinkon0
 28
 29 " Enable filetype plugin
 30 filetype plugin on
 31 filetype indent on
 32
 33 " Enable syntax highlight
 34 syntax on
 35
 36 " Highlight search things
 37 set hlsearch
 38
 39 " Show where the pattern, as it was typed so far when searching
 40 set incsearch
 41
 42 " Set function of backspace
 43 set backspace=2
 44
 45 " Enable some settings of indent
 46 set autoindent
 47
 48 " Disabled backup
 49 set nobackup
 50
 51 " Always show current position
 52 set ruler
 53
 54 " Change buffer without saving
 55 set hidden
 56
 57 " Show line numbers at the left side
 58 set number
 59
 60 " Always show statusbar
 61 set laststatus=2
 62
 63 " Show commander at the commander line
 64 set showcmd
 65
 66 " Set the order of file encoding when reading files
 67 set fileencodings=ucs-bom,utf-8,chinese,default,latin1
 68
 69 " Tabstop
 70 set shiftwidth=4
 71 " " Don't use tabstop
 72 set softtabstop=4
 73 set expandtab
 74
 75 " Show matching bracets
 76 set showmatch
 77
 78 " Turn on wild menu
 79 set wildmenu
 80
 81 " Set the shortcut of TAB function
 82 :map <F5> :tabprevious<CR>
 83 :map <F6> :tabnext<CR>
 84 :map <F7> :tabclose<CR>
 85 :map <F8> :tabnew
 86 "" Insert mode. e.g.
 87 ":imap <F5> <ESC>:tabprevious<CR>i
 88
 89 " Edit mail
 90 autocmd FileType mail set textwidth=70
 91 autocmd FileType mail set wrap
 92 autocmd FileType mail set set spell
 93
 94 " File type detect
 95 augroup filetypedetect
 96     au BufNewFile,BufRead mail.google.com* setf mail
 97     au BufNewFile,BufRead *.mkd setf mkd
 98     au BufNewFile,BufRead *.t2t setf txt2tags
 99 augroup END
100
101 " TMP RC
102 "" Use In Windows
103 winpos 400 300

The Use Of Libxml2

In the use of the Libxml2, Use the following functions to open and store the xml file can be generated the xml file with indent.

xmlReadFile ( "in.xml" , "UTF-8" , XML_PARSE_NOBLANKS )
xmlSaveFormatFile ( "out.xml" , doc , 1 )

The Web Proxy With IPv6

proxy.ipv6.uni-leipzig.de:3128

Options Of Toy's XFT

Xft.dpi:96
Xft.antialias:1
Xft.hinting:0
Xft.hintstyle:hintnone
Xft.autohint:0
Xft.rgba:rgb

FastStone Capture's Serial Number

FastStone Capture Portable v6.2

Name: 3ddown.com
Serial Number:PPNMF-IYDSB-RYEOD-KTFKV

PuTTY's Profile

PuTTY's profile is at "HKEY_CURRENT_USER\Software\SimonTatham\PuTTY". If you want to backup PuTTY's profile, you can run this command in console:

>regedit /e PuTTY.reg "HKEY_CURRENT_USER\Software\SimonTatham\PuTTY"

If you want to cleanup the profile, the command is:

>putty.exe -cleanup