<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_计算机是机器，重复性的工作交给它好了——我们要做更重要的创造性工作！</title><subtitle type="text"/><id>http://feed.cnblogs.com/blog/u/20515/rss</id><updated>2012-01-06T02:19:18Z</updated><author><name>凌度</name><uri>http://www.cnblogs.com/linn/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/linn/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/20515/rss"/><entry><id>http://www.cnblogs.com/linn/archive/2012/01/06/2314009.html</id><title type="text">[ms sql server]计算今天是第几周</title><summary type="text">set datefirst 1select 本年第几周=datename(week,&amp;#39;2012-01-01&amp;#39;) ,今天是周几=datename(weekday,&amp;#39;2012-01-01&amp;#39;)select 本年第几周=datename(week,getdate()) ,今天是周几=datename(weekday,getdate())值一周的第一天是1星期一2星期二3星期三4星期四5星期五6星期六7（默认值，美国英语）星期日</summary><published>2012-01-06T02:19:00Z</published><updated>2012-01-06T02:19:00Z</updated><author><name>凌度</name><uri>http://www.cnblogs.com/linn/</uri></author><link rel="alternate" href="http://www.cnblogs.com/linn/archive/2012/01/06/2314009.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/linn/archive/2012/01/06/2314009.html"/><content type="html">&lt;div&gt;&lt;div&gt;set datefirst 1&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;select 本年第几周=datename(week,'2012-01-01')&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;,今天是周几=datename(weekday,'2012-01-01')&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;select 本年第几周=datename(week,getdate())&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;,今天是周几=datename(weekday,getdate())&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;table style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #bbbbbb; border-right-color: #bbbbbb; border-bottom-color: #bbbbbb; border-left-color: #bbbbbb; border-collapse: collapse; width: 1436px; color: #000000; font-family: 'Segoe UI', Verdana, Arial; font-size: 14px; text-align: left; "&gt;&lt;tbody&gt;&lt;tr style="vertical-align: top; "&gt;&lt;th style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: #bbbbbb; border-right-color: #bbbbbb; border-bottom-color: #bbbbbb; border-left-color: #bbbbbb; background-color: #e5e5e5; padding-right: 4px; padding-left: 4px; padding-bottom: 4px; padding-top: 4px; height: 21px; font-size: 1.077em; "&gt;&lt;p&gt;值&lt;/p&gt;&lt;/th&gt;&lt;th style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: #bbbbbb; border-right-color: #bbbbbb; border-bottom-color: #bbbbbb; border-left-color: #bbbbbb; background-color: #e5e5e5; padding-right: 4px; padding-left: 4px; padding-bottom: 4px; padding-top: 4px; height: 21px; font-size: 1.077em; "&gt;&lt;p&gt;一周的第一天是&lt;/p&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #bbbbbb; border-right-color: #bbbbbb; border-bottom-color: #bbbbbb; border-left-color: #bbbbbb; background-color: #ffffff; line-height: 19px; padding-right: 4px; padding-left: 4px; padding-bottom: 9px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; margin-left: 1px; padding-top: 9px; "&gt;&lt;p style="margin-top: 0px; margin-bottom: 0px; position: relative; "&gt;&lt;strong&gt;1&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #bbbbbb; border-right-color: #bbbbbb; border-bottom-color: #bbbbbb; border-left-color: #bbbbbb; background-color: #ffffff; line-height: 19px; padding-right: 4px; padding-left: 4px; padding-bottom: 9px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; margin-left: 1px; padding-top: 9px; "&gt;&lt;p style="margin-top: 0px; margin-bottom: 0px; position: relative; "&gt;星期一&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #bbbbbb; border-right-color: #bbbbbb; border-bottom-color: #bbbbbb; border-left-color: #bbbbbb; background-color: #ffffff; line-height: 19px; padding-right: 4px; padding-left: 4px; padding-bottom: 9px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; margin-left: 1px; padding-top: 9px; "&gt;&lt;p style="margin-top: 0px; margin-bottom: 0px; position: relative; "&gt;&lt;strong&gt;2&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #bbbbbb; border-right-color: #bbbbbb; border-bottom-color: #bbbbbb; border-left-color: #bbbbbb; background-color: #ffffff; line-height: 19px; padding-right: 4px; padding-left: 4px; padding-bottom: 9px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; margin-left: 1px; padding-top: 9px; "&gt;&lt;p style="margin-top: 0px; margin-bottom: 0px; position: relative; "&gt;星期二&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #bbbbbb; border-right-color: #bbbbbb; border-bottom-color: #bbbbbb; border-left-color: #bbbbbb; background-color: #ffffff; line-height: 19px; padding-right: 4px; padding-left: 4px; padding-bottom: 9px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; margin-left: 1px; padding-top: 9px; "&gt;&lt;p style="margin-top: 0px; margin-bottom: 0px; position: relative; "&gt;&lt;strong&gt;3&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #bbbbbb; border-right-color: #bbbbbb; border-bottom-color: #bbbbbb; border-left-color: #bbbbbb; background-color: #ffffff; line-height: 19px; padding-right: 4px; padding-left: 4px; padding-bottom: 9px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; margin-left: 1px; padding-top: 9px; "&gt;&lt;p style="margin-top: 0px; margin-bottom: 0px; position: relative; "&gt;星期三&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #bbbbbb; border-right-color: #bbbbbb; border-bottom-color: #bbbbbb; border-left-color: #bbbbbb; background-color: #ffffff; line-height: 19px; padding-right: 4px; padding-left: 4px; padding-bottom: 9px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; margin-left: 1px; padding-top: 9px; "&gt;&lt;p style="margin-top: 0px; margin-bottom: 0px; position: relative; "&gt;&lt;strong&gt;4&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #bbbbbb; border-right-color: #bbbbbb; border-bottom-color: #bbbbbb; border-left-color: #bbbbbb; background-color: #ffffff; line-height: 19px; padding-right: 4px; padding-left: 4px; padding-bottom: 9px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; margin-left: 1px; padding-top: 9px; "&gt;&lt;p style="margin-top: 0px; margin-bottom: 0px; position: relative; "&gt;星期四&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #bbbbbb; border-right-color: #bbbbbb; border-bottom-color: #bbbbbb; border-left-color: #bbbbbb; background-color: #ffffff; line-height: 19px; padding-right: 4px; padding-left: 4px; padding-bottom: 9px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; margin-left: 1px; padding-top: 9px; "&gt;&lt;p style="margin-top: 0px; margin-bottom: 0px; position: relative; "&gt;&lt;strong&gt;5&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #bbbbbb; border-right-color: #bbbbbb; border-bottom-color: #bbbbbb; border-left-color: #bbbbbb; background-color: #ffffff; line-height: 19px; padding-right: 4px; padding-left: 4px; padding-bottom: 9px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; margin-left: 1px; padding-top: 9px; "&gt;&lt;p style="margin-top: 0px; margin-bottom: 0px; position: relative; "&gt;星期五&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #bbbbbb; border-right-color: #bbbbbb; border-bottom-color: #bbbbbb; border-left-color: #bbbbbb; background-color: #ffffff; line-height: 19px; padding-right: 4px; padding-left: 4px; padding-bottom: 9px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; margin-left: 1px; padding-top: 9px; "&gt;&lt;p style="margin-top: 0px; margin-bottom: 0px; position: relative; "&gt;&lt;strong&gt;6&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #bbbbbb; border-right-color: #bbbbbb; border-bottom-color: #bbbbbb; border-left-color: #bbbbbb; background-color: #ffffff; line-height: 19px; padding-right: 4px; padding-left: 4px; padding-bottom: 9px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; margin-left: 1px; padding-top: 9px; "&gt;&lt;p style="margin-top: 0px; margin-bottom: 0px; position: relative; "&gt;星期六&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #bbbbbb; border-right-color: #bbbbbb; border-bottom-color: #bbbbbb; border-left-color: #bbbbbb; background-color: #ffffff; line-height: 19px; padding-right: 4px; padding-left: 4px; padding-bottom: 9px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; margin-left: 1px; padding-top: 9px; "&gt;&lt;p style="margin-top: 0px; margin-bottom: 0px; position: relative; "&gt;&lt;strong&gt;7&lt;/strong&gt;（默认值，美国英语）&lt;/p&gt;&lt;/td&gt;&lt;td style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #bbbbbb; border-right-color: #bbbbbb; border-bottom-color: #bbbbbb; border-left-color: #bbbbbb; background-color: #ffffff; line-height: 19px; padding-right: 4px; padding-left: 4px; padding-bottom: 9px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; margin-left: 1px; padding-top: 9px; "&gt;&lt;p style="margin-top: 0px; margin-bottom: 0px; position: relative; "&gt;星期日&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;img src="http://www.cnblogs.com/linn/aggbug/2314009.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/linn/archive/2012/01/06/2314009.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/linn/archive/2011/12/01/2270122.html</id><title type="text">svn linux客户端安装</title><summary type="text">两个文件上传到同一个目录下subversion-1.6.11.tar.gzsubversion-deps-1.6.11.tar.gztar -zxvf subversion-1.6.11.tar.gztar -zxvf subversion-deps-1.6.11.tar.gzcd subversion-1.6.11./configuremakemake checkmake installreboot～svn checkout path --username unamesvn: Cannot negotiate authentication mechanism报错解决安装下面程序yum ins</summary><published>2011-12-01T02:28:00Z</published><updated>2011-12-01T02:28:00Z</updated><author><name>凌度</name><uri>http://www.cnblogs.com/linn/</uri></author><link rel="alternate" href="http://www.cnblogs.com/linn/archive/2011/12/01/2270122.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/linn/archive/2011/12/01/2270122.html"/><content type="html">&lt;div&gt;&lt;div&gt;两个文件上传到同一个目录下&lt;/div&gt;&lt;div&gt;subversion-1.6.11.tar.gz&lt;/div&gt;&lt;div&gt;subversion-deps-1.6.11.tar.gz&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;tar -zxvf subversion-1.6.11.tar.gz&lt;/div&gt;&lt;div&gt;tar -zxvf subversion-deps-1.6.11.tar.gz&lt;/div&gt;&lt;div&gt;cd subversion-1.6.11&lt;/div&gt;&lt;div&gt;./configure&lt;/div&gt;&lt;div&gt;make&lt;/div&gt;&lt;div&gt;make check&lt;/div&gt;&lt;div&gt;make install&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;reboot～&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;svn checkout path --username uname&lt;/div&gt;&lt;div&gt;svn: Cannot negotiate authentication mechanism&lt;/div&gt;&lt;div&gt;报错解决安装下面程序&lt;/div&gt;&lt;div&gt;yum install cyrus-sasl-md5&lt;/div&gt;&lt;/div&gt;&lt;img src="http://www.cnblogs.com/linn/aggbug/2270122.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/linn/archive/2011/12/01/2270122.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/linn/archive/2011/11/11/2245348.html</id><title type="text">[sql]匹配标题中出现最多关键字的结果</title><summary type="text">SELECT RequirementId,Title,ProjectId,Keywords, 0 as keywordcountINTO #t1FROM(select *from dbo.Requirementwhere Keywords is not null and Keywords &amp;lt;&amp;gt; &amp;#39;&amp;#39; and ProjectId=11and (Keywords like &amp;#39;%关键字1%&amp;#39; or Keywords like &amp;#39;%关键字2%&amp;#39; or Keywords like &amp;#39;%关键字3%&amp;#39;)) AS TEMPTABLEs</summary><published>2011-11-11T02:07:00Z</published><updated>2011-11-11T02:07:00Z</updated><author><name>凌度</name><uri>http://www.cnblogs.com/linn/</uri></author><link rel="alternate" href="http://www.cnblogs.com/linn/archive/2011/11/11/2245348.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/linn/archive/2011/11/11/2245348.html"/><content type="html">&lt;div&gt;&lt;div&gt;SELECT RequirementId,Title,ProjectId,Keywords, 0 as keywordcount&lt;/div&gt;&lt;div&gt;INTO #t1&lt;/div&gt;&lt;div&gt;FROM&lt;/div&gt;&lt;div&gt;(&lt;/div&gt;&lt;div&gt;select *&lt;/div&gt;&lt;div&gt;from dbo.Requirement&lt;/div&gt;&lt;div&gt;where Keywords is not null and Keywords &amp;lt;&amp;gt; '' &amp;nbsp;and ProjectId=11&lt;/div&gt;&lt;div&gt;and (Keywords like '%关键字1%' or &amp;nbsp;Keywords like '%关键字2%' or Keywords like '%关键字3%')&lt;/div&gt;&lt;div&gt;) AS TEMPTABLE&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;select * from #t1 order by keywordcount desc, RequirementID desc&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;update #t1&lt;/div&gt;&lt;div&gt;set keywordcount = keywordcount +1&lt;/div&gt;&lt;div&gt;where Keywords like '%关键字1%'&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;update #t1&lt;/div&gt;&lt;div&gt;set keywordcount = keywordcount +1&lt;/div&gt;&lt;div&gt;where Keywords like '%关键字2%'&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;update #t1&lt;/div&gt;&lt;div&gt;set keywordcount = keywordcount +1&lt;/div&gt;&lt;div&gt;where Keywords like '%关键字3%'&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;select * from #t1 order by keywordcount desc, RequirementID desc&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;drop table #t1&lt;/div&gt;&lt;/div&gt;&lt;img src="http://www.cnblogs.com/linn/aggbug/2245348.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/linn/archive/2011/11/11/2245348.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/linn/archive/2011/11/03/2234707.html</id><title type="text">CVS和SVN开发模式的异同</title><summary type="text">做版本方案一：每日定时daily build，build期间锁库，做完BVT后打标签，这样就按照两个标签之间的差异获取文件做包。这种方案适合于产品化定期发布的任务。这个方案比较简单，提交期间是锁库方式（有授权才能提交）或者不锁库方式看组织的情况了。个人认为，这种方式还是锁库给有任务的人开提交权限比较好。方案二：按用户录入的文件来做版本，这个方案是就SVN就一定要求锁库，对提交的文件授权才能提交。CVS不锁库问题也不大。cvs可以使用cvs update -r命令按特定版本号更新文件；因此可以随意回滚某个文件的版本，或者取同一分支的不同版本号文件，发布到不同的更新包；最常见的场景是某文件1.2版</summary><published>2011-11-03T08:38:00Z</published><updated>2011-11-03T08:38:00Z</updated><author><name>凌度</name><uri>http://www.cnblogs.com/linn/</uri></author><link rel="alternate" href="http://www.cnblogs.com/linn/archive/2011/11/03/2234707.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/linn/archive/2011/11/03/2234707.html"/><content type="html">&lt;div&gt;&lt;div&gt;做版本&lt;/div&gt;&lt;div&gt;方案一：每日定时daily build，build期间锁库，做完BVT后打标签，这样就按照两个标签之间的差异获取文件做包。这种方案适合于产品化定期发布的任务。这个方案比较简单，提交期间是锁库方式（有授权才能提交）或者不锁库方式看组织的情况了。个人认为，这种方式还是锁库给有任务的人开提交权限比较好。&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;方案二：按用户录入的文件来做版本，这个方案是就SVN就一定要求锁库，对提交的文件授权才能提交。CVS不锁库问题也不大。&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;cvs可以使用cvs update -r命令按特定版本号更新文件；因此可以随意回滚某个文件的版本，或者取同一分支的不同版本号文件，发布到不同的更新包；最常见的场景是某文件1.2版本活动=open，1.3版本活动=close，可以同时做活动开启包和活动关闭包。&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;SVN虽然也支持这样按版本号更新，但是这样会导致SVN本地库版本号的混乱。因此默认获取最新，这样只能发布完一个包再做下一个包。&lt;/div&gt;&lt;/div&gt;&lt;img src="http://www.cnblogs.com/linn/aggbug/2234707.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/linn/archive/2011/11/03/2234707.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/linn/archive/2011/11/01/2232129.html</id><title type="text">Mysql root密码丢失</title><summary type="text">killall -9 mysqld或者 /etc/inint.d/mysqld stopusr/local/mysql/bin/mysqld_safe --skip-grant-table&amp;amp;/usr/local/mysql/bin/mysql -u rootuse mysqlUPDATE user SET password=password(&amp;#39;ABC&amp;#39;) WHERE user=&amp;#39;root&amp;#39;;FLUSH PRIVILEGES;service mysqld restart如果还有其它用户能登录，可以执行use mysqlUPDATE user SET pas</summary><published>2011-11-01T11:26:00Z</published><updated>2011-11-01T11:26:00Z</updated><author><name>凌度</name><uri>http://www.cnblogs.com/linn/</uri></author><link rel="alternate" href="http://www.cnblogs.com/linn/archive/2011/11/01/2232129.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/linn/archive/2011/11/01/2232129.html"/><content type="html">&lt;div&gt;&lt;div&gt;killall -9 mysqld&amp;nbsp;&lt;/div&gt;&lt;div&gt;或者 /etc/inint.d/mysqld stop&amp;nbsp;&lt;/div&gt;&lt;div&gt;usr/local/mysql/bin/mysqld_safe --skip-grant-table&amp;amp;&lt;/div&gt;&lt;div&gt;/usr/local/mysql/bin/mysql -u root&lt;/div&gt;&lt;div&gt;use mysql&lt;/div&gt;&lt;div&gt;UPDATE user SET password=password('ABC') WHERE user='root';&amp;nbsp;&lt;/div&gt;&lt;div&gt;FLUSH PRIVILEGES;&amp;nbsp;&lt;/div&gt;&lt;div&gt;service mysqld restart&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;如果还有其它用户能登录，可以执行&amp;nbsp;&lt;/p&gt;&lt;div&gt;&lt;div&gt;use mysql&lt;/div&gt;&lt;/div&gt;&lt;p&gt;UPDATE user SET password=password('ABC') WHERE user='root';&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;然后重启mysql即可&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;img src="http://www.cnblogs.com/linn/aggbug/2232129.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/linn/archive/2011/11/01/2232129.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/linn/archive/2011/11/01/2231413.html</id><title type="text">svn库改名</title><summary type="text">在/home/svn下，1\停掉SVN:killall -9 svnserve2\修改conf/svnserve.conf 里面realm = ****3\外层目录直接用mv命令改名即可</summary><published>2011-11-01T06:38:00Z</published><updated>2011-11-01T06:38:00Z</updated><author><name>凌度</name><uri>http://www.cnblogs.com/linn/</uri></author><link rel="alternate" href="http://www.cnblogs.com/linn/archive/2011/11/01/2231413.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/linn/archive/2011/11/01/2231413.html"/><content type="html">&lt;p&gt;在/home/svn下，&lt;/p&gt;&lt;p&gt;1\停掉SVN:killall -9 svnserve&lt;/p&gt;&lt;p&gt;2\修改conf/svnserve.conf 里面realm = ****&lt;/p&gt;&lt;p&gt;3\外层目录直接用mv命令改名即可&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/linn/aggbug/2231413.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/linn/archive/2011/11/01/2231413.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/linn/archive/2011/11/01/2231096.html</id><title type="text">subversion 1.7.1安装记录</title><summary type="text">http://subversion.apache.org/download/#recommended-release</summary><published>2011-11-01T02:10:00Z</published><updated>2011-11-01T02:10:00Z</updated><author><name>凌度</name><uri>http://www.cnblogs.com/linn/</uri></author><link rel="alternate" href="http://www.cnblogs.com/linn/archive/2011/11/01/2231096.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/linn/archive/2011/11/01/2231096.html"/><content type="html">&lt;div&gt;&lt;a href="http://subversion.apache.org/download/#recommended-release"&gt;http://subversion.apache.org/download/#recommended-release&lt;/a&gt;&lt;/div&gt;&lt;img src="http://www.cnblogs.com/linn/aggbug/2231096.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/linn/archive/2011/11/01/2231096.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/linn/archive/2011/09/11/2173677.html</id><title type="text">企业变革</title><summary type="text">1 、推销自己的想法员工是参与变革的主体，要让员工参与到变革中来，让他了解CEO的想法，了解这一变革对他意味着什么：工作难度会增加吗？待遇会提高吗？需要学习新的知识吗？我会给淘汰吗？要让所有人了解你的想法和意图，和中间可能遇到的困难和挫折。除了才华横溢者以及怀才不遇者之外，多数人不喜欢变革，这是人性喜欢熟悉的环境的习惯性力量。所以，对于各种激励措施，千万不可吝啬；而对于有意阻碍变革的人，需要通过必要的人事安排予以解决。2、培养组织的能力培养企业在新条件下所需要的组织能力。建立能衔接每个部门的信息系统，建立能反映企业运行状况的数据分析和决策支持系统。另外，能力还包含各种资源比如资金、团队、时间、</summary><published>2011-09-11T07:36:00Z</published><updated>2011-09-11T07:36:00Z</updated><author><name>凌度</name><uri>http://www.cnblogs.com/linn/</uri></author><link rel="alternate" href="http://www.cnblogs.com/linn/archive/2011/09/11/2173677.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/linn/archive/2011/09/11/2173677.html"/><content type="html">&lt;p&gt;1 、推销自己的想法&lt;/p&gt;&lt;p&gt;员工是参与变革的主体，要让员工参与到变革中来，让他了解CEO的想法，了解这一变革对他意味着什么：工作难度会增加吗？待遇会提高吗？需要学习新的知识吗？我会给淘汰吗？要让所有人了解你的想法和意图，和中间可能遇到的困难和挫折。&lt;/p&gt;&lt;p&gt;除了才华横溢者以及怀才不遇者之外，多数人不喜欢变革，这是人性喜欢熟悉的环境的习惯性力量。所以，对于各种激励措施，千万不可吝啬；而对于有意阻碍变革的人，需要通过必要的人事安排予以解决。&amp;nbsp;&lt;/p&gt;&lt;p&gt;2、培养组织的能力&lt;/p&gt;&lt;p&gt;培养企业在新条件下所需要的组织能力。&lt;/p&gt;&lt;p&gt;建立能衔接每个部门的信息系统，建立能反映企业运行状况的数据分析和决策支持系统。&lt;/p&gt;&lt;p&gt;另外，能力还包含各种资源比如资金、团队、时间、工具和方法。&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/linn/aggbug/2173677.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/linn/archive/2011/09/11/2173677.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/linn/archive/2011/09/09/2172557.html</id><title type="text">svn 锁的处理</title><summary type="text">svn 锁的处理：问题：　1：当用户在work copy1 中把某个文件或者文件夹锁住后，删除了这个工作区，重新取下来work copy2，再操作该文件的时候就报错说，该文件已经被锁住，必须先解锁，但是之前的工作区已经被删除，无法解锁；2：当某用户 锁了一个文件或文件夹后，离职了，机器上交了，后来别人再操作该文件或者文件夹，也会报先解锁，但是也找不到解锁的那个工作区了。处理办法：1、选中该文件或者文件夹，右键点击 svn get lock，在弹出的对话框里，把&amp;quot;steal the locks&amp;quot;这个钩上，意思是把锁偷过来，偷完之后，再解锁，文件就正常了。2、#cd/home/</summary><published>2011-09-09T07:08:00Z</published><updated>2011-09-09T07:08:00Z</updated><author><name>凌度</name><uri>http://www.cnblogs.com/linn/</uri></author><link rel="alternate" href="http://www.cnblogs.com/linn/archive/2011/09/09/2172557.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/linn/archive/2011/09/09/2172557.html"/><content type="html">&lt;div&gt;&lt;div&gt;svn 锁的处理：&lt;/div&gt;&lt;div&gt;问题：　&lt;/div&gt;&lt;div&gt;1：当用户在work copy1 中把某个文件或者文件夹锁住后，删除了这个工作区，重新取下来work copy2，再操作该文件的时候就报错说，该文件已经被锁住，必须先解锁，但是之前的工作区已经被删除，无法解锁；&lt;/div&gt;&lt;div&gt;2：当某用户 锁了一个文件或文件夹后，离职了，机器上交了，后来别人再操作该文件或者文件夹，也会报先解锁，但是也找不到解锁的那个工作区了。&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;处理办法：&lt;/div&gt;&lt;div&gt;1、选中该文件或者文件夹，右键点击 svn get lock，在弹出的对话框里，把"steal the locks"这个钩上&amp;nbsp;，意思是把锁偷过来，偷完之后，再解锁，文件就正常了。&lt;/div&gt;&lt;p&gt;2、#cd&amp;nbsp;/home/svn/swordex-design/db/locks&amp;nbsp;&lt;/p&gt;&lt;p&gt;#rm -rf *&amp;nbsp;&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;注意：&amp;nbsp;&lt;/div&gt;&lt;div&gt;这个功能是svn特有的，对于特殊情况处理比较方便&lt;/div&gt;&lt;/div&gt;&lt;img src="http://www.cnblogs.com/linn/aggbug/2172557.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/linn/archive/2011/09/09/2172557.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/linn/archive/2011/08/30/2159244.html</id><title type="text">svn打标签</title><summary type="text">1、svn copy -r BASE d:\branch_test\ svn://repos/test/tags/0.6.32-prerelease -m &amp;quot;tag&amp;quot;2、svn copy svn://repos/test/trunk svn://repos/test/tags/0.6.32-prerelease -m &amp;quot;tag&amp;quot;Valid options: -r [--revision] ARG : ARG (some commands also take ARG1:ARG2 range) A revision argument can be one o</summary><published>2011-08-30T02:37:00Z</published><updated>2011-08-30T02:37:00Z</updated><author><name>凌度</name><uri>http://www.cnblogs.com/linn/</uri></author><link rel="alternate" href="http://www.cnblogs.com/linn/archive/2011/08/30/2159244.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/linn/archive/2011/08/30/2159244.html"/><content type="html">&lt;p&gt;1、svn copy -r BASE d:\branch_test\ svn://repos/test/tags/0.6.32-prerelease -m "tag"&lt;/p&gt;&lt;p&gt;2、svn copy svn://repos/test/trunk svn://repos/test/tags/0.6.32-prerelease -m "tag"&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;div&gt;Valid options:&lt;/div&gt;&lt;div&gt;&amp;nbsp; -r [--revision] ARG &amp;nbsp; &amp;nbsp; &amp;nbsp;: ARG (some commands also take ARG1:ARG2 range)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A revision argument can be one of:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NUMBER &amp;nbsp; &amp;nbsp; &amp;nbsp; revision number&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; '{' DATE '}' revision at start of the date&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'HEAD' &amp;nbsp; &amp;nbsp; &amp;nbsp; latest in repository&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'BASE' &amp;nbsp; &amp;nbsp; &amp;nbsp; base rev of item's working copy&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'COMMITTED' &amp;nbsp;last commit at or before BASE&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;特别说明：&lt;/p&gt;&lt;p&gt;使用本地目录做源路径时，如方法1，需要人工创建tags路径后的所有目录。例如，&amp;nbsp;0.6.32-prerelease，如果这后面还有目录，也要一个一个创建。&lt;/p&gt;&lt;p&gt;使用svn rul做源路径时，SVN系统会自动再目标路径下创建需要的目录。但是这样会出现一个BUG:&lt;/p&gt;&lt;p&gt;执行两次相同命令，会拷贝两次，第二次是第一次的子目录。&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;div&gt;C:\Users\Administrator&amp;gt;svn copy svn://10.20.86.138/swordex-code/branches/b_test_&lt;/div&gt;&lt;div&gt;jxcn_20110826/Coding svn://10.20.86.138/swordex-code/tags/b_test_jxcn_20110826_1&lt;/div&gt;&lt;div&gt;&amp;nbsp;-m scm&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;Committed revision 40.&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;C:\Users\Administrator&amp;gt;svn copy svn://10.20.86.138/swordex-code/branches/b_test_&lt;/div&gt;&lt;div&gt;jxcn_20110826/Coding svn://10.20.86.138/swordex-code/tags/b_test_jxcn_20110826_1&lt;/div&gt;&lt;div&gt;&amp;nbsp;-m scm&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;Committed revision 41.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;C:\Users\Administrator&amp;gt;svn copy svn://10.20.86.138/swordex-code/branches/b_test_&lt;/div&gt;&lt;div&gt;jxcn_20110826/Coding svn://10.20.86.138/swordex-code/tags/b_test_jxcn_20110826_1&lt;/div&gt;&lt;div&gt;&amp;nbsp;-m scm&lt;/div&gt;&lt;/div&gt;&lt;p&gt;svn: Path 'tags/b_test_jxcn_20110826_1/Coding' already exists&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;img src="http://images.cnblogs.com/cnblogs_com/linn/svn_copy_bug.jpg" width="223" height="109" alt="" /&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/linn/aggbug/2159244.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/linn/archive/2011/08/30/2159244.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry></feed>
