Archive for 四月, 2010
推荐个PHP 编辑器 Gphpedit
星期五, 四月 23rd, 2010 Posted in 日常桌面 | 3 Comments »
这两天又在折腾Wordpress 的主题,本来一直用vim 的,但总觉得的不顺手,最终找来找去找到了Gphpedit。Gphpedit 是gnome 环境下的php 开发工具,支持php/html/xhtml,css,sql 等代码高亮,还提供PHP/CSS的代码导航语法检查等
Ubuntu 10.04 RC 发布
星期五, 四月 23rd, 2010 Posted in 新闻评论 | 2 Comments »
Ubuntu 10.04 “Lucid Lynx” 正式版发布前最后一个测试版发布。
“The Ubuntu team is pleased to announce the Release Candidate for Ubuntu 10.04 LTS (Long-Term Support) Desktop and Server editions and Ubuntu 10.04 LTS Server for Ubuntu Enterprise Cloud (UEC) and Amazon’s EC2, as well as Ubuntu 10.04 Netbook edition. We consider this release candidate to be complete, stable, and suitable for testing by any user”
标签:Ubuntu, Ubuntu10.04
Red Hat Enterprise Linux 6 Beta 发布
星期三, 四月 21st, 2010 Posted in 新闻评论 | 3 Comments »
经过长久的等待今天 Red Hat Enterprise Linux 6 Beta 终于发布了。
“Red Hat is pleased to announce the availability of Red Hat Enterprise Linux 6 Beta, the next generation of the Red Hat Enterprise Linux platform. Red Hat Enterprise Linux 6 blurs the lines between virtual, physical, and cloud computing to address shifts taking place in the modern IT environment. Featuring updated core technology, from the kernel to the application infrastructure to the development toolchain, Red Hat Enterprise Linux 6 is designed
gedit 为CSS 文件添加换行符
星期四, 四月 15th, 2010 Posted in 日常桌面 | 1 Comment »
今天在用gedit 编辑一个CSS 文件时遇到原文件是经过压缩的,全文没有空格还行看着那叫一个眼晕啊,想改点东西非常的痛苦。
还好gedit 有换行符可用,用gedit 的替换功能,将所有} 替换为} /r 这样gedit 就能在每行css 语句结束的地方自动换行了。

ubuntu 9.10 停止系统服务
星期二, 四月 13th, 2010 Posted in 系统管理 | 2 Comments »
给系统装了Vidalia + tor 套件,但每次tor 都当系统服务自己先启动了,弄的我每次用vidalia 时还要自己先停掉tor 。于是想用chkconfig 停用tor,结果安装后使用 chkconfig tor off 给我一堆报错。google 之原来ubuntu 9.10 已经不支持chkconfig 了而用了update-rc.d,停用服务用命令
update-rc.d servername disable
关于 update-rc.d 的一些使用介绍
Debian 的update-rc.d与RH的chkconfig工具相类似。然而chkconfig是一个二进制程序,而update-rc.d是一个Perl脚本。这些工具有不同的命令行选项,但是却执行类似的功能。下表列出了update-rc.d的一些用法。如果要查看完整的信息,我们可以查阅相关的和册页。
标签:chkconfig, Ubuntu, update-rc.d
ffmpeg 批量转换脚本
星期五, 四月 2nd, 2010 Posted in shell | 1 Comment »
从playingforchange.com 下载了好多FLV 文件放到手机上看,不过由于分辨率太高手机放起来一卡一卡的,所以要转换一下分辨率。
#/bin/sh for f in *.flv do ffmpeg -i $f -s 320x240 sm-$f done
检查当前目录下所有.flv 结尾的文件将其转换为 320×240 分辨率,新文件名为老文件名前加sm- 前缀。


