Loading...

这个网站真有趣dotherightthing.com

归类于: 生活工作|Life Work — 江东 @ 2007-01-27 20:55:27 还没有评论

right.JPG随便在网上逛逛,发现这个网还真有趣,先别说其它的,光是这个域名都很有趣,做正确的事?做合适的事?打开看看,这个网站到底是做什么的?

Dotherightthing is the place where you can learn and share information about how companies impact the world.

Dotherightthing是一个你可以从这里看到公司如何在影响世界的网站

All are welcome – people who buy the stuff, who make the stuff, who live in communities where the stuff is made, and who have transcendent abilities to speak on behalf of that which cannot speak (like wildlife and the environment).

On dotherightthing, you can:

* Share information that you discover about companies’ impacts on people and the world
* Learn about the activities of companies directly from people and rate the i

(read on …)

工作迷茫,人生迷茫

归类于: 生活工作|Life Work — 江东 @ 2007-01-27 19:51:12 还没有评论

HK_ITU_International

有的时候感觉真的好迷茫,这个公司,感觉把人都荒废了,一天都没有做多少有意义的事情。说来是个产品经理,其实还是那样,有的时候想,工作怎么会这样呢?难道我就在这个公司养老了。工作时间越来越长,人是越来越懒了,很久没有学习了,很久没有看书了,也很久没有去运动了。突然感觉

过得真TMD颓废。

老婆最近打算出来独立了(还是个未知数),我是全心全力的支持她,毕竟摆在她前面的是一条艰辛的路,不是那么容易走的。电子行业真的是见地了,整个行业太透明了,利润越来越少,我是不是应该转行。暂且作罢,现在开始要培养认真做事的习惯了。即使今后转行,也是会很有用的,认真地工作习惯只会对自己好。

打算买基金,结果23号信用定期的扣钱了我几千,上个月的工资所剩无几。

随便写写,自己先坚持工作一两年,保证家里的开支吧,我要努力工作,努力进步,创造美好的明天,哈哈哈哈!

关于写代码的一些小诀窍

归类于: PHP, Web技术|WEB Tech — 江东 @ 2007-01-27 17:47:42 还没有评论
  • if( myvar == ” the string you want ” )
    最好写成
    if( ” the string you want ” == myvar )
    为什么,如果你不小心写成 if( myvar = ” the string you want ” );那糟糕,程序就是不报错,你就是检查不出来错误在哪里。
    但是你要是不小心写成 if( ” the string you want ” = myvar );程序马上报错。
    这个是我以前从哪里看到的,忘记了,今天写wordpress插件的时候突然又想起来了。

完善中……

本站cache自动清除插件完成

归类于: PHP, Web技术|WEB Tech, Wordpress — 江东 @ 2007-01-27 16:32:09 还没有评论

前段时间用写了一个ThemeCache,利用 PEAR的Cache_Lite将本站所有页面进行 缓存 。

本周再次发力,写了ajax留言程序,因此,即使页面处于cache状态也能更新留言数据。再接再厉,在后台写了一个清除cache的插件,激活该插件后,后台如果有人修改、发布或者删除文章之后,相关缓存会自动更新。因此本站缓存的时间现在已经设置成无限长,基本实现最大静态化。

补充: 突然想到,首页的最新评论可根发表以及删除文章无关,只有有最新的评论显示出来就得要更新,怎么处理呢。还是出绝招:index自身 ajax自身 index。

< ?php if( "4ajax" == $_GET['action']) : //为了显示首页的最新评论不得不出此下策?>
< ?php u_get_recent_comments(12); ?>
< ?php die(); endif;?>

< ?php require_once (TEMPLATEPATH . "/ThemeCache/cache_start.php");?>
< ?php get_header(); ?>
< ?php include (TEMPLATEPATH . "/config.php");//COS_INDEX_BANNER_ID?>


现在终于趋于完美。嘿嘿。

换位思考:如果人们现在才发明书本?

归类于: 英语|English — 江东 @ 2007-01-27 15:38:16 只有1条评论

