My Writings. My Thoughts.
How to get ie Http Header on IE and FireFox
// May 20th, 2009 // No Comments » // Diary
通过这2个插件可以获得服务器返回的页面header信息,对于解析web服务器的工作情况非常有帮助。如查看gzip压缩是否成功及html文件的大小。
iehttpheaders下载地址:http://www.blunck.se/iehttpheaders/iehttpheaders.html
安装以后 点击IE 工具–工具栏–浏览器栏–ieHttpheaders即可
FF的LiveHTTPHeaders下载地址:http://livehttpheaders.mozdev.org/installation.html
查看–侧栏–LiveHTTPHeaders
刚刚发现firebug也有这种功能,但不是每张图片都能显示Content-Length。
Speed up Mouse Tracking on Mac OS X
// May 17th, 2009 // No Comments » // Diary
One of my gripes when I switched to using a Mac full time was that I could never get my mouse to track fast enough. After some searching, I found a solution online.
- Open a Terminal Window
- Type the following: defaults write -g com.apple.mouse.scaling your_mouse_speed
- Replace “your_mouse_speed” with your new setting. The maximum mouse speed on mac desktops is 3.0 (when maxed out in system preferences). I changed my speed to 5.0 and it was noticeably better on my 24″ screen.So my final setting is: defaults write -g com.apple.mouse.scaling 5.0
Protected: ClickBank 销售产品
// May 4th, 2009 // Enter your password to view comments // Diary
除了工作我的生活应该还有些其他的什么东西
// April 30th, 2009 // No Comments » // Diary
我迷失在一个朦胧的世界里好长好长一段时间。 我不知道我想要的生活是什么,不知道我想要去什么样的地方,身边所有的一切都在改变,或进或退,而我却还在老地方张望,我的无奈与无助就像一粒种子,这粒种子必须深深的埋在土里,希望这粒种子会发霉腐烂蒸发。
刚在在车上看了<爱情呼叫转移>,电视终归是电视,看过笑过就好,但里面的理倒还真让我有所感触。感触于“这世界上没有一个人是为你而准备好的”。像750所说“没有合适与不合适,只有珍惜与不珍惜”
我应该歉于真心对我的女孩子,幸于离开儿戏感情和金钱重于感情的女孩子。
近两年来,我在工作的圈里站着,张开手触摸到的却是无奈的疲惫,睁着眼看到的却是死寂的漆黑。今天,我尝试着换个活法,原来。。。放下手,是那么的自在,闭着眼,原来可以看得更远。 我徘徊在感情的圈子外边,看着感情里的,庆我不必为之烦心,惧而避之。 今天,突然感觉原来我是那么像一具尸体,总说周围很冷,原来是自己已经没有了体温。
近两年来,我做了什么,得到了什么,我还有什么,我想要什么? 从小家人就说没有吃过苦的人就不会尝到甜。 可是我吃过苦么,我受过罪么? 好像,似乎。。。我一路走来,都还顺利,可是,其实我什么也没有,从没有过真正的开心,没有过撕心裂肺痛苦。 我是应该好好想想这几个问题了,我有什么,还想要什么?
--090430 从南宁回阳朔途中
关于vista+ubuntu双系统机器,暴力删除ubuntu后恢复启动的问题
// April 27th, 2009 // No Comments » // Diary
废话少说,关键词:98 命令 fdisk /mbr xp 命令 fixmbr vista 命令 bootrec /fixmbr
最近9.04发行了大家恢复折腾了,我说说我的经验,抛砖引玉,毕竟解决了后顾之忧才能放手实验系统。
我的前提环境是,必须有vista的安装盘。
开始:
安装好vista后,系统直接进入vista启动画面;再安装好ubnutu后,grub接手系统启动管理。
大家把ubuntu玩崩掉了之后(建议想尽一切办法再恢复起来,毕竟是学习技能理解结构的好机会),难免会一怒进入vista直接把ubuntu分区格式化,于是再开机就跳了几行grub后,出现error了。
我 搜索了很多信息,说这个时候可以用fdisk mbr 修复等等,但是这个命令是早年对应98环境的;还有说用fixmbr,这个命令是对应xp系统的。那能不能用xp安装盘启动进入命令行执行唉命令呢?不 行!! 因为过程中有一步需要你输入管理员密码,这步绕不过去因为你没有xp的系统和对应的帐号。
其实,这个时候还是需要用到vista自己的安装盘,启动后,在键盘布局/语言选项页之后,选择修复系统,可以让它自动修复(但是无效),但是反馈后信息是,启动项良好。
这 时进入命令行模式。此时输入fdisk fixmbr都没用,提示没有该命令,但是vista也有相应的命令,就是bootrec /fixmbr (还有 fixboot 参数 ),输入后,重启机器,一切就像没有发生过,vista又跑起来了,没有任何ubuntu的痕迹(大家可以继续安装ubuntu,开始新的探索,呵呵)。
当然,很多三方工具可以实现vista的启动项回复,但是我比较执着于利用视窗安装盘的修复。
HOW-TO: Adobe Photoshop CS2 on Ubuntu - 8 steps!
// April 27th, 2009 // No Comments » // Diary
This HOW-TO covers up the whole process of installing Adobe Photoshop CS2 on a Ubuntu box in a few simple steps. This method has been tested only on Ubuntu, but it should work on any other linux flavor. Any questions or feedback leave them in the comments.
UPDATE: Fixed some small inaccuracies in this HOW-TO. Thanks for your comments

