Kobkrit's blog

Ways to access English Wikipedia when it's on black out campaign for against SOPA/PIPA.

The following is the ways to access English Wikipedia for anyone who urgently need it. (including me)
1) Disable Javascript on English Wikipedia site.


For Google Chrome
  1. Visit ``chrome://settings/contentExceptions#javascript``
  2. On the hostname pattern text box, Enter ``http://en.wikipedia.org``
  3. On behavior selection box, Select ``Block``
  4. Visit ``http://en.wikipedia.org/wiki/Stop_Online_Piracy_Act``

For Firefox
We need using plugin ``Noscript''.
  1. Visit ``http://noscript.net/?ver=2.2.6``
  2. Click Install
  3. Restart Firefox
  4. Visit ``http://en.wikipedia.org/wiki/Stop_Online_Piracy_Act``
** I am not the supporter of SOPA, It's really bad. I posted here for anyone who urgently need to access Wikipedia. **

[Read more]
[GWT MVP] @UiField Generator for View from UiBinder ui.xml file

This is a naive version for @UiField generator and define ensureDebugId() for every field that has attribute "ui:field" in ui.xml file.

It's dramatically reduce time consumption to manually write these boilerplate codes.

1) Modify your ui.xml file's path.
2) Run it as Java application.


3) Copy and paste the generate code in to your View source code.

[Read more]
Wordnet Mysql DB on Google Cloud SQL

I have written the collaboration KJ editor web service called http://creates.ws.
One feature of this application require the wordnet database access from the cloud.

The process of importing database to Google Cloud SQL is:
http://code.google.com/apis/sql/docs/advanced_tasks.html#importexport
...

[Read more]
Combination and Permutation

Combination
Have n choose k without repetition = n!/((n-k)!k!)
Have n choose k with repetition = (n+k-1)!/(k!(n-1)!)

Permutation
Have n sort k without repetition = n!/(n-k)!
Have n sort k with repetition = n^k

[Read more]
Computing a Sequence Median using Priority Queue.

Today I have try out a Timus programming problem http://acm.timus.ru/problem.aspx?space=1&num=1306. This problem is not guaranteed to be solvable in Java (Timus FAQ for Java programming). Without knowing the fact, I have try it out. Even though it used very small amount of memory but it is always exceeds the memory limit defined in the problem. So, Instead of leaving it dies in my harddisk, I want to show you all the method.

...

[Read more]
Examination of Foreign to Japan Driver License Conversion

Why? We need to do it.

  1. You want to drive a car in Japan.
  2. You do not have an international driving license.
  3. You have an international driving license but it is already expired.
(This is very long post ...) ...

[Read more]
Copy/Move Large File Exceed the Maximum Size of Volume.

Sometime, we want to copy/move the large file from one computer to another.
But the thumbdrive that we use is FAT file system which allows the maximum file size only 2GB.
To solve this, we use split-and-concat command which only installed in ubuntu by default.

...

[Read more]
GWT MVP 2.1 with nested activities

I have read about the GWT MVP 2.1 design pattern from the gwt docs. http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html

I also have read about the proposed method for the nested Activity for rendering view on each display region of the Webpage in
http://tbroyer.posterous.com/gwt-21-activities-nesting-yagni

Then, I have modified the Google's sample code to the nesting one. It is good for everyone who is programming GWT web application using nesting activity. You can download it here.

http://dl.dropbox.com/u/3997934/HelloMVP_Nest.zip

I hope most of you will enjoy on this example.


[Read more]
How to fix Java applets unable to run in Ubuntu 64bit.

In Ubuntu 64bit 10.10, Only OpenJDK is in the main repository.
Its applet plugin (icetea6-plugin) is not compatible with most Java applets.
Since they are written by the official library from Sun Microsystems (Oracle).
To solve this, we need to install sun-java6-plugin into our machine and remove all icetea6-plugins.

...

[Read more]
How to see space characters in gedit.

1) $sudo apt-get install gedit-plugin
2) Open gedit
3) Edit > Preference > Plugin
4) Enable draw space.
In fact, there are many useful plugins available, check it out.

[Read more]
I'm Kobkrit Viriyayudhakorn.
Doctoral Student, JAIST.
View my resume
View my rank in Timus online judge
My Projects

Research interest