<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ian Ma</title>
	<atom:link href="http://ianma.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ianma.wordpress.com</link>
	<description>Life Labs</description>
	<lastBuildDate>Tue, 09 Aug 2011 23:15:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ianma.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/1cc75557761c36a94a869d17f09be088?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Ian Ma</title>
		<link>http://ianma.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ianma.wordpress.com/osd.xml" title="Ian Ma" />
	<atom:link rel='hub' href='http://ianma.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Postgresql Create Random Dates</title>
		<link>http://ianma.wordpress.com/2010/05/19/postgresql-create-random-dates/</link>
		<comments>http://ianma.wordpress.com/2010/05/19/postgresql-create-random-dates/#comments</comments>
		<pubDate>Wed, 19 May 2010 22:08:33 +0000</pubDate>
		<dc:creator>vyolian</dc:creator>
				<category><![CDATA[database]]></category>

		<guid isPermaLink="false">http://ianma.wordpress.com/?p=416</guid>
		<description><![CDATA[NOW() &#8211; &#8217;1 day&#8217;::INTERVAL * ROUND(RANDOM() * 100) Credit to ilovebonnie<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=416&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>NOW() &#8211; &#8217;1 day&#8217;::INTERVAL * ROUND(RANDOM() * 100)</p>
<p>Credit to <a href="http://www.ilovebonnie.net/2010/01/20/random-dates-and-numbers-in-postgresql-with-the-random-function/">ilovebonnie</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianma.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianma.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianma.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianma.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianma.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianma.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianma.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianma.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianma.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianma.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianma.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianma.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianma.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianma.wordpress.com/416/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=416&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianma.wordpress.com/2010/05/19/postgresql-create-random-dates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c601a672a28e964888d8859373528be6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vyolian</media:title>
		</media:content>
	</item>
		<item>
		<title>Access restriction: Java OpenJdk Rt.jar</title>
		<link>http://ianma.wordpress.com/2010/05/03/access-restriction-java-openjdk-rt-jar/</link>
		<comments>http://ianma.wordpress.com/2010/05/03/access-restriction-java-openjdk-rt-jar/#comments</comments>
		<pubDate>Mon, 03 May 2010 21:56:14 +0000</pubDate>
		<dc:creator>vyolian</dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://ianma.wordpress.com/?p=411</guid>
		<description><![CDATA[Environment: Ubuntu Jaunty 9.10, Eclipse Error: &#8220;Access restriction: The type HttpServer is not accessible due to restriction on required library /usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar&#8221; Solution (quick): You need to configure your project from Java OpenJdk to Sun&#8217;s Java Solution (detailed): Make sure you have sun-java6-bin and sun-java6-jre installed (using Synaptics Package Manager perhaps) In Eclipse, RClick JRE System [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=411&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Environment</strong>: Ubuntu Jaunty 9.10, Eclipse<br />
<strong>Error</strong>: &#8220;Access restriction: The type HttpServer is not accessible due to restriction on required library /usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar&#8221;<br />
<strong>Solution (quick)</strong>: You need to configure your project from Java OpenJdk to Sun&#8217;s Java</p>
<p><strong>Solution (detailed)</strong>:</p>
<ol>
<li>Make sure you have sun-java6-bin and sun-java6-jre installed (using Synaptics Package Manager perhaps)</li>
<li>In Eclipse, RClick JRE System Library &gt; Build Path &gt; Configure Build Path</li>
<li>Add Library &gt; Alternate JRE &gt; Installed JREs&#8230;</li>
<li>Add &gt; Standard VM &gt; Next &gt; Directory &gt;  /usr/lib/jvm/java-6-sun-1.6.x.xx</li>
<li>Remove Openjdk JRE System Library</li>
</ol>
<p><em>Ian Ma</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianma.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianma.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianma.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianma.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianma.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianma.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianma.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianma.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianma.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianma.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianma.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianma.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianma.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianma.wordpress.com/411/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=411&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianma.wordpress.com/2010/05/03/access-restriction-java-openjdk-rt-jar/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c601a672a28e964888d8859373528be6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vyolian</media:title>
		</media:content>
	</item>
		<item>
		<title>Ruby OpenSSL and FTP</title>
		<link>http://ianma.wordpress.com/2010/04/19/ruby-openssl-and-ftp/</link>
		<comments>http://ianma.wordpress.com/2010/04/19/ruby-openssl-and-ftp/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 11:14:26 +0000</pubDate>
		<dc:creator>vyolian</dc:creator>
				<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://ianma.wordpress.com/?p=374</guid>
		<description><![CDATA[This is going to be my most random post. Ran into a series of problems related to openssl and ftp using ruby1.9. Here are just some useful links. Problem: LoadError: no such file to load &#8212; openssl Solution: ruby-v.v.v/ext/openssl; ruby extconf.rb; make; make install Source: http://www.ruby-forum.com/topic/90083 Problem: Net::FTPTempError: 425 Can&#8217;t build data connection: Connection timed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=374&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is going to be my most random post. Ran into a series of problems related to openssl and ftp using ruby1.9. Here are just some useful links.</p>
<p><strong>Problem:</strong> LoadError: no such file to load &#8212; openssl<br />
<strong>Solution:</strong> ruby-v.v.v/ext/openssl; ruby extconf.rb; make; make install<br />
<strong>Source:</strong> http://www.ruby-forum.com/topic/90083</p>
<p><strong>Problem</strong>: Net::FTPTempError: 425 Can&#8217;t build data connection: Connection timed out<br />
<strong>Solution: </strong>ftp.passive = true<br />
<strong>Source:</strong> http://groups.google.com/group/ruby-talk-google/browse_thread/thread/2c2c5258f8beb83a</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianma.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianma.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianma.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianma.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianma.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianma.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianma.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianma.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianma.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianma.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianma.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianma.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianma.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianma.wordpress.com/374/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=374&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianma.wordpress.com/2010/04/19/ruby-openssl-and-ftp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c601a672a28e964888d8859373528be6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vyolian</media:title>
		</media:content>
	</item>
		<item>
		<title>Create Instances From Database, Weka Java Eclipse</title>
		<link>http://ianma.wordpress.com/2010/01/17/create-instances-from-database-weka-java-eclipse/</link>
		<comments>http://ianma.wordpress.com/2010/01/17/create-instances-from-database-weka-java-eclipse/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 00:55:11 +0000</pubDate>
		<dc:creator>vyolian</dc:creator>
				<category><![CDATA[weka]]></category>

		<guid isPermaLink="false">http://ianma.wordpress.com/?p=365</guid>
		<description><![CDATA[Setup and Configuration 1) Make sure you have Weka downloaded and Weka.jar extracted into a folder. 2) Create a new project 3) Navigate to &#8220;Java Build Path&#8221; -&#62; &#8220;Libraries&#8221; 4) &#8220;Add External Class Folder&#8221; and choose your extracted weka folder 5) Navigate inside the extracted weka folder to weka/experiment. Look for two files, DataUtils.props and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=365&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Setup and Configuration</strong><br />
1) Make sure you have Weka downloaded and Weka.jar extracted into a folder.<br />
2) Create a new project<br />
3) Navigate to &#8220;Java Build Path&#8221; -&gt; &#8220;Libraries&#8221;<br />
4) &#8220;Add External Class Folder&#8221; and choose your extracted weka folder</p>
<p>5)  Navigate inside the extracted weka folder to weka/experiment. Look for two files, DataUtils.props and DataUtils.props.postgresql.<br />
6) Create a backup of DataUtils.props and replace the contents of the original with that of DataUtils.props.postgresql.<br />
7) Edit the jdbcURL to your own configurations, &#8220;jdbcURL=jdbc:postgresql://localhost:5432/my_database_name&#8221;</p>
<p><em>Optional: If you look below, I added the mapping &#8220;numeric=2&#8243; to show that the Postgres type numeric should be translated as a Java double.</em></p>
<pre class="brush: plain;">
# JDBC driver (comma-separated list)
jdbcDriver=org.postgresql.Driver

