牛博T-Shirt

牛博T恤: 我爱外国

“我爱外国”图案,99元,丝网印,棉质一流,做工一般,印刷质量一般。

适宜人群:1. 汉奸。2. 相信中国是泱泱大国所以应该展现大国风范的爱国者。3. 在中国不怕上街挨打的人。

规格说明

牛博T恤的大小规格以L、XL方式标记。经过实物测量,牛博列出了不同规格适合的身高供购买时参考。

  • L 适合身高 170cm
  • XL 适合身高 175cm
  • XXL 适合身高 180cm
  • XXXL 适合身高 185cm

 

评论:

很符合老罗的风格,只是不知道有多少人会去买,我相信会有。网店地址:http://store.taobao.com/shop/view_shop-2689464f2d45ec9f4117614819d64d55.htm

PMP Notes

knowledge areas organize the processes(take cooking for example):

  1. Integration
    Making sure all the right parts of the project come together in the right order, at the right time.
  2. Time
    Preparation and cooking time
  3. Quality
    Checking that the cookies look and taste right.
  4. Communications
    Making sure you’re not mixing metric and imperial measurements.
  5. Scope
    Could you have decorated the cookies? or made more batches.
  6. Cost
    Budgeting for the cookie project.
  7. Human Resource
    Making sure your schedule is clear and your honey is going to be home on time.
  8. Risk
    Could you burn the cookies or yourself on the range? are the eggs fresh?
  9. Procurement
    Selecting the right store to supply your ingredients.

what is Integration Management

Project managers make projects run well. they plan for what’s going to happen on the project. A big part of the job is watching closely to make sure the plan is followed, and when things go wrong they make sure they’re fixed. and sometimes the plan itself turns out to be inadequate! Project managers look for those kinds of problems, and fix them too. That day-to-day work is what the Integration Management processes are all about.

  1. develop project charter
  2. develop preliminary project scope
  3. develop project management plan
  4. direct and manage project execution
  5. monitoring and control project work
  6. integrated change control
  7. close project

神奇的Youtube视频

http://www.youtube.com/experiencewii

推荐PowerShell

PowerShell出来很久了,一直没有去用过,最近在写些脚本删除本人PC上的一些垃圾文件的时候,发现PowerShell果然真的很好用,有点类似*NIX下的Shell Script的味道了,有兴趣的朋友可以试试。

http://www.microsoft.com/powershell

MySQL Replication Setup

MySQL虽然是一款免费的服务器,但其功能和性能均表现不错,下面简单的介绍一下如何设置Replication Server,即主从热备份。这样做的好处之一是可以把比较耗资源的查询操作转移到从服务器上,从而提高系统整体性能。(比如,本文的background是:有一两百台producer服务器向master的MySQL进行查询和修改操作,并同时还有若干的外部系统(consumer)需要查询这个master数据库,为了分担master的loading,所以我们引入了一个或者多个slave,让外部的系统转而查询slave,达到某种意义上的负载均衡)

本操作的环境为:

  • CentOS 5.2
  • MySQL-server-community-5.1.23-0.rhel4
  • 需要同步的数据库por和misc中有旧的数据,如果是空的库,下面的操作就简单一些了。
  • 这里待复制的两个库por和misc均使用MyISAM引擎

Step I:

首先编辑主服务器的my.cnf,下面是个例子:

[mysqld]

log-bin=mysql-bin

binlog-do-db=por

binlog-do-db=misc

binlog-ignore-db=mysql

server-id=1

Replaction是基于log文件的,所以这里必须打开MySQL的log功能,log-bin参数指明log文件的前缀,binlog-do-db参数指明你要同步的数据库名,binlog-ignore-db指明你不想同步的数据库名(在本次安装方案中,有些多余,不过我没有测试去掉它会如何)

还有一个重要的是要设置master服务器的ID,也就是serer-id。接下来,在master上创建一个用户同步的用户:

mysql> GRANT REPLICATION SLAVE ON *.*
    -> TO 'repl'@'%' IDENTIFIED BY 'this_is_your_password';

Step II

重启MySQL服务器,这样就会生成log文件,通常在/var/lib/mysql下,然后用root登录,执行如下命令

mysql> FLUSH TABLES WITH READ LOCK;

这样做的目的是,让master服务器停止更新操作,可以为接下来的同步数据做一个干净的copy。

Step III

进入/var/lib/mysql 将你要同步的的数据库打包,比如这里为:por.tar和misc.tar

然后在MySQL命令行下执行:

show master status;

系统提示:

mysql> show master status;

+------------------+-----------+-------------------+------------------+

| File | Position | Binlog_Do_DB | Binlog_Ignore_DB        |

+------------------+-----------+-------------------+------------------+

| mysql-bin.000001 | 106| por,misc,por,misc | mysql,mysql |

+------------------+-----------+-------------------+------------------+

1 row in set (0.00 sec)

这时候你就可以解除锁定了:

mysql> UNLOCK TABLES;

Step IV:

下面开始设置slave server

编辑slave 的my.cnf如下:

[mysqld]

server-id=2

master-host=165.204.233.38

master-user=repl

master-password=this_is_your_password

master-port=3306

