海归网 iphone app

my first iphone app, for haiguinet.com….

It’s in app store now: http://itunes.apple.com/us/app/id438046601

我得第一个iphone app : 海龟网iphone app正式上线, 可从app store 免费下载安装

大家可以在iphone上的app store 里搜索“归网”,然后免费下载安装。谢谢各位支持。

请在此报告问题或建议。

注: 在ios4.2 以上版本的iphone/ipod touch 上测试过。其他版本的ios未经测试。

开发感想:
-- 虽然海归网总的感觉是在没落中,但是还是有不少的新老id在这里玩。。。这种亲切感挥不掉。希望通过这个小程序让大家玩得更方便一点。
-- 很不喜欢apple的xcode, 特别是interface builder. 个人觉得很垃圾。
-- objective-c…


Read More »

[民工日记]简单服务器GEO-Routing: 根据ip自动分流

不通过应用程序而纯粹从服务器简单配置。。。transparent to your apps

1. 用 apache mod_rewrite 实现根据用户ip自动选择镜像

这是一个非常简单的实现–如果用户来自中国,自动重定向到位于中国的服务器,否则转到海外的服务器。并且自动检测服务器状态,如果一个服务器倒了所有traffic都会转到另外的server.

在 apache config 里加一个 virtual host:

ServerAdmin [email protected]
DocumentRoot /hosting/balance
ServerName balance
<filesmatch "\.(php|htm|html|pl|asp)"="">
Allow from all

RewriteEngine on
RewriteLog rewrite.log
RewriteLogLevel 9
RewriteMap lb prg:/hosting/balance/ip_prg.php
RewriteRule ^(.*)$…

Read More »

Cheap secondary storage options

Looking at cheap storage for hosting backup/archive… driving force: cost.  NetApp is too expensive.

The following can be taken into consideration:

— Amazon S3 web services. Since it’s only used for backup/archive the cost should not be too high. Need to analyze the cost though. Another potential issue is legal/privacy…

     Technically the best way is probably to use a S3 file system driver so the backup/access is transparent to the apps and existing apps doesn’ t need to be modified. the…


Read More »

ADS image capturing issue

got an error capturing an remote image using microsoft automated deploument service (ADS):

the capture job failed with the error message:
“Device or service connection does not exist”…
Here is the sequence what I did:
(1) on the reference win2003 system (remote target), installed ADS admin agent and started it
(2) on the remote target, create a directory C:\sysprep, and c:\sysprep\i386. copied sysprep.exe and other sysprep binary files to the i386 directory; copied a sysprep.inf file to…


Read More »

[音乐] [边听边聊]快乐老实人

卢冠廷, 光头身瘦满脸胡子茬, 一副不入偶像fans法眼的老土形象, 唱腔"怪异", 却是香港流行乐坛最有才的音乐人之一.

内地的年轻人或许听过他的歌,不过多半是来自电影大话西游片尾的曲子"一生所爱", 甚至有人把那歌声当成是罗文.

作为唱作人, 他的经典:
–天鸟
–但愿人长久
–陪着你走
–漆黑将不再面对
–快乐老实人
–一生所爱

作为创作人, 他的作品通过80年代的不少歌手流传:

— 天籁 星际传说 (关正杰)
— 凭着爱 (苏芮), 再回首(姜育恒)
–你在何地 (张国荣)
–最爱是谁 (林子祥, 电影"最爱")
— 天变地变情不变 (张学友)
— 如果你是我的传说 (刘德华)
— 长伴千世纪 (陈百强)

其中很喜欢的有这首"快乐老实人"…原因? 如歌词 : "喜欢即是喜欢…"

这首歌如他的许多其他作品一样也是夫妻档–作词的乃是卢的太太唐书琛.

快乐老实人

演唱:卢冠廷
曲 : 卢冠廷 词 : 唐书琛

讲出心里见解
不需多顾虑
附和声不响朗震荡又如何
豪强人自重

可憎即说可憎
不讲谎话
是自信不感到世上做人难
盲从成祸患

快乐老实人
敢想敢当敢说每段老实话
又是数十年
Read More »

[贴图]美国的新纳粹分子

在DC碰到了一群美国的新纳粹分子在示威游行. 这群"国家社会主义运动"(NSM, Natiional Socialism Movement)的家伙身穿黑衣,举着纳粹十字标志口呼"Go USA!" , 还一边行希特勒式挥臂礼…虽然人数很少大约只有百多人但是大批警察严阵以待. 这种组织也允许存在并在国会游行, 米国式的自由…

这个组织的总部好像在密西根.


开路的骑警

引来不少围观者. 不少人是来DC的游客,以为碰到了3K党.


Read More »

[民工日记]LAMP网站建设 之性能优化篇(下)

7. reverse proxy/cache

reverse proxy又称http accelerator是在web server 前面加一道proxy, 所有request先经过proxy, 如果是在proxy缓存内的内容则不用经过web server直接就从缓存取出内容返回给用户的浏览器, 否则转给后面的web server.这样大大减轻了web server 的负担,从而使web server可以专注与处理动态页面,而可以缓存的静态页面则由更加快速轻便的proxy直接返回给用户, 从而提高了系统的总体处理能力和响应速度.

老牌open source proxy 软件Squid就可以用来做reverse proxy/http accelerator.

Apache 的mod_proxy 和mod_cache也可以结合起来达到相同功能.

squid 稳定版本现在是2.6和3.0. 2.6尚不支持http 1.1. 2.5问题较多,建议不要使用.

有一个比较新的开源软件 varnish是专门的reverse…


Read More »