Vim的性能一直不错,打开100M的文件非常轻松。
但是最近在处理的是上G的文件,每次打开文件都可以让我有足够的时间喝杯咖啡。
可是我不想每天喝那么多杯咖啡,所以我找到了最简单的办法来解决这个问题:
当vim在读取文件的情况下发呆时,按下Ctrl+C会中断文件的预读取和渲染。
缺点是没有语法高亮了。对我来说,这可以接受。
Author: lancelot
原来中国的墙是如此有名
周末看美剧的时候学了个新词, 叫 Chinese Wall, 其实就是firwall,也就是防火墙的意思,但是这种叫法我还是第一次知道.
Chinese Wall 不仅仅是IT上用的防火墙, 还用于媒体,投行以及司法, 相当于回避制度.
另外,维基百科上有多个Chinese Wall的条目, 其中比较著名的是 Great Wall of China (长城) 和 Chinese city wall (城墙).
尽管中国在建墙方面继往开来, 光宗耀祖, 我还是希望这个世界 no more wars, no more walls.
George Soros is actually a hacker
I didn't know any views or philosophy of George Soros before. He had been thought as an killer and legend in financial market.
Yesterday, I read his address The Way Forward, (of course, what I read was the chinese version). I surprised found that his way of thinking sounded like
a hacker:
- Firstly, find the fault/disharmony of a system from its basic concept and implementation,
- Secondly, enlarge the fault by some attack
- Then, get control right of the system
It is really cool! And it is easier to find system fault but hard to control participant's thinking of the system.
头脑,眼色,sense以及亲和力
诸葛亮失败的原因
经过长年考据,我终于找到诸葛亮同志未能统一天下的原因了:
这么多阴天,基本看不到星星,根本没办法夜观天象,体察天下大势,失败在所难免啊.
更喜欢绿茶
今天喝了客户送来的普洱茶 (先汗一下,客户送来的东西可是有点烫手的),味道很浓郁,但是缺乏绿茶的清香,也没有红茶的甘醇.
还是喜欢喝淡淡的绿茶. 只是不知道怎么才能买到质优价廉的绿茶.
The SW I used/我常用的软件
按照字母排序:(全部是免费软件,绿色版,all freeware,portable)
- Blib_v3.33 用来存储网摘.配合vim/pspad 进行编辑.还可以用KompoZerPortable. 小巧简单.强烈推荐有HTML基础的人使用.
- FirefoxPortable 浏览网页
- FreeCommander2008 文件管理器,类totalcommand,强烈推荐.抛弃不安全并且低效的explorer吧.
- KeePassPortable 保存密码
- MirandaPortable 集成MSN/GTALK/AIM等,还可以上QQ. 配置比较复杂,界面比Pidgin精巧
- syncback 备份管理
- truecrypt 虚拟硬盘
- 7-ZipPortable 代替winzip和winrar. 压缩格式还是用zip
- cdbox 光盘管理
- Console2 多标签的命令行工具
- filezilla3 ftp工具
- foobar2000 mp3播放
- freemind 脑图软件,可以用来记笔记.管理list,
- fterm-2004memory 上bbs用的telnet工具.
- gvim 文本编辑软件.功能强大,入门门槛高.
- Hxd 十六进制编辑.单文件,小巧,强大
- IrfanView 看图软件.有时缩略图的显示不够细腻,但是速度快,方便.
- opera950en 网页浏览.
- PowerGreenBrowser 网页浏览. 多代理,多email帐号的时候通常开firefox+opera+greenbrowser
- PSMenu 快捷菜单工具. 好用
- pspad 文件编辑. 不如gvim.但是简单
- putty ssh登录
- SkypePortable 语音聊天,家庭会议
- vncviewer 远程控制,
- Kdiff3 文件比较,合并工具,比winmerge好用. 支持手工对齐
- 极品时刻表 列车时刻表.快速,基本准确.更新快.
python的XML解析
折腾了好几个小时,终于明白了两点:
2.utf-8的汉字在终端上显示是乱码.(我还以为是解析的结果不对.没想到是print到终端上,终端的显示有问题.)
3.虽然资源占用大一些,建议使用utf-8, 并在python源程序中加上:
# -*- coding: utf-8 -*-
4.对于不支持utf-8编码的软件,要将文本文件用notepad打开,并另存为utf-8格式
Dive Into Python
阮一峰: 字符编码笔记:ASCII,Unicode和UTF-8
--
颂祺 / Cordialement / With kind regards / Viele Gruesse / Met vriendelijke groet
Lancelot MAY
新年快乐!
祝各位牛年快乐,万事如意~~~
No Country for Old
"No country for old" is a film
name. I didn't like that film after seeing it. It is so strange for me that I
could not catch its point.
The word "No country for old" was
back to my mind when I heard that two German sites of our company would be
closed in the first quarter of next year. Our company was split from the mother
company last year. Then it was merged to another company in August this year.
Just a few days after the merge finished, it was announced that the merged
company would be merged to another company-- the result would be the unique
wireless related semiconductor company of Europe
in near future. Do you think it is exciting? Sorry, I don't think so. It means
that lots of employee will loss their jobs and cannot find a new job -- there
is almost no other choice in European wireless industry for who was laid off by
the company.
Not only in Europe
but also in world wide, there are less and less companies in wireless
communication industry. And fresh graduate students rush in wireless
communication area every year. They learned latest technology and requested
less salary.
There is no country for old.