Friday, September 29, 2006

一份辞职报告 (FW)

Got it from the Internet.

这是我两年前写的。老板看过之后告诉我:一夜没睡,刺激很大!

  两年间,我跳槽九次,从作WAP开发到作网管,最短11天,最长是这次。那时我找不准究竟要干什么,跳槽是我获取新知识的手段,跳槽使我心浮气躁。

  来到这个新环境,开始感觉还不错,真是想好好干下去。事实上也是如此,我很久没在一个公司干过这么长时间。我原来有很多项目,本想拉到公司来做。但是公司很多事情和你的行为让我感到失望。我以为,跟随一个英明果断、有人格魅力的领导打工,我才有发展和前(钱)途。

  在私企干了这么久,我非常了解老板之辛苦,老板也很难,所以我有利益上的不满很少说。当我无法忍受的时候,就辞职。但我觉得有些事情不得不说给你听(我不说没有人会说给你,这也是我要辞职的一个原因):

  1.作为老总,有些琐碎之事,你不该过问。老总就应该做一些比较大、有水平的事情,整天盯着下边的员工毕竟让人不舒服。例如,哪台计算机给谁使用,怎么又迟到早退啦,关于报销之类的事等等。小事虽小,却使老总形象毁于一旦。

  我从没有见过老总亲力亲为计算每个员工的年薪,并亲自发到每个员工的手中。———这也太平易近人了吧?

  2.纠偏过正。办公开支是应该节省,网是不能无限制地上,车是不能随便地打,话费是不能随便地报,出差费用是不能太高……但是不要太过,否则员工会怨声载道的。

  3.要讲公平。迟到扣钱,那么加班呢?工作要讲效率,而不能光看工作时间,能不能完成工作要看自觉性,何必非要上下班打卡呢?准时上班我却打瞌睡,有个屁用!比如你自己,迟到多少回了,能说你上班没努力吗?

  你给我上保险,我很高兴,但这件事情你干得没水平。为什么每个人的待遇不一样,有的人上,有的人却没有(也许我是不知好歹)?这对别人是不公平的,你怎么能够留住人心呢?这种小把戏完全是个人行为,而不是公司行为。

  4.说话要算数。我来的时候,阿毛明确说过:今年年薪按照一年算。但阿毛走了,也无据可循,你记得不记得我就更不知道了。我来公司已经卖了力 气,交给我的工作我都完成了,而且×××的项目我已给公司赚回了我的年薪,而且今年会有更多的项目(但你也许认为很小)。公司网络和布线方面没什么利润, 和我没有任何关系。居然年终没有双薪和奖励,而且扣钱,这使我决定走人。

  5.用个人行为来管理公司,认为公司是我的,管理公司可以说是随心所欲,公司管理得一塌糊涂,全凭一个人说了算,狭隘的私有财产心理在作怪,典型的小农经济思维方式。

  6.我比较喜欢自由的工作,没有束缚,喜欢有施展自己能力的空间,公司不适合我。

  我与西北人的工作方法(喝酒、请三陪、揣钱)和思考问题的方式(用户太至上,尊严何在?)基本无法沟通,我不想再去西北做项目,因此我在公司无用武之地。

  九个月来,我像个打杂的,一会儿去兰州十几天(本来也就需要一两天),一会儿去东单电话局做本来无法完成的调试(不可完成的任务),或对用户说 一些不着边际的谎话,做了很多没有意义和受累不讨好的工作,也没学着什么东西(倒是敲了几万字的方案)。浪费了不少时间,却没有完成工作的满足感和成就 感。

  我所做的工作与我来公司预期想象的完全不一样。我想你至今也不知道我擅长的是什么,我喜欢什么工作、厌恶什么工作。

  7.公司像个小作坊,当一天和尚撞一天钟,没有安全感,大家在一起有混的感觉。无论公司以前怎么辉煌,至少现在公司缺少大气。而且我们拿项目靠 的不是技术实力。换句话说,公司舍得在搞关系上挥金如土,而在技术上却一毛不拔,一年了,没有任何技术资金投入。这也许就是作技术的与商人的区别。

  8.公司问题太多,不写了,你也不一定爱看。

  总之,今次,我之所以在公司做了不足一年便提出辞职,是因为公司给我的发展空间有限。而且自己表现出的能力,老板不懂得欣赏。我多年跳槽的准则是:既然老板不给自己发展机会,自己也不会给老板机会———辞职走人。

  10万年薪,你也许能够找到比我好的职员,但你千万不要以为仅仅靠这10万年薪就可以留住一个技术人员的心。本来现在就是一个双向选择、互炒鱿鱼的时代,少了谁公司都照样运转。我对公司实心实意,公司也要对得起我。

  我辞职对公司不会有任何影响,高手有的是,祝愿公司兴旺发达!

