Liu 的个人资料唯有仰望是真实的照片日志列表更多 ![]() | 帮助 |
|
2008/5/27 making the web faster单独开一个category叫making the web faster, 呵呵 看了Gmail官方blog上这篇文章A need for speed: the path to a faster loading sequence, 不得不佩服google的工程师们, 之前的blog上介绍过YSlow的作者现在也在google.废话不说, 先总结一下这篇文章: 1, gmail秉承google的一贯作风, performance是一个痴迷的东东, 但是自07年10月份做过的一次利用prefetching message来提高性能的大动作, 一直在努力使gmail更快, 通过大量的profile发现从点sign in到看到inbox, 这个时间称为了瓶颈, 而且用户除了看到"Loading..."不知道为什么这么慢. 2, 开动Httpwatch(还可以用WireShark/Fiddler)来看browser到底和server进行了哪些交互, 什么东西花了这么长的时间. 发现这个初始化载入部分, 共有14-24个请求, 虽然比起某知名新闻站点的180个强很多, 但是还是有很多可以改进的. 3, 改进指导方针, 减少请求数. 4, 改进具体工作, 希望google能改进google reader的性能, 在订阅多的时候, 在IE7下左侧订阅栏操作慢到不能忍, 在firefox和safari下能好很多, 但在firefox下gmail经常把firefox搞死, 或者CPU一下上到90%, 对于我的破电脑来说, 真是雪上加霜的说, 不过相对于邮件, 我用reader的机会多很多很多, 很希望能看到对reader性能的改进动作, 这应该会是一个很有趣的工作, 对工程师来说. 2008/5/25 这周末周五晚上收拾东西到4点多,周六搬了过来,直到今天下午5点多才把所有的东西整理好,累死我了。。。 客厅 餐桌,原配椅子被房东拿到他那边了,我在二手市场上买的4把,还满配的 还需要添置一些厨具 阳台 洗手间 两个卧室 飞龙出水 远观 近视 场地里面很有气氛,福娃们很high, 有一个做了连续3个空中测转360度 孩子快抓紧妈妈的手--献给地震中死去的孩子们(zz)
快抓紧妈妈的手 去天堂的路 太黑了 妈妈怕你 碰了头 快 抓紧妈妈的手 让妈妈陪你走 妈妈 怕 天堂的路 太黑 我看不见你的手 自从 倒塌的墙 把阳光夺走 我再也看不见 你柔情的眸 孩子 你走吧 前面的路 再也没有忧愁 没有读不完的课本 和爸爸的拳头 你要记住 我和爸爸的摸样 来生还要一起走 妈妈 别担忧 天堂的路有些挤 有很多同学朋友 我们说 不哭 哪一个人的妈妈都是我们的妈妈 哪一个孩子都是妈妈的孩子 没有我的日子 你把爱给活的孩子吧 妈妈 你别哭 泪光照亮不了 我们的路 让我们自己 慢慢的走 妈妈 我会记住你和爸爸的模样 记住我们的约定 来生一起走 2008/5/20 轰轰轰这两天忙乱的脑袋里面轰轰轰的 kuca他们吉协活动捐的20箱抗生素在找渠道运到成都去, 听说那里最缺的就是药品, 很多人挂的都是葡萄糖和盐水, 希望他们能尽快找到途径. 最近在开发一个facebook应用, 即使是再多的PR宣传SNS网站是多么多么好的一个平台, 对于开发者, 尤其是对于中国这样的网络条件下的开发者来说, 这是一个很很很恶心的平台, WHY, 因为它慢到不能忍, 超难调试, 没有文档, 资料甚少. 如果你想把你的超cool的应用挂在任何的页面上, 像自己的blog上, 不管这个应用多么的cool和彰显个性, 从实现的角度看, 你最好理解How JavaScript is Slowing Down the Web (And What To Do About It)先, 理解browser是如何下载, 解释, render页面的. YUI theater多了几个新的talk, 这个Julien Lecomte — "High Performance Ajax Applications" 很有趣, 几个可以优化性能的地方之前没有注意过, 像当前页面preloading下一个页面的元素的技巧. YSlow的初始开发者去了google, 做了这一个新的页面性能检查的工具Cuzillion, youtube上google developer channel做了介绍, 光大率看一下似乎比YSlow想法差很多, 不过仍然有些用处, 可以看到浏览器如何样的顺序下载和解释.
Java和.NET, 这两个平台还是大多数开发者要接触的, 有些规律, 不遵守不行. 2008/5/19 每个人心中的"松子""被嫌弃的松子的一生"看过让人觉得很压抑很深刻同时又很鼓舞, may be in life, it's not that you got screwed up by someone else that matters, what really 看到余大娘的影评看的, 强烈推荐. 2008/5/16 Best Programming Jokes(zz)May 06 Best Programming JokesDevelopment, Humor Add comments How can you tell when a programmer has had sex? ~~~~~~~~~~~~~~~~~~~~~~~~~ Two bytes meet. The first byte asks, "Are you ill?" ~~~~~~~~~~~~~~~~~~~~~~~~~ Eight bytes walk into a bar. The bartender asks, "Can I get you anything?" "Yeah," reply the bytes. "Make us a double." ~~~~~~~~~~~~~~~~~~~~~~~~~ Q. How did the programmer die in the shower? ~~~~~~~~~~~~~~~~~~~~~~~~~ How many programers dose it take to change a light bulb? ~~~~~~~~~~~~~~~~~~~~~~~~~ Why do programmers always mix up Halloween and Christmas? ~~~~~~~~~~~~~~~~~~~~~~~~~ There are only 10 kinds of people in this world: those who know binary and those who don't. ~~~~~~~~~~~~~~~~~~~~~~~~~ A programmer walks to the butcher shop and buys a kilo of meat. An hour later he comes back upset that the butcher shortchanged him by 24 grams. ~~~~~~~~~~~~~~~~~~~~~~~~~ "Knock, knock." ~~~~~~~~~~~~~~~~~~~~~~~~~ Programming is 10% science, 20% ingenuity, and 70% getting the ingenuity to work with the science. ~~~~~~~~~~~~~~~~~~~~~~~~~ Programming is like sex: ~~~~~~~~~~~~~~~~~~~~~~~~~ A man is smoking a cigarette and blowing smoke rings into the air. His girlfriend becomes irritated with the smoke and says, "Can't you see the warning on the cigarette pack? Smoking is hazardous to your health!" To which the man replies, "I am a programmer. We don't worry about warnings; we only worry about errors." ~~~~~~~~~~~~~~~~~~~~~~~~~ There are three kinds of lies: Lies, damned lies, and benchmarks. ~~~~~~~~~~~~~~~~~~~~~~~~~ A programmer is walking along a beach and finds a lamp. He rubs the lamp, and a genie appears. "I am the most powerful genie in the world. I can grant you any wish, but only one wish." The programmer pulls out a map, points to it and says, "I'd want peace in the Middle East." The genie responds, "Gee, I don't know. Those people have been fighting for millenia. I can do just about anything, but this is likely beyond my limits." The programmer then says, "Well, I am a programmer, and my programs have lots of users. Please make all my users satisfied with my software and let them ask for sensible changes." At which point the genie responds, "Um, let me see that map again." ~~~~~~~~~~~~~~~~~~~~~~~~~ All programmers are playwrights, and all computers are lousy actors. ~~~~~~~~~~~~~~~~~~~~~~~~~ Have you heard about the new Cray super computer? It's so fast, it executes an infinite loop in 6 seconds. ~~~~~~~~~~~~~~~~~~~~~~~~~ The generation of random numbers is too important to be left to chance. ~~~~~~~~~~~~~~~~~~~~~~~~~ "I just saw my life flash before my eyes and all I could see was a close tag…" ~~~~~~~~~~~~~~~~~~~~~~~~~ The computer is mightier than the pen, the sword, and usually, the programmer. ~~~~~~~~~~~~~~~~~~~~~~~~~ Debugging: Removing the needles from the haystack. ~~~~~~~~~~~~~~~~~~~~~~~~~ Two strings walk into a bar and sit down. The bartender says, "So what'll it be?" The first string says, "I think I'll have a beer quag fulk boorg jdk^CjfdLk jk3s d#f67howe%^U r89nvy~~owmc63^Dz x.xvcu" "Please excuse my friend," the second string says, "He isn't null-terminated." ~~~~~~~~~~~~~~~~~~~~~~~~~ From the Random Shack Data Processing Dictionary: Endless Loop: n., see Loop, Endless. ~~~~~~~~~~~~~~~~~~~~~~~~~ The three most dangerous things in the world are a programmer with a soldering iron, a hardware engineer with a software patch, and a user with an idea. - The Wizardry Compiled by Rick Cook ~~~~~~~~~~~~~~~~~~~~~~~~~ One hundred little bugs in the code ~~~~~~~~~~~~~~~~~~~~~~~~~ A computer science student is studying under a tree and another pulls up on a flashy new bike. The first student asks, "Where'd you get that?" The student on the bike replies, "While I was studying outside, a beautiful girl pulled up on her bike. She took off all her clothes and said, 'You can have anything you want'." The first student responds, "Good choice! Her clothes probably wouldn't have fit you." ~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~ CIA - Computer Industry Acronyms CD-ROM: Consumer Device, Rendered Obsolete in Months ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ Comedy Code is syntactically correct programming code written just for fun. The code doesn't actually have to do anything if it's executed, but it should look like regular code. ~~~~~~~~~~~~~~~~~~~~~~~~~ Why computers are like men:
Why computers are like women:
~~~~~~~~~~~~~~~~~~~~~~~~~ Laws of Computer Programming
~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~ A programmer finds himself in front of a committee that decides whether he should go to Heaven or Hell. The committee tells the programmer he has a say in the matter and asks him if he wants to see either Heaven or Hell before stating his preference. "Sure," the programmer replies. "I have a pretty good idea what Heaven is like, so let's see Hell." So an angel takes the programmer to a sunny beach, full of beautiful women in skimpy bikinis playing volleyball, listening to music and having a great time. "Wow!" he exclaims, "Hell looks great! I'll take Hell!" Instantly the programmer finds himself in red-hot lava with demons tearing at his flesh. "Where's the beach? The music? The women?" he screams frantically to the angel. "That was the demo," the angel replies as she vanishes. ~~~~~~~~~~~~~~~~~~~~~~~~~ Jesus and Satan have an argument as to who is the better programmer. This goes on for a few hours until they come to an agreement to hold a contest with God as the judge. They set themselves before their computers and begin. They type furiously, lines of code streaming up the screen, for several hours straight. Seconds before the end of the competition, a bolt of lightning strikes, taking out the electricity. Moments later, the power is restored, and God announces that the contest is over. He asks Satan to show his work. Visibly upset, Satan cries and says, "I have nothing. I lost it all when the power went out." "Very well," says God, "let us see if Jesus has fared any better." Jesus presses a key, and the screen comes to life in vivid display, the voices of an angelic choir pour forth from the speakers. Satan is astonished. He stutters, "B-b-but how?! I lost everything, yet Jesus’ program is intact! How did he do it?" God chuckles, "Everybody knows… Jesus saves." ~~~~~~~~~~~~~~~~~~~~~~~~~ Redneck Computer Terms LOG ON: Makin' a woodstove hot. ~~~~~~~~~~~~~~~~~~~~~~~~~ Software Development Cycles
~~~~~~~~~~~~~~~~~~~~~~~~~ Top 10 phrases spoken by a Klingon Programmer
~~~~~~~~~~~~~~~~~~~~~~~~~ The programmer compiled an array of reasons as to why he can't find a girlfriend with a good <HEAD> on her <BODY>, reason 0 being that he has limited cache. So he searches his memory to recall connecting to the TCP/IP tunnel of his last girlfriend — sometimes even without a secure socket. His last girlfriend always complained about his lack of comments. He fumed, "I hate commenting!" Realizing it was a program requirement, he told her she had nice bits. This resulted in a Syntax Error. Now she demanded a massage, but this was rejected as "Feature Creep." He smacked her back-end and shouted, "Who's your parent node?!" He scanned for open ports. He attempted to install a backdoor worm but her response was 403. While his data uploaded into her input device, she considered terminating the process. But instead she initiated a Do While loop where she recalled a previous boyfriend with a larger pointer. To expedite the routine routine, she screamed, "Hack into my system! Hack deep into my system! You're 1337, baby!" This caused his stack to overflow, and he shot his GUI on her interface. (Source) ~~~~~~~~~~~~~~~~~~~~~~~~~ What's the difference between drug dealers and computer programmers? Drug Dealers Refer to their clients as "users". "The first one's free!" Have important South-East Asian connections (to help move the stuff). Strange jargon: "Stick," "Rock," "Dime bag," "E". Realize that there's tons of cash in the 14- to 25-year-old market. Job is assisted by the industry's producing newer, more potent mixes. Often seen in the company of pimps and hustlers. Their product causes unhealthy addictions. Do your job well, and you can sleep with sexy movie stars who depend on you. Popularity: 81% [?] Copyright © 2007-8 Tiwebb Ltd. All rights reserved. This material may not be published, broadcast, rewritten or redistributed without explicit permission from Tiwebb Ltd. 加油, 刘佳今天听Cat说谢素云老师逝世的消息,晚上回来在系主页上看到了这个关于谢素云老师的讣告,谢老师当年居然是在我亲姥爷所在县插队的,真是神奇。祝福她在天国一切都好。 在学校的时候,不能不承认确实不怎么感冒谢老师,现在想起来,当时不应该将自己的错误和无知等等责怪于别人,不愿为自己做出的选择负责任。 最近有人问起我,“你对当时退学的事后悔吗? 你觉得这能体现出你性格上什么样的缺点呢?”,问的很尖锐,现在的我真的不怕这样的问题,因为我真的不后悔,我选择了这样的道路,可能意味有些门永远对我闭上了,但是我愿意为承担这个后果,在选择的道路上走的更远,飞的更高。 刚收到你的电话,呵呵,有你在我身边,我信心满满的~~~ 2008/5/15 The life of a programmer......is a life of fight, fight against the ugliness. 从jjgod那里抄来Helvetica中的Massimo Vignelli 的这句话。 2008/5/14 分布式Solr/lucene应用( distributed solr/lucene application)之前写的这篇唯有仰望是真实的: 用solr搭建中文搜索应用在blog上访问量很大,在google和百度上排的也比较前, 这两天正好讨论到这个分布环境下利用solr构建搜索应用, 所以我想把我看到的东东拿出来分享给大家. 首先分布式的搜索应用分两种情况, 2, 索引(index)量大, 单机索引不能满足需求, 可以考虑DistributedSearch, 这里index将发向多个机器, 称为shards, query的请求也发向这些shards, 然后把结果merge到一起.
这中间, 大家都是好孩子这几天看到同学朋友的blog都展现了各种各样的对灾区的关爱,
公司同事们在公司组织募捐前就大家自发组织了匿名捐款,
真的很符合那句被引坏了的肯尼迪的话,
"Ask not what your country can do for you, ask what you can do for your country."
在这样的时候, 在任何的时候, 愤青的态度都是没有意义的, 还是做些实事好. 2008/5/12 地震的时候你念着谁哐哐哐有人冲进来把我们拉到楼下去,整个楼都空了,据说地震了 我都没有感觉到,因为一直没有吃东西,不知道是自己本来就够晕还是麻木了 然后我哥打过来说感觉到了,打回家里都没啥事,不过就是西安的整个电话都打不进去,着实让人着急了一下 btw: 6间房更新flash播放器了,结果专辑连续播放功能在mac上的safari 3.1.1上有bug 2008/5/10 杂刚看到有前同事过了Android Developer Challenge I, 相当牛的说 昨晚看到的ext3上恢复误删数据的文章 http://huaidan.org/archives/1913.html http://www.xs4all.nl/~carlo17/howto/undelete_ext3.html ext3 FAQ上说是无法恢复的,但是这位老大发现如果分区相比journal不是出奇的大,并且最近访问过这些数据,很有可能数据在journal中存在。 但是,仍然,最好还是能避免误删除,备份重要数据。 2008/5/8 准备搬进龙腾2了折腾了几天找房子,这下终于消停了,等着搬的时候再忙乱吧 回龙观那边中介挺好,这种up-coming的社区生意明显比五道口这里火很多 房东人很好,北医毕业的,有一个3个月的小宝宝在家里,所以要搬到单位附近去住 房子很温馨,有点家的感觉了,嗯,慢慢来 2008/5/6 继续寻房子, 找合租去了趟东王庄, 小区还好,就是一路上太多尘土, 太多的人 找了龙泽的几个机会, 一居基本上都是2k以上了,和别人合租住两居小间都是 1000-1400左右了, 还要从性别,年龄,婚恋状况,职业都查一遍 有一个1700两室一厅的后天去看看,不行就自己一个人住,不过好远啊。 或者和我哥一起租一段先,到奥运过了这些房东没有这么疯了的时候看看再折腾, 房子,真折腾啊 2008/5/3 从今天开始变三不博客不写自己 不写感情 不写工作 if you care enough, you know how to reach me, sorry and thanks everyone. |
|
|