<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.6" -->
<rss version="0.92">
<channel>
	<title>Google Stop Blog - The future is fusion</title>
	<link>http://googlestop.com/blog</link>
	<description>Just another weblog for Charry</description>
	<lastBuildDate>Thu, 20 Nov 2008 13:19:49 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>ASP.net 发布的小问题</title>
		<description><![CDATA[Exception Details: System.Data.SqlClient.SqlException: Failed to update database &#34;C:\Inetpub\wwwroot\SSR\APP_DATA\ASPNETDB.MDF&#34; because the database is read-only.
上面的例子通常发生在publish一个新开发的web application的时候，解决方法很简单：即修改App_Data这个目录的Security属性，加入用户&#34;NETWORK SERVICE&#34;，并设置该用户可以对这个目录有Write权限。
]]></description>
		<link>http://googlestop.com/blog/2008/11/20/aspnet-%e5%8f%91%e5%b8%83%e7%9a%84%e5%b0%8f%e9%97%ae%e9%a2%98/</link>
			</item>
	<item>
		<title>C# LDAP Wrapper</title>
		<description><![CDATA[Before you try to run the following code, please download Novel LDAP lib:
http://forge.novell.com/modules/xfcontent/downloads.php/ldapcsharp/ldapcsharp/CsharpLDAP-v2.1.10/
using System;   using System.Collections.Generic;    using System.Text;    using Novell.Directory.Ldap; 
namespace LDAPUtility   {    &#160;&#160;&#160; class LDAPUtil    &#160;&#160;&#160; {    &#160;&#160;&#160;&#160;&#160;&#160;&#160; private string ldapHost = &#34;ssuzdc3&#34;;   [...]]]></description>
		<link>http://googlestop.com/blog/2008/11/15/c-ldap-wrapper/</link>
			</item>
	<item>
		<title>Interview Tips</title>
		<description><![CDATA[Below are some tips on job interviewing, hope it’ll help you a bit, if you’re seeking a new job, especially during the 2008 global financial crisis.
http://hotjobs.yahoo.com/interview
]]></description>
		<link>http://googlestop.com/blog/2008/11/02/interview-tips/</link>
			</item>
	<item>
		<title>PMP Notes</title>
		<description><![CDATA[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 [...]]]></description>
		<link>http://googlestop.com/blog/2008/09/30/pmp-notes/</link>
			</item>
	<item>
		<title>推荐PowerShell</title>
		<description><![CDATA[PowerShell出来很久了，一直没有去用过，最近在写些脚本删除本人PC上的一些垃圾文件的时候，发现PowerShell果然真的很好用，有点类似*NIX下的Shell Script的味道了，有兴趣的朋友可以试试。
http://www.microsoft.com/powershell
]]></description>
		<link>http://googlestop.com/blog/2008/09/21/%e6%8e%a8%e8%8d%90powershell/</link>
			</item>
	<item>
		<title>MySQL Replication Setup</title>
		<description><![CDATA[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&#62; GRANT REPLICATION SLAVE ON *.*
    -&#62; TO 'repl'@'%' IDENTIFIED BY 'this_is_your_password';

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

mysql&#62; FLUSH TABLES WITH READ LOCK;

这样做的目的是，让master服务器停止更新操作，可以为接下来的同步数据做一个干净的copy。
Step III
进入/var/lib/mysql 将你要同步的的数据库打包，比如这里为：por.tar和misc.tar
然后在MySQL命令行下执行：

show master status;

系统提示：

mysql&#62; show master status;
+------------------+-----------+-------------------+------------------+
&#124; File &#124; Position &#124; Binlog_Do_DB &#124; Binlog_Ignore_DB&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#124;
+------------------+-----------+-------------------+------------------+
&#124; mysql-bin.000001 &#124; 106&#124; por,misc,por,misc &#124; mysql,mysql &#124; 
+------------------+-----------+-------------------+------------------+
1 row in set (0.00 sec)

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

mysql&#62; [...]]]></description>
		<link>http://googlestop.com/blog/2008/09/12/mysql-replication-setup/</link>
			</item>
	<item>
		<title>CentOS 添加删除程序配置</title>
		<description><![CDATA[一直没有用过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，所以我就误以为上面的语句就是正确的配置了。
]]></description>
		<link>http://googlestop.com/blog/2008/09/10/centos-%e6%b7%bb%e5%8a%a0%e5%88%a0%e9%99%a4%e7%a8%8b%e5%ba%8f%e9%85%8d%e7%bd%ae/</link>
			</item>
	<item>
		<title>New features of Picasa web album &#8211; Name tags</title>
		<description><![CDATA[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 [...]]]></description>
		<link>http://googlestop.com/blog/2008/09/04/new-features-of-picasa-web-album-name-tags/</link>
			</item>
	<item>
		<title>PhotoSynth</title>
		<description><![CDATA[推荐一款有趣的软件，来自微软的PhotoSynth，它的卖点就是：把平面的若干张照片，通过一系列的分析和组合，缝制成一张可以自由浏览的3D的照片，如果照片选取的比较好的话，可以达到身临其境的效果。
&#160;
http://photosynth.net
]]></description>
		<link>http://googlestop.com/blog/2008/08/24/photosynth/</link>
			</item>
	<item>
		<title>无题</title>
		<description><![CDATA[已经习惯了各种公司的负面消息，近年来，接连不断，早已麻木，唯一要做的是：做好自己的事情，就是在支持公司。
&#160;
随手发几个链接，宣传一下。
http://www.taobao.com/adver/amdsmile/index.php AMD慈善义拍 - 为了孩子的微笑
http://amdsmile.gongyi.sina.com.cn AMD启明星行动 - 为了孩子的微笑
http://q.blog.sina.com.cn/amdsmile AMD爱心微笑圈
&#160;

]]></description>
		<link>http://googlestop.com/blog/2008/08/23/%e6%97%a0%e9%a2%98/</link>
			</item>
</channel>
</rss>