Why do some technologies perpetually getting touted as the “next big thing” fail to ever make a dent in the marketplace? Perhaps part of the answer is that often they’re not nearly as disruptive as their advocates make them out to be. To help think about this question, Vinnie Marchandani points to an interesting mental exercise proposed by Harvard Business School professor Andrew McAfee which he calls the “flip test”:

为什么一些技术被大力的渲染成”划时代”的东西,却没有能在市场取得一点效果呢?也许其中的原因之一是因为他们的思想被他们想要极力推荐的热情给掩盖了。为了更好的说明这个问题,哈佛商学院Andrew教授建议他的学生Vinnie Marchandani提出了一个有趣心理测试,这个测试被称为”翻转测试”。

Let’s say the world has only e-books, then someone introduces this technology called ‘paper.’ It’s cheap, portable, lasts essentially forever, and requires no batteries. You can’t write over it once it’s been written on, but you buy more very cheaply. Wouldn’t that technology come to dominate the market?

假设这个世界仅仅只有电子书籍,某一天,有个人发明了纸张这样一个技术,这个东西很轻便、携带方便、能使用很久,并且不需要供电。一旦写了东西之后就不能再次写入了,但是如果你买得很多的话也非常便宜。这样的一项技术将会主导市场么?

Thinking about it that way, it’s really not that surprising that e-books have yet to take off, despite all of the hype surrounding them. If you didn’t know which one came first, paper might look revolutionary and disruptive. Similar tests could probably be constructed for other next big things, like videophones or even alternative fuels (”Imagine a world where we recharge our cars and only get 6 hours of drive time, and then someone invents petroleum-based gasoline…”). This kind of test isn’t meant to answer these questions, or end all discussions, but it’s worthy to think about when evaluating the prospects of a new technology.

用这种方式来思考,不难理解为什么电子书籍尚未成熟,尽管周围的人们都在大肆宣扬它。如果你不知道谁将会主导市场,纸张也许是看起来更加有革命性和突破性的。同样的测试也可以用在其它的技术身上,比如视频电话甚至是可替代能源,(想象一下我们给我们的汽车充一次电,接下来可以开动6小时,突然有那么一天,有人发明了汽油……)。这种测试不表示可以用来回答类似的问题或者结束类似的讨论,但是当我们在评估新技术的前景的时候可以用类似的方法来参考。

现在开始用office2007发布blog(wp还是很强悍的啊)

归类于: Wordpress — 江东 @ 2007-01-27 12:35:07 还没有评论

在网上看到用人写如何用office2007发布blog,我也尝试的发布了一篇,看来一切都很正常,那么今后就可以用word发布我的blog了。这样的好处有以下几点:

  1. 可以不用打开浏览器,慢慢去登陆;
  2. 排版操作容易,除非你想修改你打算发布的html源文件,其实很少这样做的;
  3. 插入图片相当方便,和平时用word一样,不需先上传,然后再发送到,等繁琐的步骤;
  4. 在公司也可以光明正大的发布你的blog,因为老大还以为你在做文档(嘿嘿);
  5. 好处多多,自己去想吧,反正我是为了这个功能而安装了office2007反正国内情况是,什么软件都可以廉价的装上。

通过这次使用2007发布blog,我还发现wordpress其实是很流行的,要不怎么微软就支持它呢?看看下面的blog提供商选择。Wordpress都列在里面了。还是很不错的。

哎哟,今天好冷,去天河城看看有没有什么好玩的!

今天用office2007写一下blog

归类于: Wordpress — 江东 @ 2007-01-27 12:06:35 还没有评论

看行不行?顺便也传张图片上来,看能否支持图片。

基于ajax的comments终于完成

归类于: PHP, Web技术|WEB Tech, Wordpress — 江东 @ 2007-01-27 10:08:05 才(24)条评论

由于本站采用了缓存,所以访客的留言都无法及时更新,感觉这样很不太友好,那么解决的办法有两个:1.去掉 缓存。2.采用 ajax异步刷新留言。为了保证缓存的优势,我采用了第二种 方案。

好了,决定了方案,便开始在网上搜索ajax评论插件,搜索到了几个,可能是由于我个人的原因吧 ,总是安装失败。不得以,只好自己动手了。

基于ajax评论实现的难点有3个: (read on …)