<?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>simple singularities &#187; smalltalk</title>
	<atom:link href="http://fri13th.com/blog/archives/category/smalltalk/feed" rel="self" type="application/rss+xml" />
	<link>http://fri13th.com/blog</link>
	<description>presented by lazy fri13th since 2006</description>
	<lastBuildDate>Mon, 26 Apr 2010 09:09:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ubuntu network disconnect problem</title>
		<link>http://fri13th.com/blog/archives/387</link>
		<comments>http://fri13th.com/blog/archives/387#comments</comments>
		<pubDate>Fri, 25 Dec 2009 01:00:09 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[smalltalk]]></category>
		<category><![CDATA[disconnect]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[resolv.conf]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/?p=387</guid>
		<description><![CDATA[there was some weird problem in my ubuntu pc. the network connection is closed frequently and it was fixed by rebooting. i googled the situation and nothing found. then i check the resolv.conf and it was empty and there was a message #Generated by NetworkManager. WTF! i googled it and found these solutions sudo chmod [...]]]></description>
			<content:encoded><![CDATA[<p>there was some weird problem in my ubuntu pc. the network connection is closed frequently and it was fixed by rebooting. i googled the situation and nothing found. then i check the resolv.conf and it was empty and there was a message #Generated by NetworkManager. WTF!</p>
<p>
i googled it and found these solutions</p>
<p></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-w</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>resolv.conf
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chattr</span> +i <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>resolv.conf</pre></div></div>

<p>
this prevents to change the resolv.conf file, but not a good idea</p>
<p>
this one is more primitive solution</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>dhcp3<span style="color: #000000; font-weight: bold;">/</span>dhclient.conf</pre></div></div>

<p>
and change this line.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">prepend domain-name-servers 8.8.8.8</pre></div></div>

<p>
i don&#8217;t know which one works and which one works not. i applied all.. and got no problem now. so i wish you luck! enjoy the ubuntu life!</p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/387/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacPorts issues in snow leopard, again</title>
		<link>http://fri13th.com/blog/archives/363</link>
		<comments>http://fri13th.com/blog/archives/363#comments</comments>
		<pubDate>Mon, 14 Sep 2009 21:52:09 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[smalltalk]]></category>
		<category><![CDATA[macports]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/?p=363</guid>
		<description><![CDATA[i encountered the same trouble again. like this: dyld: Library not loaded: /opt/local/lib/db46/libdb-4.6.dylib Referenced from: /opt/local/bin/svn Reason: no suitable image found. Did find: /opt/local/lib/db46/libdb-4.6.dylib: mach-o, but wrong architecture this time, i manage to fix it. it was because snow leopard doesn&#8217;t use 32bit libraries. so you need to uninstall and rebuild all products for 64bit [...]]]></description>
			<content:encoded><![CDATA[<p>i encountered the same trouble again. </p>
<p>like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">dyld: Library not loaded: <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>db46<span style="color: #000000; font-weight: bold;">/</span>libdb-<span style="color: #000000;">4.6</span>.dylib
  Referenced from: <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span>
  Reason: no suitable image found.  Did <span style="color: #c20cb9; font-weight: bold;">find</span>:
        <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>db46<span style="color: #000000; font-weight: bold;">/</span>libdb-<span style="color: #000000;">4.6</span>.dylib: mach-o, but wrong architecture</pre></div></div>

<p>
this time, i manage to fix it. it was because snow leopard doesn&#8217;t use 32bit libraries. so you need to uninstall and rebuild all products for 64bit system. if you clean-install snow leopard, you don&#8217;t need to this.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">port installed <span style="color: #666666; font-style: italic;"># listing installed software</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-f</span> uninstall installed</pre></td></tr></table></div>

<p>
and install necessary program again <img src='http://fri13th.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<p>
for me:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> coreutils +with_default_names
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> subversion</pre></td></tr></table></div>

<p>etc&#8230; etc&#8230;</p>
<p>you may need to reinstall macports 1.8.0 for snow leopard again, after uninstalling all programs</p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/363/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>new blog opened</title>
		<link>http://fri13th.com/blog/archives/359</link>
		<comments>http://fri13th.com/blog/archives/359#comments</comments>
		<pubDate>Sat, 25 Apr 2009 08:38:14 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[smalltalk]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[gourmet]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/?p=359</guid>
		<description><![CDATA[i don&#8217;t know who sees this message but i opened another blog for korean people. this blog&#8217;s theme is gourmet, and travel. it may not so fun.. http://fri13th.com/ep i&#8217;ll add some link for this blog.. and anyway.. i will setup another blog for my art works.. the name will be e.a.f.d.l.. this blog will continue [...]]]></description>
			<content:encoded><![CDATA[<p>i don&#8217;t know who sees this message but i opened another blog for korean people. this blog&#8217;s theme is gourmet, and travel. it may not so fun..</p>
<p><a href="http://fri13th.com/ep">http://fri13th.com/ep</a></p>
<p>i&#8217;ll add some link for this blog..</p>
<p>and anyway.. i will setup another blog for my art works..<br />
the name will be e.a.f.d.l..</p>
<p>this blog will continue also, i earn money by developing software..<br />
(i&#8217;m deeply suffered by ie6 in these days.. maybe there will be a chance to tell the whole story.)</p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/359/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>finished to setup dreamhost.com</title>
		<link>http://fri13th.com/blog/archives/352</link>
		<comments>http://fri13th.com/blog/archives/352#comments</comments>
		<pubDate>Wed, 25 Feb 2009 10:28:48 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[smalltalk]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[dreamhost]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/archives/352</guid>
		<description><![CDATA[i just finished to transfer my blog. it was very simple job, thanx~ i&#8217;ll do the tedious egloos to wordpress transfer in this weekend and if it is finished, i&#8217;ll restart my gourmet blog again in wordpress.. the time i couldn&#8217;t have been post an article, i felt disconnected and depressed.. it was not good [...]]]></description>
			<content:encoded><![CDATA[<p>i just finished to transfer my blog. it was very simple job, thanx~ i&#8217;ll do the tedious egloos to wordpress transfer in this weekend and if it is finished, i&#8217;ll restart my gourmet blog again in wordpress..</p>
<p>the time i couldn&#8217;t have been post an article, i felt disconnected and depressed.. it was not good at all.. so it is very important to start blog for my mental health..</p>
<p>and also i&#8217;ll lunch another php ajax-based site sooner or later. i&#8217;ll notify it later..</p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/352/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ie6 quirks</title>
		<link>http://fri13th.com/blog/archives/347</link>
		<comments>http://fri13th.com/blog/archives/347#comments</comments>
		<pubDate>Thu, 19 Feb 2009 07:19:11 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[smalltalk]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/archives/347</guid>
		<description><![CDATA[most critical part in ie6 may be the hover property. ie6 only support hover in a tag, while other all modern browsers support hover properties in any tag. you have to manually add onmouseover and onmouseout event. like this: 1 2 3 4 if &#40;item.className = &#34;orig&#34;&#41; &#123; item.onmouseover=function&#40;&#41;&#123;this.className+=&#34; over&#34;;&#125;; item.onmouseout=function&#40;&#41;&#123;this.className=&#34;orig&#34;&#125;; &#125; and a tag&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>most critical part in ie6 may be the hover property. ie6 only support hover in a tag, while other all modern browsers support hover properties in  any tag. you have to manually add onmouseover and onmouseout event.</p>
<p>like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">item</span>.<span style="color: #660066;">className</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;orig&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">item</span>.<span style="color: #660066;">onmouseover</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">className</span><span style="color: #339933;">+=</span><span style="color: #3366CC;">&quot; over&quot;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">item</span>.<span style="color: #660066;">onmouseout</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">className</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;orig&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>and a tag&#8217;s behavior is somewhat wierd also..</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;style&gt;
li {text-align:left; width:100px;}
a {text-align:center;}
&lt;/style&gt;
&lt;li&gt;&lt;a&gt;test&lt;/a&gt;&lt;/li&gt;</pre></td></tr></table></div>

<p>this one wil be broken in ie6..</p>
<p>and many more..</p>
<p>anyway i can fix all these problem by using firebug and ietester. thank you so much~</p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/347/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>winrar and alz</title>
		<link>http://fri13th.com/blog/archives/290</link>
		<comments>http://fri13th.com/blog/archives/290#comments</comments>
		<pubDate>Sat, 15 Dec 2007 05:37:20 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[smalltalk]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/archives/290</guid>
		<description><![CDATA[i used zipplus only because it supports alzip&#8217;s alz format. alz is an awkward derivation of zip, very popular in korea. korean people use alz because alz supports splitted zip and is free and fancy and its menu is korean. but alzip isn&#8217;t my type. it&#8217;s default format is alz, not zip. alz will not [...]]]></description>
			<content:encoded><![CDATA[<p>i used zipplus only because it supports alzip&#8217;s alz format. alz is an awkward derivation of zip, very popular in korea. korean people use alz because alz supports splitted zip and is free and fancy and its menu is korean.</p>
<p>but alzip isn&#8217;t my type. it&#8217;s default format is alz, not zip. alz will not be supported by linux or mac. and except korean none in the world can extract it.</p>
<p>finally i decided not to use any alz file. it&#8217;s the right way. i started to use winrar from when i installed vista64 in my home pc. winrar is so fast, it supports dual core cpu. of course rar&#8217;s icon sucks, but i can endure..</p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/290/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KiTTY, PuTTY&#8217;s very nice clone!</title>
		<link>http://fri13th.com/blog/archives/282</link>
		<comments>http://fri13th.com/blog/archives/282#comments</comments>
		<pubDate>Tue, 23 Oct 2007 01:49:15 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[smalltalk]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/archives/282</guid>
		<description><![CDATA[i always wonder why there&#8217;s any terminal that supports transparency mode in windows. my main purpose of using mac is just using iTerm, seriously.&#160; today, i found some good term for windows. it&#8217;s cool and cute! it is based on PuTTY 0.6, and so there&#8217;s nothing to worry about ssh terminal features ^_^ http://www.9bis.net/kitty/]]></description>
			<content:encoded><![CDATA[<p>i always wonder why there&#8217;s any terminal that supports transparency mode in windows. my main purpose of using mac is just using iTerm, seriously.&nbsp; today, i found some good term for windows. it&#8217;s cool and cute! it is based on PuTTY 0.6, and so there&#8217;s nothing to worry about ssh terminal features ^_^ </p>
<p><a href="http://www.9bis.net/kitty/">http://www.9bis.net/kitty/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/282/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>unforking of webkit and khtml</title>
		<link>http://fri13th.com/blog/archives/278</link>
		<comments>http://fri13th.com/blog/archives/278#comments</comments>
		<pubDate>Wed, 25 Jul 2007 08:23:42 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[smalltalk]]></category>
		<category><![CDATA[web2.0]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/archives/278</guid>
		<description><![CDATA[though i don&#8217;t like safari, it&#8217;s a great news.&#160; most people think good browser is only in pc. but the pmp, cell phone or many consumer electronics will get their own browser someday, and the total count of browser will be more than pc. so this is a good decision, desktop browser&#8217;s market is already [...]]]></description>
			<content:encoded><![CDATA[<p>though i don&#8217;t like safari, it&#8217;s a great news.&nbsp; most people think good browser is only in pc. but the pmp, cell phone or many consumer electronics will get their own browser someday, and the total count of browser will be more than pc. so this is a good decision, desktop browser&#8217;s market is already taken by ms ie. and because it&#8217;s a game of monopoly, the share will not be changed so drastically. but embedded browser market is different. you can&#8217;t choose or complain or uninstall, in most case. now the time is coming soon, everybody have to learn ie is not the default browser for internet.</p>
<p><a href="http://arstechnica.com/journals/linux.ars/2007/07/23/the-unforking-of-kdes-khtml-and-webkit">http://arstechnica.com/journals/linux.ars/2007/07/23/the-unforking-of-kdes-khtml-and-webkit</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/278/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wmrecorder</title>
		<link>http://fri13th.com/blog/archives/267</link>
		<comments>http://fri13th.com/blog/archives/267#comments</comments>
		<pubDate>Mon, 25 Jun 2007 06:40:43 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[smalltalk]]></category>
		<category><![CDATA[want]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/archives/267</guid>
		<description><![CDATA[windows media recorder, not from MS.. it records all kind of streaming media except flash, flash is not a streaming media itself.. when capturing, you don&#8217;t even need to click the link.. it automatically captures streaming packet. so, cool.. very useful to me who loves music and musician..]]></description>
			<content:encoded><![CDATA[<p>windows media recorder, not from MS.. it records all kind of streaming media except flash, flash is not a streaming media itself.. when capturing, you don&#8217;t even need to click the link.. it automatically captures streaming packet. so, cool.. very useful to me who loves music and musician..</p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/267/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FizzBuzz Problem</title>
		<link>http://fri13th.com/blog/archives/262</link>
		<comments>http://fri13th.com/blog/archives/262#comments</comments>
		<pubDate>Fri, 11 May 2007 04:01:19 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[smalltalk]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/archives/262</guid>
		<description><![CDATA[the famous FizzBuzz Problem. this is my solution, it takes 5 min (if(!0) doesn&#8217;t work, so i have to use ==0, it takes about 3min), and i revise it in another 3 min to remove a temporary variable, and make code neat. #!/usr/bin/perlfor $i (1..100) {&#160;&#160;&#160; print $i if $i%3&#38;&#38;$i%5; &#160;&#160;&#160; print &#34;Fizz&#34; if $i%3==0;&#160;&#160;&#160; [...]]]></description>
			<content:encoded><![CDATA[<p>the famous FizzBuzz Problem.</p>
<p>this is my solution, it takes 5 min (if(!0) doesn&#8217;t work, so i have to use ==0, it takes about 3min), and i revise it in another 3 min to remove a temporary variable, and make code neat. </p>
<p>#!/usr/bin/perl<br />for $i (1..100) {<br />&nbsp;&nbsp;&nbsp; print $i if $i%3&amp;&amp;$i%5; <br />&nbsp;&nbsp;&nbsp; print &quot;Fizz&quot; if $i%3==0;<br />&nbsp;&nbsp;&nbsp; print &quot;Buzz&quot; if $i%5==0;<br />&nbsp;&nbsp;&nbsp; print &quot;\n&quot;;<br />}<br />of course i can solve by using many other language.. but the basic is the same.. someone might save some character, but i don&#8217;t want to ruin the readablity nor main concept of algorithm.</p>
<p><a href="http://tickletux.wordpress.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/">http://tickletux.wordpress.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/</a></p>
<p>P.S. i can remove two mod operations by using a temp varibale, but i can&#8217;t say it&#8217;s right or wrong..</p>
<p>P.P.S. i found more simple solution from internet.. this code is just what i imagine.. cool..<br />print(($_%3?&quot;&quot;:Fizz).($_%5?&quot;&quot;:Buzz)or$_) for(1..100)</p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/262/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

