Trade Ideas for 5/13/2008
May 13th, 2008 · No Comments · Uncategorized ·
Short Squeez ? Short Interest Ratio DSC, Signal -> Triangle Asc
CXR CRVL DNR TMTA CLDNÂ IHS
May 13th, 2008 · No Comments · Uncategorized ·
Short Squeez ? Short Interest Ratio DSC, Signal -> Triangle Asc
CXR CRVL DNR TMTA CLDNÂ IHS
May 1st, 2008 · No Comments · Code, Ruby ·
Inspired by a scRubyt Tutorial: Dog of FTSE posted on straws-dog. Guess it’s time for me to give it a go!
This should work on all the Index, Dow Jones, NASDAQ Qs….
So here’s the paste of the code. The idea is very similar to Dog of FTSE, except this uses the intelligent learning feature of scRubyt instead of the straight XPATH. This feature of scRubyt is especially useful when it is used on a well-element-classified (don’t know how to phrase it) site like yahoo finance.
#
# Dog of HSI written by Houston Ng
require ‘rubygems’
require ’scrubyt’
# Initialize an empty hash for final data
final_data={}
# Extractor 1: Get an update symbol list of HSI from yahoo finance
hsi_list = Scrubyt::Extractor.define do
fetch ‘http://hk.finance.yahoo.com/q/cp?s=%5EHSI’
top “//td[@class=’c1′]” do
symbol “//a”
end
end
hsi_stocks = hsi_list.to_hash
# Extractor 2: Get the stock information, just modify the pattern learner
hsi_stocks.each do |hsi_stock|
sc = hsi_stock[:symbol]
stock_data = Scrubyt::Extractor.define do
fetch ‘http://hk.finance.yahoo.com/q’
fill_textfield ’s’, sc
submit
#For the div with id, stock bar,
#get the content inside h3, the first and second b tags
#This only works for HK finance
top “//div[@id=’stock-bar’]” do
name “//h3″
price “//b[1]”
change “//b[2]”
end
end
#Save the stock data into the final data
final_data[sc] = stock_data.to_hash
end
# Print out the final data, basically just puts out the hash on screen
#The example is just spitting out the name for simplicity
final_data.each do |key, entry|
puts “\n#{key}”
entry.each do |datapair|
puts “#{datapair[:name]} | Price: #{datapair[:price]} | Change: #{datapair[:change]}”
end
end
I know I can just get everything from the same page I got the HSI symbol list. But Just for fun to play with auto-fill in. I load the actual quote page.
There is however, a slight pitfall that my little brain needs to work around. If you notice the output, there are two empty hashes. They are from the HSI list grabbing. It grabs too many cells, that it grab the header cell but since, the header cell does not contain any <a> tags, it return an empty value. This will be next improvement of the code…
Here’s the source code Dog of HSI
Dog of the Dow coming soon….
Tags: Code, finance, programming, Ruby, scrubytApril 26th, 2008 · No Comments · Uncategorized ·
Generating ideas for non-English speaking areas is a much simpler thing. One can almost copy what’s out there and as long as keep the idea straight it will work. But there is one catch, make sure it suits their tastes. Don’t make it authentic Italian food , make it “you-think-it’s-authentic-but-it’s-modified-to-suit-your-taste” authentic Italian food
April 23rd, 2008 · No Comments · Ramblings, Site Design ·
Websites in Hong Kong are littered with Flash only. That, well, only flash enabled computers can read… Sadly my iPhone’s Safari is not one of them.
So the story was that I got this KFC craving today. When I go to this KFC (or, was) in Central, I was bumped to found out that it’s been replaced by a cosmetics shop. I then took out my trusty iPhone and wanna look for an alternative location. Got on to KFC HK site and what happened? This…

Fancy flash is definitely old, slow and not for people on the go. Where is the accessiblity!?
But I stil want my KFC!
Tags: Site DesignApril 23rd, 2008 · 1 Comment · Code, Web ·
Well Mac has been a great friend from a developer point of view. I don’t think there are too many objections to that. The problem a web designer face is the pain in butt issue in IE both 6 & 7 (probably 8 too, haven’t tried the beta yet tho). And yes I know this page’s header is not working too well on IE but I haven’t got a chance to work on it yet
Well, Thanks to Apple switching to Intel. We have parallels, which leads to IE6 or IE7… depending which one which one you’ve installed and there can only be one installed at the same time humm…
Here’s the solution.
I just found out how you can install all the IE from 3.3 to 6 all in a nice package HA!
April 22nd, 2008 · No Comments · Business, Code, Startup ·
Code management is probably the top priority of any software development startup. So this is going to be an ongoing post to keep track of what’s out there
April 21st, 2008 · No Comments · Business, Startup ·
More useful tips on startup from industry veterans. original post
Here’s a quick recap of THE list with a little Hong Kong/Chinese flair:
April 21st, 2008 · No Comments · Book, Investment ·
Title: The 25% Cash Machine : Double Digit Income Investing
Author: Bryan Perry
Publisher: John Wiley & Sons
Just finished another book on investment. I picked this one from the book store because I am pretty much tired of all the rest out there. there are only 2 types, either Buy-and-Hold Mutual Fund or Day-trade stock picking. Not that I am against them, it’s just that they are boring! They are all the same and all derived from books that are 100 yrs old!
Here comes 25% Cash Machine. This book is all about finding high-dividend stocks with potential growth value. It’s not completely a buy-and-hold. You need to constantly on a lookout for market trends and changes. Be prepared to move out and ride on another one. The strategy is to ride on the best growth potential stock while maintaining >10% dividend. That is all it is about. It goes on explaining the whole high-dividend stock categories out there. Man, there are truly a whole boat load of these stocks out there and they are all 10% per year! To name a few super stars:
These stocks are not only giving out large divs. They are also growing and appreciating. So here’s the plan, I am going to try build a portfolio again this year based on this strategy. Let’s see how I perform next year!
April 21st, 2008 · No Comments · Business, Startup ·
Such a great resource with tips for tech startup. Man, I need this badly!
Almost want to print it out and nail it on the wall