This blog gives the instruction on how to enable color syntax in vim for scala. However when I follow the instruction to operate on my windows box I found it works correctly for my cygwin vim application, but does not work for windows gvim installation. After a few search on google, I found the problem is the rtp(runtimepath) of the different vim instance is different. cygwin vim automatically add ~/.vim in rtp, which stores the files of scala syntax, while windows gvim does not do the work. So the solution becomes obvious: Adding following line into your .vimrc file makes sure ~/.vim always loaded into runtime path, even on windows version:
set rtp^=~/.vim
Jul 25, 2010
Mar 28, 2010
Play Excel Module
My second Module for Play! framework now published at http://github.com/greenlaw110/play-excel
Mar 22, 2010
GreenScript
I have just released a Play! framework module called GreenScript at github.
This module help Play application developer to do javascript/css file dependency management and minizing.
There are mainly three parts in this module:
* a configuration file to define the dependencies of javascript and css files
* several javascript for loading configuration/maintaining dependencies and output javascript files (in compressed form if configured) in a sequence defined by the dependency
* two play template tags to declare javascript and css file in html templates
This module help Play application developer to do javascript/css file dependency management and minizing.
There are mainly three parts in this module:
* a configuration file to define the dependencies of javascript and css files
* several javascript for loading configuration/maintaining dependencies and output javascript files (in compressed form if configured) in a sequence defined by the dependency
* two play template tags to declare javascript and css file in html templates
Mar 20, 2010
Scrolldicator
I've published scrolldicator (a javascript UI control) at github. And there is a video clip to show what scrolldicator is.
Mar 18, 2010
First bug report of pMask
Mr. Stephan report an error of pMask. He needs to duplicate form input element dynamically, and that happens after input elements are pMasked (initialized using new pMask()). Soon he found the duplicated input lost mask capability and calling to "new pMask()" again will cause malfunction of old inputs while new inputs get worked correctly.
This is fixed quickly. However i found there is a problem running pMask on IE 8 (should not be relevant to this bug). I have a extension to prototype Event object by using "Event.prototype.key() = function() {...}", this statement works fine in Firefox and Chrome, however it cann't pass in IE8. This naughty browser report error: "'Event.prototype' is null or not an object". I am looking for the solution of this problem.
This is fixed quickly. However i found there is a problem running pMask on IE 8 (should not be relevant to this bug). I have a extension to prototype Event object by using "Event.prototype.key() = function() {...}", this statement works fine in Firefox and Chrome, however it cann't pass in IE8. This naughty browser report error: "'Event.prototype' is null or not an object". I am looking for the solution of this problem.
Thinking about Software blog resumed
Now that i've settled down in Australia, it's time to resume this blog. (www.blogger.com is blocked in China, sorry).
Dec 6, 2009
A good way to replace notepad.exe without touch system32 folder
In short, create a key (notepad.exe) under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options (in 64bit system it is HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options). Create an string item named Debugger, put in the path of your favorite editor.
But wait, it's not end yet. Your editor need a special treatement, e.g. you need special version of notepad2.exe from http://code.kliu.org/misc/notepad2/ to get it work.
Fortunately there are other ways to make this solution more generic. check it at http://www.vistax64.com/tutorials/244527-programs-replace-system-program-without-modifying-system-files-permissions.html
But wait, it's not end yet. Your editor need a special treatement, e.g. you need special version of notepad2.exe from http://code.kliu.org/misc/notepad2/ to get it work.
Fortunately there are other ways to make this solution more generic. check it at http://www.vistax64.com/tutorials/244527-programs-replace-system-program-without-modifying-system-files-permissions.html
Subscribe to:
Posts (Atom)