Thursday, August 28, 2014

JQuery Deferreds

Tuesday, July 29, 2014

Install latest version of php to ubuntu 12.04

Install php


sudo add-apt-repository ppa:ondrej/php5

sudo apt-get update
sudo apt-get install python-software-properties

sudo apt-get update

sudo apt-get install php5

php5 -v
ref: http://www.dev-metal.com/how-to-setup-latest-version-of-php-5-5-on-ubuntu-12-04-lts/

Install composer

curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer.phar

vim .bashrc

add 

alias composer='/usr/local/bin/composer.phar'

source  .bashrc

Monday, March 10, 2014

String Buffer v.s. StringBuilder und String

String

String s = "a"; for (int i = 0; i < 500000; i++) { s = s+"a"; } time spent : 181801

StringBuffer

StringBuffer is syncronized and good for thread safety. StringBuffer s = new StringBuffer("a"); for (int i = 0; i < 500000; i++) { s = s.append("a"); } s.toString(); time spent : 20

StringBuilder

StringBuilder s = new StringBuilder("a"); for (int i = 0; i < 500000; i++) { s = s.append("a"); } s.toString(); time spent : 16

Print system dependencies.

System.getProperties().list(System.out);

Friday, February 28, 2014

LinkWithin

Related Posts Plugin for WordPress, Blogger...