搜狐GOLF上线

July 2, 2009 No comments »

记录一下:
今天高尔夫-搜狐体育新版上线,可我不记得以前是否有个旧版,顺着网页看过去,发现这儿还有一个高尔夫网址大全,高尔夫这块俨然已经形成了一个互联网的小生态系统。

还是小方向比较容易突围。

G1修改/etc/hosts访问YouTube

No comments »

准备工作:
1. G1有root权限
2. 安装GScript Lite App

开始了:
把以下内容另存为youtube.sh文件,并放到SD卡的gscript目录下(路径为:/sdcard/gscript/)。

mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
echo "203.208.39.104 http://www.youtube.com" >> /etc/hosts
echo "203.208.33.100 gdata.youtube.com" >> /etc/hosts
echo "203.208.33.99 upload.youtube.com" >> /etc/hosts
echo "203.208.33.99 insight.youtube.com" >> /etc/hosts
echo "203.208.33.160 help.youtube.com" >> /etc/hosts
echo "203.208.33.104 youtube.com" >> /etc/hosts
mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system

然后打开GScript Lite,”add script” => “Load file”选中此youtube.sh,存盘后运行。这样G1就可以顺畅的访问youtube了。

升级cupcake

June 26, 2009 No comments »

这两天抽出时间来升级G1,之前的版本是RC33 JF1.42。

下载了不少ROM/Radio等,就是无法进入Recovery Mode进行升级,原来问题在于没有更新SPL,G1 Original SPL不更新就无法升级。

无奈只好从新降级到RC29,然后获取root权限,然后安装Hard SPL,然后刷JF1.43 Recovery,最后就是下载ROM来更新整个系统了。整个步骤在http://code.google.com/p/android-roms/wiki/TableOfContents里面记录的很清晰,几乎没有多余的字眼(每个字每句话最好看清楚了开始动手)。

试了几个ROM,先是JF v1.51 CRB43 US (Cupcake) A2SD,中规中矩的,仅支持英文界面。然后又安装了TheDudes v1.1 Full (Cupcake) ,蓝哇哇的界面有点伤眼。现在用的是CyanogenMod-3.5,带了PDF Reader和Quickoffice,支持多国语言的界面。

CupCake的界面较之前更漂亮了一些,增加了摄像功能。有点意思。现在看起来,G1才真正算是一台智能手机了。

叶荣添,好样的!

June 23, 2009 No comments »

诺大的办公室,就偶一个人。

父亲在QQ上发来别人的博文,我一看又是这个叶荣添,对于我们这辈看过香港电视剧《创世纪》的人来说,就知道这只是个网络上的虚拟人物,也许背后是一个团队也许是一个有野心的人,可父亲却偏偏深信不疑,为了这连跟我翻脸的心都有。其实我不懂股市,并不了解这个叶荣添的文章是否可信,我也没讨论叶荣添的文章,仅仅只是跟父亲说此人是虚拟的,他就急了。

他发文邀请博友在北京饭店吃饭喝酒讨论股市(没人知道楼层跟房间号,可父亲又诚恳的建议我亲自去那吃饭去看看是不是假的,哈哈),又成立了“创世纪资产管理股份有限公司“,却用163的免费个人邮箱用作公司邮箱来招聘,明眼人一看就知道这不太符合财大气粗的金融公司的操作手法。

不管我怎么反驳给父亲听,都是无用。

看来任何一种骗术都会有人上当。谎话说上一千编,也会变成真的!

不过我还是很开心,网络的影响力越来越大了,互联网创业,我看行!

叶荣添,好样的!

互联网小兵,向您敬礼!

如果父亲因你而受损,看我怎么收拾你!

====
附上:
卖拐者叶荣添和他的百万赌局-互联星空财经网站专题

上周六球赛

No comments »

带了全家人过去玩,小小力这次开始玩球了,脚一触球就哈哈大笑,很好玩,要是youtube没封就上传了。
状态好了点,两腿还是迈不动,不过仍然横冲直闯搞进3个球,其中一个对方认为冲撞了守门员不算。为了找回状态,踢球独了点,下回改正。

JSR168/286 Portlet

June 18, 2009 No comments »

最近忙着研究Java Portlet,概念上并不很新颖,无非是Module(模块)/Component(组件)一类的概念。WEB程序的开发基本上已经走向了比较高的层次了,如果大家还在底层忙个不停,我想是时候去看看Web Framework了。
Web Framework这几年的发展也是一直致力于提高规范化和重用性方面,从最开始的帮助提高开发速度,到现在一些知名Framwork内的模块化重用,越来越解放了开发者,使我们更关注业务逻辑的实现,而非在一些底层的重复性工作上浪费精力。
Java Portlet也是这样一个路子,不过Java社区最擅长的就是制定标准规范,JSR168/286使得业界可以开发出通用的Porlet Container跟Portlet,通过一些其它支持,可以很容易做到真正跨语言跨平台(Framework/Platform)级别的重用。
PHP就不多说了,混乱不堪,各种各样的Web Framework分散了力量,不过Drupal社区是个比较好的开始,模块化程序很高。
Python的Django发展迅速,各类第三方模块/插件也越来越多。
Ruby的ROR也还在继续发展壮大。
可以说,多了解Java的规范能提升视角,帮助从战略意义上来考虑问题(这也是Java社区重设计轻实现的特点)。但开发与实现,我仍会选用其它轻型语言。

