Tuesday, August 30

Free Opera

Opera十年,多少人用过?

现在,有一个重温的机会:在这个十年庆典之际,你可以得到一个免费的注册号。只要访问晚会的网站,输入Email地址,就能得到注册号,能够去除Opera的广告。这个活动将于北京时间8月31日晚上8点结束。

Opera当年首先使用Tab-Browsing,很酷的界面;可惜像Firefox碰到的问题那样,有许多网站专门为Microsoft IE设计,因此不标准,在Opera下访问的效果不好。现在,网站设计逐渐规范,因此Firefox、Opera得以冒出来喘气。

I tested it from the very beginning. For no reason I soon abandoned it. Can't imagine they survive till today.
 
你好,我想要一个gmail的帐户,可不可以给我发个邀请! zjh8376@optusnet.com.au or zhangjunhua8376@yahoo.com.cn
 
Invitation sent.
 

Monday, August 29

Bloody women drivers!

This morning on the motorway, I looked over to my right and there was a woman in a spanking Porsche doing 85 mph with her face up next to her rear view mirror putting on her eyeliner.

I looked away for a couple seconds and when I looked back she was halfway over in my lane, still working on that makeup.

As a man, I don't scare easily. But she scared me so much; I dropped my electric shaver, which knocked the sausage & egg soda out of my other hand.

In all the confusion of trying to straighten out the car using my knees against the steering wheel, it knocked my mobile phone away from my ear which fell into the mug of tea between my legs, splashed, and burned my balls! Ruined the damn phone, soaked my trousers, and disconnected an important call.

Bloody women drivers!

(For Deminy's terrible trip.)

Labels:

Friday, August 26

Google Talk 占用多少内存?

这两天经常听到提到Google Talk占用的内存多,与我的经验不符。刚才看到一个在微软工作的blogger的网志,也说“而且还并不节省内存,实际上,恐怕比MSN Messenger还更贪婪一点。”所以我非要做个试验看看了。

试验平台:Windows XP Pro SP1 (正版)
512M 内存(有200M左右空闲内存)
记录参数:MSN Messenger, Googlt Talk和Yahoo Messenger三个软件所占用的内存和虚拟内存(VM Size)
试验过程:
1,同时打开三个软件,记录打开后、最小化到任务栏、关闭主窗口只剩下右下角图标这三种状态的内存参数。
2,保留在右下角图标状态一小时后再记录同样三种状态的参数。
3,保留在打开状态一小时三十分钟后记录内存参数

得到数据如下(单位都是K Bytes):





试验结果:
在任何情况下,Google Talk 所占用的内存都是其它软件所占用的一半以下。
备注:
1,好友数量的多少、在线人数的多少应该会影响所测数值,但是区别不会太大。
2,本次测试缺少文字聊天或语音聊天时候占用的内存,留待好事者。

今天,看到枫叶又开始红了。

Nice blog! I'm definitely going to bookmark you!
I have a sugar glider picture site. It pretty much covers sugar glider picture related stuff.
 
Peggy Fleming
Get expert advice and share your thoughts. Breast Cancer Yoga Nutrition & Weight Loss Depression & Anxiety View All Health Expert Blogs Report Abuse Join the discussion.
Nice blog, If you get a chance check my site out.

I have a silver poly tarps site. It pretty much covers silver poly tarps related stuff.
 
Categories and Players in Contextual Advertising
As the growing number of Web 2.0 rely on advertising as their main source of revenues, I read with interest a great summary published by SearchViews, on the four types of contextual advertising.
What a terrific blog,congratulations! I’ve already added it to my bookmark!

I too have a somewhat interesting gambling casino online site/blog. It encompasses all gambling casino online and can substantially reduce LD phonecalls and increase sales and profit!

Perhaps you’d care to check it out and experience the excitement over 30 days,all for just $1-Thank You:-)
 
I can see that Comment-Spam is comming to Blogger.com
 
spam 3连发啊。。。
 
I didn't see the pictures.

but spam is crazy. You got three ones in one post. :-)
 
How to implements comment-spam?
I am hostor of www.xnuo.com, thanks for visiting my simple website.
 

Microsoft IE's bug.

If you visit my blog through Firefox, you can see links underlined as . But if you are using Microsoft IE, you can't see it. Why? Because IE doesn't support this property it claims to.

In MSDN, Microsoft said background property has these values:

{ background: background-color || background-image || background-repeat || background-attachment || background-position}


and it can apply to property A (A HREF=.....). Actually only the background-color is supported.

