simple singularities

unforking of webkit and khtml

Filed under: smalltalk, web2.0 — fri13th July 25, 2007 @ 5:23 pm

though i don’t like safari, it’s a great news.  most people think good browser is only in pc. but the pmp, cell phone or many consumer electronics will get their own browser someday, and the total count of browser will be more than pc. so this is a good decision, desktop browser’s market is already taken by ms ie. and because it’s a game of monopoly, the share will not be changed so drastically. but embedded browser market is different. you can’t choose or complain or uninstall, in most case. now the time is coming soon, everybody have to learn ie is not the default browser for internet.

http://arstechnica.com/journals/linux.ars/2007/07/23/the-unforking-of-kdes-khtml-and-webkit

javascript multiline match

Filed under: javascript, programming — fri13th July 24, 2007 @ 12:04 pm

javascripts’s . (dot) doesn’t match line boundary. so if you want match all strings in a multiline string, you should use [^]* instead normal .*  multiline flag ‘m’ is useless in this case.

it’s a small tip, but perl programmer like me doesn’t understand this behavior.. gee..

below is regex test page, i found today from ajaxian. cool,  but you have to be be cautious. it easily sutdowns the browser, when you testing this syntax /.*/g or so.
http://erik.eae.net/playground/regexp/regexp.html

P.S. unfortunately [^] doesn’t work in IE.. use [\s\S] instead, it works very fine..

lua programming language

Filed under: programming — fri13th July 19, 2007 @ 3:06 pm

lua is yet another kind of beautiful and clean script language. i’m using it now.. ^_^ it was 18th in tiobe index. and was 54th. very impressive jump, isn’t it? i haven’t noticed that there’s another useful script language in the world. but there is! i may expect better and better languages to come!

lua is some what looks like vbscipt, but far better in performance and many other case. most impressive feature in lua is its tiny set of reserved words. very few to remember well and not to confuse enough, only a minimal set is available. and the language itself is somewhat verbose but supports many features for everyday work. yeah, that’s the key point of lua. it does something perl did in more elegant way!

although it can be run in stand-alone mode, it can be very easily intregrated into many kind of host programs. you may not have a chance to meet this language today, but you’ll get a chance to meet this small friend, sooner or later.

somet points you must remember at first in lua are, comment starts –, not // or #, and table index stars from 1 not 0, not equal is ~=, not !=. it maybe look so strange, but it will works for non-programmers, i think..

vmware fusion rc1 bug

Filed under: apple — fri13th July 12, 2007 @ 11:49 am

i upgrade to rc1 today. i think parallels is also good, but vmware can share the virtual machine between linux/mac/windows. only one install is enough! and freeware vmware player is also a good solution for a hungry company. so  i decided to use vmware fusion from now..

and i installed windows xp sp2 in  new vmware fusion. the  damned blue screen is displayed in 100% case.  it seemed like win32k.sys has some trouble.. and what the hell is win32k.sys?

i found the solution by yahooing. set virtual machine’s memory to 128MB, and the installation went smooth. this situation is also occured in vmware player, too. i think it’s not desirable in rc1 software. i wish they fix this bug in normal version.

ubuntu totem player bug

Filed under: linux — fri13th @ 12:13 am

i installed ubuntu 7.04 server amd64 version in my pc, core 2 duo 6600, 4G ram, asus p5b board. there are so many troubles, i’ll explain these later. and only left critial problem is vmware sound bug. when starting vm, the message is appeared /etc/dsp is busy and don’t work.. there seems to be some kind of workaround.. but none works in amd64..

and totem player has some small bugs, 1. real media file is not supported. 2. totem-xine doesn’t support subtitle well, on the other hands, totem-gstream works good, except internal flow error. it can be overcomed by clicking start button.

except that, anything is fine, oh thanx god!

i love ubuntu and compiz fusion very much! i will record all the things and publish in my blog. (majorly for me not to forget) if you have any question, feel free to leave a message to me!

h2 and embedded java sql file db

Filed under: java, programming — fri13th July 5, 2007 @ 11:20 am

i have to admit there’s no good embedded java sql file db actually. i tested h2 yesterday and  h2 was good before the tuple was over 20,000. db access speed is scaled by O(n). and it showed heap error finally. aside the deadly critical table lock problem in concurrent situation, it cannot be used for real world db solution.

i know h2 is very good db, fastest and easy to use(with hibernate). i was impressed much. but when i need some db for embedded log system, h2 is not the product i have to adopt.

so there’s 3 ways  to solve this problem.
1. use derby(is there any other file base sql java db?)
2. use berkeley db java edition, this is not sql base
3. use non-java sql file db

derby is too slow, and buggy.. berkeley db’s structure is very different  and i have to redesign the entire or at least half of application. i’m not sure what is a good non-java sql file db. and non-java solution is also hard to maintain with servlet solution. there’s no time, so i have to decide  asap.. good luck to me~

P.S. i found some good discussion about this topic
http://www.h2database.com/ipowerb/index.php?s=58737509ee010033b0743b7a55a6f957&showtopic=331&st=0&

it seems that postgresql is the best solution, though it’s not a java db. but, i may choose the 4th option. 4. find a way with h2 -_-;;

fabtabulous

Filed under: javascript, programming — fri13th July 3, 2007 @ 2:31 pm

a cool tab solution using prototype.. i customize it for my personal project..

http://tetlaw.id.au/view/blog/fabtabulous-simple-tabs-using-prototype/
there are a lot of obscure things in javascript, so actual working-source is very helpful to newbies.. (I can’t understand the exact difference of Enumerable and Array)