simple singularities

mac, leopard, java 6, eclipse, intellij idea

Filed under: apple, programming — fri13th October 31, 2008 @ 2:38 pm

yesterday, i updated my mac and found 64 bit java 6 was included in this update.
it wasn’t default so i change the setting manually below /System/Library/…

and suddenly intelllij idea didn’t work.. and i found intellij use 1.5 by default.
and change it to 1.6 may not work right..

so i tried eclipse 3.4. but there was no 64bit java support eclipse for mac.

a bit frustrating.. so i reverted the change..
maybe i have to wait the next os, snow leopard, when the java 6 becomes default.

anyway, i made another java 6 directory and set JAVA_HOME there..
it works.. and intellij idea rus smoothly by using system default setting..
that’s enough to me..

jquery problem: click event not fired in ff3, ubuntu

Filed under: firefox, javascript, programming — fri13th September 11, 2008 @ 12:26 pm

i turned off cookie and test as if ff is mobile browser.
and at the same mode, i develop some web page.

then jquery’s click event doesn’t work. i don’t know why it does..
so i turned on cookie and my js program works fine.
and that’s all.. there are too many mysteries in the browser.

jQuery work around

Filed under: javascript, programming — fri13th September 6, 2008 @ 1:32 pm

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..

codeigniter, php mvc framework

Filed under: programming, web2.0 — fri13th March 6, 2008 @ 11:45 pm

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 ;-) 

Real Programmers

Filed under: programming — fri13th February 5, 2008 @ 12:47 am

very funny cartoon about emacs ‘-)
enjoy the long korean holidays, my fellows!

http://xkcd.com/378/

about ruby 1.9

Filed under: programming, ruby — fri13th December 27, 2007 @ 8:28 pm

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~

NullPointerException in Struts 2

Filed under: java, programming — fri13th December 12, 2007 @ 5:17 pm

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.

KiTTY & PuTTY & japanese

Filed under: linux, programming — fri13th November 20, 2007 @ 6:58 pm

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 database Unique index or primary key violation

Filed under: java, programming — fri13th November 19, 2007 @ 2:15 pm

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~

KiTTY, PuTTY’s very nice clone!

Filed under: programming, smalltalk — fri13th October 23, 2007 @ 10:49 am

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/

Next Page >>>