Update on August 27: After I restarted my computer, I can see the underlines through IE... So everything is fine now... So it's good to complain anything in blog...

Wednesday, August 24

Google Talk

Google Talk是今天的主题。提到它,我也不得免俗。

Google总是遵循“Keep it simple and stupid”的做法,把所有东西都做得很简单。今天Google Talk就跟Google的主页一样的简洁,没有奇奇怪怪的trick。

Google Fans的忠诚度是无以比拟的,所以这个Talk很快会像瘟疫一样传开来,跟Gmail一样。Talk跟其他IM(Yahoo Messenger, ICQ, MSN Messenger)技术上有一个区别:Talk使用的是开放的Jabber协议。有没有可能促使其他IM也加一个插件,支持这个协议,从事实现天下大 同,IM互通?

拭目以待。

需要gmail帐户才能使用。当然,它会把所有曾经和你通信的人的地址都列出来,供你“邀请”,只不过邀请之后它会自动同时发送一个gmail的邀请(从你的邀请中扣除)。所以Google说理论上GT没有人数限制(MSN在100左右),只是取决于你还有多少gmail邀请和被邀请人有没有gmail。

越想越觉得这是为gmail作推广。
 
反正推广就是抓人...引来更多的人注册Google帐号,它就能从我们的网络应用中挖掘出更多的信息,给我们提供更好的服务,它也能挣更多钱...

如果谁还需要Gmail邀请的话可以在这里留言或者来信 BenInCampus@Gmail....
 

Saturday, August 20

30 ways to visit xys

30 ways to visit xys.org

访问新语丝网站的30种方法—使用RSS范例

Thursday, August 18

不用form提交Google搜索

今天听keso说起,Donews Blog所采用的.text系统不允许自己放置表单,所以没法增加一个搜索自己网站的Google功能。这个问题可以用javascript来解决。

必须承认,IE和Firefox在处理文档元素时有区别,所以花费了我半个多钟头才搞定。现在你只要在你的网站上加入这段代码:

〈script language="javascript" src="http://www.fadshop.net/squirrel/others/googlesearch.js">〈/script>
〈script language="javascript">
var website="http://www.donews.net/keso";
〈/script>

〈input type="text" name="q" />
〈input type="button" value="Google本网站" onclick="javascript:search()"/>
别忘记把全角的小于号改成真正的小于号。其实你还可以到 http://fadshop.net/squirrel/others/google.html 去拷贝。

你可以自行修改输入框的大小、颜色,当然,也修改website的值,变成你的网站。

19, August Update:
以上的代码适合于UTF-8编码的网站。对于GB2312或者GB18030的网站请把“googlesearch.js”改成“googlesearch_gb.js”。

Labels:

Wednesday, August 3

网络实名制的实现

通过酒游花得知,近日文化部和信息产业部正式发文,要求
其中PK类练级游戏(依靠PK来提高级别)应当通过身份证登陆,实行实名游戏制度,拒绝未成年人登陆进入。

想想,其实中国实现实名制,也是很简单的事情。

大家上网地点无非三种:工作场所、家庭、公共场所。工作场所当然就是办公室,公共场所基本上就是网吧。对于在校生来说,学校机房可归为办公室,宿舍属于家庭。

这三种之中,前两种或者是固定IP,或者是从ISP(电信、网通、长城宽带、学校)等取得的动态IP,都是在“上面”有注册你的身份证号码的,所以可以认为已经是实名制。只要什么部再规定每个论坛帖子或者blog文章必须附带发表时的IP地址(甚至从“上面”取得你的名字),实名制就实现了。
关于公共场所即网吧,情况复杂一些。其实现在网吧都要求出示身份证了吧?只要什么部在每个网吧里加个管理软件,你进网吧时把身份证信息输入进去,绑定到你将要使用的那台电脑上,一切问题也就解决了。

接下去的情节请参照《寂静之城》

This comment has been removed by a blog administrator.
 
上面这个原本是个垃圾广告留言,所以被我删除了。
 

期待, 是一种幸福

期待燕飞救出心上人,期待紫川秀出奇计杀出一片河山,期待唐龙征服宇宙,期待罗格颠覆一切规则,杀上天界...
期待,是一种幸福。

长篇连续小说越来越精彩,让人欲罢不能。所以,你天天去访问,去刷新,等待新章节的出现...

有没有办法改变这种阅读方式?

(包治百病的神丹妙药马上就要出现了)

使用RSS,可以把你喜爱的小说放到桌面,在出现更新的时候自动下载并通知你,让你可以安心地专注自己的事情,因为你绝对不会漏过最新的章节。