Exchange for US dollar

That is so funny. Over 10,000 RMB just get 2000 dollars. My god, how thin it is. No one knows that I have money from my appearance if I put it in my pocket. I should try to learn the skills of distinguishing US notes later.

How to Back Up Your Blogger Blog (FW)

There can be nothing worse than to login to Blogger one day and find you blogger blog gone, corrupted or deleted forever due to any unforseen error. Back up is very important. Here are a few simple ways to keep your Blogger blog safe and backed up….

Back up your Blogger Posts

  • Backup Your Posts - Bloggers Blogsend allows each of my blog posts to be automatically sent to my email address. So I have a back up of all my posts as individual emails. You can further create folders in your email account (as in Yahoo Mail) or apply labels (in Gmail), and create filters such that such emails can be collected in one place.
  • Back up your entire blogger blog - Bloggers provides detailed instructions to create a single file with all your posts which you may publish and then copy to your own computer for use as desired. Remember to save a copy of your existing template in a file on your computer as you will need to have it at hand after this process is completed. This is good for a one time backup, but is cumbersome to do if you back up very frequently. Also you might mess up some setting and disbale your blog is not done right.
  • Try third party back up tools - like the HTTrack Web site copier for Windows users and Webgrabber for Mac users. Each of these applications will create a fully working, interlinked local copy of your blog for browsing offline and easily allow you to back up. Remember it will take considerable time and internet bandwidth if you have a huge blog.

Back up Your Template

  • Back up the template whenever you change it. Just copy and paste the entire template code into any simple text editor like Notepad or Wordpad and save file with name like ‘myblog-date.txt’. After a while you will have a series of such files organized by date. If for some reason your blog goes away, just copy and paste the teplate back into Blogger and republish.
  • If you have lost your template partly or fully - learn how to restore your blog template code and then back it up.

Back Up Comments

  • Blogger has an option to send you an email when someone leaves a comment on your blog. This is located in Setting > Comments option in Blogger. This enables you to collect all your comments as individual emails, much like the blogsend posts emails mentioned above. Then you can file them all together as labels or in a email folder.
  • If you moderate comments, you can get all your comments as emails pending your approval. This email address can again be entered in Setting > Comments. If you do not want to save rejected comments as emails and recieve only published comments - then you can keep the comment moderation email address blank, while filling up the Comment Notification Address.
  • If you use Haloscan Comments instead, then anyway your Blogger comments are off and Haloscan is keeping track of backing up your comments. I am using Blogger comments featured now with comment moderation, word verification captchas to combat comment spam.

Make blog back ups a habit and you will remember this post when it saves your blog on a bad day!

Is accounting a good choice?

It is hard to say that any major is good enough for anybody. To me, the problem is the discrepency between interest and major (or job). Mostly, people cannot get jobs that they like or interested in. Therefore, I can choose a major that I do not like because of living reasons. That is the method to survive, not the way to entertain or something else. OK, the probable choice includes accounting, the major that I am not interested but used to work as a tool of surviving.

Web browsers have advanced.