# database URL
jdbcURL=jdbc:postgresql://localhost:5432/my_database_name

# specific data types
# string, getString() = 0;    --&gt; nominal
# boolean, getBoolean() = 1;  --&gt; nominal
# double, getDouble() = 2;    --&gt; numeric
# byte, getByte() = 3;        --&gt; numeric
# short, getByte()= 4;        --&gt; numeric
# int, getInteger() = 5;      --&gt; numeric
# long, getLong() = 6;        --&gt; numeric
# float, getFloat() = 7;      --&gt; numeric
# date, getDate() = 8;        --&gt; date
# text, getString() = 9;      --&gt; string
# time, getTime() = 10;       --&gt; date

varchar=0
text=0
float4=2
float8=2
int4=5
oid=5
timestamp=8
date=8
numeric=2
</pre>
<p><strong>Code</strong></p>
<p>The code below shows two examples combined. One uses the configuration above to create instances directly from a query. The other is just a reference for general use of the database.</p>
<pre class="brush: java;">
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

import weka.core.Instances;
import weka.experiment.InstanceQuery;

public class Driver2 {

	public static void main(String[] args) throws ClassNotFoundException,
			SQLException, Exception {

		/***************************
		 * Instances from Database
		 ****************************/
		InstanceQuery query = new InstanceQuery();
		query.setUsername(&quot;my_username&quot;);
		query.setPassword(&quot;my_password&quot;);
		query.setQuery(&quot;SELECT price FROM products LIMIT 20&quot;);

		Instances data = query.retrieveInstances();
		System.out.println(data);

		/***************************
		 * General from Database
		 ****************************/
		// User Configurations
		String database = &quot;my_database_name&quot;;
		String username = &quot;my_username&quot;;
		String password = &quot;my_password&quot;;

		// Create and Check Connection
		Class.forName(&quot;org.postgresql.Driver&quot;);
		Connection db = DriverManager.getConnection(&quot;jdbc:postgresql:&quot;
				+ database, username, password);
		DatabaseMetaData dbmd = db.getMetaData();
		System.out.println(&quot;Connection to &quot; + dbmd.getDatabaseProductName()
				+ &quot; &quot; + dbmd.getDatabaseProductVersion() + &quot; successful.\n&quot;);

		// Query
		Statement sql = db.createStatement();
		ResultSet results = sql
				.executeQuery(&quot;SELECT id FROM products LIMIT 10&quot;);
		if (results != null) {
			while (results.next()) {
				System.out.println(&quot;id = &quot; + results.getInt(&quot;id&quot;));
			}
		}
		results.close();

		// Clean Up
		db.close();
	}
}
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianma.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianma.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianma.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianma.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianma.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianma.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianma.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianma.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianma.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianma.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianma.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianma.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianma.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianma.wordpress.com/365/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=365&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianma.wordpress.com/2010/01/17/create-instances-from-database-weka-java-eclipse/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c601a672a28e964888d8859373528be6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vyolian</media:title>
		</media:content>
	</item>
		<item>
		<title>Weka with Java (Eclipse), Getting Started</title>
		<link>http://ianma.wordpress.com/2010/01/16/weka-with-java-eclipse-getting-started/</link>
		<comments>http://ianma.wordpress.com/2010/01/16/weka-with-java-eclipse-getting-started/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 22:11:13 +0000</pubDate>
		<dc:creator>vyolian</dc:creator>
				<category><![CDATA[weka]]></category>

		<guid isPermaLink="false">http://ianma.wordpress.com/?p=363</guid>
		<description><![CDATA[Quick, rough guide to getting started with Weka using Java and Eclipse. 1) Make sure you&#8217;ve downloaded Weka 2) Create a new project in Eclipse. Find Java Build Path -&#62; Libraries either during project creation or afterwards under &#8220;Package Explorer&#8221; -&#62; RClick project -&#62; Properties. 3) &#8220;Add External Jars&#8230;&#8221; and select the weka.jar from your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=363&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Quick, rough guide to getting started with Weka using Java and Eclipse.</p>
<p>1) Make sure you&#8217;ve downloaded <a href="http://www.cs.waikato.ac.nz/ml/weka/">Weka</a></p>
<p>2) Create a new project in Eclipse. Find Java Build Path -&gt; Libraries either during project creation or afterwards under &#8220;Package Explorer&#8221; -&gt; RClick project -&gt; Properties. </p>
<p>3) &#8220;Add External Jars&#8230;&#8221; and select the weka.jar from your download. </p>
<p>4) Create a class file under the &#8220;src&#8221; folder. This code is taken pretty much line for line from <a href="http://weka.wikispaces.com/Programmatic+Use">weka.wikispaces</a>.</p>
<pre class="brush: java;">
import weka.classifiers.Classifier;
import weka.classifiers.Evaluation;
import weka.classifiers.bayes.NaiveBayes;
import weka.core.Attribute;
import weka.core.FastVector;
import weka.core.Instance;
import weka.core.Instances;

