Hello World

Instapaper is good note tools

I am using the readitlater and instapaper to make note. When I want to read something later. Just send it to it. Then I will read it on the phone or on the other device. I like it. The google chrome for phone is a good approach. It associate the phone with the browser. Then everything can move smoothly from one device to the other.  

There is no standard for device synchronization. I hope there will be a standard for every device and every program. Then we will build a cloud hub. Every program and device can access the information. We share information via many ways like internet, wifi, usb, blueteeth, 3G,email ,sms etc.


Use the Https enabled google in Firefox

Today, Google declare the ssl version search https://www.google.com. To enable the https google. You can just clear your cookies and type the https://www.google.com. Firefox is my favorite browser, I spend hours everyday in it. I used to search key words in the firefox’s address bar or the search bar. So I modified the firefox to make it works with https version google. To enable it, you can change it by these steps. 1. change the address bar. (1) type “about:config” in the address bar. (2) find the “keyword.URL” by the filter. (3) change the “http://www.google.com/search?q=” to “https://www.google.com/search?q=” 2.change the search bar. (1)go the firefox’s profile direction. (2)find the file “search.json” (3)open it by your favorite text editor and find the http://www.google.com/search (4) change the “http://www.google.com/search” to “https://www.google.com/search” Then, type some words in your address bar or firefox’s search bar. See if you are led to the https://www.google.com/, If not, clear your cookies, and search again. Now you will enjoy your private searching now.


Why I insistant on writing in English

As a Chinese, I started to  learn English from 1990. I have spent years on it. But unfortunately, English is not good enough as my Chinese. I can read books, IT articles smoothly. But it’s is hard for me to write something in English or talk with foreigner without any hesitate. It’s so poor. The main reason is I have read a lot, but has few chances to talk directly to English-speaking people, seldom write anything valuable. So I decide to make more practice on it. I hope someday I can use it as well as my mother tongue. This blog is a start point. Here I will write some short articles on IT. 

I am learning.


About AJAX

At the age of Web2.0, AJAX is the most import technology in the web programmer’s toolkit. Some one make it mysterious. I have never write an AJAX program before tonight. For I am learning the web programming in python and web.py, I want to use the AJAX in my project. So I spent some time to learn what the AJAX is. After about 15 minutes, I write done my first AJAX program. It is so simple. The concept is easy to master.

AJAX is just the use of XMLHttpRequest Object. To write an AJAX web page,you just need to get an XMLHttpRequest Object by JavaScript. To get an XMLHttpRequest Object in Firefox,Safari,Opera,Chrome,you can just use the code like this:

var xmlHttp=new XMLHttpRequest();

or in Microsoft IE, you get an XMLHttpObject by:

var xmlHttp=new ActiveXObject(“Microsoft.XMLHTTP”)

After that, you will get an XMLHttpRequest Object named xmlHttp.Then you can send a request to the web server by:

xmlHttp.open(“GET”,”/serverpage”,true);
xmlHttp.send(null);

it is just like the normal http request “GET” or “POST”, The server “/serverpage” will response to the request.

the xmlHttp can register a function to handle the response by xmlHttp.onreadystatechange=function(){
   if(xmlHttp.readyState==0){
//before open
}else if(xmlHttp.readyState==1){
//after open before send
}else if(xmlHttp.readyState==2){
//after send before response
}else if(xmlHttp.readyState==3){
//after the response before response finished.
}else if(xmlHttp.readyState==4){
     alert(xmlHttp.responseText);
   }
}

Then you can just program the server to response to the request to page ‘serverpage’.

This is the AJAX!


Hello World

As a programmer, I always write the “Hello world” as the first sentence. This is the first post in tumblr. Hope to get a good start. Just say hello to tumblr.