2007/05
31
昨天不小心,在管理服务时误点击了System communication bus (dbus)服务。结果,service管理立刻退出,再也进不去了。每次启动,都会弹出一个ERROR警告:
failed to initialize HAL
在
http://ubuntuforums.org/archive/index.php/t-75328.html这里找到了答案:
cd /etc/rc2.d/
ln -s ../init.d/dbus S12dbus
既然取消掉了,就使用命令加进去。
Posted by rollenc
Last modified on 2007-06-01 17:09
2007/05
29
把数据备份到两张1G的存储卡之后,把整个硬盘全部格式化了,全部用来安装UBUNTU,目前的/etc/fstab是这样的了:
# /etc/fstab: static file system information.
#
#
proc /proc proc defaults 0 0
# /dev/sda4
UUID=f9cc7bcb-ae5f-4d3c-969d-23ff7af5fdbc / ext3 defaults,errors=remount-ro 0 1
# /dev/sda1
UUID=22385150-5e16-4e5e-8cdd-43be2fe77383 /home ext3 defaults 0 2
# /dev/sda2
UUID=9900d126-3846-4410-af38-4737f8eefa60 /var/www ext3 defaults 0 2
# /dev/sda3
UUID=516897a9-486e-451b-94b8-196dc800efe0 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
20G给/home,10G给/var/www做开发,2G给swp,其他剩下43G,全部默认为/
这样设置之后,可以避免重装UBUNTU需要格式化LINUX所有数据,默认的/文件随便格掉就好,一般也是apt-get获得的,不怎么重要。象一些apache的配置文件如site-enable等也被移出来,放在/var/www/中,原先位置放一个软链接就好。Defined tags for this entry:
Ubuntu
Posted by rollenc
Last modified on 2007-05-29 22:12
2007/05
27
源于:
UbuntuSir
原文出处:
http://old.ubuntu.org.cn/support/documentation/zhfaq/verasansyuanti
原文作者:www.ubuntu.org.cn
授权许可:创作共用协议
转载人员:ShawnLing
适用版本:所有
文章状态:转载
一:下载字体文件压缩包 http://download.ubuntu.org.cn/software/VeraSansYuanTi.tar.gz
二:使用如下命令解压缩:
tar -xzvf VeraSansYuanTi.tar.gz
三:将 VeraSansYuanTi 目录移动到字体文件夹。
sudo mv VeraSansYuanTi /usr/share/fonts/
四:刷新字体缓存
sudo fc-cache -f
五:备份现有的 fonts.conf
sudo cp /etc/fonts/fonts.conf /etc/fonts/fonts.conf.old
六:使用新的 fonts.conf
sudo cp /usr/share/fonts/VeraSansYuanTi/fonts.conf /etc/fonts/
七:重启X
同时按住 Ctrl +Alt + 退格键 重启 X 。 完成美化。
支持所有版本类
Posted by rollenc
Last modified on 2007-05-27 17:02
2007/05
25
- 安装IES4Linux
- 在$HOME/bin中打开IE,登录网银,如招行,手动点击下载控件链接,在打开或保存的提示框中选择打开,不是保存。下载完毕之后就会自动安装。完成之后,刷新页面即可登录。
- 如果刷新没有结果,尝试一下关闭所有的IE,再重新打开
经过这样以来,我可以没有任何顾虑的,跟微软windows说byebye了。
请参考:
IES4Linux的支持网站Defined tags for this entry:
Ubuntu
Posted by rollenc
Not modified
2007/05
25
看到一新闻,
“谁见董存瑞托炸药”成焦点
其中的一句话:
董存瑞喊的是“卧倒,卧倒” 让我想起了大学法律老师说的笑话:
当年到碉堡下面的,除了董存瑞,还有一人。他们发现碉堡四周光溜溜的,没有支撑炸药的地方。于是,那人就跟董存瑞说,你在这里,我去找根树枝。于是,董存瑞就开始傻等,直到冲锋哨响也没见人回来。这,他才狠命举起炸药包,大喊了一句:“不要相信河南人”。没回来的那人,正是河南人。
Posted by rollenc
Last modified on 2007-05-25 15:13
2007/05
23
把他们公用到了同一个drupal,免得每一个module传两遍。
Dreamhost的支持也不错,目录可以随意定制,赞一个:)
Posted by rollenc
Not modified
2007/05
23
Command-line switches
-cp --converterparams dynamic parameters for a converter, separate values with commas
-ct --customtags comma-separated list of non-standard @tags to pass to the converter as valid tags
-d --directory name of a directory(s) to parse directory1,directory2
-dc --defaultcategoryname name to use for the default category. If not specified, uses 'default'
-dh --hidden set equal to on (-dh on) to descend into hidden directories (directories starting with '.'), default is off
-dn --defaultpackagename name to use for the default package. If not specified, uses 'default'
-ed --examplesdir full path of the directory to look for example files from @example tags
-f --filename name of file(s) to parse ',' file1,file2. Can contain complete path and * ? wildcards
-i --ignore file(s) that will be ignored, multiple separated by ','. Wildcards * and ? are ok
-is --ignoresymlinks Explicitly ignore symlinks, both symlinked directories and symlinked files. Valid options are "on" and "offn" default value is "off"
-it --ignore-tags tags to ignore for this parse. @package, @subpackage, @access and @ignore may not be ignored.
-j --javadocdesc use JavaDoc-compliant description (short desc is part of description, and is everything up to first .)
-o --output output information, format:converter:template (HTML:frames:phpedit for example)
-p --pear Parse a PEAR-style repository (package is directory, _members are @access private) on/off default off
-po --packageoutput output documentation only for selected packages. Use a comma-delimited list
-pp --parseprivate parse elements marked private with @access. Valid options are "on" and "off" default value is "off"
-q --quiet do not display parsing/conversion messages. Useful for cron jobs. Valid options are "on" and "off" default value is "off"
-ric --readmeinstallchangelog Specify custom filenames to parse like README, INSTALL or CHANGELOG files
-s --sourcecode generate highlighted sourcecode for every parsed file (PHP 4.3.0+ only) on/off default off
-t --target path where to save the generated files
-ti --title title of generated documentation, default is 'Generated Documentation'
-tb --templatebase base location of all templates for this parse. Note that if -tb /path/to/here, then templates for HTML:frames:default must be in /path/to/here/Converters/HTML/frames/templates/default/templates and the /path/to/here/Converters/HTML/frames/templates/default/templates_c directory must exist, or Smarty will bail on attempting to compile the templates.
-ue --undocumentedelements Enable warnings for undocumented elements. Useful for identifying classes and methods that haven't yet been documented. Valid options are "on" and "offn" default value is "off"
来源于:
phpdoc manual
Posted by rollenc
Last modified on 2007-05-23 15:46
2007/05
23
“
{@*}” 用于在docblock中表示注释结束符号
*/
“
-, +, #, o” 用来简写
<li>, &ul;ul>, 等列表项,但是不支持多层结构,你只能用它们来表示单层列表
“
#@+and
#@-” #@+是模板开始符,在此申明之后的所有申明,都会自动继承此申明的标记。直到出现模板结束符
#@-
Posted by rollenc
Last modified on 2007-05-23 15:43
2007/05
23
- <b>
- <code> Use this to surround php code, some converters will highlight it
- <br>
- <i>
- <kbd> denote keyboard input/screen display
- <li>
- <ol>
- <p>
- <pre>
- <samp> denote sample or examples (non-php)
- <ul>
- <var> denote a variable name
源自 :
phpdoc manual
Posted by rollenc
Last modified on 2007-05-23 15:43
2007/05
22
cnBeta号称是“中文业界网站”,但在很多的方面做得很烂,而且,对用户提出的抗议表现的很痴呆。
我近期在cnBeta上发表回复,发现浏览器有假死现象,猜了一下,估计是xhhpRequest发送ajax请求是,没有使用异步模式造成的。
查看代码:
见
http://www.cnbeta.com/js/tem.js
if(window.XMLHttpRequest) {
aj.XMLHttpRequest.open('GET', aj.targetUrl);
aj.XMLHttpRequest.send(null);
} else {
aj.XMLHttpRequest.open("GET", targetUrl, true);
aj.XMLHttpRequest.send();
}
请看上面,第2行,当浏览器为非IE浏览器时,使用的ajax请求为非异步请求。
在firefox中这意为着:发布的请求如果没有获得返回,那么浏览器将不能接受其他的任何操作,产生假死现象。
鄙视cnBeta只会ajax都不会的程序员
鄙视cnBeta连操作流程都不理解的用户体验设计员
鄙视cnBeta对数据不会整理的DBA
鄙视cnBeta对用户信息都不能理解的所有人员
不能只有口头鄙视:
1. 删除右侧对cnBeta的链接
2. 将本站所有对cnBeta的链接设置为rel="nofollow"
Posted by rollenc
Last modified on 2007-05-22 17:55
2007/05
22
我确定,我现在遇到了我事业上的瓶颈。另外的关键,是我一直在矛盾。
1. 坚持互联网与互联网职业形式矛盾。 互联网一直以发展速度快为特点,对于绝大部分的公司企业来讲,开发流程管理的混乱,开发文档的缺失,似乎是作为互联网公司理由当然的特点。
2. 管理与经验的矛盾。我确定我想转型,但是目前我不能很确信我能够管理或者建造一个优秀的团队。我缺少管理的经验,也缺少被优秀的管理的经验。因此,我一直在着一个能够被优秀管理的职位。尚未果,于是萌发,尝试去管理的想法。
3. 地域与职业发展的矛盾。我知道,作为职业发展,北京应该是我必须要去的一个城市,但我并不想离开上海,也并不喜欢去北方。
我只知道,现在我要做的,是不停的,快速的提升自己的能力,多方面的:
学习程序的经验,学习管理的理论,还有,最重要的,学习生活的乐趣。
Defined tags for this entry:
事业
Posted by rollenc
Not modified
2007/05
18
每天早上要遇到的问题,Grub Error 18. 系统进入不了。
没有找到什么很好的办法,硬盘太大了,160G。荤菜。下次找机会升级BIOS。
现在临时的办法是用Ubuntu光盘进入系统Live模式, 然后重启之。Grub就可以正常启动了。不知缘由。
Posted by rollenc
Not modified
2007/05
14
意外的,
pandora又能够访问了。不过现在在办公室,没耳机,加上,流量控制,暂时上不了。
晚上见。希望可以找到一度熟悉的声音和体验。
愿,好景常在!
==========
回家之后才发现,pandora还是打不开,而又老友在QQ上提醒我,我办公室的IP是美国的。我惊讶,也试探地访问了GreatWF中的几个关键字和维基百科,竟然一切正常,完全不受GreatWF控制。
纳闷了,不过很爽。
Defined tags for this entry:
音乐
Posted by rollenc
Last modified on 2007-06-20 22:07
2007/05
10
4月13号申请的Ubuntu光盘到了,速度挺快的。发帖庆祝!
信封正面

信封的背面

邮件中的全部内容(少掉一张,送人了)

Defined tags for this entry:
Ubuntu
Posted by rollenc
Last modified on 2007-05-11 11:14