Nov 03

演唱:汤兰花 专辑:《一代佳人》主题曲

胭脂红粉只能点缀青春,
却不能掩饰岁月留下的伤痕,
有甚麽可让我刻骨铭心,
唯有你唯有你爱人。

海誓山盟说是情深意浓,
问谁真心为爱厮守一生,
你有血你有泪淋漓尽致,
那热情熨烫着我的一颗心。

悲欢岁月浮华人生,
难得有这一份情,
让我在今生今世记忆深深,
你是我最心爱的人。

Nov 01

转自:http://www.noobslab.com/2012/05/mac-os-x-lion-for-ubuntu-1204-precise.html

Many People Search for Macbuntu 12.04/Macbuntu 11.10/Mac4lin, Mac Ubuntu theme and so on. So here we are ready with Mac OS X Lion Theme for Ubuntu 12.04 Precise Pangolin and Hopefully Mac Theme will work with Linux Mint 13.

Now Theme Installation:
1. Download Mac OS X Lion Wallpapers
2. Install Latest Cairo Dock
3. To Install Mac OS X Lion Theme on Ubuntu 12.04 Precise Pangolin open Terminal (Press Ctrl+Alt+T) and copy the following commands in the Terminal:

sudo add-apt-repository ppa:noobslab/themes
#Now Enter This Command then go to install commands
sudo apt-get update
#Install Icons
sudo apt-get install mac-os-lion-icons
#Install Theme
sudo apt-get install mac-os-lion-theme

4. Apply Mac OS X Splash:

Install Following commands to install splash:

wget http://dl.dropbox.com/u/53319850/NoobsLab.com/Paw-OSX.zip

unzip Paw-OSX.zip

sudo cp -R Paw-OSX/ /lib/plymouth/themes
sudo update-alternatives --install /lib/plymouth/themes/default.plymouth default.plymouth /lib/plymouth/themes/Paw-OSX/paw-osx.plymouth 100

Enter following command and select paw-osx splash:

sudo update-alternatives --config default.plymouth

Now Enter this command:

sudo update-initramfs -u

If you don’t like Paw Splash, You can get back Ubuntu splash:
Enter following command and select Ubuntu Splash number:

sudo update-alternatives --config default.plymouth

Now Enter this command to update Splash:

sudo update-initramfs -u

See the following picture.

5. Install Compiz Setting Manager to Autohide Unity Launcher:

sudo apt-get install compizconfig-settings-manager

6. Install Gnome Tweak Tool to change Themes, Icons, Cursors:

sudo apt-get install gnome-tweak-tool

Oct 29

1. 下载hooklee的xGBKFonts
http://www.hooklee.com/tex/xGBKFonts-bin.zip或http://r01ustc.googlepages.com/xGBKFonts-bin.zip

2. 在命令行运行
生成字体

>xGBKFonts -force UTF8 simsun.ttc song

3. 拷贝字体
当前会生成一个ucsong的目录,下面的localtexmf 拷贝到 D:CTeX下

4. 输入命令

> initexmf -u
> initexmf --mkmaps

然后,你就可以在你的LaTeX文件中,使用UTF8编码的song体了。

begin{CJK*}{UTF8}{song}
Oct 24

Twitter Tools插件3.0版本变得越来越不人性化,所以继续使用2.4版本,Twitter API调整后2.4版本不能正常工作,可以尝试修改一下代码:

define('AKTT_API_POST_STATUS', 'https://api.twitter.com/1.1/statuses/update.json');
define('AKTT_API_USER_TIMELINE', 'https://api.twitter.com/1.1/statuses/user_timeline.json');
define('AKTT_API_STATUS_SHOW', 'https://api.twitter.com/1.1/statuses/show.json?id=###ID###');
define('AKTT_PROFILE_URL', 'http://twitter.com/###USERNAME###');
define('AKTT_STATUS_URL', 'http://twitter.com/###USERNAME###/statuses/###STATUS###');
define('AKTT_HASHTAG_URL', 'http://search.twitter.com/search?q=###HASHTAG###');
Oct 20

转自:http://xzcblog.appspot.com/2012/01/12/linux,知识4.html

在之前我们已经介绍了通过uGet使用aria2来进行下载,但是这样只是使用aria2最简单的功能,现在我们来介绍一下aria2的常用命令。

简单篇
一般使用使用 aria2 下载文件,只需在命令后附加地址即可。比如我们下载QQ如:

aria2c http://example.com/filename.txt

如果需要重命名的话加上–out或者-o参数:

aria2c --out=newfilename http://example.com/filename.txt
aria2c -o newfilename http://example.com/filename.txt

分段下载利用 aria2 的分段下载功能可以加快文件的下载速度,对于下载大文件时特别有用。为了使用 aria2 的分段下载功能,你需要在命令中指定 s 选项。如:

aria2c -s 2 http://example.com/filename.txt

-s配合-x 和-j可更好使用如:

aria2c -s 2 -x 2 -j 10 http://example.com/filename.txt

这将使用 2 个连接来下载该文件。s 后面的参数值介于 1~5 之间,你可以根据实际情况选择。

断点续传在命令中使用 c 选项可以断点续传文件。如:

aria2c -c http://example.com/filename.txt

验证文件是否正确:
有的时候为了确认下载的文件时候正确或是否被人修改需要验证md5码,这里可以使用一下命令:

aria2c -c -x16 -s20 -j20 --checksum=md5=xxxxxxxxxxxxx http://example.com/filename.txt

其中md5可以修改成你需要的校检方法,后面的xxxxx改成正确的校检码。

高级篇
BT下载:

aria2c ‘xxx.torrnet‘
aria2c '磁力链接'

列出种子内容:

aria2c -S target.torrent

下载种子内编号为 1、4、5、6、7 的文件:

aria2c --select-file=1,4-7 target.torrent

设置BT端口:

aria2c --listen-port=51413 ‘xxx.torrent’

设置dht端口:

aria2c --dht-listen-port=51413 ‘xxx.torrent’

有的文件下载是需要引用页,我们可以这样输入如:

aria2c --referer=http://im.qq.com/qq/2011/ 'http://example.com/filename.txt'

有时我们需要错误信息时要加上–log如:

aria2c --log=xxx --referer=http://im.qq.com/qq/2011/  'http://example.com/filename.txt'

限速下载
单个文件最大下载速度:

aria2c --max-download-limit=300K -s10 -x10 -j10 'http://example.com/filename.txt'

整体下载最大速度:

aria2c --max-overall-download-limit=300k -s10 -x10 -j10 'http://example.com/filename.txt'

下载需要cookie验证的文件:

aria2c --header=“Cookie:cookie名称=cookie内容“ ‘http://example.com/filename.txt‘

aria2c --load-cookies=cookie文件 ‘http://example.com/filename.txt'

其中cookie文件需要自己手动导出,导出方法为chrome用户需使用此扩展,firefox需使用此扩展,使用扩展导出离线页面cookie命名为cookie_text

当然这样使用很麻烦所以我们可以通过alias来进行简化:

alias xunlei=’aria2c -s 6 -c –load-cookies=/home/user/cookie_text’

Ubuntu系统需要把此命令添加进.bashrc文件中

以后使用需要此cookies时只要使用下面命令即可:

xunlei “下载链接” -o xxx

好了,常用的几个命令就介绍到这里了,更多的使用方法可以使用。
man aria2c和aria2c -h 查看。