<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9044679436313067458</id><updated>2011-12-06T10:38:28.788-08:00</updated><category term='setup'/><category term='send object over http'/><category term='JBoss'/><category term='turn off'/><category term='SQL'/><category term='XMLEncoder'/><category term='Javascript'/><category term='rm'/><category term='manipulation'/><category term='SQL Server'/><category term='AJAX'/><category term='configure'/><category term='xargs'/><category term='serialization'/><category term='delete same type folders'/><category term='xslt'/><category term='ports'/><category term='date'/><category term='Java'/><category term='command'/><category term='pc speaker'/><category term='Mathew Pretel Blog Computer Information Technology Systems'/><category term='application'/><category term='Delete same type files'/><category term='query'/><category term='oracle'/><category term='ADD_MONTH'/><category term='listening'/><category term='setup SQL Server remotely'/><category term='ByteArrayOutPutStream'/><category term='find'/><category term='Installing'/><category term='code repository'/><category term='How to update Ubuntu Server from command line'/><category term='Linux'/><category term='servlet'/><category term='object from string'/><category term='oxygen'/><category term='Ubuntu'/><category term='port'/><category term='TO_YMINTERVAL'/><category term='MethodInvokerBean'/><category term='SVN'/><category term='J2EE'/><category term='oracle 11g user schema role'/><category term='subversion'/><category term='database'/><title type='text'>Computer Information Technology Notes</title><subtitle type='html'>This blog contains technology tips and material to help you in your development and in other technical tasks.
If you have comments to make about my blog entries, please feel free to do so. Your collaboration to make this blog more accurate and helpful for the IT community is appreciated.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-8198137762511278347</id><published>2011-12-06T10:31:00.001-08:00</published><updated>2011-12-06T10:38:28.796-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='oracle 11g user schema role'/><title type='text'>Creating a new user in Oracle 11g</title><content type='html'>Here's how you create a new user in Oracle 11g to get you started in a project:&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;pre style="font-family: 'courier new', 'Andale Mono', courier, monospace;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;CREATE USER myNewUser IDENTIFIED BY myPassword&lt;br /&gt;       DEFAULT TABLESPACE users&lt;br /&gt;       TEMPORARY TABLESPACE temp&lt;br /&gt;       QUOTA UNLIMITED ON users;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: 'courier new', 'Andale Mono', courier, monospace;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new', 'Andale Mono', courier, monospace;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;CREATE ROLE conn;&lt;br /&gt;&lt;br /&gt;GRANT CREATE session, CREATE table, CREATE view,&lt;br /&gt;       CREATE procedure, CREATE synonym,&lt;br /&gt;       ALTER any table, ALTER any materialized view, ALTER any procedure,&lt;br /&gt;       DROP ANY table, DROP any view, DROP any procedure, DROP ANY synonym&lt;br /&gt;       TO conn;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: 'courier new', 'Andale Mono', courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;pre style="font-family: 'courier new', 'Andale Mono', courier, monospace;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;GRANT conn TO &lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;myNewUser&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-8198137762511278347?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/8198137762511278347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=8198137762511278347' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/8198137762511278347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/8198137762511278347'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2011/12/creating-new-user-in-oracle-11g.html' title='Creating a new user in Oracle 11g'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-1482411015514482125</id><published>2010-11-05T11:11:00.000-07:00</published><updated>2010-11-05T11:16:08.394-07:00</updated><title type='text'>Javascript Singleton Object</title><content type='html'>Have you come across a problem where you have to create an object that can only be initialized once and you want to reuse that object throughout your whole application? Well maybe you haven't but I actually came across that problem the other day and here's the solution for it:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; "&gt;&lt;pre class="prettyprint" style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; overflow-x: auto; overflow-y: auto; width: auto; max-height: 600px; line-height: 18px; "&gt;&lt;code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;function&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; singleton&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;()&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;{&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt; &lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;var&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; instance &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;=&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;(&lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;function&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;()&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;{&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt;   &lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;var&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; privateVar&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;;&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt;&lt;br /&gt;   &lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;function&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; privateMethod &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;()&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;{&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt;     &lt;/span&gt;&lt;span class="com" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: gray; background-position: initial initial; background-repeat: initial initial; "&gt;// ...&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt;   &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;}&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt;&lt;br /&gt;   &lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;return&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;{&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="com" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: gray; background-position: initial initial; background-repeat: initial initial; "&gt;// public interface&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt;     publicMethod1&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;:&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;function&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;()&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;{&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt;         &lt;/span&gt;&lt;span class="com" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: gray; background-position: initial initial; background-repeat: initial initial; "&gt;// private members can be accessed here&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt;      &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;},&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt;     publicMethod2&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;:&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;function&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;()&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;{&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt;       &lt;/span&gt;&lt;span class="com" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: gray; background-position: initial initial; background-repeat: initial initial; "&gt;// ...&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt;     &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;}&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt;   &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;};&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;})();&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt;&lt;br /&gt; singleton &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;=&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;function&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;()&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;{&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="com" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: gray; background-position: initial initial; background-repeat: initial initial; "&gt;// re-define the function for subsequent calls&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt;   &lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;return&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; instance&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;;&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;};&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt;&lt;br /&gt; &lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;return&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; singleton&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;();&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="com" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: gray; background-position: initial initial; background-repeat: initial initial; "&gt;// call the new function&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; background-position: initial initial; background-repeat: initial initial; "&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class="prettyprint" style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); overflow-x: auto; overflow-y: auto; width: auto; max-height: 600px; "&gt;&lt;code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); "&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; line-height: 18px; "&gt;Solution given by CMS on Stack overflow(&lt;/span&gt;&lt;/code&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; font-family: Georgia, serif; white-space: normal; font-size: 16px; "&gt;&lt;a href="http://stackoverflow.com/questions/1895635/javascript-singleton-question"&gt;http://stackoverflow.com/questions/1895635/javascript-singleton-question&lt;/a&gt;)&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-1482411015514482125?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/1482411015514482125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=1482411015514482125' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/1482411015514482125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/1482411015514482125'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2010/11/javascript-singleton-object.html' title='Javascript Singleton Object'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-250471624246985654</id><published>2010-05-18T12:55:00.000-07:00</published><updated>2010-05-18T13:15:33.186-07:00</updated><title type='text'>Get number of weeks within fiscal year</title><content type='html'>The other day I found myself looking for a solution to find the week number we are in within a given fiscal year. Here's the solution I came up with with a snippet from my code:&lt;br /&gt;&lt;br /&gt;Date.prototype.getWeek = function (dowOffset)&lt;br /&gt;{&lt;br /&gt;    /*getWeek() was developed by Nick Baicoianu at MeanFreePath: http://www.meanfreepath.com */&lt;br /&gt;    dowOffset = typeof(dowOffset) == 'int' ? dowOffset : 0; //default dowOffset to zero&lt;br /&gt;    var newYear = new Date(this.getFullYear(),0,1);&lt;br /&gt;    var day = newYear.getDay() - dowOffset; //the day of week the year begins on&lt;br /&gt;    day = (day &gt;= 0 ? day : day + 7);&lt;br /&gt;    var daynum = Math.floor((this.getTime() - newYear.getTime() - (this.getTimezoneOffset()-newYear.getTimezoneOffset())*60000)/86400000) + 1;&lt;br /&gt;    var weeknum;&lt;br /&gt;    //if the year starts before the middle of a week&lt;br /&gt;    if(day &lt; 4)&lt;br /&gt;    {&lt;br /&gt;        weeknum = Math.floor((daynum+day-1)/7) + 1;&lt;br /&gt;        if(weeknum &gt; 52)&lt;br /&gt;        {&lt;br /&gt;            nYear = new Date(this.getFullYear() + 1,0,1);&lt;br /&gt;            nday = nYear.getDay() - dowOffset;&lt;br /&gt;            nday = nday &gt;= 0 ? nday : nday + 7;&lt;br /&gt;            /*if the next year starts before the middle of&lt;br /&gt;            the week, it is week #1 of that year*/&lt;br /&gt;            weeknum = nday &lt; 4 ? 1 : 53;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    else&lt;br /&gt;    {&lt;br /&gt;        weeknum = Math.floor((daynum+day-1)/7);&lt;br /&gt;    }&lt;br /&gt;    return weeknum;&lt;br /&gt;}&lt;br /&gt;var todaysDate = new Date();&lt;br /&gt;var currentFiscalYear = todaysDate.getFullYear() - 1;&lt;br /&gt;var numberWeeks;&lt;br /&gt;if(todaysDate.getMonth() &gt; 8 &amp;amp;&amp;amp; todaysDate.getMonth() &lt; 11)&lt;br /&gt;{     &lt;br /&gt;    currentFiscalYear = todaysDate.getFullYear();&lt;br /&gt;}&lt;br /&gt;var beginFiscalDate = new Date();&lt;br /&gt;beginFiscalDate.setFullYear(currentFiscalYear,8,1);&lt;br /&gt;var endFiscalDate = new Date();&lt;br /&gt;endFiscalDate.setFullYear(currentFiscalYear+1,7,31);&lt;br /&gt;var currYearBegFiscalYear = new Date();&lt;br /&gt;currYearBegFiscalYear.setFullYear(todaysDate.getFullYear(), 8,1);&lt;br /&gt;if(todaysDate.getFullYear() &gt; beginFiscalDate.getFullYear()) //Check to see if today comes after september of the current year&lt;br /&gt;{&lt;br /&gt;    var decFiscalYear = new Date();&lt;br /&gt;    decFiscalYear.setFullYear(currentFiscalYear,11,31);&lt;br /&gt;    numberWeeks = todaysDate.getWeek() + (decFiscalYear.getWeek() - beginFiscalDate.getWeek());&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;    numberWeeks = todaysDate.getWeek() - beginFiscalDate.getWeek();&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-250471624246985654?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/250471624246985654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=250471624246985654' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/250471624246985654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/250471624246985654'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2010/05/get-number-of-weeks-within-fiscal-year.html' title='Get number of weeks within fiscal year'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-113650999006110360</id><published>2010-03-02T16:29:00.000-08:00</published><updated>2010-03-02T16:42:18.618-08:00</updated><title type='text'>Mimic mySQL's LIMIT command in Oracle</title><content type='html'>I have struggled in the past and have heard of people struggling with writing a SQL statement in Oracle that would mimic mySQL's command LIMIT.&lt;br /&gt;&lt;br /&gt;LIMIT doesn't exist in Oracle and there are two ways of displaying the range of records you want from a table. The first one is to use PLSQL. I'm not going to get into details here but all you have to do is do a SELECT statement INTO a CURSOR datatype, iterate your cursor and exit when your loop counter hits the number of rows you want.&lt;br /&gt;&lt;br /&gt;As you can see this solution is not very effective and the best way of doing this is by creating a simple statement using the &lt;span style="font-style: italic;"&gt;rownum&lt;/span&gt; column.&lt;br /&gt;&lt;br /&gt;For instance, if you wanted to select the 10 first items from the &lt;span style="font-style: italic;"&gt;item&lt;/span&gt; table you would do the following:&lt;br /&gt;&lt;br /&gt;SELECT * FROM item WHERE rownnum &lt; 11;&lt;br /&gt;&lt;br /&gt;This should return the first 10 rows.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-113650999006110360?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/113650999006110360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=113650999006110360' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/113650999006110360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/113650999006110360'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2010/03/mimic-mysqls-limit-command-in-oracle.html' title='Mimic mySQL&apos;s LIMIT command in Oracle'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-4058664900588718221</id><published>2009-12-29T10:48:00.001-08:00</published><updated>2009-12-29T10:56:46.434-08:00</updated><title type='text'>Enum as a class property in Objective-C</title><content type='html'>For this post I'd like to show how you can define an &lt;b&gt;enum &lt;/b&gt;property in Objective-C.&lt;span style="font-weight:bold;"&gt;&lt;/span&gt;&lt;div&gt;In a nutshell an enum is a datatype you create where in theory only certain values can be assigned to it and none else.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The code is pretty straight forward. Here it goes:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;typedef enum&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;      North, South, East, West&lt;/div&gt;&lt;div&gt;} Direction;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;@interface MyClassName : NSObject&lt;/div&gt;&lt;div&gt;{ &lt;/div&gt;&lt;div&gt;      Direction direction;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;@property(nonatomic) Direction direction;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the above example only the values &lt;i&gt;North, South, East, and West&lt;/i&gt; can be assigned to the &lt;i&gt;direction&lt;/i&gt; property of a &lt;i&gt;MyClassName&lt;/i&gt; instance.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-4058664900588718221?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/4058664900588718221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=4058664900588718221' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/4058664900588718221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/4058664900588718221'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2009/12/enum-as-class-property-in-objective-c.html' title='Enum as a class property in Objective-C'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-2655054902655737717</id><published>2009-12-08T18:25:00.000-08:00</published><updated>2009-12-09T01:18:58.331-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='oxygen'/><category scheme='http://www.blogger.com/atom/ns#' term='query'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><category scheme='http://www.blogger.com/atom/ns#' term='xslt'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Querying an Oracle database using XSLT for dummies</title><content type='html'>In this post I will explain how you can query an Oracle database using XSLT technology and Xalan as your XML processor.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Requirements:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.oracle.com/technology/software/products/database/index.html"&gt;Oracle 10g&lt;/a&gt; (or above)&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.oxygenxml.com/download.html"&gt;Oxygen&lt;/a&gt; (XML Editor)&lt;/li&gt;&lt;/ul&gt;If you decide that you don't want to use an XML editor you will have to download &lt;a href="http://xml.apache.org/xalan-j/downloads.html"&gt;Xalan&lt;/a&gt; and add the necessary libraries to your classpath before processing the XSLT file. If you decide to take that route you can follow the first steps in &lt;a href="http://blog.mclaughlinsoftware.com/oracle-sql-programming/how-to-convert-xml-to-csv-and-upload-into-oracle/"&gt;this tutorial&lt;/a&gt;, which explains how to setup your environment without an XML editor.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Tutorial&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1. &lt;/span&gt;Open Oxygen and create a &lt;span style="font-weight: bold;"&gt;new document of type XSLT&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;"&gt;2. &lt;/span&gt;Copy and paste the XSLT code below:&lt;br /&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;br /&gt;&amp;lt;xsl:stylesheet version="1.0"&lt;br /&gt; xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&lt;br /&gt; xmlns:sql="org.apache.xalan.lib.sql.XConnection"&lt;br /&gt; extension-element-prefixes="sql"&amp;gt;&lt;br /&gt; &amp;lt;xsl:output method="html" /&amp;gt;&lt;br /&gt; &amp;lt;xsl:template match="/"&amp;gt;&lt;br /&gt;  &amp;lt;xsl:variable&lt;br /&gt;   name="movies"&lt;br /&gt;   select="sql:new('oracle.jdbc.driver.OracleDriver'&lt;br /&gt;   ,'jdbc:oracle:thin:@&lt;span style="color: rgb(255, 0, 0);"&gt;ipaddress&lt;/span&gt;:&lt;span style="color: rgb(255, 0, 0);"&gt;sid&lt;/span&gt;','&lt;span style="color: rgb(255, 0, 0);"&gt;username&lt;/span&gt;','&lt;span style="color: rgb(255, 0, 0);"&gt;password&lt;/span&gt;')" /&amp;gt;&lt;br /&gt;  &amp;lt;xsl:variable name="streaming" select="sql:disableStreamingMode($movies)" /&amp;gt;&lt;br /&gt;  &amp;lt;xsl:variable&lt;br /&gt;   name="queryResults"&lt;br /&gt;   select="sql:query($movies,'&lt;span style="color: rgb(255, 0, 0);"&gt;SELECT movie, actor FROM movie&lt;/span&gt;')" /&amp;gt;&lt;br /&gt;  &amp;lt;html&amp;gt;&lt;br /&gt;   &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Oracle Result Set&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;   &amp;lt;body style="font-family: sans-serif;"&amp;gt;&lt;br /&gt;    &amp;lt;table border="1" cellpadding="5"&amp;gt;&lt;br /&gt;     &amp;lt;tr&amp;gt;&lt;br /&gt;      &amp;lt;xsl:for-each select="$queryResults/sql/metadata/column-header"&amp;gt;&lt;br /&gt;       &amp;lt;th&amp;gt;&amp;lt;xsl:value-of select="@column-label" /&amp;gt;&amp;lt;/th&amp;gt;&lt;br /&gt;      &amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;     &amp;lt;/tr&amp;gt;&lt;br /&gt;     &amp;lt;xsl:apply-templates select="$queryResults/sql/row-set/row" /&amp;gt;&lt;br /&gt;    &amp;lt;/table&amp;gt;&lt;br /&gt;   &amp;lt;/body&amp;gt;&lt;br /&gt;  &amp;lt;/html&amp;gt;&lt;br /&gt;  &amp;lt;xsl:value-of select="sql:close($movies)" /&amp;gt;&lt;br /&gt; &amp;lt;/xsl:template&amp;gt;&lt;br /&gt; &amp;lt;xsl:template match="row"&amp;gt;&lt;br /&gt;  &amp;lt;tr&amp;gt;&amp;lt;xsl:apply-templates select="col" /&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt; &amp;lt;/xsl:template&amp;gt;&lt;br /&gt; &amp;lt;xsl:template match="col"&amp;gt;&lt;br /&gt;  &amp;lt;td&amp;gt;&amp;lt;xsl:value-of select="text()" /&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt; &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3. &lt;/span&gt;Be sure to make your changes accordingly&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4. &lt;/span&gt;After pasting your code in the text area click on the &lt;span style="font-weight: bold;"&gt;XSLT debugger&lt;/span&gt; button as shown in the image below:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_TKBmr6O6GIg/Sx9m-w_onfI/AAAAAAAAADs/arSVUrKYlwM/s1600-h/Screen+shot+2009-12-09+at+1.07.53+AM.png.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 109px;" src="http://1.bp.blogspot.com/_TKBmr6O6GIg/Sx9m-w_onfI/AAAAAAAAADs/arSVUrKYlwM/s320/Screen+shot+2009-12-09+at+1.07.53+AM.png.jpg" alt="" id="BLOGGER_PHOTO_ID_5413158505612353010" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;5.&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;Click on the &lt;span style="font-weight: bold;"&gt;Run&lt;/span&gt; button&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_TKBmr6O6GIg/Sx9oPkFN1tI/AAAAAAAAAD0/DDDtkrj07vM/s1600-h/Screen+shot+2009-12-09+at+2.04.21+AM.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 28px; height: 29px;" src="http://1.bp.blogspot.com/_TKBmr6O6GIg/Sx9oPkFN1tI/AAAAAAAAAD0/DDDtkrj07vM/s320/Screen+shot+2009-12-09+at+2.04.21+AM.png" alt="" id="BLOGGER_PHOTO_ID_5413159893715506898" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;6. &lt;/span&gt;Voilà! Now look at the result, and here is what I got from my XSLT:&lt;br /&gt;&lt;br /&gt;&lt;table cellpadding="5" border="1"&gt;&lt;tr&gt;&lt;th&gt;MOVIE&lt;/th&gt;&lt;th&gt;ACTOR&lt;/th&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;td&gt;Indiana Jones and the Last Crusade&lt;/td&gt;&lt;td&gt;Alison Doody&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;td&gt;Indiana Jones and Raiders of the Lost Ark&lt;/td&gt;&lt;td&gt;Harrison Ford&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;td&gt;Indiana Jones and Raiders of the Lost Ark&lt;/td&gt;&lt;td&gt;Denholm Elliott&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;td&gt;Indiana Jones and the Last Crusade&lt;/td&gt;&lt;td&gt;Sean Connery&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;td&gt;Indiana Jones and Raiders of the Lost Ark&lt;/td&gt;&lt;td&gt;Jonn Rhys-Davies&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-2655054902655737717?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/2655054902655737717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=2655054902655737717' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/2655054902655737717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/2655054902655737717'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2009/12/querying-oracle-database-using-xslt-for.html' title='Querying an Oracle database using XSLT for dummies'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_TKBmr6O6GIg/Sx9m-w_onfI/AAAAAAAAADs/arSVUrKYlwM/s72-c/Screen+shot+2009-12-09+at+1.07.53+AM.png.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-3164234363398818361</id><published>2009-02-27T12:38:00.001-08:00</published><updated>2009-02-27T12:39:39.632-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='turn off'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='pc speaker'/><title type='text'>Turning off the PC Speaker on Ubuntu</title><content type='html'>Here is how you turn off the PC Speaker on Ubuntu. This command migh even work with other Linux distros.&lt;br /&gt;&lt;br /&gt;modprobe -r pcspkr&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-3164234363398818361?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/3164234363398818361/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=3164234363398818361' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/3164234363398818361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/3164234363398818361'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2009/02/turning-off-pc-speaker-on-ubuntu.html' title='Turning off the PC Speaker on Ubuntu'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-6313047537621726874</id><published>2009-02-06T15:18:00.000-08:00</published><updated>2009-02-06T16:02:16.120-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xargs'/><category scheme='http://www.blogger.com/atom/ns#' term='rm'/><category scheme='http://www.blogger.com/atom/ns#' term='delete same type folders'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='find'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='Delete same type files'/><title type='text'>Deleting files/folders with the same name characteristics in Linux</title><content type='html'>I was trying to delete the .svn folders from a project in my linux machine and I had two options of doing that. Going folder by folder and find those .svn folders, which were about 20 or delete them all with one line of command connected by a pipe "|".&lt;br /&gt;&lt;br /&gt;Here goes the trick and the explanation will follow it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;find /path/projectFolder -type d -name '.svn' | xargs rm -rf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Notice that we start this batch of commands with the find command. The find command takes 3 arguments. The &lt;span style="font-style: italic;"&gt;find&lt;/span&gt; command will go through all directories and subdirectories starting from the path specified.&lt;br /&gt;&lt;br /&gt;The &lt;span style="font-weight: bold;"&gt;first argument&lt;/span&gt; is the path to the folder where you want to perform the lookup of the file/folder. That's pretty straight forward&lt;br /&gt;&lt;br /&gt;The &lt;span style="font-weight: bold;"&gt;second argument&lt;/span&gt; is the option "-type" where you define whether you are looking up a file or a directory. In the example given above I defined the type as being a directory. If I wanted to do a lookup for a file I would have an "f" there rather than a "d".&lt;br /&gt;&lt;br /&gt;The &lt;span style="font-weight: bold;"&gt;third argument &lt;/span&gt;is the option "-name" where you define the name of the file or folder you want to look for enclosed by single quotes. You can also use wildcards in the name.&lt;br /&gt;&lt;br /&gt;The second command I want to talk about is the &lt;span style="font-style: italic;"&gt;rm -rf&lt;/span&gt;. This command removes all folders that are empty or has something in it.&lt;br /&gt;&lt;br /&gt;Now here comes the trick. Every line that the &lt;span style="font-style: italic;"&gt;find&lt;/span&gt; command returns is passed in to &lt;span style="font-style: italic;"&gt;rm -rf&lt;/span&gt; through&lt;span style="font-style: italic;"&gt; | xargs.&lt;br /&gt;&lt;/span&gt;Now, having that in mind if you read from right to left this line commands should make more sense to you.&lt;br /&gt;&lt;br /&gt;Google the commands &lt;span style="font-style: italic;"&gt;find &lt;/span&gt;and &lt;span style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;xargs &lt;/span&gt;to see some cool stuff that you can do with them.&lt;br /&gt;&lt;br /&gt;Hope this helps!&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-6313047537621726874?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/6313047537621726874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=6313047537621726874' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/6313047537621726874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/6313047537621726874'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2009/02/deleting-filesfolders-with-same-name.html' title='Deleting files/folders with the same name characteristics in Linux'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-8610648398763366982</id><published>2008-12-05T18:28:00.001-08:00</published><updated>2008-12-05T18:29:54.011-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='configure'/><category scheme='http://www.blogger.com/atom/ns#' term='J2EE'/><category scheme='http://www.blogger.com/atom/ns#' term='JBoss'/><category scheme='http://www.blogger.com/atom/ns#' term='setup'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Configure JBoss for Oracle</title><content type='html'>&lt;ol&gt;&lt;li&gt;Oracle and JBoss use the same port by default, 8080. If you are using Oracle and JBoss on the same server, modify the http port for Oracle to something other than 8080 (i.e, 8081). Skip this step if you are running Oracle on a different server.&lt;/li&gt;&lt;p&gt;Login to Oracle using SQLPLUS as the SYSTEM user and enter the following script command:&lt;/p&gt;&lt;p&gt;&lt;span style="position: relative; left: 0.25in;font-family:Arial;font-size:8;"  &gt;&lt;br /&gt;BEGIN&lt;br /&gt;&lt;span style="position: relative; left: 0.25in;"&gt;dbms_xdb.sethttpport(’8081′);&lt;/span&gt;&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Locate the &lt;em&gt;online_help&lt;/em&gt; file in the Oracle \server folder, right click, select properties, and modify the url to:&lt;/p&gt;&lt;p&gt;&lt;span style=";font-family:Arial;font-size:8;"  &gt;http://127.0.0.1:8081/apex/wwv_flow_help.show_help?p_flow_id=4500&amp;amp;p_step_id=1000&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Locate the &lt;em&gt;postDBCreation&lt;/em&gt; file in the Oracle server\config\log folder, open it and modify the following line:&lt;/p&gt;&lt;p&gt;&lt;span style=";font-family:Arial;font-size:8;"  &gt;URL=http://127.0.0.1:8081/htmldb/wwv_flow_help.show_help&lt;/span&gt;&lt;/p&gt;&lt;li&gt;JBoss needs to know where the Oracle jdbc driver classes are located. This can be done by either, copying the Oracle jdbc archive file to the server default lib folder. Search and locate the ojdbc14.jar file in the Oracle &lt;strong&gt;\jdbc\lib&lt;/strong&gt; folder.         Copy the &lt;em&gt;ojdbc14.ja&lt;/em&gt; file to the JBoss \server\default\lib folder.&lt;/li&gt;&lt;li&gt;Define a datasource in JBOSS to access a specific Oracle database instance. Copy the /docs/examples/jca/oracle-ds.xml file from the jboss directory to the /server/default/deploy folder in JBoss. Open a text editor (e.g., WordPad or xCode) and modify the file as follows.&lt;/li&gt;&lt;p&gt;&lt;span style=";font-family:Arial;font-size:8;"  &gt;&lt;br /&gt;&lt;!--– ======================–--&gt;&lt;br /&gt;&lt;!--– Datasource config for Oracle –--&gt;&lt;br /&gt;&lt;!--– ====================== –--&gt;&lt;br /&gt;&lt;datasources&gt;&lt;br /&gt;&lt;span style="position: relative; left: 0.25in;"&gt; &lt;local-tx-datasource&gt;&lt;br /&gt;&lt;span style="position: relative; left: 0.25in;"&gt; &lt;jndi-name&gt;OracleDS&lt;/jndi-name&gt;&lt;br /&gt;&lt;connection-url&gt;jdbc:oracle:thin:@localhost:1521:xe&lt;/connection-url&gt;&lt;br /&gt;&lt;driver-class&gt;oracle.jdbc.driver.OracleDriver&lt;/driver-class&gt;&lt;br /&gt;&lt;user-name&gt;homedirectbank&lt;/user-name&gt;&lt;br /&gt;&lt;password&gt;bank&lt;/password&gt;&lt;br /&gt;&lt;metadata&gt;&lt;br /&gt;&lt;span style="position: relative; left: 0.25in;"&gt; &lt;type-mapping&gt;Oracle9i&lt;/type-mapping&gt;&lt;/span&gt;&lt;br /&gt;&lt;/metadata&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/local-tx-datasource&gt; &lt;/span&gt;&lt;br /&gt;&lt;/datasources&gt; &lt;/span&gt;&lt;/p&gt;&lt;li&gt;Modify the standardjbosscmp-jdbc.xml configuration file in the JBoss /server/default/conf folder. Add the following and sub-tags to the tag. These tags map the datasource, OracleDS, to the data mapping, Oracle9i, defined further down in this file. The data mapping tag defines how the specific Oracle database types map to the corresponding Java data types.&lt;/li&gt;&lt;p&gt;&lt;span style=";font-family:Arial;font-size:8;"  &gt;&lt;br /&gt;&lt;br /&gt;&lt;!--– ================================ –--&gt;&lt;br /&gt;&lt;!--–  Standard JBossCMP-JDBC Configuration                       –--&gt;&lt;br /&gt;&lt;!--– ================================ –--&gt;&lt;br /&gt;&lt;jbosscmp-jdbc&gt;&lt;br /&gt;&lt;span style="position: relative; left: 0.25in;"&gt; &lt;defaults&gt;&lt;br /&gt;&lt;span style="position: relative; left: 0.25in;"&gt; &lt;datasource&gt;java:/OracleDS&lt;/datasource&gt;&lt;br /&gt;…&lt;br /&gt;… &lt;/span&gt;&lt;br /&gt;&lt;/defaults&gt;&lt;br /&gt;… &lt;/span&gt;&lt;br /&gt;&lt;/jbosscmp-jdbc&gt;&lt;/span&gt;&lt;/p&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-8610648398763366982?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/8610648398763366982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=8610648398763366982' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/8610648398763366982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/8610648398763366982'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2008/12/configure-jboss-for-oracle_05.html' title='Configure JBoss for Oracle'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-9051795026795961925</id><published>2008-12-05T18:28:00.000-08:00</published><updated>2008-12-05T18:29:00.490-08:00</updated><title type='text'>Configure JBoss for Oracle</title><content type='html'>&lt;ol&gt;&lt;li&gt;Oracle and JBoss use the same port by default, 8080. If you are using Oracle and JBoss on the same server, modify the http port for Oracle to something other than 8080 (i.e, 8081). Skip this step if you are running Oracle on a different server.&lt;/li&gt;&lt;p&gt;Login to Oracle using SQLPLUS as the SYSTEM user and enter the following script command:&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 8pt; position: relative; left: 0.25in; font-family: Arial;"&gt;&lt;br /&gt;BEGIN&lt;br /&gt;&lt;span style="position: relative; left: 0.25in;"&gt;dbms_xdb.sethttpport(’8081′);&lt;/span&gt;&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Locate the &lt;em&gt;online_help&lt;/em&gt; file in the Oracle \server folder, right click, select properties, and modify the url to:&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 8pt; font-family: Arial;"&gt;http://127.0.0.1:8081/apex/wwv_flow_help.show_help?p_flow_id=4500&amp;amp;p_step_id=1000&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Locate the &lt;em&gt;postDBCreation&lt;/em&gt; file in the Oracle server\config\log folder, open it and modify the following line:&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 8pt; font-family: Arial;"&gt;URL=http://127.0.0.1:8081/htmldb/wwv_flow_help.show_help&lt;/span&gt;&lt;/p&gt;&lt;li&gt;JBoss needs to know where the Oracle jdbc driver classes are located. This can be done by either, copying the Oracle jdbc archive file to the server default lib folder. Search and locate the ojdbc14.jar file in the Oracle &lt;strong&gt;\jdbc\lib&lt;/strong&gt; folder.         Copy the &lt;em&gt;ojdbc14.ja&lt;/em&gt; file to the JBoss \server\default\lib folder.&lt;/li&gt;&lt;li&gt;Define a datasource in JBOSS to access a specific Oracle database instance. Copy the /docs/examples/jca/oracle-ds.xml file from the jboss directory to the /server/default/deploy folder in JBoss. Open a text editor (e.g., WordPad or xCode) and modify the file as follows.&lt;/li&gt;&lt;p&gt;&lt;span style="font-size: 8pt; font-family: Arial;"&gt; &lt;?xml version=”1.0″ encoding=”UTF-8″?&gt;&lt;br /&gt;&lt;!– ======================–&gt;&lt;br /&gt;&lt;!– Datasource config for Oracle –&gt;&lt;br /&gt;&lt;!– ====================== –&gt;&lt;br /&gt;&lt;datasources&gt;&lt;br /&gt;&lt;span style="position: relative; left: 0.25in;"&gt; &lt;local-tx-datasource&gt;&lt;br /&gt;&lt;span style="position: relative; left: 0.25in;"&gt; &lt;jndi-name&gt;OracleDS&lt;/jndi-name&gt;&lt;br /&gt;&lt;connection-url&gt;jdbc:oracle:thin:@localhost:1521:xe&lt;/connection-url&gt;&lt;br /&gt;&lt;driver-class&gt;oracle.jdbc.driver.OracleDriver&lt;/driver-class&gt;&lt;br /&gt;&lt;user-name&gt;homedirectbank&lt;/user-name&gt;&lt;br /&gt;&lt;password&gt;bank&lt;/password&gt;&lt;br /&gt;&lt;metadata&gt;&lt;br /&gt;&lt;span style="position: relative; left: 0.25in;"&gt; &lt;type-mapping&gt;Oracle9i&lt;/type-mapping&gt;&lt;/span&gt;&lt;br /&gt;&lt;/metadata&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/local-tx-datasource&gt; &lt;/span&gt;&lt;br /&gt;&lt;/datasources&gt; &lt;/span&gt;&lt;/p&gt;&lt;li&gt;Modify the standardjbosscmp-jdbc.xml configuration file in the JBoss /server/default/conf folder. Add the following and sub-tags to the tag. These tags map the datasource, OracleDS, to the data mapping, Oracle9i, defined further down in this file. The data mapping tag defines how the specific Oracle database types map to the corresponding Java data types.&lt;/li&gt;&lt;p&gt;&lt;span style="font-size: 8pt; font-family: Arial;"&gt; &lt;?xml version=”1.0″ encoding=”UTF-8″?&gt;&lt;br /&gt;&lt;!DOCTYPE jbosscmp-jdbc PUBLIC “-//JBoss//DTD JBOSSCMP-JDBC 4.0//EN” “http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_4_0.dtd”&gt;&lt;br /&gt;&lt;!– ================================ –&gt;&lt;br /&gt;&lt;!–  Standard JBossCMP-JDBC Configuration                       –&gt;&lt;br /&gt;&lt;!– ================================ –&gt;&lt;br /&gt;&lt;jbosscmp-jdbc&gt;&lt;br /&gt;&lt;span style="position: relative; left: 0.25in;"&gt; &lt;defaults&gt;&lt;br /&gt;&lt;span style="position: relative; left: 0.25in;"&gt; &lt;datasource&gt;java:/OracleDS&lt;/datasource&gt;&lt;br /&gt;…&lt;br /&gt;… &lt;/span&gt;&lt;br /&gt;&lt;/defaults&gt;&lt;br /&gt;… &lt;/span&gt;&lt;br /&gt;&lt;/jbosscmp-jdbc&gt;&lt;/span&gt;&lt;/p&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-9051795026795961925?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/9051795026795961925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=9051795026795961925' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/9051795026795961925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/9051795026795961925'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2008/12/configure-jboss-for-oracle.html' title='Configure JBoss for Oracle'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-1237889232304797597</id><published>2008-11-18T15:43:00.001-08:00</published><updated>2008-11-18T15:49:51.204-08:00</updated><title type='text'>Trouble opening java applications in Leopard</title><content type='html'>I was having trouble executing applications that were developed in java the other day. Here goes a snippet of the error I was getting:&lt;br /&gt;&lt;br /&gt; com.apple.launchd[191] ([0x0-0x1fdefdd].????[36322]) posix_spawnp("/Applications/.../Contents/MacOS/JavaApplicationStub", ...): Permission denied&lt;br /&gt;&lt;br /&gt;You can easily fix the problem by giving Read, Write and Execute permissions to the user to the JavaApplicationStub executable file.&lt;br /&gt;You do so by running the following command: chmod 777 /[your application path].app/Contents/MacOS/JavaApplicationStub .&lt;br /&gt;&lt;br /&gt;Hope that helps.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-1237889232304797597?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/1237889232304797597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=1237889232304797597' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/1237889232304797597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/1237889232304797597'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2008/11/trouble-opening-java-applications-in.html' title='Trouble opening java applications in Leopard'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-4540784544183389123</id><published>2008-11-18T15:43:00.000-08:00</published><updated>2008-11-18T15:44:07.111-08:00</updated><title type='text'></title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-4540784544183389123?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/4540784544183389123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=4540784544183389123' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/4540784544183389123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/4540784544183389123'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2008/11/blog-post.html' title=''/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-4567920365650008547</id><published>2008-11-06T22:09:00.000-08:00</published><updated>2008-11-06T22:16:00.131-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='code repository'/><category scheme='http://www.blogger.com/atom/ns#' term='Installing'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='subversion'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='SVN'/><title type='text'>Installing code repository subversion (SVN) on Linux Ubuntu</title><content type='html'>To install subversion, open a terminal and run the following command:  &lt;p class="customCode"&gt;sudo apt-get install subversion libapache2-svn&lt;/p&gt;  &lt;p&gt;We're going to create the subversion repository in /svn, although you should choose a location that has a good amount of space.&lt;br /&gt;&lt;/p&gt;  &lt;p class="customCode"&gt;sudo svnadmin create /home/svn&lt;/p&gt;  &lt;p&gt;Next we'll need to edit the configuration file for the subversion webdav module. You can use a different editor if you'd like.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="customCode"&gt;sudo vim /etc/apache2/mods-enabled/dav_svn.conf&lt;/p&gt;  &lt;p&gt;The Location element in the configuration file dictates the root directory where subversion will be accessible from, for instance: &lt;a href="http://www.server.com/svn"&gt;http://www.server.com/svn&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="customCode"&gt;&lt;location&gt; &lt;span style="font-style: italic;"&gt;(Don't forget to uncomment the Location closing tag at the end of the document)&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p&gt;The DAV line needs to be uncommented to enable the dav module&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="customCode"&gt;#Uncomment this to enable the repository&lt;br /&gt;DAV svn&lt;/p&gt;  &lt;p&gt;The SVNPath line should be set to the same place your created the repository with the svnadmin command.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="customCode"&gt;#Set this to the path to your repository&lt;br /&gt;SVNPath /home/svn&lt;/p&gt;  &lt;p&gt;The next section will let you turn on authentication. This is just basic authentication, so don't consider it extremely secure. The password file will be located where the AuthUserFile setting sets it to&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="customCode"&gt;#Uncomment the following 3 lines to enable Basic Authentication&lt;br /&gt;AuthType Basic&lt;br /&gt;AuthName "Subversion Repository"&lt;br /&gt;AuthUserFile /etc/apache2/dav_svn.passwd&lt;/p&gt;  &lt;p&gt;To create a user on the repository use, the following command:&lt;br /&gt;&lt;/p&gt;&lt;p class="customCode"&gt;sudo htpasswd -cm /etc/apache2/dav_svn.passwd &lt;username&gt;&lt;/p&gt;  &lt;p&gt;Note that you should only use the -c option the FIRST time that you create a user. After that you will only want to use the -m option, which specifies MD5 encryption of the password, but doesn't recreate the file.&lt;br /&gt;&lt;br /&gt;Restart apache by running the following command:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="customCode"&gt;sudo /etc/init.d/apache2 restart&lt;/p&gt;  Now if you go in your browser to http://www.server.com/svn, you should see that the repository is enabled for anonymous read access, but commit access will require a username.&lt;br /&gt;&lt;br /&gt;If you want to force all users to authenticate even for read access, add the following line right below the AuthUserFile line from above. Restart apache after changing this line.  &lt;p&gt;&lt;b&gt;&lt;i&gt;Require valid-user&lt;/i&gt;&lt;/b&gt;  &lt;/p&gt; Now if you refresh your browser, you'll be prompted for your credentials.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Credit goes to Jason Meridith (http://www.lostechies.com/blogs/jason_meridth/)&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.edreaminghome.com/view_image.php?file_id=317&amp;amp;size=800"&gt;&lt;img src="http://www.edreaminghome.com/view_image.php?file_id=317&amp;amp;size=400" alt="" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-4567920365650008547?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/4567920365650008547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=4567920365650008547' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/4567920365650008547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/4567920365650008547'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2008/11/installing-code-repository-subversion.html' title='Installing code repository subversion (SVN) on Linux Ubuntu'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-3289489878865223024</id><published>2008-11-06T22:06:00.000-08:00</published><updated>2008-11-06T22:09:40.921-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to update Ubuntu Server from command line'/><title type='text'>How to update Ubuntu Server from command line</title><content type='html'>&lt;ol style="font-family: arial;"&gt;&lt;li&gt;First you need to update /etc/apt/sources.list. Just open it up with your favorite editor&lt;br /&gt;&lt;em&gt;sudo vi /etc/apt/sources.list&lt;/em&gt;&lt;/li&gt;&lt;li&gt;Since I was using 5.10, at the end of all the URL’s it should say ‘breezy’. You need to change all of these to ‘edgy’. Write the file out and quit.&lt;/li&gt;&lt;li&gt;Next, we need to update the source list by using the following command&lt;br /&gt;&lt;em&gt;sudo apt-get update&lt;/em&gt;&lt;/li&gt;&lt;li&gt;To upgrade to the new distro, just enter dist-upgrade!&lt;br /&gt;&lt;em&gt;sudo apt-get dist-upgrade&lt;/em&gt;&lt;/li&gt;&lt;li&gt;It will ask you if you want to update all of these packages, just say yes. Also, I had a few times that I had to hit ‘OK’ to confirm some postfix stuff. Since im not running any mail services, I dont need to set this up. Just keep an eye on the update since these messages delay the update.&lt;/li&gt;&lt;li&gt;You may have to force some installs/updates. If so (I had to do this), just enter&lt;br /&gt;&lt;em&gt;sudo apt-get -f install&lt;/em&gt;&lt;/li&gt;&lt;li&gt;Once the upgrade is complete (it took mine forever since I was also downloading a trial game AND cygwin), restart your machine&lt;br /&gt;&lt;em&gt;sudo shutdown -r now&lt;/em&gt;&lt;/li&gt;&lt;li&gt;Done!&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-style: italic;"&gt;Credits go to Jon (http://crazytrain.wordpress.com/)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-3289489878865223024?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/3289489878865223024/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=3289489878865223024' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/3289489878865223024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/3289489878865223024'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2008/11/how-to-update-ubuntu-server-from.html' title='How to update Ubuntu Server from command line'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-8065893501699396940</id><published>2008-09-03T08:44:00.000-07:00</published><updated>2009-04-21T10:36:16.295-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ports'/><category scheme='http://www.blogger.com/atom/ns#' term='application'/><category scheme='http://www.blogger.com/atom/ns#' term='port'/><category scheme='http://www.blogger.com/atom/ns#' term='listening'/><title type='text'>How to determine which applications are listening on which ports</title><content type='html'>If you want to find out which ports your applications are listening upon you cand easily do so by using two different commands. The following assumes you are in a Windows environment. If you find out the commands for other platforms I would appreciate if you included them as a comment.&lt;div  style="color: rgb(0, 0, 0);font-family:arial;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div face="arial" style="color: rgb(0, 0, 0);"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);font-size:11;" &gt;netstat -ano     ---------&gt; This will give you the list of all ports that are being used by all your processes and will also give you the PID for&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;that process along with some other information&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);font-family:arial;font-size:11;"  &gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;tasklist /SVC    ---------&gt; This will give you a list with the names of the processes your computer is running along with their corresponding PID&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;The command for linux is:&lt;br /&gt;sudo lsof -i [TCP]:[8080]&lt;br /&gt;(don't forget to leave the brakets out and put your own parameters)&lt;br /&gt;As you can see this will give you a list of all processes that are listening on port 8080 through the TCP protocol.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-8065893501699396940?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/8065893501699396940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=8065893501699396940' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/8065893501699396940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/8065893501699396940'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2008/09/how-to-determine-which-applications-is.html' title='How to determine which applications are listening on which ports'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-2609174397463989465</id><published>2008-08-28T23:43:00.000-07:00</published><updated>2008-10-03T17:27:57.883-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='setup SQL Server remotely'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>Setting up MS SQL Server for remote authentication</title><content type='html'>The same problems you are having right now I also had, while setting up my SQL Server for remote access.&lt;br /&gt;Here are some links that I found to be pretty helpful:&lt;br /&gt;&lt;br /&gt;http://www.datamasker.com/SSE2005_NetworkCfg.htm&lt;br /&gt;http://www.carlj.ca/2008/01/09/the-user-is-not-associated-with-a-trusted-sql-server-connection/&lt;br /&gt;http://www.alpesh.nakars.com/blog/howto-configure-sql-express-to-allow-remote-connections/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-2609174397463989465?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/2609174397463989465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=2609174397463989465' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/2609174397463989465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/2609174397463989465'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2008/08/setting-up-ms-sql-server-for-remote.html' title='Setting up MS SQL Server for remote authentication'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-813166402070890204</id><published>2008-07-29T16:16:00.000-07:00</published><updated>2008-10-03T17:26:44.988-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='XMLEncoder'/><category scheme='http://www.blogger.com/atom/ns#' term='ByteArrayOutPutStream'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='serialization'/><category scheme='http://www.blogger.com/atom/ns#' term='send object over http'/><category scheme='http://www.blogger.com/atom/ns#' term='MethodInvokerBean'/><title type='text'>Sending a java object over HTTP protocol</title><content type='html'>As you may know HTTP communication is based on strings that are sent back and forth, and if you want to send an object across the wire over HTTP just object serialization isn't enough. You will have to convert your object into an XML string, and stream it in a ByteArrayOutputStream.&lt;br /&gt;Here goes a snippet of my client code:&lt;br /&gt;&lt;br /&gt;MethodInvokerBean miBean = new MethodInvokerBean(); //Instantiate your java bean&lt;br /&gt;&lt;br /&gt;     ByteArrayOutputStream buffer = new ByteArrayOutputStream();&lt;br /&gt;&lt;br /&gt;     XMLEncoder encoder = new XMLEncoder(buffer); //Assign ByteArrayOutputStream object to your XMLEncoder object&lt;br /&gt;&lt;br /&gt;     encoder.writeObject(miBean); //Write object on XMLEncoder object&lt;br /&gt;     encoder.close(); //close stream&lt;br /&gt; &lt;br /&gt;     String url = "http://192.168.1.25/BeanDecoder"; //Servlet's URL&lt;br /&gt;  &lt;br /&gt;//The classes and methods used in the block below to establish connection with the servlet and pass my object as a parameter come from the HTTP apache client library called commons-httpclient&lt;br /&gt;&lt;br /&gt;PostMethod post = new PostMethod(url);&lt;br /&gt;     NameValuePair[] nvp = new NameValuePair[1];&lt;br /&gt;     nvp[0] = new NameValuePair("bean",buffer.toString());&lt;br /&gt;     post.setRequestBody(nvp);&lt;br /&gt;    HttpClient httpClient = new HttpClient();&lt;br /&gt; &lt;br /&gt;     try&lt;br /&gt;     {&lt;br /&gt;         int result = httpClient.executeMethod(post);&lt;br /&gt;         System.out.println(post.getResponseBodyAsString());&lt;br /&gt;         System.out.println("HTTP Status: " + result);&lt;br /&gt;     }&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Let's see the servlet's code now:&lt;br /&gt;&lt;br /&gt;  protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException&lt;br /&gt;  {&lt;br /&gt;          String beanXML= req.getParameter("bean");&lt;br /&gt;          ByteArrayInputStream bais = new ByteArrayInputStream(beanXML.getBytes());&lt;br /&gt;          XMLDecoder decoder = new XMLDecoder(bais);&lt;br /&gt;          MethodInvokerBean miBean = null;&lt;br /&gt;          miBean = (MethodInvokerBean)decoder.readObject();&lt;br /&gt;  }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-813166402070890204?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/813166402070890204/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=813166402070890204' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/813166402070890204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/813166402070890204'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2008/07/sending-java-object-over-http-protocol.html' title='Sending a java object over HTTP protocol'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-7796563748525507263</id><published>2008-06-19T10:09:00.001-07:00</published><updated>2008-10-03T17:25:29.423-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><category scheme='http://www.blogger.com/atom/ns#' term='servlet'/><category scheme='http://www.blogger.com/atom/ns#' term='object from string'/><title type='text'>Creating an object out of a string</title><content type='html'>Something that I had to do in one of my projects was send a HTTP request from javascript to a Servlet and get some information back. But, what's better to hold data than an Object?&lt;br /&gt;So I decided to make the servlet send an object back as a response to that javascript request. Here is what I did.&lt;br /&gt;&lt;br /&gt;Javascript sends AJAX request&lt;br /&gt;Servlet receives request&lt;br /&gt;Servlet sends an object as a string (eg: {property1: "hello", property2: "World", property3: "!"})&lt;br /&gt;Javascript reads the response and interprets it as a string&lt;br /&gt;&lt;br /&gt;In order to turn that encapsulated object in a string to a real javascript object you'll need to use the eval() function and append parenthesis to both sides of the string.&lt;br /&gt;&lt;br /&gt;//Since this entry is not to teach you how to do AJAX requests I'm just going to assign a string to a variable and call it "ajaxRequest"&lt;br /&gt;var ajaxResponse = "{property1: "hello", property2: "World", property3: "!"}";&lt;br /&gt;&lt;br /&gt;//Notice the parethesis before and after the string that has the object&lt;br /&gt;var myObject = eval( "("+ajaxResponse+")");&lt;br /&gt;&lt;br /&gt;alert(myObject.property1 + " " + myObject.property2 + " " + myObject.property3);&lt;br /&gt;&lt;br /&gt;Pretty cool uh?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-7796563748525507263?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/7796563748525507263/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=7796563748525507263' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/7796563748525507263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/7796563748525507263'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2008/06/creating-object-from-string.html' title='Creating an object out of a string'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-1155608016822995355</id><published>2008-05-27T22:21:00.000-07:00</published><updated>2008-10-03T17:24:14.706-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TO_YMINTERVAL'/><category scheme='http://www.blogger.com/atom/ns#' term='manipulation'/><category scheme='http://www.blogger.com/atom/ns#' term='ADD_MONTH'/><category scheme='http://www.blogger.com/atom/ns#' term='date'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>SQL date manipulating in Oracle</title><content type='html'>Today I wrote a script that would take the values I had from my Calendar table, which contained all months with their start date and end date for the year of 2008, and insert them back for the year of 2007. My first solution didn't work so well and threw an error. I came to learn that the TO_YMINTERVAL function doesn't work because it doesn't handle leap year.&lt;br /&gt;The function that did the job right was ADD_MONTH.&lt;br /&gt;Here goes my script:&lt;br /&gt;&lt;br /&gt;INSERT INTO calendar&lt;br /&gt;  (calendar_id,&lt;br /&gt;  month,&lt;br /&gt;  full_month,&lt;br /&gt;  begin_date,&lt;br /&gt;  end_date)&lt;br /&gt;  SELECT calendar_s1.nextval,&lt;br /&gt;  month,&lt;br /&gt;  full_month,&lt;br /&gt;  add_months(begin_date,-12),&lt;br /&gt;  add_months(end_date,-12)&lt;br /&gt;  FROM calendar;&lt;br /&gt;&lt;br /&gt;Try that out and let me know if you have other simpler solutions for a similar problem.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-1155608016822995355?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/1155608016822995355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=1155608016822995355' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/1155608016822995355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/1155608016822995355'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2008/05/sql-date-manipulating-in-oracle.html' title='SQL date manipulating in Oracle'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9044679436313067458.post-5568769683116516667</id><published>2008-05-14T10:09:00.000-07:00</published><updated>2008-05-14T10:29:07.802-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mathew Pretel Blog Computer Information Technology Systems'/><title type='text'>Introduction</title><content type='html'>Dear readers,&lt;br /&gt;The purpose of this blog is to provide information, definitions, and ways of doing stuff with technology, mostly with programming, database, setting up different types of server - such as normal proxy servers, transparent proxy servers, web servers, etc...&lt;br /&gt;The main purpose of this blog is really to keep my notes online so I can reference to them later on, if I go through the same problem.&lt;br /&gt;I also want to go over some basic programming and database concepts to help beginners dive in programming without fear.&lt;br /&gt;Let me know if you have any questions.&lt;br /&gt;&lt;br /&gt;A brief introduction about me.&lt;br /&gt;My name is Mathew Pretel. I work at Corda Technologies currently as a developer while going to school at BYU-Idaho. My major is Computer Information Technology with emphasis in development.&lt;br /&gt;I'm married and we have a 6 months old little girl.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9044679436313067458-5568769683116516667?l=citnotes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citnotes.blogspot.com/feeds/5568769683116516667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9044679436313067458&amp;postID=5568769683116516667' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/5568769683116516667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9044679436313067458/posts/default/5568769683116516667'/><link rel='alternate' type='text/html' href='http://citnotes.blogspot.com/2008/05/introduction.html' title='Introduction'/><author><name>Mathew Pretel</name><uri>http://www.blogger.com/profile/15658399262756592862</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/_TKBmr6O6GIg/TTsD8kTTFbI/AAAAAAAAAIM/K_7D3VxoFSE/s220/Screen%2Bshot%2B2010-06-18%2Bat%2B5.24.22%2BPM.png'/></author><thr:total>0</thr:total></entry></feed>
