A new approach to my career

谢谢.

再见.

嗯,时光飞逝,岁月如梭(冷..)

在上海的4个月后,我辞职了.

算上两份实习,目前我共做过4份工作,内容上分别是.

web 开发(Rails), web 开发(Java),  iphone 软件 , 跨平台游戏.

算是体验了不少东西,也认识了不少各行业的朋友.

但接下来不可再随性下去,控制自己的欲望,得制定些人生的目标了.

日复一日

月复一月

年复一年

这个月,开始挑战些极限的东西.

Apple 发疯了

Apple 发布了 os4.0

新的Game Center -> openFeint , Plus+ 等第三方平台怎么活下去。矛盾开始了

iAD -> 公开指责 google ,又一个敌人

以及 3.3.1

3.3.1 — Applications may only use Documented APIs in the manner prescribed by Apple and must not use or call any private APIs. Applications must be originally written in Objective-C, C, C++, or JavaScript as executed by the iPhone OS WebKit engine, and only code written in C, C++, and Objective-C may compile and directly link against the Documented APIs (e.g., Applications that link to Documented APIs through an intermediary translation or compatibility layer or tool are prohibited).

这下 unity 和 即将来临的flash也被一棍打死了。

unity3d 论坛火爆讨论

Adobe 目前在twitter上的声明 :AdobeWe are looking into the new SDK language. We continue to develop Packager for iPhone OS which will debut in Flash #CS5

当然cocos2d 也赶紧来了个声明,哈哈不关我的事

开饭日[转自阿杰的QQ空间]

据野史记载,开饭日起源于亚洲东方的中国的互联网中生代的白垩纪,由于那时网络处于蛮荒时代,鸭嘴龙横行,吞噬龙间一切能够“自由”活动的东西,直到有一天,发现没有东西可进食,于是集合到一个叫“梅梯”的石头上,以“集体”之力量发出电波,向“背汉”星人友人传达“我们要开饭”的求助信息。背汉星人于是用特快彗星送来食物,不料救友心切,操作出了故障。。。为了纪念当日,网龙们自发地约定用“开饭日”来纪念这天 - 3月23日。 Read more »

Tutorial of kissXML(iPhone)

KissXML is a good approach for parsing xml data, and the x-path function make it more powerful.

Integrate With You Project And KissXML

  • Download source codes form here
  • Add all the files to your project (excluding DDXMLTesting)
  • Configure you project to work with libxml

click Project -> Edit Project Settings

You’ll be adding this to your compiler instructions

OTHER_LDFLAGS = -lxml2

HEADER_SEARCH_PATHS = /usr/include/libxml2

Using KissXML

Here is a quick demo to indicate you how it works.

For example, we need to get the SRC value of each media field from the target xml file.

<smil xmlns="http://www.w3.org/2000/SMIL20/CR/Language">
<head>
</head>
<body>
<par dur="120000ms" >
<text region="Text" src="att000.txt" />
</par>
<par dur="120000ms" >
<text region="Text" src="att010.txt" />
</par>
<par dur="10000ms" >
<img region="Image" src="att020.jpg"/>
</par>
<par dur="120000ms" >
<text region="Text" src="att040.txt" />
</par>
<par dur="10000ms" >
<img region="Image" src="att120.gif"/>
</par>
</body>
</smil>

Here are the codes !

//hack to remove xmlns => avoid xpath search not works
 xmlStr = [xmlStr stringByReplacingOccurrencesOfString:@"xmlns" withString:@"noNSxml"];
 NSMutableArray* contents = [NSMutableArray array];
 NSError* error = nil;
 DDXMLDocument* xmlDoc = [[DDXMLDocument alloc] initWithXMLString:xmlStr options:0 error:&error];
 if (error) {
 NSLog(@"%@",[error localizedDescription]);
 return nil;
 }
 NSArray* resultNodes = nil;
 resultNodes = [xmlDoc nodesForXPath:@"//audio | //text | //image | //img" error:&error];
 if (error) {
 NSLog(@"%@",[error localizedDescription]);
 return nil;
 }
 for(DDXMLElement* resultElement in resultNodes)
 {
 NSString* name = [resultElement name];
 //audio , text or other media type
 NSString* fileName = [[resultElement attributeForName:@"src"] stringValue];
 // 0.txt
 }

