Archive for September, 2008
PMP Notes
knowledge areas organize the processes(take cooking for example):
- Integration
Making sure all the right parts of the project come together in the right order, at the right time. - Time
Preparation and cooking time - Quality
Checking that the cookies look and taste right. - Communications
Making sure you’re not mixing metric and imperial measurements. - Scope
Could you have decorated the cookies? or made more batches. - Cost
Budgeting for the cookie project. - Human Resource
Making sure your schedule is clear and your honey is going to be home on time. - Risk
Could you burn the cookies or yourself on the range? are the eggs fresh? - 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.
- develop project charter
- develop preliminary project scope
- develop project management plan
- direct and manage project execution
- monitoring and control project work
- integrated change control
- close project
Time Management
The project manager doesn’t just wait for change to happen, she/he finds the things that cause changes and influences them.
推荐PowerShell
PowerShell出来很久了,一直没有去用过,最近在写些脚本删除本人PC上的一些垃圾文件的时候,发现PowerShell果然真的很好用,有点类似*NIX下的Shell Script的味道了,有兴趣的朋友可以试试。
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中出现。
附录:
- 如果你同步不成功,请查看MySQL的日志 缺省位于:/var/log/mysqld.log
- 最好主从服务器使用同一版本的MySQL
- 这里所配置的只是Replication Server,不是MySQL Cluster,不要混为一谈
CentOS 添加删除程序配置
一直没有用过CentOS的‘添加删除程序’这个早已为Windows用户熟悉的功能。最近要装个服务器,有很多lib需要更新,就想到了用一下这个工具,却被一个路径问题折腾了半天,正确设置如下:
- 进入 /etc/yum.repos.d 把里面的配置文件备份好
- 将你的光盘或者ISO文件mount到/media下
- 把下面的配置文件保存在上面的目录下,文件名为: 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.