2009年2月25日

在VERYCD上找到了点好东西,才想起还没有装驴子。看论坛上mldonkey呼声很高,大有盖过amule的势头,忍不住也装了个。

search了一下源,有mldonkey-server和mldonkey-gui,前端和后端是分开的。不用GUI也可以在后台运行,很方便。有个界面还是直观点,于是也装上了。

sudo apt-get install mldonkey-server mldonkey-gui

装完后启动了GUI,还真是简单得可怜,一些高级配置还是需要去改配置文件,不好用。换个GUI去,Google一下,找到sancho

http://sancho.awardspace.com/

默认下载目录还是只能在配置文件里改:gedit downloads.ini

  {     dirname = "incoming/files"
     strategy = incoming_files
     priority = 0
};
  {     dirname = "incoming/directories"
     strategy = incoming_directories
     priority = 0
};

默认的下载目录是 ~/.mldonkey/incoming

下载安装运行,很不错,有了这个,基本不用命令行和修改配置文件了。换成中文界面,优化了下网络参数,作了个ED2K-port的端口映射。重启,HighID~~~

据说这个驴子速度超快。期待,晚上回来再使唤它干活~~

posted @ 2009-02-25 20:52 ray' 阅读(640) | 评论 (0)编辑 收藏

今天在Ubuntu下用Evince浏览PDF中文文档时出现乱码,google到了解决办法,这个做个备忘。

去http://poppler.freedesktop.org/下载一个最新的poppler encoding data,本文发布时最新版本为:poppler-data-0.2.1.tar.gz

1、解压文件:tar -zxvf poppler-data-0.2.1.tar.gz
2、进入解压目录:cd poppler-data-0.2.1/
3、编译安装:sudo make install datadir=/usr/share

posted @ 2009-02-25 20:51 ray' 阅读(1262) | 评论 (0)编辑 收藏

1、首先安装samba和smbfs

      sudo apt-get install samba smbfs

2、修改samba配置文件(备份原文件)

      sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.orig
      sudo gedit /etc/samba/smb.conf 
      查找:; security = user 这一行,改为:security = share

3、重启samba服务

      sudo /etc/init.d/samba restart

这样就可以共享文件了,操作方法和windows下基本一样,在文件夹上点击右键会有共享选项,设置一下就行了。

注意:由于权限问题,共享的目录只能在当前用户目录中。

这是以security = share方式实现的简单共享,如果需要给不同用户分配共享文件的访问权限,应使用security = user方式。

posted @ 2009-02-25 20:50 ray' 阅读(172) | 评论 (0)编辑 收藏

昨天晚上终于把windowXp请出了硬盘,换上了ubuntu。光驱不巧坏了,只好借了一个。

直接光盘启动就开始装了,建议把网线拔掉后安装,不用检测网络安装语言包之类的。等系统安装完了,换个源再下载语言包会快的多。80G的硬盘boot分区100M,交换分区1G,根分区20G,tmp分区3G,var分区7G,home分区10G,其他的docs分区。大概20分钟左右就安装完了。

可以先把root密码设定一下:sudo passwd root

换个软件源,准备更新下系统,安装点软件。

备份:sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
编辑;sudo gedit /etc/apt/sources.list
更新:sudo apt-get update

推荐两个源:

Ubuntu.cn99.com更新服务器(江苏省常州市电信,推荐电信用户使用):

deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse

台湾大学更新服务器(推荐网通用户使用,强烈推荐此源,比较完整):

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-updates main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-backports main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-security main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-security main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-proposed main multiverse restricted universe
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-proposed main restricted universe multiverse

posted @ 2009-02-25 20:50 ray' 阅读(367) | 评论 (0)编辑 收藏

以前也用了好一阵的ubuntu了,感觉很不错。后来由于论文关系,需要用到ms word之类的东西,只好又转到windows下了,顺便把CS和WE装上了过了把瘾。马上要毕业了,暂别游戏,回归ubuntu……

本打算这次装个fedora体验下,顺便熟悉下RedHat AS的操作,无奈combo坏了,换了个cdrom。刚好又只有ubuntu的cd和fedora的dvd,天意。

等这次安装完了一定要做个备忘。“apt-get”,我似乎还记得这个,汗~

posted @ 2009-02-25 20:49 ray' 阅读(129) | 评论 (0)编辑 收藏

似乎六级过后就没有看过英语了,看美剧大多时候也是看中文字幕。BTW:最近美剧又有更新了,HERO、Prison Break 新的一季又开始了。不过最期待的是ROME。很黄很暴力,但是很真实。我喜欢的风格。

