<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sangkle</title>
	<atom:link href="http://www.sangkle.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sangkle.com</link>
	<description>Gooooooooooooooooooood</description>
	<lastBuildDate>Fri, 17 Feb 2012 15:47:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Python 2.x의 기본 인코딩 방식 변경</title>
		<link>http://www.sangkle.com/archives/33</link>
		<comments>http://www.sangkle.com/archives/33#comments</comments>
		<pubDate>Fri, 17 Feb 2012 14:12:35 +0000</pubDate>
		<dc:creator>sangkle</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python 2.7]]></category>
		<category><![CDATA[UTF-8]]></category>
		<category><![CDATA[기본 인코딩]]></category>

		<guid isPermaLink="false">http://www.sangkle.com/?p=33</guid>
		<description><![CDATA[
<!-- Start WP Socializer - Social Buttons - Output -->
 &bull; <a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.sangkle.com%2Farchives%2F33&amp;t=Python+2.x%EC%9D%98+%EA%B8%B0%EB%B3%B8+%EC%9D%B8%EC%BD%94%EB%94%A9+%EB%B0%A9%EC%8B%9D+%EB%B3%80%EA%B2%BD" title="Share this on Facebook" target="_blank" rel="nofollow">Facebook</a> &bull; <a href="http://twitter.com/home?status=Python+2.x%EC%9D%98+%EA%B8%B0%EB%B3%B8+%EC%9D%B8%EC%BD%94%EB%94%A9+%EB%B0%A9%EC%8B%9D+%EB%B3%80%EA%B2%BD%20-%20http%3A%2F%2Fwww.sangkle.com%3Fp%3D33%20" title="Tweet this !" target="_blank" rel="nofollow">Twitter</a> &bull; <a href="http://www.sangkle.com/archives/33" onclick="addBookmark(event);" title="Python 2.x의 기본 인코딩 방식 변경" target="_blank" rel="nofollow">Add to favorites</a> &bull; <a href="mailto:sangkle@sangkle.com?subject=Python 2.x의 기본 인코딩 방식 변경&amp;body=미디어 라이브러리 관리 시스템인 beet를 쓰려고 설치를 끝내고 실행을 하면 한글로 된 음원들이 있어서 UnicodeDecodeError가 발생했다.

Ubuntu 11.10의 Python 2.7의 기본 인코딩이 ASCII로 되어 있어 - http://www.sangkle.com/archives/33" title="Email this" target="_blank" rel="nofollow">Email</a> &bull; <a href="http://www.sangkle.com/feed/rss" title="Subscribe to RSS" target="_blank" rel="nofollow">RSS</a>
<!-- End WP Socializer - Social Buttons - Output -->
미디어 라이브러리 관리 시스템인 beet를 쓰려고 설치를 끝내고 실행을 하면 한글로 된 음원들이 있어서 UnicodeDecodeError가 발생했다. Ubuntu 11.10의 Python 2.7의 기본 인코딩이 ASCII로 되어 있어서 UnicodeDecodeError가 발생한다. &#160; 해결 방법 $ echo &#34;import sys; sys.setdefaultencoding('utf-8')&#34; &#62; sitecustomize.py $ sudo mv sitecustomize.py /usr/lib/python2.7/ &#160; 확인 $ python Python 2.7.2+ (default, Oct 4 2011, 20:06:09) [GCC 4.6.1] on [...]]]></description>
			<content:encoded><![CDATA[
<!-- Start WP Socializer - Social Buttons - Output -->
 &bull; <a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.sangkle.com%2Farchives%2F33&amp;t=Python+2.x%EC%9D%98+%EA%B8%B0%EB%B3%B8+%EC%9D%B8%EC%BD%94%EB%94%A9+%EB%B0%A9%EC%8B%9D+%EB%B3%80%EA%B2%BD" title="Share this on Facebook" target="_blank" rel="nofollow">Facebook</a> &bull; <a href="http://twitter.com/home?status=Python+2.x%EC%9D%98+%EA%B8%B0%EB%B3%B8+%EC%9D%B8%EC%BD%94%EB%94%A9+%EB%B0%A9%EC%8B%9D+%EB%B3%80%EA%B2%BD%20-%20http%3A%2F%2Fwww.sangkle.com%3Fp%3D33%20" title="Tweet this !" target="_blank" rel="nofollow">Twitter</a> &bull; <a href="http://www.sangkle.com/archives/33" onclick="addBookmark(event);" title="Python 2.x의 기본 인코딩 방식 변경" target="_blank" rel="nofollow">Add to favorites</a> &bull; <a href="mailto:sangkle@sangkle.com?subject=Python 2.x의 기본 인코딩 방식 변경&amp;body=미디어 라이브러리 관리 시스템인 beet를 쓰려고 설치를 끝내고 실행을 하면 한글로 된 음원들이 있어서 UnicodeDecodeError가 발생했다.

Ubuntu 11.10의 Python 2.7의 기본 인코딩이 ASCII로 되어 있어 - http://www.sangkle.com/archives/33" title="Email this" target="_blank" rel="nofollow">Email</a> &bull; <a href="http://www.sangkle.com/feed/rss" title="Subscribe to RSS" target="_blank" rel="nofollow">RSS</a>
<!-- End WP Socializer - Social Buttons - Output -->
<p>미디어 라이브러리 관리 시스템인 <a  title="beet" href="http://code.google.com/p/beets/">beet</a>를 쓰려고 설치를 끝내고 실행을 하면 한글로 된 음원들이 있어서 UnicodeDecodeError가 발생했다.</p>
<p>Ubuntu 11.10의 Python 2.7의 기본 인코딩이 ASCII로 되어 있어서 UnicodeDecodeError가 발생한다.</p>
<p>&nbsp;</p>
<h2>해결 방법</h2>
<pre class="crayon-plain-tag"><code>$ echo &quot;import sys; sys.setdefaultencoding('utf-8')&quot; &gt; sitecustomize.py
$ sudo mv sitecustomize.py /usr/lib/python2.7/</code></pre>
<p>&nbsp;</p>
<h2>확인</h2>
<pre class="crayon-plain-tag"><code>$ python
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot;
for more information.
&gt;&gt;&gt; import sys
&gt;&gt;&gt; sys.getdefaultencoding()
'utf-8'
&gt;&gt;&gt;</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sangkle.com/archives/33/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gnome-shell 3에서 최근 사용된 목록 삭제하기</title>
		<link>http://www.sangkle.com/archives/29</link>
		<comments>http://www.sangkle.com/archives/29#comments</comments>
		<pubDate>Fri, 17 Feb 2012 14:08:37 +0000</pubDate>
		<dc:creator>sangkle</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[nvidia 295.20]]></category>
		<category><![CDATA[recently item]]></category>
		<category><![CDATA[recently-used.xbel]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.sangkle.com/?p=29</guid>
		<description><![CDATA[
<!-- Start WP Socializer - Social Buttons - Output -->
 &bull; <a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.sangkle.com%2Farchives%2F29&amp;t=Gnome-shell+3%EC%97%90%EC%84%9C+%EC%B5%9C%EA%B7%BC+%EC%82%AC%EC%9A%A9%EB%90%9C+%EB%AA%A9%EB%A1%9D+%EC%82%AD%EC%A0%9C%ED%95%98%EA%B8%B0" title="Share this on Facebook" target="_blank" rel="nofollow">Facebook</a> &bull; <a href="http://twitter.com/home?status=Gnome-shell+3%EC%97%90%EC%84%9C+%EC%B5%9C%EA%B7%BC+%EC%82%AC%EC%9A%A9%EB%90%9C+%EB%AA%A9%EB%A1%9D+%EC%82%AD%EC%A0%9C%ED%95%98%EA%B8%B0%20-%20http%3A%2F%2Fwww.sangkle.com%3Fp%3D29%20" title="Tweet this !" target="_blank" rel="nofollow">Twitter</a> &bull; <a href="http://www.sangkle.com/archives/29" onclick="addBookmark(event);" title="Gnome-shell 3에서 최근 사용된 목록 삭제하기" target="_blank" rel="nofollow">Add to favorites</a> &bull; <a href="mailto:sangkle@sangkle.com?subject=Gnome-shell 3에서 최근 사용된 목록 삭제하기&amp;body=몇 일 전에 NVIDIA 드라이버 버전 295.20이 릴리즈 되서 Ubuntu 11.10에 설치했다. 이 드라이버의 변경 내용중에 Gnome-shell 버그를 수정했다는데 오히려 눈에 보이는 버그가 있는것 같다. 그놈쉘의  - http://www.sangkle.com/archives/29" title="Email this" target="_blank" rel="nofollow">Email</a> &bull; <a href="http://www.sangkle.com/feed/rss" title="Subscribe to RSS" target="_blank" rel="nofollow">RSS</a>
<!-- End WP Socializer - Social Buttons - Output -->
몇 일 전에 NVIDIA 드라이버 버전 295.20이 릴리즈 되서 Ubuntu 11.10에 설치했다. 이 드라이버의 변경 내용중에 Gnome-shell 버그를 수정했다는데 오히려 눈에 보이는 버그가 있는것 같다. 그놈쉘의 현재활동(Activity)에서 검색을 하면 그놈쉘이 죽는 것이다. 원인이 무엇인지는 모르지만 추정컨데 최근 사용된 목록 때문인 것 같다. 이 목록은 ~/.local/share/recently-used.xbel 파일에 유지된다. 참고로 xbel이라는 확장자는 XML Bookmark Exchange Language이다. 결론은 당분간은 [...]]]></description>
			<content:encoded><![CDATA[
<!-- Start WP Socializer - Social Buttons - Output -->
 &bull; <a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.sangkle.com%2Farchives%2F29&amp;t=Gnome-shell+3%EC%97%90%EC%84%9C+%EC%B5%9C%EA%B7%BC+%EC%82%AC%EC%9A%A9%EB%90%9C+%EB%AA%A9%EB%A1%9D+%EC%82%AD%EC%A0%9C%ED%95%98%EA%B8%B0" title="Share this on Facebook" target="_blank" rel="nofollow">Facebook</a> &bull; <a href="http://twitter.com/home?status=Gnome-shell+3%EC%97%90%EC%84%9C+%EC%B5%9C%EA%B7%BC+%EC%82%AC%EC%9A%A9%EB%90%9C+%EB%AA%A9%EB%A1%9D+%EC%82%AD%EC%A0%9C%ED%95%98%EA%B8%B0%20-%20http%3A%2F%2Fwww.sangkle.com%3Fp%3D29%20" title="Tweet this !" target="_blank" rel="nofollow">Twitter</a> &bull; <a href="http://www.sangkle.com/archives/29" onclick="addBookmark(event);" title="Gnome-shell 3에서 최근 사용된 목록 삭제하기" target="_blank" rel="nofollow">Add to favorites</a> &bull; <a href="mailto:sangkle@sangkle.com?subject=Gnome-shell 3에서 최근 사용된 목록 삭제하기&amp;body=몇 일 전에 NVIDIA 드라이버 버전 295.20이 릴리즈 되서 Ubuntu 11.10에 설치했다. 이 드라이버의 변경 내용중에 Gnome-shell 버그를 수정했다는데 오히려 눈에 보이는 버그가 있는것 같다. 그놈쉘의  - http://www.sangkle.com/archives/29" title="Email this" target="_blank" rel="nofollow">Email</a> &bull; <a href="http://www.sangkle.com/feed/rss" title="Subscribe to RSS" target="_blank" rel="nofollow">RSS</a>
<!-- End WP Socializer - Social Buttons - Output -->
<p>몇 일 전에 NVIDIA 드라이버 버전 295.20이 릴리즈 되서 Ubuntu 11.10에 설치했다. 이 드라이버의 변경 내용중에 Gnome-shell 버그를 수정했다는데 오히려 눈에 보이는 버그가 있는것 같다. 그놈쉘의 현재활동(Activity)에서 검색을 하면 그놈쉘이 죽는 것이다. 원인이 무엇인지는 모르지만 추정컨데 최근 사용된 목록 때문인 것 같다. 이 목록은 ~/.local/share/recently-used.xbel 파일에 유지된다. 참고로 xbel이라는 확장자는 XML Bookmark Exchange Language이다.</p>
<p>결론은 당분간은 최근 사용된 아이템을 사용하지 말아야 안전하게 그놈쉘을 사용할 수 있을 것 같다.</p>
<h2>최근 사용된 아이템 목록 지우기</h2>
<p>다음 중에 하나를 사용한다.</p><pre class="crayon-plain-tag"><code>$ rm ~/.local/share/recently-used.xbel
$ touch ~/.local/share/recently-used.xbel</code></pre>
<pre class="crayon-plain-tag"><code>$ &quot;&quot; &gt; ~/.local/share/recently-used.xbel</code></pre>
<h2>최근 사용된 목록 하용하지 않기</h2>
<p>최근 사용된 목록이기 때문에 노틸러스에서 파일을 바로 실행하면 목록이 새로 작성된다. 이를 방지하려면 다음과 같이 파일 속성을 바꾼다.</p><pre class="crayon-plain-tag"><code>$ sudo chattr +i ~/.local/share/recently-used.xbel</code></pre>
<p>다시 최근 사용된 목록을 사용하려면</p><pre class="crayon-plain-tag"><code>$ sudo chattr -i ~/.local/share/recently-used.xbel</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sangkle.com/archives/29/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

