-
Recent Posts
Recent Comments
Archives
- April 2010 (1)
- December 2009 (1)
- November 2009 (1)
- March 2009 (2)
- July 2008 (2)
- June 2008 (2)
- May 2008 (2)
- April 2008 (2)
- November 2007 (2)
- October 2007 (1)
- September 2007 (4)
- August 2007 (5)
- July 2007 (4)
- June 2007 (10)
- May 2007 (12)
Categories
- AJAX (5)
- Blog Tips (2)
- Bug Fix (4)
- C++ (3)
- Challenge (1)
- Comet (2)
- Debug (2)
- Eclipse (8)
- Google Talk (4)
- httpd (3)
- Jambi (1)
- Java (10)
- Java2Script (6)
- JavaScript (3)
- MySQL (1)
- Project Management (4)
- QT (1)
- Server (1)
- Snippet (2)
- Software Requirement (2)
- Subversive (1)
- Tomcat (4)
- Tricks (11)
- Uncategorized (8)
- Vim (1)
- Vista Hacks (1)
- Wordpress (1)
Blogroll
Meta
Category Archives: Tricks
Export Eclipse Plugin, Assert Errors
Here is my scenario: I import Eclipse RSE( Remote System Explorer) plug-ins into my workspace and I want to build and test it myself. There are no errors in the workspace and running and debugging is all OK. And I … Continue reading
VMWare Player, Ubuntu and Mac OSX
So you want to play some other operating systems for some new features, or test your applications on other OSs? Take a try on VMWare Player. It is free. Along with downloading and installing VMWare, you should also download OS … Continue reading
Port Mapping on Linux
Mapping port 80 to inner port 8080: /sbin/iptables -t nat -A PREROUTING -i eth+ -p tcp –dport 80 -j REDIRECT –to-port 8080 Well, I use this trick to avoid firewall blocking.
Posted in Tricks
2 Comments
How To Replace “/” With “” in .bat File
Here is an example to replace string with a different delimiter in Windows’ *.bat file. for /f "tokens=1-15 delims=/" %%i in ("%1") do ( set _X1_=%%i set _X2_=%%j set _X3_=%%k set _X4_=%%l set _X5_=%%m set _X6_=%%n set _X7_=%%o set _X8_=%%p … Continue reading
Failed to Download Files from FTP Servers
Today, I came across a problem: I could not download files given by “ftp://…”. I could ping that server, but could not link to it. I was using FlashGet and I tried to change some preferences but didn’t work. At … Continue reading
Posted in Tricks
Leave a comment
Get Projects List in Eclipse Workbench
http://dev.eclipse.org/newslists/news.eclipse.newcomer/msg13300.html Add org.eclipse.core.resources in the Require-Bundle section in your plugin MANIFEST.MF file and invoke code: ResourcesPlugin.getWorkspace().getRoot().getProjects()
Posted in Eclipse, Java, Tricks
Leave a comment
Clean Eclipse Plugins’ Build Path Errors
Sometimes, Eclipse may have errors in calculating build paths, which may result in that some projects are marked as red cross error icons and further building is interrupted. The common error message for this would be “Project … is missing … Continue reading
Posted in Eclipse, Tricks
Leave a comment
Enablement Expression and Property Tester
Source: http://www.eclipse.org/webtools/wst/components/server/runOnServer.html Enablement Expression Performance Enablement expressions allow you to create arbitrarily complex expressions using ands, ors, nots, and Java code. For performance reasons, it’s always better to use the expression support instead of using Java code, which is slower … Continue reading
Posted in Eclipse, Tricks
Leave a comment
Create a Process and Read Its Output
This is a snippet of windows C++ code to create a process and read its output until some specific string is printed. This is useful for programmer to start a server and only to return until the server is started, … Continue reading
Posted in C++, Snippet, Tricks
Leave a comment
Why JavaScript’s Date#getMonth Start From Zero?
Today, one of my colleague asked me a question about JavaScript’s document.lastModified, here was my answer for her: javascript:dd=new Date(document.lastModified);alert(dd.getFullYear() + “.” + (dd.getMonth() + 1) + “.” + dd.getDate() + “//” + dd.getHours() + “:” + dd.getMinutes() + “:” … Continue reading
Posted in JavaScript, Tricks
Leave a comment