053692nd since April 04, 2007
May 24, 2008 ( Saturday )
( 146 )
Flying fish
May 10, 2008 ( Saturday )
( 169 )
I'm moving on
Excerpt of a song I learnt from Henry Waldinger Memory Library.
I'm Movin'On
---- D. Vincent Williams/Phillip White
.......
At last I can see life has been patiently waiting for me
And I know there is no guarentees, but I am not alone
There comes a time in everyone's life
When all you can see are the years passing by
And I have made up my mind that those days are gone
.....
I'm movin' on
I'm movin' on
I'm Movin'On
---- D. Vincent Williams/Phillip White
.......
At last I can see life has been patiently waiting for me
And I know there is no guarentees, but I am not alone
There comes a time in everyone's life
When all you can see are the years passing by
And I have made up my mind that those days are gone
.....
I'm movin' on
I'm movin' on
Feb 12, 2008 ( Tuesday )
( 607 )
Added a stock watcher
Yahoo finance as the data scouce, and use LWP::Simple to extract the data from yahoo which are in csv format, and then I can use a simple regex to re-organize this information and post it to the web. [will auto-update every 10 minutes (AJAX periodic refresh pattern)]
A useful link to understand how to download specific data from Yahoo finance:
http://www.gummy-stuff.org/Yahoo-data.htm
AJAX periodic refresh code in jQuery form is:
The interval to update stock info can be changed in the second parameter(in milli-second) of the above setTimeout() function.
Currently only track on NasdaqGS for Google, Yahoo, and Microsoft. ...More
A useful link to understand how to download specific data from Yahoo finance:
http://www.gummy-stuff.org/Yahoo-data.htm
AJAX periodic refresh code in jQuery form is:
<div id="stockTbl"></div>
<script type="text/javascript">
pullStock();
var timer = false;
function pullStock()
{
$('div#stockTbl').load('/admin/stock.html');
var doSetTimeout = function() {
pullStock();
};
/* update every 10 minutes */
timer = setTimeout(doSetTimeout,600000);
}
</script>
<script type="text/javascript">
pullStock();
var timer = false;
function pullStock()
{
$('div#stockTbl').load('/admin/stock.html');
var doSetTimeout = function() {
pullStock();
};
/* update every 10 minutes */
timer = setTimeout(doSetTimeout,600000);
}
</script>
The interval to update stock info can be changed in the second parameter(in milli-second) of the above setTimeout() function.
Currently only track on NasdaqGS for Google, Yahoo, and Microsoft. ...More
Feb 12, 2008 ( Tuesday )
( 228 )
毕业工作了
哈哈,我都大学毕业了,现在调去四川绵阳工作,暂时调动到那里,我是过年放假回家在长沙了,同姑妈打电话才知了 ...More
| More entries: 1 2 3 Next » | End |
Monthly archives
Site Statistics
Newest comments
My links
Add new links
Advanced Search
Blog