不着急

June 15, 2009 No comments »

前段时间的忙碌跟上一周的放纵又构成了一个经典的lee周期。其实所谓放纵不过是用了所有的业余时间玩了一周FM2009而已,在昨天晚上一次因为输掉比赛后的存盘载入操作中终于开始解脱,删除所有存档,离开了这个数字游戏。

Pinax项目已经释出了0.7版,我想是时候升级音乐网站项目了。跟老板谈了关于编外合作的事,有很多细节需要商榷,他又急着回国,只好等他7月份回来再谈了。暂时还无法确定这个时间点,顺势而为吧。

经济下滑(不敢用“危机”,我不确定是否是危机来临)在中国暂时没见多大影响似的。楼市股市还不错,身边的伙计们没有一个被动失业。也许这儿的经济一直都是在底部,无所谓更低了,哈哈

Python实战: 人民网工信部”绿色”过滤软件自动投票

June 10, 2009 1 comment »

目前支持者占大多数,不过我大多数朋友都不支持,那就让我代表他们投一次票吧,但是投票选项没有“不支持“,那就只好选择第四个选项“其他”了。

投票地址在这儿:http://politics.people.com.cn/GB/75468/9448842.html
结果显示在这儿:http://202.99.23.223:8081/vote_show/index.php?qid=8520

网站没有防止重复机制,代码很简单,如下:

import urllib
import urllib2
import cookielib

# enable cookie
cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))

# post data
post_data = urllib.urlencode({'command': 'SURVEY', 'qid': 8520, 'itemid': 4})

# vote recursively
for i in xrange(1, 100000):
    resp = opener.open('http://202.99.23.223:8081/option_submit.php?language=1', post_data)
    #print resp.read()

下为运行投票机器人之前的截图:
people-com-web-filter-software-vote

现在大家再去看看投票结果吧。

.

1 comment »

上周六带小家伙去球场了,第一次带他去看球,结果老爸表现不佳,只是一次利用守门员大意,通过角球直接进门。大部分时间都在场上站着。
这几天长牙齿了,下颌2颗。

看了The Start-up Guru: Y Combinator’s Paul Graham,文章很长,节选了下面一些精彩的片段:

a company is the most efficient way to create wealth — for investors, for founders, for society at large

“There’s this classic pattern that has happened over and over again throughout history in which something is made one at a time, very expensively and unreliably by hand, and then someone comes along and figures out how to make large numbers of them cheaply and reliably,”

Like many software entrepreneurs, Graham has been writing code since his teenage years, but he also has a range of interests not common among computer geeks. He was an aspiring short-story writer as a high school student and majored in philosophy at Cornell as an undergraduate. After deciding that he found philosophy incomprehensible, Graham landed in a computer science Ph.D. program at Harvard. He excelled as a programmer, but about halfway through graduate school, he started taking classes in Harvard’s art department. After receiving his doctorate, he enrolled at the Rhode Island School of Design with a plan to become a painter. He took classes at RISD that summer and in the fall enrolled at Florence’s Accademia di Belle Arti, a nearly 500-year-old art school founded during the Renaissance. When I suggest to Graham that this was a weird life plan for someone with a computer science degree from Harvard, he says simply, “I never cared about the official rules.”

Doing so, he says, is the best way to turn a bad idea into a good one. “As long as you pay attention to your users, you can change a bad idea,” he says.

“It taught me how to do cheap in a cool way,” Graham says. Artists, Graham discovered, don’t pretend to be rich; they live in sparsely decorated lofts and wear cool vintage clothes. “A start-up is that philosophy applied to business,” he says.

I ask Graham why he is so intent on growing. Why does the world need so many little software companies? He looks at me as if I’m insane. “Imagine that instead of starting Google, Larry Page and Sergey Brin had taken jobs in some research lab,” he says. “They would have written a little piece of an operating system that might not even get used and maybe some boring academic papers. Think of how much more they did for the world as start-up founders.”

“you always come away feeling energized. You could be working on the most boring piece of software, and you talk to Paul and you think, Man, I’m excited to go back to work.”

还有10 Questions for Paul Graham里面的:

5. If you could go back and do one thing differently, what would it be?

I wish I had taken advantage of all the free time I had in high school and actually learned stuff, instead of spending so much time hanging out with friends.

设计与实现

June 5, 2009 No comments »

设计一旦确定,实现过程就像是体力活,差别就是熟练工跟生手。