October 2006
Monthly Archive
Mon 30 Oct 2006
Posted by liucougar under
dojo1 Comment
After dicussion with Alex, we agreed that the commands implementation in Editor2 is not ideal. Currently, commands are global, which means all instances of Editor2 share the same command objects. As a result, for each command, it can not hold any properties which is specific to an Editor2 instance, if it wants to save such kind of information, it has to attach that it to the Editor2 itself, which is no good.
In addition to that, bug
#1505 will be fixed along the way when I migrate commands to be per instance objects.
This modification will not be API compatible with previous version (0.4.0 Editor2) with regards to how external commands are handled (including registration and retrieval). This is against rules to be merged into a point release, so it can be argued that this should not be merged into 0.4.1. However, as the new Editor2 is just released with 0.4.0 (which happened one week ago), and 0.4.1 will be soon (in 2 weeks time), so I’d like to push it into trunk for it to be included in 0.4.1, but we’ll see what the consensus is.
I will probably document how to migrate Editor2 plugins from 0.4.0 format to the new one later in another post.
Wed 25 Oct 2006
Posted by liucougar under
dojo[5] Comments
For reference about how to make use of the fontsize/fontname menus in the new dojo Editor2, the FCKeditor style toolbar template is
attached here.
In order to make use of this, you need to:
- unzip the file under src/widget/templates/Editor2
- pass these two parameters when creating an Editor2 instance:
toolbarTemplatePath: dojo.uri.dojoUri("src/widget/templates/Editor2/EditorToolbarFCKStyle.html"),
toolbarTemplateCssPath: dojo.uri.dojoUri("src/widget/templates/Editor2/FCKDefault/EditorToolbarFCKStyle.css")
Wed 25 Oct 2006
Posted by liucougar under
Linux1 Comment
When setuping trac on a server, I encountered a strange issue: the python binding of subversion can not be loaded by python, I got something like this:
libsvn_ra_dav-1.so.0: undefined symbol: gss_delete_sec_context
After googling around, I found out that,
someone suggested to disable
neon when compiling subversion 1.4. That did do the trick, and binding works. However, with neon disabled, svn can not work with http/https repositories, which is not acceptable. So I have to find another workaround.
Google told me that gss_delete_sec_context is part of libgssapi.so, and "ldd libsvn_ra_dav-1.so.0" reveals that it does not link to any libgssapi.so at all. The obvious workaround is to explicitly specify that in the Makefile.
Edit the top Makefile in subversion 1.4.0, append "-lgssapi" to this line:
SVN_APR_LIBS = ...
(… is the actual content you will see) after installing it, everything works fine now.
It may be argued that this is not a subversion issue, rather than a neon one (it should link to gssapi). As subversion uses a bundled neon, so maybe it is more faire to call it a subversion bug.
Thu 5 Oct 2006
Posted by liucougar under
LifeNo Comments
Last night, the online shopping website of ASDA seemed to be undergoing some upgrade: the service was quite unreliable. In fact, for more than half an hour, clicking on any links on the web page did nothing.
When finally it got back to normal, seems it did not like IE any more: it was impossible for me to add any items to my shopping basket. As I had been aware that ASDA was not compatible with Firefox when checking out, I thought adding items to basket should work fine, so I opened a new tab in Firefox to access ASDA.
It turned out to work just fine under Firefox. When everything was added and we were satisfied, I just proceeded to check out under Firefox (which had not worked out of the box, I had to modify the dom tree to get ride of some broken javascript function calls to make it work). After the successful page shown up, I realized that ASDA is now compatible with Firefox, finally! That’s nifty.
Sun 1 Oct 2006
Posted by liucougar under
Life[2] Comments
Today, October 1st, is the national day of People’s Republic of China, my mother country. I don’t know how to express my emotion at this moment, but I do feel compelled to write something about this in blog to show that I am Chinese and I love my mother country from my deepest heart.
I had no idea what I could do for my country today: I am no way near of literal master to write an article about China. However, when I heard the "Today is your birthday, my China" (今天是你的生日我的中国) in a forum thread, the idea of translating the lyric to English came to me. I did try my best to translate it but please bear with my English.
(more…)