Archive for Diary

OOXX…

// February 23rd, 2010 // No Comments » // Diary

又迷茫了…

与一老朋友聊天… 人家轻松的在家打麻将…

我呢…努力做着什么,却看不到什么成绩…   又一次问自己,努力了么,有用么?

难道我现在就得去学着去玩一下?

又迷茫了…

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.

  1. Open a Terminal Window
  2. Type the following: defaults write -g com.apple.mouse.scaling your_mouse_speed
  3. 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

This post is password protected. To view it please enter your password below:


除了工作我的生活应该还有些其他的什么东西

// April 30th, 2009 // 1 Comment » // 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

Photoshop CS2

- 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

Installing Ubuntu on MacBook

Ubuntu - MacBook

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