-
Archives
- August 2010
- July 2010
- December 2009
- August 2009
- July 2009
- June 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- September 2008
- July 2008
- June 2008
- May 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
-
Meta
Author Archives: raywang
用Google App Engine做个人代理服务器(Linux版)
摘自:http://groups.google.com/group/gappproxy/browse_thread/thread/3d0ad3dd6331311 博文的链接地址是:http://hi.baidu.com/bdhoffmann/blog/item/ db383603b37756703812bbc8.html ~~~~~ 身处教育网,找代理上网总是一件烦人甚至恼人的事情。某次和同学闲聊,他推荐了Gappproxy给我使用,我用了一下,感觉还可以。现将 自己使用的一些心得记录如下,希望能让广大Linuxer受益。(windows下使用的详细教程请参看http://skydao.com/ post/google- app-engine-to-do-with-personal-proxy-server-second- edition/) 使用的过程主要分为两个部分。第一部分是上传一个文件到google appengine(GAE),第二部分是建立本地和GAE的连 接。 1:上传 1.1 创建一个google appengine帐号 点击链接 (http://appengine.google.com/)申请注册一个google appengine帐号,注册需要一个 gmail邮箱,另外在注册的过程中需要填入手机号码进行验证。 1.2 安装python 我的系统是Ubuntu8.04,所以只要apt-get install python就可以了 1.3 下载并安装google appengine软件包 点击链接(http://code.google.com/appengine/downloads.html),下载Linux平台的 Google App Engine SDK,并进行解压。我的解压路径是桌面上的GAE目录。 1.4 下载并解压fetchserver源码包。 点击链接(http://code.google.com/p/gappproxy/downloads/list),下载里面的 fetchserver- 1.0.0beta.tar.gz。这个是GAppProxy服务端源码包,用于架设自己的fetchServer。要将这 个包进行解压。然后将解压后的文件(fetchServer)夹放入Google App … Continue reading
Say Hi to GNOME World
Hi everybody, I’m new here, I will start my new blog from today, and I’d like to write my posts about GNOME, and of course I’ll try to write in English. see you then. 🙂
Posted in Uncategorized
2 Comments
i18n 和 l10n 区别
Internationalization = I18n Changing a program to support for multiple languages and cultural habits. Character handling (unicode…) Locale awareness (date formats, currencies, numbers, time zones, etc.) Localizability Isolate localizable items (messages, pictures, etc.) Implement infrastructure necessary for localizing above items. … Continue reading
Linux System Programming 学习笔记
the sector is the smallest addressable unit on a block deviice. the block is the smallest addressable unit on a file system. the page size is the smallest unit addressable by the memory management unit. sector = 512 bytes block … Continue reading
srandom 与 random
今天看了看这两个函数的manpage,srandom 的作用是为random 做个种子,默认random生成的数是以srandom(1)为种子的。所以,虽然random 生成的数好像没什么规律,但每次生成的数都是一样的。如果想要改变这个所谓的“随机数”,就要再说srandom生成一个新的种子,比如srandom(2),不过这样做太麻烦了,先拿srandom(time(0))充个数吧。 #include <stdlib.h> #include <stdio.h> int main() { srandom(time(NULL)); printf(“the number is %ld\n”, random()); }