- What you need?
- A fresh install of Ubuntu Dapper + all the updates
- A Windows box with a fully installed and activated version of Adobe Photoshop CS2
- Fire up a terminal session and type the next commands;
TIP: Instead of using apt-get, you can install them with the Synaptic Package Manager located in the System/Administration menu
1 2 3 4 |
sudo apt-get update sudo apt-get install wine sudo wine sudo apt-get install recode |
- Then you need to copy all the necessary files from the Windows box;
- Copy the whole Adobe folder from “c:\Program Files\” to “/home/YOURNAME/.wine/drive_c/Program Files/”
- Now you need to export the registry keys of the Adone Photoshop CS2;
- In your Windows box, type “regedit” in the command-line and export the whole “HKEY_LOCAL_MACHINE/Software/Adobe/” to “adobe.reg”.
- The next step is to copy that file to your Ubuntu box and convert it to the encoding of YOUR system. For example, if your Ubuntu box has as default charset ascii and your Windows box has ucs-2 then “$ recode ucs-2..ascii adobe.reg” would do the trick. After you converted your adobe.reg file, type “$ sudo wine regedit adobe.reg” to import it to wine.
- That’s it! Type “$ sudo wine –winver winxp “[path to Photoshop]/photoshop.exe” or create a launcher and enjoy Adobe Photoshop CS2 on Ubuntu
Music online with Ubuntu
// April 25th, 2009 // No Comments » // Diary
sudo apt-get remove totem-mozilla
这样firefox就会用MPLAYER的播放了
sudo apt-get install mplayer mozilla-mplayer
安装mplayer的插件。
同时在about:config里增加了两个配置项:
Network.protocol-handler.app.mms string /usr/bin/mplayer
Network.protocal-handler.external.mms boolean True
restart it.
Fix Voice small in Ubuntu
// April 24th, 2009 // No Comments » // Diary
1.打开终端,输入:alsamixer
2.用左右方向键,选择项目; 用上下键调节大小。
一般我们要调节的是Master,PCM,Front,这三项就行。把他们全部调到最大。
Installing Ubuntu on my MacBook
// April 24th, 2009 // No Comments » // Diary
Welcome to the entry-point for Ubuntu on Intel CPU-based Macintosh Computer (Mactel). This page covers all supported versions of Ubuntu, cross-referenced to all Mactel types and hardware revisions.
https://wiki.ubuntu.com/MactelSupportTeam/CommunityHelpPages
Running tencent qq 2008 in Ubuntu 9.04
// April 24th, 2009 // No Comments » // Diary
A、准备好所要的软件
1. wine最新 中文版的下载和安装
http://wine.budgetdedicated.com/archive/index.html
在这里选择你要下载的版本 deb包下载直接 运行安装
2. 下载 Flash.ocx (flash10 for windows的插件)、修改中文的注册表、汉化文件 gdi32.dll.so (附件有)
3. 下载官方QQ2008正式版
4. 准备宋体字体 在 XP系统里可以搜索 到 simsun.ttc
B、开始安装
直接安装wine最新版
复制 simsun.ttc到 /home/你的用户名/.wine/drive_c/windows/Fonts
导入注册表
导入命令:在终端
regedit zh.reg
直接运行安装QQ2008正式版
安装期间选择 自定义环境 登陆前不查杀 不要安装任何附带的软件
将威牙QQ精简工具放出QQ的安装目录 一般为(/home/你的用户名/.wine/drive_c/Program Files/Tencent/QQ)
运行精简 除了 QQ会员中心 自定义面板 TXM平台 远程连接 文件传输 网络硬盘 不选外其它全选上! 然后一直下步精简QQ2008
添加DLL,复制mfc42.dll,msvcp60.dll,riched20.dll,riched32.dll 到 /home/你的用户名/.wine/drive_c/windows/system32。其他的不要动。
以上文件可以在真实的WINDOWS XP(C:\WINDOWS\systenm32)里找到。 其实1.15以后自带已经有了!有可能不用再加了!不过再加替换一次也无所谓
导入文件 gdi32.dll.so
sudo cp gdi32.dll.so /usr/lib/wine/
打开wine的设置界面
在应用程序 页 点击 增加应用程序设置 一直选择.wine\drive_cProgram Files\Tencent\QQ\QQ.EXE
选择windows 版为 windows XP
然后然后选中刚刚添加“QQ.EXE” 再点向 “函数库”页!注意此时wine设置的窗口标题应该为 “wine于QQ.EXE的设置“
在“新增函数库顶替”的下拉单里分别输入mfc42.dll,msvcp60.dll,riched20.dll,riched32.dll 加入并编辑 为原装(windows)如图1
注销或重启一次系统!
此时可以登陆QQ 并应该为全中文了! 但打开好友对话框会提示QQ flash版本过低此时可以为wine增加一个windows的flash插件可以用以下命令
复制文件
sudo cp Flash.ocx /home/你的用户名/.wine/drive_c/windows/system32/Macromed/Flash
注册文件
env WINEPREFIX=”/home/你的用户名/.wine” wine regsvr32 “C:\windows\system32\Macromed\Flash\Flash.ocx”
此时再重新打开看看QQ好友对话框!不再提示flash过低了!
好了此时应该可以很稳定的运行QQ了!