public class Driver {

	public static void main(String[] args) throws Exception{

		 // Declare two numeric attributes
		 Attribute Attribute1 = new Attribute(&quot;firstNumeric&quot;);
		 Attribute Attribute2 = new Attribute(&quot;secondNumeric&quot;);

		 // Declare a nominal attribute along with its values
		 FastVector fvNominalVal = new FastVector(3);
		 fvNominalVal.addElement(&quot;blue&quot;);
		 fvNominalVal.addElement(&quot;gray&quot;);
		 fvNominalVal.addElement(&quot;black&quot;);
		 Attribute Attribute3 = new Attribute(&quot;aNominal&quot;, fvNominalVal);

		 // Declare the class attribute along with its values
		 FastVector fvClassVal = new FastVector(2);
		 fvClassVal.addElement(&quot;positive&quot;);
		 fvClassVal.addElement(&quot;negative&quot;);
		 Attribute ClassAttribute = new Attribute(&quot;theClass&quot;, fvClassVal);

		 // Declare the feature vector
		 FastVector fvWekaAttributes = new FastVector(4);
		 fvWekaAttributes.addElement(Attribute1);
		 fvWekaAttributes.addElement(Attribute2);
		 fvWekaAttributes.addElement(Attribute3);
		 fvWekaAttributes.addElement(ClassAttribute);

		 // Create an empty training set
		 Instances isTrainingSet = new Instances(&quot;Rel&quot;, fvWekaAttributes, 10);       

		 // Set class index
		 isTrainingSet.setClassIndex(3);

		 // Create the instance
		 Instance iExample = new Instance(4);
		 iExample.setValue((Attribute)fvWekaAttributes.elementAt(0), 1.0);
		 iExample.setValue((Attribute)fvWekaAttributes.elementAt(1), 0.5);
		 iExample.setValue((Attribute)fvWekaAttributes.elementAt(2), &quot;gray&quot;);
		 iExample.setValue((Attribute)fvWekaAttributes.elementAt(3), &quot;positive&quot;);

		 // add the instance
		 isTrainingSet.add(iExample);
		 Classifier cModel = (Classifier)new NaiveBayes();
		 cModel.buildClassifier(isTrainingSet);

		 // Test the model
		 Evaluation eTest = new Evaluation(isTrainingSet);
		 eTest.evaluateModel(cModel, isTrainingSet);

		 // Print the result à la Weka explorer:
		 String strSummary = eTest.toSummaryString();
		 System.out.println(strSummary);

		 // Get the confusion matrix
		 double[][] cmMatrix = eTest.confusionMatrix();
		 for(int row_i=0; row_i&lt;cmMatrix.length; row_i++){
			 for(int col_i=0; col_i&lt;cmMatrix.length; col_i++){
				 System.out.print(cmMatrix[row_i][col_i]);
				 System.out.print(&quot;|&quot;);
			 }
			 System.out.println();
		 }
	}
}
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianma.wordpress.com/363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianma.wordpress.com/363/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianma.wordpress.com/363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianma.wordpress.com/363/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianma.wordpress.com/363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianma.wordpress.com/363/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianma.wordpress.com/363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianma.wordpress.com/363/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianma.wordpress.com/363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianma.wordpress.com/363/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianma.wordpress.com/363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianma.wordpress.com/363/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianma.wordpress.com/363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianma.wordpress.com/363/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=363&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianma.wordpress.com/2010/01/16/weka-with-java-eclipse-getting-started/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c601a672a28e964888d8859373528be6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vyolian</media:title>
		</media:content>
	</item>
		<item>
		<title>Weka Output Class Predictions</title>
		<link>http://ianma.wordpress.com/2010/01/14/weka-output-class-predictions/</link>
		<comments>http://ianma.wordpress.com/2010/01/14/weka-output-class-predictions/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 00:50:26 +0000</pubDate>
		<dc:creator>vyolian</dc:creator>
				<category><![CDATA[weka]]></category>

		<guid isPermaLink="false">http://ianma.wordpress.com/?p=358</guid>
		<description><![CDATA[I&#8217;m building a predictive model that&#8217;s time-series related. I wanted to visualize the instances I predicted incorrectly on a time-series plot. The first step, however, is to get it into a format that R is happy with. Here&#8217;s how to add a &#8220;predicted&#8221; column to your training file. BASIC (only need existing columns): In the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=358&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m building a predictive model that&#8217;s time-series related. I wanted to visualize the instances I predicted incorrectly on a time-series plot. The first step, however, is to get it into a format that R is happy with. Here&#8217;s how to add a &#8220;predicted&#8221; column to your training file.</p>
<p><strong>BASIC (only need existing columns):</strong></p>
<p>In the Weka explorer, under the classify tab, click &#8220;More Options&#8221;. Make sure the &#8220;Store predictions for visualization&#8221; is checked. </p>
<p>Click &#8220;Start&#8221; to build and run the model.</p>
<p>When finished, right-click the model name from the Result List. Click on &#8220;Visualize classifier errors.&#8221; </p>
<p>Click &#8220;Save&#8221; in that new window and the outputted file will have the new predicted column.</p>
<p>To convert the resulting ARFF file to CSV, do &#8220;java weka.core.converters.CSVSaver -i your.arff -o your.csv&#8221;</p>
<p><strong>ADVANCED (need excluded columns):</strong></p>
<p>Say you have extra columns for debugging that you need to exclude before you use it for training &#8212; think instance IDs or date markers. Here&#8217;s how you would do that.</p>
<p>In the Explorer GUI, go to the classify tab</p>
<p>Choose &#8220;FilteredClassifier&#8221; under the &#8220;meta&#8221; folder</p>
<p>Go inside the FilteredClassifier options and choose your base classifier (J48)</p>
<p>In &#8220;filter&#8221; option, remove &#8220;AllFilter&#8221; and add &#8220;Unsupervised -&gt; Attribute -&gt; Remove&#8221;. </p>
<p>In the &#8220;Remove&#8221; option, choose the attribute index that you want to remove. Then click Add. </p>
<p>You&#8217;re now ready to run your model. Follow the latter steps above in &#8220;BASIC&#8221; to go through visualization and save the arff with the predicted column.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianma.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianma.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianma.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianma.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianma.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianma.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianma.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianma.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianma.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianma.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianma.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianma.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianma.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianma.wordpress.com/358/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=358&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianma.wordpress.com/2010/01/14/weka-output-class-predictions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c601a672a28e964888d8859373528be6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vyolian</media:title>
		</media:content>
	</item>
		<item>
		<title>[R] Multiple Plots in Histogram</title>
		<link>http://ianma.wordpress.com/2009/12/24/r-multiple-plots-in-histogram/</link>
		<comments>http://ianma.wordpress.com/2009/12/24/r-multiple-plots-in-histogram/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 05:49:51 +0000</pubDate>
		<dc:creator>vyolian</dc:creator>
				<category><![CDATA[R]]></category>
		<category><![CDATA[boxplot]]></category>
		<category><![CDATA[histogram]]></category>

		<guid isPermaLink="false">http://ianma.wordpress.com/?p=355</guid>
		<description><![CDATA[Might be a misleading title but that&#8217;s what I searched for when I wanted to plot multiple series on a histogram. Looks like what I should have looked for was barplot.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=355&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Might be a misleading title but that&#8217;s what I searched for when I wanted to plot multiple series on a histogram. Looks like what I should have looked for was barplot.</p>
<pre class="brush: plain;">
  t1 &lt;- table( c(1,1,2,3,1,1,2,3,1) )
  t2 &lt;- table( c(1,2,2,3,2,2,2,2,2) )
  t &lt;- rbind(t1,t2)
  barplot(t, beside=TRUE)
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianma.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianma.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianma.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianma.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianma.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianma.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianma.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianma.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianma.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianma.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianma.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianma.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianma.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianma.wordpress.com/355/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=355&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianma.wordpress.com/2009/12/24/r-multiple-plots-in-histogram/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c601a672a28e964888d8859373528be6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vyolian</media:title>
		</media:content>
	</item>
		<item>
		<title>Dataframes in R (basic cheatsheet)</title>
		<link>http://ianma.wordpress.com/2009/12/17/dataframes-in-r-basic-cheatsheet/</link>
		<comments>http://ianma.wordpress.com/2009/12/17/dataframes-in-r-basic-cheatsheet/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 20:30:07 +0000</pubDate>
		<dc:creator>vyolian</dc:creator>
				<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://ianma.wordpress.com/?p=333</guid>
		<description><![CDATA[Construct Get/Set Manipulate Transform<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=333&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Construct</h2>
<pre class="brush: plain;">
  #construct and initialize dataframe
  df &lt;- data.frame(x=10:15, y=c(2,4,6,1,3,0))
</pre>
<pre class="brush: plain;">
  #construct empty dataframe
  df &lt;- data.frame(x=numeric(0), y=numeric(0))
  #add new row
  df &lt;- rbind(df, data.frame(x=16, y=-1))
</pre>
<h2>Get/Set</h2>
<pre class="brush: plain;">
  column_names &lt;- colnames(df)

  ys &lt;- df$y

  y_row2 &lt;- df$y[2]

  df$y[2] = 12
</pre>
<pre class="brush: plain;">
  range_xs &lt;- range(df$x)

  range_xs_and_ys &lt;- range( c(df$x, df$y) )

  num_rows &lt;- nrow(df)
</pre>
<pre class="brush: plain;">
  #select certain rows

  subset_xs &lt;- df[ (df$x &gt; 11 &amp; df$y &lt; 6),  ]

  subset_xs &lt;- df[ with(df, x &gt; 11 &amp; y &lt; 6),  ]

  subset_xs &lt;- subset(df, x &gt; 11 &amp; y &lt; 6)

  #select certain columns

  subset_ys &lt;- subset(df, select=c(x,z))

  subset_ys &lt;- subset(df, select=-c(y))
</pre>
<h2>Manipulate</h2>
<pre class="brush: plain;">
  ordered &lt;- df[ order(df$y),  ]
</pre>
<h2>Transform</h2>
<pre class="brush: plain;">
  colnames(df) = c(&quot;rename_x&quot;, &quot;rename_y&quot;)

  df &lt;- transform(df, new_z=(x+y))

  #add column
  df &lt;- merge(df, list(c=15:20), by=0, all.x=TRUE)
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianma.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianma.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianma.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianma.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianma.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianma.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianma.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianma.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianma.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianma.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianma.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianma.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianma.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianma.wordpress.com/333/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=333&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianma.wordpress.com/2009/12/17/dataframes-in-r-basic-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c601a672a28e964888d8859373528be6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vyolian</media:title>
		</media:content>
	</item>
		<item>
		<title>3 Year Dating Anniversary</title>
		<link>http://ianma.wordpress.com/2009/12/15/3-year-dating-anniversary/</link>
		<comments>http://ianma.wordpress.com/2009/12/15/3-year-dating-anniversary/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 08:02:08 +0000</pubDate>
		<dc:creator>vyolian</dc:creator>
				<category><![CDATA[community]]></category>

		<guid isPermaLink="false">http://ianma.wordpress.com/?p=331</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=331&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<span style="text-align:center; display: block;"><a href="http://ianma.wordpress.com/2009/12/15/3-year-dating-anniversary/"><img src="http://img.youtube.com/vi/b2lkUSoMk9I/2.jpg" alt="" /></a></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianma.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianma.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianma.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianma.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianma.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianma.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianma.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianma.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianma.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianma.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianma.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianma.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianma.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianma.wordpress.com/331/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=331&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianma.wordpress.com/2009/12/15/3-year-dating-anniversary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c601a672a28e964888d8859373528be6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vyolian</media:title>
		</media:content>
	</item>
		<item>
		<title>Writing Source Code in WordPress</title>
		<link>http://ianma.wordpress.com/2009/12/13/writing-source-code-in-wordpress/</link>
		<comments>http://ianma.wordpress.com/2009/12/13/writing-source-code-in-wordpress/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 01:08:49 +0000</pubDate>
		<dc:creator>vyolian</dc:creator>
				<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://ianma.wordpress.com/?p=324</guid>
		<description><![CDATA[I always find myself looking this up and the search results being really bad. This is for easy access for myself. From http://en.support.wordpress.com/code/posting-source-code/. And languages that I actually care about: bash cpp csharp css java javascript bash ruby sql xml<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=324&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I always find myself looking this up and the search results being really bad. This is for easy access for myself. From http://en.support.wordpress.com/code/posting-source-code/.</p>
<pre class="brush: plain;">
  1
    ...your code here...
  [//sourcecode] &lt;- except only single slash.
</pre>
<p>And languages that I actually care about:</p>
<ul>
<li>bash</li>
<li>cpp</li>
<li>csharp</li>
<li>css</li>
<li>java</li>
<li>javascript</li>
<li>bash</li>
<li>ruby</li>
<li>sql</li>
<li>xml</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianma.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianma.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianma.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianma.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianma.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianma.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianma.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianma.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianma.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianma.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianma.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianma.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianma.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianma.wordpress.com/324/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianma.wordpress.com&amp;blog=7017644&amp;post=324&amp;subd=ianma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianma.wordpress.com/2009/12/13/writing-source-code-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c601a672a28e964888d8859373528be6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vyolian</media:title>
		</media:content>
	</item>
	</channel>
</rss>
