Ha, really enjoy writing blog entry in English now, so much faster than written in Chinese, or it just imply my Chinese PingYing sucks?

so since long time ago, I already realized the different between include_once and require _once function in PHP language, which is require will halt the process and report error immediately , and include_once will continue process.

As well as I being told in many articles that use require on unconditional import, and use include on conditional import, which this is also a standard coding style in PHP Pear and Pecl repository.

So what is the real difference on using "include_once" and "require_once", or by meaning of "uncondictional" or "conditional" import, Here is some of my thoughts: unconditional import are usually used by the developer which needs to be there. and use "conditional" import to deal with dynamical generated code, such as "template", "user style", which the user generate, and they could make mistakes, and should be ignored, and mistakes by developer is not allowed, so use "require_once" to enable the strict standard.

^.^  , the (^ Not) regular expression still bother me, will figure it out soon, I hope, and write a entry about it.
Tags:
Facebook has chat application launched, Not yet seen, check them out now. When you log in, you will see the pop up notification.

I just recently known there is a technology call Comet on the server side. which is really incredible. So what it basically does is: it is able to push the data to client side (browser) when there is update, which means you dont have to refresh the page to see the update or so. My guess is the facebook implements some kind of server technology like this to get their chat application running.

And as mentioned by the article in Wikipedia I gave the link above (UP THERE), it needs a lot of servers to make them works smoothly especailly for a busy site like Facebook. Ha, seems Facebook are working hard to push the possibility to the limit.

As I mentioned in last article I wrote, developer position will become more difficult to get, but I think it over, if we focus on the technology, and keep pushing the technology to the threshold, which in turn will require other business to keep up with the tech. and so, it creates the needs for more developers.

So it is just your choice of being a good or bad programmer, as well as having wonderful or stressful career. I think it applies to every kind of industry. Focus on what you doing, and keep doing it the best, I suggest.


It is been a few days since Google App Engine released by Google Inc. After the Amazon Web Service, Google also offer their platform for developer for them to build application on top of their infrastructure. So what is the god damn effect on the industry and the world, Not known yet.

Here are some of my opinions:

1. The Platform As A Service model will definitely take the market share of all these hosting company, and those company such as 1and1, godaddy etc should have some difficult time to pass by, And It will reflect on their employees as well.

2. It seem the web technology are growing so fast that less people needed to do something really advanced that requires a lot of people before. The youtube, flickr team were only consist of around 10 people. The effect: It is becoming very competitive for developer to find the top notch job, And you need to master very good knowledge to survive, However, It only make technology growing faster and faster.

3. What happen if all the website are hosted under Google and Amazon, and later Microsoft LOL. The effect: only a few amount of companies run the world wide web.

p.s. just some thoughts

花了3天时间, 作了一个facebook的应用程序, 不是很复杂的程序, 就是简单的日常记事本, 来记录每天你想要记录的事情,本来是打算开发来给自己的blog用到, 后来想一下, 还是可以用它来试一下facebook platform。

总体来说, facebook platform是很不错的, 就是一个强大的PHP framework, 但是跟许多framework, 对开发者的flexibility控制的比较严格, 毕竟涉及到安全问题, 也不能怪facebook, 经过这几天的实践,觉得还是不要用太多framework的比较好,个人不喜欢被限制, 但是有一点就是自己写的东西很多时候都不是那么完美, 毕竟没有facebook那样经过这么多开发者的测试,anyway, 个人觉得开发facebook程序不值得推荐, facebook程序大多数是用来玩的, 没有什么真正有用的程序。

footprint程序连接: http://apps.facebook.com/footprint-zuji/

截图:
facebook

Tags: ,
我写的是我这一年看过书和我自己想的总结, 有不对的地方请大家指出, 给我意见。


1。 服务端的配置和优化 (大纲, 不包含细节)

Squid Proxy Server (这个好像是细节)

所谓程序服务端,也就是程序所在的主机。 当用户使用浏览器(IE, Firefox)来读取你网站的网页的时候, 你的程序服务器就开始工作了, 程序服务器就要对这个网页进行编译, 从MYSQL读取数据, 然后把HTML文件发给你的浏览器来读。 当别人的浏览器也读取这个网页的时候, 程序服务端又要对同一个网页进行处理后返回HTML, 如果网页的内容是一样的话,而在同一时间内有大量相同的请求的话, 就浪费了大量的CPU来进行编译, 我们可以使用Squid Proxy Server对文件进行缓存, 这样不仅减轻程序服务端的负担, 也可以使用户更快的浏览页面。

服务器群组

