Sunday, September 20, 2009

ROLEX en chiffres

60000 Le nombre de compartiments du stock automatique de Rolex à Plan-les-Ouates
510000 Le prix, en dollars, de l'Oyster Perpetual GMT-Master II Ice
1908 La date de dépôt de la marque Rolex
72 HEURES La réserve de marche du Cosmograph Daytona
56000 Lenombre d'éléments de mosaïque nécessaires pour réaliser les décors des vitrines à la Foire de Bâle en 2008
360 Le nombre de pièces inclues dans le mouvement calibre 4160, entièrement conçu et réalisé par Rolex
3200 L'ensemble des combinaisons possibles, réalisables à partir des 170 modèles de la gamme Oyster

Wednesday, September 16, 2009

tada...aaaaa

[14:20:55] host bin> ./new1_minor.sh
Executes something minor......
[ADMISSION RULE] Modify resource description with type constraints
Generate a job key...
OAR_JOB_ID=18953
[14:21:00] host bin> ll
total 36
-rw-r--r-- 1 ... 11248 2009-09-16 12:54 createConfigFile.class
-rwxr-xr-x 1 ... 823 2009-09-16 14:20 new1_minor.sh
-rw-r--r-- 1 ... 529 2009-09-16 14:21 OAR.18953.stderr
-rw-r--r-- 1 ... 315 2009-09-16 14:21 OAR.18953.stdout
-rw-r--r-- 1 ... 11783 2009-09-16 12:53 somethingArray.class
[14:21:03] host bin> cat OAR.18953.stderr
Exception in thread "main" java.io.FileNotFoundException: ...

Tuesday, September 15, 2009

ยุภาวรรณ อุทิศกุล ชั้นฝันถึงเธอ

ยังหาตัวไม่เจอเลยเฟ้ย เมล์ไปที่หนังสือพิมพ์ของคนเอเชียที่ดี.ซี.ก็โดนตีกลับ ไว้ว่างๆชั้นจะลองตามตัวเธอดูอีกทีนะ

get pwd into parameter

var=`pwd`
var=$(pwd)

Ps. this is my short note now lol

Tuesday, September 8, 2009

default path in Mac OS X



Actually it's for bash setups.
Depending on the type of working environment, in Mac, there are two different ways you need to complete.

1) work on only Terminal:

~/.profile -- personalize personal initialization such as classpath. Within this file you have

PATH=$PATH:...:...
export PATH

Ps. :... is additional path you put into PATH

~/.bashrc -- personalize personal bash option such as defining alias ls='ls -G'


2) work by using GUI too:
In this case, you need to set up normal path in .profile or .bashrc and also in
/.MacOSX/environment.plist

2.1 create .MacOSX folder
$mkdir .MacOSX
$cd .MacOSX/

2.2 create 'environment.plist' file
$touch environment.plist
$open environment.plist

A window of this file will pop up to you

Then, specify 'PATH' as Key and the value of PATH which is already defined in .profile into Value column.