-
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
Monthly Archives: May 2007
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
RSE Sucks
I do think that Remote System Explorer (RSE)? sucks for its plugin management. Too many small size (about 10k – 20k) plugins, about 42 plugins (about 30 core plugins), while all Eclipse SDK plugins number is 141.
Posted in Eclipse, Project Management
Leave a comment
Backup and Restore Databases in MySQL
Just simple as following: mysqldump -h host -u user -p –databases db > dbbackup mysqldump -h host -u user -p CREATE DATABASE restored; mysql -h host -p -u user restored < dbbackup
Posted in MySQL
Leave a comment
Upgrade to WordPress 2.2
My blog is based on WordPress. Today I saw that there was a new version of 2.2, and decided to upgrade. As there are chances to upgrade frequently, I wrote a shell for myself: #!/bin/sh cd $1 $2 cp wp-config.php … Continue reading
Posted in Blog Tips
Leave a comment
Snippet: Open Editor a Local File in Eclipse
Here is codes to open editor a local file in Eclipse: IFileStore fileStore = EFS.getLocalFileSystem() .getStore(new Path(file.getParent())); fileStore= fileStore.getChild(file.getName()); if (!fileStore.fetchInfo().isDirectory() && fileStore.fetchInfo().exists()) { IWorkbenchWindow fWindow = Java2ScriptUIPlugin.getDefault() .getWorkbench().getActiveWorkbenchWindow(); IWorkbenchPage page = fWindow.getActivePage(); try { IDE.openEditorOnFileStore(page, fileStore); } catch (PartInitException … Continue reading
Posted in Eclipse, Snippet
Leave a comment
Tools for Smart or Normal People?
I came across this question when I read those discussion emails about how a folder should be arranged. Arranging a folder may be easy for us, just create some sub folders and put some files into them accordingly. Does it … Continue reading
Posted in Software Requirement
Leave a comment
“Compare With …” Bug Fix in Subversive 1.1.2
There are two known bugs in Subversive 1.1.2 at the time of this writing. 1. “Compare with? …” will fail to get content from SVN repository if the given file has history of being moved or copied from other location. … Continue reading
Vim Tricks
To replace a block of text into String in vim, try the following commands: :%s/\/\/gc :%s/\n/\n” +\r”/gc To replace specific string into another in lots of files, e.g. replace *.java’s package name “net.sf.j2s.” into another name “org.java2script.”, follow the instructions: … Continue reading
Posted in Tricks, Vim
Leave a comment
Less User Configurations
When designing software, there is a rule: Do NOT let user see much of its configurations. That is to say, make the software simpler, user may feel more comfortable. And if you let user configure too much, you won’t get … Continue reading
Posted in Software Requirement
Leave a comment
Focus On Your Key Problem
Always place your most skilled developers to the key problem. No matter the developers like to dive into the problem or not. Don’t place too much expectation on those fresh developers for the key problem. Or, you will get an … Continue reading
Posted in Project Management
Leave a comment