Thickbox add previous and next button on image like Lightbox

January 1, 2011

Lightbox has a fancy effect that use can navigate image back and forth by clicking the left or the right side of the current image. This is nice for the Thickbox being used in NextGen Gallery which is a gallery plugin for wordpress. I modified the Thickbox jQuery plugin  to implement the same thing. First, [...]

Read the full article →

Preload Next Image in Thickbox

December 20, 2010

Thickbox is a great image viewer plugin for jQuery. This post is to show how to preload the next image in Thickbox. My example is for wordpress, my version is . 1. Open /wp-includes/js/thickbox/thickbox.js 2. Around line 106, replace the following lines: imgPreloader = new Image(); imgPreloader.onload = function(){}; imgPreloader.onload = null; with: imgPreloader = [...]

Read the full article →

Fix NextGen Gallery IPTC Encoding Error in Chinese

December 10, 2010

NextGen Gallery is a great gallery plugin for wordpress. I am using it for my blog. I found a problem that if the IPTC information is in Chinese, it cannot import properly import as meta data. After searching and searching, finally I fixed the issue by modifying the /wp-content/plugins/nextgen-gallery/lib/meta.php file in get_IPTC function: Original code: [...]

Read the full article →

Solve LoadPostData Not Firing Problem

December 1, 2010

When you are developing a server side control and want to handle some postback data. You can implement the IPostBackDataHandler interface. One issue I encountered is that the LoadPostData() method does not fire when the page posting back. Even if some values of textboxes are changed. To solve this issue, you need to call the [...]

Read the full article →

ASTreeView 1.5.9 Release Notes

September 3, 2010

In ASTreeView, two small issues have been fixed: 1. Fixed error when the depth of treeview exceeds 20. 2. Fixed a typo error with “checkbox”. Download: http://www.astreeview.com/astreeviewdemo/Download.aspx

Read the full article →

Code Generation Error “There was a problem getting an AppDomain to run the transformation from the host.”

August 14, 2010

After installing CodeSmith 5.2.1, I found there’s an issue that Visual Studio 2010 cannot generate code by “Code Generation Item”, especially while generating Entity Framework entities. The error was “There was a problem getting an AppDomain to run the transformation from the host.” After uninstall the CodeSmith, everything is OK. Then I reinstall the CodeSmith [...]

Read the full article →

Pass through the GFW with Secure Shell (SSH)

August 8, 2010

Software Bitvise Tunnelier Download Proxy Switchy! (Chrome Plugin) Download FoxyProxy (Firefox Plugin) Download I uploaded all the tools in a package, you may download here: Click to download Installation Install Tunnelier, Proxy Switchy! or FoxyProxy(depending which browser you’re using). SSH Account For SSH account, here you can get a free one: http://www.cjb.net/shell.html Or you can [...]

Read the full article →

Delete Event Log Manually

August 4, 2010

For some reason, if you want to delete the event log, you cannot find it in event log viewer(eventvwr). But you can delete it manually, here are the steps: 1. Open Registry Editor (run –> regedit) 2. Navigate to “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog” 3. Delete the entries with the name of your event log. 4. Go to “C:\WINDOWS\system32\config\” [...]

Read the full article →

Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in the Internet zone.

July 23, 2010

After I upgrading Internet Explorer, I got the following message that I cannot debug in visual studio: Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in the Internet zone. This is quite strange. Then I start granting permissions, iisreset… but [...]

Read the full article →

Connect Remote Desktop using Tunnelier via SSH

June 23, 2010

Precondition 1. You need a SSH account. Buy a web host with ssh or search Google for free ssh. 2. Google Tunnelier, download and install on your computer. 2. If you are behind a firewall like you are in your company, you need SOCKS4 proxy fro Tunnelier to connect outside. Setup 1. Configure the Login [...]

Read the full article →