Not only Firefox, but also Maxthon and Opera. The most important news is that the latest Maxthon version supports Google Tool Bar, which is integrated with the most powerful search engine in the world. God, experiencing Google is very well.

Monday, September 25, 2006

开车第二天

开车真是一件费神的事情。也许是练习的车离合和刹车都太硬, 我每次踩离合和刹车时都要费好大劲。一天下来腰酸背痛的,确实太累了。
第二天比第一天又熟悉了一点,我还直接从训练场地开回了我爸单位。上路还是要多练啊。

Sunday, September 24, 2006

减少Firefox内存占用

经常看到有朋友抱怨Firefox占用内容太多,经常造成内存泄漏的问题。自己在使用的过程中也有同感,开了十个左右的tab,时间一久,占用内存就会增加到500兆左右。实在是恐怖。

有人给支了这招:


引用
在about:config中

1.加入一个boolean项:config.trim_on_minimize,并设置为true,这样就可以在最小化时自动释放内存。

2.修改browser.sessionhistory.max_total_viewers修改值为5或更小{页面快进/快退功能中保存的页面总数,默认是-1(无限)}。


赶紧试了一下,乖乖,同样的页面,占用内容只有50兆左右了,而且在最小化的时候占用只有5兆。

太爽了,好东西不敢独享,有同样烦恼的朋友不妨一试

 

文章引用自: http://sweter.emulefans.com/

给你的Mozilla FireFox加速

总是感觉狐狸打开一个网页慢慢吞吞的,没有Opera快,上网查了一下有相关的提速的文章介绍,设置完成后果然有种改天换地的感觉。

具体方法如下:
启动FireFox,在地址栏中输入“about:config”,页面中找出以下选项(如果没有就新建一个): “nglayout.initialpaint.delay”(默认值为250,更改为0);“network.http.pipelining”(默认 值为false,更改为true);“network.http.proxy.pipelining”(默认值为false,更改为true); “network.http.pipelining.maxrequests”(默认值为4,更改为8)完成设置后保存退出。

重新打开FireFox,这时候就会发现浏览网页的速度比修改之前要快多了。

以下是摘录的详细原理说明:
关于 firefox 里面和 HTTP 连接有关的参数设置

发信人: atppp (Big Mouse), 信区: Firefox
标 题: 关于 firefox 里面和 HTTP 连接有关的参数设置
发信站: BBS 水木清华站 (Sun Nov 21 08:14:43 2004), 站内

关于 firefox 里面和 HTTP 连接有关的参数设置

本文是我和一个大牛啰里啰唆的聊天记录整理翻译,属于科普,有些地方可能说得不准确,大家不要当作专业技术文章看。欢迎拍砖。

一个典型的网页,是由一个 html 文件和内嵌的各类元素组成的,这些元素包括页面内的图片,css 文件,javascript 文件等等。每一个内嵌的元素在 HTTP 协议的层面上和那个 html 文件是没有区别的:也就是都需要浏览器去服务器上抓下来。一个早期典型的浏览器是这样实现的:当用户敲入网址之后,浏览器和服务器建立连接,请求这个 html 页面,然后边接收服务器发送的 html 页面,边解析,碰到内嵌元素,可以立即开第二条连接请求。另外,如果内嵌元素很多,他可能会开多条连接同时请求。当所有需要的元素都下载完毕之后,浏览器 就会将页面画出来。这个过程就是最早期的 HTTP/1.0 协议所设想
的浏览器实现。