master-connect-retry=60

Step V:

重启Slave,用root登录,执行如下命令:

>stop slave;

> change master to

-> master_host='165.204.233.38',

-> master_user='repl',

-> master_password='this_is_your_password',

-> master_log_file='mysql-bin.000001', // 注意这里的文件名就是上面提到的 show master status中显示的文件名

-> master_log_pos=106;                       // 注意这里的便宜值就是上面提到的 show master status中显示的偏移值

> slave start;

完毕。

 

测试一下吧,在master里面建一个新的table,看看是否在slave中出现。

附录:

  1. 如果你同步不成功,请查看MySQL的日志 缺省位于:/var/log/mysqld.log
  2. 最好主从服务器使用同一版本的MySQL
  3. 这里所配置的只是Replication Server,不是MySQL Cluster,不要混为一谈

CentOS 添加删除程序配置

一直没有用过CentOS的‘添加删除程序’这个早已为Windows用户熟悉的功能。最近要装个服务器,有很多lib需要更新,就想到了用一下这个工具,却被一个路径问题折腾了半天,正确设置如下:

  1. 进入 /etc/yum.repos.d 把里面的配置文件备份好
  2. 将你的光盘或者ISO文件mount到/media下
  3. 把下面的配置文件保存在上面的目录下,文件名为: CentOS5-Media.repo

    [c5-media]

    name=CentOS-5 - Media

    baseurl=file:///media/,file:///media/CentOS/,file:///media/cdrom/,file:///media/cdrecorder/

    gpgcheck=1

    enabled=1

    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

然后重启yum服务即可,方法为:service yum-updatesd restart,搞定。

之所以折腾半天,是因为我指错了baseurl 如下:

baseurl=file:///media/CentOS/,file:///media/cdrom/,file:///media/cdrecorder/

比起正确的配置,少了file:///media ,光盘里面有个目录就是CentOS,所以我就误以为上面的语句就是正确的配置了。

New features of Picasa web album – Name tags

How it works
Instead of tagging your photos individually, you can quickly identify and label many photos with one click.

1. Name tags helps you automatically find similar faces in your photo collection. All you have to do is enter a name or choose from your contacts.

2. Once you've named the people in your photos, you can do things like sort your photo collection by person, create custom slideshows, and easily share photos with the people in your albums.

 

image

PhotoSynth

推荐一款有趣的软件,来自微软的PhotoSynth,它的卖点就是:把平面的若干张照片,通过一系列的分析和组合,缝制成一张可以自由浏览的3D的照片,如果照片选取的比较好的话,可以达到身临其境的效果。

 

http://photosynth.net

无题

已经习惯了各种公司的负面消息,近年来,接连不断,早已麻木,唯一要做的是:做好自己的事情,就是在支持公司。

 

随手发几个链接,宣传一下。

http://www.taobao.com/adver/amdsmile/index.php AMD慈善义拍 - 为了孩子的微笑

http://amdsmile.gongyi.sina.com.cn AMD启明星行动 - 为了孩子的微笑

http://q.blog.sina.com.cn/amdsmile AMD爱心微笑圈

 

奧林匹克運動會之文言解释

转自《维基大典》

奧林匹克運動會,本古希臘人以娛神也。今則以天下萬國,競技之會。四年一會,遵其古意也。以五環為章,環以五色,象五洲五色人種。五環相扣,示以共合也。今有三種,曰正會、曰殘會、曰少會,各分冬夏。

沿革:

始古希臘。厄利多斯內亂,其王詰曰:「何以止亂?」對曰:「會以競逐,娛神免禍。」乃集希臘男子於奧林匹斯山下競跑,且立約賽期止戰。三九三年,羅馬皇帝狄奧多斯一世奉基督教,以奧運會有違教義,詔止之。

近世,希臘王國立,其王頗思復國俗,嘗制泛希臘運動會。一遵古風,非國人不得與,故不弘。一八九二年,法蘭西人顧拜旦倡復奧運會,天下皆與。定四年一會,歷時不過十六日。一八九六年,十三四國三百人,初會於希臘都雅典。公元千九百年,始有女子。一九一二年,禁以競技為業者與。翌年,始用「更快、更高、更強」為格言。

一九一六年,第一次世界大戰間,以戰故未會。一九二零年戰事平,以燃炬悼戰死者,自後逢會必舉炬。一九二八年,始於奧林匹斯山採火,傳行天下至會處,而後燃炬。

會處本以國際奧林匹克委員會諸國間選。一九六四年會,耗用鉅大,自後多國不輕為會處。一九八四年,初以商辦,獲鉅利。後因之,而頗失公正競技之意。

奧運會本會於夏,向無雪地競技,蓋希臘自古不冰也。一九二四年,別立冬會,會於雪國。本與夏會同年,後改於夏會兩年後。

一九六〇年,始殘會。

二〇〇七年,議定自二〇一〇年始少會。蓋奧運會無論冬夏,祇得成人也。

會中三甲,可得金、銀、銅牌,以示勝者。不別獎勵,以免有以競技獲利者也。實三甲歸國,皆別有賜,一朝顯名者有之。

Page 1 of 1012345»...Last »