RSS技术源于1997年的“推”概念。8年过去,互联网面目全非,但是这个技术正如老树新枝,在这个网络去中心化的时代,得到了充分的发挥.

所谓"去中心化", 就是说我们不再统一阅读人民日报,不再固定观看中央电视台的新闻联播,不再只是上新浪看新闻。 相反,我们总能找到自己喜欢/信赖的报纸杂志,或者适合自己脾性的网络论坛,结识几个可以信任的网友,拥有自己的获得信息的渠道。远离首都的湖南卫视的 “超级女声”获得巨大的成功,就说明大家的注意力已经从中央电视台漂移开来。

所以,我有40多个喜欢的网站,希望每天都能看到它们的新信息,所以,每天我都连轴转地访问这些网站,看看有什么新闻...不可能!我才没那么笨呢。这些网站大多数每三五天才会有一则新消息,这样连轴转地访问,大多数时候只能是失望。

RSS 闪亮登场!这些网站都提供了RSS文件输出,介绍了各自网站的新消息。我只要用一个“聚合器软件”,把这40多个网站的新消息合并在一起,每天我只 要打开这个聚合器软件,就可以看到这一大堆网站的新闻,正所谓“不出帷屋而知天下”。同样,我把《亵渎》的RSS地址也加到这个聚合器软件当中,每天就可 以知道罗格又做了什么坏事。

在浏览网站的时候,如果你看到RSS的字样或者或者这些标签,就表明这个网站提供RSS文件输出,你点击这些标签就能看到RSS文件:大多数格式都很难看,比如:


因为这些文件本身就不是提供给人看的:) ,你应该把这个RSS文件的地址输入到聚合器软件当中,由它来每天察看有什么新的情况。

所以,我们需要有聚合器软件。聚合器软件有两种,第一种叫做客户端聚合器,你下载安装之后告诉它你所收集的RSS地址,每次执行,它就会到网络上查找新消息给你;第二种叫做在线聚合器,你不用下载任何东西,只要在聚合器网站上注册,导入那些RSS地址,每天你只需要打开浏览器访问聚合器网站,就可以获得你所喜欢的网站的消息了。

客 户端聚合器有看天下周博通新浪点点通阅读器FeedDemon(英文)等,功能大同小异。这些软件将新信息下载到本地硬盘之后再通知你查看,所以速度快一 些。在线聚合器有狗狗RSSHowtoPimBloglines(英文)等,不需要下载、安装,所以你在办公室、在家里都能轻松访问,比较方便。

要 收集自己喜欢的网站上面的RSS地址...好像也是一件麻烦的事情。不过你可以看看我所收集的。访问http://bloglines.com/export?id=benincampus能得到一个xml文档,你把这个文档保存,然后导入到你所用的聚合器软件中(不管是客户端聚合器还是在线聚合器都有导入的选项,放心好了),你就可以看到每天的更新了。

如果你喜欢看小说,《亵渎》的RSS地址是http://www.fadshop.net/novel?5060,《数字生命》的RSS地址是http://www.fadshop.net/novel?30017,《小兵传奇》的RSS地址是http://www.fadshop.net/novel?501,更多的小说RSS可以访问著名手机小说网站http://www.139a.net/book_top.asp

RSS本身只是一个很简单的标准,允许程序员们自由发挥自己的想象力实现更多未知的功能。访问我的一个网页http://fadshop.net/blog/blogs-i-read-everyday.html, 能看到我喜欢的40多个网站的新闻聚合,按照更新时间排序。右边还有一个Reading Blog栏目,是我的另一个网站的最新十五个帖子的标题列表,这也是通过RSS做出来的:未来会有更多的RSS的应用,方便我们的网络生活。

Tuesday, August 2

文革博物馆

巴金是第一个倡议建设文革博物馆的人,但是在种种阻挠之下,这个心愿一直没有实现。大学期间我从看伤痕文学,梁晓声的小说等开始,觉得中国官方不愿意提及这块伤疤,而发起文革的根源(民众的迷信、愚昧、盲从)其实一直存在着,以后会不会出现另一次文革?

今天意外得知,在广东汕头市澄海区,一座建立在文革冤魂乱葬岗上的文革博物馆早在今年初已经正式开放了。

用“文革博物馆 彭启安”作为关键字在百度Google能找到许多相关的消息。请让我摘录一段:

