Importing existing GWT source to Eclipse

May 27th, 2010 Pan 1 comment

If the existing source is an Eclipse project, then you can import it to Eclipse as normal

But if it isn’t an eclipse project (like the GWT sample Showcase), you have to generate Eclipse project using Google’s tool: Read more…

Categories: Uncategorized Tags: ,

Repeat command every 10 seconds in Linux shell

April 28th, 2010 Pan No comments

If you want to repeat “uptime” every 10 seconds in Linux shell, you can type

while x=1;do uptime;sleep 10;done

it also works for other shell commands, just replace “uptime” with what you need

Categories: linux Tags:

IOError “Access is denied” installing gem using netbeans

October 19th, 2009 Pan 1 comment

Well I got this trying to install gem using Netbeans on Windows:

"ERROR:  While executing gem … (IOError) Access is denied"

It cost me ours to figure out what was the problem.  Netbeans was trying to write to local ruby gems directory which is likely to on the system disk and is protected by Windows. The solution is simple:

Just run Netbeans “As Administrator”. I suppose you know how to do this since many program would have similar problem. In the case you are not sure, please right click you Netbeans startup icon and choose “Run as administrator” on the dialog.

Categories: Uncategorized Tags:

How to tell if Linux is 32 or 64 bit

July 22nd, 2009 Pan No comments

Sometimes you want to tell if your Linux installation is 32 bit or 64 bit.

Short story:

just type this:

getconf LONG_BIT

Read more…

Categories: Uncategorized Tags: ,

Tacking multiple domains using Google Analytics

July 8th, 2009 Pan 4 comments

If you have two or more domains / sites, it is a headache to track all of them using Google Analytics. Yes you can track 10 sites using 10 profiles, but you lost the whole picture. Here is how to track multiple domains using a single profile (so-called cross domains tracking).

Read more…

Categories: Uncategorized Tags:

Install ruby 1.9 on Windows using zip binary

May 30th, 2009 Pan 40 comments

Update:  This post is outdated. All in one installer for 1.9 is ready now, you should use it if you need 1.9 on windows. Get it here http://rubyforge.org/frs/?group_id=167

Ruby has “all-in-one” installer for Windows, but it is outdated. As of May 2009, Ruby 1.9.1 is released, the installer is still 1.8.6. If you want the latest version, you need the zip package. But the zip package is missing zlib.dll, libeay32.dll, ssleay32.dll and readline.dll . Here is how to install it on windows. Read more…

Categories: ruby Tags:

WordPress 2.7 Plugin tutorial : First Plugin in 20 lines

May 30th, 2009 Pan 1 comment

WordPress doesn’t provide an “Hello world”  plugin tutorial. There are some links to 3rd party tutorials,  but those samples are years old and doing stuff in old way.

It doesn’t have to be that complex. I will demonstrate how to create a simple plugin in 20 lines, the plugin can add some HTML to page footer and/or post.  Read more…

Categories: plugin, wordpress Tags:
Orange Cabin