Archive for April, 2009

Sending a HTTP request from Java code

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;

public class HTTPRequest {
public static void main(String[] args) {
String requestUrl = “http://www.google.com.hk“;
try {
URL url = new URL(requestUrl.toString());
BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
String inputLine;
System.out.println(“—–RESPONSE START—–“);
while ((inputLine = in.readLine()) != null) {
System.out.println(inputLine);
}
in.close();
System.out.println(“—–RESPONSE END—–“);
} catch (IOException e) {
e.printStackTrace();
}
}
}

Meet the Server Unleashed (IT 24-7) Wallpaper, Screen Saver, Icon

Check out Windows Server 2008 Unleashed’s IT 24-7 Robot Wallpapers in 4 Action Poses in 8 different screen resolutions.

Download from here, For each screen resolution there are 4 different poses wallpaper :
1920 x 1200 = IT 24-7 Robot Pose A, B, C, D
1600 x 1200 = IT 24-7 Robot Pose A, B, C, D
1600 x [...]

Webhostingpad – Cheap And Stable Hosting

For a LIMITED time you receive an offer of $1.99 / month
+ Coupon “good25″ to receive another $25 dollars off
Act now by clicking the above picture

Disk Space

UNLIMITED*

Monthly Bandwidth

UNLIMITED*

Free Domain Name

Free Site Builder

Host additional Domains

UNLIMITED*

POP and IMAP Email

UNLIMITED*

Email Forwarders

UNLIMITED*

Email Autoresponder

UNLIMITED*

Parked Domains

UNLIMITED*

Subdomains

UNLIMITED*

mySQL Databases

UNLIMITED*

CGI-BIN

SSI (Server Side Includes)

Frontpage Extensions

Cpanel Control Panel

Webmail (Browser Based [...]

Portable Corel Paint Shop Pro Photo X2 Ultimate v12

 
Portable Corel Paint Shop Pro Photo X2 Ultimate v12 | 160 MB
Corel Paint Shop Pro Photo X2 Ultimate v12.5 – Professional program for working with digital photos. It includes modules for capturing, creating and editing images, as well as a rich set of filters and all sorts of models for optimizing images and graphics creation [...]

Picture Resize Genius 2.9.5

 
Resize Genius 2.9.5 | 2 MB
Picture Resize Genius includes the ability to batch resize pictures, batch resize photos, and perform batch image resize functions for the purpose of email and Web sites, or just to save space on your hard drive, or whatever reason you might have. The resizing allows you to force a specified [...]

Super Email Sender 2.105

 
Super Email Sender 2.105 | 1.11 mb
Super Email Spider is a fast and reliable way to build targeted email lists using the web. Simply put in keywords and the spider brings you hundreds of addresses from websites found by the search engine.
This is called targeted email because the harvested emails are associated with the keywords [...]

Super Email Extractor 2.89

 
Super Email Extractor 2.89 | 1.20 mb
Super Email Extractor is an email extractor that is designed to harvest email addresses and user names from websites using the HTTP protocol. Super Email Extractor does not depend on any additional software the way many email extractors depend on Internet Explorer and it can work through proxy servers.
You [...]

1st Email Address Spider 6.11

 
1st Email Address Spider 6.11 | 1.58 mb
1st Email Address Spider (EAS) 2006 is a professional targeted email extractor tool. With 1st EAS 2006, you can easily and quickly set up your own business mailing lists. That is you have owned the powerful customers group and powerful competition over your business opponents.
Here are some key [...]

順勢投資法

最簡單的實踐就是利用牛熊市來進行順勢投資。
首先,假設你在2006和2007年香港的牛市,升勢經以形成。所以你必須買升。
而且更要以瘋狂,賭徒的心態去投機,並唔係投資。而且仲要以槓桿的方式加大你的回報率,例如買窩輪。
記住口訣 “贏谷輸縮”, 嚴守止蝕。
另一方面, 選股要買強勢股, 當資源股當抄, 買資源股。
A股強勢,必然要轉留買A股或相關股份。”順勢者昌,逆勢者忙”。要買強勢股必須快。
必須要做到快速獲取信息, 快速下判斷,快速下決定。
相信你自己的判斷, 不要遲疑。Good deal never stay long!
盛極轉衰
同時,緊記”盛極必然轉衰”, 這是必然的定律。 而歷史亦不斷證明這個定律是正常。
例如, 當恆指在升到3萬點高位時,就是盛極。而結果必然係轉衰。
所以當你見人人皆股,所有人都失去理性, 並且升到歷史高位的時候, 這正正是轉衰的信號。
相信有睇大時代的讀者必然記得一句對白,”你幾時見成村人一齊發達,通常只會一兩個人發達”。
所以常全民皆股的時候,就是離場的時 候。
Cash is King
在熊市的時候,要用順勢投資是比牛市困難。因為雖然整體勢體係趺,但係期間夾雜很多反彈。
所以熊市要用順勢投資是比牛市困難。一名散戶要賺錢在熊市,是十 分困難。
所以熊市的投資策略我建議係保存實力, 等待機會。
我建議係你可以分配20%的錢在熊市投資, 買趺或者抄反彈, 以免錯失機會。
保留80% 的資金保存實力,等待機會。
假如你發現機會, 例如你發現優質股經以達超值水平, 分段買入,並在牛市時賣出。
但緊記, 在熊市的時候,保存實力是重要關鍵. cash is king!

How to run Regression in Microsoft Excel 2007

Regression is a technique to discover a mathematical relationship between two variables using a set of individual data. In other word, we are trying to find is there any relationship that the changes of one variable is depending on the changes of another variable.
1. Right click on the File Button on the top left conner [...]