Monday, June 29, 2009

两岁半孩子开榴莲

我家两岁半孩子挑战开榴莲。哈哈,竟然给他成功了。

Thursday, June 25, 2009

HDR effect with Panasonic Lumix FZ28 (照片 HDR 后期制作 )

High Dynamic Range (HDR) - Here are some photo that taken with my Panasonic Lumix FZ-28, and processed with Photomatrix for HDR after effect. It was really fun and the outcome seems awesome.
To produce HDR with Panasonic Lumix FZ28, the photo must be taken in RAW format, and then use SilkyPix Developer Studio(photo manipulation software that come with the camera) to develop 3 jpeg photos with following EV setting: -2EV, 0EV, +2EV . After that, you need to use the Photomatrix software to Merge these 3 photo to produce the final HDR photo.

最近从同事那里学会了玩 HDR, 特地放几张照片来和大家分享一下。制作 HDR 一点也不难,首先必须使用RAW 格式来拍摄,然后使用SilkyPix Developer Studio(随机附送的软件)制成3张照片,照片设置为 -2EV, 0EV, +2EV。 过后使用 Photomatrix 来进行结合,就能制成 HDR了。
Normal /HDR


 


Normal/HDR



Normal/HDR



Normal/HDR

Thursday, June 18, 2009

KLSE - Short Term Trading

After a lunch with Allen, here are some KLSE short-term trading information that collected and let's share it.
There are 5 graphs that we need to monitor in order for short term trading,there are
1) Moving Average ( 5 days, 15 days, 30 days)
---MA mostly useful for mid and long term investment.
---Look for the Golden Cross for indication
2) Candle Stick
3) ADX(Seller and Buyer)
---When Buyer(green line) going down, cross over the Seller(red line), good signal. If above the Zero line, even better.
4) MACD
---When the solid line moving up and cross over the the dash line, good sign.
5) Stochastic

All of the above graphs must be supported by a large trading volumn, if trading volumn is small, the above graph will be meaningless.

There are some good counter for short-term trading in KLSE, there are:
Steel Industry
1) Annjoo
2) Lionind (fast)
3) Lioncorp (fast)
4) Masteel
5) Ssteel

Property
1) E&O
2) Spsetia
3) DNP
4) Suncity
5) Ijmland

Oil Industry
1) Kencana
2) Sapcres
3) Petra
4) Penergy
5) Knm
6) Waseong

Plantation
1) IOI
2) Rsawit
3) KLK
4) Ijmplnt
5) Sime

Medical Glove
1) Kossan
2) Supermax
3) Topglove

Telecommuncation
1) Axiata
2) TM

Construction
1) Muhibbah
2) WCT
3) LCL

Corporation
1) YTL
2) MMCCorp
3) MRCB
4) DRBHCOM
5) Zelan
6) Sunway

Cement
1) Lmcement
2) Ytlcement

Pipe
1) Jaks
2) KPS
3) Puncak

Finance
1) Commerce
2) Maybank

Electronic
1) Unisem
2) ENG
3) Gtronic

Friday, June 5, 2009

How to Create DOM Element with Javascript

To create a DOM element with Javascript is very simple, look as the following example you will find it is just a piece of cake.

<script>
function addTR(tableid)
{
var atr=document.createElement('TR');
atr.setAttribute('id','tr4');
document.getElementById(tableid).appendChild(atr);
addTD('tr4');

}
function addTD(trid)
{
var atd=document.createElement('TD');
var atr=document.getElementById(trid);
atd.innerHTML='TD created by JS';
atr.appendChild(atd);
}
function addInputButton(parentId)
{
var abut=document.createElement('INPUT');
abut.setAttribute('type','button');
abut.setAttribute('name','buttybutton');
abut.setAttribute('value','Butty Button');
document.getElementById(parentId).appendChild(abut);
}
function addInput(parentId,type,inputname,inputvalue)
{
var aInput=document.createElement('INPUT');
aInput.setAttribute('type',type);
aInput.setAttribute('name',inputname);
aInput.setAttribute('value',inputvalue);
document.getElementById(parentId).appendChild(aInput);
}
</script>

<table name='t1' id='t1'>
<tr id='tr1'>
<td>
<input type=button onclick="addTR('t1');" value='Add TR'>
<input type=button onclick="addTD('tr2');" value='Add TD'>
<input type=button onclick="addInputButton('butbox');" value='Add Button'>
<input type=button onclick="addInput('butbox','text','textbox1','Wow Dynamic');" value='Add Textbox'>
</td>
</tr>
<tr id='tr2'></tr>
<tr id='tr3'><td>Hello</td></tr>
<tr id='tr5'><td id='butbox'></td></tr>
</table>