<?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>The real stuff</title>
	<atom:link href="http://vyvaks.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vyvaks.wordpress.com</link>
	<description>Life is just sailing</description>
	<lastBuildDate>Sun, 20 Nov 2011 20:21:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='vyvaks.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>The real stuff</title>
		<link>http://vyvaks.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vyvaks.wordpress.com/osd.xml" title="The real stuff" />
	<atom:link rel='hub' href='http://vyvaks.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Backup transfer scripts for Linux to Windows</title>
		<link>http://vyvaks.wordpress.com/2006/08/14/backup-transfer-scripts-for-linux-to-windows/</link>
		<comments>http://vyvaks.wordpress.com/2006/08/14/backup-transfer-scripts-for-linux-to-windows/#comments</comments>
		<pubDate>Mon, 14 Aug 2006 06:20:31 +0000</pubDate>
		<dc:creator>Vivik</dc:creator>
				<category><![CDATA[Shell Scripting]]></category>

		<guid isPermaLink="false">https://vyvaks.wordpress.com/2006/08/14/backup-transfer-scripts-for-linux-to-windows/</guid>
		<description><![CDATA[Hi folks!!! This script will help you in understanding how to transfer the backup from a linux machine to windows. This is a small sample script you have to really tweak into it for a full proof system. Step1: Create a share directory on windows machine Step2: Create the transfer.sh script on your linux machine [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vyvaks.wordpress.com&amp;blog=240494&amp;post=26&amp;subd=vyvaks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi folks!!!</p>
<p>This script will help you in understanding how to transfer the backup from a linux machine to windows. This is a small sample script you have to really tweak into it for a full proof system.<br />
Step1: Create a share directory on windows machine</p>
<p>Step2: Create the transfer.sh script on your linux machine</p>
<p>Transfer.sh</p>
<p><font color="#3366ff"> </font><font color="#3366ff">#! /usr/local/bin</font></p>
<p><font color="#3366ff">  </font><font color="#ff0000"># specify the backup folder<br />
</font> backup_src=/backup/user1</p>
<p><font color="#ff0000"># attach timestamp if required<br />
# timestamp=`date +%d%m%y`<br />
# dir=&#8221;$des&#8221;user1&#8243;$timestamp&#8221;</font></p>
<p><font color="#ff0000"># Check if the backup source exist<br />
</font> if [ ! -d "$backup_src" ] ; then<br />
echo &#8220;backup not possible directory does not exist&#8221;<br />
echo &#8220;Source directory does not exist&#8221; | mail -s &#8220;Backup not possible: &#8221; vyvaks@vyvaks.com<br />
exit<br />
else<br />
<font color="#ff0000"> # Mount the windows share point to transfer the backup<br />
</font> mount -t smbfs -o username=vyvaks,password=vyvaks //172.168.1.162/backupStore /mnt/backupStore/<br />
if [ $? != 0 ]<br />
then<br />
echo &#8221; Mount error  &#8220;<br />
echo &#8221; Mount error &#8221; | mail -s &#8220;Backup not possible: &#8221; vyvaks@vyvaks.com<br />
exit<br />
fi<br />
sleep 2<br />
<font color="#ff0000"> # copy the backup to mount point<br />
</font> cp -r $backup_src /mnt/bkup<br />
if [ $? != 0 ]<br />
then<br />
echo  &#8220;Copy Failed&#8221; | mail -s &#8220;Backup not possible: &#8221; vyvaks@vyvaks.com<br />
umount /mnt/bkup<br />
exit<br />
fi<br />
<font color="#ff0000"> # Unmount the windows mount point<br />
</font> umount /mnt/bkup<br />
echo &#8220;Backup sucessfully transfered&#8221; | mail -s &#8220;Backup done : &#8221; vyvaks@vyvaks.com</p>
<p>Step 3: Finally for scheduling add the script to the cron</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vyvaks.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vyvaks.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vyvaks.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vyvaks.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vyvaks.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vyvaks.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vyvaks.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vyvaks.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vyvaks.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vyvaks.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vyvaks.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vyvaks.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vyvaks.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vyvaks.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vyvaks.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vyvaks.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vyvaks.wordpress.com&amp;blog=240494&amp;post=26&amp;subd=vyvaks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vyvaks.wordpress.com/2006/08/14/backup-transfer-scripts-for-linux-to-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ababb2c163ff451d45a0d236c6f1f398?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vivik</media:title>
		</media:content>
	</item>
		<item>
		<title>Sparklines for JAVA</title>
		<link>http://vyvaks.wordpress.com/2006/08/12/sparklines-for-java-2/</link>
		<comments>http://vyvaks.wordpress.com/2006/08/12/sparklines-for-java-2/#comments</comments>
		<pubDate>Sat, 12 Aug 2006 11:47:27 +0000</pubDate>
		<dc:creator>Vivik</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">https://vyvaks.wordpress.com/2006/08/12/sparklines-for-java-2/</guid>
		<description><![CDATA[Finaly I could find the java implmentation for sparklines following are the two links This one requires java1.5 http://www.representqueens.com/spark/ For java 1.4 and lower check this out http://saucemaster.info/2005/08/09/jsparkline-001/#comments For the above JSparkline I have implemented the antialiasing feature and also the slices for the pie chart. Before antialising and after Sliced Pie with border<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vyvaks.wordpress.com&amp;blog=240494&amp;post=14&amp;subd=vyvaks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Finaly I could find the java implmentation for sparklines following are the two links</p>
<p>This one requires java1.5</p>
<p><a href="http://www.representqueens.com/spark/" title="Sparkline for java1.5" target="_blank">http://www.representqueens.com/spark/</a></p>
<p>For java 1.4 and lower check this out</p>
<p><a href="http://saucemaster.info/2005/08/09/jsparkline-001/#comments" title="JSparkline" target="_blank">http://saucemaster.info/2005/08/09/jsparkline-001/#comments</a></p>
<p>For the above JSparkline I have implemented the antialiasing feature and also the slices for the pie chart.</p>
<p>Before antialising <img src="http://vyvaks.files.wordpress.com/2006/08/piechart.png?w=20&#038;h=20" alt="PieChart Before" height="20" width="20" /><img src="http://vyvaks.files.wordpress.com/2006/08/areabefore.png?w=490" alt="AreaChart Before" />  <img src="http://vyvaks.files.wordpress.com/2006/08/linebefore.png?w=490" alt="LineChart Before" /> and after <a href="https://vyvaks.wordpress.com/2006/08/12/sparklines-for-java-2/piechart-after/" id="p19" rel="attachment" class="imagelink" title="PieChart After"><img src="http://vyvaks.files.wordpress.com/2006/08/linechart9.png?w=490" alt="PieChart After" /></a> <img src="http://vyvaks.files.wordpress.com/2006/08/areaafter.png?w=490" alt="AreaChart After " /> <img src="http://vyvaks.files.wordpress.com/2006/08/linecolor.png?w=490" alt="LineChart After" /></p>
<p>Sliced Pie <img src="http://vyvaks.files.wordpress.com/2006/08/piecolor.png?w=490" alt="Sliced Pie" /> with border   <img src="http://vyvaks.files.wordpress.com/2006/08/pieslice.png?w=490" alt="Sliced Pie" /></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vyvaks.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vyvaks.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vyvaks.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vyvaks.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vyvaks.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vyvaks.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vyvaks.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vyvaks.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vyvaks.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vyvaks.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vyvaks.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vyvaks.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vyvaks.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vyvaks.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vyvaks.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vyvaks.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vyvaks.wordpress.com&amp;blog=240494&amp;post=14&amp;subd=vyvaks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vyvaks.wordpress.com/2006/08/12/sparklines-for-java-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ababb2c163ff451d45a0d236c6f1f398?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vivik</media:title>
		</media:content>

		<media:content url="http://vyvaks.files.wordpress.com/2006/08/piechart.png" medium="image">
			<media:title type="html">PieChart Before</media:title>
		</media:content>

		<media:content url="http://vyvaks.files.wordpress.com/2006/08/areabefore.png" medium="image">
			<media:title type="html">AreaChart Before</media:title>
		</media:content>

		<media:content url="http://vyvaks.files.wordpress.com/2006/08/linebefore.png" medium="image">
			<media:title type="html">LineChart Before</media:title>
		</media:content>

		<media:content url="http://vyvaks.files.wordpress.com/2006/08/linechart9.png" medium="image">
			<media:title type="html">PieChart After</media:title>
		</media:content>

		<media:content url="http://vyvaks.files.wordpress.com/2006/08/areaafter.png" medium="image">
			<media:title type="html">AreaChart After </media:title>
		</media:content>

		<media:content url="http://vyvaks.files.wordpress.com/2006/08/linecolor.png" medium="image">
			<media:title type="html">LineChart After</media:title>
		</media:content>

		<media:content url="http://vyvaks.files.wordpress.com/2006/08/piecolor.png" medium="image">
			<media:title type="html">Sliced Pie</media:title>
		</media:content>

		<media:content url="http://vyvaks.files.wordpress.com/2006/08/pieslice.png" medium="image">
			<media:title type="html">Sliced Pie</media:title>
		</media:content>
	</item>
		<item>
		<title>Why runtime.exec hangs in Java ?</title>
		<link>http://vyvaks.wordpress.com/2006/05/27/does-runtimeexec-hangs-in-java/</link>
		<comments>http://vyvaks.wordpress.com/2006/05/27/does-runtimeexec-hangs-in-java/#comments</comments>
		<pubDate>Sat, 27 May 2006 10:52:55 +0000</pubDate>
		<dc:creator>Vivik</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">https://vyvaks.wordpress.com/2006/05/27/does-runtimeexec-hangs-in-java/</guid>
		<description><![CDATA[I had hit with the same problem runtime.exec() hangs when i tried to execute a lengthy batch script in windows. The problem was clearly described in the java docs which i never read &#8220;Because some native platforms only provide limited buffer size for standard input and output streams, failure to promptly write the input stream [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vyvaks.wordpress.com&amp;blog=240494&amp;post=9&amp;subd=vyvaks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p>I had hit with the same problem runtime.exec() hangs  when i tried to execute a lengthy batch script in windows. The problem was clearly described in the java docs which i never read <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><font face="verdana, arial, helvetica" size="3">&#8220;Because some native platforms only provide limited buffer size for standard input and output streams, failure to promptly write the input stream or read the output stream of the subprocess may cause the subprocess to block, and even deadlock.&#8221;</font></p>
<p>The solution was to clear of the buffer so the process wont hit a deadlock. I have a small sample which could make you more clear.</p>
<p><font color="#3366ff">public class ProcessHandler extends Thread {</font></p>
<p><font color="#3366ff">        InputStream inpStr;<br />
String strType;</font></p>
<p><font color="#3366ff">        public ProcessHandler(InputStream inpStr, String strType) {<br />
this.inpStr = inpStr;<br />
this.strType = strType;<br />
}</font></p>
<p><font color="#3366ff">        public void run() {<br />
try {<br />
InputStreamReader inpStrd = new InputStreamReader(inpStr);<br />
BufferedReader buffRd = new BufferedReader(inpStrd);<br />
String line = null;<br />
while((line = buffRd.readLine()) != null) {<br />
System.out.println(strType + &#8221; &#8212;&gt; &#8221; + line);<br />
}<br />
buffRd.close();</font></p>
<p><font color="#3366ff">                } catch(Exception e) {<br />
System.out.println(e);<br />
}</font></p>
<p><font color="#3366ff">        }<br />
public static void main(String args[])throws Exception {</font></p>
<p><font color="#3366ff">               <font color="#ff0000"> /* For windows setting to cmd.exe */</font><br />
String command[] = {&#8220;cmd.exe&#8221;,&#8221;/c&#8221;,cmd};<br />
<font color="#ff0000"><br />
/* executing the command with environments set. */</font><br />
Process pro = Runtime.getRuntime().exec(cmd);</font></p>
<p><font color="#3366ff">               <font color="#ff0000"> /* handling the streams so that dead lock situation never occurs.  */</font><br />
ProcessHandler inputStream =<br />
new ProcessHandler(pro.getInputStream(),&#8221;INPUT&#8221;);<br />
ProcessHandler errorStream =<br />
new ProcessHandler(pro.getErrorStream(),&#8221;ERROR&#8221;);</font></p>
<p><font color="#3366ff">                <font color="#ff0000">/* start the stream threads */</font><br />
inputStream.start();<br />
errorStream.start();</font></p>
<p><font color="#3366ff">        }<br />
}</font></p></blockquote>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vyvaks.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vyvaks.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vyvaks.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vyvaks.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vyvaks.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vyvaks.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vyvaks.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vyvaks.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vyvaks.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vyvaks.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vyvaks.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vyvaks.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vyvaks.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vyvaks.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vyvaks.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vyvaks.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vyvaks.wordpress.com&amp;blog=240494&amp;post=9&amp;subd=vyvaks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vyvaks.wordpress.com/2006/05/27/does-runtimeexec-hangs-in-java/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ababb2c163ff451d45a0d236c6f1f398?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vivik</media:title>
		</media:content>
	</item>
	</channel>
</rss>
