<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8455832549081908077</id><updated>2011-12-07T11:58:20.160+08:00</updated><category term='linux'/><category term='PYTHON'/><title type='text'>Scott  IT's  Life</title><subtitle type='html'>PYTHON PHP HTML JACASCRIPT CSS</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://scotthsieh.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8455832549081908077/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://scotthsieh.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Scott</name><uri>http://www.blogger.com/profile/05593611433482262726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8455832549081908077.post-1275679346818235975</id><published>2011-06-01T21:54:00.001+08:00</published><updated>2011-06-01T23:42:00.546+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PYTHON'/><title type='text'>PYTHON import MySQLdb 出現 錯誤</title><content type='html'>最近在玩python，看到他有一個蠻好用的套件，可以直接存取mysql叫做MySQLdb，不過這個套件目前只支援到PYTHON 2.6，害我一開始玩時，是用PYTHON 3.2下去玩的，只好降版下try看看，果然新手還是別嘗試太新的版本阿！！&lt;br /&gt;&lt;br /&gt;如果是windows的用戶要使用，它有封裝成.exe擋的套件，直接安裝就能使用  &lt;a href="http://home.netimperia.com/files/misc/MySQL-python-1.2.2.win32-py2.6.exe"&gt;下載&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;不過安裝完，import MySQLdb 出現錯誤訊息阿。&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Traceback (most recent call last):&lt;br /&gt;&amp;nbsp; File "&lt;pyshell#0&gt;", line 1, in &lt;module&gt;&lt;/module&gt;&lt;/pyshell#0&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; import MySQLdb&lt;br /&gt;&amp;nbsp; File "C:\Python26\lib\site-packages\MySQLdb\__init__.py", line 19, in &lt;module&gt;&lt;/module&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; import _mysql&lt;br /&gt;ImportError: DLL load failed: 找不到指定的模組。&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;google了半天才發現 缺少了兩個.dll檔 &amp;nbsp;libmmd.dll 和 libguide40.dll 這兩個檔自行google都能找到下載點。把這兩個檔案 分別放入 C:\windows\System32\ 跟 C:\Python26\Lib\site-packages\裡，就能成功載入。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8455832549081908077-1275679346818235975?l=scotthsieh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scotthsieh.blogspot.com/feeds/1275679346818235975/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8455832549081908077&amp;postID=1275679346818235975' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8455832549081908077/posts/default/1275679346818235975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8455832549081908077/posts/default/1275679346818235975'/><link rel='alternate' type='text/html' href='http://scotthsieh.blogspot.com/2011/06/python-import-mysqldb.html' title='PYTHON import MySQLdb 出現 錯誤'/><author><name>Scott</name><uri>http://www.blogger.com/profile/05593611433482262726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8455832549081908077.post-5293974827991426342</id><published>2011-06-01T21:14:00.003+08:00</published><updated>2011-06-01T23:39:37.664+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>在linux上 用 vim編輯 不會產生亂碼</title><content type='html'>轉載自&lt;br /&gt;&lt;a href="http:"&gt;http://max-linux-space.blogspot.com/2010/08/vimrc-vim-utf8big5.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;設定 vimrc 讓vim可以編輯 UTF8/BIG5 等編碼文件&lt;br /&gt;&lt;br /&gt;$ vim /etc/vimrc&lt;br /&gt;&lt;br /&gt;加入以下&lt;br /&gt;&lt;code&gt;if has("multi_byte")&lt;br /&gt;set encoding=utf-8&lt;br /&gt;setglobal fileencoding=big5&lt;br /&gt;set fileencoding=big5&lt;br /&gt;set bomb&lt;br /&gt;set termencoding=big5&lt;br /&gt;set fileencodings=ucs-bom,big5,utf-8,latin1&lt;br /&gt;set guifont=-misc-fixed-medium-r-normal-*-18-120-100-100-c-90-iso10646-1&lt;br /&gt;set guifontwide=-misc-fixed-medium-r-normal-*-18-120-100-100-c-180-iso10646-1&lt;br /&gt;else&lt;br /&gt;echoerr "Sorry, this version of (g)vim was not compiled with multi_byte"&lt;br /&gt;endif&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8455832549081908077-5293974827991426342?l=scotthsieh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scotthsieh.blogspot.com/feeds/5293974827991426342/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8455832549081908077&amp;postID=5293974827991426342' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8455832549081908077/posts/default/5293974827991426342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8455832549081908077/posts/default/5293974827991426342'/><link rel='alternate' type='text/html' href='http://scotthsieh.blogspot.com/2011/06/linux-vim.html' title='在linux上 用 vim編輯 不會產生亂碼'/><author><name>Scott</name><uri>http://www.blogger.com/profile/05593611433482262726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