从坟场上到山腰,是一个广场,广场一端立着的石壁上书写着三个大字:塔园魂。下面是原广东省委书记任仲夷的题词:“以史为鉴千万不要让‘文化大革命’的悲剧重演”。石壁的中央以黑体大字镌刻着《中共中央关于建国以来党的若干历史问题的决议》中的一段话:“历史已经判明,‘文化大革命’是一场由领导者错误发动,被反革命集团利用,给党、国家和各族人民带来严重灾难的内乱。”


多说一句:81年党中央匆匆通过《关于建国以来党的若干历史问题的决议》,给文革定性,是为了果断停止争议,向前走,以经济建设为中心搞好中国。就今天来说这个决议也是很正确的。但是,在我们向前走的同时,不妨向后看看,看看以前走过的错路,看看我们应该怎样走得更好。

Monday, August 1

Note about Perl

1, In Perl language you don't have to define a variable, and the usage of string and a number is quite confusing. Below is a program :

$a="3"; #$a is a string.
$b=$a+1; # how can $a (a string) plus 1?
print $a. $b; # $b is a number, how can you concatenate a string and a number?

And the result of running this program is
34

Yes, after the program value of $a is "3" and value of $b is number 4.

2, To encode GB18030 (including GBK and Big5) string into Unicode, you can use Encode::HanExtra. Below is a sample:
use Encode;
use Encode::HanExtra;
my $str = "這是一些大五碼\n";
print $str;
print decode("gb18030", $str);

The result is:

but if you output the result into a file "utfcode.pl > abc.txt" and use an editer supporting Unicode to open it, we can see something interesting. I am using EditPlus:

Looks like the same as the first one, isn't it?
Now, selecte the menu "Document"->"Reload As", we can see we have 3 options:

"Default", "Unicode", "UTF-8"
I don't know the difference between "Unicode" and "UTF-8". But anyway, you select "UTF-8", then you can see this:

This means that the decode("gb18030", $str) created a string in UTF-8 coding, even though you can't see it from the direct output. Yes, what you see is NOT what you get.

3, XML::RSS can create a RSS file. But I want to:

Change the stylesheet

Currently there's no stylesheet bind with the RSS created by XML::RSS, so my solution is:
my $rssstring = $rss->as_string;
$rssstring =~ s/<\?xml version=\"1.0\" encoding=\"UTF-8\"\?>/<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<?xml-stylesheet type=\"text\/xsl\" href=\"\/rss.xsl\" ?>/;
open(FILEOUT, ">rss.xml");
print FILEOUT $rssstring;
close FILEOUT;

instead of
$rss->save("rss.xml");

quite exhausted, isn't it?

Delete an item

Usually when people update an RSS file, they just delete the old one and create a new one. But I only want to add a new item into the RSS, and if there're more then 10 items, delete the oldest one. In this way I can always maintein the newest 10 items in the RSS. Is there any better RSS module in CPAN to do this job?



4, LWP::Simple is a popular module to get webpages. But today I got this message: Your browser doens't support cookie. To support cookie I use use LWP 5.64:
use LWP 5.64;
my $browser = LWP::UserAgent->new;
$browser->cookie_jar({});
$webPage=$browser->get( $fetchURL )->content;


Updated on Aug, 03:
1, I found I can edit the XML::RSS module, so I added a function "add_header()" into the module, and now I can add anything between
<?xml version="1.0" encoding="UTF-8"?>
and
<rss version="2.0"...
If you want, you can download my rss.pm and put it into your Perl\site\lib\XML folder to replace the original one. The original rss.pm is read-only be default, so make sure you know what you are doing.

2, The source code of XML::RSS shows that we can access the items directly. Actually the man page gave a sample how to delete an item:
# insert an item into an RSS file and removes the oldest item if
# there are already 15 items
my $rss = new XML::RSS;
$rss->parsefile("fm.rdf");
pop(@{$rss->{'items'}}) if (@{$rss->{'items'}} == 15);
$rss->add_item(title => "MpegTV Player (mtv) 1.0.9.7",
link => "http://freshmeat.net/news/1999/06/21/930003958.html",
mode => 'insert'
);

I have to admitted that I didn't read the man page carefully :(

Labels:

UTF-8 is basically the Unicode version 2.

usually when people talk about unicode , they refer to unicode version 1.

How do you make xys rss? cut and paste by hand?
 
Thanks, xj. So can we say that UTF-16 is Unicode version 3, and UTF-32?

I have a perl script to get xys.org automatically and upload it to http://feeds.feedburner.com/xys
Now since the xys.org is down, I changed the script to get the info from yahoo group. I don't need to cut/paste everyday. What I need to do is to make sure I turned on my computer :)
 
UTF-8 is sort of independent of unicode. No version correlation. I just made that up. :-)