i just finished to transfer my blog. it was very simple job, thanx~ i’ll do the tedious egloos to wordpress transfer in this weekend and if it is finished, i’ll restart my gourmet blog again in wordpress..
the time i couldn’t have been post an article, i felt disconnected and depressed.. it was not good at all.. so it is very important to start blog for my mental health..
and also i’ll lunch another php ajax-based site sooner or later. i’ll notify it later..
most critical part in ie6 may be the hover property. ie6 only support hover in a tag, while other all modern browsers support hover properties in any tag. you have to manually add onmouseover and onmouseout event.
like this:
1
2
3
4
| if (item.className = "orig") {
item.onmouseover=function(){this.className+=" over";};
item.onmouseout=function(){this.className="orig"};
} |
and a tag’s behavior is somewhat wierd also..
1
2
3
4
5
| <style>
li {text-align:left; width:100px;}
a {text-align:center;}
</style>
<li><a>test</a></li> |
this one wil be broken in ie6..
and many more..
anyway i can fix all these problem by using firebug and ietester. thank you so much~
it was very painful to install new virtual machine for just testing site in ie6. so IETester is really good for me.
http://www.my-debugbar.com/wiki/IETester/HomePage
i eventually ignore ie 5.5. but not ie6.. i wish windows 7 will be spreaded. really ie6 sucks.
i bought a dreamhost account yesterday.
it was only $9.24/yr for the president day event 
90% cheap, isn’t it really cool?
i used dreamhost when testing some site..
it was very convenience, web panel and
ssh matches perfectly..
so i bought a new account, i’ll move my blog
and open renewal site, soon or at least one month..
before i move, i’ll back up all, but that’s not all the
thing i plan now. i’ll make another blog for gourmet.
adding twitter client, and a new site based on cakephp
and codeigniter..
i wish my next blog will be funnier than now.
i’ll do my best, but i can’t assure when it will be done..
because i’m very very busy in these days..
wish me luck..
i have to generate some logs in struts 2 framework. i know the action classes include resource bundle feature by just using getText() method. but i can’t find how i use resource bundle outside of Action classes. just google it and get no reasult.
i didn’t give up and download xwork2.0.7. (yes, xwork!) struts2.0.x source doesn’t contain old xwork code. and finally found some classes about that. DefaultTextProvider and LocalizedTextUtil. DefaultTextProvider is just a wrapper of LocalizedTextUtil.
1
2
| TextProvider textProvider = DefaultTextProvider.INSTANCE;
log.info(textProvider.getText("some.property")); |
i have to use Locale.US for logging. so…
1
| LocalizedTextUtil.findDefaultText("some.property", Locale.US) |
struts 2 has many good features but lacks of manual.. anyway, we can do what we want. if you don’t care about reading sources.. good luck to you
beatiful moment in kyoto
i always visit kyoto 2times an year, spring and autumn..
splendid experience!
struts2 has annotation validation features, which makes validation javascript automatically. i didn’t know this feature also does server side validation. so if you turn off client side script for some custom validation, the server side validation prevents from submitting invalid input data.
that’s why i spend couple of time, today. i checked by using firebug and see there is no post data. it was very wierd experiences ever in this year..
so i fixed it by just delete annotation validate code.. and add more custom validation code. so as to say, if we know the cause, the solution isn’t difficult to find at all.
i inserted blank cd into my new uni-body macbook pro, because i think that cd contains some music. but it’s just a blank cd.. too sadly.. and i just couldn’t find the icon of blank cd in my desktop.
so how can i eject this cd if there’s no cd icon and eject button also doesn’t work? i googled it and found some fxxking lusers’s response to reboot the system. that’s too ridiculous, don’t you think so?
the solution i found is using vmware. connect physical cdrom to vm and eject it. i think there may exist another solutions. but google didn’t teach me the way..
i feel so sorry, there have been so many bugs in mac. i admit it’s a perfect machine for development, but i need more..
in jQuery’s official site, they say jQuery has no conflict with major library.. yeah, that may be right.. i believed it and implement in my prototype and script.aculo.us environment.
when i test class selector jQuery(“.myClass”), it doesn’t simply work, id selector works fine..
jQuery.noConflict() has useless in this case.. and i tested my code and there was no error at all..
so i disabled script.aculo.us after few hour’s labor, it works like a charm..
the program was only 10 or so minutes to finish, but i spent full afternoon for this issue..
it’s very curious.. because of jQuery’s nature, it isn’t easy at all to make a conflict like this..
but there is one in reality..
i couldn’t find about conflict reporting in jQuery.. so be careful to select and combine
javascript libraries.
nagios is an open source server management system.. though the design isn’t cool like its competitors, it has many useful features you have to check. i installed it to ubuntu and test it.. actually it was very simple.. just apt-get install nagios2 and add new auth info and that’s all.. you can get further information from ubuntu howto site.
there are something missing parts in that howto. you have to setup apache2.conf manually
open /etc/apache2/apache2.conf and add
Include /etc/nagios2/apache2.conf
and you have to *start* nagios. strangely, restart doesn’t work..
sudo /etc/init.d/nagios2 start
and you can see nagios is working on your server.
good luck, server guys~