<?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>Leandro Abite</title>
	<atom:link href="http://labite.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://labite.wordpress.com</link>
	<description>Oficial blog of Leandro Abite</description>
	<lastBuildDate>Wed, 28 Sep 2011 13:59:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='labite.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/f067b9476b574b71156fff4ea4ce9172?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Leandro Abite</title>
		<link>http://labite.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://labite.wordpress.com/osd.xml" title="Leandro Abite" />
	<atom:link rel='hub' href='http://labite.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to hide password entry using stty</title>
		<link>http://labite.wordpress.com/2011/09/28/how-to-hide-a-password-entry-using-stty/</link>
		<comments>http://labite.wordpress.com/2011/09/28/how-to-hide-a-password-entry-using-stty/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 13:59:27 +0000</pubDate>
		<dc:creator>labite</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[hide password entry]]></category>
		<category><![CDATA[stty]]></category>

		<guid isPermaLink="false">http://labite.wordpress.com/?p=87</guid>
		<description><![CDATA[This scripts allow the user to type the password without it be shown in the screen. Copy and past the content bellow  in a .sh file #!/bin/bash echo -n "Password: " stty -echo read PASSWD stty echo echo -e "\nYour password is:" $PASSWD Running the shell script # ./hiddenpasswd.sh Password: Your password is: t$prod123%f<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=labite.wordpress.com&amp;blog=5757098&amp;post=87&amp;subd=labite&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This scripts allow the user to type the password without it be shown in the screen.</p>
<h4>Copy and past the content bellow  in a .sh file</h4>
<pre>#!/bin/bash 

echo -n "Password: "
stty -echo
read PASSWD
stty echo
echo -e "\nYour password is:" $PASSWD</pre>
<h4>Running the shell script</h4>
<pre># ./hiddenpasswd.sh
Password:
Your password is: t$prod123%f</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/labite.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/labite.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/labite.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/labite.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/labite.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/labite.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/labite.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/labite.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/labite.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/labite.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/labite.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/labite.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/labite.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/labite.wordpress.com/87/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=labite.wordpress.com&amp;blog=5757098&amp;post=87&amp;subd=labite&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://labite.wordpress.com/2011/09/28/how-to-hide-a-password-entry-using-stty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0220d7a93b2ee7e542de1b1a30166688?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">labite</media:title>
		</media:content>
	</item>
		<item>
		<title>How to pack Oracle database&#8217;s binaries in a RPM file</title>
		<link>http://labite.wordpress.com/2011/09/24/how-to-pack-oracle-databases-binaries-in-a-rpm-file/</link>
		<comments>http://labite.wordpress.com/2011/09/24/how-to-pack-oracle-databases-binaries-in-a-rpm-file/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 04:46:25 +0000</pubDate>
		<dc:creator>labite</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://labite.wordpress.com/?p=64</guid>
		<description><![CDATA[This article describes how to create a RPM file with oracle&#8217;s binaries in it, in order to make easier the process of database installation. Prerequisites Install the packages rpmdevtools and rpm-build, these packages contains command line like rpmdev-setuptree and rpmbuild that will help to create the RPM structure #yum install rpmdevtools rpm-build The oracle database [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=labite.wordpress.com&amp;blog=5757098&amp;post=64&amp;subd=labite&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This article describes how to create a RPM file with oracle&#8217;s binaries in it, in order to make easier the process of database installation.</p>
<h4>Prerequisites</h4>
<p>Install the packages rpmdevtools and rpm-build, these packages contains command line like rpmdev-setuptree and rpmbuild that will help to create the RPM structure</p>
<pre><span style="color:#000080;">#yum install rpmdevtools rpm-build</span></pre>
<p>The oracle database software must be installed on the machine</p>
<h4>Generate the RPM structure</h4>
<p>Inside the oracle&#8217;s home directory execute the command:</p>
<pre><span style="color:#000080;">#rpmdev-setuptree</span></pre>
<p>This command will create the following directory structure:</p>
<pre>|-- rpmbuild
    |-- BUILD
    |-- RPMS
    |-- SOURCES
    |-- SPECS
    `-- SRPMS</pre>
<h4>RPM Contents SOURCES</h4>
<p>The directory SOURCES must have a tar file with all files desired to be added in the RPM file</p>
<pre><span style="color:#000080;">#tar -cvf oracle11.tar /home/oracle/.bash_profile /u01/app/oracle/product/11.2.0/rhdb/*</span></pre>
<h4>Configuration SPEC file</h4>
<p>The directory SPEC is where the spec file with the instructions to create our RPM must be placed</p>
<p>Create a file called oracle11G.spec with the content bellow:</p>
<pre>Name: oracle
Version: 11
Release: 2%{?dist}
Summary: Oracle 11G R2
Group:  redhat
License: GNU
URL: http://www.redhat.com
Source0:        oracle11.tar
#BuildRoot:     %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

Requires: binutils &gt;= 2, glibc &gt;= 2, nss-softokn-freebl &gt;= 3, compat-libstdc++ &gt;= 33, glibc-common &gt;= 2, glibc-devel &gt;= 2, glibc-headers &gt;= 2, elfutils-libelf, elfutils-libelf-devel, gcc &gt;= 4, gcc-c++ &gt;= 4, ksh, libaio, libaio-devel, libgcc &gt;= 4, libstdc++ &gt;= 4, libstdc++-devel &gt;= 4, make &gt;= 3.81, numactl-devel &gt;= 2, sysstat &gt;= 9 libfreebl3.so()(32bit), ld-linux.so.2()(32bit), libc.so()(32bit), libaio.so.1()(32bit), libaio.so()(32bit), libgcc_s.so.1()(32bit), libstdc++.so.6()(32bit), libstdc++.so.5()(32bit)

%description
Oracle 11G R2

%build
mkdir -p $RPM_BUILD_ROOT/home/oracle
cp /home/oracle/.bash_profile $RPM_BUILD_ROOT/home/oracle

mkdir -p $RPM_BUILD_ROOT/u01/app/oracle/product/11.2.0/rhdb/
cp -ra /u01/app/oracle/product/11.2.0/rhdb/* $RPM_BUILD_ROOT/u01/app/oracle/product/11.2.0/rhdb/

%pre
groupadd oinstall
groupadd dba

useradd -g oinstall -G dba oracle
echo redhat|passwd --stdin oracle

%files
/u01/*
/home/*

%post
chown -R oracle:oinstall /u01
chmod -R 775 /u01

%changelog
* Fri Sep 23 2011 Leandro Abite  1.0
- First version</pre>
<h4>Generating RPM file</h4>
<p>The generation of the RPM file is made by the command rpmbuild passing the spec file as parameter</p>
<pre><span style="color:#000080;">#rpmbuild -ba oracle11G.spec</span></pre>
<p>if every thing is ok the rpm file should be created in the directory SRPMS</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/labite.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/labite.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/labite.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/labite.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/labite.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/labite.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/labite.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/labite.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/labite.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/labite.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/labite.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/labite.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/labite.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/labite.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=labite.wordpress.com&amp;blog=5757098&amp;post=64&amp;subd=labite&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://labite.wordpress.com/2011/09/24/how-to-pack-oracle-databases-binaries-in-a-rpm-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0220d7a93b2ee7e542de1b1a30166688?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">labite</media:title>
		</media:content>
	</item>
		<item>
		<title>How to make the Apache redirect from http to https and vice versa automatically</title>
		<link>http://labite.wordpress.com/2009/12/09/how-to-make-the-apache-redirect-from-http-to-https-and-vice-versa-automatically/</link>
		<comments>http://labite.wordpress.com/2009/12/09/how-to-make-the-apache-redirect-from-http-to-https-and-vice-versa-automatically/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 01:43:20 +0000</pubDate>
		<dc:creator>labite</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://labite.wordpress.com/?p=59</guid>
		<description><![CDATA[There are some ways to do that, in this examples let&#8217;s use the module mod_rewrite. Make sure that the module mod_rewrite is being loaded by your apache We need tell apache the condiction to execute the redirect, edit the file $APACHE_HOME/conf/httpd.conf and add the following lines: #Turn on the rewrite RewriteEngine on #Condiction and rule [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=labite.wordpress.com&amp;blog=5757098&amp;post=59&amp;subd=labite&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are some ways to do that, in this examples let&#8217;s use the module mod_rewrite.</p>
<p>Make sure that the module mod_rewrite is being loaded by your apache</p>
<p>We need tell apache the condiction to execute the redirect, edit the file <strong>$APACHE_HOME/conf/httpd.conf</strong> and add the following lines:</p>
<p>#Turn on the rewrite<br />
<code>RewriteEngine on</code></p>
<p>#Condiction and rule for redirect<br />
<code>RewriteCond %{REQUEST_URI} ^/(&lt;YOUR URL&gt;)<br />
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]</code></p>
<p>Sample:<br />
Let&#8217;s suppose you need to redirect the URL <strong>http://youserver/login.php</strong> to <strong>https://youserver/login.php</strong>, our configuration would be the follwing:</p>
<p><code>RewriteCond %{REQUEST_URI} ^/(login\.php)<br />
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]</code></p>
<p>If there are a need to set up more than one URL, just copy and paste the 2 lines above and replace the name of the page.</p>
<p>Once the user request the url <strong>http://youserver/login.php</strong> he will remain in https even in pages that are not configured in httpd.conf, That happened because that configuration tell apache to get in https when the page login.php is requested, so we need tell Apache to get in http when some other page is requested, this is configured in the file <strong>$APACHE_HOME/conf.d/ssl.conf,</strong> do the same configuration done in file http.conf</p>
<p>Sample:<br />
Let&#8217;s suppose that after the user pass througt the login he will get the home.php page, so add the following lines in the file $APACHE_HOME/conf.d/ssl.conf:</p>
<p><code>RewriteEngine On</code></p>
<p>RewriteCond %{REQUEST_URI} ^/(home\.php)<br />
RewriteRule ^/(.*) http://%{SERVER_NAME}/$1 [R,L]</p>
<p>Don&#8217;t forget to restart the apache service</p>
<p>It&#8217;s done, <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  !!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/labite.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/labite.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/labite.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/labite.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/labite.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/labite.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/labite.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/labite.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/labite.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/labite.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/labite.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/labite.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/labite.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/labite.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=labite.wordpress.com&amp;blog=5757098&amp;post=59&amp;subd=labite&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://labite.wordpress.com/2009/12/09/how-to-make-the-apache-redirect-from-http-to-https-and-vice-versa-automatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0220d7a93b2ee7e542de1b1a30166688?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">labite</media:title>
		</media:content>
	</item>
		<item>
		<title>Converting Entity Objects to SelectItem Objects using reflection</title>
		<link>http://labite.wordpress.com/2009/07/14/converting-entity-objects-to-selectitem-objects-using-reflection/</link>
		<comments>http://labite.wordpress.com/2009/07/14/converting-entity-objects-to-selectitem-objects-using-reflection/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 18:15:03 +0000</pubDate>
		<dc:creator>labite</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[jsf]]></category>
		<category><![CDATA[reflection]]></category>
		<category><![CDATA[selectitem]]></category>

		<guid isPermaLink="false">http://labite.wordpress.com/?p=54</guid>
		<description><![CDATA[This method is very useful for development JSP using JSF. This method converts a list of Entity Objects or any class that contains the items for a JSF ListBox to SelectItem Object. The class must have at least two methods: The id method that return de id of the Item The description method that return [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=labite.wordpress.com&amp;blog=5757098&amp;post=54&amp;subd=labite&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This method is very useful for development JSP using JSF. This method converts a list of Entity Objects or any class that contains the items for a JSF ListBox to SelectItem Object. The class must have at least two methods:</p>
<ol>
<li> The id method that return de id of the Item</li>
<li>The description method that return the description of the Item</li>
</ol>
<pre>
public List&lt;SelectItem&gt; entityToSelectItem(List _items, String _idMethod, String _descMethod)throws Exception {
  List&lt;SelectItem&gt; items = new ArrayList&lt;SelectItem&gt;();

  Method idMethod = null;
  Method descMethod = null;

  for (int i = 0; i &lt; _items.size(); i++) {
    Object item = _items.get(i);
    // On the first run, initialize reflection methods for object
    if (idMethod == null) {
      Class obj = item.getClass();
      idMethod = obj.getMethod(_idMethod, new Class[]{});
      descMethod = obj.getMethod(_descMethod, new Class[]{});
    }
    // invoke Methods
    String id = (String) idMethod.invoke(item, new Object[]{});
    String name = (String) descMethod.invoke(item, new Object[]{});

    SelectItem selectItem = new SelectItem();
    selectItem.setLabel(name);
    selectItem.setValue(id.toString());
    items.add(selectItem);
  }
  return items;
}</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/labite.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/labite.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/labite.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/labite.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/labite.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/labite.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/labite.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/labite.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/labite.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/labite.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/labite.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/labite.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/labite.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/labite.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=labite.wordpress.com&amp;blog=5757098&amp;post=54&amp;subd=labite&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://labite.wordpress.com/2009/07/14/converting-entity-objects-to-selectitem-objects-using-reflection/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0220d7a93b2ee7e542de1b1a30166688?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">labite</media:title>
		</media:content>
	</item>
		<item>
		<title>Compartmental Syndrome</title>
		<link>http://labite.wordpress.com/2009/05/08/compartmental-syndrome/</link>
		<comments>http://labite.wordpress.com/2009/05/08/compartmental-syndrome/#comments</comments>
		<pubDate>Fri, 08 May 2009 05:03:11 +0000</pubDate>
		<dc:creator>labite</dc:creator>
				<category><![CDATA[Health]]></category>
		<category><![CDATA[Compartmental Syndrome]]></category>
		<category><![CDATA[muscle tibial]]></category>

		<guid isPermaLink="false">http://labite.wordpress.com/?p=39</guid>
		<description><![CDATA[I had my legs operated due a compartment syndrome!!! you should be asking your self &#8230; what fuck does compartment syndrome mean???? Compartment syndrome is very common in runners, footballers, usually in high level athelets like me!!hehehehehehe&#8230; our muscles are covered by a layer called faschia, compartment syndrome occurrs when the muscle tries to swell [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=labite.wordpress.com&amp;blog=5757098&amp;post=39&amp;subd=labite&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">I had my legs operated due a compartment syndrome!!! you should be asking your self &#8230; what fuck does compartment syndrome mean????</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">Compartment syndrome is very common in runners, footballers, usually in high level athelets like me!!hehehehehehe&#8230; our muscles are covered by a layer called faschia, compartment syndrome occurrs when the muscle tries to swell up bigger than the faschia, hence a pressure is put on the muscle, therefore a terrible pain will be felt, in my case it occurred  on anterior tibial muscle, this is the most common place to have it.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">My surgery was yesterday, I was operated by Dr. Marcelo Castro from Hcor in Sao Paulo Brazil, the surgery toke about 40 minutes, to release the pressure he just cut open the faschia, and poof, I got better!!! I&#8217;ll be ready to back to phisical activities within a month, I am looking after to back to a football match and play without fell any pain.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">I&#8217;d like to thank the doctor Marcelo Castro and your team for the great job realised.</div>
<p> </p>
<p style="text-align:center;"><img class="size-medium wp-image-38 aligncenter" title="Compartmental Syndrome Operation" src="http://labite.files.wordpress.com/2009/05/sindrome.jpg?w=300&#038;h=225" alt="Compartmental Syndrome Operation" width="300" height="225" />My legs after operation</p>
<p>I had my legs operated due a compartmental syndrome!!! you should be asking yourself &#8230; what fuck does compartmental syndrome mean????</p>
<p>Compartment syndrome is very common in runners, footballers, usually in high level athletes like me!! LOL&#8230; our muscles are covered by a layer called faschia, compartment syndrome occurs when the muscle tries to swell up bigger than the faschia, hence a pressure is put on the muscle, therefore a terrible pain will be felt, in my case it occurred  on anterior tibial muscle, this is the most common place to occurs it.</p>
<p>My surgery was yesterday, I was operated by Dr. Marcelo Padro from HCor in Sao Paulo &#8211; Brazil, the surgery took about 40 minutes, to release the pressure he just cut open the faschia, and poof, I got better!!! I&#8217;ll be ready to back to phisical activities within a month, I am looking forward to play  a football match without felling any pain.</p>
<div>I&#8217;d like to thank the doctor Marcelo Prado and his team for the great job performed.</div>
<div>Leandro Abite</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/labite.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/labite.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/labite.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/labite.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/labite.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/labite.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/labite.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/labite.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/labite.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/labite.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/labite.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/labite.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/labite.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/labite.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=labite.wordpress.com&amp;blog=5757098&amp;post=39&amp;subd=labite&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://labite.wordpress.com/2009/05/08/compartmental-syndrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0220d7a93b2ee7e542de1b1a30166688?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">labite</media:title>
		</media:content>

		<media:content url="http://labite.files.wordpress.com/2009/05/sindrome.jpg?w=300" medium="image">
			<media:title type="html">Compartmental Syndrome Operation</media:title>
		</media:content>
	</item>
		<item>
		<title>Running os commands from Oracle</title>
		<link>http://labite.wordpress.com/2009/02/20/17/</link>
		<comments>http://labite.wordpress.com/2009/02/20/17/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 16:27:32 +0000</pubDate>
		<dc:creator>labite</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[execute]]></category>
		<category><![CDATA[labite]]></category>
		<category><![CDATA[os command]]></category>
		<category><![CDATA[os commands from Oracle]]></category>
		<category><![CDATA[pl sql]]></category>
		<category><![CDATA[run]]></category>

		<guid isPermaLink="false">http://labite.wordpress.com/?p=17</guid>
		<description><![CDATA[I was looking for a way to execute os commands from Oracle, all solutions I found were very complex, had to create a C program or had to use the package dbms_scheduler to execute a job, besides to be complex these solutions, have to develop diferents codes for diferents operational systems&#8230; so I solved this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=labite.wordpress.com&amp;blog=5757098&amp;post=17&amp;subd=labite&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was looking for a way to execute os commands from Oracle, all solutions I found were very complex, had to create a C program or had to use the package dbms_scheduler to execute a job, besides to be complex these solutions, have to develop diferents codes for diferents operational systems&#8230; so I solved this problem using java without to use the package dbms_scheduler , the Java class executes the command in runtime, this solution works in Oracle 8,9,10 and 11 with all operation systems supported by Oracle. Basicly you need to follow 3 steps:</p>
<ol>
<li>Grant some java privileges to your Oracle database user.</li>
<li>Compile java class on Oracle database.</li>
<li>Create a Oracle function with the call to java class.</li>
</ol>
<h4>STEP 1 &#8211; GRANTS TO YOUR DATABASE USER</h4>
<p>Logged as SYS execute the commands bellow:</p>
<pre><span style="color:#0000ff;">SQL&gt; EXEC dbms_java.grant_permission('<strong>&lt;USERNAME&gt;</strong>',
                                     'SYS:java.lang.RuntimePermission',
                                     'writeFileDescriptor', '');

SQL&gt; EXEC dbms_java.grant_permission('<strong>&lt;USERNAME&gt;</strong>',
</span><span style="color:#0000ff;">                                     </span><span style="color:#0000ff;">'SYS:java.lang.RuntimePermission',
</span><span style="color:#0000ff;">                                     </span><span style="color:#0000ff;">'readFileDescriptor', '');

SQL&gt; EXEC dbms_java.grant_permission('<strong>&lt;USERNAME&gt;</strong>',
</span><span style="color:#0000ff;">                                     </span><span style="color:#0000ff;">'SYS:java.io.FilePermission',
</span><span style="color:#0000ff;">                                     </span><span style="color:#0000ff;">'/bin/sh', 'execute');

Example:

</span><span style="color:#0000ff;">SQL&gt; EXEC dbms_java.grant_permission('<strong>labite</strong>',
</span><span style="color:#0000ff;">                                     </span><span style="color:#0000ff;">'SYS:java.lang.RuntimePermission',
</span><span style="color:#0000ff;">                                     </span><span style="color:#0000ff;">'writeFileDescriptor', '');

SQL&gt; EXEC dbms_java.grant_permission('<strong>labite</strong>',
</span><span style="color:#0000ff;">                                     </span><span style="color:#0000ff;">'SYS:java.lang.RuntimePermission',
</span><span style="color:#0000ff;">                                     </span><span style="color:#0000ff;">'readFileDescriptor', '');

SQL&gt; EXEC dbms_java.grant_permission('<strong>labite</strong>',
</span><span style="color:#0000ff;">                                     </span><span style="color:#0000ff;">'SYS:java.io.FilePermission',
</span><span style="color:#0000ff;">                                     </span><span style="color:#0000ff;">'/bin/sh', 'execute');</span></pre>
<h4>STEP 2 &#8211; CREATE AND COMPILE JAVA CLASS</h4>
<p>Logged with your database user execute the command bellow:</p>
<pre><span style="color:#0000ff;">CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "OSCommand" AS
  /*
    Created by: Leandro Abite
    email: leandroabite@yahoo.com.br
  */
  import java.io.*;

  public class OSCommand {

    public static String executeCommand(String command) {
      StringBuffer sb = new StringBuffer();
      try {
        String[] finalCommand;
        if (System.getProperty("os.name").toLowerCase().indexOf("windows") != -1) {
          finalCommand = new String[4];
          finalCommand[0] = "C:\\winnt\\system32\\cmd.exe";
          finalCommand[1] = "/y";
          finalCommand[2] = "/c";
          finalCommand[3] = command;
        } else { // Linux or Unix System
          finalCommand = new String[3];
          finalCommand[0] = "/bin/sh";
          finalCommand[1] = "-c";
          finalCommand[2] = command;
        }
        // Execute the command...
        final Process pr = Runtime.getRuntime().exec(finalCommand);
        // Capture output from STDOUT
        BufferedReader br_in = null;
        try {
          br_in = new BufferedReader(new InputStreamReader(pr.getInputStream()));
          String buff = null;
          while ((buff = br_in.readLine()) != null) {
            sb.append(buff);
            sb.append("\n");
            try {Thread.sleep(100); } catch(Exception e) {}
          }
          br_in.close();
        } catch (IOException ioe) {
          System.out.println("Error printing process output.");
          ioe.printStackTrace();
        } finally {
          try {
            br_in.close();
          } catch (Exception ex) {}
        }
        // Capture output from STDERR
        BufferedReader br_err = null;
        try {
          br_err = new BufferedReader(new InputStreamReader(pr.getErrorStream()));
          String buff = null;
          while ((buff = br_err.readLine()) != null) {
            sb.append("stderr:");
            sb.append(buff);
            sb.append("\n");
            try {Thread.sleep(100); } catch(Exception e) {}
          }
          br_err.close();
        } catch (IOException ioe) {
          System.out.println("Error printing execution errors.");
          ioe.printStackTrace();
        } finally {
          try {
            br_err.close();
          } catch (Exception ex) {}
        }
      }
      catch (Exception ex) {
        System.out.println(ex.getLocalizedMessage());
      }
      return sb.toString();
    }
  };
/</span></pre>
<h4>STEP 3 &#8211; CREATE FUNCTION TO CALL JAVA</h4>
<pre><span style="color:#0000ff;">CREATE OR REPLACE FUNCTION oscomm (p_command   IN   VARCHAR2) RETURN VARCHAR2
</span><span style="color:#0000ff;">  AS LANGUAGE JAVA</span><span style="color:#0000ff;"> NAME
    'OSCommand.executeCommand (java.lang.String) return java.lang.String';
/</span></pre>
<h4>EXECUTION TEST</h4>
<p>To execute the os command you have to pass the complete path of the command:</p>
<pre><strong><span style="color:#ff0000;">it is wrong!!!!!</span></strong>
 <span style="color:#0000ff;">SQL&gt; select oscomm(<span style="color:#ff0000;"><strong>'ls -ltr'</strong></span>) from dual;
 OSCOMM('LS-LTR')
 --------------------------------------------------------------------------------</span>
<span style="color:#0000ff;"> stderr:/bin/sh: ls: No such file or directory</span></pre>
<pre><strong><span style="color:#0000ff;">it is right!!!!!</span></strong>
 <span style="color:#0000ff;">SQL&gt; select oscomm(<strong>'/bin/ls -ltr'</strong>) from dual;
 OSCOMM('/BIN/LS-LTR')
 --------------------------------------------------------------------------------
 total 44
 -rw-r--r-- 1 oracle oinstall  8385 Sep 11  1998 init.ora
 -rw-r--r-- 1 oracle oinstall 12920 May  3  2001 initdw.ora
 -rw-r----- 1 oracle oinstall    24 Nov 19 17:31 lkDB01
 -rw-rw---- 1 oracle oinstall  1544 Nov 19 17:31 hc_db01.dat
 -rw-r----- 1 oracle oinstall  1536 Feb 10 17:08 orapwdb01
 -rw-r----- 1 oracle oinstall  2560 Feb 18 12:42 spfiledb01.ora</span></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/labite.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/labite.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/labite.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/labite.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/labite.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/labite.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/labite.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/labite.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/labite.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/labite.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/labite.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/labite.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/labite.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/labite.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=labite.wordpress.com&amp;blog=5757098&amp;post=17&amp;subd=labite&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://labite.wordpress.com/2009/02/20/17/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0220d7a93b2ee7e542de1b1a30166688?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">labite</media:title>
		</media:content>
	</item>
		<item>
		<title>Lançamento do Teiid &#8211; Metamatrix open source</title>
		<link>http://labite.wordpress.com/2009/02/16/lancamento-do-teiid-metamatrix-open-source/</link>
		<comments>http://labite.wordpress.com/2009/02/16/lancamento-do-teiid-metamatrix-open-source/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 22:35:12 +0000</pubDate>
		<dc:creator>labite</dc:creator>
				<category><![CDATA[Middleware]]></category>
		<category><![CDATA[jboss]]></category>
		<category><![CDATA[Metamatrix]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Teiid]]></category>

		<guid isPermaLink="false">http://labite.wordpress.com/2009/02/16/lancamento-do-teiid-metamatrix-open-source/</guid>
		<description><![CDATA[A Red Hat acaba de disponibilizar a versão open source do Metamatrix a ferramenta de data service lider de mercado, o nome da versão free é Teiid o site oficial é www.teiid.org, no site além de baixar a ferramenta tem documentações e tutoriais!!! Teiid é uma ferramenta para fazer integração de fontes de dados distintas, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=labite.wordpress.com&amp;blog=5757098&amp;post=9&amp;subd=labite&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.teiid.org"><img class="size-full wp-image-10 alignleft" title="teiid_logo_200px" src="http://labite.files.wordpress.com/2009/02/teiid_logo_200px.png?w=901" alt="teiid_logo_200px"   /></a>A Red Hat acaba de disponibilizar a versão open source do Metamatrix a ferramenta de data service lider de mercado, o nome da versão free é Teiid o site oficial é <a href="http://www.teiid.org" target="_blank">www.teiid.org</a>, no site além de baixar a ferramenta tem documentações e tutoriais!!!</p>
<p>Teiid é uma ferramenta para fazer integração de fontes de dados distintas, com o uso desta é possível fazer a integração entre Oracle, SQLServer, Arquivo Texto, WebService e Etc.. E o melhor de tudo isso!!! é  possível fazer em minutos sem nenhuma linha de codigo, os dados consolidados podem ser acessados por JDBC, ODBC ou Webservices através de um banco de dados virtual.</p>
<p>80% dos projetos de sucesso SOA em grandes empresas fizeram o uso de alguma ferramenta de Data Service, O Metamatrix é o lider disparado entre as ferramentas de Data Service disponiveis no mercado, e agora temos a versão open source desta excelente ferramenta.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/labite.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/labite.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/labite.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/labite.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/labite.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/labite.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/labite.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/labite.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/labite.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/labite.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/labite.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/labite.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/labite.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/labite.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=labite.wordpress.com&amp;blog=5757098&amp;post=9&amp;subd=labite&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://labite.wordpress.com/2009/02/16/lancamento-do-teiid-metamatrix-open-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0220d7a93b2ee7e542de1b1a30166688?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">labite</media:title>
		</media:content>

		<media:content url="http://labite.files.wordpress.com/2009/02/teiid_logo_200px.png" medium="image">
			<media:title type="html">teiid_logo_200px</media:title>
		</media:content>
	</item>
	</channel>
</rss>
