首页/Home
 

热门文章

北京市交管局
新闻 - 最近新闻

我们已经进入21世纪10年了,上互联网也不是一天两天了。 年底了快,想查查违章,再处理一下,就拜访了一下我们的市交通管理局的网站。真是让人印象深刻。。。。。

bjjtgl

 强制我交税,交保险,车船税,年检,...,的时候可没听他们问我用的是IE6还是IE7啊。。。。

查看全文...
 
The story of "/dev/null 2>&1"
OS - Unix
What we are talking is about the difference between “>/dev/null 2>&1″ and “2>&1 >/dev/null”.
 
A.  “>/dev/null 2>&1″:
- redirects stdout(1) to the file /dev/null
- THEN redirects stderr(2) to stdout(1)
 
B.  “2>&1 >/dev/null”:
- redirects stderr(2) to stdout(1)
- THEN redirects stdout to the file /dev/null
 
查看全文...
 
NoSQL: Cassandra, MongoDB, CouchDB, Redis, Riak, HBase, Membase, Neo4j
数据库 - Essay & Review
While SQL databases are insanely useful tools, their monopoly of ~15 years is coming to an end. And it was just time: I can't even count the things that were forced into relational databases, but never really fitted them.

But the differences between "NoSQL" databases are much bigger than it ever was between one SQL database and another. This means that it is a bigger responsibility on software architects to choose the appropriate one for a project right at the beginning.

In this light, here is a comparison of Cassandra, Mongodb, CouchDB, Redis, Riak, Membase, Neo4j and HBase:

查看全文...
 
There is no pain in Heaven
新闻 - 最近新闻

Steve Jobs

 

Steve Jobs

 

Steve's family

Steve died peacefully today surrounded by his family.
In his public life, Steve was known as a visionary; in his private life, he cherished his family.

查看全文...
 
PHP 之 Undefined symbols for architecture x86_64
PHP - Basics

错误标题

Undefined symbols for architecture x86_64 

详细内容

 

Undefined symbols for architecture x86_64:
"_res_9_init", referenced from:
_zif_dns_get_mx in dns.o
_zif_dns_get_record in dns.o
_zif_dns_check_record in dns.o
"_res_9_search", referenced from:
_zif_dns_get_mx in dns.o
_zif_dns_get_record in dns.o
_zif_dns_check_record in dns.o
"_res_9_dn_skipname", referenced from:
_zif_dns_get_mx in dns.o
_zif_dns_get_record in dns.o
"_res_9_dn_expand", referenced from:
_zif_dns_get_mx in dns.o
_php_parserr in dns.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1

 

解决方案 

查看全文...
 
Mac上禁止Apache开机启动
Web服务器 - Articles

因为要装 Nginx, 所以想禁止 Apache 在开机时自动启动。

网上给的较多的方法是:

系统偏好设置 -> 共享 -> 把 Web共享 取消就行了。

但这招对我好像不太管用。又不想把它卸掉,毕竟还要用它的 ab 之类的命令。所以只能想办法不让其自动启动 httpd,不要占用我的80端口。

查看全文...
 
PHP Namespace 直接与间接使用
PHP - Advanced Programming

这个问题,不用命名空间永远也碰不到。用了的话,或许碰得头破血流也想不到。

这段代码:

$controller = '\SomeSpace\SomeClass';
$data = $controller::someMethod($invalidate);

有啥问题?而直接用:

$data = \SomeSpace\SomeClass::someMethod($invalidate);

肯定没问题。

到底出了什么问题???

查看全文...
 
Mac备忘之 Adobe Photoshop CS5 破解
备忘 - 备忘

以试用方式安装。然后执行:

A. 修改 /etc/hosts 文件:

sudo vi /etc/hosts

添加如下内容:

查看全文...
 
PHP之传址/Reference
PHP - Basics

PHP变量是传值?是传址? &到是是怎么样的?和C有什么不一样?

对象总是传址的,变量呢?函数呢 ? 。。。

这些问题早已不再是新东西了。。。但还是有人喜欢常拿它们来说事。。。

下面图示一下。

1. 关于变量引用次数

 图1

 

查看全文...
 
《财富》推荐的75本必读书
Management / 管理 - General

        在一个完美的世界里,我们每个人都该有自己的“军师”,就像《教父》里的那位律师,或是德尔斐神庙的神使,他能一天 24 小时跟随我们,在我们耳边说著妙策良言: “用纸,不要用塑料。用 Google,不要用 Infoseek。不行,你的老板不会喜欢你这种古板和僵硬表情的……”
 
  且慢,实际上,你现在就有了睿智的顾问供你驱使,它耐心地 待在那里,等著你的召唤,你甚至可以把它揣在包里。1962 年古巴导弹危机期间,肯尼迪总统从巴巴拉.塔奇曼(Barbara Tuchman)的《八月炮火》(The Guns of August)一书中寻求智慧。这本书讲述了欧洲爆发第一次世界大战的经过。肯尼迪对他的兄弟说,“我不会像书中的人那么做,否则,人们这次就可以写一本 名为《十月导弹》(The Missiles of October)的书了。”

  你不可能总是随身携带你想要的书。但是,你手边却可以有一份完美的阅读书目。正因为如此,《财富》调动一切资源,选出了 75 本书,这些书将激发你的思考,甚至是行动。

  这些书,并不是那种干巴巴的所谓经典商业读物。一方面,我们选出的有些书其实 与商业无关。巴诺书店(Barnes & Noble)可能会把迈克尔.刘易斯(Michael Lewis)的《钱与球》(Moneyball)归入体育类书籍,但该书谈到投资(和招聘)的内容,要比任何咨询师的 文章都多。另外,它也不枯燥。虽然《我在通用汽车公司的日子》(My Years at General Motors)是一部经典,但却枯燥乏味。

  不过,有些经典作品我们还是喜欢的。《股票作手回忆 录》(Reminiscences of a Stock Operator) 虽然写于 1923 年,但该书仍然能够与《门口的野蛮人》(Barbarians at the Gate)摆在一起。这两本书都不是教人具体怎么做的书─总的来说,我们没有选那些有意识教导人的书,而是选了那些寓教于乐的书。而且没有比一手的信息更 有价值的了。既然你可以读沃伦?巴菲特(Warren Buffett)自己写的书,为什么还要去读别人写他的书呢?

  当然,要读完书单上所有的书,大概需要 75 年吧。不过,我们可以给你提个建议: 不要只是因为你没有时间看完一本书,就不去读它。打开封面,看看介绍,直接跳到第九章。或者,留著这个书目,把它放到抽屉里。因为书中自有黄金屋,它们正等待你去发掘呢!

查看全文...
 
"这里是南昌" 之一
Gallery / 画廊 - Travelling
这里是南昌

 

这里是南昌

 

查看全文...
 
"这里是南昌" 之二 - 八一广场
Gallery / 画廊 - Travelling
这里是南昌

 

这里是南昌

 

查看全文...
 
«StartPrevious12345678910NextEnd»

Page 1 of 11
 
Shelley Shyan's Profile

Shelley is a Web Architect living in Beijing, China. He works on various Internet based projects and is also a freelance consultant. Site in English.

Zend Certified Engineer RSS Feed

Follow Shelley On Twitter

在线统计

当前共有 113 访客 在线