Archive for July, 2008

Problem with JFreechart

一个基于Tomcat的程序里面用到了JFreeChart,偶尔用浏览器访问时,PC端安装的XManager的XServer会自动的打开,然后Tomcat就莫名其妙的挂掉。在没有安装XManager的PC上通常就不会出这种情况。查看一下log,如下:

Can’t connect to X11 window server using ‘:0.0′ as the value of the DISPLAY variable.

搜之,此乃awt的bug。加入以下参数启动即可:

-Djava.awt.handless=true

如果是Tomcat,把上面的参数加到环境变量:CATALINA_OTPS里即可。

[ad]

Query by Humming

http://en.wikipedia.org/wiki/Query_by_humming

 

记得一次带一个同事逛苏州,路过一家音像店,店里传来一首歌曲,这位仁兄莫名的就喜欢上,我说,好啊,我去问问老板这是什么歌,然后download一首,结果进去后,老板死活不告诉我们歌曲的名字并告知:你买下CD,我就告诉你,无奈,我们只能花了若干大洋买下了整张CD。如果当初我知道这个网站:

http://www.midomi.com/

 

情况就不同了,这是一个基于QbH的网站,你只要随便的哼哼几句,它就可以帮你检索出歌曲的详细信息来。非常有用和有趣。

[ad]

Add reCAPTCHA in WordPress

为了人类的文明的延续,本blog加入reCAPTCHA插件,虽然会引起comment不方便,但考虑到本人从人类文明这种高度看问题的态度,想必你能理解^_^(其实就是好玩)

从下面的链接你可以找到一些reCAPTCHA的内容:

http://recaptcha.net/ sign up to get a public key and a private key

http://wordpress.org/extend/plugins/wp-recaptcha/

http://code.google.com/p/recaptcha/

this is my email, you have to enter the words in the picture to see this email address: hi[at]charry.org

[ad]

A Chinese Version of HTML

貌似很强大,且据说是一个可以破墙而出的实现方式,使用reCAPTCHA(一石二鸟)技术,没有看太懂<反功夫网/>内的文字以何种方式表现(rendering),文字还是图片?如果是文字,那它的流还是经过‘墙’当然会被过滤,如果是图片,那就得有服务器支持才可以,那这样和浏览器有何关系?

http://code.google.com/p/chtml/

visit http://recaptcha.net/learnmore.html to get more info about reCAPTCHA

[ad]

带Tor,翻墙,上外网

FU, 就算没事,我也要上来看看。

torsf

End of Evaluation: Windows Vista SP1 RC

On July 1st, the evaluation release of Vista SP1 RC has expired, it’s said that Microsoft has warned those installed SP1 RC make sure uninstall it before the deadline. but i didn’t see that notice. so, from July 1st, my laptop kept rebooting every few hours, even hanged with a bluescreen of death. this really drove me crazy, until i realized that.

To check if you’ve installed evaluation copy, try to run ‘winver’ and a dialog will pop up, if you could see the following statement:

Evaluation copy. Expires 7/1/2008 7:59 AM

that’s it! you need to uninstall this copy. please run ‘appwiz.cpl’ and click ‘View installed updates’, then uninstall

Service Pack for Microsoft Windows(KB936330)

this will take you dozens of minutes. be patient. after that, you’ll restore your Vista.

Switch to our mobile site