从今天开始每天“挤”出一小时学习英语,坚持下去,前途一片光明。话说英语这东西还是很有用了,说不定将来去个外企,或是找个洋妞,也不枉每天一小时的努力。不管动机如何,好好学习总是不会错的。

希望不会在今后的某一天,出于羞愤删除了这篇日志。

posted @ 2009-02-25 20:48 ray' 阅读(133) | 评论 (0)编辑 收藏

其实不单是wordpress,任何网站都可以在URL地址前面显示个性图标。只需要将favicon.ico文件上传到网站根目录就可以实现。也可以每个页面使用不同的图标。

在页面的head标签内放入一下代码:

<link rel=”shortcut icon” type=”image/ico” href=”PATH_TO_ICON/favicon.ico” /> 
/*PATH_TO_ICON/favicon.ico为图标的路径*/

具体到wordpress的模板,分两步完成:
1、将下面代码放到模板的header.php文件中就可以了。
<link rel=”shortcut icon” type=”image/ico” href=”<?php bloginfo(’stylesheet_directory’); ?>/images/favicon.ico” />
2、将favicon.ico文件上传到模板所在目录的images子目录中。
 

至于favicon的制作,分享一个可以在线制作的站点,上传你喜欢的图片文件,将制作好的图标文件下载到本地就行了。
http://www.html-kit.com/favicon/

PS:Photoshop默认是不能编辑和制作ico文件的,但是可以通过插件来实现。下载ICOFormat.8bi,放到Photoshop安装目录下的“增效工具/文件格式”子目录(英文版为“Plug-Ins\File Formats”目录),重启Photoshop,搞定~
附上一个“ICOFormat.8bi”的下载地址:http://www.instructables.com/file/FRWHW5MZOXEYF7II9F/

posted @ 2009-02-25 20:48 ray' 阅读(2983) | 评论 (3)编辑 收藏

下载了一个pagenavi插件,默认的样式实在很难看。google一下也没有,http://www.mis-algoritmos.com/2007/03/16/some-styles-for-your-pagination/收集了一些分页的CSS,直接覆盖似乎不能正常使用。明天研究下代码,再分享最终的CSS文件。

posted @ 2009-02-25 20:47 ray' 阅读(196) | 评论 (0)编辑 收藏

据说是2007年最惨淡的电影,看完后的感觉是国外的英雄形象比较真实,起码没有神化,可以看到人性的脆弱。

场面算得上宏大,动画制作很细致,重点是音乐。尤其是王后为贝奥武夫壮行时吟唱的那一段,可以用动人心弦来形容。

A Hero Comes Home 竖琴版


附上歌词:

A Hero Comes Home

Out of the mist of history he’ll come again
他将在历史的薄雾中再次到来
Sailing on ships across the sea to a wounded nation
船航行在海上 穿越过受伤的国度
Signs of a savior and fire on the water
让救世主的标志燃烧在这水上

It’s what we prayed for, one of our own
我们祈祷是为了什么?是为了我们自己

Just wait though wide he may roam
只是等待,即使会在途中流连
Always a hero comes home
但英雄终会归来
He goes where no one has gone
他去了没有人去过的地方
But always a hero comes home
但是英雄终会归来

Deep in the heart of darkness sparks a dream of light
光明让黑暗的心脏中激起梦想
Surrounded by hopelessness he finds the will to fight
绝望让他聚拢,意志战斗
There’s no surrender, always remember
这儿没有妥协屈服,将铭记于心
It doesn’t end here, we’re not alone
不会这样结束,我们不是孤军奋战

just wait though wide he may roam
只是等待,即使会在途中流连
Always a hero comes home
但英雄终会归来
He goes where no one has gone
他去了没有人去过的地方
But always a hero comes home
但是英雄终会归来

And he will come back on a crimson tide
他将在绯红色的浪潮中归来
Dead or alive
不死即活
And even though we know the bridge has burned
即使我们知道桥梁已经烧毁

He will return… He will return!
他将归来,再次归来 !
just wait though wide he may roam
只是等待,即使会在途中流连
Always a hero comes home
但英雄终会归来
He goes where no one has gone
他去了没有人去过的地方
But always a hero comes home
但是英雄终会归来

Someday he may carve his stone
某一天他将雕刻自己的雕像
The hero comes home
英雄归来

He goes and comes back alone
他来去都是一人
But always a hero comes home
但是英雄总会归来
Just wait though wide he may roam
只是等待,即使会在途中流连
Always a hero comes home
英雄终会归来

posted @ 2009-02-25 20:46 ray' 阅读(174) | 评论 (0)编辑 收藏

