Friday, November 6, 2009

blogger.com sucks, wordpress is better

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

So my new blog is dxxvi.wordpress.com

Monday, April 27, 2009

Amazon EC2

Oracle XE: web access from everywhere
  • sqlplus system
  • EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
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:
http://papermashup.com/index.php?id=123&page=home
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

Passwords

4shared
mail1683560@bupkiss.net
mail3280763@gorillaswithdirtyarmpits.com

qshare.com username: hatrang max file size 200MB, able to upload from a http server
adrive.com username: partner54171638@vansoftcorp.com 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"
content="${session.maxInactiveInterval};url=#{facesContext.externalContext.request.scheme}://#{facesContext.e
xternalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}#{facesContext.
externalContext.requestContextPath}/errorpage.jsp"/

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