-
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: Snippet
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
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