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

<channel>
	<title>Truth, Computing and Fail &#187; SSF</title>
	<atom:link href="http://anomit.com/category/ssf/feed/" rel="self" type="application/rss+xml" />
	<link>http://anomit.com</link>
	<description></description>
	<lastBuildDate>Sat, 17 Apr 2010 21:14:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Working with gnuplot</title>
		<link>http://anomit.com/2008/07/05/working-with-gnuplot/</link>
		<comments>http://anomit.com/2008/07/05/working-with-gnuplot/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 19:31:10 +0000</pubDate>
		<dc:creator>anomit</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[SSF]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[gnuplot]]></category>
		<category><![CDATA[simulation]]></category>
		<category><![CDATA[SSFNet]]></category>

		<guid isPermaLink="false">http://oni.ifastnet.com/?p=57</guid>
		<description><![CDATA[I had to plot a graph for the result of the simulation models I am running. The output happens to be something like the following for a simple model consisting of just a single HTTP server and another client requesting HTTP data with certain probability distributions that specify the number of page requests in a [...]]]></description>
			<content:encoded><![CDATA[<p>I had to plot a graph for the result of the simulation models I am running. The output happens to be something like the following for a simple model consisting of just a single HTTP server and another client requesting HTTP data with certain probability distributions that specify the number of page requests in a session and also the number of objects that would be there on a requested page. Actually it uses the dml configuration file included with the SSFNet WWW package in the test directory. This is how it looks if simulated for 3600 seconds:</p>
<blockquote><p>199.27878718 [ sid 0 start 89.99831406 ] clnt 1 srv 2(0) #pages: 3 #objects: 28 total: 395466B seconds: 109.28047312 SUCCESS<br />
346.0642575 [ sid 1 start 345.81315335 ] clnt 1 srv 2(0) #pages: 1 #objects: 2 total: 18603B seconds: 0.25110415 SUCCESS<br />
1311.24547598 [ sid 2 start 901.76614728 ] clnt 1 srv 2(0) #pages: 2 #objects: 725 total: 5925458B seconds: 409.4793287 SUCCESS<br />
1339.09795493 [ sid 3 start 1338.52968641 ] clnt 1 srv 2(0) #pages: 1 #objects: 2 total: 4977B seconds: 0.56826852 SUCCESS<br />
1421.11860574 [ sid 4 start 1345.75319688 ] clnt 1 srv 2(0) #pages: 3 #objects: 6 total: 25174B seconds: 75.36540886 SUCCESS<br />
1559.72102735 [ sid 5 start 1530.85835094 ] clnt 1 srv 2(0) #pages: 2 #objects: 3 total: 9565B seconds: 28.86267641 SUCCESS<br />
1762.46745924 [ sid 6 start 1591.87139928 ] clnt 1 srv 2(0) #pages: 3 #objects: 3 total: 9898B seconds: 170.59605996 SUCCESS<br />
2020.12789558 [ sid 7 start 1822.41333981 ] clnt 1 srv 2(0) #pages: 6 #objects: 9 total: 61346B seconds: 197.71455577 SUCCESS<br />
2348.85181273 [ sid 8 start 2067.45385462 ] clnt 1 srv 2(0) #pages: 7 #objects: 14 total: 69341B seconds: 281.39795811 SUCCESS<br />
2492.52192579 [ sid 9 start 2492.49153171 ] clnt 1 srv 2(0) #pages: 1 #objects: 1 total: 2606B seconds: 0.03039408 SUCCESS<br />
2590.15405846 [ sid 10 start 2528.44871353 ] clnt 1 srv 2(0) #pages: 3 #objects: 5 total: 36481B seconds: 61.70534493 SUCCESS<br />
2631.19590927 [ sid 11 start 2593.40280719 ] clnt 1 srv 2(0) #pages: 2 #objects: 4 total: 14987B seconds: 37.79310208 SUCCESS<br />
2768.67779732 [ sid 12 start 2708.89820375 ] clnt 1 srv 2(0) #pages: 3 #objects: 3 total: 17770B seconds: 59.77959357 SUCCESS<br />
3037.57726869 [ sid 13 start 2854.45071944 ] clnt 1 srv 2(0) #pages: 5 #objects: 9 total: 33623B seconds: 183.12654925 SUCCESS<br />
3212.22081067 [ sid 14 start 3132.34843616 ] clnt 1 srv 2(0) #pages: 3 #objects: 3 total: 15702B seconds: 79.87237451 SUCCESS</p></blockquote>
<p>I made a few regexs to parse the required data from this output like the start time, end time, bytes transferred etc etc. But then I&#8217;ll save it for the next post where I&#8217;ll deal with it at length and talk about what this post is supposed to be about i.e. gnuplot.</p>
<p><a href="http://www.gnuplot.info">gnuplot</a> is really a versatile tool for plotting both 2D graphs and 3D surfaces. It comes with a very small syntax set that is easy to get hang of once you start using it. I first installed it from the repos without checking the version. So even though the current stable version is v4.2.3 , the repos had v4.0 without any patches. I decided to chuck it and rather build from source. It was a real pain. I spent two hours on getting the right configuration to have the X Windows system support installed. Tried quite a lot of flags with &#8211;with-x being included every time but still it was configured without the X windows system support. In the mean time I was being helped by a certain user on #gnuplot. I was about to give it up for the day but then we had a discussion about the possibility of X11 library paths being fucked up in ubuntu. So I decided to configure with the following flags:</p>
<p><code>$./configure --with-x --with-x-includes=/usr/include/X11 --with-x-libraries=/usr/lib/X11 --with-readline=gnu</code><br />
..and it was done!</p>
<p>There are different kinds of 2D plots in gnuplot, like lines, linespoints, points, steps etc. I was looking for something that would give me something like a bar chart for the time intervals of the different sessions. So I went for the boxes. The tricky part in plotting with boxes is that you can specify the width of each box in a separate column but the box is drawn <strong>centred</strong> around the x-axis values. This had me confused for some time before I read the help topic on boxes. So I made a minor change in my program that would put the midpoint of the interval for the x-axis values. The graph looks something like this:<br />
<a href="http://anomit.com/wordpress/wp-content/uploads/2008/10/sim.jpg"><img src="http://anomit.com/wordpress/wp-content/uploads/2008/10/sim.jpg" alt="" title="sim" class="alignnone size-medium wp-image-59" /></a></p>
<p>Resources:<br />
1. The demo directory in the source code. Minimal online explanation <a href="http://www.gnuplot.info/screenshots/index.html#demos"> here</a>.<br />
2. <a href="http://www.gnuplot.info/help.html">Collection of gnuplot tutorials</a></p>
]]></content:encoded>
			<wfw:commentRss>http://anomit.com/2008/07/05/working-with-gnuplot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Page</title>
		<link>http://anomit.com/2008/06/08/new-page/</link>
		<comments>http://anomit.com/2008/06/08/new-page/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 19:15:48 +0000</pubDate>
		<dc:creator>anomit</dc:creator>
				<category><![CDATA[SSF]]></category>

		<guid isPermaLink="false">http://oni.ifastnet.com/2008/06/08/new-page/</guid>
		<description><![CDATA[Created a new, plain Jane page at /ssf-projects that would record my progress in working with the SSF framework and the various network models supplied with it. I figured out I needed a large area for displaying the code, so dropped the idea of including it as a static page. Before that I toyed with [...]]]></description>
			<content:encoded><![CDATA[<p>Created a new, plain Jane page at <a href="http://oni.ifastnet.com/ssf-projects">/ssf-projects</a> that would record my progress in working with the SSF framework and the various network models supplied with it. I figured out I needed a large area for displaying the code, so dropped the idea of including it as a static page. Before that I toyed with the idea of creating a static page that would display only posts from the SSF category and excluding posts from that category from being displayed on the main blog. Got to know of a couple of nice ideas from <a href="http://sindhu.tumblr.com">Sindhu</a> and <a href="http://www.adityamukherjee.com">Aditya</a>. I also think that explaining what I&#8217;m working on simply wouldn&#8217;t be worth the effort as unless someone is working on that framework, it wouldn&#8217;t interest him/her.</p>
]]></content:encoded>
			<wfw:commentRss>http://anomit.com/2008/06/08/new-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
