关于frameset

备忘下,关于frameset,这个标签现在用的已经不多了,用法比较特殊。 <http://www.w3.org/TR/REC- html40/present/frames.html#h-16.2> frameset是一个与html并列的一种文档类型,如果frameset文档中出现普通html标签,则会变成普通的html文档。 An HTML document that describes frame layout (called a frameset document) has a different makeup than an HTML document without frames. A standard document has one HEAD section and one BODY. A frameset document has a HEAD, and a FRAMESET in place of the BODY. The FRAMESET section of a document specifies the layout of views in the main user agent window. In addition, the FRAMESET section can contain a NOFRAMES element to provide alternate content for user agents that do not support frames or are configured not to display frames. Elements that might normally be placed in the BODY element must not appear before the first FRAMESET element or the FRAMESET will be ignored. ...

March 17, 2010 · notsobad

python捕获stdout输出

python中捕获到stdout的输出,实际上就是把sys.stdout只想到一个打开的文件即可 import StringIO import string, sys stdout = sys.stdout sys.stdout = file = StringIO.StringIO() print """ According to Gbaya folktales, trickery and guile are the best ways to defeat the python, king of snakes, which was hatched from a dragon at the world's start. -- National Geographic, May 1997 """ sys.stdout = stdout print string.upper(file.getvalue()) 类似与php中的ob_*系列函数。 It's like comparing apples to oranges.

March 13, 2010 · notsobad

一个显示buzz的wordpress插件

装了个wordpress插件 [google buzz ER](http://workshop.rs/2010/02/google-buzz-er- google-buzz-for-wordpress/) 效果就是页面右边的“我说啊~~”里的样子,效果只能说勉强可用吧,有些链接都没有显示出来。 自从google buzz出来后,我就很少写blog了,值得记的东西用google buzz随手记下就好了,写blog多少有点正式了。 ...

March 12, 2010 · notsobad

webfaction主机的邮件配置

我需要在webfaction的主机上使用email来给注册用户发邮件,它本机是不提供mail server的,需要单独配置邮件 email的配置,参考这个 http://docs.webfaction.com/user-guide/email.html 即新建mailbox,新建个发邮件账户,然后就是django中配置了。 django中配置参考这个: https://help.webfaction.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid;=181 ...

March 12, 2010 · notsobad

windows mobile的手机蓝牙只能接收不能发送问题

windows mobile的手机蓝牙只能接收,不能发送 设置–>连接–>无线收发–>把"接收所有无线数据交换内容"勾上 终于虚拟机里windows终于可以使用蓝牙给手机传文件了。

February 9, 2010 · notsobad

virtualbox的虚拟机中使用usb口

virtualbox的虚拟机中使用usb口,我有手机、pda、阅读器需要同步,但是linux下没有对应的客户端,可以让虚拟机里的windows直接使用usb口。 方法请参考[这篇](http://news.softpedia.com/news/How-to-Fix-VirtualBox-USB- Support-111715.shtml)文章 主要的操作就是将当前用户添加到vboxusers这个组中。 处理后的结果: ...

February 9, 2010 · notsobad

基本无害

很没意思的一年又过去了。。。。 想起来《银河系漫游指南》里的开头: 在银河系西螺旋臂的末端那片未曾标明的寂静虚空中,悬挂着—颗不被人注意的小小的**太阳。距离它大约9800万英里的轨道上,运行着一颗完全无足轻重的蓝绿色小行星。这颗行星上由猿演化而来的生命形式原始得令人吃惊,他们居然还认为电子表是一项非常了不起的设想。 这颗行星上存在着——或者说曾经存在——一个问题,那就是:大部分的居民在大部分的时间里都感到不开心。针对这一问题曾提出过各种各样的解决方案,但其中大部分都是紧紧围绕那些绿色小纸片的运动来着手的——这很奇怪,因为实际上并不是这些绿色小纸片不开心。 于是,问题依旧困扰着这颗星球。所有的人都感到不自在,其中大部分简直可以说是凄凄惨惨,甚至包括那些拥有电子表的人。 ...

February 9, 2010 · notsobad

定时关机命令

定时关机 windows: at 4:00 shutdown -s linux: sudo shutdown -h 4:00

February 8, 2010 · notsobad

下雪了。。。

February 8, 2010 · notsobad

shell中求字符串的md5

shell中求字符串的md5 参考这篇文章http://ubuntuforums.org/showthread.php?t=532594 ~$ echo x x ~$ echo x| od -bc 0000000 170 012 x \n 0000002 ~$ echo x | md5sum 401b30e3b8b5d629635a5c613cdb7919 - ~$ echo -n x | md5sum | awk '{print $1}' 9dd4e461268c8034f5c8564e155c67a6 ~$ php -r 'echo md5("x");' 9dd4e461268c8034f5c8564e155c67a6 # 封装个函数 ~$ md5(){ echo -n $1 | md5sum | awk '{print $1}'; } ~$ md5 x 9dd4e461268c8034f5c8564e155c67a6

February 4, 2010 · notsobad