HTTP/1.0 这种多连接的运作模式是可以改进的。建立 TCP 连接的过程是这样:客户端给服务器发一个网络包说我要和你建立连接,服务器收到之后回一个网络包说“我愿意”,然后客户端要再发给服务器一个网络包说“好 那咱们开始传数据吧”。这一来一去三个包才能建立 TCP 连接。连接建立之后,浏览器给服务器发请求,服务器给浏览器回应。完事之后又要来回几个网络包关闭 TCP 连接。如果页面有很多文件长度很短的元素,每个元素都需要单建一条连接就会导致网络上大量的都是 TCP 建立连接和断开连接的网络包。另外,TCP 有一个特性叫做 slow start,其含义可以大致这样解释:TCP 连接要求发送端发送一定数量的网络包之后接收端就要回一个“我收到”的网络包,而且网络包在经过每个路由器的时候包头都要被重写,所以在网络不丢包的情况 下网络包越大网络的效率就越高。TCP 连接寻找最优网络包大小的方法是,在 TCP 连接建立的初期,网络包的大小是很小的,根据网络状况,两端的程序才会逐步增大网络包的大小以适应带宽提高网络传输的效率。所以浏览器给服务器发请求,如 果每发一个请求就关闭连接的话,那这个连接的数据传输很难达到带宽所能承载的速度。

基于这种种原因,HTTP/1.1 很快出来了,提出了持久连接(persistent connection)的概念,也就是说同一条 HTTP 连接,可以同时处理多个请求,同时用一定的机制保证各个请求之间的分离性。具体的操作过程是:服务器给浏览器发送回应之后,并不马上关闭连接;浏览器判断 上一个请求的回应已经收完的情况下,可以在这同一个连接上发第二个请求。这种运作模式大大减少了网络包,实验也表明这种做法很有效。但是,由于服务器上保 持连接要占用一定的资源,所以一般服务器不会永久保持持久连接,而且也不推荐浏览器和服务器之间建立过多的持久连接。

持久连接可以进一步提速。这就是 pipelining 了。上面可以看到,浏览器需要等待持久连接里上一个请求的回应完全收完才能发送后面的请求。如果和服务器的连接比较慢,往往持久连接大部分时间都花在等待 而非数据发送/接收上。pipelining 的意思是,浏览器可以在一个持久连接里一次给服务器发送多个请求,服务器在这个连接上依次回应这些请求。这种运作方式和浏览器缓存结合起来的时候会尤其有 效果。比方,图片浏览过后会存在浏览器缓存中,再次请求的时候浏览器会对服务器说,我这里已经有这个图片的缓存了,修改时间是XXXX,如果服务器上这个 图片在这之后没有修改过,就不用重发了。这种情
况下,服务器会发一个很短的 304 Not Modified 类型的回应。如果没有 pipelining,每次这样问一下都要等待网络上传输打一个来回;而如果有 pipelining,浏览器可以同时问服务器我这里 4 个图片是否有修改,如果服务器对 pipelining 支持的好,它甚至可以将四个回应放到同一个网络包里面传回来,这是一个大大的加速。

pipelining 最早提出的时候还有一种设想的用法是,如果服务器对 pipelining 支持的好,可以把同一个 pipeline 里面的两个请求放到两个 CPU 上去处理,这样能进一步加快响应速度。当然这个可能也没什么用。

好咯,回过来看一下 firefox about:config network.http.* 的相关参数

network.http.keep-alive 默认是 true
是否允许持久连接,这个默认就是 true,改成 false 的是大傻瓜。

network.http.keep-alive.timeout 默认是 300
持久连接允许的保持时间,这个调大了没意义,因为一般 server 设置的就是 300。server 把你咔嚓了你还能有什么办法。

network.http.max-connections-per-server 默认是 8
连接同一个服务器允许的最大连接数,一般认为在开启持久连接的情况下把这个数值调大没什么作用,而且不太道德。需要调大的情况比方:你同时从网站下 10 个大文件。

network.http.max-persistent-connections-per-server 默认是 2
连接同一个服务器允许的最大持久连接数,这个数值 HTTP/1.1 标准推荐的是 2。调大了反而增加你自己的网络消耗,而且一般一个服务器允许的持久连接数是有限的,你调大了就可能造成别人可用的减少,如果大家都调大,就意味着网络效 率的丧失。我个人建议不要动这个数值。

network.http.pipelining 默认是 false
是否允许 pipelining,这个功能因为目前还是试验阶段,所以默认没有打开。强烈建议打开。