计算机/互联网/通讯 Technology/Internet
首席技术执行官 CTO/VP Engineering
技术总监/经理 Technical Director/Manager
信息技术经理 IT Manager
信息技术主管 IT Supervisor
信息技术专员 IT Specialist
项目经理/主管 Project Manager/Supervisor
项目执行/协调人员 Project Specialist / Coordinator
系统分析员 System Analyst
高级软件工程师 Senior Software Engineer
软件工程师 Software Engineer
系统工程师 System Engineer
高级硬件工程师 Senior Hardware Engineer
硬件工程师 Hardware Engineer
通信技术工程师 Communications Engineer
ERP技术/应用顾问 ERP Technical/Application Consultant
数据库工程师 Database Engineer
技术支持经理 Technical Support Manager
技术支持工程师 Technical Support Engineer
品质经理 QA Manager
信息安全工程师 Information Security Engineer
软件测试工程师 Software QA Engineer
硬件测试工程师 Hardware QA Engineer
测试员 Test Engineer
网站营运经理/主管 Web Operations Manager/Supervisor
网络工程师 Network Engineer
系统管理员/网管 System Manager/Webmaster
网页设计/制作 Web Designer/Production
技术文员/助理 Technical Clerk/Assistant

销售 Sales
销售总监 Sales Director
销售经理 Sales Manager
区域销售经理 Regional Sales Manager
客户经理 Sales Account Manager
渠道/分销经理 Channel/Distribution Manager
渠道主管 Channel Supervisor
销售主管 Sales Supervisor
销售代表 Sales Representative / Executive
销售工程师 Sales Engineer
医药代表 Pharmaceutical Sales Representative
保险代理 Insurance Agent
销售助理 Sales Assistant / Trainee
商务经理 Business Manager
商务专员/助理 Business Executive/Assistant
销售行政经理 Sales Admin. Manager
销售行政主管 Sales Admin. Supervisor
售前/售后技术服务经理 Technical Service Manager
售前/售后技术服务主管 Technical Service Supervisor
售前/售后技术服务工程师 Technical Service Engineer
售后/客户服务(非技术)经理 Customer Service Manager
售后/客户服务(非技术)主管 Customer Service Supervisor
售后/客户服务(非技术)专员 Customer Service Executive
经销商 Distributor

市场/公关/广告 Marketing/PR/Advertising
市场/广告总监 Marketing/Advertising Director/VP
市场/营销经理 Marketing Manager
市场/营销主管 Marketing Supervisor
市场/营销专员 Marketing Executive/Communication
市场助理 Marketing Assistant / Trainee
产品/品牌经理 Product/Brand Manager
产品/品牌主管 Product/Brand Supervisor
市场通路经理 Trade Marketing Manager
市场通路主管 Trade Marketing Supervisor
促销经理 Promotions Manager
促销主管 Promotions Supervisor
促销员 Promotions Specialist
市场分析/调研人员 Market Analyst/ Research Analyst
公关/会务经理 Public Relations Manager
公关/会务主管 Public Relations Supervisor
公关/会务专员 Public Relations Executive
媒介经理 Media Manager
媒介人员 Media Specialist
企业/业务发展经理 Business Development Manager
企业策划人员 Corporate Planning
广告策划/设计/文案 Advertising Creative/Design/Copy writer

posted @ 2009-02-25 20:46 ray' 阅读(593) | 评论 (0)编辑 收藏

换了个新硬盘,下了个xampp装上。不用apache、mysql、php单独安装配置了。MySQL的root密码为空,可以通过MYSQL_HOME/bin目录中的mysqladmin工具来修改:

mysqladmin -u root -p password YOUR_PASSWORD_HERE

然后会提示输入当前的root密码,直接回车就行了。

网上还有其他的方法,顺便转过来:

进入MySQL,然后使用下面的命令:

grant   select   on   *.*   to   root@’%’   identified   by   “YOUR_PASSWORD_HERE”;   
   
grant   select   on   *.*   to   root@localhost   identified   by   “YOUR_PASSWORD_HERE”;  

Unix/Linux可以通过安全模式进入MySQL:

关闭MySQL:killall -TERM mysqld

安全模式进入:bin/safe_mysqld –skip-grant-tables &

更新root密码:
>use mysql
>update user set password=password(”new_pass”) where user=”root”;
>flush privileges;

重启MySQL服务

Apache中修改目录时,需要修改如下两个地方: 

DocumentRoot “D:/xampp/htdocs”

<Directory “D:/xampp/htdocs”>

只修改一处会出现无访问权限的问题。

posted @ 2009-02-25 20:44 ray' 阅读(4051) | 评论 (0)编辑 收藏

保留这篇日志,作为博客的开篇。Hell world ……

posted @ 2009-02-25 20:39 ray' 阅读(60) | 评论 (0)编辑 收藏