<?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>Malshan&#8217;s Linux Blog</title>
	<atom:link href="https://lmpeiris.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://lmpeiris.wordpress.com</link>
	<description>It's a free &#38; open source universe</description>
	<lastBuildDate>Thu, 01 Nov 2012 04:24:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='lmpeiris.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>https://secure.gravatar.com/blavatar/50fbb53ba7f0275e57b0c345046cb7e1315246371bc63460811ca76a30ff7b48?s=96&#038;d=https%3A%2F%2Fs0.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Malshan&#8217;s Linux Blog</title>
		<link>https://lmpeiris.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="https://lmpeiris.wordpress.com/osd.xml" title="Malshan&#039;s Linux Blog" />
	<atom:link rel='hub' href='https://lmpeiris.wordpress.com/?pushpress=hub'/>
	<item>
		<title>How to write clean code : a summary</title>
		<link>https://lmpeiris.wordpress.com/2012/11/01/how-to-write-clean-code-a-summary/</link>
					<comments>https://lmpeiris.wordpress.com/2012/11/01/how-to-write-clean-code-a-summary/#comments</comments>
		
		<dc:creator><![CDATA[Malshan Peiris]]></dc:creator>
		<pubDate>Thu, 01 Nov 2012 04:24:14 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Styles]]></category>
		<category><![CDATA[clean]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[convention]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[readable]]></category>
		<guid isPermaLink="false">http://lmpeiris.wordpress.com/?p=134</guid>

					<description><![CDATA[This is basically a summary from Clean code : A handbook of agile software craftsmanship written by Robert C. Martin. This is done as an assignment work which is targeted at making programming students to read books for themselves. If this violates any copyright laws please let me know, although i had used my opinion [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>This is basically a summary from Clean code : A handbook of agile software craftsmanship written by Robert C. Martin. This is done as an assignment work which is targeted at making programming students to read books for themselves. If this violates any copyright laws please let me know, although i had used my opinion as possible.</p>
<p>You can find the original book at this <a title="amazon link to the book" href="http://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882" target="_blank">amazon page</a>.</p>
<p>Note: This blog article is still under construction.</p>
<p><strong>Introduction</strong></p>
<p><strong>Names can talk for themselves</strong></p>
<ul>
<li>If a variable, class or method name needs a separate comment to identify itself, the name probably needs to change.</li>
<li>Names should not include misinformation. For example, a grouped set of subscribers should not be identified as &#8216;subscriber_list&#8217; if it&#8217;s not a list.</li>
<li>Names should not look similar at the first sight, as people who are reading code often don&#8217;t read the full name.</li>
<li>Avoid using l and O in small variable names as it could be easily misread for 1 and 0 ( one and zero).</li>
<li>Do not use misspelling as a tool to create new names (ex: listenToAdapter, listenToAdaptor).</li>
<li>Use pronounceable names as possible, which could be easy when at the code reviews.</li>
<li>Remove obvious redundant words from the names like the, a , an, class, var.</li>
<li>Names should be unique enough to easily search, if needed. This is strictly needed if the scope is high.</li>
<li>No need to shorten names as we have more advanced languages and GUI tools now days.</li>
<li>Use nouns (or nouns which can be used as verbs) for class names and verbs for method names.</li>
<li>Any name should be generally understood by any programmer of any demographics.</li>
<li>Use one word for a similar concept throughout the code base.</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://lmpeiris.wordpress.com/2012/11/01/how-to-write-clean-code-a-summary/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/537b0259f047e96e38704bac71db5e0e41beba73be6b4c312af66f51e53d93fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">malshanpeiris</media:title>
		</media:content>
	</item>
		<item>
		<title>Change of address &#8211; from wordpress.com to lmpeiris.com</title>
		<link>https://lmpeiris.wordpress.com/2011/02/03/change-of-address-from-wordpress-com-to-lmpeiris-com/</link>
					<comments>https://lmpeiris.wordpress.com/2011/02/03/change-of-address-from-wordpress-com-to-lmpeiris-com/#respond</comments>
		
		<dc:creator><![CDATA[Malshan Peiris]]></dc:creator>
		<pubDate>Wed, 02 Feb 2011 19:14:54 +0000</pubDate>
				<category><![CDATA[1]]></category>
		<category><![CDATA[Linux News]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lmpeiris]]></category>
		<category><![CDATA[malshan]]></category>
		<category><![CDATA[peiris]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://lmpeiris.wordpress.com/?p=130</guid>

					<description><![CDATA[The site is in the process of moving to linux.lmpeiris.com in the hope to enable additional services than just wordpress. All the new posts will be posted to the new blog address above; so it is recommended to visit the above site. Possibility to redirect  lmpeiris.wordpress.com to linux.lmpeiris.com by automatic redirection is under consideration, but [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>The site is in the process of moving to <a href="http://linux.lmpeiris.com/" target="_blank">linux.lmpeiris.com</a> in the hope to enable additional services than just wordpress.</p>
<p>All the new posts will be posted to the new blog address above; so it is recommended to visit the above site.</p>
<p>Possibility to redirect  lmpeiris.wordpress.com to <a href="http://linux.lmpeiris.com" target="_blank">linux.lmpeiris.com</a> by automatic redirection is under consideration, but it comes at a financial charge. At the mean time, you may need to click the above hyperlink to visit the new site.</p>
<p>Cheers</p>
<p>Malshan Peiris (lmpeiris)</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lmpeiris.wordpress.com/2011/02/03/change-of-address-from-wordpress-com-to-lmpeiris-com/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/537b0259f047e96e38704bac71db5e0e41beba73be6b4c312af66f51e53d93fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">malshanpeiris</media:title>
		</media:content>
	</item>
		<item>
		<title>Play music on command line</title>
		<link>https://lmpeiris.wordpress.com/2011/01/19/play-music-on-command-line/</link>
					<comments>https://lmpeiris.wordpress.com/2011/01/19/play-music-on-command-line/#respond</comments>
		
		<dc:creator><![CDATA[Malshan Peiris]]></dc:creator>
		<pubDate>Tue, 18 Jan 2011 19:23:16 +0000</pubDate>
				<category><![CDATA[Audio / Video]]></category>
		<category><![CDATA[console based]]></category>
		<category><![CDATA[linux apps]]></category>
		<category><![CDATA[Linux codecs]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[moc]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[player]]></category>
		<guid isPermaLink="false">http://lmpeiris.wordpress.com/?p=127</guid>

					<description><![CDATA[There are many popular audio players for linux; to name a few they would be XMMS, audacious, amarock . But all of these players are GUI-based; and they does not feel like &#8216;home&#8217; when you are so addicted to using the command line. So i did some searching on possible options, and i found many. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><!-- p { margin-bottom: 0.08in; }a:link {  } --><span style="font-size:small;">There are many popular audio players for linux; to name a few they would be XMMS, audacious, amarock . But all of these players are GUI-based; and they does not feel like &#8216;home&#8217; when you are so  addicted to using the command line. So i did some searching on possible options, and i found many. I&#8217;m only listing two of the best here, mplayer and Music On Console (Player) or MOC. The command line players have the advantage of less crashes, less usage of resources, playability in CUI only OS&#8217;s, remote logging to play sound files on a remote machine. The MPD (music player daemon) server can stream audio using any sound output server to a remote machine.</span></p>
<p><span style="font-size:small;"><br />
</span></p>
<p><span style="font-size:small;"><span style="text-decoration:underline;"><strong>Music on Console (MOC or MOCP)</strong></span> <a href="http://moc.daper.net/">(homepage)</a></span></p>
<p><span style="font-size:small;"></p>
<div style="width: 410px" class="wp-caption alignnone"><a href="http://farm6.static.flickr.com/5008/5367941714_178d877e58_b.jpg" target="_blank"><img class=" " title="moc" src="https://i0.wp.com/farm6.static.flickr.com/5008/5367941714_178d877e58.jpg" alt="moc player" width="400" height="258" /></a><p class="wp-caption-text">MOC 2.44 running on my fedora 14 (64 bit)</p></div>
<p></span></p>
<p><span style="font-size:small;">The MOC has a decent UI for a CLI program. Consists of two panes, one displaying the music files in the current directory and the other showing the current playlist. Play stats and tag info are displayed in the bottom, with the progress bar. Navigation within playlist and song can be done using keyboard. It&#8217;s updated support for pulse, OSS and alsa output.</span></p>
<p><span style="font-size:small;"><span style="text-decoration:underline;"><strong>Installation</strong></span></span></p>
<p><span style="font-size:small;">for debian based sytems use, <em><strong>sudo apt-get install moc</strong></em></span></p>
<p><span style="font-size:x-small;"><span style="font-size:small;">for rpm based systems, it is unlikely that moc would be on the repository. Try yum install moc and see. If that&#8217;s the case, we need to compile from source which can be downloaded from <a href="ftp://ftp.daper.net/pub/soft/moc/stable/moc-2.4.4.tar.bz2">this link. </a> You would need following packages</span></span></p>
<p><span style="font-size:small;"><strong>for mp3 support:</strong> <em><strong>yum install libmad-devel libid3tag-devel</strong></em></span></p>
<p><span style="font-size:small;"><strong>for wma,mp4,aac,ra support:</strong> <em><strong>yum install ffmpeg-devel</strong></em> (This caused a compile error due to ffmpeg-devel relocating its .h files .. so please don&#8217;t do this if you know how to use linking). To activate support for other codecs, see README.</span></p>
<p><span style="font-size:small;">then decompress the file, go to the folder and type usual </span></p>
<p><span style="font-size:small;"><em><strong>./configure &amp;&amp; make &amp;&amp; install</strong></em> as root to compile and install. See <a href="https://lmpeiris.wordpress.com/2009/02/21/installing-programs-from-source-code/">my article on compiling from source</a><a href="../2009/02/21/installing-programs-from-source-code/"></a> for more information.</span></p>
<p><span style="font-size:small;">After installation to run, type</span></p>
<p><span style="font-size:small;"><em><strong>mocp &lt;filename&gt;</strong></em></span></p>
<p><span style="font-size:small;">press q and type <em><strong>mocp -x</strong></em> to end program. Otherwise the server will still be running <img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></span></p>
<p><span style="font-size:small;"><span style="text-decoration:underline;"><strong> </strong></span></span></p>
<p><span style="font-size:small;"><span style="text-decoration:underline;"><strong>Mplayer</strong></span></span></p>
<p><span style="font-size:small;"><span style="text-decoration:underline;"><strong></p>
<div style="width: 410px" class="wp-caption alignnone"><strong><a href="http://farm6.static.flickr.com/5085/5367941720_9439080218_b.jpg" target="_blank"><img class=" " title="mplayer" src="https://i0.wp.com/farm6.static.flickr.com/5085/5367941720_9439080218.jpg" alt="mplayer" width="400" height="319" /></a></strong><p class="wp-caption-text">Mplayer running on console</p></div>
<p></strong></span></span></p>
<p><span style="font-size:small;">This doesn&#8217;t need much introduction; which is as my perception is the best multimedia player ever, which can play videos too. Apart from the gmplayer (or mplayer-gui), the mplayer command can be used to play music on command line, with showing in depth info. Mplayer can play any audio file, it&#8217;s heavily stable and takes less resources. You can see <a href="https://lmpeiris.wordpress.com/2008/11/01/adding-av-support-for-linux-install-mplayer/">my previous post on mplayer.</a><br />
</span></p>
<p><span style="font-size:small;">to install,</span></p>
<p><span style="font-size:small;"><em><strong>sudo apt-get install gmplayer </strong></em>(for debian based systems)</span></p>
<p><span style="font-size:small;"><em><strong>yum install mplayer-gui</strong></em> (for rpm based systems)</span></p>
]]></content:encoded>
					
					<wfw:commentRss>https://lmpeiris.wordpress.com/2011/01/19/play-music-on-command-line/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/537b0259f047e96e38704bac71db5e0e41beba73be6b4c312af66f51e53d93fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">malshanpeiris</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5008/5367941714_178d877e58.jpg" medium="image">
			<media:title type="html">moc</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5085/5367941720_9439080218.jpg" medium="image">
			<media:title type="html">mplayer</media:title>
		</media:content>
	</item>
		<item>
		<title>cowsay:How to make a cow talk on terminal startup</title>
		<link>https://lmpeiris.wordpress.com/2011/01/17/cowsayhow-to-make-a-cow-talk-on-terminal-startup/</link>
					<comments>https://lmpeiris.wordpress.com/2011/01/17/cowsayhow-to-make-a-cow-talk-on-terminal-startup/#respond</comments>
		
		<dc:creator><![CDATA[Malshan Peiris]]></dc:creator>
		<pubDate>Mon, 17 Jan 2011 12:34:53 +0000</pubDate>
				<category><![CDATA[console based]]></category>
		<category><![CDATA[linux apps]]></category>
		<category><![CDATA[bashrc]]></category>
		<category><![CDATA[cookie]]></category>
		<category><![CDATA[cowsay]]></category>
		<category><![CDATA[cowthink]]></category>
		<category><![CDATA[fortune]]></category>
		<category><![CDATA[mint]]></category>
		<category><![CDATA[mod]]></category>
		<category><![CDATA[welcome]]></category>
		<guid isPermaLink="false">http://lmpeiris.wordpress.com/?p=120</guid>

					<description><![CDATA[Cowsay/cowthink (visit homepage at http://www.nog.net/~tony/warez/cowsay.shtml ) Now you know what they use in Linux Mint to make a cow “talk” when the terminal starts :). I&#8217;m going to tell you how to do it in a much more awesome way. The programs they use are cowsay and fortune-mode. Cowsay can show any string, a text [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><!-- p { margin-bottom: 0.08in; }a:link {  } --><span style="font-size:small;"><span style="text-decoration:underline;"><strong>Cowsay/cowthink (visit homepage at</strong></span></span><span style="font-size:small;"> <a href="http://www.nog.net/%7Etony/warez/cowsay.shtml">http://www.nog.net/~tony/warez/cowsay.shtml )</a></span></p>
<p><span style="font-size:small;"> </span></p>
<div style="width: 410px" class="wp-caption alignnone"><a href="http://farm6.static.flickr.com/5007/5363177618_ceeb7789c8_b.jpg" target="_blank"><img class=" " title="the bashrc hack" src="https://i0.wp.com/farm6.static.flickr.com/5007/5363177618_ceeb7789c8.jpg" alt="" width="400" height="266" /></a><p class="wp-caption-text">My hacked terminal startup using cowsay and figlet</p></div>
<p>Now you know what they use in Linux Mint to make a cow “talk” when the terminal starts :). I&#8217;m going to tell you how to do it in a much more awesome way. The programs they use are <em>cowsay</em> and f<em>ortune-mode. Cowsay</em> can show any string, a text output of a command,program to appear as a dialog generated by an ascii art (including cow).</p>
<p><span style="font-size:small;"><strong>You can install program by</strong></span></p>
<p><span style="font-size:small;"><em><strong>sudo apt-get install cowsay </strong></em> (in debian-based systems)</span></p>
<p><span style="font-size:small;"><em><strong>yum install cowsay</strong></em> (rpm based sytems)</span></p>
<p><span style="font-size:small;">Now try these in the terminal </span></p>
<p><span style="font-size:small;"><em>cowsay &#8220;$USER is my boyfriend&#8221;</em> ($ shows string value of environmental variable USER)</span></p>
<p><span style="font-size:small;"><em>ls | cowsay</em> (output of ls is piped to cowsay)</span></p>
<p><span style="font-size:small;">There are options to decide the appearance of the cow and its eyes. For example the switch -d will cause the cow to appear dead. But the most important hack can be done by -f which forces to use a files called cowsay files, so that we can get anything other than cow. Type </span></p>
<p><span style="font-size:small;"><em><strong>cowsay -l </strong></em></span></p>
<p><span style="font-size:small;">to find the path of these files. Try each file with following syntax</span></p>
<p><span style="font-size:small;"><em><strong>cowsay -f &lt;cowfile name, without extension&gt; &lt;string to display&gt;</strong></em></span></p>
<p><span style="font-size:small;"><em>ex: cowsay -f tux $USER</em></span></p>
<p><span style="font-size:small;">The cowfiles can be edited to appear as we want. Only edit the stuff rounded by the circle. Do not edit anything else, and save by giving a different file name. Or we can simply download an ascii art from internet and replace the stuff in rounded area.</span></p>
<p><span style="font-size:small;"> </span></p>
<div style="width: 410px" class="wp-caption alignnone"><a href="http://farm6.static.flickr.com/5005/5363177604_b98423bbe4_z.jpg" target="_blank"><img class=" " title="cowf" src="https://i0.wp.com/farm6.static.flickr.com/5005/5363177604_b98423bbe4.jpg" alt="" width="400" height="198" /></a><p class="wp-caption-text">Editing a cowfile - only edit stuff on the red area</p></div>
<p>&nbsp;</p>
<p><span style="font-size:small;">You can download ascii arts from sites like <a title="ascii gallery" href="http://www.chris.com/ascii/" target="_blank">http://www.chris.com/ascii/</a> or simply you can build your own using these programs <a href="http://www.ascii-art.de/tools/">http://www.ascii-art.de/tools/</a>. I&#8217;m not going to mention about them here. But the program Jave5 is a good one with a easy to use GUI, and runs on linux.</span></p>
<p><a title="jave download" href="http://www.jave.de/download/download.html" target="_blank"><span style="font-size:small;">http://www.jave.de/download/download.html</span></a></p>
<p><span style="font-size:small;">Linux mint uses an additional program called fortune-mod to get&#8217;s stuff. Other than the command cowsay, cowthink can be used to appear like the cow is thinking, not speaking.<br />
</span></p>
<p><span style="font-size:small;"><span style="text-decoration:underline;"><strong>Fortune-mod (The classic fortune cookie program)</strong></span></span></p>
<p><span style="font-size:small;"><em>Fortune-mod </em>is so far the funniest FOSS program i have come across with. It generates a random text string of a joke, a saying by a great person, something useful etc&#8230; Can&#8217;t be saying it all just try it by yourself. I haven&#8217;t seen the same thing twice after using it for some time.</span></p>
<p><span style="font-size:small;"><em><strong>Sudo apt-get install fortune-mod </strong></em>(for debian based systems)</span></p>
<p><span style="font-size:small;"><em><strong>yum install fortune-mod </strong></em>(for rpm based systems)</span></p>
<p><span style="font-size:small;">to use type <em><strong>fortune</strong></em> in the command line.</span></p>
<p><span style="font-size:small;">This can piped to above cowsay easily </span></p>
<p><span style="font-size:small;">ex:<em><strong> fortune | cowsay</strong></em></span></p>
<p><span style="font-size:small;"><em><strong> </strong></em></span></p>
<div style="width: 362px" class="wp-caption alignnone"><em><strong><em><strong><img class=" " src="https://i0.wp.com/farm6.static.flickr.com/5041/5363177622_23e1021202.jpg" alt="" width="352" height="250" /></strong></em></strong></em><p class="wp-caption-text">a fortune | cowsay piped output</p></div>
<p><em><strong> </strong></em></p>
<p><span style="font-size:small;">for other options of fortune, refer man pages.</span></p>
<p><span style="font-size:small;"><span style="text-decoration:underline;"><strong>Making the cow talk </strong></span></span></p>
<p><span style="font-size:small;">To make this show on terminal startup (or run any program) you can put the above command in your bashrc file.</span></p>
<p><span style="font-size:small;"><em><strong>gedit  ~/.bashrc </strong></em></span></p>
<p><span style="font-size:small;">and add above commands, as you wish in it. You can add figlet command too. Open a new terminal to see the change.</span></p>
<p><span style="font-size:small;">So, mine produced something like the first picture in this post by these commands</span></p>
<p><span style="font-size:small;"><em>cd ~/Desktop/figlet222/ </em></span></p>
<p><span style="font-size:small;"><em>./figlet -c -f script &#8220;lmpeiris rocks&#8221; </em></span></p>
<p><span style="font-size:small;"><em>fortune | cowsay -f love </em></span></p>
<p><span style="font-size:small;"><em>cd ~</em></span></p>
]]></content:encoded>
					
					<wfw:commentRss>https://lmpeiris.wordpress.com/2011/01/17/cowsayhow-to-make-a-cow-talk-on-terminal-startup/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/537b0259f047e96e38704bac71db5e0e41beba73be6b4c312af66f51e53d93fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">malshanpeiris</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5007/5363177618_ceeb7789c8.jpg" medium="image">
			<media:title type="html">the bashrc hack</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5005/5363177604_b98423bbe4.jpg" medium="image">
			<media:title type="html">cowf</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5041/5363177622_23e1021202.jpg" medium="image" />
	</item>
		<item>
		<title>Figlet: Show text in ascii art</title>
		<link>https://lmpeiris.wordpress.com/2011/01/17/figlet-show-text-in-ascii-art/</link>
					<comments>https://lmpeiris.wordpress.com/2011/01/17/figlet-show-text-in-ascii-art/#respond</comments>
		
		<dc:creator><![CDATA[Malshan Peiris]]></dc:creator>
		<pubDate>Mon, 17 Jan 2011 08:36:31 +0000</pubDate>
				<category><![CDATA[console based]]></category>
		<category><![CDATA[linux apps]]></category>
		<category><![CDATA[ascii]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[figlet]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[line]]></category>
		<guid isPermaLink="false">http://lmpeiris.wordpress.com/?p=114</guid>

					<description><![CDATA[Mmmmm&#8230;&#8230;.. it&#8217;s me after a long time writing on this blog. I&#8217;ve almost forgotten that there was a blog of mine just waiting to be refreshed by it&#8217;s author. Within the last year i changed my PC and the operating system twice, and now using the Fedora 14 x86/64 edition. So I guess we should [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } 		A:link { so-language: zxx } -->Mmmmm&#8230;&#8230;.. it&#8217;s me after a long time writing on this blog. I&#8217;ve almost forgotten that there was a blog of mine just waiting to be refreshed by it&#8217;s author. Within the last year i changed my PC and the operating system twice, and now using the Fedora 14 x86/64 edition. So I guess we should start from some ascii arts on the terminal to show up whenever it&#8217;s started. This type art is familar to the Linux Mint users who will see an animal saying something in ascii art upon start of each terminal. However, it requires use of multiple commands. This post is part one.</p>
<p><strong>Figlet – print a text as a logo</strong> <a href="http://www.figlet.org/">http://www.figlet.org</a></p>
<div style="width: 510px" class="wp-caption alignnone"><img title="Happy new year on figlet version 2.22" src="https://i0.wp.com/farm6.static.flickr.com/5243/5363177612_1faa12d251.jpg" alt="" width="500" height="110" /><p class="wp-caption-text">Happy new year on figlet version 2.22</p></div>
<p><strong>How to install – </strong>figlet is not provided with most of the Linux distributions, and it&#8217;s not included in their package hosting servers. Hence using yum or apt-get simply may not work. If that&#8217;s the case, we need to compile it from the source. You can download the source from here. Decompress it and change in to it&#8217;s directory in the terminal and type;</p>
<p><em><strong>make</strong></em></p>
<p>to compile figlet. For further information on compiling from source, see my article. Unfortunately, there&#8217;s no make install here so we need to change in to figlet directory always to use the command (you can copy the binaries and man pages in to correct directories but this is complex).</p>
<p><em><strong>cd &lt;path to figlet folder&gt;/figlet222/</strong></em></p>
<p><em><strong>./figlet &lt;the text you want to show as a logo&gt;</strong></em></p>
<p><strong>figlet features</strong></p>
<p>I&#8217; ll be mentioning only the important ones here.</p>
<p><strong>Change style/font :</strong> A sub directory called fonts holds some .flf files which contains style info.</p>
<p><em><strong>./figlet -f &lt;fontfile_name&gt; text</strong></em></p>
<p><em>ex:  ./figlet -f script Happy new year</em> will produce something like above picture.</p>
<p><strong>change alignment :</strong> To center -c , -l for left and -r for right</p>
<p><strong>change right to left:</strong> -R</p>
<p><strong>layout:</strong> -t will fit the text to terminal width, -P paragraph mode</p>
<div style="width: 510px" class="wp-caption alignnone"><img title="figlet" src="https://i0.wp.com/farm6.static.flickr.com/5043/5363177616_ba04f4f952.jpg" alt="" width="500" height="100" /><p class="wp-caption-text">figlet using some tweaks above</p></div>
<p>There&#8217;s a lot more; see figlet man page for more details. <a href="http://www.figlet.org/figlet-man.html">http://www.figlet.org/figlet-man.html</a></p>
<p>Part 2 of the post is about using cowsay and fortune-mod. Will be followed soon.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lmpeiris.wordpress.com/2011/01/17/figlet-show-text-in-ascii-art/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/537b0259f047e96e38704bac71db5e0e41beba73be6b4c312af66f51e53d93fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">malshanpeiris</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5243/5363177612_1faa12d251.jpg" medium="image">
			<media:title type="html">Happy new year on figlet version 2.22</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5043/5363177616_ba04f4f952.jpg" medium="image">
			<media:title type="html">figlet</media:title>
		</media:content>
	</item>
		<item>
		<title>The doomsday engine – doom reloaded!</title>
		<link>https://lmpeiris.wordpress.com/2009/10/30/the-doomsday-engine-%e2%80%93-doom-reloaded/</link>
					<comments>https://lmpeiris.wordpress.com/2009/10/30/the-doomsday-engine-%e2%80%93-doom-reloaded/#comments</comments>
		
		<dc:creator><![CDATA[Malshan Peiris]]></dc:creator>
		<pubDate>Fri, 30 Oct 2009 14:14:45 +0000</pubDate>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[deng]]></category>
		<category><![CDATA[doom]]></category>
		<category><![CDATA[doomsday]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[heretic]]></category>
		<category><![CDATA[hexen]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux4all]]></category>
		<category><![CDATA[snowberry]]></category>
		<guid isPermaLink="false">http://lmpeiris.wordpress.com/?p=108</guid>

					<description><![CDATA[There was a time computers were a luxury &#8230;.. There was a time when a computer with a 100MHz processor speed was called a power horse&#8230; I bought my first PC in those times. I started computing when the games Doom and Heretic was on the rock. Made by the ID software inc. these games [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } 		A:link { so-language: zxx } -->There was a time computers were a luxury &#8230;.. There was a time when a computer with a 100MHz processor speed was called a power horse&#8230; I bought my first PC in those times. I started computing when the games Doom and Heretic was on the rock.</p>
<div style="width: 429px" class="wp-caption alignnone"><a href="http://dengine.net/" target="_blank"><img class="    " title="heretic" src="https://i0.wp.com/dengine.net/archive/screenshots/jheretic/v179.jpg" alt="" width="419" height="314" /></a><p class="wp-caption-text">Heretic running on DENG - extracted from dengine.net</p></div>
<p>Made by the ID software inc. these games became so immensely popular with the then younger generation, because they  were the first, 3D first-person shooting games (like call of duty) ever to be on the market requiring just only a few hardware requirements, and first ones to exploit the power of creative sound-blaster sound cards. And the gaming experiences, still thrilling. The gaming innovation and logic behind doom and heretic keeps players playing it after 17 years.</p>
<p>Of course, I played these within MS-DOS at those times, but many people who are now using Linux likes to play the game. They can do so by choosing the dosbox emulator, and play the original game as in those times.</p>
<p>But many people thought of hacking (to improve) the game and came up with an open source emulator called doomsday engine (DENG) which uses the original id3 core files (.wad files); only to get the games strategic data (how the game goes, maps). The coolest thing is that every texture, unit, player, effect, weapon can be loaded from different ones from the original. <strong>Simply, people got together and re-designed textures etc.. to give superb 3D performance like in a new game! So you&#8217;ll be playing the same games (doom,heretic,hexen), with superb graphics! (and hacks) .</strong> <a href="http://www.dengine.net/" target="_blank">Visit there homepage</a>, for more information.</p>
<div style="width: 420px" class="wp-caption alignnone"><a href="http://dengine.net/" target="_blank"><img class="   " title="Doom running on DENG " src="https://i0.wp.com/dengine.net/screenshots/doom_032.jpg" alt="" width="410" height="307" /></a><p class="wp-caption-text">Doom running on DENG - extracted from dengine.net</p></div>
<p><span style="text-decoration:underline;"><strong> </strong></span></p>
<p><span style="text-decoration:underline;"><strong>Installation</strong></span></p>
<p>Installation is some what tricky. I heavily recommend compiling from source. <a href="http://sourceforge.net/projects/deng/" target="_blank">You can download from here. </a></p>
<p><em><strong>Tar -xvf deng-1.9****tar.gz</strong></em> &#8216;unpacking the tar file</p>
<p><em><strong>cd &lt;source directory&gt;</strong></em> &#8216; go inside the source directory , from here on i will use deng-1.9*** for the source folder.</p>
<p><em><strong>cd doomsday</strong></em></p>
<p><em><strong>mkdir mybuild</strong></em> &#8216;create this directory if doesn&#8217;t exist</p>
<p><em><strong>cmake .</strong></em></p>
<p>If dependency problems found, install them. See installing from source (in my blog) for more info.</p>
<p><em><strong>make</strong></em></p>
<p><em><strong>make install </strong></em>&#8216;(for debian systems, <em>sudo make install</em>)</p>
<p>We still need some stuff. This is the downloading part. These are called resource packs which includes open-source textures,units for the games. Download below things and copy each to <em>deng-1.9***/snowberry/addons</em> folder, after unzipping them. (you can go and have a look at the addons folder, it includes examples how unzipped things should be there).</p>
<p><a href="http://files.dengine.net/jdrp-packaged-20070404.zip">http://files.dengine.net/jdrp-packaged-20070404.zip</a></p>
<p><a href="http://files.dengine.net/jhrp-20090703.zip">http://files.dengine.net/jhrp-20090703.zip</a></p>
<p>this is enough for now. When you start to get things correctly, go to <a href="http://files.dengine.net/index.php">http://files.dengine.net/index.php</a> and download other stuff you want. Go to <a href="http://www.doomsdayhq.com/">http://www.doomsdayhq.com/</a> if you don&#8217;t know what to download.</p>
<p>Now you need some .wad files from the original games. Download those from this torrent. <a href="http://torrents.thepiratebay.org/3555137/Doom_Heretic_Hexen_WADs.3555137.TPB.torrent">http://torrents.thepiratebay.org/3555137/Doom_Heretic_Hexen_WADs.3555137.TPB.torrent</a> Unzip and put those in somewhere you can find. (if the above link doesn&#8217;t work, try searching for “doom heretic hexen wads” in torrentz.Com.</p>
<p><span style="text-decoration:underline;"><strong>Configuration</strong></span></p>
<p><em><strong>cd  deng-1.9****/snowberry &#8216;Goto deng-1.9***/snowberry</strong></em> .</p>
<p>Snowberry is the graphical configuring tool for deng, which makes our life easy. Type,</p>
<p><em><strong>python snowberry.py</strong></em></p>
<p>If you have WxPython and pyGTK (i actually cannot remember) installed correctly, it will show a gui like below.</p>
<div style="width: 410px" class="wp-caption alignnone"><a href="http://farm3.static.flickr.com/2645/4058415430_14136d44ea_o.png"><img class=" " title="Snowberry" src="https://i0.wp.com/farm3.static.flickr.com/2645/4058415430_5360615924.jpg" alt="Snow berry GUI" width="400" height="281" /></a><p class="wp-caption-text">Snowberry graphical deng configure running on my FC11</p></div>
<p><span style="text-decoration:underline;"><strong>Configuring doom2</strong></span></p>
<p>From the mini bar click profile and select new. A dialog box will appear, give it a name which you can identify, and select jdoom from the combo-box. You should see it on the left panel under shared settings.</p>
<p>Now it&#8217;s time to change some settings. Select the jdoom from panel, and click on the settings tab. Something like below should appear. For the game data file, browse the doom2.wad from the torrent download folder. Click on display and adjust resolution, and full screen view. Click on the addons tab and check jdoom-resource pack if it&#8217;s not checked.</p>
<p><span style="text-decoration:underline;"><strong>Configuring doom1 and heretic</strong></span></p>
<p>For the jheretic, choose heretic.wad and jheretic resource pack. (use your brain).</p>
<p>For doom1, choose doom.wad or ultimate.wad(something similar) and do as above.</p>
<p><span style="text-decoration:underline;"><strong>The Playing part &#8230;.!</strong></span></p>
<p>Just tell me whether you understand the stuff above and got it running &#8230;. then i will start telling you something about the games itself. Enjoy!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lmpeiris.wordpress.com/2009/10/30/the-doomsday-engine-%e2%80%93-doom-reloaded/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/537b0259f047e96e38704bac71db5e0e41beba73be6b4c312af66f51e53d93fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">malshanpeiris</media:title>
		</media:content>

		<media:content url="http://dengine.net/archive/screenshots/jheretic/v179.jpg" medium="image">
			<media:title type="html">heretic</media:title>
		</media:content>

		<media:content url="http://dengine.net/screenshots/doom_032.jpg" medium="image">
			<media:title type="html">Doom running on DENG </media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2645/4058415430_5360615924.jpg" medium="image">
			<media:title type="html">Snowberry</media:title>
		</media:content>
	</item>
		<item>
		<title>Skychart (Cartes du Ciel) – explore and map the skies</title>
		<link>https://lmpeiris.wordpress.com/2009/07/08/skychart-cartes-du-ciel-%e2%80%93-explore-and-map-the-skies/</link>
					<comments>https://lmpeiris.wordpress.com/2009/07/08/skychart-cartes-du-ciel-%e2%80%93-explore-and-map-the-skies/#respond</comments>
		
		<dc:creator><![CDATA[Malshan Peiris]]></dc:creator>
		<pubDate>Wed, 08 Jul 2009 09:05:33 +0000</pubDate>
				<category><![CDATA[Maths and science]]></category>
		<category><![CDATA[astronom]]></category>
		<category><![CDATA[Cartes du Ciel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[observ]]></category>
		<category><![CDATA[skychart]]></category>
		<category><![CDATA[star]]></category>
		<category><![CDATA[telescope]]></category>
		<guid isPermaLink="false">http://lmpeiris.wordpress.com/?p=106</guid>

					<description><![CDATA[When I was little, I always happened to wonder about the millions of stars which light up the night sky. I needed to be a astronomer some day, and I wanted to buy a telescope. Anyway, I couldn&#8217;t have enough time to do it. Anyways, for the people who are armature astronomers, the skychart is [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } 		A:link { so-language: zxx } --></p>
<p style="margin-bottom:0;"><strong><span style="font-weight:normal;">When I was little, I always happened to wonder about the millions of stars which light up the night sky. I needed to be a astronomer some day, and I wanted to buy a telescope. Anyway, I couldn&#8217;t have enough time to do it. Anyways, for the people who are armature astronomers, the skychart is an excellent program. </span></strong></p>
<p style="margin-bottom:0;"><strong><span style="font-weight:normal;"></p>
<div style="width: 460px" class="wp-caption alignnone"><a href="http://farm3.static.flickr.com/2607/3700076249_98933c93c9_o.png" target="_blank"><img class=" " title="skychart1" src="https://i0.wp.com/farm3.static.flickr.com/2607/3700076249_cc385bc0f5.jpg" alt="Skychart 3 alpha running on my fedora 11" width="450" height="360" /></a><p class="wp-caption-text">Skychart 3 alpha running on my fedora 11</p></div>
<p></span></strong></p>
<p style="margin-bottom:0;"><strong> <span style="font-weight:normal;">It renders sky of any time of the day, at any location of earth (or anywhere), at any angle using the supplied data with the program. As you can see in the screen shot above, you can rotate, select,zoom any star object in the map to gain information about it. The Field of Vision (FOV) can be changed, deciding the angle you want to look at (the pane to the right). The standard markers like equatorial coordinates, galactic coordinates etc&#8230; are on the left pane. Did I tell you that this program can show sky from 3000BC to 3000AD?</span></strong></p>
<p style="margin-bottom:0;"><strong> <span style="font-weight:normal;">As you know, the galaxies contain huge amount of star objects so it&#8217;s not possible to render everything in the data files. Program settings allow to change what you want to see&#8230; it could be galaxies, nebula or even asteroids. Powerful search functions enable to find desired object in seconds. The core of the program is built with freepascal and the GUI is built with lazarus. </span></strong></p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;"><strong><span style="text-decoration:underline;"><strong>The professional approach</strong></span></strong></p>
<p style="margin-bottom:0;"><strong> <span style="font-weight:normal;">Without just looking at the map, skychart has the ability to edit them, label objects and build a map from the scratch.  It can conect with SQL databases and standard astronomy catalogue sites like </span></strong><strong><a href="http://cdsweb.u-strasbg.fr/cats/Cats.htx">CDS</a></strong><strong><span style="font-weight:normal;"> or </span></strong><strong><a href="http://adc.gsfc.nasa.gov/">ADC</a></strong><strong><span style="font-weight:normal;">. It uses catgen to convert these to a format which is readable by skychart. You can add a telescope (manual or automatic) to the program, and process the data directly from it. (These data can be sent to SQL databases too). </span></strong></p>
<p style="margin-bottom:0;"><strong> <span style="font-weight:normal;">Additionally, program can predict a whole astronomical calendar.. eclipses, twilight, sun-rise, comets etc&#8230; </span></strong></p>
<p style="margin-bottom:0;"><strong><span style="font-weight:normal;">A fascinating feature is the night vision mode. This is heavily required when you looking at the stars from naked eye. (You loose sensitivity in dark if you see a bright light for some seconds). <a href="http://www.ap-i.net/skychart/start" target="_blank">You can visit their homepage for more details from this link. </a><br />
</span></strong></p>
<p style="margin-bottom:0;">
<div style="width: 460px" class="wp-caption alignnone"><a href="http://farm4.static.flickr.com/3424/3700076251_301fa8fe86_o.png" target="_blank"><img class=" " title="skychart3" src="https://i0.wp.com/farm4.static.flickr.com/3424/3700076251_25057bbf42.jpg" alt="Skychart running on night vision mode " width="450" height="360" /></a><p class="wp-caption-text">Skychart running on night vision mode </p></div>
<p style="margin-bottom:0;"><strong><span style="text-decoration:underline;"><strong>Installing</strong></span></strong></p>
<p style="margin-bottom:0;"><strong><strong>Binaries</strong></strong></p>
<p style="margin-bottom:0;"><strong><span style="font-weight:normal;">For Fedora,suse, mandriva people type in terminal as root</span></strong></p>
<p style="margin-bottom:0;"><strong><em><strong>yum install skychart</strong></em></strong></p>
<p style="margin-bottom:0;"><strong><span style="font-weight:normal;">For ubuntu,mint,debian use</span></strong></p>
<p style="margin-bottom:0;"><strong><em><strong>sudo apt-get skychart</strong></em></strong></p>
<p style="margin-bottom:0;"><strong><span style="font-weight:normal;">Or you can go to <a href="http://sourceforge.net/projects/skychart/files/" target="_blank">sourforge download page to download what is best for you</a>.</span></strong></p>
<p style="margin-bottom:0;"><strong><strong>source</strong></strong></p>
<p style="margin-bottom:0;"><strong><span style="font-weight:normal;">Anyways, the Version 3 was released late, so you may get beta versions with above method. The source code for the latest version<a href="http://sourceforge.net/projects/skychart/files/1-%20cdc-skychart/skychart-3.0.1.6.src.tgz" target="_blank"> can be downloaded from this link. </a></span></strong></p>
<p style="margin-bottom:0;">
]]></content:encoded>
					
					<wfw:commentRss>https://lmpeiris.wordpress.com/2009/07/08/skychart-cartes-du-ciel-%e2%80%93-explore-and-map-the-skies/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/537b0259f047e96e38704bac71db5e0e41beba73be6b4c312af66f51e53d93fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">malshanpeiris</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2607/3700076249_cc385bc0f5.jpg" medium="image">
			<media:title type="html">skychart1</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3424/3700076251_25057bbf42.jpg" medium="image">
			<media:title type="html">skychart3</media:title>
		</media:content>
	</item>
		<item>
		<title>Fedora 11 – The buggiest fedora ever</title>
		<link>https://lmpeiris.wordpress.com/2009/07/03/fedora-11-%e2%80%93-the-buggiest-fedora-ever/</link>
					<comments>https://lmpeiris.wordpress.com/2009/07/03/fedora-11-%e2%80%93-the-buggiest-fedora-ever/#comments</comments>
		
		<dc:creator><![CDATA[Malshan Peiris]]></dc:creator>
		<pubDate>Fri, 03 Jul 2009 09:28:04 +0000</pubDate>
				<category><![CDATA[1]]></category>
		<category><![CDATA[Linux News]]></category>
		<category><![CDATA[11]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[hplip]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[pulseaudio]]></category>
		<guid isPermaLink="false">http://lmpeiris.wordpress.com/?p=103</guid>

					<description><![CDATA[Fedora 11 is the buggiest of the Fedora clan but it doesn&#8217;t mean it&#8217;s bad. As my opinion it&#8217;s the best Linux Distro&#8230; Most of these bugs were due to the fact that I have out-dated hardware! I have mentioned why I decided to upgrade from fedora 9 to 11 in my previous blog article. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } --><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } --></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;"><strong>Fedora 11 is the buggiest of the Fedora clan but it doesn&#8217;t mean it&#8217;s bad. As my opinion it&#8217;s the best Linux Distro&#8230; Most of these bugs were due to the fact that I have out-dated hardware!</strong></span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;"><strong> </strong></span></p>
<div style="width: 410px" class="wp-caption alignnone"><span><strong><strong><a href="http://farm3.static.flickr.com/2476/3684206668_6a25af8523_o.png" target="_blank"><img class="  " title="desktopfc11" src="https://i0.wp.com/farm3.static.flickr.com/2476/3684206668_5d03890e29.jpg" alt="My fedora 11 Gnome desktop ... Nothing new fron FC9" width="400" height="320" /></a></strong></strong></span><p class="wp-caption-text">My fedora 11 Gnome desktop ... Nothing new fron FC9</p></div>
<p><strong> </strong></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;">I have mentioned why I decided to upgrade from fedora 9 to 11 in my previous blog article. So here I&#8217;m almost after a week &#8230;&#8230;. wonder what happened? I was fighting the bugs which were found to be ultimate challenge and test of stamina after I started using Linux. For 3 days, I was hopeless as I was unable to see even the desktop! But problems did not end there for me&#8230; There are still some unsolved mysteries even with after upgrading bug-fixes. You should understand that I&#8217;m kind of addicted to Fedora, so whatever happens I would be using her just hoping that bug-fixes will arrive in time, and the next Fedora 12 would be somthing brilliant like Fedora 9. <strong>(Still, i think Fedora is the best as it comes with cutting-edge tech which is why actually these bugs come)</strong></span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;">On last Saturday, after writing my previous blog, I first decided to upgrade from version 9 to 11. I saw the warnings on others who tried it, but as I have upgraded 7,8 to 9 it didn&#8217;t come new to me. So I upgraded which took 4 hours, and when restarted it shows GRUB all over the screen where GRUB should be loading. Like this:<strong> </strong></span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;"><strong>GRUB GRUB  GRUB  GRUB  GRUB  GRUB  GRUB</strong></span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;">So I boot Fedora11 with rescue mode and typed </span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;"><em><strong>chroot /mnt/sysimage</strong></em> &#8216;changing root path to FC11 root</span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;">and i opened <em><strong>grub.conf</strong></em> file in <em><strong>/etc</strong></em> and it appeared good, it shows that it had identified the windows OS, and had pointed to correct paths. No problem.</span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;">The <em><strong>/boot/grub/device.map</strong></em> file was correct, which says which hard drive is sda and sdb. The file looks like this:</span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;"><em><strong>(hd0)     /dev/sda </strong></em></span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;"><em><strong>(hd1)     /dev/sdb</strong></em></span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;">Hence, (hd0,0) refers to 1<sup>st</sup> partition  on 1<sup>st</sup> hard drive (ex: sda1) on the <em><strong>grub.conf</strong></em> file, (hd1,1) refers to 2<sup>nd</sup> partition  on the 2<sup>nd</sup> (ex: sdb2).</span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;">So i reinstalled grub with <em><strong>grub-install sdb</strong></em> (as my linux installation was in 2<sup>nd</sup> hard drive) but didn&#8217;t work, but doing</span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;"><em><strong>grub-install -–force-lba sdb</strong></em> </span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;">did work. Error found to be something to do with the AWARD bios and grub.</span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;">So I came to the fedora 11, but upgrade has been buggy. So buggy that it crashes every time. With no choice, I decided to back-up my data and do a fresh install.</span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;">So I did the fresh-install using “use entire drive” option, and without changing any details as a beginner would do. When installation was complete, I saw <strong>“Error 22”</strong> instead of grub upon rebooting. It means that system cannot find the bootloader, which is GRUB. I looked at the files and it seemed like system has detected the drives in wrong #&#8217;s. So I did <em><strong>grub-install</strong></em> again, with  <em><strong>&#8211;recheck</strong></em> and <em><strong>-–force-lba</strong></em> which didn&#8217;t work.</span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;">So I decide to install again, this time using custom settings for partitions.  <strong>I used Ext3 for</strong><em><strong> / </strong></em><strong>partition where Ext4 was the default</strong>. This did work, finally. Finally I was able to run fedora11. The problem was that the GRUB still cannot identify Ext4 file system, and it gives errors in some systems. </span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;">So here I see the desktop, but wrong resolution. So i typed system-config-display on the terminal&#8230; but there was no such command! You do have a “Display” applet on <em>System&gt;Prefrences</em> but it couldn&#8217;t even get my monitor type. So I installed system-config-display by,</span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;"><em><strong>yum install  system-config-display</strong></em></span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;">I was soon to find out that i&#8217;m becoming a yum addict. This is because <strong>programs which used to compile well on FC9, ends up on errors</strong> (C syntax errors – you can&#8217;t solve those) particularly due to version incompitabilty of GCC and Cmake etc&#8230; So a person who haven&#8217;t used yum before (me) started doing everything by it!</span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;">Upon installing <strong>mplayer</strong> – my favourite player, I found out that it <strong>crashes everytime I open a video!</strong> Damn&#8212; It did superbly on FC9! Unable to figure out why, I was shocked that even the vlc played buggy and totem too did the same! By this time I knew something was wrong with multimedia drivers &#8212; but later found out that it&#8217;s a bug of PulseAudio &#8212; and again updating didn&#8217;t help. Changing to ALSA and OSS didn&#8217;t help as they seem “deactivated” although everything I could find on these have been installed. </span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;">Anyway, <strong>I could get mplayer to run by changing the video output  driver from Xvideo to opengl.</strong> But it doesn&#8217;t give the previous quality. But still up to now, i can&#8217;t hear any sound at lmms,hydrogen, audacity and record-sound. </span></p>
<p style="margin-bottom:0;"><span style="font-family:DejaVu Serif,serif;">Finally trying to print by IT degree notes I plugged in my <strong>HP P1005</strong> laserjet. I saw an improvement than in FC9, it automatically installed driver and software for the printer! But when I sent a document to print&#8230; nothing happened.. <strong>It says “your printer may not be connected”</strong> &#8230; what the HELL? I checked the installed drivers and they were 100% correct. I guess this is a bug in new <strong>hplip 3 or cups</strong>. Still not solved. Printer did well in FC9 where I manually installed hplip 2.8. </span></p>
<p style="margin-bottom:0;">
]]></content:encoded>
					
					<wfw:commentRss>https://lmpeiris.wordpress.com/2009/07/03/fedora-11-%e2%80%93-the-buggiest-fedora-ever/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/537b0259f047e96e38704bac71db5e0e41beba73be6b4c312af66f51e53d93fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">malshanpeiris</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2476/3684206668_5d03890e29.jpg" medium="image">
			<media:title type="html">desktopfc11</media:title>
		</media:content>
	</item>
		<item>
		<title>Goodbye Fedora 9</title>
		<link>https://lmpeiris.wordpress.com/2009/06/27/goodbye-fedora-9/</link>
					<comments>https://lmpeiris.wordpress.com/2009/06/27/goodbye-fedora-9/#comments</comments>
		
		<dc:creator><![CDATA[Malshan Peiris]]></dc:creator>
		<pubDate>Sat, 27 Jun 2009 12:06:42 +0000</pubDate>
				<category><![CDATA[Linux News]]></category>
		<guid isPermaLink="false">http://lmpeiris.wordpress.com/?p=101</guid>

					<description><![CDATA[I upgraded to the Fedora Core 9 Alias Sulphur distribution, more than a year ago. The one I had at that time (werewolf), was so buggy that I told some one to download the FC9, within the first week of it&#8217;s release. Everything you see in this blog, and many other up to 200 programs [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I upgraded to the Fedora Core 9 Alias Sulphur distribution, more than a year ago. The one I had at that time (werewolf), was so buggy that I told some one to download the FC9, within the first week of it&#8217;s release. Everything you see in this blog, and many other up to 200 programs which were not the standard distribution of the DVD were tested on Fedora 9.</p>
<div style="width: 386px" class="wp-caption alignnone"><img title="FC9" src="https://i0.wp.com/farm4.static.flickr.com/3536/3294345713_80791413f7_o.png" alt="Bye Bye Sulphur" width="376" height="232" /><p class="wp-caption-text">Bye Bye Sulphur</p></div>
<p>So it&#8217;s like loosing an old faithful friend to me. I learned FOSS up to this level from Fedora 9, Although I was using FC8 and FC7 before, they somewhat did not give me the feeling to experiment. And talking about fedora, it&#8217;s the best distro to experiment&#8230; bit harder than ubuntu, I know.. but that&#8217;s what pure Linux is.</p>
<p>Other than trying to be new, <strong>there&#8217;s some major improvements</strong> in utility programs I expect from FC11. As almost a year has passed by now, the new versions of the programs and compleately fresh programs came this year, seemed too mush to be handled by old FC9.</p>
<ol>
<li><em><strong>Qt 4.3 to 4.5</strong></em> &#8211; This has caused me to stop installing about 20 programs. People these days need Qt for GUI as they need coke</li>
<li><em><strong>Mono 1.9 &#8211; 2.x</strong></em> &#8211; C# happy people tends to right code in newest way possible to them. So until now, I was unable to install mono 2.0 !</li>
<li><em><strong>Boost libraries</strong></em> &#8211; Try installing some stastics programs without old versions. It gives hell.</li>
<li><em><strong>Gnome 2.26</strong></em> &#8211; Always easy to do things when you have new GUI !</li>
<li><em><strong>Xulrunner</strong></em> &#8211; FC9 came with a beta, and it did give hell.</li>
</ol>
<p><strong>Other reasons are bugs:</strong></p>
<ul>
<li>Sleeping problem &#8211; FC9 system couldn&#8217;t sleep, it shuts down !</li>
<li>The authentic driver for 945GZ failed. So I used an experimental one.</li>
<li>GDM had a bug, so I can&#8217;t logout and loggin with another user, using GUI.</li>
<li>So many more</li>
</ul>
<p>Anyway, of those 200 programs, many of them were compiled from source. So the RPM does not know about them and if the FC11 has the .rpm for those, it will overwrite the files, and this could cause problems. And above programs were compiled for kernel year ago, so I expect many programs to fail at the new OS. So I have listed all the manually installed programs, current list of RPM&#8217;s , bins and includes. This is hoe I did it.</p>
<p><em><strong>rpm -qa &gt;&gt; filename</strong></em> &#8216;saves all RPM to a file</p>
<p><em><strong>ls /usr/bin &gt;&gt; filename</strong></em> &#8216;saves list of binaries</p>
<p><em><strong>ls /usr/include &gt;&gt; filename</strong></em> &#8216;saves list of source files</p>
<p>In case neede to search for something,</p>
<p><em><strong>cat filename | grep &lt;search string&gt;</strong></em></p>
<p>Ok i&#8217;m going to start it now. I hope current won&#8217;t go off.</p>
<p><em><strong>Special thanks for Isuru Udana for providing me the FC9 DVD. </strong></em></p>
<ul></ul>
]]></content:encoded>
					
					<wfw:commentRss>https://lmpeiris.wordpress.com/2009/06/27/goodbye-fedora-9/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/537b0259f047e96e38704bac71db5e0e41beba73be6b4c312af66f51e53d93fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">malshanpeiris</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3536/3294345713_80791413f7_o.png" medium="image">
			<media:title type="html">FC9</media:title>
		</media:content>
	</item>
		<item>
		<title>Moonlight 3D – Linux can do 3D animation</title>
		<link>https://lmpeiris.wordpress.com/2009/06/24/moonlight-3d-%e2%80%93-linux-can-do-3d-animation/</link>
					<comments>https://lmpeiris.wordpress.com/2009/06/24/moonlight-3d-%e2%80%93-linux-can-do-3d-animation/#comments</comments>
		
		<dc:creator><![CDATA[Malshan Peiris]]></dc:creator>
		<pubDate>Wed, 24 Jun 2009 15:09:24 +0000</pubDate>
				<category><![CDATA[1]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[moonlight]]></category>
		<category><![CDATA[studiomax]]></category>
		<guid isPermaLink="false">http://lmpeiris.wordpress.com/?p=99</guid>

					<description><![CDATA[Some 2 weeks ago, I posted an article about Genious, an excellent Java program. When writing that blog I recalled another brilliant Java program I installed about an year ago. It&#8217;s a 3D animation program ! No one will think Java can do that. It&#8217;s a simple program written using Swing, mostly like 3D studio [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Some 2 weeks ago, I posted an article about Genious, an excellent Java program. When writing that blog I recalled another brilliant Java program I installed about an year ago. It&#8217;s a 3D animation program ! No one will think Java can do that.</p>
<p>It&#8217;s a simple program written using Swing, mostly like 3D studio max to design and animate 3D objects. A grid is there as usual with space vectors x,y,z. 3D view and xy,yz,xz plane views are shown simultaneously. A timeline is visible when you hit create animation button. Additionally, python scripts can be used to program the animation.  You can select one of many basic shapes under create object pane, and modify it from the modify menu bar. So my first drawing looked like this. (I&#8217;m not good at graphics). Anyway, you can have some fun with this program, whatever you know.</p>
<div style="width: 471px" class="wp-caption alignnone"><a href="http://farm4.static.flickr.com/3623/3656558117_cd22d6426d_o.png" target="_blank"><img title="moonlight1" src="https://i0.wp.com/farm4.static.flickr.com/3623/3656558117_cd22d6426d_o.png" alt="3D graphics I created - version 0.2.0 running on JRE 1.6" width="461" height="346" /></a><p class="wp-caption-text">3D graphics I created - version 0.2.0 running on JRE 1.6 (@ FC9)</p></div>
<p><strong>According to <a href="http://www.moonlight3d.eu/" target="_blank">their homepage</a> , these are the features of version 0.2.2</strong></p>
<ul>
<li><em><strong>Modelling</strong></em> &#8211; Unique history-based approach ,Support for non-manifold meshes, including polygons with arbitrary vertex counts ,3D manipulators ,Object instancing ,Fully editable object history at any time</li>
<li><em><strong>Materials, Lighting and Rendering</strong></em>-Fully integrated Sunflow, a renderer with support for modern lighting features like ambient occlusions, global illumination and caustics ,Omnidirectional, spherical and spot light sources ,HDR image output ,GLSL support including GLSL shader editor</li>
<li><em><strong>Animation</strong></em>-Multiple animations of scenes ,Virtually all parameters in the construction history are animateable separately,Rendering of animations</li>
<li><em><strong>Other</strong></em>-Flexible user interface that can be adapted to the user&#8217;s needs ,Flexible and extensible plugin based architecture ,Full Python scripting capability,Headless batch mode ,Integrated script editor</li>
</ul>
<div style="width: 471px" class="wp-caption alignnone"><a href="http://farm4.static.flickr.com/3384/3656558121_f71564c826_o.png" target="_blank"><img title="moonlight2" src="https://i0.wp.com/farm4.static.flickr.com/3384/3656558121_f71564c826_o.png" alt="The operator graph of moonlight 0.2.0" width="461" height="346" /></a><p class="wp-caption-text">The operator graph of moonlight 0.2.0</p></div>
<p><strong>Installing</strong><br />
You can download the binary files version 0.2.2 for Linux <a href="http://dev.moonlight3d.eu/downloads/moonlight-0.2.2-Linux-i686.tar.bz2" target="_blank">from this link</a> (14MB). Just make sure you have latest Java Runtime installed to run the program. Untar the downloaded file and double-click on moonlight.sh or at the terminal type,<br />
<em><strong>./moonlight.sh</strong></em><br />
<strong>Moonlight Application Framework</strong><br />
Is the package for programming moonlight components, specially it&#8217;s plugins. My knowledge is limited on this subject, <a href="http://dev.moonlight3d.eu/downloads/mlframework-0.1.5.tar.bz2" target="_blank">anyway you can download the source code from here.</a><!-- 		@page { size: 21.59cm 27.94cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 		H3 { margin-bottom: 0.21cm } 		H2 { margin-bottom: 0.21cm } --></p>
]]></content:encoded>
					
					<wfw:commentRss>https://lmpeiris.wordpress.com/2009/06/24/moonlight-3d-%e2%80%93-linux-can-do-3d-animation/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/537b0259f047e96e38704bac71db5e0e41beba73be6b4c312af66f51e53d93fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">malshanpeiris</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3623/3656558117_cd22d6426d_o.png" medium="image">
			<media:title type="html">moonlight1</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3384/3656558121_f71564c826_o.png" medium="image">
			<media:title type="html">moonlight2</media:title>
		</media:content>
	</item>
	</channel>
</rss>