network.http.pipelining.maxrequests 默认是 4
每个持久连接允许一次发送的请求数。如果 pipeline 里面有一个大图片或者执行时间较长的脚本,后面已经发送的请求就会被阻塞(注意服务器必须是依次回应请求);而在这种情况下,如果没有使用 pipelining,浏览器发现一个请求处理时间很长,自然会使用另一条持久连接用作后续请求,甚至进一步开启非持久连接。另外,如果服务器支持 pipelining 不好而过早的关闭连接,浏览器势必要重新发送请求。基于这种种原因,有人认为这个数字设置得比 2 大反而会降低浏览速度。我个人的推荐是,这个数值一般情况可以保持默认值 4,如果浏览的网站有大量的静态小图片,或者网络速度较慢,可以尝试将其调大。

network.http.max-persistent-connections-per-proxy 默认是 4
每个代理服务器允许的最大持久连接数。4 是目前比较公认的最合适的数值,尽管HTTP/1.1 的推荐值是 2。

network.http.proxy.keep-alive 默认是 true
连接代理服务器是否允许持久连接。true 挺好的。

network.http.proxy.pipelining 默认是 false
连接代理服务器是否允许 pipelining。目前普遍认为大多数代理服务器支持 pipelining 并不好,所以一般不建议打开。

pipelining 目前是一个有争议的,仍旧在实验阶段的特性。虽然它可能确实会加快浏览速度,但是这在一定程度上取决于网络的各项因素,所以不要盲目的按照网上建议的方式设置相关的参数。

The similarity of circling mode in business.

I was enlightened by the facts in IT industry. One idea came to me for many times but I forgt it for many times, too. This time, I got the chance to write it down.

The initiative was the standard of websites, W3C. Nowadays, most Personal Computer users use Microsoft Windows as their Operating System, and use IE as the main browser. What happened to other web browsers? Since Microsoft has asked the websites to adapt their websites under the standard fo IE series, the non-IE browsers, such as Firefox, Opera, etc. could not display the content on the websites properly (The non-IE web browsers are complied with W3C standard).What happened then? Regular competitors are in disadvantage because they follow international standards! Isn't it ironic? International standars are less powerful than the standard of a company? The whole thing is contributed to the large amount of users of Microsoft Windows. To the two sides, one who gets the large amount of users will be in precedence of controling the whole game. Presently, Microsoft controls the large amount of users, and such standards that produced by themselves formed an inwarded circle. Only the members inside the circle are rewarded under the regulation. If the members of the out circle form a sinmilar enclosed circle, tehy become worse and the inwarded members gain more profit throughthe enclosed circle.

This mode is similar to the situation in today's telecom industry. As is well known, China Mobile, the biggest telecom company in China, has formed an inwarded circle through pricing, and China Unicom has formed another enclosed circle. Apparently, china Unicom is in disadvantage.

What will happen consequently? Fortunately, the government has ordered the telecom corporations to follow the unified price between two different companies, therefore, the boundary has crashed, and the competition will come back to normal competition soon. In IT industry, there is only one circle-the Microsoft circle. The members outside the Microsoft circle are always opened, there, Microsoft is shortening itself through circling since the open-sourced software industry is booming not only in China but also in other places around the world.

These two industries are not the same with each other, however, the business strategic modes are the same: enclosing the territory through technique methods and squeeze competitors out. There are more cases following this mode such as IM software, QQ, MSN, GTalk.

How funny the market is!

练车第一天

今天是练车的第一天,总体效果不错。

起步、停车都会了,上路跑到40mph还行,到60mph就有点难掌握。不错,不错,第一天很少有这种效果的。

明天接着练。

Saturday, September 23, 2006

Good, I have sucessfully posted a blog via e-mail.

This is a good method. Very well.

OK, try again.

This might be the third draft, can it be posted?

Try to use blogger service

This is funny, I am searching for tips about how to use it. Although I use many blog services, they are not as good as this from the common comments. However, I have to try it by myself.