Archive for 2008

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.

Singapore Trip

5个小时的行程,总算回国了,下面是我拍摄的一些新加坡的景色,可惜几乎都是晚上拍的,外加我的相机/手机处理夜色太差,效果可想而知。

 
从酒店俯瞰

 
新加坡的特色之一:Food Centre,大多数人不在家做饭,大都在这里吃饭,所以这里的食物种类多,味道好

 
Orchard Rd. 商业街


绿化做的很好,到处都是树木,可以起到降温的作用

For more go to
http://picasaweb.google.com/gspage/SingaporeTrip

Dushu Lake Higher Education Town

Share with you the photos taken at Dushu Lake Higher Education Town, Suzhou, 1st Mar 2008. 

 
-Library


-Road to library


-Sunset


-Guide Post

For more pics, please follow below link:

http://picasaweb.google.com/gspage/DushuLakeHigherEducationTown

Vista Sidebar Gadgets

Vista Gadgets是随Windows Vista一同发布的一个附属应用,它给用户提供了一个方便的扩展系统的机会。我们可以根据自己的需要来编写相应的Gadgets程序。它其实就是在Sidebar容器内部运行的一系列基于HTML和脚本的迷你WEB应用程序。

比如,公司运营常根据工作周(Workweek)来度量,而我们通常习惯于记日期,所以我们可以编写个简单的取得当前的Workweek的小应用。下面是该例子的下载链接:

AMD Calendar Gadget

更多信息,请参考:http://msdn2.microsoft.com/en-us/library/aa965850(VS.85).aspx

很好,很强大

今天公司AD&D(Annual Dinner & Dance),一不小心中了个一等奖,HP V3631 AU,很好,很强大。哈哈~~

Lost

17.15-07

<<Lost>>第一季中的第17集之第15分钟07秒,这个小女孩也在看<<Lost>>吗?

Page 5 of 512345

Switch to our mobile site