i developed some code using jQuery. and sometimes fadeIn doesn’t work and i don’t know why. so i google it and find some answer..
http://www.nabble.com/Odd-JQuery-behavior-in-FF-td17735413s27240.html
1
| body { -moz-opacity: 0.9999; } |
looks wierd. is it a ff3 bug or jQuery bug? i can’t say..
ok, this is my first obstacle, but i think i will use jQuery as my primary javascript framework. this is simple and has a lot of functions i want. i have to rewrite all my prototypejs code to jQuery. it will take some time but worth it.
my plan to make another javascript framework will not be fulfilled in this year. i feel sad about that. but to develop jquery, it’s another chance to promote my will. and maybe i can release mine in next year or so, hopefully..
i worked for sometime using codeigniter. this mvc framework is lightweight, simple and intuitive.
actually i compared every php framework for my new job. and codeigniter is the best solution. it supports native session, mvc, active record, enough security features.. just good..
at first, i planed to make my own framework, that may be faster than any other framework.. but it was very painful experience to start from nothing.. now i have a good frameworks to reference, i may try again someday
very funny cartoon about emacs ‘-)
enjoy the long korean holidays, my fellows!
http://xkcd.com/378/
ruby 1.9 is released in this christmas. this release is very meaningful. in 1.9, critical i18n bug is fixed, so you can use mixed character code, not only utf-8. many other trivial, but unobvious syntax is fixed also. the performance is improved much.
ruby developer’s move is very reasonable. it only focuses on its very own usage. it doesn’t target all platform or all purpose, i.e. embedded or gui. and that’s enough in this age..
i think ruby 1.9 or 2.0 will be the turning point like linux’s 2.4, from personal web page to enterprise server. it was very painful to maintain 2.2 or below version’s linux server. so i’ll wait to use rail till 2.0′s released. it will not take so long. see you then~
i stuck some strange bug today. somewhat wierd error message showed when i tried to login with unauthorized account. it’s only a 403 situation. why i have to see this error messages?
java.lang.NullPointerException
org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:58)
org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport .java:54)
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport .java:49)
org.apache.jsp.WebContent.index_jsp._jspx_meth_s_005fhead_005f0(index_jsp.java: 155)
org.apache.jsp.WebContent.index_jsp._jspService(index_jsp.java:77)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at first, i thought it’s the problem of authentification. but that wasn’t. it’s because i use struts 2′s <s:if tag in my header.jsp. struts 2′s tags cannot be used in jsp directly. you have to use those with some actions. so my 403.jsp generates an error message for that. i change it to <c: and it works fine now.
i used kitty as my default terminal in vista environment. but kitty doesn’t support transparency mode in vista, and putty itself doesn’t support japanese or korean.. i was very surprised, there’s a patch for japanese character and multi-byte characters. why putty doesn’t adopt it?
i delete kitty and install the patched version of putty. now japanese character is displayed well.
putty’s way of ssh auth is somewhat absurd. they use their own format of key and to generate ppk(putty private key), we have to get a private key of ssh2, not public key. why do we need private key when we just want to connect the server? is it ok? i don’t know at all..
h2 is a cool java sql db. it’s quick and handy. but not stable as other (non-java) db solutions.
sometimes “Unique index or primary key violation” is occured. probably inserting data in multiple threads cause this (though i set single thread mode). it’s critical, you have to fix this manually, not automatically.
in h2′s official site, this procedure is not well explained. org.h2.tools.Recover and org.h2.tools.RunScript will fix this problem.
1. org.h2.tools.Recover will generate *.sql backup file.
2. delete broken db
3. run org.h2.tools.RunScript. you will face some sql error.
4. comment the parts in *.sql. delete db and run RunScript again and again.
if you have a critical data, you have to be careful to fix sql file.
i’m testing h2 database’s memory usage.. it costs too much memory when indexing tables.. i have to choose between search performace and memory usage.. good luck to me~
i always wonder why there’s any terminal that supports transparency mode in windows. my main purpose of using mac is just using iTerm, seriously. today, i found some good term for windows. it’s cool and cute! it is based on PuTTY 0.6, and so there’s nothing to worry about ssh terminal features ^_^
http://www.9bis.net/kitty/
i faced some serious issues in h2 database, the h2 data saved in local file system are disapeared whenever tomcat is restarted only in window mode. i found easily that this problem is based on the db url parameter.
like this:
LOCK_MODE=0;LOG=0;MULTI_THREADED=1;DEFAULT_TABLE_TYPE=MEMORY;RECOVER=1;
ASSERT=0;CACHE_SIZE=200000;DEFAULT_LOCK_TIMEOUT=5000;TRACE_LEVEL_SYSTEM_OUT=0;
TRACE_LEVEL_FILE=0;LOCK_TIMEOUT=5000;
it’s tuned for fastest speed. and you know debugging is always a matter of choice. i choosed most suspicious options first. and test and test. but i can’t found till there left only one option, LOG=0, and finally i remove it, the program works so smoothly with no error..
i spend almost 2 hours for this simple test which would be ended in 10 mins. i know i’m an unlucky guy, i always have been. it will not be overcome soon..
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..