Note, I replaced the “xmlns” inside the xml file, because it weird xpath would failed if namespace available at a XML file(it might a bug)

And at last, have fun!

经不住的似水流年

如题.

文字少了点,贴个图.

PS. wiki系统重新回来了!!(页面右上角的NOTE),这一个多月的时间内被广告攻陷了,今天费了好久才整回来.新增加两个关于MediaWiki的note.

===== 觉得太标题党了点,更新点内容  =========

最近保持了很长一段时间的迷茫,之前做事想来是跟着感觉走,用李开复装逼的方法说就是follow my heart ,决定了也就义无反顾了. 现在发生的事却让我开始怀疑起自己的决定.如何才能做一个好的决定?

过去的一年里认识了3个人.

第一个人推荐了我本书 Programming Game AI by example

第二个人送了我本书 The beauty of code

第三个人推荐了本书 More joel on software

经历了不少,成功的失败的,学到很多.甚至还没来得及给2010年企划,居然已经过去1/4年了.

以后会花更多时间在思考上,而不是鲁莽行事.

解决windows 7 连接 unity asset server 出现 no pg_hba.conf entry for host 的错误

出现错误的原因是 unity3d asset server 使用了 PostgreSQL

而在配置文件中没有对IPV6做白名单操作。

#                   PostgreSQL HOST ACCESS CONTROL FILE
#
local  all                                          trust
host   all        127.0.0.1      255.255.255.255    trust
host   booktown   192.168.1.3    255.255.255.255    ident    sales
host   all        192.168.1.4    255.255.255.255    ident    audit
当然最简单的做法,只要在网络连接中将 ipv6 关闭就能连接了。

work with passion

在这之前,我一直严格按照这个理念行动着.
也一直认为没人能比我更贯彻这个理念了.
来新公司一个月.
发觉有点不对劲.
也许因为目前处于一心三用的情况.
公司,外包单,自己的单子
所以费在公司项目上的时间和精力少了不少.

相比而言,同事就厉害了.

it’s already 10 pm
[2/5/10 10:13:40 PM]  yeah
[2/5/10 10:13:46 PM] : shit i need to go or i miss the train

每天自愿留在公司工作(本公司没加班),周末也在公司继续修炼.
对他而言完全是一种乐趣.
很欣赏这风格,
不过最近很不爽很郁闷很压抑,被这毕业证和户口弄的头昏脑涨.

好失落好不爽啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
希望能早点把这些分散注意力的事情解决掉.

然后让我们一起
working with Passion !

Fake Version

在windows平台用gtalk
同事给我发文件,失败.
提示我在用gmail客户端

同事版本 1.0.0.104
我的版本 1.0.0.105

It’s a Fake version.
长见识了,不只是魔兽世界,到处都是和谐.

刚好今天在rss看到一篇分享过来的文章

中文版GTalk是没有加密的

http://it.solidot.org/article.pl?sid=09/08/26/0621250&from=rss

真有趣

最后一门考试

等待这个时刻已经好久.
考试过了,很淡定.
压抑太久太久了,甚至连高兴的心情都酝酿不出来.
剩下还得解决毕业证和户口之类的问题.
那时候才是释然的时候吧.
革命尚未成功,憋足最后一股力量.
谢谢英明的党给我指引方向.
谢谢留守长沙的朋友们,这次和上次考试多亏了你们相助.

吐槽下
其实估计分数早就出了,在某老师给我发短信那天.
可是我忘记这极品教务系统有个先给老师评分才能看分数的机制
(我已经伪毕业半年多,早忘记这回事咯)
今天突然想起,果然看见分数了.
枉费这几天反复刷网页,刷分数
我我我恨死湖南大学

StarCraft2 beta coming soon?

闲的蛋疼搜了下星际2的消息.
然后找到两张图片.

1个细节.
battle.net 上starcraft2 beta 按钮变成绿色(以前是蓝色) 还是官方论坛的帖子.

不知道我当年借YY的电脑去提交beta机器配置能不能人品爆发搞到个试玩资格哈哈.

更惊爆的消息

Beta coming february 1st

同样来源官方论坛,那岂不是就是中国时间的明天!

无论真假.

在心疲惫之前,我都原因相信.