<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>aExellent coding</title>
	<atom:link href="http://aexellentcoding.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://aexellentcoding.wordpress.com</link>
	<description>java, developing software and more…</description>
	<lastBuildDate>Wed, 05 Aug 2009 14:23:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='aexellentcoding.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>aExellent coding</title>
		<link>http://aexellentcoding.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://aexellentcoding.wordpress.com/osd.xml" title="aExellent coding" />
	<atom:link rel='hub' href='http://aexellentcoding.wordpress.com/?pushpress=hub'/>
		<item>
		<title>easy-to-go solution vs. proxy authentication problems</title>
		<link>http://aexellentcoding.wordpress.com/2009/07/30/easy-to-go-solution-vs-proxy-authentication-problems/</link>
		<comments>http://aexellentcoding.wordpress.com/2009/07/30/easy-to-go-solution-vs-proxy-authentication-problems/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 16:41:10 +0000</pubDate>
		<dc:creator>aexel</dc:creator>
				<category><![CDATA[developers life]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[cntlm]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[NTLMv2]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://aexellentcoding.wordpress.com/?p=51</guid>
		<description><![CDATA[a few weeks ago i wrote about a problem eclipse galileo has with ntlmv2 proxies and its default configuration. a few days ago i had a problem occurring, when i tried to do a ruby script/plugin install http://url-to-some-plugin.tld/path. the http_proxy environment variable was set correct, but it seemed like rubys plugin script had some problems [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=51&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>a few weeks ago <a href="http://aexellentcoding.wordpress.com/2009/07/13/eclipse-galileo-and-its-problem-with-ntlmv2-proxies/">i wrote about a problem eclipse galileo has with ntlmv2 proxies and its default configuration</a>.<br />
a few days ago i had a problem occurring, when i tried to do a <code>ruby script/plugin install http://url-to-some-plugin.tld/path</code>. the http_proxy environment variable was set correct, but it seemed like rubys plugin script had some problems with the proxy auth informations. </p>
<p>anyway.. i found a nice solution to nearly all the proxy auth problems out there, cause usually a proxy without any authentication should work without any problems in nearly all cases <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>check out the <a href="http://cntlm.sourceforge.net/">cntlm authentication proxy website</a>, download the small package, unzip it somewhere and run the installer script. </p>
<p>now you just need to put the correct settings in the config file.<br />
in the configuration hints paragraph on the cntlm webbie you&#8217;ll find the following guidance:</p>
<blockquote><p>
<strong>Configuration hints</strong></p>
<p>After installation, you have to locate the configuration file. The default for Linux packages is <strong>/etc/cntlm.conf</strong>, for locally compiled source distribution (&#8220;./configure; make; make install&#8221;) it&#8217;s <strong>/usr/local/etc/cntlm.conf</strong> and for Windows installer it&#8217;s <strong>%PROGRAMFILES%\Cntlm\cntlm.ini</strong> (usually X:\Program Files\Cntlm\cntlm.ini, where X is your system drive).</p>
<p>When you have found it, fire up your favourite editor (not a word processor) and open the file. First a few rules, though &#8211; lines beginning with a hash, #, are comments: completely ignored. There is no required formatting and option names are case insensitive. Option values are parsed literally: a quote means a quote and is taken as part of the string, so do not quote, escape, etc. Anyway, you need to set these core options:</p>
<blockquote><p>
    * <strong>Username </strong>- your domain/proxy account name<br />
    * <strong>Domain </strong>- the actual domain name<br />
    * <strong>Workstation </strong>- NetBIOS name of your workstation; Cntlm tries to autodetect it, but you might want to set it explicitly should dialect detection fail (see below)<br />
    * <strong>Proxy </strong>- IP address (or ping-able hostname) of your proxy; if you use several alternative proxies or know of backup ones, use this option multiple times; if one stops working, Cntlm will move on to the next<br />
    * <strong>Listen </strong>- local port number which Cntlm should bind to; the default is OK, but remember you can&#8217;t have more than one application per port; you can use netstat to list used up ports (lines with LISTEN)
</p></blockquote>
<p>Next, we need to find out which NTLM dialect your proxy understands. It&#8217;s a jungle out there and it can be quite challenging (i.e. boooring) to find a working NTLM setup &#8211; thank Bill. Good thing Cntlm has this magic switch to do it for you &#8211; thank me. <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Save the configuration and run the following command; when asked, enter your proxy access password:</p>
<blockquote><p>
    $ <strong>cntlm -I -M http://test.com</strong><br />
    Config profile  1/11&#8230; OK (HTTP code: 200)<br />
    Config profile  2/11&#8230; OK (HTTP code: 200)<br />
    Config profile  3/11&#8230; OK (HTTP code: 200)<br />
    Config profile  4/11&#8230; OK (HTTP code: 200)<br />
    Config profile  5/11&#8230; OK (HTTP code: 200)<br />
    Config profile  6/11&#8230; Credentials rejected<br />
    Config profile  7/11&#8230; Credentials rejected<br />
    Config profile  8/11&#8230; OK (HTTP code: 200)<br />
    Config profile  9/11&#8230; OK (HTTP code: 200)<br />
    Config profile 10/11&#8230; OK (HTTP code: 200)<br />
    Config profile 11/11&#8230; OK (HTTP code: 200)<br />
    &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-[ Profile  0 ]&#8212;&#8212;<br />
    Auth            NTLMv2<br />
    PassNTLMv2      4AC6525378DF8C69CF6B6234532943AC<br />
    &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
</p></blockquote>
<p>You see, NTLMv2 &#8211; I told you to use it, now it&#8217;s official. <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  BTW, here you can see all tests running &#8211; it&#8217;s just for demonstration purposes. Normal version finishes when it finds the first (i.e. most secure) working setup.</p>
<p>When you get your options (might be more than just <strong>Auth</strong> and <strong>Pass</strong>* here), remove all previous password settings and paste the profile into the configuration file and save it. (Re)start Cntlm and it should work. To use it in your applications, replace the old proxy settings with &#8220;<strong>localhost</strong>&#8220;, port same as you chose for <strong>Listen</strong>.</p>
<p>This was just a simple 101 lesson to help you kick-start the proxy. You should still <strong>RTFM</strong>. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
</p></blockquote>
<p><strong>many thanks to the cntlm team for developing such a smooth running and easy-to-go solution!</strong></p>
<p><strong>btw</strong>: if you are using cygwin on your windows system and put the cygwin/bin directory to your path environment variable for easy integration, you should delete the cygwin1.dll delivered with the cntlm application &#8211; usually found under c:\programme\cntlm &#8211; or at least rename it and check whether everything works this way.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aexellentcoding.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aexellentcoding.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aexellentcoding.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aexellentcoding.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aexellentcoding.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aexellentcoding.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aexellentcoding.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aexellentcoding.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aexellentcoding.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aexellentcoding.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aexellentcoding.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aexellentcoding.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aexellentcoding.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aexellentcoding.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=51&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aexellentcoding.wordpress.com/2009/07/30/easy-to-go-solution-vs-proxy-authentication-problems/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e2356978a62af2c682a359cb273e5ff?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">aexel</media:title>
		</media:content>
	</item>
		<item>
		<title>problem with new rails application controller name and role_requirement plugin</title>
		<link>http://aexellentcoding.wordpress.com/2009/07/29/problem-with-new-rails-application-controller-name-and-role_requirement-plugin/</link>
		<comments>http://aexellentcoding.wordpress.com/2009/07/29/problem-with-new-rails-application-controller-name-and-role_requirement-plugin/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 07:14:02 +0000</pubDate>
		<dc:creator>aexel</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[application_controller]]></category>
		<category><![CDATA[generator]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[role_requirement]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://aexellentcoding.wordpress.com/?p=41</guid>
		<description><![CDATA[in addition to restful_authentication or acts_as_authenticated you can use the role_requirement plugin, to combine the user authentication with roles, like the names could already let you assume. so i installed the restful_authentication plugin, that let me generate my user model&#8230; further on i installed the role_requirement plugin, but when i tried to do the ruby [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=41&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>in addition to restful_authentication or acts_as_authenticated you can use the role_requirement plugin, to combine the user authentication with roles, like the names could already let you assume. </p>
<p>so i installed the restful_authentication plugin, that let me generate my user model&#8230; further on i installed the role_requirement plugin, but when i tried to do the <code>ruby script/generate roles Role User</code> i got the following error:</p>
<blockquote><p>No such file or directory &#8211; &#8230;/app/controllers/application.rb</p></blockquote>
<p>after some investigation i found the <a href="http://guides.rubyonrails.org/2_3_release_notes.html#application-controller-renamed">cause</a> and <a href="http://code.google.com/p/rolerequirement/issues/detail?id=23">solution</a> to the problem..<br />
beginning with rails version 2.3 the the name of the application controller changed from application.rb to application_controller.rb, and it seems like the role_requirement plugin still misses the needed change in one of its generators.</p>
<p>to solve the issue, just update line 52 in &#8230;/vendor/plugins/role_requirement/generators/role_generator_helpers.rb to point to application_controller.rb instead of application.rb and the generator will do the job for you again.</p>
<p><em>a little addon:</em><br />
if your project is created before rails version 2.3 and you get the following error in your browser:</p>
<blockquote><p>&#8230;uninitialized constant ApplicationController&#8230;</p></blockquote>
<p>you can either rename the application.rb to application_controller.rb manually or just run the command <code>rake rails:update:application_controller</code>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aexellentcoding.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aexellentcoding.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aexellentcoding.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aexellentcoding.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aexellentcoding.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aexellentcoding.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aexellentcoding.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aexellentcoding.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aexellentcoding.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aexellentcoding.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aexellentcoding.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aexellentcoding.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aexellentcoding.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aexellentcoding.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=41&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aexellentcoding.wordpress.com/2009/07/29/problem-with-new-rails-application-controller-name-and-role_requirement-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e2356978a62af2c682a359cb273e5ff?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">aexel</media:title>
		</media:content>
	</item>
		<item>
		<title>eclipse galileo and it&#8217;s problem with NTLMv2 proxies</title>
		<link>http://aexellentcoding.wordpress.com/2009/07/13/eclipse-galileo-and-its-problem-with-ntlmv2-proxies/</link>
		<comments>http://aexellentcoding.wordpress.com/2009/07/13/eclipse-galileo-and-its-problem-with-ntlmv2-proxies/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 16:21:39 +0000</pubDate>
		<dc:creator>aexel</dc:creator>
				<category><![CDATA[eclipse]]></category>
		<category><![CDATA[connection]]></category>
		<category><![CDATA[galileo]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[NTLMv2]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://aexellentcoding.wordpress.com/?p=36</guid>
		<description><![CDATA[after moving the connection settings dialog in eclipse ganymede (3.4), which already made me search for a solution on the &#8220;no connection to the internet&#8221; problem, they have introduced some new ECF features in eclipse galileo (3.5) and i had trouble with the update sites in eclipse again. i found an explanation in the eclipse [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=36&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>after moving the connection settings dialog in eclipse ganymede (3.4), which already made me search for a solution on the &#8220;no connection to the internet&#8221; problem, they have introduced some new ECF features in eclipse galileo (3.5) and i had trouble with the update sites in eclipse again. </p>
<p>i found an explanation in the <a href="http://wiki.eclipse.org/ECF_Filetransfer_Support_for_NTLMv2_Proxies">eclipse wiki</a> and a workaround for the problem aswell:</p>
<blockquote><p>
Like other parts of ECF, the  filetransfer API has a provider architecture, allowing multiple implementations to be used for filetransfer (i.e. via http, ftp, and others). In ECF 3.0/Eclipse 3.5 the primary provider is based upon Apache httpclient 3.1. This was introduced in the ECF 3.0/Eclipse 3.5 cycle because the previous provider that was based upon the JRE URLConnection implementation proved insufficiently reliable (i.e. see bug 166179).</p>
<p>Unfortunately, the Apache httpclient implementation, although more robust than the URLConnection-based provider, does not support NTLMv2 proxies directly (for an explanation of why, see <a href="http://wiki.apache.org/jakarta-httpclient/FrequentlyAskedNTLMQuestions#head-d318851e40156de248e72fbb15bbce52a5e18f2c">here</a>).
</p></blockquote>
<p>so just add the following line to your eclipse.ini and the proxy settings should work again.<br />
<code>-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=<br />
org.eclipse.ecf.provider.filetransfer.httpclient</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aexellentcoding.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aexellentcoding.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aexellentcoding.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aexellentcoding.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aexellentcoding.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aexellentcoding.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aexellentcoding.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aexellentcoding.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aexellentcoding.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aexellentcoding.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aexellentcoding.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aexellentcoding.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aexellentcoding.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aexellentcoding.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=36&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aexellentcoding.wordpress.com/2009/07/13/eclipse-galileo-and-its-problem-with-ntlmv2-proxies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e2356978a62af2c682a359cb273e5ff?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">aexel</media:title>
		</media:content>
	</item>
		<item>
		<title>getting started with ruby&#8230; and booom!</title>
		<link>http://aexellentcoding.wordpress.com/2009/05/29/getting-started-with-ruby-and-booom/</link>
		<comments>http://aexellentcoding.wordpress.com/2009/05/29/getting-started-with-ruby-and-booom/#comments</comments>
		<pubDate>Fri, 29 May 2009 14:31:44 +0000</pubDate>
		<dc:creator>aexel</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[getting  started]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://aexellentcoding.wordpress.com/?p=31</guid>
		<description><![CDATA[i wanted to try it out since the WJAX08 in munich last year &#8211; when i attended a presentation on jruby&#8230; in detail a guy called michael johann showed a little sample application with a frontend written in ruby, connecting to an ejb backend, simply running on an application server with jruby. so the simplicity [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=31&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>i wanted to try it out since the WJAX08 in munich last year &#8211; when i attended a presentation on jruby&#8230;<br />
in detail a guy called michael johann showed a little sample application with a frontend written in ruby, connecting to an ejb backend, simply running on an application server with jruby. so the simplicity of the whole thing called my attention and i wanted to try it out myself all the time&#8230; <strong>wanted to</strong>, but <strong>didn&#8217;t do</strong>&#8230; so time passed by and at the JAX09 this year, i attended some sessions on ruby again. i still wasn&#8217;t less attracted and so i ordered the book &#8220;ruby on rails fuer jee-experten&#8221; in the end.</p>
<p>in the last weeks i had some spare time, so i installed the rubystack package from bitnami and played around a little bit.<br />
first i upgraded ruby, gems, etc..<br />
after that i started a project and tried to create the databases.</p>
<p>and <strong>booom</strong>&#8230; the first thing went wrong <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
when i wanted to do a db:create:all, it failed with the following error msg:<br />
<code>Rails requires RubyGems &gt;= 1.3.1 (you have 1.2.0). Please `gem update --system` and try again.</code></p>
<p>seems the command <code>gem update --system</code> doesn&#8217;t work on all versions of ruby gems. when you run the command you simply get a message, that theres nothing to update. but bless google, i found a work-around on the following <a href="http://blogs.sun.com/divas/entry/fixing_the_rails_requires_rubygems">site</a>.</p>
<p>here the steps to follow:<br />
1. Open a terminal window and change (<code>cd</code>) to the JRuby or Ruby bin directory.<br />
2. Type <code>ruby -S gem --version</code><br />
    If the version is 1.3.1, then that installation has already been updated and you are done. Otherwise, continue.<br />
3. Type <code>ruby -S gem install rubygems-update</code><br />
4. Type <code>ruby -S update_rubygems</code><br />
5. To ensure that the update happened, type <code>ruby -S gem --version</code> </p>
<p>after the fix, it wasn&#8217;t a problem anymore to create the databases and i added some models and controllers aswell&#8230; but more on that in the next days.. and weeks <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>links:<br />
<a href="http://blogs.sun.com/divas/entry/fixing_the_rails_requires_rubygems">http://blogs.sun.com/divas/entry/fixing_the_rails_requires_rubygems</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aexellentcoding.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aexellentcoding.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aexellentcoding.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aexellentcoding.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aexellentcoding.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aexellentcoding.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aexellentcoding.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aexellentcoding.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aexellentcoding.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aexellentcoding.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aexellentcoding.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aexellentcoding.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aexellentcoding.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aexellentcoding.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=31&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aexellentcoding.wordpress.com/2009/05/29/getting-started-with-ruby-and-booom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e2356978a62af2c682a359cb273e5ff?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">aexel</media:title>
		</media:content>
	</item>
		<item>
		<title>Can&#8217;t sleep&#8230; count sheep!?</title>
		<link>http://aexellentcoding.wordpress.com/2009/05/15/cant-sleep-count-sheep/</link>
		<comments>http://aexellentcoding.wordpress.com/2009/05/15/cant-sleep-count-sheep/#comments</comments>
		<pubDate>Fri, 15 May 2009 12:47:45 +0000</pubDate>
		<dc:creator>aexel</dc:creator>
				<category><![CDATA[developers life]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[overflow]]></category>
		<category><![CDATA[sheep]]></category>
		<category><![CDATA[sleep]]></category>

		<guid isPermaLink="false">http://aexellentcoding.wordpress.com/?p=24</guid>
		<description><![CDATA[What happens, if programmers can&#8217;t sleep and start to count sheep? Sheep overflow! (via)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=24&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>What happens, if programmers can&#8217;t sleep and start to count sheep?</p>
<p><a href="http://xkcd.com/571/"><img src="http://aexellentcoding.files.wordpress.com/2009/05/cant_sleep_small.png?w=420&#038;h=138" alt="Can&#39;t sleep" title="Can&#39;t sleep" width="420" height="138" class="size-full wp-image-25" /></a></p>
<p>Sheep overflow! <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><a href="http://javathreads.de/2009/05/wenn-informatiker-nicht-einschlafen-koennen/">(via)</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aexellentcoding.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aexellentcoding.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aexellentcoding.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aexellentcoding.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aexellentcoding.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aexellentcoding.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aexellentcoding.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aexellentcoding.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aexellentcoding.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aexellentcoding.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aexellentcoding.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aexellentcoding.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aexellentcoding.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aexellentcoding.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=24&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aexellentcoding.wordpress.com/2009/05/15/cant-sleep-count-sheep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e2356978a62af2c682a359cb273e5ff?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">aexel</media:title>
		</media:content>

		<media:content url="http://aexellentcoding.files.wordpress.com/2009/05/cant_sleep_small.png" medium="image">
			<media:title type="html">Can&#39;t sleep</media:title>
		</media:content>
	</item>
		<item>
		<title>installing cvs + migration of a repository</title>
		<link>http://aexellentcoding.wordpress.com/2009/04/15/installing-cvs-migration-of-a-repository/</link>
		<comments>http://aexellentcoding.wordpress.com/2009/04/15/installing-cvs-migration-of-a-repository/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 08:16:30 +0000</pubDate>
		<dc:creator>aexel</dc:creator>
				<category><![CDATA[commands]]></category>
		<category><![CDATA[cvs]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[pserver]]></category>
		<category><![CDATA[xinetd]]></category>

		<guid isPermaLink="false">http://aexellentcoding.wordpress.com/?p=15</guid>
		<description><![CDATA[i had to set up cvs on a new server, including migration of an existing cvs repository and followed a nice adminguide by a guy called Stephen Adkins. so here the steps i went along to get things working again: i downloaded an up-to-date version from http://ftp.gnu.org/non-gnu/cvs/binary/stable/x86-linux/RPMS/i386/ and installed it on the new machine with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=15&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>i had to set up cvs on a new server, including migration of an existing cvs repository and followed a nice <a href="http://search.cpan.org/~spadkins/App-Context-0.9661/lib/App/adminguide/cvs.pod">adminguide</a> by a guy called Stephen Adkins.</p>
<p>so here the steps i went along to get things working again:</p>
<p>i downloaded an up-to-date version from<br />
<code>http://ftp.gnu.org/non-gnu/cvs/binary/stable/x86-linux/RPMS/i386/</code><br />
and installed it on the new machine with<br />
<code>rpm -i cvs-1.11.18-cvshome.org.9x.1.i386.rpm</code><br />
after on you can check if installation works, with<br />
<code>cvs -version</code></p>
<p>add a new group: cvsusers<br />
<code>groupadd cvsusers</code><br />
add a new user: cvs<br />
<code>useradd cvs -g cvsusers -c CVS-Owner -d /home/cvs</code><br />
create a new directory for the repository: /home/cvs/repository<br />
<code>mkdir /home/cvs/repository</code><br />
and set it as CVSROOT:<br />
<code>CVSROOT=/home/cvs/repository</code><br />
<code>export CVSROOT</code></p>
<p>switch to cvs user and init repository:<br />
<code>su - cvs</code><br />
<code>cvs init</code></p>
<p>copy resp. create <code>passwd</code> file in CVSROOT.<br />
copy resp. create <code>readers</code> file in CVSROOT to add the read-only users. (that&#8217;s the &#8220;black list&#8221; way&#8230; you can go the &#8220;white list&#8221; way aswell, you just have to add the writeable users to a <code>writers</code> file. more infos available <a href="http://www.network-theory.co.uk/docs/cvsmanual/Readonlyaccess.html">here</a>)<br />
a quite nice addon perl-script for adding users easily, you can find in the mentioned adminguide.</p>
<p>configure xinetd.conf for using pserver (just change to the servers ip adress instead of 10.10.10.10):<br />
<code>service cvspserver<br />
{<br />
    disable         = no<br />
    socket_type     = stream<br />
    wait            = no<br />
    user            = cvs<br />
    group           = cvsusers<br />
    log_type        = FILE /var/log/cvspserver<br />
    protocol        = tcp<br />
    env             = '$HOME=/home/cvs/repository'<br />
    bind            = 10.10.10.10<br />
    log_on_failure += USERID<br />
    port            = 2401<br />
    server          = /usr/bin/cvs<br />
    server_args     = -f --allow-root=/home/cvs/repository pserver<br />
}</code></p>
<p>kill and restart xinetd</p>
<p>check from another machine, whether the installation went ok:<br />
<code>cvs -d :pserver:testuser@cvshost:/home/cvs/repository login<br />
cvs -d :pserver:testuser@cvshost:/home/cvs/repository co CVSROOT<br />
# it works, so remove it again...<br />
rm -rf CVSROOT</code></p>
<p>and finally migrate the old repository. you just have to copy the existing contents into the new one&#8230;</p>
<p>VOILÀ&#8230; DONE!</p>
<p>some more links:<br />
<a href="http://www.ahinc.com/linux101/users.htm">http://www.ahinc.com/linux101/users.htm</a><br />
<a href="http://www.linux.ie/articles/tutorials/managingaccesswithcvs.php">http://www.linux.ie/articles/tutorials/managingaccesswithcvs.php</a><br />
<a href="http://www.network-theory.co.uk/docs/cvsmanual/">http://www.network-theory.co.uk/docs/cvsmanual/</a><br />
<a href="http://ximbiot.com/cvs/manual/">http://ximbiot.com/cvs/manual/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aexellentcoding.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aexellentcoding.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aexellentcoding.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aexellentcoding.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aexellentcoding.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aexellentcoding.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aexellentcoding.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aexellentcoding.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aexellentcoding.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aexellentcoding.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aexellentcoding.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aexellentcoding.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aexellentcoding.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aexellentcoding.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=15&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aexellentcoding.wordpress.com/2009/04/15/installing-cvs-migration-of-a-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e2356978a62af2c682a359cb273e5ff?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">aexel</media:title>
		</media:content>
	</item>
		<item>
		<title>user/group/softlink-commands, lamp-installation and database-creation</title>
		<link>http://aexellentcoding.wordpress.com/2009/04/13/usergroup-commands-lamp-installation-and-database-creation/</link>
		<comments>http://aexellentcoding.wordpress.com/2009/04/13/usergroup-commands-lamp-installation-and-database-creation/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 19:33:22 +0000</pubDate>
		<dc:creator>aexel</dc:creator>
				<category><![CDATA[commands]]></category>
		<category><![CDATA[developers life]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[grants]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[softlink]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://aexellentcoding.wordpress.com/?p=9</guid>
		<description><![CDATA[i can&#8217;t keep all the commands in mind, which follows to a lot of google searches everytime&#8230; and yes i wanted to stop that here the commands: to add users, to manage groups, to install apache+php+mysql+phpmyadmin, to add mysql users and databases add a user: adduser username add a group: addgroup groupname add a user [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=9&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>i can&#8217;t keep all the commands in mind, which follows to a lot of google searches everytime&#8230; and yes i wanted to stop that <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>here the commands: to add users, to manage groups, to install apache+php+mysql+phpmyadmin, to add mysql users and databases</p>
<p>add a user:<br />
<code>adduser username</code><strong></strong></p>
<p>add a group:<br />
<code>addgroup groupname</code></p>
<p>add a user to a group (<a href="http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/">link</a>):<br />
<code>adduser username groupname</code></p>
<p>change a user-is/group-id (<a href="http://it.toolbox.com/blogs/locutus/how-to-change-a-users-uid-and-gid-26368">link</a>):<br />
<code>usermod -u 123 -g 456 username</code><br />
<code>groupmod -g 4321 groupname</code></p>
<p>create a softlink:<br />
<code>ln -s Ziel(verzeichnis) Linkname</code></p>
<p><strong>links:</strong></p>
<p>http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/</p>
<p>http://polishlinux.org/console/file-permissions-in-linux/</p>
<p>http://it.toolbox.com/blogs/locutus/how-to-change-a-users-uid-and-gid-26368</p>
<p>http://www.everyjoe.com/newlinuxuser/topic/how-to/</p>
<p>http://www.linuxheadquarters.com/howto/index.shtml</p>
<p><strong>installation of apache, mysql, php, phpmyadmin:</strong><br />
<code>apt-get update</code><br />
<code>apt-get upgrade</code><br />
<code>apt-get install apache2 php5 mysql-server php5-mysql phpmyadmin</code><br />
<code>mysql_install_db</code> resp. <code>mysql_secure_installation</code><br />
<code>/etc/init.d/mysql restart</code><br />
<code>/etc/init.d/apache2 restart</code><br />
to access phpmyadmin, we need to add the following line to <code>/etc/apache2/apache2.conf</code>: &#8220;Include /etc/phpmyadmin/apache.conf&#8221;<br />
if apache fails to start -&gt; <code>apt-get install apache2-mpm-prefork</code> </p>
<p><strong>more useful utils:</strong><br />
<code>apt-get install wget unzip php5-gd</code></p>
<p><strong>add a new mysql-user and create a new mysql-database:</strong></p>
<p>login as root:<br />
<code>mysql -h localhost  -u root -p</code></p>
<p>create a new database:<br />
<code>mysql&gt; create database testdb;<br />
Query OK, 1 row affected (0.00 sec)</code></p>
<p>add a new user and grant full access to the previously created database:<br />
<code>mysql&gt; grant CREATE,INSERT,DELETE,UPDATE,SELECT on testdb.* to testuser@localhost;<br />
Query OK, 0 rows affected (0.00 sec)</code></p>
<p>set a password for the previously added user:<br />
mysql&gt; set password for testuser@localhost= password(&#8216;irgendeinpasswort&#8217;);<br />
Query OK, 0 rows affected (0.00 sec)</p>
<p>in the end flush the privileges and logout:<br />
<code>mysql&gt; flush privileges;<br />
mysql&gt; exit;</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aexellentcoding.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aexellentcoding.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aexellentcoding.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aexellentcoding.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aexellentcoding.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aexellentcoding.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aexellentcoding.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aexellentcoding.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aexellentcoding.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aexellentcoding.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aexellentcoding.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aexellentcoding.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aexellentcoding.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aexellentcoding.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=9&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aexellentcoding.wordpress.com/2009/04/13/usergroup-commands-lamp-installation-and-database-creation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e2356978a62af2c682a359cb273e5ff?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">aexel</media:title>
		</media:content>
	</item>
		<item>
		<title>java.sql.Date is just a date, no timestamp!</title>
		<link>http://aexellentcoding.wordpress.com/2009/04/09/javasqldate-is-just-a-date-no-timestamp/</link>
		<comments>http://aexellentcoding.wordpress.com/2009/04/09/javasqldate-is-just-a-date-no-timestamp/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 12:48:17 +0000</pubDate>
		<dc:creator>aexel</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[feature]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[timestamp]]></category>

		<guid isPermaLink="false">http://aexellentcoding.wordpress.com/?p=7</guid>
		<description><![CDATA[problem: i tried to put a date with time into a preparedstatement. but after executing and checking the database table where the correct value should be, i just found something like 09.04.2009. mysterious at the first look, cause i even took the millis from java.util.Date via getTime() and set it into a java.sql.Date(), before i [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=7&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>problem:</strong> i tried to put a date with time into a preparedstatement. but after executing and checking the database table where the correct value should be, i just found something like 09.04.2009.<br />
mysterious at the first look, cause i even took the millis from java.util.Date via getTime() and set it into a java.sql.Date(), before i put it into the preparedstatement. i supposed that should be correct&#8230; but NO, it isn&#8217;t!</p>
<p>i googled around and found 2 interesting pages [1 and 2], which gave me some understanding on the whole issue.</p>
<p><strong>solution:</strong> let me quote a reply from someone called Bjorn Abelli on one of these pages, to explain the whole situation:</p>
<blockquote><p>
It&#8217;s no bug at all, though it&#8217;s not *convenient* for us Java developers.</p>
<p>Instead it&#8217;s quite logical, as java.sql.* pretty much conforms to&#8230;</p>
<p>SQL!</p>
<p>Those databases that really conform to &#8220;standard&#8221; SQL *doesn&#8217;t* have any time information in their DATE-fields (hence a java.sql.Date), instead they have it in TIME-fields (note there is also a java.sql.Time!).</p>
<p>And there&#8217;s also the datatype TIMESTAMP in the standard form of SQL, to have a combination of date and time (hence the java.sql.Timestamp!)&#8230;</p>
<p>Unfortunately there&#8217;s plenty of db:s that *doesn&#8217;t* conform to standard SQL, such as Oracle, MS Access/Jet, SQL Server, etc&#8230;</p>
<p>For the fields that includes both date and time in those databases, the *closest* thing to represent it is java.sql.Timestamp.</p>
<p>No bug&#8230;
</p></blockquote>
<p>so finally i went this way, to get the whole thing working:</p>
<p><code>statement.setTimestamp(1, new java.sql.Timestamp(date.getTime()));</code></p>
<p>there are some other issues, if you use Timestamp in java versions older than 1.4, but that wasn&#8217;t relevant in my case. if it is for you, you should check [2].</p>
<p>[1] <a href="http://www.keyongtech.com/4634511-java-timestamp-in-sql">http://www.keyongtech.com/4634511-java-timestamp-in-sql</a><br />
[2] <a href="http://www.thunderguy.com/semicolon/2003/08/14/java-sql-date-is-not-a-real-date/">http://www.thunderguy.com/semicolon/2003/08/14/java-sql-date-is-not-a-real-date/</a><br />
some more ideas and explanation on the whole case, unfortunately just in german language:<br />
[3] <a href="http://www.hi-tier.de/Entwicklung/Technik/datetime001.html">http://www.hi-tier.de/Entwicklung/Technik/datetime001.html</a><br />
[4] <a href="http://help.sap.com/saphelp_webas630/helpdata/de/6c/7784ac804be2419f957e8434be6a07/content.htm">http://help.sap.com/saphelp_webas630/helpdata/de/6c/7784ac804be2419f957e8434be6a07/content.htm</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aexellentcoding.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aexellentcoding.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aexellentcoding.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aexellentcoding.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aexellentcoding.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aexellentcoding.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aexellentcoding.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aexellentcoding.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aexellentcoding.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aexellentcoding.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aexellentcoding.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aexellentcoding.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aexellentcoding.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aexellentcoding.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=7&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aexellentcoding.wordpress.com/2009/04/09/javasqldate-is-just-a-date-no-timestamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e2356978a62af2c682a359cb273e5ff?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">aexel</media:title>
		</media:content>
	</item>
		<item>
		<title>starting this!</title>
		<link>http://aexellentcoding.wordpress.com/2009/04/08/starting-this/</link>
		<comments>http://aexellentcoding.wordpress.com/2009/04/08/starting-this/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 16:10:35 +0000</pubDate>
		<dc:creator>aexel</dc:creator>
				<category><![CDATA[developers life]]></category>
		<category><![CDATA[bullshit]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[start]]></category>
		<category><![CDATA[story]]></category>

		<guid isPermaLink="false">http://aexellentcoding.wordpress.com/?p=4</guid>
		<description><![CDATA[when you develop software, you experience problems every now and then. ok, with increasing skills it should become less and less problems, but overall i doubt there&#8217;s a developer out there, who&#8217;s completely free of problems sometimes it might be really silly problems. respectively not even a problem for someone else, who knows about the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=4&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>when you develop software, you experience problems every now and then.<br />
ok, with increasing skills it should become less and less problems, but overall i doubt there&#8217;s a developer out there, who&#8217;s completely free of problems <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
sometimes it might be really silly problems. respectively not even a problem for someone else, who knows about the case or situation already. but at other times you might even be in deep shit and need days to locate the origin or find a solution&#8230;</p>
<p>so in case of a problem, usually you start to search around the internet, if there are other people, who solved the same or similar problems before and kept some hints and information about it.<br />
i thought about keeping or posting the gathered information &#8211; or even both &#8211; before, but i never did it. so everytime i start it over again &#8211;  searching my code and the net for the right solutions.</p>
<p>to stop this inefficient bullshit, i&#8217;ll start this weblog now. for me, for you and for everyone who cares about it <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aexellentcoding.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aexellentcoding.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aexellentcoding.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aexellentcoding.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aexellentcoding.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aexellentcoding.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aexellentcoding.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aexellentcoding.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aexellentcoding.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aexellentcoding.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aexellentcoding.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aexellentcoding.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aexellentcoding.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aexellentcoding.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=4&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aexellentcoding.wordpress.com/2009/04/08/starting-this/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e2356978a62af2c682a359cb273e5ff?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">aexel</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://aexellentcoding.wordpress.com/2009/04/08/hello-world/</link>
		<comments>http://aexellentcoding.wordpress.com/2009/04/08/hello-world/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 13:01:18 +0000</pubDate>
		<dc:creator>aexel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=1&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aexellentcoding.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aexellentcoding.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aexellentcoding.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aexellentcoding.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aexellentcoding.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aexellentcoding.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aexellentcoding.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aexellentcoding.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aexellentcoding.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aexellentcoding.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aexellentcoding.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aexellentcoding.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aexellentcoding.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aexellentcoding.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aexellentcoding.wordpress.com&amp;blog=7296164&amp;post=1&amp;subd=aexellentcoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aexellentcoding.wordpress.com/2009/04/08/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e2356978a62af2c682a359cb273e5ff?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">aexel</media:title>
		</media:content>
	</item>
	</channel>
</rss>
