Archive for April, 2008

Linux小技巧

Sunday, April 27th, 2008

http://users.softlab.ece.ntua.gr/~ttsiod/tricks.html 一些Linux的小技巧

从鲜果转到抓虾

Sunday, April 27th, 2008

主要是鲜果有个限制,如果某一频道未读条目达到200了,就停止显示更新了。抓虾则是显示100+,但文章都在。还发现抓虾可以调节字体大小,有小、中、大三种可选,赞的。不过那个界面设计真的没有鲜果好看。换了“虾06”(这名字真无语)虾皮,好一点了。默认虾皮的颜色,太鲜艳了点,有点闪眼,看多了不舒服。

XHTML2千呼万唤不出来

Saturday, April 26th, 2008

w3c上還是Working Draft 26 July 2006,xhtml 2.0不知何年成Recommendation?

有的时候看着那<hr />就觉得有点丑。想用XHTML 2里的seperator,但是如何保证valid不损害呢?

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="xhtml2.css"?>
<!DOCTYPE html  PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" [
<!ENTITY % test SYSTEM "http://localhost/test.dtd">
%test;
]>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
  <head>
    <title>Virtual Library</title>
  </head>
  <body>
    <p>Moved to <a href="http://vlib.org/">vlib.org</a>.</p>

<seperator />
  </body>

</html>

The content of test.dtd

<!ENTITY % Misc.extra "| seperator ">
<!ELEMENT seperator EMPTY>

However, there is a problem. Iceweasel won't download the .dtd file when you save the page, even if you select "Webpage, complete".

You may add more elements, but don't get too complicated. Otherwise you'd better wrote your own DTD.

reStructuredText

Saturday, April 26th, 2008

Once I wondered whether html/xml/sgml/docbook is so hard to learn and use so someone invent this monster. Learning it is easier than basic docbook? I don't think so.

However, for a lot of people, ReST's format just feels a thousand times natural and comfortable than <tags attr="value"></tags>. Sometimes tags look like noises.

Anyway, it's quick, comfortable and clean.

kphotoalbum

Saturday, April 26th, 2008

提到相片管理,G派就是f-spot,K帮就是digikam。其实KDE下的kphotoalbum也不错的。个人觉得功能比那两个实用。

pdfviewer

Saturday, April 26th, 2008

xpdf没bookmarket。

evince也没有,gnome下的軟件,功能真是陽春。

kpdf有。

gnome下的軟件功能,f-spot不如digikam,gnome-terminal不如konsole。

當然,gedit比kedit強。

所以我如果裝gnome,還是要裝一堆kde的東西。

不過kpdf在打開大文件時會响應慢甚至死機,好像住內存中裝太多東東了。

konqueror标准化方面欠缺啊

Saturday, April 26th, 2008
<?xml-stylesheet type="text/css" href="xhtml2.css"?>

这种声明css文件的方式,Gecko接受的,但是konqueror就是不认。

clocks

Saturday, April 26th, 2008

I've tried some clock programs.

bclock's way of displaying time is strange.

buici-clock is not very pretty.

dclock stands for digital clock. It's quite nice.

Haven't found osdclock's window.

pclock and wmclock are too small.

sunclock is nice, but it's another kind of clock.

swisswatch is nice and resizable.

BTW, xclock is not bad, which is resizable, too.

Finally, I chose... I decided it's silly to place a clock on the table or root window.

用字符界面的原因

Saturday, April 26th, 2008

原来是为了省电。myth如是说:“这是没办法的办法,电池本来 1小时40分钟,节能模式能到2小时,用优盘上的系统不访问硬盘能用2小时20分钟,用纯字符界面能用2小时半。”

shorewall

Saturday, April 26th, 2008

近来IRC里有时听到讨论iptables的,这个我是望而生畏的。shorewall还有亲和力一些,对我来说。Ubuntu中文wiki上有文章。其实一般用户只要看一下那个shorewall自带的standalone单IP的指南也就够了。