Friday, November 6, 2009 sucks, wordpress is better

in the terms of using <div>, <code>, <span> ... in posts.

So my new blog is

Monday, April 27, 2009

Amazon EC2

Oracle XE: web access from everywhere
  • sqlplus system
Describing all running instances: ec2-describe-instances

Sunday, April 19, 2009

Command lines with Glassfish

asadmin list-components
asadmin undeploy --user admin --passwordfile ~/Desktop/password.file component_name
where password.file contains AS_ADMIN_PASSWORD=adminadmin

Saturday, February 7, 2009

jQuery Related

45+ jQuery techniques

15 jQuery Plugins to Fix and Beautify Browser Issues

JavaScript Framework Matrix

Read URL GET variables with jQuery:
var first = getUrlVars()["id"];
var second = getUrlVars()["page"];

function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
return vars;

Thursday, January 29, 2009


4shared username: hatrang max file size 200MB, able to upload from a http server username: Abcd1234 max file size 2GB, 50GB space

Making a ramdisk: mount -t tmpfs tmpfs /mnt/ramdisk -o size=1G,nr_inodes=200k,mode=01777

Find files containing: for f in $( find /home/ly/richfaces-ui-3.3.1.GA/framework/impl/ -name "*.java" ); do grep -lir "java.awt" $f; done

Handling ViewExpiredException - Using Spring to manage JSF beans

meta http-equiv="refresh"

Catagay Civici: using Spring to manage JSF beans
He also has some advices about using id properties in facelets custom components.