尽管有Squid的帮助, 一个程序服务器很容易就达到了它的瓶颈(普通的程序服务器在同时处理100个请求的时候就已经非常的吃力了), 这时候就需要加入更多的程序服务器进行分担, 每个程序服务器上都含有一样的程序。 在ALEXA前10名的网站的服务器都是以万计的。 这样每当用户向程序服务端要求网页的时候, 就会被平均的分配到所有的服务器上。进行平均分配可以通过不同的方法来实现, 有Layer 4 , Layer 7 , 和Round robin DNS等等。

MYSQL 群组

Tags: ,
It is really cool operating system, very intuitive interface, almost same as window vista, but I still need some time to figure out how to master everything.

I can only use English to write diary now, no language support text input is enable now ( I dont know how to at this time), graphic is fantastic even without install my G-force 7800 driver, It is already very smooth, but I will figure it out how to install my driver later on.

One bad thing about this system is that the wireless is work worse than windows XP, even though XP is not very well either, but Ubuntu is still not very good at supporting hardwares, or the other way around, hardware doesnt support Linux well yet.

It is a bit laggy when switch workplace, I think I really need install graphic driver anyway. There are so much more option you can do to control the looking and feel of the operating system. even the most trivial thing, like orientation of every part.

Before really make my mind to use Linux, I never know there are so many cool application you can use for free, the best thing about open source. and by using this system, I can concentrate myself on using the computer as a tool instead of entertaining system, gaming and entertainment is not very well support under Linux. (may be I am wrong with the entertainment part).

let me talk about the experience of using Ubuntu following days, really cool for me right now.
Tags:
介绍一部今天看的电影。  剧情:奇异的时空线索 新奥尔良州,一艘轮船静静地停泊在港口。突然,疯狂的爆炸声轰然而起,浓烟滚滚,火光映红了大桥,ATF(专管酒类、烟草和枪械)特工道格·卡林(丹泽尔·华盛顿饰)迅速被派往调查爆炸现场。虽然经验老道,然而,到达现场的卡林却对现场的景象和人物有着奇怪的莫名熟悉感。 跟踪调查的卡林逐渐发掘了更不可思议的东西--不论是现场、照片、房间,在渡船爆炸时到底发生了什么,一切仿佛与他的过去和未来不可分割,而这些又似乎将引导他走向另一场惊骇的犯罪事件!受邀加入新组成调查小组的卡林,开始接触ZF的秘密时光实验室,在这里,他们能监视过去4天内任何地方发生的事件。 卡林意外发现自己与一个名叫克莱尔(宝拉·巴顿饰)的女人有着谜一般千丝万缕的联系,而这个他似曾相识的女子的过去更与摧毁他们未来的大灾难息息相关,而很可能,只有探究过去才能阻止灾难的发生。不容半刻迟疑,卡林必须相信引导自己的时空线索,改变一切! 看点:惊心动魄的时空记忆
Tags:
因为工作要求, 试着用了一下PHPExcel这个PHP库, 很不错的一个库, 有许多支持格式的输出, 有个不好的地方就是PHPExcel好像只支持Excel2007的读取, Excel2000的文件, 就要用Excel2007来先进行转换, 今天就通过PHP来取出Excel的数据而已, 明天就开始做数据统计。
通过PHPExcel也接触了其他好的库, 也就Java和PHP作了一下比较:

个人认为PHP和Java各有个的优点

1。 PHP社区强大, 而且PHP的软件%80以上是开源加上可以用于商业用途, 而Java的开源程序很少, 就是有, 也大多不可以拿来修改来作为自己用。
Tags:
 美国华裔青年Liam Liu是一位刚刚开始在好莱坞谋生的电影演员。他的经理人是一个只会夸夸其谈,但却无法为他提供机会的美国西班牙裔青年Joe。事业上无所建树,生活上空虚寂寞,百无聊赖的Liam便整天沉溺于和一个美国女孩的热恋中。有一天,家里给他发来一封信,告诉他上海的奶奶因病去世,将她唯一的遗产——一座位于上海闹市中心的小洋房赠给了孙子Liam。Liam的父亲体弱多病,酗酒成性,根本无心去遥远的上海接受这笔遗产。无奈之下,Liam只好决定自己跑一趟。
今天写了一个query Alexa 网站的php代码, 发现18c.com 排在第一位哦, 可能是alexa的bug吧, 还是有人用了作弊器. hehe, 其实都不是, 就是一个yahoo的服务器而已。 最近对编程有点不感兴趣的说, anyway, 明天要去interview一份工作先, wish me good luck. good luck good luck good luck, hehe...
分页: 2/5 第一页 上页 1 2 3 4 5 下页 最后页 [ 显示模式: 摘要 | 列表 ]