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.

Find Out What People Search For and Compare Them

"With Google Trends, you can compare the world's interest in your favorite topics. Enter up to five topics and see how often they've been searched for on Google over time. Google Trends also displays how frequently your topics have appeared in Google News stories, and which geographic regions have searched for them most often."

Follow the links and check out the results:

http://www.google.com/trends?q=%E7%94%B7%E4%BA%BA%2C%E5%A5%B3%E4%BA%BA&ctab=0&geo=all&date=all&sort=0
http://www.google.com/trends?q=%E4%BD%A0%EF%BC%8C%E6%88%91&ctab=0&geo=all&date=all&sort=0
http://www.google.com/trends?q=%E5%A5%BD%E7%94%B7%E5%84%BF%EF%BC%8C%E6%88%91%E5%9E%8B%E6%88%91%E7%A7%80&ctab=0&geo=all&date=all&sort=0
http://www.google.com/trends?q=%E5%8C%97%E4%BA%AC%EF%BC%8C%E4%B8%8A%E6%B5%B7&ctab=0&geo=all&date=all&sort=0
http://www.google.com/trends?q=Windows%2C+Mac%2CLinux&ctab=0&geo=all&date=all&sort=0
http://www.google.com/trends?q=China%2CJapan&ctab=0&geo=all&date=all&sort=0
http://www.google.com/trends?q=China%2C+USA&ctab=0&geo=all&date=all&sort=0
http://www.google.com/trends?q=Chinese%2C+English&ctab=0&geo=all&date=all&sort=0
http://www.google.com/trends?q=VC6%2CVS2005&ctab=0&geo=all&date=all&sort=0
http://www.google.com/trends?q=C%2B%2B%2CC%23%2CJava%2CC&ctab=0&geo=all&date=all&sort=0
http://www.google.com/trends?q=centos%2Credhat%2Cubuntu%2Cfedora&ctab=0&geo=all&date=all&sort=0
http://www.google.com/trends?q=Google%2CBaidu%2CYahoo%2CLive+Search&ctab=0&geo=all&date=all&sort=0
http://www.google.com/trends?q=CVS%2CSVN&ctab=0&geo=all&date=all&sort=0
http://www.google.com/trends?q=Google%2CMicrosoft&ctab=0&geo=all&date=all&sort=0

Results are self-explanatory.

Google Gears Launch

Google Reader于今日发布了"Google Gears",相比较Google其他的一些实验室产品,Google Gears是一个革命性的开发工具/模式。它主要解决了一个问题,而这个问题也是影响WEB体验一个重要的问题,就是:用户处于离线状态,网络应用该如何继续。通常情况下,网络断后,我们只能等待网络接通后继续,有了Google Gears,一切将改变。使用GG开发的Web应用程序,会在网络连通的时候下载一些必要的数据,缓存到本地,当网络处于离线状态时,用户的数据将保存在本地,等到网络再次可以访问时,用户在离线时期所作的更改将和服务器进行同步,这样离线与否对于用户体验并没有多大的影响,这在以前是不可想像的。我们可以设想一下有了Google Gears将会对那些原有产品产生影响,Google Document就是其中一个典型,原先有很多人批评Google Doc只能在线使用,一旦离线,所有的一切都是空谈。有了GG,用户所编辑的文档都可以缓存在本地计算机,即使网络断了,只要等网络恢复后,这些数据将会和线上的数据同步,以保证数据的完整性。

但是它也有其不完美的地方,比如:某个数据被多个用户共同访问,如果某个用户断线了,那么该用户在离线模式下所作的修改该如何和其他用户的数据同步。等等。

Google用 LocalServer来管理对离线应用程序的访问,而 LocalServer使用 Database来管理用户数据,需要提一下:Google这次选择了SQLite,这是个开源的数据库系统,非常小巧,但功能丝毫不差。如果有大量的数据需要同步,WorkerPool则可以解决这个问题,有兴趣的朋友可以去Google Gears的官方站点看看:http://code.google.com/apis/gears/index.html

下图是我今天登录Google Reader的时候,Google Gears 插件同步数据的图示:

Google Gears