<?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>Pseudorandom Numbers</title>
	<atom:link href="http://pseudorandomnumbers.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://pseudorandomnumbers.wordpress.com</link>
	<description>still finding patterns...</description>
	<lastBuildDate>Fri, 03 Jun 2011 10:18:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='pseudorandomnumbers.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Pseudorandom Numbers</title>
		<link>http://pseudorandomnumbers.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pseudorandomnumbers.wordpress.com/osd.xml" title="Pseudorandom Numbers" />
	<atom:link rel='hub' href='http://pseudorandomnumbers.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Subclipse and version control in Eclipse</title>
		<link>http://pseudorandomnumbers.wordpress.com/2010/06/17/subclipse-and-version-control-in-eclipse/</link>
		<comments>http://pseudorandomnumbers.wordpress.com/2010/06/17/subclipse-and-version-control-in-eclipse/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 07:09:51 +0000</pubDate>
		<dc:creator>zalenix</dc:creator>
				<category><![CDATA[Version Control]]></category>

		<guid isPermaLink="false">http://pseudorandomnumbers.wordpress.com/?p=174</guid>
		<description><![CDATA[Subversion is an open source version control system for managing changes to documents, programs, and other information stored as computer files which are part of a software project. Why do we need it at all? So that in a team of developers(or even when you are working independently) when someone messes up, one can easily [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pseudorandomnumbers.wordpress.com&amp;blog=10910824&amp;post=174&amp;subd=pseudorandomnumbers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Subversion is an open source version control system for managing changes to documents, programs, and other information stored as computer files which are part of a software project. Why do we need it at all? So that in a team of developers(or even when you are working independently) when someone messes up, one can easily get back to a previous working version. When using Eclipse as our working environment(the one which I personally use and recommend), the best way is to go for Subclipse, which is an Eclipse Team Provider plug-in providing support for Subversion within the Eclipse ID. The reason for that is the seamless integration of Subclipse into Eclipse through its Update Manager. The following steps may be followed:</p>
<ul>
<li>Start your Eclipse IDE.</li>
<li>Go over to <em>Help</em>-&gt;<em>Install New Software</em></li>
<li>In the space for &#8220;Work with&#8221;, copy paste the following:<br />
    <code>http://subclipse.tigris.org/update_1.6.x</code></p>
<li>Click on add</li>
<li>In the space for name, type <strong>Subclipse Plugin</strong> and press Ok</li>
<li>If prompted to accept terms and conditions</li>
<li>Finally restart your eclipse</li>
</ul>
<p>You should have your Subclipse configured now. Cheers to source control!! </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pseudorandomnumbers.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pseudorandomnumbers.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pseudorandomnumbers.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pseudorandomnumbers.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pseudorandomnumbers.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pseudorandomnumbers.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pseudorandomnumbers.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pseudorandomnumbers.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pseudorandomnumbers.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pseudorandomnumbers.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pseudorandomnumbers.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pseudorandomnumbers.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pseudorandomnumbers.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pseudorandomnumbers.wordpress.com/174/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pseudorandomnumbers.wordpress.com&amp;blog=10910824&amp;post=174&amp;subd=pseudorandomnumbers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pseudorandomnumbers.wordpress.com/2010/06/17/subclipse-and-version-control-in-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3ec2818eb5180b276a198e8f0fe53b84?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">zalenix</media:title>
		</media:content>
	</item>
		<item>
		<title>Compiling Flex in Eclipse using Ant</title>
		<link>http://pseudorandomnumbers.wordpress.com/2010/05/26/compiling-flex-in-eclipse-using-ant/</link>
		<comments>http://pseudorandomnumbers.wordpress.com/2010/05/26/compiling-flex-in-eclipse-using-ant/#comments</comments>
		<pubDate>Wed, 26 May 2010 10:22:47 +0000</pubDate>
		<dc:creator>zalenix</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[flex support for eclipse]]></category>
		<category><![CDATA[mxml]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[rich internet applications]]></category>

		<guid isPermaLink="false">http://pseudorandomnumbers.wordpress.com/?p=117</guid>
		<description><![CDATA[If you use Flex Builder(now called Flash Builder) for your flex development there are no &#8216;tricks&#8217; involved, so to speak, in compiling flex apps(Imagine having to pay a fortune and then face things NOT working. Annoying isn&#8217;t it?) But when it comes to doing things the open source way, we usually experience deadlocks where we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pseudorandomnumbers.wordpress.com&amp;blog=10910824&amp;post=117&amp;subd=pseudorandomnumbers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you use Flex Builder(now called Flash Builder) for your flex development there are no &#8216;tricks&#8217; involved, so to speak, in compiling flex apps(Imagine having to pay a fortune and then face things NOT working. Annoying isn&#8217;t it?) But when it comes to doing things the open source way, we usually experience deadlocks where we cannot decide which approach to follow and we cry &#8220;HELP&#8221;.</p>
<p>It&#8217;s nothing unusual if that is what happens to you(I experience it all the time <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ). But what we can do is share the knowledge we have so that we spend less time looking for solutions and more time working on them. That is exactly what I am here for. If you have read my blog entry about &#8220;<a href="http://pseudorandomnumbers.wordpress.com/2010/05/25/setting-up-the-eclipse-ide-for-flex/" target="_blank">Setting up the Eclipse IDE for Flex</a>&#8220;, this tutorial is a direct continuation. Although people who have already set-up their preferred IDE&#8217;s will also benefit from this tutorial.</p>
<ul>
<li>We will be using the Apache Ant for our compilation tasks. For using the ant build tool, Apache ant run time environment is required to be installed(which is already installed if you have Flex SDK). No work to be done here.</li>
<li>Running flex action script code on Eclipse requires Java runtime environment to be installed.
<ul>
<li>Fire up the terminal(if you are on Linux) and type the following:<br />
<code>sudo apt-get install sun-java6-jdk</code><br />
and press enter. Just accept the terms and conditions and then , you are good to go.</li>
<li>Otherwise, you also have the option of going over to the official Sun site(now owned by Oracle) and download the latest JDK version. This <a href="http://java.sun.com/javase/downloads/index.jsp" target="_blank">link</a> might help.</li>
</ul>
</li>
<li>I am assuming you already have the Eclipse IDE installed on your machine. You may want to take a look at my previous post(link above) for guidelines.</li>
</ul>
<p>Now, the following part needs to be done for each project you make in your Eclipse. Yes you got that right, for EACH project(Hey! what are you grumbling about? Don&#8217;t forget you are getting all of this for free; even reading my blog). Alright let&#8217;s look at the steps:</p>
<ul>
<li>Make a new Project in your Eclipse.</li>
<li>Add a .mxml file in this project, say main.mxml</li>
<li>Type in the following example code(you can write any flex code here. This one&#8217;s just an example)::
<div id="_mcePaste">&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;</div>
<div id="_mcePaste">&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;&gt;</div>
<div id="_mcePaste">&lt;mx:Label text=&#8221;Hello World!!&#8221;/&gt;</div>
<div id="_mcePaste">&lt;mx:Button label=&#8221;This button does nothing&#8221; /&gt;</div>
<div id="_mcePaste">&lt;/mx:Application&gt;</div>
<p></strong>
</ul>
<p>Now comes the most important bit: the build.xml file. What we basically want to do is call the mxml compiler located in the flex directory of your hard drive, with the ant build file through eclipse, for compiling our flex project.</p>
<ul>
<li>For this create another file named &#8220;build.xml&#8221; in the same Project. For getting the source code, contact me.
<p>Note that you have to change the 3 paths mentioned in the build.xml(that you will receive),</p>
<li>path to your mxmlc file. Note:: if you are working in windows, the location will be something like:
<ul> C:\Program Files\AdobeFlex\bin\mxmlc.exe</ul>
</li>
<li> path to your output folder</li>
<li> path to your main .mxml file according to your own settings.</li>
</ul>
<p>Now to compile your flex app, all you have to do is open the build file in Eclipse, right click somewhere in the body of the file, and then click-&gt;Run As-&gt;Ant Build. That&#8217;s it! Congratulations, you have complied your first Flex app. But a lot more needs to be done to be called a &#8220;Flex Developer&#8217;. I will be posting some material from time to time on flex and related items. Till then, happy Flex-ing <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pseudorandomnumbers.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pseudorandomnumbers.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pseudorandomnumbers.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pseudorandomnumbers.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pseudorandomnumbers.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pseudorandomnumbers.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pseudorandomnumbers.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pseudorandomnumbers.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pseudorandomnumbers.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pseudorandomnumbers.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pseudorandomnumbers.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pseudorandomnumbers.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pseudorandomnumbers.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pseudorandomnumbers.wordpress.com/117/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pseudorandomnumbers.wordpress.com&amp;blog=10910824&amp;post=117&amp;subd=pseudorandomnumbers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pseudorandomnumbers.wordpress.com/2010/05/26/compiling-flex-in-eclipse-using-ant/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3ec2818eb5180b276a198e8f0fe53b84?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">zalenix</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting up the Eclipse IDE for Flex</title>
		<link>http://pseudorandomnumbers.wordpress.com/2010/05/25/setting-up-the-eclipse-ide-for-flex/</link>
		<comments>http://pseudorandomnumbers.wordpress.com/2010/05/25/setting-up-the-eclipse-ide-for-flex/#comments</comments>
		<pubDate>Tue, 25 May 2010 07:15:16 +0000</pubDate>
		<dc:creator>zalenix</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[flex support for eclipse]]></category>
		<category><![CDATA[mxml]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[rich internet applications]]></category>

		<guid isPermaLink="false">http://pseudorandomnumbers.wordpress.com/?p=59</guid>
		<description><![CDATA[It&#8217;s been quite a long time since I did some serious coding work. But something came along this Summer and I decided to dive into it. The project I am working on basically uses the Adobe Flex framework(it is open source) for building RIA(rich internet applications). The whole task of setting up an IDE for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pseudorandomnumbers.wordpress.com&amp;blog=10910824&amp;post=59&amp;subd=pseudorandomnumbers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been quite a long time since I did some serious coding work. But something came along this Summer and I decided to dive into it. The project I am working on basically uses the Adobe Flex framework(it is open source) for building RIA(rich internet applications). The whole task of setting up an IDE for Flex was so cumbersome, that I thought it would be nice to have a small tutorial, for all those future Flex developers, so that they do not have to go through all the trouble that I faced. Of course, there is always the option of buying yourself the <em>Adobe Flash Builder 4 Premium Edition</em>, the development environment provided by Adobe for only US $699.00 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . I prefer to go the Open Source way.</p>
<p>Alright. Without further ado let&#8217;s get to business::</p>
<ul>
<li>Get the latest version of the Adobe Flex SDK. At the writing of this post, it was Flex SDK version 4.0.0.14159. You can get the current latest version <a href="http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK" target="_blank">HERE</a>.</li>
<li>Next get your preferred IDE. I would strongly recommend Eclipse as..<br />
<blockquote><p>i<em>t is a highly successful open source application platform&#8230;. also an open source ecosystem populated by hundreds of companies and thousands of developers producing and consuming components</em>.</p></blockquote>
<p>As quoted from the Eclipse site. And since even the rest of the post is written assuming you have Eclipse on your machine, you better get it. You can download Eclipse from <a href="http://www.eclipse.org/downloads/" target="_blank">HERE</a>. [<strong>Make sure you download the Eclipse IDE for Java and Report Developers, about 220 MB file</strong>]</li>
<li>Next we need the Eclipse Web Tools Platform to be installed. More specifically we need the Web Standards portion for editing the .mxml files. The following are the four packages need to be downloaded::
<ul>
<li>emf-sdo-xsd-SDK-2.5.0..zip [<a href="http://www.eclipse.org/downloads/download.php?file=/modeling/emf/emf/downloads/drops/2.5.0/R200906151043/emf-xsd-SDK-2.5.0.zip" target="_blank">download link</a>]</li>
<li>GEF-SDK-3.5.2.zip [<a href="http://www.eclipse.org/downloads/download.php?file=/tools/gef/downloads/drops/3.5.2/R201002241200/GEF-SDK-3.5.2.zip" target="_blank">download link</a>]</li>
<li>JEM-SDK-1.2.3_jem.zip [<a href="http://archive.eclipse.org/tools/ve/downloads/drops/R-1.2.3_jem-200701301117/JEM-SDK-1.2.3_jem.zip" target="_blank">direct download link</a>]</li>
<li>wtp-wst-R-1.5.3.zip (Web Standards Tools) [<a href="http://archive.eclipse.org/webtools/downloads/drops/R1.5/R-1.5.3-200702082048" target="_blank">download link</a>] (Download the file wtp-sdk-R-1.5.3.zip)</li>
</ul>
<p>Note that the versions mentioned here are the ones which were the latest during the writing of this post. Please check for newer versions.</li>
<li>Now, extract each of the four files and copy the contents of the Features and Plugins directories of each package into Eclipse&#8217;s Features and Plugins directories respectively. Restart Eclipse if it is running. Now WST(Web Standards Tools) is installed in your machine. Congratulations!! Give yourself a pat on the back <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . But wait, it is not over yet. A little more needs to be done.</li>
<li>By now, we have got the plugins installed. We now need to configure Eclipse for proper syntax highlighting of .mxml files. Start Eclipse and select a workspace on your hard drive, if you haven&#8217;t done it already. All your Flex apps will reside in this directory when you make new projects. Ok, now from the Menu Bar select Window-&gt;Preferences. Then expand &#8216;General&#8217; and select &#8216;Content Types&#8217;. Expand Text and click on(do not expand) XML. In the file associations, select &#8216;Add&#8217; and in the Content Type, write &#8220;*.mxml&#8221; without the quotes. Click on OK and then once again, to close the preferences window.Eclipse should now recognize any mxml tags using the mx: namespace and highlight them with proper colors. With all those colors in your editor, you will surely experience the joy of coding <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</li>
</ul>
<p>Flex uses two languages for its working: mxml and ActionScript. In the above segment we saw how to add code highlighting for .mxml files. But as you move ahead in Flex development, you will discover that coding in ActionScript enables you to leave hard-coding practices of mxml, and introduces more opportunities for re-use of code. So might as well add <em>ActionScript Support for Eclipse</em>.</p>
<p>This part is way easier than the previous segment:support for mxml.</p>
<ul>
<li>Start Eclipse. In the Menu bar, select Help-&gt;Install new Software. Click the <em>Add</em>button. Type ASDT in the space for name and type:<em>http://aseclipseplugin.sourceforge.net/updates</em>in the space for <em>Location</em> (ASDT is basically ActionScript Development Tools, which we want to install in our Eclipse). Select <em>Release</em> or <em>Beta</em> whichever one you want and click on Next. It will show &#8220;calculating dependencies and requirements&#8221;.</li>
<li>In the next page, select the file shown in the Panel and click Next. Accept terms and click Finish. Eclipse will now download the required files for its working. Accept any warnings that may crop up in between. And that&#8217;s it! Restart Eclipse and next time when you make a .as (ActionScript file), it will have code highlighting and syntax support. Presto!</li>
</ul>
<p>This concludes the tutorial for <em>Setting up the Eclipse IDE for Flex</em>. So, what are you waiting for? Go out there and make some breathtaking Flex apps. Cheers! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
<p>For compiling Flex apps in Eclipse, I have a separate tutorial <a href="http://pseudorandomnumbers.wordpress.com/2010/05/26/compiling-flex-in-eclipse-using-ant/" target="_blank">here</a>. Enjoy!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pseudorandomnumbers.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pseudorandomnumbers.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pseudorandomnumbers.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pseudorandomnumbers.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pseudorandomnumbers.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pseudorandomnumbers.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pseudorandomnumbers.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pseudorandomnumbers.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pseudorandomnumbers.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pseudorandomnumbers.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pseudorandomnumbers.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pseudorandomnumbers.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pseudorandomnumbers.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pseudorandomnumbers.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pseudorandomnumbers.wordpress.com&amp;blog=10910824&amp;post=59&amp;subd=pseudorandomnumbers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pseudorandomnumbers.wordpress.com/2010/05/25/setting-up-the-eclipse-ide-for-flex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3ec2818eb5180b276a198e8f0fe53b84?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">zalenix</media:title>
		</media:content>
	</item>
		<item>
		<title>Python and NetworkX</title>
		<link>http://pseudorandomnumbers.wordpress.com/2009/12/14/python-and-networkx/</link>
		<comments>http://pseudorandomnumbers.wordpress.com/2009/12/14/python-and-networkx/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 14:15:39 +0000</pubDate>
		<dc:creator>zalenix</dc:creator>
				<category><![CDATA[Networks]]></category>
		<category><![CDATA[graph theory]]></category>
		<category><![CDATA[netwokx]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[social networks]]></category>

		<guid isPermaLink="false">http://pseudorandomnumbers.wordpress.com/?p=20</guid>
		<description><![CDATA[I have been trying to use the NetworkX Python package in my work with Social Networks. But I faced some confusion in trying to link it to my Python Interpreter. Finally, I have found a solution [:)] after hours of mind racking. The following steps may be followed: 1:      If you do not [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pseudorandomnumbers.wordpress.com&amp;blog=10910824&amp;post=20&amp;subd=pseudorandomnumbers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been trying to use the NetworkX Python package in my work with Social Networks. But I faced some confusion in trying to link it to my Python Interpreter. Finally, I have found a solution [:)] after hours of mind racking. The following steps may be followed:</p>
<p>1:      If you do not already have Python in your system [:-o], download it from <a target="_blank" href="http://www.python.org/download/">here</a>. If you already have Python, proceed to the next step.</p>
<p>For those who are sceptical about using Python, should take a break and visit <a target="_blank" href="http://www.linuxjournal.com/article/3882/">this link</a>. Seriously though, Python provides a much simpler code structure, and does not scare off starters. First timers will realise the joy of programming using Python. And particularly for working in Networks and Graphs, Python has this NetworkX library, which is very clean and free from all those lines of code. Of course, one can also work in C++ or for that matter, JAVA. But python provides you with the freedom and very less headache!</p>
<p>2:     Now once you have installed python in your system, you need to download NetworkX package from <a target="_blank" href="http://networkx.lanl.gov/download/networkx/">here</a>. Note that you are NOT to use the .egg file, rather take the latest version zip file or .tar.gz</p>
<p>3:     I assume that you have WinZip(or any other unzipping facility). Extract your zip(or .tar.gz.) file using that. Open the folder to find a folder named &#8220;networkx&#8221;. Copy this folder to your Python directory (e.g. C:\python\). You can also <em>install </em>networkx in your system. If you want to do so, read up the INSTALL.txt file(also in the .zip folder) and follow the provided instructions. I personally found the former quite an easier and hassle free way to integrate NetworkX in Python, but you are welcome to learn it the harder(and dirtier) way.</p>
<p>4:     Next and the last step is to start  your Python Interactive interpreter and type the following at the prompt:</p>
<p><code><span style="font-family:courier;">&gt;&gt;&gt;import networkx as nx</span></code></p>
<p>and press ENTER. If you get</p>
<p><code><span style="font-family:courier;">&gt;&gt;&gt;import networkx as nx</span><br />
<span style="font-family:courier;"> </span><br />
<span style="font-family:courier;">&gt;&gt;&gt;</span></code></p>
<p>then you are done. Congrats !!</p>
<p>If  however you get some error regarding <em>module does not exist</em>, then you need to review your steps in integrating NetworkX. Start over and carefully check each step. With some luck, you will succeed.</p>
<p>Happy Networking!! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pseudorandomnumbers.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pseudorandomnumbers.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pseudorandomnumbers.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pseudorandomnumbers.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pseudorandomnumbers.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pseudorandomnumbers.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pseudorandomnumbers.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pseudorandomnumbers.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pseudorandomnumbers.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pseudorandomnumbers.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pseudorandomnumbers.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pseudorandomnumbers.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pseudorandomnumbers.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pseudorandomnumbers.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pseudorandomnumbers.wordpress.com&amp;blog=10910824&amp;post=20&amp;subd=pseudorandomnumbers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pseudorandomnumbers.wordpress.com/2009/12/14/python-and-networkx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3ec2818eb5180b276a198e8f0fe53b84?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">zalenix</media:title>
		</media:content>
	</item>
	</channel>
</rss>
