Archive for April, 2008

The fifth birthday of CHARRY.org is coming soon

时间过得真快,转眼间,我的第一个域名即将迎来它的5岁生日,今天收到Registrar发来的提醒邮件,告知我,域名将在30天内到期。于是乎,我Whois了一下自己:

Domain ID:D98209215-LROR
Domain Name:CHARRY.ORG
Created On:29-May-2003 14:20:11 UTC (那是一个下午,在一个网吧中,呵呵)
Last Updated On:29-Apr-2008 05:14:43 UTC
Expiration Date:29-May-2009 14:20:11 UTC
Sponsoring Registrar:Bizcn.com, Inc. (R1248-LROR)
Status:CLIENT TRANSFER PROHIBITED
Status:RENEWPERIOD
Registrant ID:orgzw72695041989
Registrant Name:zhenyu wang
Registrant Organization:zhenyu wang
Registrant Street1:AMD Technologies China NO.88 SuTong Rd. Suzhou
Registrant Street2:
Registrant Street3:
Registrant City:SuZhou
Registrant State/Province:JiangSu
Registrant Postal Code:215021
Registrant Country:CN
Registrant Phone:+1.1391543***8
Registrant Phone Ext.:
Registrant FAX:+1.1391543***8
Registrant FAX Ext.:
Registrant Email:charrywong@gmail.com
Admin ID:orgzw72695042608
Admin Name:zhenyu wang
Admin Organization:zhenyu wang
Admin Street1:AMD Technologies China NO.88 SuTong Rd. Suzhou
Admin Street2:
Admin Street3:
Admin City:SuZhou
Admin State/Province:JiangSu
Admin Postal Code:215021
Admin Country:CN
Admin Phone:+1.1391543***8
Admin Phone Ext.:
Admin FAX:+1.1391543***8
Admin FAX Ext.:
Admin Email:charrywong@gmail.com
Tech ID:orgzw72695043313
Tech Name:zhenyu wang
Tech Organization:zhenyu wang
Tech Street1:AMD Technologies China NO.88 SuTong Rd. Suzhou
Tech Street2:
Tech Street3:
Tech City:SuZhou
Tech State/Province:JiangSu
Tech Postal Code:215021
Tech Country:CN
Tech Phone:+1.1391543***8
Tech Phone Ext.:
Tech FAX:+1.1391543***8
Tech FAX Ext.:
Tech Email:charry….g@gmail.com
Name Server:NS1.BOLEAD.COM
Name Server:NS2.BOLEAD.COM

Carrefour blocked by baidu.com

2008-04-29_114213

法国人真是倒霉,开罪了那么多中国人,害得家乐福被抵制。本人并不赞成这样的爱国行动,民主国家有它自己的机制,言论自由是很自然的事情,所以就发生了前些时候的藏独骚扰Torch Relay事件,我们一边在反对别人将奥运政治化,却无视我们的政府把奥运政治化,愤青总会选择性的看待某些事情,到处抵制,其实大家都知道目前是全球经济一体化,伤害的大概还是自己人吧,国不是这么爱的。家乐福可算是出了风头了,荣幸的进入了我朝的‘敏感词列表’,国人至少目前不能搜索家乐福(中国)的资料了,法国人却可以(他们可以Google)。我代表我自己,表示向法国政府抗议。

P.S.: 最后,感谢奥运会让Wikipedia部分暂时性的开放了。

又是一年,夏天到来之前

早上出门,发现自己无意(辞典云:无意乃“没有做某件事的愿望”的意思)中把相机装在包里了,下班前,天色尚早,随手拍摄几张图片如下:

 

此帖为水贴,纯粹为了更新而更新,请阁下勿期望从中悟出令人大彻大悟的、叹为观止的、久久不能忘怀的哲理来。

A PHP snippet for managing htpasswd file of Apache

Are you looking for a tool for managing AuthUserFile of Apache? if so, here’s a mini php-based htpasswd admin tool for you. maybe it helps.

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

 For now, it’s just a draft, if you like it, please reach me and let’s make it better.

Enable rewrite in Mediawiki

To those who want to enable rewrite in Mediawiki, please take a look at the following instructions:

  1. Move your Wiki to a sub directory of your site, for instance /w
  2. Create .htaccess in root directory, that is / and add the following lines to it:
  3. RewriteEngine on
    RewriteRule ^wiki/?(.*)$ /w/index.php?title=$1 [L,QSA]

  4. Open your LocalSettings.php and add the following lines to it:
  5. $wgScriptPath = “/w”;
    $wgScript = “/wiki”;
    $wgArticlePath = “$wgScript/$1″;

  6. Done.

Before you try this, please make sure you have enabled the rewrite feature of your Apache. and what the most important is: when you enabled rewrite in httpd.conf, you must stop it and start it. please note, if you just try ‘restart’, it won’t work. i was stuck here for a loooog time. :(

Upload the 3rd party artifact to local Archiva

Maven is a powerful build tool, more and more developers migrate to it, so do I. Below is the command for deploy the 3rd artifact to your local Archiva:

mvn deploy:deploy-file -DrepositoryId=internal -Durl=http://ssuzsws02:8080/archiva/repository/internal -DgroupId=com.amd.sws -DartifactId=mysql-connector-java -Dversion=3.0.17 -Dpackaging=jar -Dfile=test.jar

but before you issue this command, you should add the following lines to your local settings.xml

<servers>
  <server>
   <id>internal</id>
   <username>admin</username>
   <password>mypassword</password>
  </server>
</servers>

FYI.: when you upload your jar file to Archiva, you can’t see it immediately, please be patient and wait several minutes, the artifact list will be synced soon.

Switch to our mobile site