<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>iamchung</title>
	
	<link>http://iamchung.com</link>
	<description>a blog about nerdy things</description>
	<lastBuildDate>Fri, 06 Apr 2012 22:55:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/iamchung/HOrZ" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="iamchung/horz" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>new asp.net 4 html output syntax</title>
		<link>http://iamchung.com/2012/03/13/new-asp-net-4-html-output-syntax/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=new-asp-net-4-html-output-syntax</link>
		<comments>http://iamchung.com/2012/03/13/new-asp-net-4-html-output-syntax/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 21:56:57 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://iamchung.com/?p=381</guid>
		<description><![CDATA[Previously in ASP.NET when you wanted to output html directly on the aspx page, you would do something like: &#60;%= myString %&#62; In ASP.NET 4, there is a new shorthand which also html encodes your output string: &#60;%: myString %&#62; &#8230; <a href="http://iamchung.com/2012/03/13/new-asp-net-4-html-output-syntax/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://iamchung.com/2011/01/31/regex-vs-parsing/' rel='bookmark' title='regex vs parsing'>regex vs parsing</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Previously in ASP.NET when you wanted to output html directly on the aspx page, you would do something like:</p>
<pre class="brush: c#">
&lt;%= myString %&gt;
</pre>
<p>In ASP.NET 4, there is a new shorthand which also html encodes your output string:</p>
<pre class="brush: c#">
&lt;%: myString %&gt;
</pre>
<p>enjoy!</p>
<p>Related posts:<ol>
<li><a href='http://iamchung.com/2011/01/31/regex-vs-parsing/' rel='bookmark' title='regex vs parsing'>regex vs parsing</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://iamchung.com/2012/03/13/new-asp-net-4-html-output-syntax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Listerine Plugin</title>
		<link>http://iamchung.com/2012/03/08/jquery-listerine-plugin/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=jquery-listerine-plugin</link>
		<comments>http://iamchung.com/2012/03/08/jquery-listerine-plugin/#comments</comments>
		<pubDate>Thu, 08 Mar 2012 05:21:37 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://iamchung.com/?p=371</guid>
		<description><![CDATA[I&#8217;ve been helping a friend with his site, www.thehardwareproject.org, for the past couple of months. It was a good chance to rework a lot of my php CMS and one thing I noticed was that there were a lot of &#8230; <a href="http://iamchung.com/2012/03/08/jquery-listerine-plugin/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://iamchung.com/2011/11/22/jquery-querystring/' rel='bookmark' title='jquery-querystring'>jquery-querystring</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been helping a friend with his site, <a href="http://thehardwareproject.org" target="_blank">www.thehardwareproject.org</a>, for the past couple of months. It was a good chance to rework a lot of my php CMS and one thing I noticed was that there were a lot of pages where all I was doing was displaying information via a list of divs. Different pages might have the lists formatted differently, but rather than write page-specific backend code to format the lists, why not output all lists uniformly to the page and then have client-side code manage the display?</p>
<p>Listerine has 2 modes. One is &#8220;columns&#8221; which basically creates a user-set number of columns on the page and then evenly distributes the list items between columns. The other mode is &#8220;grid&#8221; which is more of a tile-like display.</p>
<p>simple columns example:</p>
<pre class="brush: javascript">
$(&#039;.manufacturer_list_container&#039;).listerine({
cols: 3,
transform: &#039;columns&#039;
});
</pre>
<p><a href="https://github.com/gehsekky/jquery-listerine" target="_blank">Download the code here.</a></p>
<p>Related posts:<ol>
<li><a href='http://iamchung.com/2011/11/22/jquery-querystring/' rel='bookmark' title='jquery-querystring'>jquery-querystring</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://iamchung.com/2012/03/08/jquery-listerine-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>making bossam (bo ssam)</title>
		<link>http://iamchung.com/2012/03/04/making-bossam-bo-ssam/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=making-bossam-bo-ssam</link>
		<comments>http://iamchung.com/2012/03/04/making-bossam-bo-ssam/#comments</comments>
		<pubDate>Mon, 05 Mar 2012 03:56:20 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[food]]></category>
		<category><![CDATA[korean food]]></category>

		<guid isPermaLink="false">http://iamchung.com/?p=369</guid>
		<description><![CDATA[This weekend, I finally got around to making bossam (bo ssam), the Korean version of boiled pork and cabbage, at home. Using the instructions I found on this great korean food blog, it didn&#8217;t come out half bad. Some adjustments &#8230; <a href="http://iamchung.com/2012/03/04/making-bossam-bo-ssam/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://iamchung.com/2011/05/12/foodie-mementos/' rel='bookmark' title='foodie mementos'>foodie mementos</a></li>
<li><a href='http://iamchung.com/2008/10/13/why-i-choose-to-pirate-music/' rel='bookmark' title='why I choose to pirate music&#8230;'>why I choose to pirate music&#8230;</a></li>
<li><a href='http://iamchung.com/2008/11/02/halloween-antics/' rel='bookmark' title='Halloween Antics'>Halloween Antics</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This weekend, I finally got around to making bossam (bo ssam), the Korean version of boiled pork and cabbage, at home. Using the instructions I found on <a href="http://korean-cuisine.blogspot.com/2008/07/so-remember-that-moo-cheh-i-made-other.html" target="_blank">this great korean food blog</a>, it didn&#8217;t come out half bad. Some adjustments I made to the recipe are not using an onion, using a Korean red pepper instead of a Serrano pepper, not using a vegetable boil bag, and using 2.5 lbs of skin-on pork belly (which caused me to have way too many leftovers). Here are some pics of the process.</p>
<div class="wp-caption alignnone" style="width: 650px"><img src="http://i.imgur.com/5Vpsf.jpg" alt="cleaning the pork" width="640" height="480" /><p class="wp-caption-text">cleaning the pork</p></div>
<div class="wp-caption alignnone" style="width: 650px"><img src="http://i.imgur.com/uXgS2.jpg" alt="giving the lettuce a salt bath" width="640" height="480" /><p class="wp-caption-text">giving the lettuce a salt bath</p></div>
<div class="wp-caption alignnone" style="width: 650px"><img src="http://i.imgur.com/vqRGg.jpg" alt="dwenjang paste and coffee grounds in a pot." width="640" height="480" /><p class="wp-caption-text">dwenjang paste and coffee grounds in a pot.</p></div>
<div class="wp-caption alignnone" style="width: 650px"><img src="http://i.imgur.com/8cqpl.jpg" alt="boiling pork with coffee grounds." width="640" height="480" /><p class="wp-caption-text">boiling pork with coffee grounds.</p></div>
<div class="wp-caption alignnone" style="width: 650px"><img src="http://i.imgur.com/IJVWg.jpg" alt="everything in pot with new water." width="640" height="480" /><p class="wp-caption-text">everything in pot with new water.</p></div>
<div class="wp-caption alignnone" style="width: 650px"><img src="http://i.imgur.com/Suq4F.jpg" alt="boiling napa cabbage" width="640" height="480" /><p class="wp-caption-text">boiling napa cabbage</p></div>
<div class="wp-caption alignnone" style="width: 650px"><img src="http://i.imgur.com/pHZvZ.jpg" alt="time to enjoy the fruits of our labor!" width="640" height="480" /><p class="wp-caption-text">time to enjoy the fruits of our labor!</p></div>
<p>&nbsp;</p>
<p>Related posts:<ol>
<li><a href='http://iamchung.com/2011/05/12/foodie-mementos/' rel='bookmark' title='foodie mementos'>foodie mementos</a></li>
<li><a href='http://iamchung.com/2008/10/13/why-i-choose-to-pirate-music/' rel='bookmark' title='why I choose to pirate music&#8230;'>why I choose to pirate music&#8230;</a></li>
<li><a href='http://iamchung.com/2008/11/02/halloween-antics/' rel='bookmark' title='Halloween Antics'>Halloween Antics</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://iamchung.com/2012/03/04/making-bossam-bo-ssam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Script Debugging in Visual Web Developer 2010 Express</title>
		<link>http://iamchung.com/2012/02/09/disable-script-debugging-in-visual-web-developer-2010-express/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=disable-script-debugging-in-visual-web-developer-2010-express</link>
		<comments>http://iamchung.com/2012/02/09/disable-script-debugging-in-visual-web-developer-2010-express/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 16:54:09 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://iamchung.com/?p=364</guid>
		<description><![CDATA[This little registry hack will disable javascript debugging in Visual Web Developer 2010 Express. You should really be using something like Chrome Dev Tools or Firebug when debugging javascript anyways. reg add HKLM\SOFTWARE\Microsoft\VWDExpress\10.0\AD7Metrics\Engine\{F200A7E7-DEA5-11D0-B854-00A0244A1DE2} /v ProgramProvider /d {4FF9DEF4-8922-4D02-9379-3FFA64D1D639} /f Related posts: &#8230; <a href="http://iamchung.com/2012/02/09/disable-script-debugging-in-visual-web-developer-2010-express/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://iamchung.com/2011/02/15/mentally-mutilated/' rel='bookmark' title='mentally mutilated'>mentally mutilated</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This little registry hack will disable javascript debugging in Visual Web Developer 2010 Express. You should really be using something like Chrome Dev Tools or Firebug when debugging javascript anyways.</p>
<blockquote><p>reg add HKLM\SOFTWARE\Microsoft\VWDExpress\10.0\AD7Metrics\Engine\{F200A7E7-DEA5-11D0-B854-00A0244A1DE2} /v ProgramProvider /d {4FF9DEF4-8922-4D02-9379-3FFA64D1D639} /f</p></blockquote>
<p>Related posts:<ol>
<li><a href='http://iamchung.com/2011/02/15/mentally-mutilated/' rel='bookmark' title='mentally mutilated'>mentally mutilated</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://iamchung.com/2012/02/09/disable-script-debugging-in-visual-web-developer-2010-express/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>happy new years 2012</title>
		<link>http://iamchung.com/2012/01/01/happy-new-years-2012/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=happy-new-years-2012</link>
		<comments>http://iamchung.com/2012/01/01/happy-new-years-2012/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 19:31:43 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[life]]></category>
		<category><![CDATA[resolutions]]></category>

		<guid isPermaLink="false">http://iamchung.com/?p=361</guid>
		<description><![CDATA[Happy new years! For this first post of the new year, I thought I&#8217;d take a look at last year&#8217;s resolutions and see how I fared. Play MORE video games.  Try and beat them too since I have a nasty &#8230; <a href="http://iamchung.com/2012/01/01/happy-new-years-2012/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://iamchung.com/2011/01/04/happy-new-year-2011/' rel='bookmark' title='Happy New Year 2011'>Happy New Year 2011</a></li>
<li><a href='http://iamchung.com/2009/01/02/happy-new-years-2009/' rel='bookmark' title='happy new years 2009!'>happy new years 2009!</a></li>
<li><a href='http://iamchung.com/2009/12/15/five-years-later/' rel='bookmark' title='Five years later'>Five years later</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Happy new years! For this first post of the new year, I thought I&#8217;d take a look at last year&#8217;s resolutions and see how I fared.</p>
<ul>
<li>Play MORE video games.  Try and beat them too since I have a nasty habit of just dropping them midway through.</li>
<li>Learn Python and Java.</li>
<li>Try and complete more of my programming side projects instead of leaving them half-done (this seems to be a recurring theme in my life).</li>
<li>Learn to drive stick.</li>
<li>Try and do some more grad school classes.  I had put them off to pay off some debt first, but I should really try and get this done.</li>
<li>Pay off debt.</li>
<li>Read more books.</li>
<li>Be less political.</li>
</ul>
<p>I have managed to actually beat more of the video games I started playing this year rather than leaving them unfinished. Some exceptions include Castlevania and Oblivion. Now that SWTOR has come out, I&#8217;ll probably leave those unfinished for a while though. I&#8217;ve managed to learn a bit of python, as well as learned to use git to publish some of the stuff I&#8217;ve learned to the web. I didn&#8217;t get around to learning stick or take more grad school classes. Due to unforeseen circumstances, I wasn&#8217;t able to save up as much money as I would have liked this past year to pay off debt. I did manage to read a lot more books though and I think I&#8217;ve become a bit less political. All in all, not a bad run of resolutions.</p>
<p>For this next year, I&#8217;ll keep the resolutions simple.</p>
<ul>
<li>Start working out more and possibly start a martial arts class.</li>
<li>Pay off debt.</li>
<li>Start working on a video game project.</li>
<li>Learn, learn, learn. Always try to continue the learning process.</li>
</ul>
<p>Related posts:<ol>
<li><a href='http://iamchung.com/2011/01/04/happy-new-year-2011/' rel='bookmark' title='Happy New Year 2011'>Happy New Year 2011</a></li>
<li><a href='http://iamchung.com/2009/01/02/happy-new-years-2009/' rel='bookmark' title='happy new years 2009!'>happy new years 2009!</a></li>
<li><a href='http://iamchung.com/2009/12/15/five-years-later/' rel='bookmark' title='Five years later'>Five years later</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://iamchung.com/2012/01/01/happy-new-years-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jquery-querystring</title>
		<link>http://iamchung.com/2011/11/22/jquery-querystring/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=jquery-querystring</link>
		<comments>http://iamchung.com/2011/11/22/jquery-querystring/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 00:58:11 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[querystring]]></category>

		<guid isPermaLink="false">http://iamchung.com/?p=357</guid>
		<description><![CDATA[Just published a plugin that extends jquery to give access to querystring params easily. For the longest time, I was just copy/pasting one function into all my projects to do this, but finally decided to make it a jquery plugin &#8230; <a href="http://iamchung.com/2011/11/22/jquery-querystring/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://iamchung.com/2012/03/08/jquery-listerine-plugin/' rel='bookmark' title='jQuery Listerine Plugin'>jQuery Listerine Plugin</a></li>
<li><a href='http://iamchung.com/2011/09/01/github/' rel='bookmark' title='Github'>Github</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Just published a plugin that extends jquery to give access to querystring params easily. For the longest time, I was just copy/pasting one function into all my projects to do this, but finally decided to make it a jquery plugin for future use. Here&#8217;s how to use it:</p>
<pre>$.querystring(param_name_here);</pre>
<p>example:</p>
<pre>var q = $.querystring('q');</pre>
<p>Ezmode. get the code here: <a href="https://github.com/gehsekky/jquery-querystring" target="_blank">https://github.com/gehsekky/jquery-querystring</a></p>
<p>Related posts:<ol>
<li><a href='http://iamchung.com/2012/03/08/jquery-listerine-plugin/' rel='bookmark' title='jQuery Listerine Plugin'>jQuery Listerine Plugin</a></li>
<li><a href='http://iamchung.com/2011/09/01/github/' rel='bookmark' title='Github'>Github</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://iamchung.com/2011/11/22/jquery-querystring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Steve Jobs has died</title>
		<link>http://iamchung.com/2011/10/06/steve-jobs-has-died/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=steve-jobs-has-died</link>
		<comments>http://iamchung.com/2011/10/06/steve-jobs-has-died/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 16:59:47 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[steve jobs]]></category>

		<guid isPermaLink="false">http://iamchung.com/?p=354</guid>
		<description><![CDATA[Steve Jobs has died at age 56. The internet has gone insane with everyone and their mother trying to eulogize Jobs. I even read an article where the author said he was &#8220;Moses in a turtleneck.&#8221; That&#8217;s just crazy, but whatever. While I &#8230; <a href="http://iamchung.com/2011/10/06/steve-jobs-has-died/">Continue reading <span class="meta-nav">&#8594;</span></a>
No related posts.]]></description>
			<content:encoded><![CDATA[<p><img src="http://i.imgur.com/jVLP5.png" alt="apple logo" width="500" height="500" /></p>
<p>Steve Jobs has <a href="http://www.usatoday.com/tech/news/story/2011-10-06/steve-jobs-death-reaction/50678146/1" target="_blank">died</a> at age 56. The internet has gone insane with everyone and their mother trying to eulogize Jobs. I even read an article where the author said he was <a href="http://adage.com/article/bob-garfield/central-genius-apple-s-advertising-jobs/230239/" target="_blank">&#8220;Moses in a turtleneck.&#8221;</a> That&#8217;s just crazy, but whatever. While I didn&#8217;t agree with his business practices or philosophy, I acknowledge his role as a tech giant and someone who helped shape the industry we work in today. RIP. It will be interesting to see where Apple goes from here without Jobs at the helm.</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://iamchung.com/2011/10/06/steve-jobs-has-died/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ShibalBot – A Python IRC Bot using the Twisted library</title>
		<link>http://iamchung.com/2011/09/15/shibalbot-a-python-irc-bot-using-the-twisted-library/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=shibalbot-a-python-irc-bot-using-the-twisted-library</link>
		<comments>http://iamchung.com/2011/09/15/shibalbot-a-python-irc-bot-using-the-twisted-library/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 06:01:19 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[bot]]></category>
		<category><![CDATA[irc]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[twisted]]></category>

		<guid isPermaLink="false">http://iamchung.com/?p=350</guid>
		<description><![CDATA[I used to use eggdrops back in the day when we would idle in IRC channels for counterstrike and used to write custom TCL scripts to do all that annoying IRC bot stuff (like listing scrim availabilities, cs clan rosters, &#8230; <a href="http://iamchung.com/2011/09/15/shibalbot-a-python-irc-bot-using-the-twisted-library/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://iamchung.com/2011/09/07/script-to-sync-friends-list-across-multiple-reddit-accounts/' rel='bookmark' title='Script to sync friends list across multiple reddit accounts'>Script to sync friends list across multiple reddit accounts</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I used to use eggdrops back in the day when we would idle in IRC channels for counterstrike and used to write custom TCL scripts to do all that annoying IRC bot stuff (like listing scrim availabilities, cs clan rosters, etc). So while I&#8217;m learning Python, I figured I&#8217;d try and write my own bot to see if I could do it. I first started off with <a href="http://oreilly.com/pub/h/1968" target="_blank">this example</a> that builds the core of the bot in less than 30 lines of code. While that was fantastic, I then came across <a href="http://www.eflorenzano.com/blog/post/writing-markov-chain-irc-bot-twisted-and-python/" target="_blank">this example</a> which uses the <a href="http://twistedmatrix.com/trac/" target="_blank">Twisted</a> lib and makes it much more robust. I didn&#8217;t implement the markov chains, but I wrote up some quick code that can handle saving and displaying IRC quotes. This version of the bot is now just under 180 lines.</p>
<p>You can view the code <a href="https://github.com/gehsekky/shibalbot" target="_blank">here</a>.</p>
<p>To use it, you have to change this section at the bottom of the file.</p>
<pre>if __name__ == "__main__":
    reactor.connectTCP("YOUR_IRC_SERVER_HOST",
                       IRC_SERVER_HOST_PORT,
                       ShibalBotFactory("YOUR_IRC_CHANNEL",
                                        "YOUR_IRCBOT_NICK",
                                        True, False))
    reactor.run()</pre>
<p>Just change the parameters to your own IRC server address, server port, IRC channel, and bot nickname and you&#8217;re good to go. Some Todo&#8217;s include adding some code to fetch the titles of url&#8217;s pasted in the channel, making it modular so you can just drop in scripts instead of having to change the main file, and updating the quotes module to not load the entire quotes file at once (in case the file becomes huge).</p>
<p>Related posts:<ol>
<li><a href='http://iamchung.com/2011/09/07/script-to-sync-friends-list-across-multiple-reddit-accounts/' rel='bookmark' title='Script to sync friends list across multiple reddit accounts'>Script to sync friends list across multiple reddit accounts</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://iamchung.com/2011/09/15/shibalbot-a-python-irc-bot-using-the-twisted-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script to sync friends list across multiple reddit accounts</title>
		<link>http://iamchung.com/2011/09/07/script-to-sync-friends-list-across-multiple-reddit-accounts/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=script-to-sync-friends-list-across-multiple-reddit-accounts</link>
		<comments>http://iamchung.com/2011/09/07/script-to-sync-friends-list-across-multiple-reddit-accounts/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 05:31:45 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[reddit]]></category>

		<guid isPermaLink="false">http://iamchung.com/?p=345</guid>
		<description><![CDATA[While teaching myself Python, I wanted to try and write something that I would actually use. Since I have multiple reddit accounts, a script that would sync settings across them seemed like it would be useful. So far, the only &#8230; <a href="http://iamchung.com/2011/09/07/script-to-sync-friends-list-across-multiple-reddit-accounts/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://iamchung.com/2011/09/15/shibalbot-a-python-irc-bot-using-the-twisted-library/' rel='bookmark' title='ShibalBot &#8211; A Python IRC Bot using the Twisted library'>ShibalBot &#8211; A Python IRC Bot using the Twisted library</a></li>
<li><a href='http://iamchung.com/2011/01/26/keep-it-simple-stupid/' rel='bookmark' title='Keep It Simple Stupid'>Keep It Simple Stupid</a></li>
<li><a href='http://iamchung.com/2011/01/31/regex-vs-parsing/' rel='bookmark' title='regex vs parsing'>regex vs parsing</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>While teaching myself Python, I wanted to try and write something that I would actually use. Since I have multiple reddit accounts, a script that would sync settings across them seemed like it would be useful. So far, the only thing being synced is friends, but I&#8217;ll soon have something that also syncs subscribed subreddits as well (hopefully).</p>
<p>The script is being hosted on github and the link is <a href="https://github.com/gehsekky/reddit-scripts/blob/master/reddit_friend_sync.py" target="_blank">here</a>.</p>
<p>I developed the script using Python 2.7.2 so I don&#8217;t even know if it is compatible with Python 3.x. Using the script is fairly easy. Just edit the top of the file above the line that says &#8220;DO NOT MODIFY BELOW THIS LINE&#8221;.</p>
<pre>Example:

login_info = [
["user1", "pass1"],
["user2", "pass2"],
["user3", "pass3"]
]

add_self_to_friends should be either "True" or "False"
(without quotations)</pre>
<p>I think I&#8217;ll add in some logic to do interactive input if no settings are detected in the file. I&#8217;m also going to change the script to do dom parsing as opposed to regex because the regex could run into some weird issues (I know I&#8217;ve said dom parsing is a hassle before, but the goal here is to learn as much Python as possible so I&#8217;ll try attacking problems from all angles to learn everything).</p>
<p>Related posts:<ol>
<li><a href='http://iamchung.com/2011/09/15/shibalbot-a-python-irc-bot-using-the-twisted-library/' rel='bookmark' title='ShibalBot &#8211; A Python IRC Bot using the Twisted library'>ShibalBot &#8211; A Python IRC Bot using the Twisted library</a></li>
<li><a href='http://iamchung.com/2011/01/26/keep-it-simple-stupid/' rel='bookmark' title='Keep It Simple Stupid'>Keep It Simple Stupid</a></li>
<li><a href='http://iamchung.com/2011/01/31/regex-vs-parsing/' rel='bookmark' title='regex vs parsing'>regex vs parsing</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://iamchung.com/2011/09/07/script-to-sync-friends-list-across-multiple-reddit-accounts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Github</title>
		<link>http://iamchung.com/2011/09/01/github/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=github</link>
		<comments>http://iamchung.com/2011/09/01/github/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 05:29:02 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[reddit]]></category>

		<guid isPermaLink="false">http://iamchung.com/?p=343</guid>
		<description><![CDATA[Finally decided to do something with my Github account and actually set up a repository for some reddit utility scripts. This is really just a way for me to learn and improve my python skills for the future. Pro tip: &#8230; <a href="http://iamchung.com/2011/09/01/github/">Continue reading <span class="meta-nav">&#8594;</span></a>
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Finally decided to do something with my <a href="https://github.com/gehsekky" target="_blank">Github account</a> and actually set up a repository for some <a href="https://github.com/gehsekky/reddit-scripts" target="_blank">reddit utility scripts</a>. This is really just a way for me to learn and improve my python skills for the future. Pro tip: Git is really meant to be used on linux. Using it in Windows 7 just doesn&#8217;t feel right for some reason&#8230;</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://iamchung.com/2011/09/01/github/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: iamchung.com @ 2012-04-30 20:11:12 -->

