Archive for the 'MyApp' Category

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.

A New Release of Yet Another Browser

I've changed my plan, Yet Another Browser(YAB for short) still looks like its sibling, if a brower has a MS-Word-like look-and-feel, is it weird? So far, I think YAB will be helpful for some guys. If you're addicted to online photo communities, like Flickr, it can help you download photos when you go surfing, you don't need to save the photos manually. Just one click, all photos are flying to your disk on autopilot.

Features:

  1. You can tune up the opacity of main window
  2. Multi-tab support
  3. Right-click Close-Button to click all tabs, Left-Click just close one.
  4. Your can rename the title of YAB, it will show what you want on task bar.
  5. You can set the length of tab's title.
  6. Keep a list of websites you recently closed, you can easily undo it.
  7. Just one-click to download all images in current tab
  8. You can change the default direcotry where images will be saved.

Todo:

  1. Boss key
  2. Regular-Expressions for downloading images
  3. Password Protection
  4. Favorites
  5. Clear hisotry
  6. Clear dropdown list
  7. Self-update
  8. i18n
  9. Auto-downloading images when you go surfing, even you don't need one-click.
  10. You can replace the icon of YAB with another one.

Homepage for YAB: http://charry.org/m/myapps/YetAnotherBrowser 
Stay tuned.

Yet Another Browser

If you're a office worker, are you afraid of being busted by your boss when surfing? I make this semi-browser from scratch, it resembles a regular Microsoft Office Suit Application,  I'll add the following features to the browser, e.g.:

  1. Transparent window
  2. One-click to hide
  3. Download all images to your disk
  4. ...

I created it with C#,  it's easy to create your own browser with its powerful components, everyone can make it if he wishes.

Download it! (Make sure you have the .NET Framework 2.0 installed on your computer)

A parser for Netscape Bookmark File Format

There're many kinds of bookmark formats for browsers, Netscapte Bookmark File Format is a popular one. it has a long story, the HTML-like bookmark is not easy to parse, XML is the best alternative, if I've got choice. but the well-known browser FireFox still use this format. In order to parse it, you have to do it using the basic string operation, like 'find', 'substring', etc. I wrote a small app for parsing bookmarks.html which is located in "...\Application Data\Mozilla\Firefox", the project was built with VS2005(UNICODE version). Follow this link to download the project files.

I'v got a question: How to sort IE's favorites, IE saves its favorites in a directory, but the order is saved in Windows Registry([HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Favorites]). The binary data is saved as private data format, AFAIK there is no articles about this format on MSDN. I saw some articles illustrating how to 'GUESS' the real meaning of it. but guessing is not the perfect solution, if you know about this, please tell me :).

A class for simulating MSN Messenger popup window

This is a dialog-based class derived from CDialog, it shows or hides a dialog in an animated way, just like MSN Messenger does. it's still a draft, I'll add more features and refactor it later on.

Usage:

  1. Add "AnimateDlg.h" and "AnimateDlg.cpp" in your project.
  2. Add a CDialog-based class in your program.
  3. Replace all 'CDialog' with 'CAnimateDlg' in header file and implementation file.

Known Bugs:

This verstion of CAnimateDlg only works properly when Windows task bar is on the bottom of screen. it'll be fixed in a future version.

To be continued...

Download project

发布一个Google Talk辅助聊天工具

Usage:

  1. 下载GSnap
  2. 如果你有web server,请先配置你的上传图片的脚本,保存为g.xml
  3. 执行GSnap,截图后,图片会自动上传到您的服务器中,并且图片的URL就保存在系统的剪贴板中,你只要在聊天窗口中,paste给您的朋友即可。(虽然和QQ的截图相比还是有些不方便,但总比没有强:)

旧版本的GSnap只能截图,新版本的GSnap加入了将截图上传到http server的功能。目前功能比较单一,但也比较简单,如果您是个网站站长,拥有自己web server,也许这个会给你带来些许用处。

配置文件如下

<gsnap server="charry.org" uploadpath="test" url="test/upload9233832dfkasdf_sdf.asp" port="80" tagname="file1">
<!-- server: your web server's hostname or ip address -->
<!-- uploadpath: the relative upload-path in your web server -->
<!-- url: the path of your uploading script, e.g. upload/upload.php -->
<!-- port: port of web server -->
<!-- tagname: tag name in form -->
</gsnap>

如上面的xml所示:

server表示服务器地址,注意不要带http://
uploadpath表示上传目录,这个地址是相对于服务器根的地址,注意这个目录的权限
url表示上传文件脚本的地址,这个地址是相对于服务器根的地址
port表示服务器的端口
tagname表示上传页面<form />中文件名的标签名

点击这里下载

P.S. 下一版本可能会加入自动上传到知名相册站点的功能,比如Google Picasaweb, Flickr等