<?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>Eaglek1&#039;s Blog</title>
	<atom:link href="http://eaglek1.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://eaglek1.wordpress.com</link>
	<description>N3sting place :)</description>
	<lastBuildDate>Wed, 06 Jan 2010 13:49:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='eaglek1.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/6791f2bfc7f97c45dbf929b9512dfac4?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Eaglek1&#039;s Blog</title>
		<link>http://eaglek1.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://eaglek1.wordpress.com/osd.xml" title="Eaglek1&#039;s Blog" />
	<atom:link rel='hub' href='http://eaglek1.wordpress.com/?pushpress=hub'/>
		<item>
		<title>LInux Shelll Scripting for beginners</title>
		<link>http://eaglek1.wordpress.com/2009/12/09/linux-shelll-scripting-for-beginners/</link>
		<comments>http://eaglek1.wordpress.com/2009/12/09/linux-shelll-scripting-for-beginners/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 10:17:08 +0000</pubDate>
		<dc:creator>eaglek1</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Professional]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Usefull Stuff]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://eaglek1.wordpress.com/2009/12/09/linux-shelll-scripting-for-beginners/</guid>
		<description><![CDATA[For you that need to write some bash scripts now and then, and just forgot how the syntax of a simple condition or loop is, check this tutorial (http://www.freeos.com/guides/lsst/ by Vivek G.), it is very complete and covers a wide set of bash script commands and has several examples that you may find useful. If [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eaglek1.wordpress.com&amp;blog=9255356&amp;post=74&amp;subd=eaglek1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For you that need to write some bash scripts now and then, and just forgot how the syntax of a simple condition or loop is, check this tutorial (<a href="http://www.freeos.com/guides/lsst/">http://www.freeos.com/guides/lsst/</a> by Vivek G.), it is very complete and covers a wide set of bash script commands and has several examples that you may find useful. </p>
<p>If you still want more there is another fine tutorial on this subject, which complements the first one with some more examples and scripts that you may want to have a look at. check it in <a href="http://tldp.org/LDP/abs/html/">advanced bash scripting guide</a> by Mendel Cooper.</p>
<div class="flockcredit" style="text-align:right;color:#CCC;font-size:x-small;">Blogged with the <a href="http://www.flock.com/blogged-with-flock" style="color:#999;font-weight:bold;" target="_new" title="Flock Browser">Flock Browser</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eaglek1.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eaglek1.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eaglek1.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eaglek1.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eaglek1.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eaglek1.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eaglek1.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eaglek1.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eaglek1.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eaglek1.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eaglek1.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eaglek1.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eaglek1.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eaglek1.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eaglek1.wordpress.com&amp;blog=9255356&amp;post=74&amp;subd=eaglek1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eaglek1.wordpress.com/2009/12/09/linux-shelll-scripting-for-beginners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/62f616c8073e9fb55021530b7e014169?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">eaglek1</media:title>
		</media:content>
	</item>
		<item>
		<title>Disk Encryption is not all!</title>
		<link>http://eaglek1.wordpress.com/2009/12/07/disk-encryption-is-not-all/</link>
		<comments>http://eaglek1.wordpress.com/2009/12/07/disk-encryption-is-not-all/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 12:03:48 +0000</pubDate>
		<dc:creator>eaglek1</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://eaglek1.wordpress.com/2009/12/07/disk-encryption-is-not-all/</guid>
		<description><![CDATA[For all of you thinking that TrueCryt encryption (full disk encryption) is the best security measure ever, hava a look at this post from Joanna Rutkowska from invisiblethings, to have a look how a simple hotel maid can overcome all your security implementations. When we think of security and privacy and proctet data information we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eaglek1.wordpress.com&amp;blog=9255356&amp;post=73&amp;subd=eaglek1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For all of you thinking that TrueCryt encryption (full disk encryption) is the best security measure ever, hava a look at this post from Joanna Rutkowska from <a href="http://theinvisiblethings.blogspot.com/2009/10/evil-maid-goes-after-truecrypt.html">invisiblethings</a>, to have a look how a simple hotel maid can overcome all your security implementations.</p>
<p>When we think of security and privacy and proctet data information we always think on disk encryption , well that&#8217;s true but we shouldn&#8217;t&nbsp; leave our data at everyone disposal, just because we believe the data is encrypted ergo secure.</p>
<p>Normally the most succefull attacks are not on cracking the data, by some brute force or mathematical algorithm, but instead we attack the user which can be misleading in a simple maner to give us the password for decrypting the data. <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>&#8220;Security is not something that you can buy, but is a process that you must ensure&#8221;, this not only applies for computer security but also for <a href="http://defesapessoal.org">personel defense</a>.</p>
<div class="flockcredit" style="text-align:right;color:#CCC;font-size:x-small;">Blogged with the <a href="http://www.flock.com/blogged-with-flock" style="color:#999;font-weight:bold;" target="_new" title="Flock Browser">Flock Browser</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eaglek1.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eaglek1.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eaglek1.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eaglek1.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eaglek1.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eaglek1.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eaglek1.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eaglek1.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eaglek1.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eaglek1.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eaglek1.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eaglek1.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eaglek1.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eaglek1.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eaglek1.wordpress.com&amp;blog=9255356&amp;post=73&amp;subd=eaglek1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eaglek1.wordpress.com/2009/12/07/disk-encryption-is-not-all/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/62f616c8073e9fb55021530b7e014169?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">eaglek1</media:title>
		</media:content>
	</item>
		<item>
		<title>Two factor authentication</title>
		<link>http://eaglek1.wordpress.com/2009/12/07/two-factor-authentication/</link>
		<comments>http://eaglek1.wordpress.com/2009/12/07/two-factor-authentication/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 11:08:00 +0000</pubDate>
		<dc:creator>eaglek1</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://eaglek1.wordpress.com/2009/12/07/two-factor-authentication/</guid>
		<description><![CDATA[Hello again, This tip is for those that are concerned with security and for that ones that wanted to be able to login in the pc using only a pen drive USB, without writing any password. Keep in mind that with this kind of authentication (only using usb flash drive) may be considered of a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eaglek1.wordpress.com&amp;blog=9255356&amp;post=72&amp;subd=eaglek1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font size="3">    Hello again,</p>
<p>This tip is for those that are concerned with security and for that ones that wanted to be able to login in the pc using only a pen drive USB, without writing any password.</p>
<p>Keep in mind that with this kind of authentication (only using usb flash drive) may be considered of a great risk, because if you loose the pen, from that moment on the computers that are at your responsability should be considered compromised, so keep this in mind if you try to follow this through.</p>
<p>The first thing you need is go to <a href="http://pamusb.org/">pam_usb.org</a>, where you&#8217;ll find out every informations that you&#8217;ld need to install it on your computers, and how configure them. So follow the <a href="http://pamusb.org/doc/quickstart">quickstart</a><a href="http://pamusb.org/doc/configuration">configurations</a> manual if you want to change the configurations a bit.</p>
<p>For me this is a very good piece of software, even in its early stage (version 0.4.2 i think), because it enables you to login and lock the computer automatically with just the insertion and removal of the USB pen from the computer.<br />
As i stated before this might be a security risk, but properlly configured it can be an improvement, i.e. if you used this device not as a bypass for your authentication but as another level of authentication, this will improve your security (2FA &#8211; <a href="http://en.wikipedia.org/wiki/Two-factor_authentication">two factor authentication</a>).</p>
<p>If you are really a security fanatic you can add severall factors of authentication, thus improving security.</p>
<p>I just want to share some configurations that you should do when configuring it. If you use it as a 2FA the default configurations are good enough, and you can tweak them as you like. But if you are using it as a bypass of your normal authentication you should disable this module for the Su, sudo and all root services. And also don&#8217;t use it for the root user.&nbsp; </p>
<p>This are only suggestions, but if you&#8217;re confident (or stupid :d) enough you can always ignore my warnings :p.</p>
<p>I just want to minimize the risk of beeing compromized, you can do so by putting this on the configurations file:<br />
<code></code></font>
<pre class="code xml"><font size="3"><span class="sc3"><span class="re1">&lt;users<span class="re2">&gt;</span></span></span>
     <span class="sc3"><span class="re1"></span></span><span class="sc3"><span class="coMULTI">&lt;!-- dont use this for root user, use it only for user BOB --&gt;
</span></span>     <span class="sc3"><span class="re1">&lt;user</span> <span class="re0">id</span>=<span class="st0">"BOB"</span><span class="re2">&gt;</span></span>
       <span class="sc3"><span class="coMULTI">&lt;!-- Disable debug output for user "scox" --&gt;</span></span>
       <span class="sc3"><span class="re1">&lt;option</span> <span class="re0">name</span>=<span class="st0">"debug"</span><span class="re2">&gt;</span></span>false<span class="sc3"><span class="re1">&lt;/option<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/users<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;services<span class="re2">&gt;</span></span></span>
     <span class="sc3"><span class="re1">&lt;service</span> <span class="re0">id</span>=<span class="st0">"su"</span><span class="re2">&gt;</span></span>
       <span class="sc3"><span class="coMULTI">&lt;!-- Disable pam_usb for "su" ("su" will ask for a password as usual) --&gt;</span></span>
       <span class="sc3"><span class="re1">&lt;option</span> <span class="re0">name</span>=<span class="st0">"enable"</span><span class="re2">&gt;</span></span>false<span class="sc3"><span class="re1">&lt;option<span class="re2">&gt;</span></span></span>
     <span class="sc3"><span class="re1">&lt;/service<span class="re2">&gt;</span></span></span>
     <span class="sc3"><span class="re1">&lt;service</span> <span class="re0">id</span>=<span class="st0">"sudo"</span><span class="re2">&gt;</span></span>
       <span class="sc3"><span class="re1">&lt;option</span> <span class="re0">name</span>=<span class="st0">"enable"</span><span class="re2">&gt;</span></span>false<span class="sc3"><span class="re1">&lt;option<span class="re2">&gt;</span></span></span>
     <span class="sc3"><span class="re1">&lt;/service<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/services<span class="re2">&gt;</span></span></span>

</font></pre>
<p><font size="3"><br />
Thanks to <a href="http://pamusb.org">pamusb.org</a><br />
</font></p>
<div class="flockcredit" style="text-align:right;color:#CCC;font-size:x-small;">Blogged with the <a href="http://www.flock.com/blogged-with-flock" style="color:#999;font-weight:bold;" target="_new" title="Flock Browser">Flock Browser</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eaglek1.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eaglek1.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eaglek1.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eaglek1.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eaglek1.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eaglek1.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eaglek1.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eaglek1.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eaglek1.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eaglek1.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eaglek1.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eaglek1.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eaglek1.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eaglek1.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eaglek1.wordpress.com&amp;blog=9255356&amp;post=72&amp;subd=eaglek1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eaglek1.wordpress.com/2009/12/07/two-factor-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/62f616c8073e9fb55021530b7e014169?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">eaglek1</media:title>
		</media:content>
	</item>
		<item>
		<title>Improve Security on LInux Systems</title>
		<link>http://eaglek1.wordpress.com/2009/12/07/improve-security-on-linux-systems/</link>
		<comments>http://eaglek1.wordpress.com/2009/12/07/improve-security-on-linux-systems/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 10:06:08 +0000</pubDate>
		<dc:creator>eaglek1</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://eaglek1.wordpress.com/2009/12/07/improve-security-on-linux-systems/</guid>
		<description><![CDATA[This article will point out some tricks to improve the security of your linux server, that you may have at work on the datacenter at your desk or even in your home. As all of you know (linux geeks, and semi-geeks) whenever you have a problem with your computer and cannot login with the usual [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eaglek1.wordpress.com&amp;blog=9255356&amp;post=66&amp;subd=eaglek1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:small;"><br />
This article will point out some tricks to improve the security of your linux server, that you may have at work on the datacenter at your desk or even in your home.<br />
As all of you know (linux geeks, and semi-geeks) whenever you have a problem with your computer and cannot login with the usual username password you can reboot the PC and in the GRUB level you may choose to boot in <a href="http://www.cyberciti.biz/faq/grub-boot-into-single-user-mode/">Single User mode</a>. This boot mode is for maintenance only and give root access to that machine without even ask for a password, well at least in the default configuration.<br />
Because the default configuration is never secure <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  we will improve it a bit by setting a password </span> <span style="font-size:small;">to this boot mode, simply by adding a line in the <a href="http://www.yolinux.com/TUTORIALS/LinuxTutorialInitProcess.html">/etc/inttab</a> file, as follows</span></p>
<p><code><span style="font-size:small;">~~:S:wait:/sbin/sulogin</span></code></p>
<p><span style="font-size:small;">Now whenever you try to boot in this mode you are asked for the root password, so no more fun for the in house hackers <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </span></p>
<p><span style="font-size:small;">After a carefull threat assesment we found out that the users in our company were smart enough to bypass this issue just by using a live cd or USB disk and then chroot and again add access to the complete system.<br />
We will block this issue by simply put a password in the PC BIOS, and in he boot devices put the hardrive as the first option and disable all the other options.</span></p>
<p><span style="font-size:small;">We should have in mind that the user doesn&#8217;t have the capability, due to measures implemented by the company security team, to open up the case of the server and reset the bios. To overcome this issue we could also flash the bios with our specific options and passwords embbebed, thus avoiding this threat. But If the attacker wanted to he could always change the BIOS chip, or even simpler steell the hardrive.<br />
So as you can see we cannot be 100% secure, but we can improve the security measures to dificult the attacker success.</span></p>
<p><span style="font-size:small;">Thanks to <a href="http://www.schneier.com/book-sandl.html">Bruce Schneier in &#8220;Secrets and Lies&#8221;</a>, a very nice and pragmatic book about security in general, and threat accessement in computer security. A very intelligent book that all SysADmins should read.</span><br />
<span style="font-size:small;"><br />
Thanks to <a href="http://www.cyberciti.biz/tips/tips-to-protect-linux-servers-physical-console-access.html"><span class="author vcard fn">Vivek Gite</span></a></span> post .</p>
<div class="flockcredit" style="text-align:right;color:#ccc;font-size:x-small;">Blogged with the <a style="color:#999;font-weight:bold;" title="Flock Browser" href="http://www.flock.com/blogged-with-flock" target="_new">Flock Browser</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eaglek1.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eaglek1.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eaglek1.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eaglek1.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eaglek1.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eaglek1.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eaglek1.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eaglek1.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eaglek1.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eaglek1.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eaglek1.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eaglek1.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eaglek1.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eaglek1.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eaglek1.wordpress.com&amp;blog=9255356&amp;post=66&amp;subd=eaglek1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eaglek1.wordpress.com/2009/12/07/improve-security-on-linux-systems/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/62f616c8073e9fb55021530b7e014169?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">eaglek1</media:title>
		</media:content>
	</item>
		<item>
		<title>Developping GUI&#8217;s in JAVA!</title>
		<link>http://eaglek1.wordpress.com/2009/11/25/developping-guis-in-java/</link>
		<comments>http://eaglek1.wordpress.com/2009/11/25/developping-guis-in-java/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 09:50:49 +0000</pubDate>
		<dc:creator>eaglek1</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://eaglek1.wordpress.com/2009/11/25/developping-guis-in-java/</guid>
		<description><![CDATA[Taking java lightly.. Attention to the GridBagLayout! http://madbean.com/anim/totallygridbag/ The JarWars http://madbean.com/anim/jarwars/ Blogged with the Flock Browser<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eaglek1.wordpress.com&amp;blog=9255356&amp;post=65&amp;subd=eaglek1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Taking java lightly.. </p>
<p>Attention to the GridBagLayout!<br />
<a href="http://madbean.com/anim/totallygridbag/">http://madbean.com/anim/totallygridbag/</a></p>
<p>The JarWars<br />
<a href="http://madbean.com/anim/jarwars/">http://madbean.com/anim/jarwars/</a></p>
<div class="flockcredit" style="text-align:right;color:#CCC;font-size:x-small;">Blogged with the <a href="http://www.flock.com/blogged-with-flock" style="color:#999;font-weight:bold;" target="_new" title="Flock Browser">Flock Browser</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eaglek1.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eaglek1.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eaglek1.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eaglek1.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eaglek1.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eaglek1.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eaglek1.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eaglek1.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eaglek1.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eaglek1.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eaglek1.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eaglek1.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eaglek1.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eaglek1.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eaglek1.wordpress.com&amp;blog=9255356&amp;post=65&amp;subd=eaglek1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eaglek1.wordpress.com/2009/11/25/developping-guis-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/62f616c8073e9fb55021530b7e014169?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">eaglek1</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Java objects with Matlab.</title>
		<link>http://eaglek1.wordpress.com/2009/10/15/using-java-objects-with-matlab/</link>
		<comments>http://eaglek1.wordpress.com/2009/10/15/using-java-objects-with-matlab/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 16:38:51 +0000</pubDate>
		<dc:creator>eaglek1</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Matlab]]></category>

		<guid isPermaLink="false">http://eaglek1.wordpress.com/2009/10/15/using-java-objects-with-matlab/</guid>
		<description><![CDATA[Following the previous post subject, i will show how to write , compile, link and use that java class in *.m Matlab file. First step: create a java hello world class file: HelloWorld.java class HelloWorld { public void doStuff(void){ out.println(&#34;Hello World!&#34;); } } Then you need to compile the code: keep in mind that you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eaglek1.wordpress.com&amp;blog=9255356&amp;post=32&amp;subd=eaglek1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Following the previous post subject, i will show how to write , compile, link and use that java class in *.m Matlab file.</p>
<p>First step: create a java hello world class</p>
<p>file: HelloWorld.java</p>
<pre class="brush: java;">
class HelloWorld {
public void doStuff(void){
out.println(&quot;Hello World!&quot;);
}
}
</pre>
<p>Then you need to compile the code:</p>
<p>keep in mind that you need to compile the source code with the matlab jre, otherwise it may not work.</p>
<pre class="brush: bash;">
javac -cp %CLASSPATH:/path/to/matlab/jre HelloWorld.java
</pre>
<p>Second step:</p>
<p>After compiling you get HelloWorld.class file, and then you need to create a .jar file with that class, therefore:</p>
<pre class="brush: bash;">
jar -cvf  library.jar HelloWorld.class
</pre>
<p>Third step:</p>
<p>Now you need to include the jar file to the matlab environment and then use the methods inside of the library. Such as :</p>
<p>file : dummy2.m</p>
<pre class="brush: java;">
clear all;
javaaddpath(/path/to/library.jar);
(...)
HelloWorld.doStuff
(...)
</pre>
<p>All the code above tries to show the logic behind the difficult job of making Matlab and Java working together. The show code present is an aggregation of several web posts, foruns and some official documentation from Mathworks, but each one for itself is not enough, and i spend lot of time to achieve this knowledge, and therefore i&#8217;m sharing it with you.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eaglek1.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eaglek1.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eaglek1.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eaglek1.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eaglek1.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eaglek1.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eaglek1.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eaglek1.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eaglek1.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eaglek1.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eaglek1.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eaglek1.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eaglek1.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eaglek1.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eaglek1.wordpress.com&amp;blog=9255356&amp;post=32&amp;subd=eaglek1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eaglek1.wordpress.com/2009/10/15/using-java-objects-with-matlab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/62f616c8073e9fb55021530b7e014169?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">eaglek1</media:title>
		</media:content>
	</item>
		<item>
		<title>Using WEKA API in Matlab.</title>
		<link>http://eaglek1.wordpress.com/2009/10/15/using-weka-api-in-matlab/</link>
		<comments>http://eaglek1.wordpress.com/2009/10/15/using-weka-api-in-matlab/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 14:24:28 +0000</pubDate>
		<dc:creator>eaglek1</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Matlab]]></category>
		<category><![CDATA[weka]]></category>

		<guid isPermaLink="false">http://eaglek1.wordpress.com/?p=16</guid>
		<description><![CDATA[Using Java code inside Matlab m files!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eaglek1.wordpress.com&amp;blog=9255356&amp;post=16&amp;subd=eaglek1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The WEKA (http://www.cs.waikato.ac.nz/ml/weka/) software is very powerful data mining tool that allows you to test your datasets with a broad set of classifiers, and cluster functions. One nice feature is that you can use their JAVA API to develop and incorporate in your own applications and avoiding to write implementations of SVM, K-NN,&#8230; algorithms.</p>
<p>Another tool that i used a lot was Matlab &#8211; MAthWorks, which in the last version (2008) allows us to write code in a object oriented way. And because is built on top of a Java Virtual Machine, it now allows to use java objects on their .m files.</p>
<p>The code snippets that i will show is to use the WEKA library on Matlab files, but it can be used to link any kind of java library.</p>
<p>file dummy.m:</p>
<pre class="brush: java;">
//include jar libraries to matlab environment
javaaddpath('/opt/weka-3-5-7/weka.jar');
javaaddpath('/opt/weka/libsvm.jar');
//imports java like
import weka.classifiers.*;
import weka.classifiers.Classifier.*;
import weka.classifiers.bayes.BayesNet.*;
import weka.classifiers.Evaluation.*;
//Arff files
ARFFtrainfile = &quot;/path/to/arfftrainfile.arff&quot;;
ARFFtestfile = &quot;/path/to/arfftestfile.arff&quot;;
//Settings for the classifier
v(1) = java.lang.String('-t');
v(2) = java.lang.String(ARFFtrainfile);
v(3) = java.lang.String('-T');
v(4) = java.lang.String(ARFFtestfile);
v(5) = java.lang.String('-S 0 -K 2 -D 3 -G 0.0010 -R 0.0 -N 0.5 -M 40.0 -C 10.0 -E 0.0010 -P 0.1');
//concatenate the settings in a string
prm = cat(1,v(1:end));
//create classifier instance, and perform the evaluation
classifier = javaObject('weka.classifiers.functions.LibSVM');
weka.classifiers.Evaluation.evaluateModel(classifier,prm)
//open trainset&lt;span style=&quot;background-color: #ffffff;&quot;&gt; &lt;/span&gt;
reader = javaObject('java.io.FileReader', ARFFTrainfile);
dataset = javaObject('weka.core.Instances', reader);
dataset.setClassIndex(dataset.numAttributes() - 1);
//build classifier model
classifier.buildClassifier(dataset);
...
while (true) {
instance = javaObject('weka.core.Instance', length(attributes_Dataset));
predicted = classifier.classifyInstance(instance);
//predict the class from the instance
class = dataset.attribute(dataset.numAttributes() -1).value(predicted))
}
...
</pre>
<p>In the code above the part inside the while is for predict the class of each instance; each instance can be any vector but need to have the same number of attributes as the ones in the dataset , in the arff files.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eaglek1.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eaglek1.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eaglek1.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eaglek1.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eaglek1.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eaglek1.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eaglek1.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eaglek1.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eaglek1.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eaglek1.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eaglek1.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eaglek1.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eaglek1.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eaglek1.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eaglek1.wordpress.com&amp;blog=9255356&amp;post=16&amp;subd=eaglek1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eaglek1.wordpress.com/2009/10/15/using-weka-api-in-matlab/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/62f616c8073e9fb55021530b7e014169?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">eaglek1</media:title>
		</media:content>
	</item>
		<item>
		<title>Usefull stuff</title>
		<link>http://eaglek1.wordpress.com/2009/08/31/usefull-stuff/</link>
		<comments>http://eaglek1.wordpress.com/2009/08/31/usefull-stuff/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 13:22:54 +0000</pubDate>
		<dc:creator>eaglek1</dc:creator>
				<category><![CDATA[Usefull Stuff]]></category>

		<guid isPermaLink="false">http://eaglek1.wordpress.com/2009/08/31/usefull-stuff/</guid>
		<description><![CDATA[Mason_-_Writing_and_Publishing_a_Scientific_Paper (from www.cmdtla.org) Writing good software engineering research papers: minitutorial (from ieee) Using Eclipse to develop for Embedded Linux on a Window Host<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eaglek1.wordpress.com&amp;blog=9255356&amp;post=4&amp;subd=eaglek1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://eaglek1.files.wordpress.com/2009/08/mason_-_writing_and_publishing_a_scientific_paper.pdf">Mason_-_Writing_and_Publishing_a_Scientific_Paper</a> (from www.cmdtla.org)</p>
<p><strong></strong><a href="http://eaglek1.files.wordpress.com/2009/09/a1551933d01.pdf">Writing good software engineering research papers: minitutorial</a> (from ieee)</p>
<p><a href="http://eaglek1.files.wordpress.com/2009/09/626bbb3dd01.pdf">Using Eclipse to develop for Embedded Linux on a Window Host</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eaglek1.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eaglek1.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eaglek1.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eaglek1.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eaglek1.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eaglek1.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eaglek1.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eaglek1.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eaglek1.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eaglek1.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eaglek1.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eaglek1.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eaglek1.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eaglek1.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eaglek1.wordpress.com&amp;blog=9255356&amp;post=4&amp;subd=eaglek1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eaglek1.wordpress.com/2009/08/31/usefull-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/62f616c8073e9fb55021530b7e014169?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">eaglek1</media:title>
		</media:content>
	</item>
		<item>
		<title>N3st Bl0g</title>
		<link>http://eaglek1.wordpress.com/2009/08/31/hello-world/</link>
		<comments>http://eaglek1.wordpress.com/2009/08/31/hello-world/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 13:19:21 +0000</pubDate>
		<dc:creator>eaglek1</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[This blog is for my personal stuff.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eaglek1.wordpress.com&amp;blog=9255356&amp;post=1&amp;subd=eaglek1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This blog is for my personal stuff.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eaglek1.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eaglek1.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eaglek1.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eaglek1.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eaglek1.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eaglek1.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eaglek1.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eaglek1.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eaglek1.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eaglek1.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eaglek1.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eaglek1.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eaglek1.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eaglek1.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eaglek1.wordpress.com&amp;blog=9255356&amp;post=1&amp;subd=eaglek1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eaglek1.wordpress.com/2009/08/31/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/62f616c8073e9fb55021530b7e014169?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">eaglek1</media:title>
		</media:content>
	</item>
	</channel>
</rss>
