<?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-748322738705085761</id><updated>2012-01-19T01:03:16.353+02:00</updated><category term='Sysvinit'/><category term='JPA'/><category term='JavaEE'/><category term='nexus'/><category term='proxy'/><category term='Internet Explorer 7'/><category term='Upstart'/><category term='VirtualBox'/><category term='Trafalgar'/><category term='maven'/><category term='Alfresco'/><category term='Wine'/><category term='gdebi'/><category term='WEB'/><category term='Chromium'/><category term='word of the day'/><category term='JNDI'/><category term='filesystems'/><category term='maven repository manager'/><category term='apt-cacher'/><category term='Kubuntu'/><category term='knetstats'/><category term='Oracle XE'/><category term='Launchpad'/><category term='Hudson'/><category term='apt-cacher-ng'/><category term='kdirstat'/><category term='archiva'/><category term='The Bible'/><category term='Vaadin'/><category term='Dubai'/><category term='apache'/><category term='Word of the week'/><category term='IE7'/><category term='hibernate'/><category term='KDE'/><category term='ext3'/><category term='Loggerhead'/><category term='ant'/><category term='java'/><category term='vacation'/><category term='php'/><category term='apt-proxy'/><category term='Debian'/><category term='vsftp'/><category term='sles'/><category term='pycurl'/><category term='sourceforge'/><category term='apt'/><category term='Bazaar'/><category term='bash'/><category term='intrepid'/><category term='oracle'/><category term='kde4'/><category term='kindle'/><category term='ext2'/><category term='Tomcat'/><category term='fat32'/><category term='colemak'/><category term='artifactory'/><category term='Lucid'/><category term='Standing desk'/><category term='Linux'/><category term='vfat'/><category term='Eclipse'/><category term='xfce'/><category term='Adsl'/><category term='JSF'/><category term='Ubuntu'/><category term='Glassfish'/><category term='Laptops'/><category term='Europe'/><category term='oci8'/><category term='gmail'/><category term='Icefaces'/><category term='Archiva GlassFish Derby'/><title type='text'>Some bits I'd like to share with the world</title><subtitle type='html'>I mostly post comments about stuff I spend a bit of time finding on the internet or figured out myself, in a hope that myself and others can find it easier the next time.
From time to time I will also post some personal experiences I'd like to share.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>84</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-7578892965980467682</id><published>2011-11-28T02:48:00.001+02:00</published><updated>2011-11-28T03:03:41.762+02:00</updated><title type='text'>My quest to program a ATTiny85 with my Arduinon UNO using ISP</title><content type='html'>While doing the Arduino advanced course at &lt;a href="http://www.house4hack.co.za/"&gt;house4hack&lt;/a&gt; a while ago, the Ubuntu 11.10 (oneric) guys could not manage to program their ATTiny85 chips although the windows and Ubuntu 10.04 (Lucid) guys managed fine. Today I spent a lot of time trying to get it to work and FINALLY did. Below is the main errors I saw and how to fix it.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Error1&lt;/b&gt;:&lt;br /&gt;&lt;pre&gt;Binary sketch size: 688 bytes (of a 8192 byte maximum)&lt;br /&gt;&lt;br /&gt;avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x14&lt;br /&gt;&lt;br /&gt;avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x01&lt;br /&gt;avrdude: stk500_initialize(): (a) protocol error, expect=0x14, resp=0x10&lt;br /&gt;avrdude: initialization failed, rc=-1&lt;br /&gt;         Double check connections and try again, or use -F to override&lt;br /&gt;         this check.&lt;br /&gt;&lt;br /&gt;avrdude: stk500_disable(): unknown response=0x12&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;b&gt;Solution1&lt;/b&gt;:&lt;br /&gt;&lt;a href="http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1286589145"&gt;http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1286589145&lt;/a&gt;&lt;br /&gt;&lt;pre&gt;"I think I found one myself.&lt;br /&gt;the problem is that the init request is sent 3 times but only one answer is expected, the following patch should fix":&lt;br /&gt;&lt;br /&gt;bilibao@nbarizzi2:~/ELE/arduino-0022$ diff -u examples/ArduinoISP/ArduinoISP.pde /home/bilibao/sketchbook/fixed/fixed.pde&lt;br /&gt;--- examples/ArduinoISP/ArduinoISP.pde  2010-12-24 23:12:25.000000000 +0100&lt;br /&gt;+++ /home/bilibao/sketchbook/fixed/fixed.pde    2011-01-12 01:10:41.373212997 +0100&lt;br /&gt;@@ -54,7 +54,7 @@&lt;br /&gt;  pinMode(9, OUTPUT);&lt;br /&gt;  pulse(9, 2);&lt;br /&gt;}&lt;br /&gt;-&lt;br /&gt;+int initSent=0;&lt;br /&gt;int error=0;&lt;br /&gt;int pmode=0;&lt;br /&gt;// address for reading and writing, set by 'U' command&lt;br /&gt;@@ -399,7 +399,8 @@&lt;br /&gt;  uint8_t ch = getch();&lt;br /&gt;  switch (ch) {&lt;br /&gt;  case '0': // signon&lt;br /&gt;-    empty_reply();&lt;br /&gt;+    if(! initSent) empty_reply();&lt;br /&gt;+    initSent = 1;&lt;br /&gt;    break;&lt;br /&gt;  case '1':&lt;br /&gt;    if (getch() == CRC_EOP) {&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;I applied the patch above manually and hurray I got a different error!&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Error2&lt;/b&gt;:&lt;br /&gt;&lt;pre&gt;Binary sketch size: 688 bytes (of a 8192 byte maximum)&lt;br /&gt;avrdude: stk500_getsync(): not in sync: resp=0x15&lt;br /&gt;avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85&lt;br /&gt;avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85&lt;br /&gt;&lt;br /&gt;avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x11&lt;br /&gt;avrdude: stk500_cmd(): programmer is out of sync&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;b&gt;Solution2&lt;/b&gt;:&lt;br /&gt;Get the following version of the ArduinoISP and apply the patch from solution 1 again.&lt;br /&gt;&lt;a href="http://mega-isp.googlecode.com/files/ArduinoISP.04.zip"&gt;http://mega-isp.googlecode.com/files/ArduinoISP.04.zip&lt;/a&gt;&lt;br /&gt;(found the solution &lt;a href="http://forums.adafruit.com/viewtopic.php?f=25&amp;amp;t=20290"&gt;here&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;My tiny is now happily blinking away, at last.&lt;br /&gt;&lt;a href="http://code.google.com/p/arduino/issues/detail?id=730"&gt;I sommer reported this as a bug too, so it may stand a chance of getting fixed.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-7578892965980467682?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/7578892965980467682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2011/11/my-quest-to-program-attiny85-with-my.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/7578892965980467682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/7578892965980467682'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2011/11/my-quest-to-program-attiny85-with-my.html' title='My quest to program a ATTiny85 with my Arduinon UNO using ISP'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-6987674894708367853</id><published>2011-11-26T12:34:00.000+02:00</published><updated>2011-11-26T12:34:08.999+02:00</updated><title type='text'>soldering 101 today</title><content type='html'>We had a cool &lt;a href="http://www.ptaisp.co.za/utils/howtosolder.pdf"&gt;soldering course&lt;/a&gt; at &lt;a href="http://www.house4hack.co.za/"&gt;house4hack&lt;/a&gt; today.&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-JDBWULi_DJI/TtDAK9tpbVI/AAAAAAAABAM/BJnqnM_oa_o/s1600/2011-11-26%2B12.00.27.jpg" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="300" width="400" src="http://3.bp.blogspot.com/-JDBWULi_DJI/TtDAK9tpbVI/AAAAAAAABAM/BJnqnM_oa_o/s400/2011-11-26%2B12.00.27.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;Even though I did some soldering before, I'm quite impressed by how much I improved today.(sorry for the fuzzy g1 photos)Before:&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/--PNfXyR-E0o/TtDAYax2hJI/AAAAAAAABAY/uDCfby3i1EQ/s1600/2011-11-26%2B11.58.02.jpg" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="246" width="400" src="http://2.bp.blogspot.com/--PNfXyR-E0o/TtDAYax2hJI/AAAAAAAABAY/uDCfby3i1EQ/s400/2011-11-26%2B11.58.02.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-6SdQpR1v0Bo/TtDAYfwamlI/AAAAAAAABAg/U-iZOzLr10w/s1600/2011-11-26%2B11.57.36.jpg" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="211" width="400" src="http://2.bp.blogspot.com/-6SdQpR1v0Bo/TtDAYfwamlI/AAAAAAAABAg/U-iZOzLr10w/s400/2011-11-26%2B11.57.36.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;After:&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-5OGyFeyFumM/TtDAYjZBhVI/AAAAAAAABAw/W3kj6mi71fo/s1600/2011-11-26%2B11.59.01.jpg" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="288" width="400" src="http://2.bp.blogspot.com/-5OGyFeyFumM/TtDAYjZBhVI/AAAAAAAABAw/W3kj6mi71fo/s400/2011-11-26%2B11.59.01.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-FC4KCXJQyYs/TtDAZYruhnI/AAAAAAAABA4/7vzyKR8eefY/s1600/2011-11-26%2B12.13.19.jpg" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="135" width="400" src="http://2.bp.blogspot.com/-FC4KCXJQyYs/TtDAZYruhnI/AAAAAAAABA4/7vzyKR8eefY/s400/2011-11-26%2B12.13.19.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-6987674894708367853?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/6987674894708367853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2011/11/soldering-101-today.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/6987674894708367853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/6987674894708367853'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2011/11/soldering-101-today.html' title='soldering 101 today'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-JDBWULi_DJI/TtDAK9tpbVI/AAAAAAAABAM/BJnqnM_oa_o/s72-c/2011-11-26%2B12.00.27.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-5994554447116101837</id><published>2011-11-16T18:36:00.000+02:00</published><updated>2011-11-16T18:36:25.127+02:00</updated><title type='text'>ORA-00001: unique constraint violated</title><content type='html'>(Pasted here for posterity so probably not an interesting read unless you actually have the same problem and found this while googling)One of my colleagues Leendert Visscher had this weird problem today with a Oracle+JPA+JBOSS getting a&lt;pre&gt;java.sql.BatchUpdateException: ORA-00001: unique constraint violated&lt;/pre&gt;&lt;BR/&gt;Even after making sure all the sequences were fine eg. like checking that quering a nexval and making sure it will not conflict with existing values, the error still persisted :(&lt;BR/&gt;&lt;BR/&gt;&lt;B&gt;The solution was to rebuild the index&lt;/B&gt;?!! FTW&lt;BR/&gt;&lt;BR/&gt;&lt;a href="http://www.dcm4che.org/jira/browse/DCMEE-885?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel"&gt;We found it after getting the hint while googling a bit.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-5994554447116101837?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/5994554447116101837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2011/11/ora-00001-unique-constraint-violated.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/5994554447116101837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/5994554447116101837'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2011/11/ora-00001-unique-constraint-violated.html' title='ORA-00001: unique constraint violated'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-2921284604399888233</id><published>2011-10-14T15:10:00.019+02:00</published><updated>2011-10-14T17:09:15.360+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='kindle'/><title type='text'>My kindle thoughts and experiences</title><content type='html'>&lt;div&gt;Lots of people at work asked me about this, so while I'm writing it down, I might as well blog it..&lt;/div&gt;&lt;div&gt;I bought a &lt;a href="http://www.amazon.com/gp/product/B002Y27P3M/ref=as_li_tf_tl?ie=UTF8&amp;amp;tag=amanica-20&amp;amp;linkCode=as2&amp;amp;camp=217145&amp;amp;creative=399373&amp;amp;creativeASIN=B002Y27P3M"&gt;Kindle Keyboard, Wi-Fi, 6" E Ink Display&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=amanica-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=B002Y27P3M&amp;amp;camp=217145&amp;amp;creative=399373" style="border: none !important; margin: 0px !important;" width="1" /&gt;for myself last year over Christmas - got it delivered for free to a contact in the US that came back to South Africa that time, saved +-R800.Last month I helped my grandma buy a &lt;a href="http://www.amazon.com/gp/product/B002GYWHSQ/ref=as_li_tf_tl?ie=UTF8&amp;amp;tag=amanica-20&amp;amp;linkCode=as2&amp;amp;camp=217145&amp;amp;creative=399373&amp;amp;creativeASIN=B002GYWHSQ"&gt;Kindle DX, Free 3G, 3G Works Globally, Graphite, 9.7" Display with New E Ink Pearl Technology&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=amanica-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=B002GYWHSQ&amp;amp;camp=217145&amp;amp;creative=399373" style="border: none !important; margin: 0px !important;" width="1" /&gt;- ordered it on the Monday got it on the Thursday +-R400 delivery (double that with import duty:( ).&lt;/div&gt;&lt;div&gt;Here are some of my opinions about what to buy.&lt;/div&gt;&lt;h2&gt;9"big DX vs 6"small&lt;/h2&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;6" - nice and portable - fits in your cargo-pants-pocket/purse/small bag&lt;/li&gt;&lt;li&gt;9" - better for reading pdfs - the letters are quite small on the 6" but if you rotate it 90 degrees it is still readable&lt;/li&gt;&lt;li&gt;9" - double the price for 2.5 times the screen area (IIRC) &lt;/li&gt;&lt;li&gt;Because my grandma is a bit visually impaired (mainly got it to listen to audio books from &lt;a href="http://audible.com/"&gt;audible.com&lt;/a&gt;) I made some adjustments to hopefully help her. We decided to get the bigger Kindle for her because it has ever so slightly bigger buttons, but they are better positioned and I could hack it a bit.&lt;a href="http://3.bp.blogspot.com/-WR-oNY0T3Kc/Tpg-8t9u0BI/AAAAAAAAA_k/pPUZonkF6iw/s1600/20111002T121308_visually_impared.JPG"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5663345744269987858" src="http://3.bp.blogspot.com/-WR-oNY0T3Kc/Tpg-8t9u0BI/AAAAAAAAA_k/pPUZonkF6iw/s400/20111002T121308_visually_impared.JPG" style="cursor: hand; cursor: pointer; display: block; height: 400px; margin: 0px auto 10px; text-align: center; width: 300px;" /&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;h2&gt;E-ink&lt;/h2&gt;&lt;div&gt;I would not buy something that does not say e-ink i.e. black&amp;amp;white, no backlight, can read in the sun, looks exactly like paper and is an absolute joy to read.&lt;/div&gt;&lt;h2&gt;&lt;a href="http://www.amazon.com/gp/product/B003DZ165W?ie=UTF8&amp;amp;tag=amanica-20&amp;amp;linkCode=xm2&amp;amp;camp=1789&amp;amp;creativeASIN=B003DZ165W"&gt;Leather cover with built-in light&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Its almost as expensive as the kindle itself.&lt;/li&gt;&lt;li&gt;Worth it in my opinion.&lt;/li&gt;&lt;li&gt;Uses the kindles own battery - never stuck with flat battery at the wrong time.&lt;/li&gt;&lt;li&gt;great for reading under the covers&lt;/li&gt;&lt;li&gt;With any cover you must be careful how you open it because if you open it on the wrong side you can crack your Kindle. I added some paper clamps and took off the levers for my grandma to avoid any nasty accidents (saw this tip on the interwebz): &lt;a href="http://3.bp.blogspot.com/-B3nfmNm82mk/Tpg56PJA9kI/AAAAAAAAA_Y/0CqerP-RLkw/s1600/20111001T170132_kindle_clamps.JPG"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5663340204077938242" src="http://3.bp.blogspot.com/-B3nfmNm82mk/Tpg56PJA9kI/AAAAAAAAA_Y/0CqerP-RLkw/s400/20111001T170132_kindle_clamps.JPG" style="cursor: hand; cursor: pointer; display: block; height: 361px; margin: 0px auto 10px; text-align: center; width: 400px;" /&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;a href="http://www.amazon.com/gp/product/B002GYWHSQ/ref=as_li_tf_tl?ie=UTF8&amp;amp;tag=amanica-20&amp;amp;linkCode=as2&amp;amp;camp=217145&amp;amp;creative=399373&amp;amp;creativeASIN=B002GYWHSQ"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;&lt;a href="http://www.amazon.com/gp/product/B002GYWHSQ/ref=as_li_tf_tl?ie=UTF8&amp;amp;tag=amanica-20&amp;amp;linkCode=as2&amp;amp;camp=217145&amp;amp;creative=399373&amp;amp;creativeASIN=B002GYWHSQ"&gt;Only buy from Amazon&lt;/a&gt;&lt;/h2&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=amanica-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=B002GYWHSQ&amp;amp;camp=217145&amp;amp;creative=399373" style="border: none !important; margin: 0px !important;" width="1" /&gt;&lt;div&gt;Local importers pay the same price as you do and then add commission &lt;/div&gt;&lt;h2&gt;Check the R/$ price before you buy&lt;/h2&gt;&lt;div&gt;The 2 times I checked the Dx prices it varied from +-R3800 to R4200, just after I bought it the R/$ rocketed up another 40cent which whould have been another R400!&lt;/div&gt;&lt;h2&gt;Buy international version if you are not in the US&lt;/h2&gt;&lt;div&gt;When I bought mine, I had to go to the special international kindle page, maybe that changed..&lt;/div&gt;&lt;h2&gt;3G or not?&lt;/h2&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;3G version is 40% more expensive :(&lt;/li&gt;&lt;li&gt;Its handy to be able to buy books over 3G when away from any ADSL with wirless.&lt;/li&gt;&lt;li&gt;I think 3G coverage is done by MTN in RSA, so if you have bad 3G reception where you live then maybe it is not worth it..&lt;/li&gt;&lt;li&gt;I'm not that sorry that I didn't go for the 3G one, because I do most of my syncing and buying from home in any case.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;h2&gt;FINALLY:&lt;/h2&gt;If you have not noticed it so far, I absolutely LOVE my kindle, I can almost not read anything else. Other cool features:&lt;br /&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Has awesome text-to-speach for books bought from Amazon (DRM:( .awz) and free (.mobi) books&lt;/li&gt;&lt;li&gt;Can play audio books bought from &lt;a href="http://audible.com/"&gt;audible.com&lt;/a&gt;, you can buy them directly from a wifi device but not from a 3G device!!?!&lt;/li&gt;&lt;li&gt;Can play mp3s for you in the background&lt;/li&gt;&lt;li&gt;Can play podcasts or mp3 audio books - just copy them into the audible folder on the device&lt;/li&gt;&lt;li&gt;Includes a free dictionary and you can look up any word while reading.&lt;/li&gt;&lt;li&gt;Make notes, bookmarks, underlinings (can even see commonly underlined stuff if you are too lazy to do it yourself:)&lt;/li&gt;&lt;li&gt;&lt;a href="http://calibre-ebook.com/"&gt;Calibre&lt;/a&gt; is the awesomest crossplatform e-book management tool ever! and works great with my Kindle.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-2921284604399888233?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/2921284604399888233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2011/10/my-kindle-thoughts-and-experiences.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/2921284604399888233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/2921284604399888233'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2011/10/my-kindle-thoughts-and-experiences.html' title='My kindle thoughts and experiences'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-WR-oNY0T3Kc/Tpg-8t9u0BI/AAAAAAAAA_k/pPUZonkF6iw/s72-c/20111002T121308_visually_impared.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-2821656275947730680</id><published>2011-09-21T00:36:00.006+02:00</published><updated>2011-09-21T01:39:48.490+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='colemak'/><category scheme='http://www.blogger.com/atom/ns#' term='Standing desk'/><title type='text'>I just could not sit it anymore</title><content type='html'>Len Weincier opened my eyes to the possibility of a standing desk a couple of months ago and I've been pondering it ever since.&lt;br /&gt;Recently I found myself in much pain when having to sit and work for extended periods of time (Since my baby son started sleeping in his own room about a month back I can't work in his room lying on my back any more).&lt;br /&gt;It is so distracting that I'd rather stop working and go to bed.&lt;br /&gt;&lt;br /&gt;Well tonight I could not sit it any more and I decided to try it out. I was thinking about all the things I'll need to move around if I want space in front of a wall in my study and how much work it will be, then it dawned on me I have everything I need to build a prototype and try it out.&lt;br /&gt;My standing desk version 1.0 (to my wife's dismay I'm sure when she sees this in the morning):&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/-2RzyNkfn9AA/TnkZZMvxTKI/AAAAAAAAA_I/I69uNwRBnaQ/s1600/2011-09-21%2B00.47.36.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 300px; height: 400px;" src="http://1.bp.blogspot.com/-2RzyNkfn9AA/TnkZZMvxTKI/AAAAAAAAA_I/I69uNwRBnaQ/s400/2011-09-21%2B00.47.36.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5654578727849381026" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/-hATAk7EmM4s/TnkZy0OTaUI/AAAAAAAAA_Q/ddpkzKNcJbI/s1600/2011-09-21%2B00.48.27.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 300px; height: 400px;" src="http://2.bp.blogspot.com/-hATAk7EmM4s/TnkZy0OTaUI/AAAAAAAAA_Q/ddpkzKNcJbI/s400/2011-09-21%2B00.48.27.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5654579167943158082" /&gt;&lt;/a&gt;&lt;br /&gt;Long-running preparations:&lt;br /&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Learned to touch type (with the help of learning to type using the &lt;a href="http://colemak.com/"&gt;Colemak keyboard layout&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;Got a proper usb keyboard to try this out.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;Next steps:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;I'm still &lt;a href="http://www.google.co.za/search?hl=af&amp;amp;newwindow=1&amp;amp;client=ubuntu&amp;amp;hs=WN0&amp;amp;channel=cs&amp;amp;q=standing+desks&amp;amp;btnG=Soek"&gt;googling&lt;/a&gt; to find out if its a good idea in the long term, but for now this seems much nicer.&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://smarterware.org/7102/how-and-why-i-switched-to-a-standing-desk"&gt;Why and How I Switched to a Standing Desk&lt;/a&gt; (some more awesome prototypes :)&lt;/li&gt;&lt;li&gt;&lt;a href="http://dvice.com/archives/2011/04/16-standing-des.php"&gt;17 standing desks that will help you live longer&lt;/a&gt; (even a walking desk :) I may even try this treadputers some day since I have a manual treadmill standing around)&lt;/li&gt;&lt;li&gt;&lt;a href="http://mashable.com/2011/04/22/standup-desks/"&gt;Are You Sitting Down? Why a Stand-Up Desk Might Save Your Life&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.treehugger.com/files/2010/02/are-standing-desks-healthier-than-sitting.php"&gt;Are Standing Desks Healthier Than Sitting?&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Get some stickers to put on the index finger home keys. I saw Gary van der Merwe had them and I think it will help me a lot because this new keyboard has really tiny dots for feeling the where your index fingers should go.&lt;/li&gt;&lt;li&gt;See if I can come up with a better design with a higher spouse approval factor. It would be cool to have something that can easily convert between standing and sitting to avoid over-standing it.&lt;/li&gt;&lt;li&gt;Get a LCD screen so I don't have to balance my laptop so tenderly.&lt;/li&gt;&lt;li&gt;I can already see that my touchtyping skills will go to a next level with this because my hands are now under my laptop and thus it is much harder to steel a quick glimps (especially for seldomly used keys)&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-2821656275947730680?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/2821656275947730680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2011/09/i-just-could-not-sit-it-anymore.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/2821656275947730680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/2821656275947730680'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2011/09/i-just-could-not-sit-it-anymore.html' title='I just could not sit it anymore'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-2RzyNkfn9AA/TnkZZMvxTKI/AAAAAAAAA_I/I69uNwRBnaQ/s72-c/2011-09-21%2B00.47.36.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-8073540303243352665</id><published>2011-08-18T03:40:00.005+02:00</published><updated>2011-08-18T03:53:52.507+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hibernate'/><category scheme='http://www.blogger.com/atom/ns#' term='JPA'/><title type='text'>JPA not instantiating mapped collections.</title><content type='html'>I struggled a while now to figure out why I am getting a NullPointerException&lt;br /&gt;when trying to access a mapped collection:&lt;br /&gt;&lt;pre&gt;@OneToMany(cascade = CascadeType.ALL, mappedBy = "cmTypedef")&lt;br /&gt;private List&lt;CmParamdef&gt; cmParamdefs;&lt;/pre&gt;&lt;br /&gt;I instantiated a object, then em.merge() it but still I got a NPE.&lt;br /&gt;I really thought that merge would populate all the fields.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then I tried to make it Eager:&lt;br /&gt;&lt;pre&gt;@OneToMany(cascade = CascadeType.ALL, mappedBy = "cmTypedef",&lt;br /&gt;   fetch = FetchType.EAGER) &lt;br /&gt;private List&lt;CmParamdef&gt; cmParamdefs = new ArrayList&lt;CmParamdef&gt;();&lt;br /&gt;&lt;/pre&gt;Still no luck :(&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So merge didn't do the trick, but trying everything I saw that if I do&lt;br /&gt;&lt;pre&gt;em.flush();&lt;br /&gt;em.refresh(ret);&lt;br /&gt;&lt;/pre&gt;after the merge, then like magic the collection is populated..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Finally I remember I had this issue before and the simple solution I have so far is &lt;br /&gt;to manually instantiate the collection:&lt;br /&gt;&lt;pre&gt;@OneToMany(cascade = CascadeType.ALL, mappedBy = "cmTypedef")&lt;br /&gt;private List&lt;CmParamdef&gt; cmParamdefs = new ArrayList&lt;CmParamdef&gt;();&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;I'm not sure if this is the best practice, but it works and is simple..&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-8073540303243352665?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/8073540303243352665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2011/08/jpa-not-instantiating-mapped.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8073540303243352665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8073540303243352665'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2011/08/jpa-not-instantiating-mapped.html' title='JPA not instantiating mapped collections.'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-3350165886987398903</id><published>2011-05-20T04:27:00.011+02:00</published><updated>2011-05-20T08:46:59.526+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Adsl'/><title type='text'>I cancelled my uncapped ADSL account at Afrihost today (ADSL in South Africa)</title><content type='html'>I'm being throttled so badly (down to +-7KBps on a 512kbps=80KBps line) that I had to turn on my prepaid account so I could view some web pages while downloading a couple of megs. I had to stop bittorrent too :( I only downloaded 40.9GB so far this month and I don't know why they need to throttle me after hours..&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/-O5TZqAUATB4/TdYFXCQv8DI/AAAAAAAAA-Q/3KMXDwOhW6M/s1600/Selection_008.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 269px;" src="http://4.bp.blogspot.com/-O5TZqAUATB4/TdYFXCQv8DI/AAAAAAAAA-Q/3KMXDwOhW6M/s400/Selection_008.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5608676279238783026" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Some other user experiences:&lt;br /&gt;&lt;a href="http://handshake.co.za/2011/uncapped-adsl-in-south-africa/"&gt;http://handshake.co.za/2011/uncapped-adsl-in-south-africa/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.carforums.co.za/viewtopic.php?f=5&amp;t=36411&amp;sid=4bfbaa0a65133fdee40f95c062a3208b"&gt;http://www.carforums.co.za/viewtopic.php?f=5&amp;t=36411&amp;sid=4bfbaa0a65133fdee40f95c062a3208b&lt;/a&gt;&lt;br /&gt;&lt;a href="http://mygaming.co.za/forum/showthread.php/13410-Axxess-vs-Afrihost"&gt;http://mygaming.co.za/forum/showthread.php/13410-Axxess-vs-Afrihost&lt;/a&gt;&lt;br /&gt;&lt;a href="http://mybroadband.co.za/vb/showthread.php/222441-Afrihost-Uncapped-Subscribers-Feedback/page82"&gt;http://mybroadband.co.za/vb/showthread.php/222441-Afrihost-Uncapped-Subscribers-Feedback/page82&lt;/a&gt;&lt;br /&gt;&lt;a href="http://mybroadband.co.za/vb/showthread.php/264071-Afrihost-uncapped-ADSL-account-move-why-it-was-done"&gt;http://mybroadband.co.za/vb/showthread.php/264071-Afrihost-uncapped-ADSL-account-move-why-it-was-done&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.bblounge.co.za/showthread.php?t=1563"&gt;http://www.bblounge.co.za/showthread.php?t=1563&lt;/a&gt;&lt;br /&gt;&lt;a href="http://forums.icreatehosting.co.za/viewtopic.php?f=13&amp;t=63"&gt;http://forums.icreatehosting.co.za/viewtopic.php?f=13&amp;t=63&lt;/a&gt;&lt;br /&gt;&lt;a href="http://mybroadband.co.za/vb/showthread.php/315785-so-far-Which-ISP-uncapped-is-the-best?p=5678667#post5678667"&gt;http://mybroadband.co.za/vb/showthread.php/315785-so-far-Which-ISP-uncapped-is-the-best?p=5678667#post5678667&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;That settled it, now I just had to decide: mweb or openweb?&lt;br /&gt;&lt;a href="http://mybroadband.co.za/vb/showthread.php/316473-Mweb-or-Openweb"&gt;http://mybroadband.co.za/vb/showthread.php/316473-Mweb-or-Openweb&lt;/a&gt;&lt;br /&gt;In the end I'm going for mweb because it is cheaper.&lt;br /&gt;&lt;br /&gt;Compare prices:&lt;br /&gt;&lt;a href="http://pcbunny.co.za/adsl/uncapped-data-only/"&gt;http://pcbunny.co.za/adsl/uncapped-data-only/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I see mweb throttles bittorrent quite badly :(&lt;br /&gt;&lt;a href="http://outsourcehouse.co.za/afrihost-vs-gamco-vs-mweb-vs-openweb-uncapped-adsl-south-africa/"&gt;http://outsourcehouse.co.za/afrihost-vs-gamco-vs-mweb-vs-openweb-uncapped-adsl-south-africa/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;MWEB Uncapped ADSL claims questioned&lt;br /&gt;&lt;a href="http://mybroadband.co.za/news/adsl/20086-MWEB-Uncapped-ADSL-claims-questioned.html"&gt;http://mybroadband.co.za/news/adsl/20086-MWEB-Uncapped-ADSL-claims-questioned.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I don't see much difference between the throttling of p2p stuff between mweb and afrihost:&lt;br /&gt;&lt;a href="http://wiki.vuze.com/mediawiki/index.php?title=Bad_ISPs#South_Africa"&gt;http://wiki.vuze.com/mediawiki/index.php?title=Bad_ISPs#South_Africa&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Bonus 1:&lt;/b&gt; You get 2 months free when signing up for 6 months at mweb:&lt;br /&gt;&lt;a href="http://www.mweb.co.za/productspricing/Get2MonthsFreeAdsl.aspx"&gt;http://www.mweb.co.za/productspricing/Get2MonthsFreeAdsl.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Bonus 2:&lt;/b&gt; Telkom are upgrading their 512kbps lines to 1024kbps lines for free:&lt;br /&gt;&lt;a href="http://mybroadband.co.za/news/adsl/20112-Telkom-ADSL-speed-upgrades-begin.html"&gt;http://mybroadband.co.za/news/adsl/20112-Telkom-ADSL-speed-upgrades-begin.html&lt;/a&gt;&lt;br /&gt;...mmmm maybe I should get the faster isp account too for an additional R70...&lt;br /&gt;(will need to double check that my line is in deed 1024kbps...)&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-3350165886987398903?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/3350165886987398903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2011/05/i-cancelled-my-uncapped-adsl-account-at.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3350165886987398903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3350165886987398903'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2011/05/i-cancelled-my-uncapped-adsl-account-at.html' title='I cancelled my uncapped ADSL account at Afrihost today (ADSL in South Africa)'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-O5TZqAUATB4/TdYFXCQv8DI/AAAAAAAAA-Q/3KMXDwOhW6M/s72-c/Selection_008.png' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-8356794352274522662</id><published>2011-05-09T03:17:00.003+02:00</published><updated>2011-05-09T22:33:57.922+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bazaar'/><category scheme='http://www.blogger.com/atom/ns#' term='sourceforge'/><title type='text'>Bazaar on sourceforge.net</title><content type='html'>&lt;div&gt;&lt;div&gt;(sorry if you get this twice, blogspot made it disappear..)&lt;br /&gt;&lt;br /&gt;I've bean looking for a place to host a modular project which is being version controlled with Bazaar. I would have loved to use Launchpad, but I can't because of the following:&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Launchpad only allows one level of branches (no hierarchy). My project is made up of a lot of sub-projects: I have a main branch which controls the sub-projects as &lt;a href="https://launchpad.net/bzr-externals"&gt;bzr-externals&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Launchpad does not have a nice project wiki or any custom web content.&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;I saw that sourceforge.net now supports Bazaar, but I was a bit worried when I saw on their &lt;a href="https://sourceforge.net/apps/trac/sourceforge/wiki/Bazaar"&gt;wiki&lt;/a&gt; that they only support Bazaar version 1.10 . It turns out that it is thankfully only an outdated doc: &lt;/div&gt;&lt;div&gt;&lt;pre&gt;[me@shell-21002 ~]$ bzr --version&lt;br /&gt;Bazaar (bzr) 2.1.1&lt;br /&gt;Python interpreter: /usr/bin/python 2.4.3&lt;br /&gt;Python standard library: /usr/lib64/python2.4&lt;br /&gt;Platform: Linux-2.6.18-...&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;(I don't seem to have rights to correct the wiki and I could not google the current version, so I'm documenting it here for you.)&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;I did test that I could upload nested branches. But unfortunately the code browsing tool on Sourceforge (loggerhead) does not display the nested branches :( Hopefully that is fixable..&lt;br /&gt;&lt;b&gt;Update:&lt;/b&gt; Alexandre Garnier kindly noted that there is a &lt;a href="https://bugs.launchpad.net/loggerhead/+bug/311513"&gt;bug report&lt;/a&gt; for it. &lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-8356794352274522662?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/8356794352274522662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2011/05/bazaar-on-sourceforgenet.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8356794352274522662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8356794352274522662'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2011/05/bazaar-on-sourceforgenet.html' title='Bazaar on sourceforge.net'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-5906133812088566180</id><published>2011-04-28T16:45:00.000+02:00</published><updated>2011-04-28T16:45:13.898+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Adsl'/><title type='text'>Uncapped 512 kbps ADSL...so liberating</title><content type='html'>Last week I decided I want faster internet so I upgraded my Telkom line to 512kbps (from 384kps) after a quick phone call and waiting a couple of days for the activation. In general my surfing experience didn't improve much but the odd download does come down much quicker, and concurrent downloads doesn't interfere that much with each other any more. I know people in other countries probably laugh at these oxwagon speeds in 2011, but c'mon this is Africa.&lt;br /&gt;&lt;br /&gt;I finally took the plunge last night and went over to uncapped internet. Afrihost makes for a great impulse buy since they charge pro-rata for the first month and have instant activation for existing customers. I don't think I'll ever &amp;nbsp;be able to go back. I'm already torrenting and and downloading big stuff like the latest ubuntu and XP service packs (for family m'kay you can't choose them..) that I usually would avoind or get through other means.&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-5906133812088566180?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/5906133812088566180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2011/04/uncapped-512-kbps-adslso-liberating.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/5906133812088566180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/5906133812088566180'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2011/04/uncapped-512-kbps-adslso-liberating.html' title='Uncapped 512 kbps ADSL...so liberating'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-4189264419743213276</id><published>2011-03-15T20:04:00.000+02:00</published><updated>2011-03-15T20:11:45.642+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>maven 3 - its time</title><content type='html'>After getting some weird issues with my builds I tried out maven 3 again to see if it magically fixed things. It didn't fix that issue, but I'm quite impressed with maven 3 so far:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;It can build subprojects in parallel which gives me quite a performance boost.&lt;/li&gt;&lt;li&gt;The other big thing for me is that "lots of bugs are fixed now",&amp;nbsp;which is a bit hard to measure right away but will probably ensure a&amp;nbsp;more enjoyable experience.&lt;/li&gt;&lt;/ul&gt;Richard Kolb asked for some benchmarks so here they are.&amp;nbsp;It is probably a lot more beneficial for my 17 module project to build it in parallel.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;It was done on my Intel i7 Q749 @ 1.73GHz with SSD&lt;/li&gt;&lt;li&gt;The second run of each hopefully avoids delays while "checking for updates"&amp;nbsp;&lt;/li&gt;&lt;li&gt;Java version: 1.6.0_24&lt;/li&gt;&lt;li&gt;OS name: "linux" version: "2.6.35-27-generic" arch: "amd64" Family: "unix"&lt;/li&gt;&lt;li&gt;It includes a GWT widget compile&amp;nbsp;&lt;/li&gt;&lt;li&gt;Ran &lt;tt&gt;mvn clean install&lt;/tt&gt;&amp;nbsp;in the maven reactor with 17 subprojects&lt;/li&gt;&lt;/ul&gt;== Apache Maven 2.2.1 (rdebian-4) ==&lt;br /&gt;4 minutes 15 seconds&lt;br /&gt;3 minutes 18 seconds&lt;br /&gt;3 minutes 22 seconds&lt;br /&gt;&lt;br /&gt;== Apache Maven 3.0.3 (r1075438; 2011-02-28 19:31:09+0200) (serial) ==&lt;br /&gt;3:34.911s&lt;br /&gt;3:14.637s&lt;br /&gt;&lt;br /&gt;=== apache-maven-3.0.3/bin/mvn -T6 clean install    (using 6 threads) ===&lt;br /&gt;2:23.427s&lt;br /&gt;2:23.224s&lt;br /&gt;&lt;br /&gt;=== apache-maven-3.0.3/bin/mvn -T6 clean install    (using 8 threads) ===&lt;br /&gt;2:22.137s&lt;br /&gt;2:19.600s&lt;br /&gt;&lt;br /&gt;so I save about a minute (or 28%) when runing thing in parallel&lt;br /&gt;&lt;br /&gt;I had to upgrade some maven plugins to allow things to be treadsafe with the help of this page:&lt;br /&gt;&lt;a href="https://cwiki.apache.org/MAVEN/parallel-builds-in-maven-3.html"&gt;https://cwiki.apache.org/MAVEN/parallel-builds-in-maven-3.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-4189264419743213276?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/4189264419743213276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2011/03/maven-3-its-time_15.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/4189264419743213276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/4189264419743213276'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2011/03/maven-3-its-time_15.html' title='maven 3 - its time'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-786994687447544539</id><published>2011-02-28T01:18:00.000+02:00</published><updated>2011-02-28T01:18:04.160+02:00</updated><title type='text'>Toshiba Qosmio X500-12V</title><content type='html'>I got my new lappy a couple of months ago, so I better post already or hold my peace.&lt;br /&gt;I'm quite impressed, although&amp;nbsp;I haven't tried to get everything working yet still need to play with multitouch and the fingerprint reader . Suspend to disk didn't work and I haven't tried to suspend to ram yet, but it is booting so fast that I don't really need that.&lt;br /&gt;&lt;br /&gt;I got a solid state and conventional harddrive, where the solid state disk performs about twice as good as the conventional one (was hoping for better, but it is ok).&lt;br /&gt;SSD: 152.64 MB/sec&lt;br /&gt;HDD:  89.22 MB/sec&lt;br /&gt;&lt;br /&gt;* I Managed to migrate my previous installation &amp;nbsp;(Ubuntu maverick) from my other laptop, moving around directories into special partitions (having most of the main os on the SSD but pointing /var/cache /var/log /var/tmp to the HDD)&lt;br /&gt;* I had to fight a bit with grub and X to get it to work on the new hardware, but it was worth it in the end.&lt;br /&gt;* I now get&amp;nbsp;much better wireless reception:). (previously my connection died all the time:(&lt;br /&gt;* The nvidia drivers works nicely which makes desktop effects work well - I can invert my desktop colours at last!&lt;br /&gt;* Vista in a virtualbox works seamlessly for me now.&lt;br /&gt;* bzr tests runs in 5 minutes now in stead of 18.&lt;br /&gt;* gwt extensions&amp;nbsp;compile in a minute now and does not lock up my laptop; previously it ran for over 5 minutes during which I could barely read e-mail because the system was so busy.&lt;br /&gt;* Eclipse starts and stops a LOT quicker yay!&lt;br /&gt;* Sound is really good (with the 3 watt harman/kardon 1by3's).&lt;br /&gt;* Got the card reader working with some tweaking:&lt;br /&gt;&lt;a href="http://ubuntuforums.org/showthread.php?p=10302581"&gt;http://ubuntuforums.org/showthread.php?p=10302581&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-786994687447544539?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/786994687447544539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2011/02/toshiba-qosmio-x500-12v.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/786994687447544539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/786994687447544539'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2011/02/toshiba-qosmio-x500-12v.html' title='Toshiba Qosmio X500-12V'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-1818596888598083706</id><published>2010-12-11T13:17:00.000+02:00</published><updated>2010-12-12T17:53:41.137+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>cleaning frequency of /tmp and /var/tmp</title><content type='html'>/tmp normally gets cleared after every reboot on ubuntu which is a bit quick for me. For example I sometimes want to save a screenshot and maybe quickly edit it and e-mail it, but I don't want to loose it if my system reboots for whatever reason (including forgetting that I was busy with something).&lt;br /&gt;It turns out that you can set how long to keep stuff in /tmp by setting TMPTIME in /etc/default/rcS to the number of days to keep stuff (I'm going for 7days now).&lt;br /&gt;&lt;a href="http://linuxers.org/article/differences-between-tmp-and-vartmp"&gt;http://linuxers.org/article/differences-between-tmp-and-vartmp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Apparently you normally should put temp stuff you want to keep a bit longer in /var/tmp [1] but that does not seem to get cleared out regularly.&lt;br /&gt;So I made a weekly cronjob to clean out stuff older than 60 days:&lt;t&gt;/etc/cron.weekly/clean_var_tmp.sh&lt;/t&gt; &lt;br /&gt;&lt;pre&gt;#!/bin/bash&lt;br /&gt;days=60&lt;br /&gt;tmpdir=/var/tmp/&lt;br /&gt;find -P ${tmpdir} -type f -mtime +$days        -exec su amanica -c "notify-send 'weekly clean ${tmpdir}' 'rm {}'" \; -exec rm {} \;&lt;br /&gt;find -P ${tmpdir} -type d -mtime +$days -empty -exec su amanica -c "notify-send 'weekly clean ${tmpdir}' 'rm {}'" \; -exec rm -r {} \;&lt;/pre&gt;&lt;br /&gt;&lt;a href="http://ubuntu-virginia.ubuntuforums.org/showthread.php?t=1524077"&gt;http://ubuntu-virginia.ubuntuforums.org/showthread.php?t=1524077&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://www.pathname.com/fhs/2.2/fhs-5.15.html"&gt;http://www.pathname.com/fhs/2.2/fhs-5.15.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-1818596888598083706?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/1818596888598083706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2010/12/cleaning-frequency-of-tmp-and-vartmp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/1818596888598083706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/1818596888598083706'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2010/12/cleaning-frequency-of-tmp-and-vartmp.html' title='cleaning frequency of /tmp and /var/tmp'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-7727795161734660368</id><published>2010-10-27T01:27:00.000+02:00</published><updated>2010-10-27T01:27:09.782+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JPA'/><title type='text'>@Entity(name != table_name !!!</title><content type='html'>&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Normally if you get "org.hibernate.hql.ast.QuerySyntaxException: &lt;table_name&gt; is not mapped" then you used the table name in stead of the class name. In my case I'm ashamed to admit,&amp;nbsp;&lt;/table_name&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;I though setting @Entity(name is setting the table name,&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;where in fact it is setting the JPQL alias!&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;I thought it was weird that you can set that and the @Table(name .&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;@Entity(name != table_name !!!&lt;br /&gt;@Entity(name != table_name !!!&lt;br /&gt;@Entity(name != table_name !!!&lt;br /&gt;@Entity(name != table_name !!!&lt;br /&gt;@Entity(name != table_name !!!&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;@Entity(name != table_name !!!&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;@Entity(name != table_name !!!&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;@Entity(name != table_name !!!&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;@Entity(name != table_name !!!&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;@Entity(name != table_name !!!&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Thanks Matt Raible for showing me the light:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;If you specify a name value for your @Entity annotation (for example&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;@Entity(name="person")), this will be the alias for HQL queries. If you&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;don't specify this value, the name will match the short name of your class (&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Person). If you want to change the table name that's generated, use the&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;@Table&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;(&lt;a href="http://java.sun.com/javaee/5/docs/api/javax/persistence/Table.html" rel="nofollow" style="color: #006792;"&gt;http://java.sun.com/javaee/5/docs/api/javax/persistence/Table.html&lt;/a&gt;)&amp;nbsp;annotation&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;with a "name" value.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;a href="http://www.mail-archive.com/users@appfuse.dev.java.net/msg18164.html"&gt;http://www.mail-archive.com/users@appfuse.dev.java.net/msg18164.html&lt;/a&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-7727795161734660368?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/7727795161734660368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2010/10/entityname-tablename.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/7727795161734660368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/7727795161734660368'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2010/10/entityname-tablename.html' title='@Entity(name != table_name !!!'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-32933913736007958</id><published>2010-10-19T14:08:00.000+02:00</published><updated>2010-10-19T14:08:27.363+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hibernate'/><category scheme='http://www.blogger.com/atom/ns#' term='Icefaces'/><title type='text'>IncompatibleClassChangeError: Implementing class</title><content type='html'>In my case this was caused by incompatible versions of hibernate in the classpath...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;2010-10-19 12:40:32,271:ERROR &amp;nbsp; Problem encountered during View.servePage &amp;nbsp; &amp;nbsp; &amp;nbsp; - com.icesoft.faces.context.View&lt;br /&gt;java.lang.IncompatibleClassChangeError: Implementing class&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.defineClass1(Native Method)&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.defineClass(ClassLoader.java:616)&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:983)&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1501)&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at za.co.enerweb.nampower.report.hibernate.HibernateSessionFactory.&lt;clinit&gt;(HibernateSessionFactory.java:60)&lt;/clinit&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-32933913736007958?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/32933913736007958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2010/10/incompatibleclasschangeerror.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/32933913736007958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/32933913736007958'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2010/10/incompatibleclasschangeerror.html' title='IncompatibleClassChangeError: Implementing class'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-5507206525800495545</id><published>2010-10-13T17:16:00.000+02:00</published><updated>2010-10-13T17:16:38.742+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bazaar'/><category scheme='http://www.blogger.com/atom/ns#' term='Laptops'/><title type='text'>Overheating laptop</title><content type='html'>A couple of weeks ago I could reliably get my &lt;a href="http://bit.ly/cKO9jR"&gt;laptop&lt;/a&gt; to overheat by just running the &lt;a href="http://bazaar.canonical.com/en/"&gt;bazaar&lt;/a&gt; unit tests. &lt;br /&gt;&lt;br /&gt;By googling I found that it could help to &lt;a href="http://bit.ly/djDTcS"&gt;clean out the fan&lt;/a&gt;,&lt;br /&gt;so I opened it a bit but gave up because I didn't have time to open it up completely.&lt;br /&gt;&lt;br /&gt;Recently it got much worse, I could not even open &lt;a href="http://www.eclipse.org/home/newcomers.php"&gt;eclipse&lt;/a&gt; without having a &lt;a href="http://ucables.com/img/pics1/CORNELL-TABLE-FAN-CFN-R68082.jpg"&gt;household fan&lt;/a&gt; directed at my laptop.&lt;br /&gt;&lt;br /&gt;I decided today is the day. I had to remove about 30 screws and the processing unit heat sinks to get at them little radiators. They were a bit &lt;a href="http://bit.ly/9ee8VX"&gt;filthy&lt;/a&gt; of coarse, but its all cleaned now. I had to file off 1mm of a 3mm flat screwdriver bit so that I can unscrew about 11 2mm hexagonal screws.. . One screw got lost somewhere, I hope its not stuck somewhere where it can cause problems - that must be what doctors think if they are missing something after performing&amp;nbsp;surgery.&lt;br /&gt;&lt;br /&gt;It seems much better now, the fan doesn't even come on so often any more.&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-5507206525800495545?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/5507206525800495545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2010/10/overheating-laptop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/5507206525800495545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/5507206525800495545'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2010/10/overheating-laptop.html' title='Overheating laptop'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-3915752782144888041</id><published>2010-10-12T13:26:00.000+02:00</published><updated>2010-10-12T13:26:38.822+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JPA'/><title type='text'>inconsistent datatypes with JPA.. eish</title><content type='html'>I've been having some weird errors with JPA eg.&lt;br /&gt;(pasted here so you can find it with google)&lt;br /&gt;&lt;pre&gt;==&lt;br /&gt;INFO - batching 1 statements: 1: insert into dds.DDS_EMAIL_STATUS (DOC_REGISTER_ID, EMAIL_ADDRESS_FROM,&lt;br /&gt;EMAIL_ADDRESS_TO, LAST_UPDATE_TIME, MESSAGE_ID, SEND_DATETIME, STATUS_ID, SUBJECT, DDS_EMAIL_STATUS_ID)&lt;br /&gt;values (1001, 'dds-test@example.com', 'test@example.com', to_date('10/12/2010 12:41:05', 'mm/dd/yyyy&lt;br /&gt;hh24:mi:ss'), NULL, to_date('10/12/2010 12:41:05', 'mm/dd/yyyy hh24:mi:ss'), 0, 'testSend',&lt;br /&gt;800)  {executed in 4 msec}&lt;br /&gt;INFO - executeBatch()&lt;br /&gt;ERROR - 2. PreparedStatement.executeBatch() batching 2 statements:&lt;br /&gt;1:  insert into dds.DDS_EMAIL_STATUS_LOG (DATE_TIME, DDS_EMAIL_STATUS_ID, MESSAGE, DDS_EMAIL_STATUS_LOG_ID) values (to_date('10/12/2010 12:41:05', 'mm/dd/yyyy hh24:mi:ss'), '&lt;byte[]&gt;', 'html body:&lt;br /&gt;html body', 750)&lt;br /&gt;java.sql.BatchUpdateException: ORA-00932: inconsistent datatypes: expected NUMBER got BINARY&lt;br /&gt;    at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:343)&lt;br /&gt;    at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10720)&lt;br /&gt;    at net.sf.log4jdbc.StatementSpy.executeBatch(StatementSpy.java:523)&lt;br /&gt;    at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)&lt;br /&gt;    at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)&lt;br /&gt;    at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)&lt;br /&gt;    at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)&lt;br /&gt;    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)&lt;br /&gt;    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)&lt;br /&gt;    at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)&lt;br /&gt;    at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)&lt;br /&gt;    at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)&lt;br /&gt;    at org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:304)&lt;br /&gt;    at org.apache.openejb.persistence.JtaEntityManager.flush(JtaEntityManager.java:130)&lt;br /&gt;==&lt;br /&gt;java.sql.SQLException: incompatible data types in combination in statement [alter table DDS_EMAIL_STATUS_LOG add constraint FKB7F2A8E6BAAD6FBB foreign key (DDS_EMAIL_STATUS_ID) references DDS_EMAIL_STATUS]&lt;br /&gt; at org.hsqldb.jdbc.Util.sqlException(Unknown Source)&lt;br /&gt; at org.hsqldb.jdbc.JDBCStatement.fetchResult(Unknown Source)&lt;br /&gt; at org.hsqldb.jdbc.JDBCStatement.executeUpdate(Unknown Source)&lt;br /&gt; at net.sf.log4jdbc.StatementSpy.executeUpdate(StatementSpy.java:694)&lt;br /&gt; at org.apache.commons.dbcp.DelegatingStatement.executeUpdate(DelegatingStatement.java:228)&lt;br /&gt; at org.apache.commons.dbcp.DelegatingStatement.executeUpdate(DelegatingStatement.java:228)&lt;br /&gt; at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:383)&lt;br /&gt; at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:341)&lt;br /&gt; at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:262)&lt;br /&gt; at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:211)&lt;br /&gt; at org.hibernate.impl.SessionFactoryImpl.&lt;init&gt;(SessionFactoryImpl.java:343)&lt;br /&gt; at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)&lt;br /&gt; at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)&lt;br /&gt; at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)&lt;br /&gt;...&lt;br /&gt;Caused by: org.hsqldb.HsqlException: incompatible data types in combination&lt;br /&gt; at org.hsqldb.error.Error.error(Unknown Source)&lt;br /&gt; at org.hsqldb.error.Error.error(Unknown Source)&lt;br /&gt; at org.hsqldb.Table.checkColumnsMatch(Unknown Source)&lt;br /&gt; at org.hsqldb.TableWorks.checkCreateForeignKey(Unknown Source)&lt;br /&gt; at org.hsqldb.TableWorks.addForeignKey(Unknown Source)&lt;br /&gt; at org.hsqldb.ParserDDL.processAlterTableAddForeignKeyConstraint(Unknown Source)&lt;br /&gt; at org.hsqldb.ParserDDL.processAlterTable(Unknown Source)&lt;br /&gt; at org.hsqldb.ParserDDL.processAlter(Unknown Source)&lt;br /&gt; at org.hsqldb.StatementSchema.getResult(Unknown Source)&lt;br /&gt; at org.hsqldb.StatementSchema.execute(Unknown Source)&lt;br /&gt; at org.hsqldb.Session.executeCompiledStatement(Unknown Source)&lt;br /&gt; at org.hsqldb.Session.executeDirectStatement(Unknown Source)&lt;br /&gt; at org.hsqldb.Session.execute(Unknown Source)&lt;br /&gt;==&lt;br /&gt;javax.persistence.PersistenceException: org.hibernate.type.SerializationException: could not deserialize&lt;br /&gt;    at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)&lt;br /&gt;    at org.hibernate.ejb.AbstractEntityManagerImpl.remove(AbstractEntityManagerImpl.java:259)&lt;br /&gt;    at org.apache.openejb.persistence.JtaEntityManager.remove(JtaEntityManager.java:107)&lt;br /&gt;==&lt;br /&gt;1:  update DDS_EMAIL_STATUS_LOG set DATE_TIME='10/12/2010 13:11:54.206', DDS_EMAIL_STATUS_ID='&lt;byte[]&gt;', MESSAGE='text body:&lt;br /&gt;text body' where DDS_EMAIL_STATUS_LOG_ID=1 {FAILED after 0 msec}&lt;br /&gt;java.sql.BatchUpdateException: data exception: string data, right truncation&lt;br /&gt; at org.hsqldb.jdbc.JDBCPreparedStatement.executeBatch(Unknown Source)&lt;br /&gt; at net.sf.log4jdbc.StatementSpy.executeBatch(StatementSpy.java:523)&lt;br /&gt; at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)&lt;br /&gt; at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)&lt;br /&gt; at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)&lt;br /&gt; at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)&lt;br /&gt; at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)&lt;br /&gt; at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)&lt;br /&gt;==&lt;br /&gt;&lt;/byte[]&gt;&lt;/init&gt;&lt;/byte[]&gt;&lt;/pre&gt;I tried different databases because it looked to me like the hsqldb is getting a bit confused with the column order. But in the end it turned out that I made a bit of a mistake:&lt;br /&gt;I converted an embedded complex primary key to have a generated Id. In stead of annotating the referenced object with a &lt;tt&gt;@ManyToOne(optional = false)&lt;/tt&gt;&lt;br /&gt;it was still using &lt;tt&gt;@Column(name = "DDS_EMAIL_STATUS_ID")&lt;/tt&gt;. After much debugging, googling and figuring out how to print the actual sql using &lt;a href="http://code.google.com/p/log4jdbc-remix/"&gt;http://code.google.com/p/log4jdbc-remix/&lt;/a&gt; I figured out that I neglegted to change &lt;tt&gt;@Column&lt;/tt&gt; to &lt;tt&gt;@ManyToOne&lt;/tt&gt;.&lt;br /&gt;&lt;br /&gt;Why is nothing ever easy ;-P&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-3915752782144888041?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/3915752782144888041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2010/10/inconsistent-datatypes-with-jpa-eish.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3915752782144888041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3915752782144888041'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2010/10/inconsistent-datatypes-with-jpa-eish.html' title='inconsistent datatypes with JPA.. eish'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-8024709391792446609</id><published>2010-10-02T23:36:00.000+02:00</published><updated>2010-10-02T23:36:05.071+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Eclipse'/><category scheme='http://www.blogger.com/atom/ns#' term='Tomcat'/><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>eclipse + tomcat + maven pain again</title><content type='html'>Banging my head against the wall again today&lt;br /&gt;because my app just does not want to start up :'(&lt;br /&gt;Between eclipse, tomcat and maven my classpath was messed up, getting all sorts of exceptions like NoClassDefFoundError etc.&lt;br /&gt;&lt;br /&gt;Finally I figured out again that for each project involved you have to check "Maven Dependencies"&lt;br /&gt;in the "Order and Export" tab of the Java build path settings.&lt;br /&gt;Then when you tell tomcat to include these projects,&lt;br /&gt;it will actually include it and its dependencies.&lt;br /&gt;&lt;br /&gt;I'm not sure how this got lost because my app used to work. Maybe when I imported the same project in&lt;br /&gt;another workspace that got reset :(&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-8024709391792446609?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/8024709391792446609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2010/10/eclipse-tomcat-maven-pain-again.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8024709391792446609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8024709391792446609'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2010/10/eclipse-tomcat-maven-pain-again.html' title='eclipse + tomcat + maven pain again'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-6788605281132308489</id><published>2010-09-07T23:58:00.000+02:00</published><updated>2010-09-07T23:58:45.417+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>cannot execute binary file</title><content type='html'>I had this really weird issue on Ubuntu:&lt;br /&gt;* An executable works fine on my laptop.&lt;br /&gt;* Then I &lt;tt&gt;scp&lt;/tt&gt; it to the server.&lt;br /&gt;* On the server I get the following error messsage: "&lt;tt&gt;cannot execute binary file&lt;/tt&gt;"&lt;br /&gt;* So after some googling I found: &lt;pre&gt;You are probably trying to run a 64-bit [executable] on a 32-bit Linux system...&lt;/pre&gt;&lt;a href="http://www.kods.net/transferred-to-install-oracle-9i-in-linux-the-whole-document/"&gt;http://www.kods.net/transferred-to-install-oracle-9i-in-linux-the-whole-document/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Go figure. I've been so spoiled with java and python, that I forget there are still things you need to compile for the platform you want to run it on...&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-6788605281132308489?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/6788605281132308489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2010/09/cannot-execute-binary-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/6788605281132308489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/6788605281132308489'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2010/09/cannot-execute-binary-file.html' title='cannot execute binary file'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-2974406613135352853</id><published>2010-08-23T19:37:00.000+02:00</published><updated>2010-08-23T23:31:43.530+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='archiva'/><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>Archiva gives the maven site plugin an invalid site_en.xml</title><content type='html'>I got the following nasty error since friday:&lt;pre&gt;&lt;br /&gt;$ mvn -U -e -X clean site&lt;br /&gt;...&lt;br /&gt;[DEBUG] Reading site descriptor from /home/amanica/.m2/repository/za/co/my_company/super-pom/1.0.3/super-pom-1.0.3-site_en.xml&lt;br /&gt;[INFO] ------------------------------------------------------------------------&lt;br /&gt;[ERROR] BUILD ERROR&lt;br /&gt;[INFO] ------------------------------------------------------------------------&lt;br /&gt;[INFO] SiteToolException: Error parsing site descriptor&lt;br /&gt;&lt;br /&gt;Expected root element 'project' but found 'html' (position: START_TAG seen ... Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;\r\n&amp;lt;html&gt;... @8:7)&lt;br /&gt;[INFO] ------------------------------------------------------------------------&lt;br /&gt;[DEBUG] Trace&lt;br /&gt;org.apache.maven.lifecycle.LifecycleExecutionException: SiteToolException: Error parsing site descriptor&lt;br /&gt;        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)&lt;br /&gt;        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)&lt;br /&gt;        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)&lt;br /&gt;        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)&lt;br /&gt;        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)&lt;br /&gt;        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)&lt;br /&gt;        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)&lt;br /&gt;        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)&lt;br /&gt;        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)&lt;br /&gt;        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)&lt;br /&gt;        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br /&gt;        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;br /&gt;        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;br /&gt;        at java.lang.reflect.Method.invoke(Method.java:597)&lt;br /&gt;        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)&lt;br /&gt;        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)&lt;br /&gt;        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)&lt;br /&gt;        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)&lt;br /&gt;Caused by: org.apache.maven.plugin.MojoExecutionException: SiteToolException: Error parsing site descriptor&lt;br /&gt;        at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.createSiteRenderingContext(AbstractSiteRenderingMojo.java:232)&lt;br /&gt;        at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:137)&lt;br /&gt;        at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:120)&lt;br /&gt;        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)&lt;br /&gt;        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)&lt;br /&gt;        ... 17 more&lt;br /&gt;Caused by: org.apache.maven.doxia.tools.SiteToolException: Error parsing site descriptor&lt;br /&gt;        at org.apache.maven.doxia.tools.DefaultSiteTool.readDecorationModel(DefaultSiteTool.java:1298)&lt;br /&gt;        at org.apache.maven.doxia.tools.DefaultSiteTool.getDecorationModel(DefaultSiteTool.java:1252)&lt;br /&gt;        at org.apache.maven.doxia.tools.DefaultSiteTool.getDecorationModel(DefaultSiteTool.java:1260)&lt;br /&gt;        at org.apache.maven.doxia.tools.DefaultSiteTool.getDecorationModel(DefaultSiteTool.java:511)&lt;br /&gt;        at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.createSiteRenderingContext(AbstractSiteRenderingMojo.java:225)&lt;br /&gt;        ... 21 more&lt;br /&gt;Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: Expected root element 'project' but found 'html' (position: START_TAG seen ... Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;\r\n&amp;lt;html&gt;... @8:7)&lt;br /&gt;        at org.apache.maven.doxia.site.decoration.io.xpp3.DecorationXpp3Reader.parseDecorationModel(DecorationXpp3Reader.java:619)&lt;br /&gt;        at org.apache.maven.doxia.site.decoration.io.xpp3.DecorationXpp3Reader.read(DecorationXpp3Reader.java:1387)&lt;br /&gt;        at org.apache.maven.doxia.site.decoration.io.xpp3.DecorationXpp3Reader.read(DecorationXpp3Reader.java:1401)&lt;br /&gt;        at org.apache.maven.doxia.tools.DefaultSiteTool.readDecorationModel(DefaultSiteTool.java:1294)&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;It turns out that maven looks for a site_en.xml for my parent project on archiva and archiva seems to generate a return file which is actually an error message. &lt;br /&gt;The maven site plugin then tries to parse it and fails horribly :(&lt;br /&gt;&lt;b&gt;I worked around this by just adding the following content to &lt;tt&gt;src/site/site_en.xml&lt;/tt&gt; in my parent project and everything was well!&lt;/b&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;br /&gt;&amp;lt;project xmlns="http://maven.apache.org/DECORATION/1.0.0"&lt;br /&gt;    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&lt;br /&gt;    xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd"&gt;&lt;br /&gt;  &amp;lt;body&gt;&lt;br /&gt;  &amp;lt;/body&gt;&lt;br /&gt;&amp;lt;/project&gt;&lt;br /&gt;&lt;/pre&gt;&lt;hr&gt;&lt;br /&gt;I got really frustrated by this cryptic error message. I wanted to bash my head against the table and throw my laptop against the wall. Instead I cried out to God and not long after that I figured it out. Some would say thats just coincidence, I say: "Thank God", "Praise God" and "Why didn't I ask You sooner?".&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-2974406613135352853?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/2974406613135352853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2010/08/archiva-gives-maven-site-plugin-invalid.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/2974406613135352853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/2974406613135352853'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2010/08/archiva-gives-maven-site-plugin-invalid.html' title='Archiva gives the maven site plugin an invalid site_en.xml'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-2164701608622624381</id><published>2010-08-20T14:39:00.000+02:00</published><updated>2010-08-23T20:17:37.311+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Chromium'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Chromium happy again</title><content type='html'>After getting the message below on each chromium start for months, I finally googled it:&lt;pre&gt;&lt;br /&gt;Your profile could not be opened correctly.&lt;br /&gt;Some features may be unavailable.  &lt;br /&gt;Please check that the profile exists and you have permission to read and write its contents.&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The solution for me was simple:&lt;br /&gt;&lt;pre&gt;rm ~/.config/chromium/Default/History&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;I can't believe I suffered so long with a broken awesomebar which never found new history :(&lt;br /&gt;Previously I assumed its something broken in chromium that would get fixed by a newer Ubuntu packages. The fix never came so I'm really happy that I finally found the solution today:&lt;br /&gt;&lt;a href="http://etano.net/2010/01/25/chromium-your-profile-could-not-be-opened-correctly/"&gt;see Ariel's solution.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-2164701608622624381?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/2164701608622624381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2010/08/chromium-happy-again.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/2164701608622624381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/2164701608622624381'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2010/08/chromium-happy-again.html' title='Chromium happy again'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-1288173408276684497</id><published>2010-06-28T16:52:00.000+02:00</published><updated>2010-06-28T16:58:33.411+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hudson'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>Apache url filtering corrupts compressed output.</title><content type='html'>While trying to set up Hudson behind apache again, I kept on getting garbage out.&lt;br /&gt;After some googling I realized Hudson compress its output, therefore you can not use the normal proxy-html filter to modify urls coming from hudson:&lt;pre&gt;SetOutputFilter proxy-html&lt;/pre&gt;Instead you can use the following:&lt;pre&gt;SetOutputFilter INFLATE;proxy-html;DEFLATE&lt;br /&gt;ProxyHTMLURLMap http://your_server:8080/hudson /hudson&lt;/pre&gt;&lt;a href="http://wiki.uniformserver.com/index.php/Reverse_Proxy_Server_2:_mod_proxy_html_2"&gt;http://wiki.uniformserver.com/index.php/Reverse_Proxy_Server_2:_mod_proxy_html_2&lt;/a&gt;&lt;br /&gt;But since hudson seems to be well behaved it even better to just not use SetOutputFilter and ProxyHTMLURLMap.&lt;br /&gt;&lt;a href="http://wiki.hudson-ci.org/display/HUDSON/Running+Hudson+behind+Apache"&gt;&lt;br /&gt;http://wiki.hudson-ci.org/display/HUDSON/Running+Hudson+behind+Apache&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-1288173408276684497?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/1288173408276684497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2010/06/apache-url-filtering-corrupts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/1288173408276684497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/1288173408276684497'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2010/06/apache-url-filtering-corrupts.html' title='Apache url filtering corrupts compressed output.'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-422920619511771785</id><published>2010-06-24T10:35:00.000+02:00</published><updated>2010-06-24T12:26:45.087+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wine'/><category scheme='http://www.blogger.com/atom/ns#' term='IE7'/><category scheme='http://www.blogger.com/atom/ns#' term='Internet Explorer 7'/><category scheme='http://www.blogger.com/atom/ns#' term='Lucid'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Internet Explorer 7 with Wine</title><content type='html'>After searching a lot and trying some recipes, the following worked beautifully for me  to install Internet Explorer 7 on ubuntu 10.04 (lucid)&lt;br /&gt;&lt;a href="http://rkpisanu.altervista.org/doku.php?id=wineie7eng#internet_explorer_7_with_wine"&gt;http://rkpisanu.altervista.org/doku.php?&lt;br /&gt;id=wineie7eng#internet_explorer_7_with_wine&lt;/a&gt;&lt;br /&gt;(I changed the last step to get it to work for me, because its installed in your home dir, not in your current dir)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Download dependencies:&lt;/b&gt;&lt;br /&gt; sudo apt-get install wine cabextract&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Download and run IE4WINE:&lt;/b&gt;&lt;br /&gt;Warning: All wine program running must be closed before install and run IE4WINE &lt;br /&gt; wget http://rkpisanu.altervista.org/download/ie4wine&lt;br /&gt; chmod +x ./ie4wine&lt;br /&gt; ./ie4wine&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Finally:&lt;/b&gt;&lt;br /&gt;type &lt;tt&gt;~/wineie7&lt;/tt&gt; (Stable Version ) &lt;br /&gt;type &lt;tt&gt;~/wineie7https&lt;/tt&gt; (Unstable Version with https support)&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-422920619511771785?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/422920619511771785/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2010/06/internet-explorer-7-with-wine.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/422920619511771785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/422920619511771785'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2010/06/internet-explorer-7-with-wine.html' title='Internet Explorer 7 with Wine'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-3331327659496417044</id><published>2010-06-24T01:30:00.000+02:00</published><updated>2010-06-24T01:42:17.233+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Archiva GlassFish Derby'/><title type='text'>Archiva On GlassFish with Derby</title><content type='html'>I added the following to the archiva wiki, but keeping a copy here for reference and backup.&lt;br /&gt;&lt;a href="https://cwiki.apache.org/confluence/display/ARCHIVA/Archiva+On+GlassFish+with+Derby"&gt;https://cwiki.apache.org/confluence/display/ARCHIVA/Archiva+On+GlassFish+with+Derby&lt;/a&gt;&lt;br /&gt;(based on &lt;a href="https://cwiki.apache.org/confluence/display/ARCHIVA/Archiva+on+GlassFish+with+mySQL"&gt;https://cwiki.apache.org/confluence/display/ARCHIVA/Archiva+on+GlassFish+with+mySQL&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;&lt;h2&gt;Glassfish web configuration&lt;/h2&gt;&lt;br /&gt;Deploy the war file on your Glassfish server from the admin page (http://localhost:4848).&lt;br /&gt;Or copy the the war file into your &amp;lt;GLASSFISH_FOLDER&gt;/domains/domain1/autodeploy/archiva.war&lt;br /&gt;Glassfish file configuration&lt;br /&gt;Edit the file &amp;lt;GLASSFISH_FOLDER&gt;/domains/domain1/config/domain.xml to add the following tags:&lt;br /&gt;&lt;br /&gt;Go to Ressources -&gt; JavaMail Sessions and create a new ressource with jndi-name='mail/Session', otherwise you will get "Error creating bean with name 'mailSession'" on startup. Or add it to the config file:&lt;pre&gt;&lt;br /&gt;...&lt;br /&gt;&amp;lt;resources&gt;&lt;br /&gt;    &amp;lt;mail-resource from="me@email.example.com" host="email.example.com" jndi-name="mail/Session" object-type="user"&lt;br /&gt;        store-protocol="imap" store-protocol-class="com.sun.mail.imap.IMAPStore" &lt;br /&gt;        transport-protocol="smtp" transport-protocol-class="com.sun.mail.smtp.SMTPTransport" &lt;br /&gt;        user="me"/&gt;&lt;br /&gt;...&lt;/pre&gt;&lt;br /&gt;&lt;h3&gt;Set appserver.base and appserver.home properties&lt;/h3&gt;&lt;br /&gt;Ensure that the property appserver.base is set. Archiva uses this to locate log files.&lt;pre&gt;&lt;br /&gt;...&lt;br /&gt;&amp;lt;java-config ...&lt;br /&gt;    &amp;lt;jvm-options&gt;-Dappserver.base=${com.sun.aas.installRoot}/domains/domain1&lt;/jvm-options&gt;&lt;br /&gt;    &amp;lt;jvm-options&gt;-Dappserver.home=${com.sun.aas.installRoot}/domains/domain1&lt;/jvm-options&gt;&lt;br /&gt;...&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;JDBC resources&lt;/h3&gt;&lt;pre&gt;&lt;br /&gt;...&lt;br /&gt;&amp;lt;/applications&gt;&lt;br /&gt;&amp;lt;resources&gt;&lt;br /&gt;    &amp;lt;jdbc-resource pool-name="archivaUsersPool" jndi-name="jdbc/users" /&gt;&lt;br /&gt;    &amp;lt;jdbc-resource pool-name="archivaPool" jndi-name="jdbc/archiva" /&gt;&lt;br /&gt;..&lt;/pre&gt;&lt;br /&gt;&lt;h3&gt;Connection pool&lt;/h3&gt;&lt;pre&gt;&lt;br /&gt;    &amp;lt;jdbc-connection-pool datasource-classname="org.apache.derby.jdbc.EmbeddedXADataSource" res-type="javax.sql.XADataSource" name="archivaUsersPool"&gt;&lt;br /&gt;      &amp;lt;property name="databaseName" value="&lt;where you want your dbs&gt;/archiva/data/databases/users" /&gt;&lt;br /&gt;      &amp;lt;property name="connectionAttributes" value=";create=true" /&gt;&lt;br /&gt;    &amp;lt;/jdbc-connection-pool&gt;&lt;br /&gt;    &amp;lt;jdbc-connection-pool datasource-classname="org.apache.derby.jdbc.EmbeddedXADataSource" res-type="javax.sql.XADataSource" name="archivaPool"&gt;&lt;br /&gt;      &amp;lt;property name="databaseName" value="&lt;where you want your dbs&gt;/archiva/data/databases/arvhiva" /&gt;&lt;br /&gt;      &amp;lt;property name="connectionAttributes" value=";create=true" /&gt;&lt;br /&gt;    &amp;lt;/jdbc-connection-pool&gt;&lt;/pre&gt;&lt;br /&gt;&lt;h3&gt;Resources ref&lt;/h3&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;servers&gt;&lt;br /&gt;&amp;lt;server config-ref="server-config" name="server"&gt;&lt;br /&gt;...&lt;br /&gt;&amp;lt;resource-ref enabled="true" ref="jdbc/users"/&gt;&lt;br /&gt;&amp;lt;resource-ref enabled="true" ref="jdbc/archiva"/&gt;&lt;br /&gt;...&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Now restart you Glassfish server, and open the archiva location. The last thing you have to do is create the admin user.&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-3331327659496417044?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/3331327659496417044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2010/06/archiva-on-glassfish-with-derby.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3331327659496417044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3331327659496417044'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2010/06/archiva-on-glassfish-with-derby.html' title='Archiva On GlassFish with Derby'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-2501117687903963020</id><published>2010-04-15T11:17:00.000+02:00</published><updated>2010-04-15T11:30:40.414+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>dns cache</title><content type='html'>I installed dnsmasq a long time ago, but it turns out I never told my dhcp to use it.&lt;br /&gt;All done now thanks to the following post:&lt;br /&gt;&lt;a href="http://www.ubuntugeek.com/local-dns-cache-for-faster-browsing-on-ubuntu-machine.html"&gt;http://www.ubuntugeek.com/local-dns-cache-for-faster-browsing-on-ubuntu-machine.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;My steps (for in case I need to do it again :) :&lt;br /&gt;&lt;tt&gt;sudo apt-get install dnsmasq&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Now edit &lt;tt&gt;/etc/dhcp3/dhclient.conf&lt;/tt&gt;&lt;br /&gt;and uncomment the following line: &lt;pre&gt;prepend domain-name-servers 127.0.0.1;&lt;/pre&gt;&lt;br /&gt;I didn't have a /etc/dnsmasq.conf , and it does not seem to be needed because my dns caching works fine now without it; I assume its got good defaults.&lt;br /&gt;&lt;br /&gt;To test it quickly add &lt;tt&gt;nameserver 127.0.0.1&lt;/tt&gt; to the top of &lt;tt&gt;/etc/resolv.conf&lt;/tt&gt; &lt;br /&gt;(it normally gets overwritten by the network manager)&lt;br /&gt;&lt;pre&gt;dig yahoo.com&lt;/pre&gt;&lt;br /&gt;You will see something like &lt;pre&gt;;; Query time: 38 msec&lt;/pre&gt; there.&lt;br /&gt;Now do it again, and you should see something like: &lt;pre&gt;;; Query time: 2 msec&lt;/pre&gt;&lt;br /&gt;sweet!&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-2501117687903963020?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/2501117687903963020/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2010/04/dns-cache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/2501117687903963020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/2501117687903963020'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2010/04/dns-cache.html' title='dns cache'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-3531803709452750562</id><published>2010-04-07T17:27:00.000+02:00</published><updated>2010-04-07T18:09:04.281+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Eclipse'/><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><category scheme='http://www.blogger.com/atom/ns#' term='Vaadin'/><title type='text'>Vaadin addons and maven and eclipse.</title><content type='html'>Afters struggling for almost 3 days, I finally got some vaadin add-ons working for me.&lt;br /&gt;No matter what I did, I could not get maven to compile the custom widget sets :'-(&lt;br /&gt;&lt;br /&gt;Wanting to do it with maven I started off with the instructions at &lt;a href="http://dev.vaadin.com/wiki/Articles/MavenIntegration"&gt;http://dev.vaadin.com/wiki/Articles/MavenIntegration&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I got error messages like:&lt;br /&gt;&lt;pre&gt;Failed to load the widgetset: &lt;br /&gt;/my-project/VAADIN/widgetsets/my.company.my.project.widgetset.My_ProjectWidgetset/&lt;br /&gt;my.company.my.project.widgetset.My_ProjectWidgetset.nocache.js?1270654337749&lt;/pre&gt;&lt;br /&gt;Building it with the eclipse plugin said: &lt;br /&gt;&lt;pre&gt;Compiling widgetset my.company.my.project.widgetset.My_ProjectWidgetset&lt;br /&gt;Updating GWT module description file...&lt;br /&gt;07 Apr 2010 5:46:09 PM com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets&lt;br /&gt;INFO: Widgetsets found from classpath:&lt;br /&gt; com.vaadin.terminal.gwt.DefaultWidgetSet in jar:file:/stf/opt/maven/repository/com/vaadin/vaadin/6.2.6/vaadin-6.2.6.jar!/&lt;br /&gt; my.company.my.project.widgetset.My_ProjectWidgetset in file:/stf/prj/My_Project/src/main/resources&lt;br /&gt;&lt;br /&gt;Done.&lt;br /&gt;Starting GWT compiler&lt;br /&gt;Widgetset compilation completed&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;But when running the webapp, I got:&lt;br /&gt;&lt;pre&gt;Widgetset does not contain implementation for org.vaadin.browsercookies.BrowserCookies. Check its @ClientWidget mapping, widgetsets GWT module descrioption file and re-compile your widgetset. Unrendered UIDL:&lt;br /&gt; &lt;br /&gt;org.vaadin.browsercookies.BrowserCookies(NO CLIENT IMPLEMENTATION FOUND) id=PID7&lt;br /&gt; &lt;br /&gt;variables&lt;br /&gt;Widgetset does not contain implementation for com.github.wolfie.meteorcursor.MeteorCursor. Check its @ClientWidget mapping, widgetsets GWT module descrioption file and re-compile your widgetset. Unrendered UIDL:&lt;br /&gt; &lt;br /&gt;com.github.wolfie.meteorcursor.MeteorCursor(NO CLIENT IMPLEMENTATION FOUND) id=PID8 gr=75 th=10 pl=1000 di=2 im=theme://images/logo.png fr=0 disabled=false&lt;/pre&gt;&lt;br /&gt;I thought that it was building, since the addons that I wanted to use got detected.&lt;br /&gt;Little did I know that it was not actually building!&lt;br /&gt;Building with maven said:&lt;br /&gt;&lt;pre&gt;[INFO] Updating widgetset my.company.my.project.widgetset.My_ProjectWidgetset&lt;br /&gt;[INFO] establishing classpath list (scope = compile)&lt;br /&gt;[ERROR] 07 Apr 2010 5:38:31 PM com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets&lt;br /&gt;[ERROR] INFO: Widgetsets found from classpath:&lt;br /&gt;[ERROR]  com.github.wolfie.meteorcursor.MeteorcursorWidgetset in jar:file:/stf/opt/maven/repository/com/github/wolfie/meteorcursor/1.0.0/meteorcursor-1.0.0.jar!/&lt;br /&gt;[ERROR]  org.vaadin.browsercookies.widgetset.BrowserCookiesApplicationWidgetset in jar:file:/stf/opt/maven/repository/com/vaadin/sami/browsercookies/1.0.2/browsercookies-1.0.2.jar!/&lt;br /&gt;[ERROR]  com.vaadin.terminal.gwt.DefaultWidgetSet in jar:file:/stf/opt/maven/repository/com/vaadin/vaadin/6.2.6/vaadin-6.2.6.jar!/&lt;br /&gt;[ERROR]  my.company.my.project.widgetset.My_ProjectWidgetset in file:/stf/prj/My_Project/src/main/resources&lt;br /&gt;[ERROR] &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;The reason it was not building was because I was trying to use the stable version of the gwt-maven-plugin: 1.2&lt;br /&gt;After reading &lt;a href="http://vaadin.com/forum/-/message_boards/message/43914"&gt;this forum post&lt;/a&gt; again, I tried 1.3-SNAPSHOT of this plugin; and all my troubles went away.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So now I build it with maven, and it should give output like this:&lt;br /&gt;&lt;pre&gt;[INFO] [gwt:compile {execution: default}]                                                                                                                    &lt;br /&gt;[INFO] using GWT jars from project dependencies : 1.7.1                                                                                                      &lt;br /&gt;[INFO] auto discovered modules [za.co.enerweb.ebr.gui.vaadin.widgetset.Ebr_vaadin_webWidgetset]                                                              &lt;br /&gt;[INFO] establishing classpath list (scope = compile)                                                                                                         &lt;br /&gt;[INFO] establishing classpath list (scope = compile)                                                                                                         &lt;br /&gt;[INFO] establishing classpath list (scope = compile)                                                                                                         &lt;br /&gt;[INFO] establishing classpath list (scope = compile)                                                                                                         &lt;br /&gt;[INFO] establishing classpath list (scope = compile)                                                                                                         &lt;br /&gt;[INFO] establishing classpath list (scope = compile)                                                                                                         &lt;br /&gt;[INFO] Compiling module my.company.my.project.widgetset.My_ProjectWidgetset                                                                       &lt;br /&gt;[INFO]    Scanning for additional dependencies: jar:file:/stf/opt/maven/repository/com/vaadin/vaadin/6.2.6/vaadin-6.2.6.jar!/com/vaadin/terminal/gwt/client/DefaultWidgetSet.java                                                                                                                                           &lt;br /&gt;[INFO]       Computing all possible rebind results for 'com.vaadin.terminal.gwt.client.WidgetMap'                                                             &lt;br /&gt;[INFO]          Rebinding com.vaadin.terminal.gwt.client.WidgetMap                                                                                            &lt;br /&gt;[INFO]             Invoking &lt;generate-with class='com.vaadin.terminal.gwt.widgetsetutils.WidgetMapGenerator'/&gt;                                                &lt;br /&gt;[INFO]                Detecting Vaadin components in classpath to generate WidgetMapImpl.java ...                                                             &lt;br /&gt;[INFO]                Widget set will contain implementations for following components:                                                                       &lt;br /&gt;[INFO]                  com.github.wolfie.meteorcursor.MeteorCursor                                                                                           &lt;br /&gt;[INFO]                  com.vaadin.ui.AbsoluteLayout                                                                                                          &lt;br /&gt;[INFO]                  com.vaadin.ui.Accordion                                                                                                               &lt;br /&gt;[INFO]                  com.vaadin.ui.Button                                                                                                                  &lt;br /&gt;[INFO]                  com.vaadin.ui.CheckBox                                                                                                                &lt;br /&gt;[INFO]                  com.vaadin.ui.ComboBox                                                                                                                &lt;br /&gt;[INFO]                  com.vaadin.ui.CssLayout                                                                                                               &lt;br /&gt;[INFO]                  com.vaadin.ui.CustomComponent                                                                                                         &lt;br /&gt;[INFO]                  com.vaadin.ui.CustomLayout                                                                                                            &lt;br /&gt;[INFO]                  com.vaadin.ui.DateField                                                                                                               &lt;br /&gt;[INFO]                  com.vaadin.ui.Embedded                                                                                                                &lt;br /&gt;[INFO]                  com.vaadin.ui.Form                                                                                                                    &lt;br /&gt;[INFO]                  com.vaadin.ui.FormLayout                                                                                                              &lt;br /&gt;[INFO]                  com.vaadin.ui.GridLayout                                                                                                              &lt;br /&gt;[INFO]                  com.vaadin.ui.HorizontalLayout                                                                                                        &lt;br /&gt;[INFO]                  com.vaadin.ui.Label                                                                                                                   &lt;br /&gt;[INFO]                  com.vaadin.ui.Link                                                                                                                    &lt;br /&gt;[INFO]                  com.vaadin.ui.ListSelect                                                                                                              &lt;br /&gt;[INFO]                  com.vaadin.ui.MenuBar                                                                                                                 &lt;br /&gt;[INFO]                  com.vaadin.ui.NativeButton                                                                                                            &lt;br /&gt;[INFO]                  com.vaadin.ui.NativeSelect                                                                                                            &lt;br /&gt;[INFO]                  com.vaadin.ui.OptionGroup                                                                                                             &lt;br /&gt;[INFO]                  com.vaadin.ui.OrderedLayout                                                                                                           &lt;br /&gt;[INFO]                  com.vaadin.ui.Panel                                                                                                                   &lt;br /&gt;[INFO]                  com.vaadin.ui.PopupView                                                                                                               &lt;br /&gt;[INFO]                  com.vaadin.ui.ProgressIndicator                                                                                                       &lt;br /&gt;[INFO]                  com.vaadin.ui.RichTextArea                                                                                                            &lt;br /&gt;[INFO]                  com.vaadin.ui.Select                                                                                                                  &lt;br /&gt;[INFO]                  com.vaadin.ui.Slider                                                                                                                  &lt;br /&gt;[INFO]                  com.vaadin.ui.SplitPanel                                                                                                              &lt;br /&gt;[INFO]                  com.vaadin.ui.TabSheet                                                                                                                &lt;br /&gt;[INFO]                  com.vaadin.ui.Table                                                                                                                   &lt;br /&gt;[INFO]                  com.vaadin.ui.TextField                                                                                                               &lt;br /&gt;[INFO]                  com.vaadin.ui.Tree                                                                                                                    &lt;br /&gt;[INFO]                  com.vaadin.ui.TwinColSelect                                                                                                           &lt;br /&gt;[INFO]                  com.vaadin.ui.Upload                                                                                                                  &lt;br /&gt;[INFO]                  com.vaadin.ui.UriFragmentUtility                                                                                                      &lt;br /&gt;[INFO]                  com.vaadin.ui.VerticalLayout                                                                                                          &lt;br /&gt;[INFO]                  com.vaadin.ui.Window                                                                                                                  &lt;br /&gt;[INFO]                  org.vaadin.browsercookies.BrowserCookies                                                                                              &lt;br /&gt;[INFO]                Done. (2seconds)                                                                                                                        &lt;br /&gt;[INFO]    Compiling 1 permutations                                                                                                                            &lt;br /&gt;[INFO]       Permutation compile succeeded                                                                                                                    &lt;br /&gt;[INFO]    Linking into /stf/prj/My_Project/src/main/webapp/VAADIN/widgetsets                                                                          &lt;br /&gt;[INFO]       Link succeeded                                                                                                                                   &lt;br /&gt;[INFO]    Compilation succeeded -- 40.785s&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;To be able to serve my webapp using tomcat launched from eclipse I need to compile the GWT stuff into src/main/webapp . So unlike the instructions I mention at the top of this post, some key parts of my pom is as follows:&lt;br /&gt;&lt;pre&gt;  &amp;lt;properties&gt;&lt;br /&gt;    &amp;lt;vaadin-widgets-dir&gt;src/main/webapp/VAADIN/widgetsets&amp;lt;/vaadin-widgets-dir&gt;&lt;br /&gt;  &amp;lt;/properties&gt;&lt;br /&gt;  &amp;lt;build&gt;&lt;br /&gt;    &amp;lt;plugins&gt;&lt;br /&gt;      &amp;lt;!-- Compiles your custom GWT components with the GWT compiler --&gt;&lt;br /&gt;      &amp;lt;plugin&gt;&lt;br /&gt;        &amp;lt;groupId&gt;org.codehaus.mojo&amp;lt;/groupId&gt;&lt;br /&gt;        &amp;lt;artifactId&gt;gwt-maven-plugin&amp;lt;/artifactId&gt;&lt;br /&gt;        &amp;lt;version&gt;1.3-SNAPSHOT&amp;lt;/version&gt;&lt;br /&gt;        &amp;lt;executions&gt;&lt;br /&gt;          &amp;lt;execution&gt;&lt;br /&gt;            &amp;lt;configuration&gt;&lt;br /&gt;              &amp;lt;webappDirectory&gt;${vaadin-widgets-dir}&amp;lt;/webappDirectory&gt;&lt;br /&gt;              &amp;lt;extraJvmArgs&gt; -Dgwt.style=PRETTY -Xmx512M -Xss1024k&amp;lt;/extraJvmArgs&gt;&lt;br /&gt;            &amp;lt;/configuration&gt;&lt;br /&gt;            &amp;lt;goals&gt;&lt;br /&gt;              &amp;lt;goal&gt;resources&amp;lt;/goal&gt;&lt;br /&gt;              &amp;lt;goal&gt;compile&amp;lt;/goal&gt;&lt;br /&gt;            &amp;lt;/goals&gt;&lt;br /&gt;          &amp;lt;/execution&gt;&lt;br /&gt;        &amp;lt;/executions&gt;&lt;br /&gt;      &amp;lt;/plugin&gt;&lt;br /&gt;      &amp;lt;!-- Updates Vaadin 6.2 widgetset definitions based on project dependencies --&gt;&lt;br /&gt;      &amp;lt;plugin&gt;&lt;br /&gt;        &amp;lt;groupId&gt;com.vaadin&amp;lt;/groupId&gt;&lt;br /&gt;        &amp;lt;artifactId&gt;vaadin-maven-plugin&amp;lt;/artifactId&gt;&lt;br /&gt;        &amp;lt;version&gt;1.0.0&amp;lt;/version&gt;&lt;br /&gt;        &amp;lt;executions&gt;&lt;br /&gt;          &amp;lt;execution&gt;&lt;br /&gt;            &amp;lt;goals&gt;&lt;br /&gt;              &amp;lt;goal&gt;update-widgetset&amp;lt;/goal&gt;&lt;br /&gt;            &amp;lt;/goals&gt;&lt;br /&gt;          &amp;lt;/execution&gt;&lt;br /&gt;        &amp;lt;/executions&gt;&lt;br /&gt;      &amp;lt;/plugin&gt;&lt;br /&gt;      &amp;lt;plugin&gt;&lt;br /&gt;        &amp;lt;artifactId&gt;maven-clean-plugin&amp;lt;/artifactId&gt;&lt;br /&gt;        &amp;lt;configuration&gt;&lt;br /&gt;          &amp;lt;filesets&gt;&lt;br /&gt;            &amp;lt;fileset&gt;&lt;br /&gt;              &amp;lt;!-- also delete the generated vaadin web content --&gt;&lt;br /&gt;              &amp;lt;directory&gt;${vaadin-widgets-dir}&amp;lt;/directory&gt;&lt;br /&gt;            &amp;lt;/fileset&gt;&lt;br /&gt;          &amp;lt;/filesets&gt;&lt;br /&gt;        &amp;lt;/configuration&gt;&lt;br /&gt;      &amp;lt;/plugin&gt;&lt;br /&gt;    &amp;lt;/plugins&gt;&lt;br /&gt;  &amp;lt;/build&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-3531803709452750562?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/3531803709452750562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2010/04/vaadin-addons-and-maven-and-eclipse.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3531803709452750562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3531803709452750562'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2010/04/vaadin-addons-and-maven-and-eclipse.html' title='Vaadin addons and maven and eclipse.'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-7640778675750029504</id><published>2010-03-04T10:42:00.000+02:00</published><updated>2010-03-04T11:11:52.155+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ant'/><category scheme='http://www.blogger.com/atom/ns#' term='Vaadin'/><title type='text'>vaadin 6.3 ant build target</title><content type='html'>The &lt;a href="http://vaadin.com/src"&gt;vaadin source web page&lt;/a&gt; still has out-dated  build instructions.&lt;br /&gt;I tried: &lt;pre&gt;vaadin/6.3/build&gt;$ ant package-linux                                                                                                         &lt;br /&gt;Buildfile: build.xml                                                                                                        &lt;br /&gt;&lt;br /&gt;BUILD FAILED&lt;br /&gt;Target "package-linux" does not exist in the project "Vaadin". &lt;br /&gt;&lt;br /&gt;Total time: 0 seconds&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Looking at the following I realised that things have changed a bit:&lt;br /&gt;&lt;pre&gt;$ ant -p&lt;br /&gt;Buildfile: build.xml&lt;br /&gt;&lt;br /&gt;Main targets:&lt;br /&gt;&lt;br /&gt; build              Build package required files, without packing them.&lt;br /&gt; compile-widgetset  Compiles the widgetset given as the first parameter&lt;br /&gt; package-all        Build public packages.                             &lt;br /&gt; package-jar        Create vaadin-x.y.z.jar file.                      &lt;br /&gt; package-jar-quick  Create vaadin-x.y.z.jar file quick.                &lt;br /&gt; test-build         used for testing build.xml                         &lt;br /&gt; test-package       used for testing build.xml                         &lt;br /&gt;Default target: package-all                                            &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;So I tried the following starting building like crazy:&lt;br /&gt;&lt;pre&gt;$ ant package-all                                                      &lt;br /&gt;Buildfile: build.xml&lt;br /&gt;...&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt; But it got stuck on:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;manual-checkout:&lt;br /&gt;     [echo] Checking out manual from repository http://dev.vaadin.com/svn/doc/trunk&lt;br /&gt;    [mkdir] Created dir: /stf/prj/fs/vaadin/6.3/build/checkout  &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Finally I did:&lt;br /&gt;&lt;pre&gt;$ ant package-jar&lt;/pre&gt;&lt;br /&gt;and the jar finally got built!&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;BUILD SUCCESSFUL&lt;br /&gt;Total time: 10 minutes 49 seconds&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Will try out &lt;tt&gt;package-jar-quick&lt;/tt&gt; next...&lt;br /&gt;&lt;br /&gt;This made me shout out complaints about ant (ask my co-workers) and fall in love with maven all over again.&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-7640778675750029504?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/7640778675750029504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2010/03/vaadin-63-ant-build-target.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/7640778675750029504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/7640778675750029504'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2010/03/vaadin-63-ant-build-target.html' title='vaadin 6.3 ant build target'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-4795400679407313076</id><published>2010-03-02T18:53:00.000+02:00</published><updated>2010-03-02T22:35:35.833+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='archiva'/><title type='text'>How to make Archiva less paranoid about passwords</title><content type='html'>After just 3 login attempts a user's account is locked by Archiva, which is quite bad if a whole team and continuous integration servers uses the same account.&lt;br /&gt;&lt;br /&gt;I think you should just add an exponentially growing timeout to when the user can log in (maybe per source ip) or at least make it configurable from the frontend. But anyways, for our internal/firewalled archiva this sort of thing is a bit of over kill.&lt;br /&gt;&lt;br /&gt;I finally found out how to convince it to be more lenient.&lt;br /&gt;Just add the following content:&lt;br /&gt;&lt;pre&gt;security.policy.password.expiration.days=999999&lt;br /&gt;security.policy.password.expiration.enabled=false&lt;br /&gt;security.policy.allowed.login.attempt=300&lt;br /&gt;security.policy.password.previous.count=1&lt;br /&gt;security.policy.password.rule.reuse.enabled=false&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;to the equivalent file to your system:&lt;br /&gt;&lt;pre&gt;glassfish_2.1/domains/archiva/lib/classes/org/apache/maven/archiva/security.properties&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://osdir.com/ml/users-archiva-apache/2009-02/msg00031.html"&gt;http://osdir.com/ml/users-archiva-apache/2009-02/msg00031.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-4795400679407313076?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/4795400679407313076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2010/03/how-to-make-archiva-less-paranoid-about.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/4795400679407313076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/4795400679407313076'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2010/03/how-to-make-archiva-less-paranoid-about.html' title='How to make Archiva less paranoid about passwords'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-3819920726444278873</id><published>2009-12-23T14:13:00.000+02:00</published><updated>2009-12-23T15:01:34.756+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Icefaces'/><title type='text'>Why can't icefaces give proper error messages? II</title><content type='html'>After days of searching and experimentation &lt;a href="http://blog.justtechnologies.ca/2009/01/dynamic-includes-in-series-seamicefaces.html"&gt;it seems that its not possible&lt;/a&gt; to dynamically import&lt;br /&gt;a .jspx file into another (one which is loaded from a jar, and the src location is supplied by the backing bean).&lt;br /&gt;&lt;br /&gt;I'm trying to embed iframes now, but as soon as the iframes render, icefaces freezes up and does not send any events again. The only clue was this javascript error: &lt;br /&gt;&lt;pre&gt;Error: no element found&lt;br /&gt;Source File: http://localhost:17080/EbrWeb/block/receive-updated-views&lt;br /&gt;Line: 1&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;After searching and a hunch that concurrently loading jspx pages breaks icefaces, I looked at the portlet sample&lt;br /&gt;(&lt;tt&gt;ICEfaces-1.8.2-src/icefaces/samples/portlet/location/web/WEB-INF/web.xml&lt;/tt&gt;).&lt;br /&gt;&lt;br /&gt;I found that if I include the following in my web.xml, it works! Hurray! &lt;br /&gt;&lt;pre&gt;&amp;lt;context-param&gt;&lt;br /&gt;  &amp;lt;param-name&gt;com.icesoft.faces.concurrentDOMViews&amp;lt;/param-name&gt;&lt;br /&gt;  &amp;lt;param-value&gt;true&amp;lt;/param-value&gt;&lt;br /&gt;&amp;lt;/context-param&gt;&lt;/pre&gt;&lt;br /&gt;This makes sense because I want to load several iceface pages in iframes in my main page.&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-3819920726444278873?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/3819920726444278873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/12/why-cant-icefaces-give-proper-error_23.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3819920726444278873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3819920726444278873'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/12/why-cant-icefaces-give-proper-error_23.html' title='Why can&apos;t icefaces give proper error messages? II'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-1021147395070076750</id><published>2009-12-10T23:38:00.000+02:00</published><updated>2009-12-10T23:41:36.727+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Icefaces'/><title type='text'>Why can't icefaces give proper error messages?</title><content type='html'>&lt;pre&gt;SEVERE: StandardWrapperValve[Persistent Faces Servlet]: PWC1406: Servlet.service() for servlet Persistent Faces Servlet threw exception&lt;br /&gt;java.lang.Exception: javax.faces.FacesException: Problem in renderResponse: null&lt;/pre&gt;&lt;br /&gt;was trying to tell me:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&amp;lt;ice:tree&gt; needed to be encapsulated inside an &amp;lt;ice:form&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://seamframework.org/Community/ProblemWithIceTree#comment101040"&gt;http://seamframework.org/Community/ProblemWithIceTree#comment101040&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-1021147395070076750?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/1021147395070076750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/12/why-cant-icefaces-give-proper-error.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/1021147395070076750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/1021147395070076750'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/12/why-cant-icefaces-give-proper-error.html' title='Why can&apos;t icefaces give proper error messages?'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-3945570697414076161</id><published>2009-12-01T21:24:00.000+02:00</published><updated>2009-12-01T21:24:54.002+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Word of the week'/><title type='text'>A+</title><content type='html'>"a plus", short for "a plus tard" (French, pronounced ah-plu-tar), that is "see you later".&lt;br /&gt;Used to end an informal email, or a chat. Equivalent to "C U"&lt;br /&gt;&lt;a href="http://www.urbandictionary.com/zazzle.products.php?defid=1461004"&gt;http://www.urbandictionary.com/zazzle.products.php?defid=1461004&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You can listen to the pronunciation here: &lt;a href="http://www.forvo.com/word/a_plus_tard/"&gt;http://www.forvo.com/word/a_plus_tard/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-3945570697414076161?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/3945570697414076161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/12/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3945570697414076161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3945570697414076161'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/12/blog-post.html' title='A+'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-6376266254624011049</id><published>2009-11-30T23:27:00.000+02:00</published><updated>2009-12-01T16:39:33.377+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bazaar'/><category scheme='http://www.blogger.com/atom/ns#' term='pycurl'/><title type='text'>pycurl does not like bad certificates</title><content type='html'>I keep on hitting this once in a blue moon (maybe after dist-upgrading), pushing to a smart server over https I get the following:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;bzr: ERROR: Connection error: curl connection error (server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none)        &lt;br /&gt;on https://mycompany/bzr/aprojectrepo/mybranch/.bzr/smart&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;And every time it takes me some time to figure out how to fix it, so I'm noting it here for future reference:&lt;br /&gt;* remove python-pycurl&lt;br /&gt;* or use "http+urllib://"&lt;br /&gt;&lt;br /&gt;https://bugs.launchpad.net/bzr/+bug/365874&lt;br /&gt;&lt;br /&gt;I suppose I should help fix this, but I don't see myself getting round to that any time soon.&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-6376266254624011049?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/6376266254624011049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/11/pycurl-does-not-like-bad-certificates.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/6376266254624011049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/6376266254624011049'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/11/pycurl-does-not-like-bad-certificates.html' title='pycurl does not like bad certificates'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-8639453620911011587</id><published>2009-11-24T20:42:00.001+02:00</published><updated>2009-12-01T11:15:51.545+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>happy karmic day</title><content type='html'>My upgrade from jaunty to &lt;a href="http://www.ubuntu.com/products/whatisubuntu/910features"&gt;karmic&lt;/a&gt; was not quite rosy.&lt;br /&gt;My man two problems were that my sound and touchpad stopped working.&lt;br /&gt;Thankfully its all sorted out now (I hope).&lt;br /&gt;&lt;br /&gt;My touchpad wasn't working because of using the wrong kernel - after upgrading to karmic, it didn't boot using the karmic kernel by default, I had to use grub editor to change that.&lt;br /&gt;But then I could not boot. I had to go fix up my grub menu:&lt;br /&gt;sudo vim /boot/grub/menu.lst&lt;br /&gt;I had &lt;pre&gt;&lt;br /&gt;title Ubuntu 9.10, kernel 2.6.31-14-generic (recovery mode)&lt;br /&gt;root&lt;br /&gt;&lt;/pre&gt; in stead of&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;title Ubuntu 9.10, kernel 2.6.31-14-generic (recovery mode)&lt;br /&gt;root (hd0,0)&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;(it was complaining that it could not find a kernel image at the specified location or something)&lt;br /&gt;&lt;br /&gt;the sound was also related to using the wrong kernel, but also due to some pulsaudio issues see &lt;a href="http://ubuntuforums.org/showthread.php?t=789578"&gt;HOWTO: PulseAudio Fixes &amp; System-Wide Equalizer Support - Ubuntu Forums&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[update]&lt;/span&gt;&lt;br /&gt;mmm... the first kernel update broke it again :(&lt;br /&gt;I finally heeded Robert's advice to do:&lt;br /&gt;&lt;pre&gt;sudo update-grub&lt;/pre&gt;&lt;br /&gt;&lt;a href="https://bugs.launchpad.net/ubuntu/+source/grub/+bug/470265"&gt;https://bugs.launchpad.net/ubuntu/+source/grub/+bug/470265&lt;/a&gt;&lt;br /&gt;My menu.lst looks fine now, but still need to reboot and test it.&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-8639453620911011587?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/8639453620911011587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/11/happy-karmic-day.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8639453620911011587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8639453620911011587'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/11/happy-karmic-day.html' title='happy karmic day'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-3190988753471224541</id><published>2009-11-21T15:48:00.000+02:00</published><updated>2009-11-21T15:48:46.690+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Kubuntu'/><title type='text'>Kalternatives</title><content type='html'>I found this cool package today:&lt;br /&gt;&lt;pre&gt;sudo apt-get install kalternatives&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;From the package info:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Kalternatives offers a GUI to configure the alternative systems (a&lt;br /&gt;system that allows you to select one alternative file for many in the&lt;br /&gt;filesystem).&lt;br /&gt;Kalternatives is available as KDE configuration module, integrated by default&lt;br /&gt;into KDE's System Settings.&lt;br /&gt;&lt;br /&gt;This is an advanced GUI of the update-alternatives program shipped with dpkg.&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Some of the options I wanted to customise:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;desktop-splash&lt;br /&gt;usplash-artwork (usplash-theme)&lt;br /&gt;x-terminal-emulator&lt;br /&gt;x-window-manager&lt;br /&gt;x-www-browser&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-3190988753471224541?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/3190988753471224541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/11/kalternatives.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3190988753471224541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3190988753471224541'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/11/kalternatives.html' title='Kalternatives'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-1591615326104150897</id><published>2009-10-31T01:14:00.000+02:00</published><updated>2009-10-31T01:23:05.633+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>Project Lombok: Put an End to Java Verbosity</title><content type='html'>If you're interested in java programming involving lots of beans, this is a crazy cool tool.&lt;br /&gt;&lt;br /&gt;Its a combination of a compile-time and a development-time code generator, which has made Java POJO verbosity history.&lt;br /&gt;It uses annotation magic to implement all the repetitive boring bean methods (getters, setters, equals, hashCode, toString)&lt;br /&gt;without them actually cluttering your classes. Thats right it generates invisible code!&lt;br /&gt;&lt;br /&gt;Now you have to watch the video at:&lt;br /&gt;&lt;a href="http://projectlombok.org/"&gt;http://projectlombok.org/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You can reed this introductory article:&lt;br /&gt;&lt;a href="http://www.devx.com/Java/Article/42946/1954"&gt;http://www.devx.com/Java/Article/42946/1954&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;See some other cool examples to look at:&lt;br /&gt;&lt;a href="http://projectlombok.org/features/Data.html"&gt;http://projectlombok.org/features/Data.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://projectlombok.org/features/Cleanup.html"&gt;http://projectlombok.org/features/Cleanup.html&lt;/a&gt;  (I was trying to implement this one just a couple of weeks ago)&lt;br /&gt;&lt;a href="http://projectlombok.org/features/EqualsAndHashCode.html"&gt;http://projectlombok.org/features/EqualsAndHashCode.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I came across lombok while trying to figure out if I can get eclipse to also generate the .equals and .hashCode methods&lt;br /&gt;on new JPA entities like netbeans does. turns out it I don't really need that any more.&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-1591615326104150897?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/1591615326104150897/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/10/project-lombok-put-end-to-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/1591615326104150897'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/1591615326104150897'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/10/project-lombok-put-end-to-java.html' title='Project Lombok: Put an End to Java Verbosity'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-2586270297929309098</id><published>2009-10-17T16:30:00.000+02:00</published><updated>2011-01-14T14:49:02.912+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='apt'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Saving a list of your Ubuntu packages and installing them again somewhere else</title><content type='html'>When you have to leave your old installation behind and have to move to a new installation of Ubuntu. You can install all the packages you used to have in 3 easy steps. Then you just need to copy over your home folder and voi-la your new installation is almost exactly like you used to have. On other operating systems this takes a week or so, and you keep on discovering things you forgot.&lt;br /&gt;&lt;br /&gt;So for the packages you do on your old install:&lt;br /&gt;&lt;pre&gt;dpkg --get-selections &amp;gt; installed-software&lt;/pre&gt;&lt;br /&gt;copy the installed-software file over to your new install and:&lt;br /&gt;&lt;pre&gt;dpkg --set-selections &amp;lt; installed-software &lt;br /&gt;dselect&lt;/pre&gt;Like magic. And if you have a local apt-cacher-ng, you don't even need to download everything again. Alternatively you can copy over your /var/cache/apt/archives/ before doing the second part.  &lt;a href="http://www.arsgeek.com/2006/09/19/ubuntu-tricks-how-to-generate-a-list-of-installed-packages-and-use-it-to-reinstall-packages/"&gt;http://www.arsgeek.com/2006/09/19/ubuntu-tricks-how-to-generate-a-list-of-installed-packages-and-use-it-to-reinstall-packages/&lt;/a&gt; &lt;a href="http://ubuntu-sos.blogspot.com/2008/06/how-to-create-and-restore-list-of-all.html"&gt;http://ubuntu-sos.blogspot.com/2008/06/how-to-create-and-restore-list-of-all.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-2586270297929309098?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/2586270297929309098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/10/saving-list-of-your-ubuntu-packages-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/2586270297929309098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/2586270297929309098'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/10/saving-list-of-your-ubuntu-packages-and.html' title='Saving a list of your Ubuntu packages and installing them again somewhere else'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-6368093414567571943</id><published>2009-10-13T02:51:00.000+02:00</published><updated>2009-10-13T03:12:37.850+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JSF'/><category scheme='http://www.blogger.com/atom/ns#' term='Icefaces'/><title type='text'>(Ice)faces hates me and Richard</title><content type='html'>After Richard Kolb and I have struggled with this for days, I finally cracked it.&lt;br /&gt;&lt;br /&gt;We defined some dropdowns, and radio buttons in icefaces eg:&lt;br /&gt;&lt;pre&gt;&amp;lt;ice:selectOneRadio id="reportColumnIndexRadio"&lt;br /&gt;    value="#{scratchPad.reportColumnIndex}"&lt;br /&gt;     partialSubmit="true"&lt;br /&gt;     layout="pageDirection"&gt;&lt;br /&gt;    &amp;lt;f:selectItems&lt;br /&gt;        value="#{scratchPad.reportColumnIndexSelectItemList}" /&gt;&lt;br /&gt;&amp;lt;/ice:selectOneRadio&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;ice:selectOneMenu id="reportColumnIndex"&lt;br /&gt;    value="#{scratchPad.reportColumnIndex}"&lt;br /&gt;    partialSubmit="true"&gt;&lt;br /&gt;    &amp;lt;f:selectItems&lt;br /&gt;        value="#{scratchPad.reportColumnIndexSelectItemList}" /&gt;&lt;br /&gt;&amp;lt;/ice:selectOneMenu&gt;&lt;/pre&gt;&lt;br /&gt;but when a new item was selected nothing happened, we just got this VERY cryptic log entry e.g:&lt;br /&gt;&lt;pre&gt;sourceId=reportEditorForm:j_id14[severity=(ERROR 2), &lt;br /&gt;summary=(reportEditorForm:j_id14: &lt;br /&gt;An error occurred when processing your submitted information. ),&lt;br /&gt;detail=(reportEditorForm:j_id14:&lt;br /&gt;An error occurred when processing your submitted information. )]&lt;/pre&gt;&lt;br /&gt;After hours of (debugging, guessing, googling, repeat) loops, &lt;br /&gt;I finally found this link which explains it a number of times:&lt;br /&gt;&lt;a href="http://www.icefaces.org/JForum/posts/list/7965.page"&gt;http://www.icefaces.org/JForum/posts/list/7965.page&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Faces or icefaces &lt;b&gt;does not automagically serialise or cache objects when sending it to the browser! &lt;br /&gt;It converts to/from Strings if it can &lt;br /&gt;and tries to waste as much of your time as possible if it can't!&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;So my fix was setting the selectItem's value to our DB Id in stead of the object, &lt;br /&gt;using the Id property for the SelectOne value. &lt;br /&gt;Then on partial submit when the setter gets called, &lt;br /&gt;we have to iterate through the cached list to find the one matching the Id to set the real property.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;ice:selectOneMenu id="reportColumnIndex"&lt;br /&gt;    value="#{scratchPad.reportColumnIndexId}"&lt;br /&gt;    partialSubmit="true"&gt;&lt;br /&gt;    &amp;lt;f:selectItems&lt;br /&gt;        value="#{scratchPad.reportColumnIndexSelectItemList}" /&gt;&lt;br /&gt;&amp;lt;/ice:selectOneMenu&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-6368093414567571943?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/6368093414567571943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/10/icefaces-hates-me-and-richard.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/6368093414567571943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/6368093414567571943'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/10/icefaces-hates-me-and-richard.html' title='(Ice)faces hates me and Richard'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-8815066175316259573</id><published>2009-09-29T23:41:00.000+02:00</published><updated>2009-09-29T23:43:18.557+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Eclipse'/><category scheme='http://www.blogger.com/atom/ns#' term='Glassfish'/><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>Publish failed using Ant publisher - duplicate entry</title><content type='html'>I got so frustrated this week with the eclipse + maven + glasfish combo.&lt;br /&gt;It kept on refusing to publish my web project to glassfish with some lame excuse:&lt;br /&gt;&lt;pre&gt;Publish failed using Ant publisher&lt;br /&gt;  unable to assemble module&lt;br /&gt;  duplicate entry: some.file&lt;/pre&gt;&lt;br /&gt;In any case I figured out a workaround (lucky guess):&lt;br /&gt;Right-click on your project -&gt; Maven -&gt; Disable Workspace Resolution&lt;br /&gt;&lt;br /&gt;Voi la. I can work again and debug my web apps.&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-8815066175316259573?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/8815066175316259573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/09/publish-failed-using-ant-publisher.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8815066175316259573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8815066175316259573'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/09/publish-failed-using-ant-publisher.html' title='Publish failed using Ant publisher - duplicate entry'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-8715853121022040119</id><published>2009-08-26T02:10:00.000+02:00</published><updated>2009-08-26T02:10:13.637+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Launchpad'/><title type='text'>rocketfuel-setup could not retrieve key</title><content type='html'>I'd like to try out a in-house launchpad at some point, &lt;br /&gt;so I thought I should get it. &lt;br /&gt;But for some reason the rocketfuel-setup couldn't download &lt;br /&gt;the keys it wanted for the dependencies it needed to apt-get:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Retrieving key 0A5174AF.&lt;br /&gt;gpg: requesting key 0A5174AF from hkp server keyserver.ubuntu.com&lt;br /&gt;gpgkeys: key 0A5174AF not found on keyserver&lt;br /&gt;gpg: no valid OpenPGP data found.&lt;br /&gt;gpg: Total number processed: 0&lt;br /&gt;Could not retrieve key 0A5174AF.&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;So after mucking around trying to tell it to use my proxy, &lt;br /&gt;I just commented out the relevant &lt;tt&gt;exit 1&lt;/tt&gt; lines.&lt;br /&gt;This worked great, I just got prompted to confirm I want to install these packages.&lt;br /&gt;I suppose the better solution would have been to try harder to manually install&lt;br /&gt;the keys, but I didn't want to think about it too much.&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-8715853121022040119?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/8715853121022040119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/08/rocketfuel-setup-could-not-retrieve-key.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8715853121022040119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8715853121022040119'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/08/rocketfuel-setup-could-not-retrieve-key.html' title='rocketfuel-setup could not retrieve key'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-5893443021805896571</id><published>2009-08-14T15:14:00.001+02:00</published><updated>2011-11-17T23:03:40.620+02:00</updated><title type='text'>how to use apt-key so apt-get stops complaining</title><content type='html'>Use the last 8 digits apt-get gives you when it complains about keys eg.:&lt;br /&gt;&lt;br /&gt;sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5ADC2037&lt;br /&gt;&lt;br /&gt;(I'm just pasting it here so I can find it again)&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-5893443021805896571?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/5893443021805896571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/08/how-to-use-apt-key-with-wwwkeyseupgpnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/5893443021805896571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/5893443021805896571'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/08/how-to-use-apt-key-with-wwwkeyseupgpnet.html' title='how to use apt-key so apt-get stops complaining'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-8621445433204366964</id><published>2009-08-09T01:00:00.000+02:00</published><updated>2009-08-09T01:26:42.106+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xfce'/><category scheme='http://www.blogger.com/atom/ns#' term='kde4'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>xfce=a new lease of life for my not-so-old laptop.</title><content type='html'>Yes kde4 made my 64bit, 4GB mem, Core2 Duo 2.4GHz (kubuntu 9.04) laptop cry and die on me. For some reason it made X use a lot more memory than I would like. &lt;br /&gt;So a couple of weeks ago I tried out xfce and I can be productive on it now. Although I miss a lot of features, at least I'm not running out of memory so easily and it does not crash so often anymore.&lt;br /&gt;It may not strictly be Kde's fault, but by experimentation I found that xfce is better for me at the moment.&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-8621445433204366964?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/8621445433204366964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/08/xfcea-new-lease-of-life-for-my-not-so.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8621445433204366964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8621445433204366964'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/08/xfcea-new-lease-of-life-for-my-not-so.html' title='xfce=a new lease of life for my not-so-old laptop.'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-7996353883434526979</id><published>2009-07-25T00:29:00.000+02:00</published><updated>2009-07-30T11:23:19.835+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Alfresco'/><title type='text'>Yet another juicy Alfresco Labs 3.1 stacktrace...</title><content type='html'>...which kept me busy for a couple of days.&lt;br /&gt;I dumped it here for in case somebody else hits it.&lt;br /&gt;So if you didn't find this post by googling an alfresco exception, you need to move along people, there is nothing to see here.&lt;br /&gt; &lt;br /&gt;Without further ado, if you get the following exception:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;javax.faces.FacesException: javax.faces.FacesException: Could not retrieve value of component with path : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /jsp/dialog/container.jsp][Class: javax.faces.component.html.HtmlForm,Id: dialog][Class: javax.faces.component.UINamingContainer,Id: dialog-body][Class: org.alfresco.web.ui.common.component.UIPanel,Id: users-panel][Class: org.alfresco.web.ui.common.component.data.UIRichList,Id: users-list][Class: org.alfresco.web.ui.common.component.data.UIColumn,Id: _idJsp33][Class: javax.faces.component.html.HtmlOutputText,Id: _idJsp35]}&lt;br /&gt;at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)&lt;br /&gt;at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)&lt;br /&gt;at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)&lt;br /&gt;at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)&lt;br /&gt;at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)&lt;br /&gt;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)&lt;br /&gt;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&lt;br /&gt;at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)&lt;br /&gt;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&lt;br /&gt;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&lt;br /&gt;at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)&lt;br /&gt;at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)&lt;br /&gt;at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)&lt;br /&gt;at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)&lt;br /&gt;at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)&lt;br /&gt;at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)&lt;br /&gt;at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)&lt;br /&gt;at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)&lt;br /&gt;at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)&lt;br /&gt;at java.lang.Thread.run(Thread.java:619)&lt;br /&gt;Caused by: org.apache.jasper.JasperException: javax.faces.FacesException: Could not retrieve value of component with path : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /jsp/dialog/container.jsp][Class: javax.faces.component.html.HtmlForm,Id: dialog][Class: javax.faces.component.UINamingContainer,Id: dialog-body][Class: org.alfresco.web.ui.common.component.UIPanel,Id: users-panel][Class: org.alfresco.web.ui.common.component.data.UIRichList,Id: users-list][Class: org.alfresco.web.ui.common.component.data.UIColumn,Id: _idJsp33][Class: javax.faces.component.html.HtmlOutputText,Id: _idJsp35]}&lt;br /&gt;at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)&lt;br /&gt;at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)&lt;br /&gt;at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)&lt;br /&gt;at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)&lt;br /&gt;at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)&lt;br /&gt;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)&lt;br /&gt;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&lt;br /&gt;at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)&lt;br /&gt;at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)&lt;br /&gt;at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)&lt;br /&gt;at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)&lt;br /&gt;at org.apache.jsp.jsp.dialog.container_jsp._jspService(container_jsp.java:637)&lt;br /&gt;at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)&lt;br /&gt;at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)&lt;br /&gt;at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)&lt;br /&gt;at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)&lt;br /&gt;at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)&lt;br /&gt;at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)&lt;br /&gt;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)&lt;br /&gt;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&lt;br /&gt;at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)&lt;br /&gt;at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)&lt;br /&gt;at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)&lt;br /&gt;at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)&lt;br /&gt;at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)&lt;br /&gt;... 19 more&lt;br /&gt;Caused by: javax.faces.FacesException: Could not retrieve value of component with path : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /jsp/dialog/container.jsp][Class: javax.faces.component.html.HtmlForm,Id: dialog][Class: javax.faces.component.UINamingContainer,Id: dialog-body][Class: org.alfresco.web.ui.common.component.UIPanel,Id: users-panel][Class: org.alfresco.web.ui.common.component.data.UIRichList,Id: users-list][Class: org.alfresco.web.ui.common.component.data.UIColumn,Id: _idJsp33][Class: javax.faces.component.html.HtmlOutputText,Id: _idJsp35]}&lt;br /&gt;at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getStringValue(RendererUtils.java:227)&lt;br /&gt;at org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.renderOutput(HtmlTextRendererBase.java:69)&lt;br /&gt;at org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:57)&lt;br /&gt;at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)&lt;br /&gt;at org.alfresco.web.ui.common.Utils.encodeRecursive(Utils.java:173)&lt;br /&gt;at org.alfresco.web.ui.common.Utils.encodeRecursive(Utils.java:168)&lt;br /&gt;at org.alfresco.web.ui.common.renderer.data.RichListRenderer$DetailsViewRenderer.renderListRow(RichListRenderer.java:292)&lt;br /&gt;at org.alfresco.web.ui.common.renderer.data.RichListRenderer.encodeChildren(RichListRenderer.java:118)&lt;br /&gt;at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:527)&lt;br /&gt;at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:483)&lt;br /&gt;at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:364)&lt;br /&gt;at org.apache.jsp.jsp.users.users_jsp._jspx_meth_a_005frichList_005f0(users_jsp.java:659)&lt;br /&gt;at org.apache.jsp.jsp.users.users_jsp._jspService(users_jsp.java:273)&lt;br /&gt;at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)&lt;br /&gt;at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)&lt;br /&gt;at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)&lt;br /&gt;... 42 more&lt;br /&gt;Caused by: javax.faces.el.EvaluationException: Cannot get value for expression '#{r.sizeLatest}'&lt;br /&gt;at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:405)&lt;br /&gt;at javax.faces.component.UIOutput.getValue(UIOutput.java:80)&lt;br /&gt;at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getStringValue(RendererUtils.java:223)&lt;br /&gt;... 57 more&lt;br /&gt;Caused by: javax.faces.el.EvaluationException: Exception getting value of property sizeLatest of base of type : org.alfresco.web.bean.repository.MapNode&lt;br /&gt;at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:99)&lt;br /&gt;at org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:535)&lt;br /&gt;at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)&lt;br /&gt;at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:386)&lt;br /&gt;... 59 more&lt;br /&gt;Caused by: java.lang.NullPointerException&lt;br /&gt;at java.io.StringReader.&lt;init&gt;(StringReader.java:33)&lt;br /&gt;at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.indexProperty(ADMLuceneIndexerImpl.java:1037)&lt;br /&gt;at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.createDocuments(ADMLuceneIndexerImpl.java:606)&lt;br /&gt;at org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerImpl.indexImpl(AbstractLuceneIndexerImpl.java:632)&lt;br /&gt;at org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerImpl.indexImpl(AbstractLuceneIndexerImpl.java:657)&lt;br /&gt;at org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerImpl.flushPending(AbstractLuceneIndexerImpl.java:789)&lt;br /&gt;at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.doPrepare(ADMLuceneIndexerImpl.java:1591)&lt;br /&gt;at org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerImpl.prepare(AbstractLuceneIndexerImpl.java:472)&lt;br /&gt;at org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerAndSearcherFactory.prepare(AbstractLuceneIndexerAndSearcherFactory.java:783)&lt;br /&gt;at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.beforeCommit(AlfrescoTransactionSupport.java:661)&lt;br /&gt;at org.springframework.transaction.support.TransactionSynchronizationUtils.triggerBeforeCommit(TransactionSynchronizationUtils.java:48)&lt;br /&gt;at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:835)&lt;br /&gt;at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:645)&lt;br /&gt;at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:632)&lt;br /&gt;at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:314)&lt;br /&gt;at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:117)&lt;br /&gt;at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)&lt;br /&gt;at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)&lt;br /&gt;at $Proxy176.getUserUsage(Unknown Source)&lt;br /&gt;at org.alfresco.web.bean.users.UsersBeanProperties.getUserUsage(UsersBeanProperties.java:290)&lt;br /&gt;at org.alfresco.web.bean.users.UsersDialog$1.get(UsersDialog.java:410)&lt;br /&gt;at org.alfresco.web.bean.repository.QNameNodeMap.get(QNameNodeMap.java:117)&lt;br /&gt;at org.alfresco.web.bean.repository.MapNode.get(MapNode.java:157)&lt;br /&gt;at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:81)&lt;br /&gt;... 62 more&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;nice, hey.&lt;br /&gt;&lt;br /&gt;I think its reported here&lt;br /&gt;&lt;a href="https://issues.alfresco.com/jira/browse/ETHREEOH-1846"&gt;https://issues.alfresco.com/jira/browse/ETHREEOH-1846&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To fix it, I built a newer version of org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl from the svn sources, and dumped it in the alfresco/WEB-INF/classes and it works!&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-7996353883434526979?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/7996353883434526979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/07/yet-another-juicy-alfresco-labs-31.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/7996353883434526979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/7996353883434526979'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/07/yet-another-juicy-alfresco-labs-31.html' title='Yet another juicy Alfresco Labs 3.1 stacktrace...'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-5506413361518330176</id><published>2009-07-23T15:41:00.000+02:00</published><updated>2009-08-11T08:46:34.737+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Eclipse'/><category scheme='http://www.blogger.com/atom/ns#' term='Glassfish'/><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>get rid of glassfish master password</title><content type='html'>I've set up a webapp to be able to create-domain, deploy, test and delete-domain using the maven-glassfish-plugin. &lt;br /&gt;The problem is that it insists on setting the master password.&lt;br /&gt;Now its not possible to set the master password being used by the eclipse JavaEE glassfish plugin.&lt;br /&gt;So when you try to start it from eclipse it asks for the master&lt;br /&gt;password in the background: &lt;br /&gt;&lt;tt&gt;Please enter the master password&lt;/tt&gt;&lt;br /&gt;After a while it times out and it says:&lt;br /&gt;&lt;tt&gt;Server GlassFish at localhost failed to start.&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;I found out that you can tell glassfish to not ask the password anymore by doing:&lt;br /&gt;&lt;tt&gt;asadmin change-master-password --savemasterpassword domain1&lt;/tt&gt;                                &lt;br /&gt;&lt;a href="http://forums.java.net/jive/message.jspa?messageID=341172"&gt;http://forums.java.net/jive/message.jspa?messageID=341172&lt;/a&gt;           &lt;br /&gt;&lt;br /&gt;However, I changed my admin password maven uses, &lt;br /&gt;to be the real defaut master password: "changeit",&lt;br /&gt;and now eclipse can start maven-created domains without me&lt;br /&gt;having to --savemasterpassword &lt;br /&gt;&lt;a href="http://blogs.sun.com/alexismp/entry/what_is_a_glassfish_master"&gt;http://blogs.sun.com/alexismp/entry/what_is_a_glassfish_master&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-5506413361518330176?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/5506413361518330176/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/07/get-rid-of-glassfish-master-password.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/5506413361518330176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/5506413361518330176'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/07/get-rid-of-glassfish-master-password.html' title='get rid of glassfish master password'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-4307071172147581143</id><published>2009-07-21T21:24:00.000+02:00</published><updated>2009-07-21T22:59:04.593+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Alfresco'/><title type='text'>more alfresco pain</title><content type='html'>This time I tried to send e-mails when new documents are added. I thought this would be simple. (With Alfresco labs 3.1)&lt;br /&gt;First I got errors like:&lt;br /&gt;&lt;pre&gt;20:08:32,529  ERROR [action.executer.MailActionExecuter]&lt;br /&gt;Failed to send email to 'amanica@localhost'&lt;br /&gt;as the address is incorrectly formatted&lt;/pre&gt;&lt;br /&gt;Eventually I figured out my test addresses are not acceptable to javamail. I had to setup amanica@localhost.dev before it worked.&lt;br /&gt;&lt;br /&gt;Next I got the following:&lt;br /&gt;&lt;pre&gt;20:08:33,310  ERROR [action.executer.MailActionExecuter]&lt;br /&gt;Failed to send email to [root, test]&lt;br /&gt;org.springframework.mail.MailPreparationException:&lt;br /&gt;Could not prepare mail; nested exception is java.lang.NullPointerException&lt;br /&gt;Caused by: java.lang.NullPointerException        &lt;br /&gt;at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:599)        &lt;br /&gt;at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:388)        &lt;br /&gt;at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:332)        &lt;br /&gt;at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:347)        &lt;br /&gt;at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:336)        &lt;br /&gt;at org.alfresco.repo.action.executer.MailActionExecuter.executeImpl(MailActionExecuter.java:352&lt;/pre&gt;&lt;br /&gt;And I think setting a e-mail address for the admin user fixed that.&lt;br /&gt;&lt;br /&gt;Thirdly it only wanted to send these rule e-mails from alfresco@alfresco.com, but if I copy slightly newer versions of&lt;br /&gt;MailActionExecuter$1.class and MailActionExecuter.class into&lt;br /&gt;${ALF_HOME}/tomcat/shared/classes/org/alfresco/repo/action/executer/&lt;br /&gt;it works. I don't know if that breaks anything else in the process.&lt;br /&gt;&lt;br /&gt;And finally, I'm still unhappy that they don't ship with oracle hibernate mapping files in the community edition, even in version 3.2 .&lt;br /&gt;&lt;pre&gt;Caused by: java.lang.RuntimeException: Error occurred.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.lang.RuntimeException&lt;br /&gt;: Error parsing XPath '/sqlMapConfig/sqlMap'.  Cause: com.ibatis.sqlmap.client.SqlMapException: The &amp;lt;sqlmap&gt; resource is missing: alfresco/ibatis/#resource.&lt;br /&gt;dialect#/content-insert-SqlMap.xml&lt;br /&gt;     at org.alfresco.ibatis.HierarchicalSqlMapConfigParser.parse(HierarchicalSqlMapConfigParser.java:112)&lt;br /&gt;     at org.alfresco.ibatis.HierarchicalSqlMapClientFactoryBean.buildSqlMapClient(HierarchicalSqlMapClientFactoryBean.java:86)&lt;br /&gt;&amp;lt;/sqlmap&gt;&lt;/pre&gt;&lt;br /&gt;Like eclipse and maven, its painfull but theres nothing better :(&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-4307071172147581143?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/4307071172147581143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/07/more-alfresco-pain.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/4307071172147581143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/4307071172147581143'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/07/more-alfresco-pain.html' title='more alfresco pain'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-8936755449043138759</id><published>2009-07-08T21:58:00.000+02:00</published><updated>2009-07-21T22:30:35.147+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bazaar'/><title type='text'>explore bazaar</title><content type='html'>The up an coming bzr explorer is really promising to become: version control for human beings!&lt;br /&gt;&lt;br /&gt;I tried to do a commit in it today and the following was very nice:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;I can have the diff and the commit windows open simultaneously to be able to referback. (this was a problem before for me because both wants to lock to branch)&lt;/li&gt;&lt;li&gt;The auto-completion of words and filenames is awesome.&lt;/li&gt;&lt;/ul&gt;I tried to take a snapshot but [fn]+[prt_sc] launched infinite ksnapthots :( (but thats another story). After some reboots, I tried again:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vmFBfvw_rl0/Slb3nWCKWcI/AAAAAAAAAow/wBzVpOBsR8k/s1600-h/cool_diff_and_commit_with_autocompletion.jpeg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 250px;" src="http://4.bp.blogspot.com/_vmFBfvw_rl0/Slb3nWCKWcI/AAAAAAAAAow/wBzVpOBsR8k/s400/cool_diff_and_commit_with_autocompletion.jpeg" alt="" id="BLOGGER_PHOTO_ID_5356741062105389506" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;trying to find related revisions is almost impossible on the commandline (i.e. it took too long), but its so nice with qlog.&lt;/li&gt;&lt;li&gt;The commit progress is also ultra cool &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Wishlist:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Save draft commit messages eg. every 30 seconds (like gmail). Anything can happen while or after you typed the message and before you hit commit eg. a power failure.&lt;/li&gt;&lt;li&gt;  In my case, my computer basically crashed when I tried to make a snapshot and it launched the infinite ksnapshots. (bonus points for a [save now] button!)&lt;/li&gt;&lt;li&gt;[esc] should close qdiff windows&lt;/li&gt;&lt;li&gt;qannotate&lt;br /&gt;&lt;ul&gt;&lt;li&gt;ctrl+G should go to a line (like gannotate)&lt;/li&gt;&lt;li&gt;ctrl+F should start a search (like gannotate)&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;So far I made an alias to be able to launch it while at the branch in a terminal:&lt;br /&gt;alias be='bzr explore . &amp;amp;'&lt;br /&gt;But I suspect I'll have a bzr explore icon on my application launcher soon.&lt;br /&gt;&lt;br /&gt;Version control is getting so cool that I'm be tempted to quit coding and become a full-time version-controllist. :-P whooa endorphin rush..&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-8936755449043138759?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/8936755449043138759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/07/explore-bazaar.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8936755449043138759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8936755449043138759'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/07/explore-bazaar.html' title='explore bazaar'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_vmFBfvw_rl0/Slb3nWCKWcI/AAAAAAAAAow/wBzVpOBsR8k/s72-c/cool_diff_and_commit_with_autocompletion.jpeg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-8830815042981543310</id><published>2009-06-29T18:35:00.000+02:00</published><updated>2009-07-15T22:59:10.704+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Eclipse'/><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>eclipse galileo maven plugin</title><content type='html'>I tried to install the maven plugin from &lt;a href="http://m2eclipse.sonatype.org/update/"&gt;http://m2eclipse.sonatype.org/update/&lt;/a&gt; on the new eclipse today, but I got the following error:&lt;br /&gt;&lt;br /&gt;Error unzipping org.maven.ide.components.maven_embedder Unexpected end of ZLIB input stream&lt;br /&gt;&lt;br /&gt;Then I tried the dev version from &lt;a href="http://m2eclipse.sonatype.org/update-dev/"&gt;http://m2eclipse.sonatype.org/update-dev/&lt;/a&gt; and that seemed to work fine.&lt;br /&gt;&lt;br /&gt;[edit 2009-07-15] Since then the dev version started spewing out null pointer exceptions when using the maven-assembly-plugin, &lt;br /&gt;so I reverted back to the stable version and that seems to work now... Early adopters burn their fingers...&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-8830815042981543310?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/8830815042981543310/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/06/eclipse-galileo-maven-plugin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8830815042981543310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8830815042981543310'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/06/eclipse-galileo-maven-plugin.html' title='eclipse galileo maven plugin'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-8739120042239976928</id><published>2009-06-06T00:16:00.000+02:00</published><updated>2009-07-08T21:51:13.446+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Adsl'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Split local/international network traffic between different adsl accounts on kubuntu.</title><content type='html'>I was able to setup my internet on my laptop so that my local internet traffic gets charged at local rates (1/4 of the price for me).&lt;br /&gt;&lt;a href="http://mybroadband.co.za/vb/showthread.php?t=71477"&gt;This page&lt;/a&gt; helped me but it's a bit old and a little different to what I needed, so I thought I'll write down my steps (mostly copied and adjusted from said page).&lt;br /&gt;&lt;br /&gt;My setup:&lt;br /&gt;os = kubuntu 9.04 jaunty&lt;br /&gt;isp = webafrica and I'm very happy with them&lt;br /&gt;router = Mega 105 WR&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Some tutorials say you need to change your router mode to be bridged, but I found out that mine is automatically in semi-bridge mode: I setup my main account on the router which can be used by all the computers in the house, but on my laptop I can setup an additional connection which gets bridged through the router.&lt;/li&gt;&lt;li&gt;&lt;b&gt;sudo apt-get install ppp pppoeconf&lt;/b&gt;&lt;br /&gt;(ppp includes rp-pppoe.so, which is installed manually by the original instructions, but I didn't have to since its in ppp)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Run &lt;b&gt;pppoeconf&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Accept the defaults provided by pppoeconf and say yes to the start at boot option. &lt;/li&gt;&lt;li&gt;I just answered yes to the "'noauth' and 'defaultroute'" question, since I changed it later in any case.&lt;/li&gt;&lt;li&gt;It asks you for a username/password, this is your local adsl account authentication parameters as provided by your ISP.&lt;/li&gt;&lt;li&gt;Now test the connection with &lt;b&gt;sudo pon dsl-provider&lt;/b&gt;&lt;/li&gt;&lt;li&gt;If you list the interfaces with &lt;b&gt;ifconfig&lt;/b&gt; you should see ppp0 listed (and it should get an ip address).&lt;/li&gt;&lt;li&gt;Disconnect ppp0 before continuing. &lt;b&gt;sudo poff dsl-provider&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;Edit /etc/ppp/peers/dsl-provider by hand.&lt;br /&gt;Only the parameters that you need to check are listed.&lt;br /&gt;A hash before the line means the line is commented out.&lt;br /&gt;&lt;b&gt;sudo kate /etc/ppp/peers/dsl-provider&lt;/b&gt;&lt;pre&gt;noipdefault&lt;br /&gt;# defaultroute&lt;br /&gt;# replacedefaultroute&lt;br /&gt;# usepeerdns&lt;br /&gt;&lt;/pre&gt;So be sure that the above 3 parameters are commented out.&lt;br /&gt;(We only want to use the DNS servers provided from the ISP from the international traffic.)&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;sudo kate /etc/network/interfaces&lt;/span&gt;&lt;br /&gt;At the bottom of it you should have something like this:&lt;pre&gt;&lt;br /&gt;manual ppp0&lt;br /&gt;iface ppp0 inet ppp&lt;br /&gt;provider dsl-provider&lt;br /&gt;pre-up /sbin/ifconfig wlan0 up # line maintained by pppoeconf&lt;br /&gt;&lt;br /&gt;#auto wlan0&lt;br /&gt;#iface wlan0 inet manual&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;I make ppp0 manual since I need to wait for my wireless lan to connect before I can connect to the local internet. With this I can have full control, which is good since I don't want to leave it on too long because you are directly on the internet now and you're router's firewall isn't protecting you from local traffic.&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;I comment out the wlan0 section so that the network manager won't ignore it. You can remove it completely.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Test the connections to make sure there are no problems.&lt;br /&gt;&lt;tt&gt;sudo ifup ppp0&lt;/tt&gt;&lt;br /&gt;&lt;tt&gt;ifconfig&lt;/tt&gt; should list ppp0&lt;br /&gt;&lt;tt&gt;sudo ifdown ppp0&lt;/tt&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Static routing&lt;br /&gt;Now the fun part where we actually get the traffic flowing.&lt;br /&gt;We need to tell the system to route all the South African traffic through the ppp0 interface instead of the wlan0 or eth0 interface.&lt;br /&gt;We'll use static routing to do this.&lt;br /&gt;&lt;br /&gt;Download Armin's list of local routes from &lt;a href="http://alm.za.net/ip/localroutes4.txt"&gt;http://alm.za.net/ip/localroutes4.txt&lt;/a&gt;&lt;br /&gt;The list is updated every 24 hours and we'll use it instead of duplicating his work.&lt;br /&gt;It contains all the network addresses that are specific to South Africa.&lt;br /&gt;Save the file in /tmp and then move it to /etc/ppp/ :&lt;br /&gt;sudo mv /tmp/localroutes4.txt /etc/ppp&lt;br /&gt;&lt;br /&gt;We need to create a small script that tells the system to add the routes to the interface when if comes up.&lt;br /&gt;Create a file in /etc/ppp/ip-up.d/ called "zanet".&lt;br /&gt;sudo kate /etc/ppp/ip-up.d/zanet&lt;br /&gt;&lt;br /&gt;Paste the following in the file :&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;#!/bin/sh -e&lt;br /&gt;# Called when a new interface comes up&lt;br /&gt;&lt;br /&gt;# add custom routing for zanet (local South Africa) on ppp0 device&lt;br /&gt;if [ "$PPP_IFACE" = "ppp0" ]&lt;br /&gt;then&lt;br /&gt;cat /etc/ppp/localroutes4.txt | sed s/'\$LOCAL'/$PPP_IFACE/ | while read localroute&lt;br /&gt;do&lt;br /&gt;# Change net to host for /32 addresses&lt;br /&gt;# This is a bug workaround - Armin must fix his list script.&lt;br /&gt;if [[ $localroute =~ "/32" ]]&lt;br /&gt;then&lt;br /&gt;localroute=`echo $localroute | sed s/net/host/`&lt;br /&gt;$localroute&lt;br /&gt;else&lt;br /&gt;$localroute&lt;br /&gt;fi&lt;br /&gt;done&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# We need to route DNS lookups via ppp0 (SAIX) instead of ppp1 (IS)&lt;br /&gt;# The static routing will cause the DNS lookups to be made through the local IS&lt;br /&gt;# connection and the SAIX network will block the lookups because they don't originate&lt;br /&gt;# from their network.&lt;br /&gt;&lt;br /&gt;#uncomment the following if you are using different isps:&lt;br /&gt;&lt;br /&gt;#if [ "$PPP_IFACE" = "wlan0" ]&lt;br /&gt;#then&lt;br /&gt;#cat /etc/resolv.conf | sed s/nameserver// | sed s/' '// | while read nameserver&lt;br /&gt;#do&lt;br /&gt;#route add -host $nameserver $PPP_IFACE&lt;br /&gt;#done&lt;br /&gt;#fi&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Make sure you can execute it:&lt;pre&gt;&lt;br /&gt;sudo chmod a+x /etc/ppp/ip-up.d/zanet&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Static routing should now work unless you made a mistake or I forgot something.&lt;br /&gt;Test it by starting ppp0. (&lt;tt&gt;sudo ifup ppp0&lt;/tt&gt;)&lt;br /&gt;If you run &lt;tt&gt;route -n&lt;/tt&gt; you should see huge list of static routes for the ppp0 interface and only a few when it is not started.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Automatic localroute updates&lt;br /&gt;You could get wget to retrieve a new list of local routes every so often manually or with a cronjob. You can stick the following script in a executable file in /etc/cron.monthly/ eg. /etc/cron.monthly/update-local-routes:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt; cd /etc/ppp&lt;br /&gt; wget http://alm.za.net/ip/localroutes4.txt&lt;br /&gt;&lt;br /&gt; # If there is already a localroutes file replace it with the new one.&lt;br /&gt; if [ -f /etc/ppp/localroutes4.txt.1 ]&lt;br /&gt; then&lt;br /&gt; # Make sure that we didn't get an empty or nearly empty list&lt;br /&gt; # More than 1000 characters will qualify as a valid amount of local routes&lt;br /&gt; # Rather keep the old list if the new one is too small&lt;br /&gt; if [ `cat /etc/ppp/localroutes4.txt | wc -c` -gt 1000 ]&lt;br /&gt; then&lt;br /&gt; mv localroutes4.txt.1 localroutes4.txt&lt;br /&gt; fi&lt;br /&gt; fi&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Make sure its executable:&lt;br /&gt;&lt;pre&gt;sudo chmod a+x /etc/cron.monthly/update-local-routes&lt;/pre&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Lastly I use &lt;tt&gt;iftop -i ppp0&lt;/tt&gt; to monitor and make 100% sure where my traffic is being routed.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-8739120042239976928?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/8739120042239976928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/06/split-localinternational-network.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8739120042239976928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8739120042239976928'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/06/split-localinternational-network.html' title='Split local/international network traffic between different adsl accounts on kubuntu.'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-8990972445668305686</id><published>2009-06-04T13:18:00.000+02:00</published><updated>2009-06-04T15:36:16.674+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Glassfish'/><title type='text'>Howto setup up a queue in glassfish.</title><content type='html'>This is my first attempt to setup queues on glassfish, so its probably not the best way, but its simple and it works for me for now.&lt;br /&gt;Using the glassfish admin console:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;* Configuration -&gt; Java message Service -&gt; Physical Destinations&lt;br /&gt;  - [New]&lt;br /&gt;  - Give it a name eg. my_test_queue and select queue.&lt;br /&gt;  - [Ok]&lt;br /&gt;* Resources -&gt; JMS Resources -&gt; Destination Resources&lt;br /&gt;  - [New]&lt;br /&gt;  - JNDI Name: queues/my_test_queue&lt;br /&gt;  - Physical Destination Name: my_test_queue  (must be the name you set above)&lt;br /&gt;  - Resource Type: javax.jms.Queue&lt;br /&gt;  - [Ok]&lt;br /&gt;* Resources -&gt; JMS Resources -&gt; Connection Factories&lt;br /&gt;  (you only need one connection factory per type, not one per queue)&lt;br /&gt;  - [New]&lt;br /&gt;  - JNDI Name: connectionfactories/queueconnectionfactory&lt;br /&gt;  - Resource Type: javax.jms.QueueConnectionFactory&lt;br /&gt;  - [Ok]&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-8990972445668305686?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/8990972445668305686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/06/howto-setup-up-queue-in-glassfish.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8990972445668305686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8990972445668305686'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/06/howto-setup-up-queue-in-glassfish.html' title='Howto setup up a queue in glassfish.'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-4166751498749079035</id><published>2009-05-23T19:34:00.000+02:00</published><updated>2009-05-23T19:42:45.248+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Kubuntu'/><title type='text'>Amarok 1.4 for me on Kubuntu Jaunty</title><content type='html'>After playing a little with the new shiny Amarok 2 in Kubuntu 9.04&lt;span style="font-family: monospace;"&gt;,&lt;br /&gt;I decided to go back to 1.4 for now.&lt;br /&gt;I have been using Amarok to subscribe to podcast rss feeds&lt;br /&gt;to download the latest episodes, and then to transcode&lt;br /&gt;it to my ipod (it was a gift which I wasn't going to look in the mouth ok). This functionality did not seem to be in the shipped Amarok2 so I needed to go back.&lt;br /&gt;&lt;br /&gt;Its quite easy to go back, just add the following source to your sources.list, update and install amarok14:&lt;br /&gt;&lt;/span&gt;deb &lt;a href="http://ppa.launchpad.net/bogdanb/ppa/ubuntu"&gt;http://ppa.launchpad.net/bogdanb/ppa/ubuntu&lt;/a&gt; &lt;span id="series-deb"&gt;jaunty&lt;/span&gt; main&lt;br /&gt;&lt;br /&gt;For more info see:&lt;br /&gt;https://edge.launchpad.net/~bogdanb/+archive/ppa&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-4166751498749079035?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/4166751498749079035/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/05/amarok-14-for-me-on-kubuntu-jaunty.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/4166751498749079035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/4166751498749079035'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/05/amarok-14-for-me-on-kubuntu-jaunty.html' title='Amarok 1.4 for me on Kubuntu Jaunty'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-6718777829069255066</id><published>2009-05-20T14:16:00.000+02:00</published><updated>2009-05-20T14:39:07.829+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='hibernate'/><title type='text'>Hibernate freeze</title><content type='html'>All of a sunday my hibernate queries started to freeze when I try to run my unit tests at:&lt;br /&gt;&lt;blockquote&gt;SocketInputStream.socketRead0(FileDescriptor, byte[], int, int, int) line: not available [native method]    &lt;/blockquote&gt;Turns out I had the table or something locked in Sqldeveloper. I killed that session and everything started to work again.&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-6718777829069255066?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/6718777829069255066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/05/hibernate-freeze.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/6718777829069255066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/6718777829069255066'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/05/hibernate-freeze.html' title='Hibernate freeze'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-7822182155048987578</id><published>2009-05-11T04:43:00.000+02:00</published><updated>2011-05-09T04:47:23.434+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bazaar'/><category scheme='http://www.blogger.com/atom/ns#' term='sourceforge'/><title type='text'>Bazaar on sourceforge.net</title><content type='html'>&lt;div&gt;&lt;div&gt;I've bean looking for a place to host a modular project which is being version controlled with Bazaar. I would have loved to use Launchpad, but I can't because of the following:&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Launchpad only allows one level of branches (no hierarchy). My project is made up of a lots of sub-projects: I have a main branch which controls the sub-projects as &lt;a href="https://launchpad.net/bzr-externals"&gt;bzr-externals&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Launchpad does not have a nice project wiki or any custom web content.&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I saw that sourceforge.net now supports Bazaar, but I was a bit worried when I saw on their &lt;a href="https://sourceforge.net/apps/trac/sourceforge/wiki/Bazaar"&gt;wiki&lt;/a&gt; that they only support Bazaar version 1.10 . It turns out that it is thankfully only an outdated doc: &lt;/div&gt;&lt;div&gt;&lt;pre&gt;[me@shell-21002 ~]$ bzr --version&lt;br /&gt;Bazaar (bzr) 2.1.1&lt;br /&gt;Python interpreter: /usr/bin/python 2.4.3&lt;br /&gt;Python standard library: /usr/lib64/python2.4&lt;br /&gt;Platform: Linux-2.6.18-...&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;(I don't seem to have rights to correct the wiki and I could not google the current version, so I'm documenting it here for you.)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I did test that I could upload nested branches. But unfortunately the code browsing tool on Sourceforge (loggerhead) does not display the nested branches :( Hopefully that is fixable..&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-7822182155048987578?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/7822182155048987578/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/05/bazaar-on-sourceforgenet.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/7822182155048987578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/7822182155048987578'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/05/bazaar-on-sourceforgenet.html' title='Bazaar on sourceforge.net'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-6507130937128858447</id><published>2009-04-16T23:32:00.001+02:00</published><updated>2009-04-16T23:35:03.127+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Word of the week'/><title type='text'>Word of the week: Slack</title><content type='html'>This one was inspired by my friend Richard Kolb's favorite distro: &lt;a href="http://www.slackware.com/"&gt;http://www.slackware.com/&lt;/a&gt;&lt;br /&gt;which by the way has a new South-african derivative: &lt;a href="http://www.kongoni.co.za/"&gt;http://www.kongoni.co.za/&lt;/a&gt;&lt;br /&gt;This may not be that informative, but its still fun to call slackware lazy, weak, tardy, late, &lt;span class="secondary-bf"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;idle, quiet&lt;span class="secondary-bf"&gt;&lt;span&gt;&lt;/span&gt; and &lt;/span&gt;slowing :)&lt;br /&gt;&lt;h2 class="me"&gt;slack&lt;/h2&gt; &lt;span class="pronset"&gt;&lt;span class="show_spellpr" style="display: inline;"&gt;&lt;span class="pron_toggle" style="display: inline;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; –adjective  &lt;div class="body"&gt;&lt;div class="pbk"&gt;&lt;span class="pg"&gt;&lt;/span&gt;&lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;1.&lt;/td&gt; &lt;td&gt;not tight, taut, firm, or tense; loose: &lt;span class="ital-inline"&gt;a slack rope. &lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;2.&lt;/td&gt; &lt;td&gt;negligent; careless; remiss: &lt;span class="ital-inline"&gt;slack proofreading. &lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;3.&lt;/td&gt; &lt;td&gt;slow, sluggish, or indolent: &lt;span class="ital-inline"&gt;He is slack in answering letters. &lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;4.&lt;/td&gt; &lt;td&gt;not active or busy; dull; not brisk: &lt;span class="ital-inline"&gt;the slack season in an industry. &lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;5.&lt;/td&gt; &lt;td&gt;moving very slowly, as the tide, wind, or water.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;6.&lt;/td&gt; &lt;td&gt;weak; lax.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;7.&lt;/td&gt; &lt;td&gt;&lt;span class="labset"&gt;&lt;span class="ital-inline"&gt;Nautical&lt;/span&gt;. &lt;/span&gt;&lt;span&gt; &lt;a href="http://dictionary.reference.com/search?q=easy&amp;amp;db=luna" style="font-variant: small-caps;"&gt;easy&lt;/a&gt; &lt;span&gt;&lt;span class="dn"&gt;(&lt;/span&gt;def. 15a&lt;span class="dn"&gt;)&lt;/span&gt;&lt;/span&gt;. &lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt; &lt;div class="pbk"&gt;&lt;span class="pg"&gt;–adverb &lt;/span&gt;&lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;8.&lt;/td&gt; &lt;td&gt;in a slack manner.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt; &lt;div class="pbk"&gt;&lt;span class="pg"&gt;–noun &lt;/span&gt;&lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;9.&lt;/td&gt; &lt;td&gt;a slack condition or part.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;10.&lt;/td&gt; &lt;td&gt;the part of a rope, sail, or the like, that hangs loose, without strain upon it.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;11.&lt;/td&gt; &lt;td&gt;a decrease in activity, as in business or work: &lt;span class="ital-inline"&gt;a sudden slack in output. &lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;12.&lt;/td&gt; &lt;td&gt;a period of decreased activity.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;13.&lt;/td&gt; &lt;td&gt;&lt;span class="labset"&gt;&lt;span class="ital-inline"&gt;Geography&lt;/span&gt;. &lt;/span&gt;a cessation in a strong flow, as of a current at its turn.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;14.&lt;/td&gt; &lt;td&gt;a depression between hills, in a hillside, or in the land surface.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;15.&lt;/td&gt; &lt;td&gt;&lt;span class="labset"&gt;&lt;span class="ital-inline"&gt;Prosody&lt;/span&gt;. &lt;/span&gt;(in sprung rhythm) the unaccented syllable or syllables.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;16.&lt;/td&gt; &lt;td&gt;&lt;span class="labset"&gt;&lt;span class="ital-inline"&gt;British&lt;/span&gt; &lt;span class="ital-inline"&gt;Dialect&lt;/span&gt;. &lt;/span&gt;a morass; marshy ground; a hollow or dell with soft, wet ground at the bottom.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt; &lt;div class="pbk"&gt;&lt;span class="pg"&gt;–verb (used with object) &lt;/span&gt;&lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;17.&lt;/td&gt; &lt;td&gt;to be remiss in respect to (some matter, duty, right, etc.); shirk; leave undone: &lt;span class="ital-inline"&gt;He slacked the most important part. &lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;18.&lt;/td&gt; &lt;td&gt;to make or allow to become less active, vigorous, intense, etc.; relax (efforts, labor, speed, etc.); lessen; moderate (often fol. by &lt;span class="ital-inline"&gt;up&lt;/span&gt;).&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;19.&lt;/td&gt; &lt;td&gt;to make loose, or less tense or taut, as a rope; loosen (often fol. by &lt;span class="ital-inline"&gt;off&lt;/span&gt; or &lt;span class="ital-inline"&gt;out&lt;/span&gt;).&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;20.&lt;/td&gt; &lt;td&gt;to slake (lime).&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt; &lt;div class="pbk"&gt;&lt;span class="pg"&gt;–verb (used without object) &lt;/span&gt;&lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;21.&lt;/td&gt; &lt;td&gt;to be remiss; shirk one's duty or part.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;22.&lt;/td&gt; &lt;td&gt;to become less active, vigorous, rapid, etc. (often fol. by &lt;span class="ital-inline"&gt;up&lt;/span&gt;): &lt;span class="ital-inline"&gt;Business is slacking up. &lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;23.&lt;/td&gt; &lt;td&gt;to become less tense or taut, as a rope; to ease off.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;24.&lt;/td&gt; &lt;td&gt;to become slaked, as lime.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt;&lt;span class="sectionLabel"&gt;—Idiom&lt;/span&gt;&lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="35"&gt;25.&lt;/td&gt; &lt;td&gt;&lt;span class="secondary-bf"&gt;take up the slack, &lt;/span&gt;&lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="25"&gt;a.&lt;/td&gt; &lt;td&gt;to pull in or make taut a loose section of a rope, line, wire, etc.: &lt;span class="ital-inline"&gt;Take up the slack before releasing the kite. &lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table class="luna-Ent"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="dnindex" width="25"&gt;b.&lt;/td&gt; &lt;td&gt;to provide or compensate for something that is missing or incomplete: &lt;span class="ital-inline"&gt;New sources of oil will take up the slack resulting from the embargo. &lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt;    &lt;hr class="ety"&gt;  &lt;div class="ety"&gt; &lt;b&gt;Origin: &lt;/b&gt;&lt;br /&gt;&lt;span class="rom-inline"&gt;bef. 900; &lt;/span&gt;ME &lt;span class="ital-inline"&gt;slac&lt;/span&gt; (adj.), OE &lt;span class="ital-inline"&gt;sleac, slæc;&lt;/span&gt; c. ON &lt;span class="ital-inline"&gt;slakr,&lt;/span&gt; OHG &lt;span class="ital-inline"&gt;slach,&lt;/span&gt; L &lt;span class="ital-inline"&gt;laxus&lt;/span&gt; &lt;span&gt; &lt;a href="http://dictionary.reference.com/search?q=lax&amp;amp;db=luna" style="font-variant: small-caps;"&gt;lax&lt;/a&gt; &lt;/span&gt;&lt;img class="luna-Img" src="http://cache.lexico.com/dictionary/graphics/luna/thinsp.png" alt="" border="0" /&gt;&lt;/div&gt; &lt;br /&gt;&lt;span class="sectionLabel"&gt;Related forms:&lt;/span&gt;&lt;br /&gt;  &lt;div class="roset"&gt;&lt;span class="secondary-bf"&gt;slack⋅ing⋅ly, &lt;/span&gt;&lt;span class="pg"&gt;adverb &lt;/span&gt;&lt;/div&gt;   &lt;div class="roset"&gt;&lt;span class="secondary-bf"&gt;slackly, &lt;/span&gt;&lt;span class="pg"&gt;adverb &lt;/span&gt;&lt;/div&gt;   &lt;div class="roset"&gt;&lt;span class="secondary-bf"&gt;slackness, &lt;/span&gt;&lt;span class="pg"&gt;noun &lt;/span&gt;&lt;/div&gt; &lt;br /&gt; &lt;b&gt;&lt;span class="sectionLabel"&gt;Synonyms:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="secondary-bf"&gt;&lt;span&gt;1.&lt;/span&gt; &lt;/span&gt;relaxed. &lt;span class="secondary-bf"&gt;&lt;span&gt;2.&lt;/span&gt; &lt;/span&gt;lazy, weak. &lt;span class="secondary-bf"&gt;&lt;span&gt;3.&lt;/span&gt; &lt;/span&gt;dilatory, tardy, late. &lt;span class="secondary-bf"&gt;&lt;span&gt;4.&lt;/span&gt; &lt;/span&gt;idle, quiet. &lt;span class="secondary-bf"&gt;&lt;span&gt;11.&lt;/span&gt; &lt;/span&gt;slowing, relaxation. &lt;span class="secondary-bf"&gt;&lt;span&gt;17.&lt;/span&gt; &lt;/span&gt;neglect. &lt;span class="secondary-bf"&gt;&lt;span&gt;18.&lt;/span&gt; &lt;/span&gt;reduce, slacken. &lt;span class="secondary-bf"&gt;&lt;span&gt;21.&lt;/span&gt; &lt;/span&gt;malinger.&lt;br /&gt;  &lt;pre class="moz-signature" cols="1000"&gt;http://dictionary.reference.com/search?q=slack&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-6507130937128858447?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/6507130937128858447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/04/word-of-week-slack.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/6507130937128858447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/6507130937128858447'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/04/word-of-week-slack.html' title='Word of the week: Slack'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-5870352566355387983</id><published>2009-04-16T11:43:00.002+02:00</published><updated>2009-04-16T13:37:38.690+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>sweet ubuntu commandline network trafic monitor</title><content type='html'>sudo apt-get install iftop&lt;br /&gt;sudo iftop -Bp&lt;br /&gt;&lt;br /&gt;I looked at the other recommendations at:&lt;br /&gt;&lt;a href="http://ubuntuforums.org/showthread.php?t=965242"&gt;http://ubuntuforums.org/showthread.php?t=965242&lt;/a&gt;&lt;br /&gt;but I thing I prefer iftop at the moment.&lt;br /&gt;&lt;br /&gt;I wish I could see which processes are using the bandwidth,&lt;br /&gt;but that would probably involve a lot of magic.&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-5870352566355387983?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/5870352566355387983/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/04/sweet-ubuntu-commandline-network-trafic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/5870352566355387983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/5870352566355387983'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/04/sweet-ubuntu-commandline-network-trafic.html' title='sweet ubuntu commandline network trafic monitor'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-3857438587311486717</id><published>2009-04-14T13:24:00.010+02:00</published><updated>2009-04-16T14:56:56.952+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Alfresco'/><category scheme='http://www.blogger.com/atom/ns#' term='Glassfish'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Alfresco pain</title><content type='html'>After struggling a lot, I finally got Alfresco running on my Glassfish (v2ur2-b04),&lt;br /&gt;for a couple of minutes then it broke again. I'll update this if I get it working one day.&lt;br /&gt;&lt;br /&gt;First of all, look at the following for how to install using an oracle db.&lt;br /&gt;&lt;a href="http://wiki.alfresco.com/wiki/Database_Configuration"&gt;http://wiki.alfresco.com/wiki/Database_Configuration&lt;/a&gt;&lt;br /&gt;Which worked mostly, except it seems like you have to use the AlfrescoOracle9Dialect eg.:&lt;br /&gt;&lt;blockquote&gt;hibernate.dialect=org.alfresco.repo.domain.hibernate.dialect.AlfrescoOracle9Dialect&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Initially I got the following exceptions:&lt;br /&gt;&lt;blockquote&gt;Invocation of init method failed; nested exception is&lt;span style="font-weight: bold;"&gt; java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter&lt;/span&gt;.&lt;init&gt;(Z)V&lt;br /&gt;Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.&lt;init&gt;&lt;br /&gt;&lt;br /&gt;and&lt;br /&gt;&lt;/init&gt;&lt;/init&gt;&lt;/blockquote&gt;&lt;blockquote&gt;Invocation of init method failed; nested exception is &lt;span style="font-weight: bold;"&gt;java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit&lt;/span&gt;(IILjava/lang/String;Lj&lt;br /&gt;ava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V&lt;br /&gt;Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit&lt;/blockquote&gt;This was fixed by putting the correct hibernate jars in the domain1/lib and domain1/lib/ext  folders.&lt;br /&gt;I put asm-attrs.jar,  cglib-2.1.3.jar, ojdbc14_g.jar (for oracle) in domain1/lib and&lt;br /&gt;asm.jar, serializer.jar, xalan.jar in domain1/lib/ext&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Next when I tried to log into the share webapp, I got the following:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;"The remote server may be unavailable or your authentication details have not been recognized."&lt;/span&gt;&lt;br /&gt;Thanks to the following link I figured out that alfresco does not like to run on a different port the server port is hardcoded into the war files in several places:&lt;br /&gt;&lt;a href="http://forums.alfresco.com/en/viewtopic.php?f=8&amp;amp;t=13625&amp;amp;start=15&amp;amp;st=0&amp;amp;sk=t&amp;amp;sd=a&amp;amp;hilit=The+remote+server+may+be+unavailable+or+your+authentication+details+have+not+been+recognised#p45826"&gt;http://forums.alfresco.com/en/viewtopic.php?f=8&amp;amp;t=13625&amp;amp;start=15&amp;amp;st=0&amp;amp;sk=t&amp;amp;sd=a&amp;amp;hilit=The+remote+server+may+be+unavailable+or+your+authentication+details+have+not+been+recognised#p45826&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;Since I'd like to run it on a non-default port, I updated the port number by replacing all occurrences of 8080 with 12080.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;I'm lazy so I did it like this:&lt;br /&gt;&lt;blockquote&gt;    $ cd domain1&lt;br /&gt; $ replace 8080 12080 -- `find -iname "*.wsdl"`&lt;br /&gt; $ replace 8080 12080 -- `find -iname "*.xml"`&lt;br /&gt; $ replace 8080 12080 -- `find -iname "*.ftl"`&lt;/blockquote&gt;(btw this replace command I used is part of mysql-server-5.0: /usr/bin/replace)&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;See &lt;/span&gt;&lt;a href="http://wiki.alfresco.com/wiki/Changing_Default_Port_Configuration"&gt;http://wiki.alfresco.com/wiki/Changing_Default_Port_Configuration&lt;/a&gt; for more info.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;Next I got this exception in my logs:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;org.alfresco.web.framework.exception.RendererExecutionException: Unable to execute 'body' JSP include: /site-index.jsp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Caused by: java.lang.ClassCastException: org.alfresco.tools.FakeHttpServletResponse cannot be cast to org.apache.coyote.tomcat5.CoyoteResponseFacade&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I found a fixed up version of alfresco-web-framework.jar which goes in domain1/applications/j2ee-modules/share/WEB-INF/lib on this forum:&lt;br /&gt;&lt;a href="http://forums.java.net/jive/thread.jspa?threadID=58906"&gt;http://forums.java.net/jive/thread.jspa?threadID=58906&lt;/a&gt;&lt;br /&gt;Now I could actually log in.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;But somewere along the line I got the following:&lt;br /&gt;&lt;/span&gt;&lt;pre&gt;&lt;span&gt;&lt;span style="font-family:Courier;"&gt;org.alfresco.web.framework.exception.RendererExecutionException: FreemarkerProcessor failed to process template: org/alfresco/global/slingshot-login.ftl&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span&gt;&lt;span style="font-family:Courier;"&gt;Caused by: freemarker.core.InvalidReferenceException: on line 32, column 70 in org/alfresco/global/slingshot-login.ftl link not found.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;span&gt;&lt;span style="font-family:Courier;"&gt;on line 32, column 70 in org/alfresco/global/slingshot-login.ftl link not found.&lt;br /&gt;The problematic instruction:&lt;br /&gt;----------&lt;br /&gt;==&gt; user-directive link [on line 32, column 70 in org/alfresco/global/slingshot-login.ftl]&lt;br /&gt;in user-directive template.body [on line 6, column 1 in org/alfresco/global/slingshot-login.ftl]&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;and what fixed it for me AFAICT is to add the sun-web.xml described here:&lt;br /&gt;&lt;a href="http://blogs.sun.com/mandy/entry/alfresco_on_glassfish_short_version"&gt;http://blogs.sun.com/mandy/entry/alfresco_on_glassfish_short_version&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;mm.. seems like everything is not working for me yet. I have to switch between the patched and the original versions of alfresco-web-framework.jar (i.e log in with the one and play further with the other)&lt;br /&gt;&lt;br /&gt;I'm doing a svn checkout at the moment to see if the developent verion works better on glassfish.&lt;br /&gt;Maybe I can submit some patches if necessary.&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-3857438587311486717?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/3857438587311486717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/04/alfresco-pain.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3857438587311486717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3857438587311486717'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/04/alfresco-pain.html' title='Alfresco pain'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-2420185696566297270</id><published>2009-04-08T13:27:00.003+02:00</published><updated>2009-04-09T13:49:58.287+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gmail'/><title type='text'>Looking for unread gmail</title><content type='html'>I was trying to get look at only my unread e-mail under a particular label. It turns out you can search your mail with is:unread&lt;br /&gt;&lt;br /&gt;There are other tricks too, have a look at this:&lt;br /&gt;&lt;a href="https://mail.google.com/support/bin/answer.py?answer=7190"&gt;https://mail.google.com/support/bin/answer.py?answer=7190&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-2420185696566297270?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/2420185696566297270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/04/looking-for-unread-gmail.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/2420185696566297270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/2420185696566297270'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/04/looking-for-unread-gmail.html' title='Looking for unread gmail'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-7230740350884167839</id><published>2009-04-08T13:04:00.002+02:00</published><updated>2009-04-09T14:16:44.594+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Jaunty Jackalope (Ubuntu 9.04) is coming soon</title><content type='html'>It is expected to be released on the 23rd of April 2009.&lt;br /&gt;&lt;BR/&gt;&lt;br /&gt;&lt;iframe src="http://www.ubuntu.com/files/countdown/904/countdown-9.04-1/countdown.html" name="ubuntucountdown" scrolling="no" width="180" frameborder="0" height="150"&gt;&amp;amp;amp;amp;lt;a href="http://www.ubuntu.com/"&amp;amp;amp;amp;gt;&amp;amp;amp;amp;lt;img src="http://www.ubuntu.com/files/countdown/904/countdown-9.04-1/00.png" alt="Ubuntu 9.04 - on desktops, netbooks, servers and in the cloud" width="180" height="150" border="0" /&amp;amp;amp;amp;gt;&amp;amp;amp;amp;lt;/a&amp;amp;amp;amp;gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-7230740350884167839?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/7230740350884167839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/04/jaunty-jackalope-ubuntu-904-is-coming.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/7230740350884167839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/7230740350884167839'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/04/jaunty-jackalope-ubuntu-904-is-coming.html' title='Jaunty Jackalope (Ubuntu 9.04) is coming soon'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-4572460138069583680</id><published>2009-03-17T19:34:00.005+02:00</published><updated>2009-03-18T20:09:02.555+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JNDI'/><category scheme='http://www.blogger.com/atom/ns#' term='hibernate'/><category scheme='http://www.blogger.com/atom/ns#' term='Glassfish'/><category scheme='http://www.blogger.com/atom/ns#' term='JPA'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Put persistence.xml in the war</title><content type='html'>I've been trying for days to get jpa, jndi, glassfish, hibernate and oracle to play together.&lt;br /&gt;&lt;br /&gt;The main problem turns out that you have to put the persistence.xml file in your war file (project/web-root/WEB-INF/src/META-INF) not in your jar file.&lt;br /&gt;I'll probably investigate more to see if it is somehow possible to put it in the jar, but for now my problems are solved.&lt;br /&gt;&lt;br /&gt;... after some further experimentation I was able to put it in the jar, but I'm using &amp;lt;mapping-file&gt;xx_orm.xml&amp;lt;/mapping-file&gt; now.&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-4572460138069583680?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/4572460138069583680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/03/put-persistencexml-in-war.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/4572460138069583680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/4572460138069583680'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/03/put-persistencexml-in-war.html' title='Put persistence.xml in the war'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-4960017267762072867</id><published>2009-02-14T03:01:00.003+02:00</published><updated>2009-07-29T15:31:08.191+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JNDI'/><category scheme='http://www.blogger.com/atom/ns#' term='Glassfish'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>No PasswordCredential found</title><content type='html'>I got the exception below while trying to set up a JNDI database configuration in glasshish to point to my local Oracle XE installation. Google didn't help so I'm posting it here for in case it happens to me again.&lt;br /&gt;I didn't actually figure out how to resolve it. I fiddled around in domains/domain1/config/domain.xml a little, but in the end I think &lt;span style="font-weight: bold;"&gt;restarting Glassfish&lt;/span&gt; did the trick for me.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;INFO: RAR7099: The mcf being used to allocate the connection and the MCF in the pool are not equal.&lt;br /&gt;WARNING: RAR5038:Unexpected exception while creating resource for pool aum_pool. Exception : No PasswordCredential found&lt;br /&gt;WARNING: RAR5117 : Failed to obtain/create connection from connection pool [ aum_pool ]. Reason : No PasswordCredential found&lt;br /&gt;WARNING: RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: No PasswordCredential found]&lt;br /&gt;WARNING: java.sql.SQLException: Error in allocating a connection. Cause: No PasswordCredential found&lt;br /&gt;at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:115)&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-4960017267762072867?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/4960017267762072867/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/02/no-passwordcredential-found.html#comment-form' title='19 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/4960017267762072867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/4960017267762072867'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/02/no-passwordcredential-found.html' title='No PasswordCredential found'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>19</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-8149272435341223217</id><published>2009-02-13T00:19:00.006+02:00</published><updated>2010-10-20T10:39:49.258+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaEE'/><category scheme='http://www.blogger.com/atom/ns#' term='Eclipse'/><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>Eclipse Dynamic Web Project + Maven2 = initial pain</title><content type='html'>Eclipse 3.4 ganymede gave me a VERY frustrated day yet again :(&lt;br /&gt;I spent most of the day convincing it to to install the m2eclipse plugin.&lt;br /&gt;It kept on telling me:&lt;br /&gt;&lt;blockquote&gt;No repository found containing: org.maven.ide.components.dependency_tree/osgi.bundle&lt;/blockquote&gt;So after updating all my eclipse plugins and also using the &lt;a href="http://m2eclipse.sonatype.org/update-dev/"&gt;Maven Integration for Eclipse &lt;span style="font-weight: bold;"&gt;Dev&lt;/span&gt; Update Site&lt;/a&gt; and restarting Eclipse, it finally decided it will install.&lt;br /&gt;(You almost want to swear at it and call it M$ Eclipse. Ok it wasn't that bad.)&lt;br /&gt;&lt;br /&gt;Next I came to a painful catch 22: I want a Dynamic Web Project so that my code can be automatically deployed on my Glassfish server. But I also want it to be a Maven project for all the maven goodness, without changing the standard maven code layout.&lt;br /&gt;&lt;br /&gt;I googled for hours but I only found my worst fear to be true: The only way to do it is to make it a web project, changing its structure to be in the maven layout and then activate it as a maven project. I improved on &lt;a href="http://www.devx.com/Java/Article/36785/1763/page/2"&gt;this&lt;/a&gt; site's methods a bit by doing some configs up front and thus avoiding to mess with them later. Here are my steps as good as I remembered:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;(I created a reference maven web project in eclipse, but it turned out that I didn't actually need it) &lt;/li&gt;&lt;li&gt;Create a new Eclipse Dynamic Web Project. Don't click finish, click [next]. &lt;/li&gt;&lt;li&gt;Set the 'Content Directory' to 'src/main/webapp' and the 'Java Source Directory' to 'src/main/java'. Now you can click [finish].&lt;/li&gt;&lt;li&gt;Right click on the project -&amp;gt; Maven -&amp;gt; Enable Dependancy Management.&lt;/li&gt;&lt;li&gt;Set the packaging to war, [finish].&lt;/li&gt;&lt;li&gt;You can delete the build folder now since maven already started to use the target folder.&lt;/li&gt;&lt;li&gt;&lt;div&gt;If you need the other standard maven source and target folers, you can add them manually or directly in .classpath:  &lt;br /&gt;&amp;lt;classpathentry kind="src" path="src/main/resources"&amp;gt;&lt;br /&gt;&amp;lt;classpathentry kind="src" output="target/test-classes"&lt;br /&gt;path="src/test/java"&amp;gt;&lt;br /&gt;&amp;lt;classpathentry kind="src" output="target/test-classes"&lt;br /&gt;path="src/test/resources"&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;From there I just had to set maven to use Java6 in pom.xml:&lt;br /&gt;&lt;div&gt;&amp;lt;build&amp;gt;&lt;br /&gt;&amp;lt;pluginmanagement&amp;gt;&lt;br /&gt;&amp;lt;plugins&amp;gt;&lt;br /&gt;&amp;lt;plugin&amp;gt;&lt;br /&gt;&amp;lt;groupid&amp;gt;org.apache.maven.plugins&amp;lt;/groupid&amp;gt;&lt;br /&gt;&amp;lt;artifactid&amp;gt;maven-compiler-plugin&amp;lt;/artifactid&amp;gt;&lt;br /&gt;&amp;lt;configuration&amp;gt;&lt;br /&gt;&amp;lt;source&amp;gt;1.6&amp;lt;/source&amp;gt;&lt;br /&gt;&amp;lt;target&amp;gt;1.6&amp;lt;/target&amp;gt;&lt;br /&gt;&amp;lt;/configuration&amp;gt;&lt;br /&gt;&amp;lt;/plugin&amp;gt;&lt;br /&gt;&amp;lt;/plugins&amp;gt;&lt;br /&gt;&amp;lt;/pluginmanagement&amp;gt;&lt;br /&gt;&amp;lt;/build&amp;gt;&lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Right click on the project -&amp;gt; Maven -&amp;gt; Update Dependancies.&lt;/li&gt;&lt;li&gt;I removed the following from &lt;span class="pf"&gt;.settings/org.eclipse.wst.common.component:&lt;/span&gt;&lt;pre&gt;&amp;lt;&lt;code&gt;wb-resource deploy-path="/WEB-INF/classes" source-path=&lt;b&gt;"/src/test/java"&lt;/b&gt;/&lt;/code&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;code&gt;wb-resource deploy-path="/WEB-INF/classes" source-path=&lt;b&gt;"/src/test/resources"&lt;/b&gt;/&lt;/code&gt;&amp;gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Then I could run maven tasks and also deploy it to my glassfish server (already set up to be managed by eclipse the normal JavaEE way (run as -&amp;gt; run on server))&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold;"&gt;sweetness!&lt;/span&gt; I love Eclipse+JavaEE+maven again.&lt;br /&gt;I think the WTP or whatever does the new 'Dynamic Web Project' wizard would do well to have a checkbox which can setup the web project in the maven sturcture for you.&lt;br /&gt;tomorrow (aka later today) I have to do the real work of actually putting an application into this empty shell.&lt;br /&gt;&lt;br /&gt;goodnight&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-8149272435341223217?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/8149272435341223217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/02/eclipse-dynamic-web-project-maven2-boom.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8149272435341223217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8149272435341223217'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/02/eclipse-dynamic-web-project-maven2-boom.html' title='Eclipse Dynamic Web Project + Maven2 = initial pain'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-3626820931945247368</id><published>2009-01-25T10:36:00.004+02:00</published><updated>2009-04-15T21:06:10.857+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WEB'/><category scheme='http://www.blogger.com/atom/ns#' term='The Bible'/><title type='text'>Putting God first.</title><content type='html'>Putting God first is my other new-years resolution/calling for 2009.&lt;br /&gt;I believe God is telling me the first step towards that is to start&lt;br /&gt;spending some time with Him and His Word in the mornings.&lt;br /&gt;I'm not a morning person so this is hard.&lt;br /&gt;&lt;br /&gt;I found this Psalm very inspiring, especially verses 2 and 8:&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;Psalm 101&lt;br /&gt;&lt;br /&gt;A Psalm by David.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;{101:1} I will sing of loving kindness and justice.&lt;br /&gt;  To you, Yahweh, I will sing praises.&lt;br /&gt;{101:2} I will be careful to live a blameless life.&lt;br /&gt;  When will you come to me?&lt;br /&gt;  I will walk within my house with a blameless heart.&lt;br /&gt;{101:3} I will set no vile thing before my eyes.&lt;br /&gt;  I hate the deeds of faithless men.&lt;br /&gt;  They will not cling to me.&lt;br /&gt;{101:4} A perverse heart will be far from me.&lt;br /&gt;  I will have nothing to do with evil.&lt;br /&gt;{101:5} I will silence whoever secretly slanders his neighbor.&lt;br /&gt;  I won't tolerate one who is haughty and conceited.&lt;br /&gt;{101:6} My eyes will be on the faithful of the land,&lt;br /&gt;  that they may dwell with me.&lt;br /&gt;He who walks in a perfect way,&lt;br /&gt;  he will serve me.&lt;br /&gt;{101:7} He who practices deceit won't dwell within my house.&lt;br /&gt;  He who speaks falsehood won't be established before my eyes.&lt;br /&gt;{101:8} Morning by morning, I will destroy all the wicked of the land;&lt;br /&gt;  to cut off all the workers of iniquity from Yahweh's city.&lt;br /&gt;&lt;br /&gt;(from the &lt;a href="http://ebible.org/"&gt;World English Bible: http://ebible.org/&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;it is time to seek Yahweh,  until he comes and rains righteousness on you. - Hosea 10:12&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;Or don’t you know that your body is a temple of the Holy Spirit which is in you, which you have from God? You are not your own, for you were bought with a price. Therefore glorify God in your body and in your spirit, which are God’s.&lt;br /&gt;1 Corinthians 6:19-20&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-3626820931945247368?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/3626820931945247368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/01/putting-god-first.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3626820931945247368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3626820931945247368'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/01/putting-god-first.html' title='Putting God first.'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-4128831215607549915</id><published>2009-01-16T14:31:00.003+02:00</published><updated>2009-01-16T14:52:18.378+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vsftp'/><title type='text'>vsftp is reporting times as GMT</title><content type='html'>&lt;pre&gt;It has baffled me for days that my ftp (vsftp) server shows&lt;br /&gt;file timestamps in the wrong timezone: UTC&lt;br /&gt;After some searching I found that there is a hidden option&lt;br /&gt;for setting it.&lt;br /&gt;(it isn't in the default config file /etc/vsftpd.conf)&lt;br /&gt;&lt;br /&gt;Q) Help! vsftpd is reporting times as GMT times and not local times!&lt;br /&gt;A) This behaviour can be changed with the setting "use_localtime=YES&lt;br /&gt;&lt;br /&gt;After adding that to the end of /etc/vsftpd.conf, and doing:&lt;br /&gt;sudo /etc/init.d/vsftpd restart&lt;br /&gt;&lt;/pre&gt;it works now!&lt;br /&gt;Now why isn't this the default???&lt;br /&gt;&lt;a href="http://www.flux.org/pipermail/linux/2004-June/015484.html"&gt;http://www.flux.org/pipermail/linux/2004-June/015484.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://vsftpd.beasts.org/vsftpd_conf.html"&gt;http://vsftpd.beasts.org/vsftpd_conf.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This got me thinking is it some sort of a standard that ftp servers return timestamps in utc?&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.flux.org/pipermail/linux/2004-June/015484.html"&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href="http://vsftpd.beasts.org/vsftpd_conf.html"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-4128831215607549915?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/4128831215607549915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2009/01/vsftp-is-reporting-times-as-gmt.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/4128831215607549915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/4128831215607549915'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2009/01/vsftp-is-reporting-times-as-gmt.html' title='vsftp is reporting times as GMT'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-4641797796931620229</id><published>2008-12-21T14:59:00.003+02:00</published><updated>2008-12-23T16:05:10.793+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='colemak'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>colemak</title><content type='html'>I have some time off from work and decided it is time to&lt;br /&gt;finally learn and use the &lt;a href="http://colemak.com/"&gt;colemak&lt;/a&gt; keyboard layout.&lt;br /&gt;This is one of my new year resolutions, and I cannot&lt;br /&gt;explain how exited I am about this. I'm actually typing&lt;br /&gt;this post using it, but its still slow going.&lt;br /&gt;&lt;br /&gt;I had some trouble getting it to work in ktouch, but I figured it out:&lt;br /&gt;&lt;a href="http://forum.colemak.com/viewtopic.php?pid=4378#p4378"&gt;http://forum.colemak.com/viewtopic.php?pid=4378#p4378&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I also had some trouble convincing kubuntu to handle the capslock key&lt;br /&gt;as a backspace key. The final solution for me was to make a little script,&lt;br /&gt;and get it to run when kde starts up.&lt;br /&gt;script:&lt;br /&gt;&lt;blockquote&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;#setup capslock -&gt; backspace (nice for colemak)&lt;br /&gt;xmodmap -e "remove Lock = Caps_Lock"&lt;br /&gt;xset r 66&lt;br /&gt;&lt;/blockquote&gt;run it automatically:&lt;br /&gt;system settings -&gt; advanced -&gt; autostart&lt;br /&gt;&lt;br /&gt;I practised for 30-45 minutes per day and I learn more keys every day.&lt;br /&gt;Some of the nice things about Colemak for me are:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;You learn the common keys first, so you can actually start typing quite soon. (You can type a lot by just using the home row.)&lt;/li&gt;&lt;li&gt;You are forced to touchtype, because looking at the keyboard doesn't help (assuming you didn't swap your keys, which I recommend.)&lt;/li&gt;&lt;li&gt;Most of your short cut keys are in the same position.&lt;/li&gt;&lt;/ol&gt;I found these finger stretches quite handy:&lt;a href="http://www.blogger.com/%20http://ergotrading.net/officeathlete/ergonomics/Nine_Stretches_and_Alternative_Instructions/FingerStretch.htm"&gt;&lt;br /&gt;&lt;/a&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://www.blogger.com/%20http://ergotrading.net/officeathlete/ergonomics/Nine_Stretches_and_Alternative_Instructions/FingerStretch.htm"&gt;http://ergotrading.net/officeathlete/ergonomics/Nine_Stretches_and_Alternative_Instructions/FingerStretch.htm&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.rsiwarrior.com/stretches.html"&gt;http://www.rsiwarrior.com/stretches.html&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.mayoclinic.com/health/stretching/WL00030"&gt;http://www.mayoclinic.com/health/stretching/WL00030&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-4641797796931620229?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/4641797796931620229/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/12/colemak.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/4641797796931620229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/4641797796931620229'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/12/colemak.html' title='colemak'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-7527855046764820929</id><published>2008-12-11T01:42:00.002+02:00</published><updated>2008-12-11T01:51:52.706+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>Symbolic link not allowed</title><content type='html'>I got the following nasty exception in my /var/log/apache2/error_log,&lt;br /&gt;and it took me too long to figure out how to fix it:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Symbolic link not allowed or link target not accessible: /opt/gforge5/plugins/scmbzr&lt;/blockquote&gt;&lt;br /&gt;Where in my case /opt/gforge5/plugins/scmbzr is a symlink to somewhere else.&lt;br /&gt;I checked and rechecked all my permissions, but nothing worked.&lt;br /&gt;&lt;br /&gt;So eventually it turns out that for every directory in the path where you have symlinks, you need something like:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;directory&gt;&lt;br /&gt;    Options FollowSymLinks&lt;br /&gt;&amp;lt;/directory&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;(because I have a symlink in plugins called scmbzr)&lt;br /&gt;&lt;br /&gt;Thanks a LOT to Ivan Van Laningham who mentioned this on some mailinglist:&lt;br /&gt;http://www.mail-archive.com/mailman-users@python.org/msg44430.html&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-7527855046764820929?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/7527855046764820929/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/12/symbolic-link-not-allowed.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/7527855046764820929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/7527855046764820929'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/12/symbolic-link-not-allowed.html' title='Symbolic link not allowed'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-802846539548146606</id><published>2008-12-08T09:34:00.002+02:00</published><updated>2008-12-08T09:45:32.310+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>A query which generates a sequence in Oracle</title><content type='html'>Sometimes for some reason, you may need a query in Oracle&lt;br /&gt;which can generate a sequence of numbers or dates.&lt;br /&gt;I found the following to be an elegant way of doing it:&lt;br /&gt;&lt;br /&gt;--count from 1 to 10&lt;br /&gt;SELECT rownum&lt;br /&gt;FROM dual&lt;br /&gt;CONNECT BY LEVEL &lt;= 10&lt;br /&gt;&lt;br /&gt;--even numbers from from 2 to 20&lt;br /&gt;SELECT rownum*2&lt;br /&gt;FROM dual&lt;br /&gt;CONNECT BY LEVEL &lt;= 10&lt;br /&gt;&lt;br /&gt;--get the previous 100 days&lt;br /&gt;SELECT trunc(sysdate) - rownum day&lt;br /&gt;FROM dual&lt;br /&gt;CONNECT BY LEVEL &lt;= 100&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-802846539548146606?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/802846539548146606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/12/query-which-generates-sequence-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/802846539548146606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/802846539548146606'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/12/query-which-generates-sequence-in.html' title='A query which generates a sequence in Oracle'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-3762605589932566436</id><published>2008-12-04T14:42:00.007+02:00</published><updated>2008-12-04T15:30:11.701+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bazaar'/><title type='text'>Whoohoo, I'm a hero today!</title><content type='html'>In order to answer somebody's question today, &lt;br /&gt;I figured out how to use bzr replay &lt;br /&gt;this made me his hero for a day,&lt;br /&gt;and this in turn has made *my* day!&lt;br /&gt;&lt;br /&gt;https://answers.edge.launchpad.net/bzr/+question/53349&lt;br /&gt;Markus Korn confirmed that the question is solved:&lt;br /&gt;Thanks a lot Marius, this initial commit did the trick,&lt;br /&gt;you are my hero of the day ;)&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-3762605589932566436?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/3762605589932566436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/12/whoohoo-im-hero-today.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3762605589932566436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3762605589932566436'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/12/whoohoo-im-hero-today.html' title='Whoohoo, I&apos;m a hero today!'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-2331240331590396284</id><published>2008-12-03T23:00:00.002+02:00</published><updated>2009-07-15T22:55:45.725+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle XE'/><title type='text'>oracle XE sessions and processes</title><content type='html'>&lt;style type="text/css"&gt; p, li { white-space: pre-wrap; } &lt;/style&gt; &lt;p style="margin: 0px; text-indent: 0px;"&gt;&lt;/p&gt;  &lt;p&gt;I found that my locally installed Oracle XE runs out of available connections far too soon for a php app I'm running. This results in some weird gui behaviour: some frames just don't load. Fortunately I found a way to sort of makes it a little better:&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;sqlplus system@XE&lt;br /&gt;show parameters sessions;&lt;br /&gt;alter system set sessions=250 &lt;br /&gt; scope=spfile;&lt;br /&gt;show parameters processes;&lt;br /&gt;alter system set processes=200&lt;br /&gt; scope=spfile;&lt;br /&gt;sudo /etc/init.d/oracle-xe restart&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;http://www.markcallen.com/oracle/oracle-xe-tuning&lt;!--EndFragment--&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-2331240331590396284?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/2331240331590396284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/12/oracle-xe-sessions-and-processes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/2331240331590396284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/2331240331590396284'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/12/oracle-xe-sessions-and-processes.html' title='oracle XE sessions and processes'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-7515267805308088906</id><published>2008-11-22T00:08:00.005+02:00</published><updated>2008-11-22T01:18:16.195+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='intrepid'/><category scheme='http://www.blogger.com/atom/ns#' term='Kubuntu'/><title type='text'>kubuntu intrepid automount external harddrive</title><content type='html'>The new intrepid kubuntu comes with a nice plasmoid where mountable partitions show up wehen you plug in USB flash disks and external hard drives.&lt;br /&gt;The problem is, they don't get mounted automatically, which is what I want (to streamline my backup process). Fortunitely I found this thread which gave me a hint:&lt;br /&gt;&lt;a href="http://kubuntuforums.net/forums/index.php?topic=3098289.0"&gt;http://kubuntuforums.net/forums/index.php?topic=3098289.0&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I first tried to download and build devicenotifier_automount from sources, but then after downloading a ton of -dev packages etc. and still not getting it to build, it dawned on me to look for a PPA. I found one:&lt;br /&gt;&lt;a href="https://launchpad.net/%7Esamrog131/+archive"&gt;https://launchpad.net/~samrog131/+archive&lt;/a&gt;&lt;br /&gt;I've installed it successfully but haven't restarted X &amp;amp; tested yet.&lt;br /&gt;Edit: so it seems you don't need to restart X, just use the `New Device Notifier Automount` plasmoid. Works great so far (2 minutes of testing:)&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-7515267805308088906?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/7515267805308088906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/11/kubuntu-intrepid-automount-external.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/7515267805308088906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/7515267805308088906'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/11/kubuntu-intrepid-automount-external.html' title='kubuntu intrepid automount external harddrive'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-8409988270348113935</id><published>2008-11-22T00:04:00.002+02:00</published><updated>2008-11-22T00:08:21.578+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><title type='text'>bash echo on</title><content type='html'>I've searched previously for a way to echo all the commands in a bash script.&lt;br /&gt;Today i found it on &lt;a href="http://www.gamedev.net/community/forums/topic.asp?topic_id=436332"&gt;a asp page&lt;/a&gt; of all places:&lt;br /&gt;&lt;br /&gt;set -o verbose #echo on&lt;br /&gt;set +o verbose #echo off&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you want to do it once to debug a script you can also do:&lt;br /&gt;bash -x your_script.sh&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-8409988270348113935?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/8409988270348113935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/11/bash-echo-on.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8409988270348113935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8409988270348113935'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/11/bash-echo-on.html' title='bash echo on'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-6569913057499402028</id><published>2008-11-20T01:17:00.005+02:00</published><updated>2008-11-20T01:39:26.353+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='word of the day'/><title type='text'>some words of the day</title><content type='html'>&lt;span style="font-size:78%;"&gt;I regularly send out a word of the day/week/month, so I decided to also publish them on my blog from now on. So without some further ado, here is the some of all:&lt;br /&gt;&lt;br /&gt;somebodies&lt;br /&gt;somebody&lt;br /&gt;someday&lt;br /&gt;somehow&lt;br /&gt;someone&lt;br /&gt;someones&lt;br /&gt;someplace&lt;br /&gt;something&lt;br /&gt;somethings&lt;br /&gt;sometime&lt;br /&gt;sometimes&lt;br /&gt;someway&lt;br /&gt;someways&lt;br /&gt;somewhat&lt;br /&gt;somewhats&lt;br /&gt;somewhere&lt;br /&gt;somewheres&lt;br /&gt;and of course my favourite: somesuch!&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;There you have it: all the words starting with some except the ones starting with somer. Like me, I know you always wanted to know that.&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:78%;"&gt;This list was compiled using the linux command `look some`.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;This post was inspired by my friend Sizwe Mabanga's saying: "Someway Somehow".&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-6569913057499402028?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/6569913057499402028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/11/some-words-of-day.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/6569913057499402028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/6569913057499402028'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/11/some-words-of-day.html' title='some words of the day'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-3767869934461888693</id><published>2008-11-18T15:20:00.002+02:00</published><updated>2008-11-18T15:23:44.898+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gdebi'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>gdebi</title><content type='html'>&lt;div class="description"&gt;Have you ever downloaded a .deb file and wondered what the best way to install it is?&lt;br /&gt;This little gem of an app, does the trick for me. It installs the file while resolving and installing all its dependencies!&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div class="description"&gt;gdebi is a simple tool to install deb files. It lets you install local deb packages resolving and installing its dependencies. &lt;/div&gt;        &lt;div class="description"&gt;&lt;p&gt;apt does the same, but only for remote (http, ftp)&lt;br /&gt;located packages.&lt;/p&gt; &lt;p&gt;It has a graphical user interface but can be used in your terminal.&lt;/p&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div class="description"&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://launchpad.net/gdebi"&gt;https://launchpad.net/gdebi&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-3767869934461888693?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/3767869934461888693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/11/gdebi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3767869934461888693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3767869934461888693'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/11/gdebi.html' title='gdebi'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-8749842986128424590</id><published>2008-11-12T13:53:00.003+02:00</published><updated>2009-04-16T22:49:28.093+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='kdirstat'/><category scheme='http://www.blogger.com/atom/ns#' term='Kubuntu'/><title type='text'>kdirstat</title><content type='html'>I recently went over to Kubuntu 8.10 (Intrepid), and I'm trying to get used to dolphin now. But it doesnt have the super cool "file size view" which I used to love in konqueror.&lt;br /&gt;The soloution is to install kdirstat, which pretty much has the same functionality.&lt;br /&gt;(Found it on &lt;a href="http://sathyasays.com/2008/03/19/find-out-how-much-space-each-file-is-occupying/"&gt;http://sathyasays.com/2008/03/19/find-out-how-much-space-each-file-is-occupying/&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://kdirstat.sourceforge.net/"&gt;http://kdirstat.sourceforge.net/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-8749842986128424590?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/8749842986128424590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/11/kdirstat.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8749842986128424590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8749842986128424590'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/11/kdirstat.html' title='kdirstat'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-8393392090636788447</id><published>2008-11-12T12:23:00.003+02:00</published><updated>2008-11-12T12:33:32.552+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='sles'/><title type='text'>java.net.SocketException: Too many open files</title><content type='html'>We hit this again on sles today, so I thought I should leave a note here for posterity.&lt;br /&gt;java.io.FileNotFoundException: /home/tcmas/tomcat/5.0.28/work/Catalina/localhost/balancer/SESSIONS.ser (Too many open files)&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;It might be caused by the small amount of memory available! &lt;/span&gt;so increasing that, may fix it.&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;It may also be the the number of open files limit on linux:&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"&gt;Increase file descriptor limit under Linux to prevent java.net.SocketException: Too many open files&lt;br /&gt;&lt;h4&gt;Get current limit:&lt;/h4&gt;&lt;p&gt;&lt;code&gt;&lt;span class="nfakPe"&gt;ulimit&lt;/span&gt; -n&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;cat /proc/sys/fs/file-nr&lt;/code&gt;&lt;/p&gt;&lt;p&gt;The default limit is 1024.&lt;/p&gt;&lt;h4&gt;Get current number of open file descriptors:&lt;/h4&gt;&lt;p&gt;&lt;code&gt;lsof [-p pid] | wc -l&lt;/code&gt; &lt;/p&gt;&lt;h4&gt;Increase the limit:&lt;/h4&gt;&lt;p&gt;Edit &lt;code&gt;/etc/security/limits.conf&lt;/code&gt;:&lt;/p&gt;&lt;p&gt;&lt;code&gt;username hard nofile 32768&lt;/code&gt;&lt;/p&gt;&lt;/blockquote&gt;        &lt;a href="http://hausheer.osola.com/docs/11" target="_blank"&gt;http://hausheer.osola.com/&lt;wbr&gt;docs/11&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-8393392090636788447?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/8393392090636788447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/11/javanetsocketexception-too-many-open.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8393392090636788447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/8393392090636788447'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/11/javanetsocketexception-too-many-open.html' title='java.net.SocketException: Too many open files'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-6126685040423355484</id><published>2008-11-10T17:22:00.004+02:00</published><updated>2008-11-10T19:24:56.379+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle XE'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>nls_lang.sh: 114: [[: not found (Oracle XE problem on ubuntu)</title><content type='html'>I installed Oracle Express edition on Kubuntu again, and I got a familiar error again after running:&lt;br /&gt;. /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh&lt;br /&gt;/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh: 114: [[: not found&lt;br /&gt;&lt;br /&gt;the solution is to change (as root or sudo) the first line in the "nls_lang.sh" from&lt;br /&gt;#! /bin/sh&lt;br /&gt;to&lt;br /&gt;#! /bin/bash&lt;br /&gt;&lt;br /&gt;http://forums.oracle.com/forums/thread.jspa?messageID=2325040&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-6126685040423355484?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/6126685040423355484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/11/nlslangsh-114-not-found-oracle-xe.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/6126685040423355484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/6126685040423355484'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/11/nlslangsh-114-not-found-oracle-xe.html' title='nls_lang.sh: 114: [[: not found (Oracle XE problem on ubuntu)'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-9189419029930505034</id><published>2008-11-08T22:54:00.002+02:00</published><updated>2008-11-08T22:57:27.566+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='kde4'/><title type='text'>Figured out how to save my kde4 session</title><content type='html'>&lt;code&gt;just run:&lt;br /&gt;&lt;br /&gt;dbus-send --dest=org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.saveCurrentSession&lt;br /&gt;&lt;br /&gt;&lt;a href="http://raetsel.wordpress.com/2008/04/25/kde4-save-current-session-dbus-to-the-rescue/"&gt;http://raetsel.wordpress.com/2008/04/25/kde4-save-current-session-dbus-to-the-rescue/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For some reason my HP laptop crashes from time to time, and then my session disappears :'(  &lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-9189419029930505034?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/9189419029930505034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/11/figured-out-how-to-save-my-kde4-session.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/9189419029930505034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/9189419029930505034'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/11/figured-out-how-to-save-my-kde4-session.html' title='Figured out how to save my kde4 session'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-3921008403164266879</id><published>2008-11-07T21:30:00.002+02:00</published><updated>2008-11-07T21:33:03.964+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='knetstats'/><category scheme='http://www.blogger.com/atom/ns#' term='KDE'/><category scheme='http://www.blogger.com/atom/ns#' term='Kubuntu'/><title type='text'>knetstats</title><content type='html'>I found this gem of an app a while ago, for monitoring the current network usage.&lt;br /&gt;After installing intrepid, I had to look for it again, so here's the link&lt;br /&gt;http://knetstats.sourceforge.net&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-3921008403164266879?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/3921008403164266879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/11/knetstats.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3921008403164266879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3921008403164266879'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/11/knetstats.html' title='knetstats'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-7744170713807758857</id><published>2008-10-24T00:59:00.010+02:00</published><updated>2008-12-02T16:25:29.626+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='oci8'/><title type='text'>How I got php with oci8 working</title><content type='html'>&lt;ol&gt;&lt;li&gt;Install &lt;span style="font-weight: bold;"&gt;Oracle instant client&lt;/span&gt; (the basic package and the SDK!).    (You obviously need the 64bit version on a 64bit architecture). I tried doing this using my locally installed oracle express edition (XE) but that whas a &lt;span style="font-weight: bold;"&gt;whole lot&lt;/span&gt; of pain:&lt;br /&gt;&lt;blockquote&gt;OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory&lt;/blockquote&gt;I ended up using oracle_instantclient_10_2 which worked!!&lt;br /&gt;&lt;/li&gt;&lt;li&gt;sudo -i&lt;span style="font-family:monospace;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;apt-get install apache2 php5 php5-dev php-pear libaio1&lt;/li&gt;&lt;li&gt;Make sure your $ORACLE_HOME and $LD_LIBRARY_PATH is set. Since I have 2 different versions of 'oracle' I set these two variables in /usr/sbin/apache2ctl, at the top of the 'CONFIGURATION SETION': &lt;blockquote&gt;export ORACLE_HOME=/stuph/install/oracle_instantclient_10_2&lt;br /&gt;export LD_LIBRARY_PATH=$ORACLE_HOME&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;&lt;pre&gt;echo $ORACLE_HOME &gt;&gt; /etc/ld.so.conf&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;pre&gt;ldconfig&lt;/pre&gt;&lt;/li&gt;&lt;li&gt; &lt;p&gt;Check if the symlinks named libclntsh.so and libocci.so exist in $ORACLE_HOME, which we will need later. In my case these symlinks were not created by ldconfig, so I created them manually:&lt;/p&gt;&lt;blockquote&gt; &lt;span style="font-family:monospace;"&gt;&lt;/span&gt;ln -s libclntsh.so.11.1 libclntsh.so; &lt;span style="font-family:monospace;"&gt;&lt;/span&gt;ln -s libocci.so.11.1 libocci.so&lt;span style="font-family:monospace;"&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;/p&gt;pecl install oci8&lt;/li&gt;&lt;li&gt;&lt;p&gt;To enable the oci8 module, add "extension=oci8.so" to /etc/php5/apache2/php.ini and /etc/php5/cli/php.ini).  (put this line after the examples starting with ; in the "Dynamic Extensions" section).&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;pre&gt;ldconfig&lt;/pre&gt; &lt;/li&gt;&lt;li&gt;&lt;pre&gt;apache2ctl restart&lt;/pre&gt; (or &lt;pre&gt;/etc/init.d/apache2 force-reload&lt;/pre&gt; to make sure)&lt;/li&gt;&lt;li&gt;You should see the oci8 module in the output of phpinfo(). (put info.php in ~www-data or ~apache with the following content and browse to it: "&amp;lt;? phpinfo() ?&amp;gt;")&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;(I'm sorry if this assumes you know how to do certain stuff, but this is a howto for myself, so that I can remember how to do this in a mounth's time)&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-7744170713807758857?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/7744170713807758857/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/10/how-i-got-php-with-oci8-working.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/7744170713807758857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/7744170713807758857'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/10/how-i-got-php-with-oci8-working.html' title='How I got php with oci8 working'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-3929926563833449213</id><published>2008-10-11T15:30:00.000+02:00</published><updated>2008-10-23T23:29:04.401+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bazaar'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>my bash setup</title><content type='html'>Here are some things I put in ~/.bashrc or /etc/bash.bashrc to make my life easier:&lt;br /&gt;&lt;br /&gt;# When using bash, I use ctrl+r a lot to find commands I executed recently.&lt;br /&gt;# I found that I remember my commands for much longer than bash does,&lt;br /&gt;# so I increased my bash's memory:&lt;br /&gt;export HISTFILESIZE=3000 # the bash history should save 3000 commands&lt;br /&gt;export HISTCONTROL=ignoredups # don't put duplicate lines in the history.&lt;br /&gt;export HISTCONTROL=ignoreboth # ignore same sucessive entries.&lt;br /&gt;# (from &lt;a href="http://www.novell.com/coolsolutions/tools/17142.html"&gt;http://www.novell.com/coolsolutions/tools/17142.html&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;# I like to have a colour prompt with my user, the machine I'm on and the full&lt;br /&gt;# path. Its a bit long so I put it on 2 lines.&lt;br /&gt;PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;33m\]\w\[\033[00m\]&gt;\n\$ '&lt;br /&gt;&lt;br /&gt;# enable bzr command auto completion&lt;br /&gt;. /opt/bzr/bzr.current/contrib/bash/bzr.simple&lt;br /&gt;&lt;br /&gt;# bzr aliasses&lt;br /&gt;alias bt='./bzr --no-plugins selftest'&lt;br /&gt;alias bd='bzr diff'&lt;br /&gt;alias bl='bzr log'&lt;br /&gt;alias bp='bzr pull -v |less'&lt;br /&gt;alias bm='bzr missing |less'&lt;br /&gt;alias bs='bzr status'&lt;br /&gt;&lt;br /&gt;# bzr functions, which cant be done by alias or bzr's alias&lt;br /&gt;bh(){&lt;br /&gt;       #the $@ inserts all the parameters you pass in&lt;br /&gt;       bzr help "$@" |less&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;bcd(){&lt;br /&gt;       bzr cdiff "$@" | less -R&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-3929926563833449213?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/3929926563833449213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/10/my-bash-setup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3929926563833449213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3929926563833449213'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/10/my-bash-setup.html' title='my bash setup'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-5813303441576681734</id><published>2008-10-05T15:03:00.000+02:00</published><updated>2008-10-05T15:28:53.854+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Upstart'/><category scheme='http://www.blogger.com/atom/ns#' term='Sysvinit'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Loggerhead'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Super cool startup script for linux</title><content type='html'>I recently had to get a startup script going which works on Ubuntu and Sles for &lt;a href="https://launchpad.net/loggerhead"&gt;loggerhead&lt;/a&gt;. I came up with these install instructions and following simple but super cool init script. Note that this should work for basically any linux daemon, you just need to rename the script (loggerheadd) and change the script a little.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Copy loggerheadd to /etc/init.d&lt;/li&gt;&lt;li&gt;Edit the file to configure it.&lt;/li&gt;&lt;li&gt;Register the service:&lt;blockquote&gt;cd /etc/init.d&lt;/blockquote&gt;&lt;/li&gt;&lt;/ol&gt;&lt;ul&gt;&lt;li&gt;on &lt;a href="http://en.wikipedia.org/wiki/Upstart"&gt;upstart&lt;/a&gt; based systems like &lt;a href="http://en.wikipedia.org/wiki/Ubuntu"&gt;Ubuntu&lt;/a&gt; run:&lt;blockquote&gt;update-rc.d loggerheadd defaults&lt;/blockquote&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;on &lt;a href="http://en.wikipedia.org/wiki/Sysvinit"&gt;Sysvinit&lt;/a&gt; based systems like Centos or SuSE run:&lt;blockquote&gt;chkconfig --add loggerheadd&lt;/blockquote&gt;&lt;/li&gt;&lt;/ul&gt; &lt;blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;Here follows the script (the indentation is a bit messed up by blogspot)&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;### BEGIN INIT INFO&lt;br /&gt;# Required-Start:        $local_fs $remote_fs $network&lt;br /&gt;# Default-Start:        3 5&lt;br /&gt;# Default-Stop:            0 1 2 6&lt;br /&gt;# Short-Description:        Loggerhead&lt;br /&gt;# Description:            Manage Loggerhead (a web viewer for projects in bazaar)&lt;br /&gt;### END INIT INFO&lt;br /&gt;&lt;br /&gt;# Configure this please: #&lt;br /&gt;LOGGERHEAD_PATH=/opt/loggerhead&lt;br /&gt;LOG_FOLDER=/var/log/loggerhead&lt;br /&gt;LOG_FILE=$LOG_FOLDER/loggerheadd.log&lt;br /&gt;PREFIX=/loggerhead&lt;br /&gt;PORT=8080&lt;br /&gt;&lt;br /&gt;# You can add additional options to serve-branches here:&lt;br /&gt;START_CMD="$LOGGERHEAD_PATH/serve-branches --prefix=$PREFIX --log-folder=$LOG_FOLDER --port=$PORT /var/lib/gforge/bzrroot/"&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# main part&lt;br /&gt;#&lt;br /&gt;case "$1" in&lt;br /&gt;    start)&lt;br /&gt;        python $START_CMD &gt; $LOG_FILE 2&gt;&amp;amp;1 &amp;amp;&lt;br /&gt;    echo "Started loggerhead.   (See $LOG_FOLDER for details.)"&lt;br /&gt;    ;;&lt;br /&gt;    stop)&lt;br /&gt;    pkill -f "$START_CMD"&lt;br /&gt;    ;;&lt;br /&gt;    status)&lt;br /&gt;        proccess=`pgrep -fl "$START_CMD"`&lt;br /&gt;        echo "$proccess"&lt;br /&gt;        netstat -anp |grep -e ":$PORT"&lt;br /&gt;        if [ -z "$proccess" ]; then&lt;br /&gt;        echo "Loggerhead is not running."&lt;br /&gt;    else&lt;br /&gt;        echo "Loggerhead is running."&lt;br /&gt;        fi&lt;br /&gt;        ;;&lt;br /&gt;&lt;br /&gt;    *)&lt;br /&gt;        echo "Usage: loggerheadd { start | stop | status }"&lt;br /&gt;    exit 1&lt;br /&gt;esac&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-5813303441576681734?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/5813303441576681734/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/10/super-cool-startup-script-for-linux.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/5813303441576681734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/5813303441576681734'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/10/super-cool-startup-script-for-linux.html' title='Super cool startup script for linux'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-1244714013577005551</id><published>2008-10-01T10:58:00.000+02:00</published><updated>2008-10-01T11:17:55.705+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='filesystems'/><category scheme='http://www.blogger.com/atom/ns#' term='fat32'/><category scheme='http://www.blogger.com/atom/ns#' term='ext2'/><category scheme='http://www.blogger.com/atom/ns#' term='ext3'/><title type='text'>Maximum file sizes on differrent file systems</title><content type='html'>I was looking up the maximum file size on a file system for a friend, and I realised I didn't even know this stuff. Here is a couple:&lt;br /&gt;FAT32: 4 &lt;a href="http://en.wikipedia.org/wiki/Gibibyte" title="Gibibyte"&gt;GiB&lt;/a&gt;&lt;br /&gt;NTFS: 16 &lt;a href="http://en.wikipedia.org/wiki/Exbibyte" title="Exbibyte"&gt;EiB&lt;/a&gt;&lt;br /&gt;ext2 and ext3: 16 &lt;a href="http://en.wikipedia.org/wiki/Gibibyte" title="Gibibyte"&gt;GiB&lt;/a&gt; to 2 &lt;a href="http://en.wikipedia.org/wiki/Tebibyte" title="Tebibyte"&gt;TiB&lt;/a&gt;  &lt;a href="http://en.wikipedia.org/wiki/Comparison_of_file_systems#cite_note-note-4-4"&gt;(see this note about max range)&lt;/a&gt;&lt;br /&gt;ext4: 1 &lt;a href="http://en.wikipedia.org/wiki/Exbibyte" title="Exbibyte"&gt;EiB&lt;/a&gt;&lt;br /&gt;ReiserFS: 8 &lt;a href="http://en.wikipedia.org/wiki/Tebibyte" title="Tebibyte"&gt;TiB&lt;/a&gt;&lt;br /&gt;HFS plus (used by Apple's &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X" title="Mac OS X"&gt;Mac OS X&lt;/a&gt;): 8 &lt;a href="http://en.wikipedia.org/wiki/Exbibyte" title="Exbibyte"&gt;EiB&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;http://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-1244714013577005551?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/1244714013577005551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/10/maximum-file-sizes-on-differrent-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/1244714013577005551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/1244714013577005551'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/10/maximum-file-sizes-on-differrent-file.html' title='Maximum file sizes on differrent file systems'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-2465178476811605585</id><published>2008-09-14T10:53:00.000+02:00</published><updated>2008-09-14T11:20:50.787+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vfat'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='fat32'/><category scheme='http://www.blogger.com/atom/ns#' term='ext2'/><category scheme='http://www.blogger.com/atom/ns#' term='ext3'/><title type='text'>Set partition labels on linux.</title><content type='html'>My colleague Elardus complained that my flash drive didn't have volume labels set and I also wanted automounting to make a nice consistant mountpoint eg. /media/my_flash_drive.&lt;br /&gt;I didn't think think it would be that hard, I really thought that a gui like gparted or qtparted would be able to do that, but was disappointed. So I had to do it from the commandline.&lt;br /&gt;&lt;br /&gt;To set the label for ext2 or ext3 partitions:&lt;br /&gt;&lt;blockquote&gt;sudo e2label /dev/sdb2 new_label&lt;/blockquote&gt;&lt;br /&gt;where /dev/sdb2 is the partition you want to label. (To get a list of mounted partitions you can do `df -ahT`)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For FAT partitions you first need to configure the drive:&lt;br /&gt;you have to edit /etc/mtools.conf, make f: drive be /dev/sdb1&lt;br /&gt;&lt;blockquote&gt;sudo mlabel f:new_label&lt;/blockquote&gt;&lt;br /&gt;Initially I got the following error.&lt;br /&gt;&lt;blockquote&gt;Total number of sectors (256976) not a multiple of sectors per track (63)!&lt;br /&gt;Add mtools_skip_check=1 to your .mtoolsrc file to skip this test&lt;br /&gt;&lt;/blockquote&gt;I just did what it asked and then it worked:&lt;br /&gt;&lt;blockquote&gt;echo "mtools_skip_check=1" &gt; ~/.mtoolsrc&lt;/blockquote&gt;&lt;br /&gt;I found my info on this page:&lt;br /&gt;&lt;a href="http://fedoraforum.org/forum/archive/index.php/t-86378.html"&gt;http://fedoraforum.org/forum/archive/index.php/t-86378.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-2465178476811605585?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/2465178476811605585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/09/label-partitions-on-linux.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/2465178476811605585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/2465178476811605585'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/09/label-partitions-on-linux.html' title='Set partition labels on linux.'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-60801024696525447</id><published>2008-09-12T00:56:00.000+02:00</published><updated>2008-09-14T10:53:01.117+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Laptops'/><title type='text'>Laptop tip of the day.</title><content type='html'>If you   easily get cold feet,&lt;br /&gt;  I want to tell you something neat.&lt;br /&gt;  Put your toes on a transformer&lt;br /&gt;  it'll make your feet warmer.&lt;br /&gt; AC to DC gives off some heat!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;:)&lt;br /&gt;ok I wrote it at 1:00 AM&lt;br /&gt;(with my toes on the ... you guessed it)&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-60801024696525447?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/60801024696525447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/09/laptop-tip-for-day.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/60801024696525447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/60801024696525447'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/09/laptop-tip-for-day.html' title='Laptop tip of the day.'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-3587515476481263846</id><published>2008-09-10T08:36:00.000+02:00</published><updated>2008-09-14T11:22:25.824+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vacation'/><category scheme='http://www.blogger.com/atom/ns#' term='Trafalgar'/><category scheme='http://www.blogger.com/atom/ns#' term='Europe'/><category scheme='http://www.blogger.com/atom/ns#' term='Dubai'/><title type='text'>European experience</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://picasaweb.google.com/amanic/EuropeanExperience#5244293776799408962"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://picasaweb.google.com/amanic/EuropeanExperience#5244293776799408962" alt="" border="0" /&gt;&lt;/a&gt;My wife and I recently returned from a tour of Europe (2008-08-08..2008-08-24) and I just want to make you guys a little jealous.&lt;br /&gt;We decided earlier this year that we should probably see a bit of the world before the kids arrived and I thought&lt;br /&gt;Europe is a nice diverse, architecturally and historically rich place to go.&lt;br /&gt;We had to organise it pretty quickly since my wife is sort of forced to be on leave in august (private school holidays),&lt;br /&gt;which worked out to be a fairly quite time with regards to projects at work.&lt;br /&gt;&lt;br /&gt;Without going into too much detail, we first flew to Dubai and after a 2 hour stop over,&lt;br /&gt;we flew to London. There we stayed over one night and then embarked on our Trafalgar tour, which I must say&lt;br /&gt;was extremely well organised, we had the best driver and tour director ever!&lt;br /&gt;During our tour we slept over in Amsterdam (Netherlands), Ludwigshafen (Germany), Innsbruck (Austria),&lt;br /&gt;Venice, Rome, Florence (Italy), Stans (Next to lake Luzern, Switserland), Paris (France :) .&lt;br /&gt;We drove mostly by bus and had lots of interesting outings at the places we passed by.&lt;br /&gt;After the tour we had two nights in London again, where we saw most tourist sights using the tourist buses.&lt;br /&gt;Finally we had a night in Dubai where we also had a short Arabian Adventure, which was also extreamly well organised and very nice.&lt;br /&gt;&lt;br /&gt;On this trip we did aeroplanes, big boats (ferries), medium boats, little boats (including gondolas), big buses, little buses, a train, a mono rail, a cog rail and cable cars (big and small),&lt;br /&gt;we walked quite a lot too (I got some blisters even), but we didn't do any cars.&lt;br /&gt;We saw lots of old and new buildings, a lot of country side and a lot of famous attractions.&lt;br /&gt;The places we visited had way more water than what we are used to, a lot of towns have BIG rivers running through the middle.&lt;br /&gt;We made great friends and met people from all over the word, where the most of the tour group was from Australia.&lt;br /&gt;&lt;br /&gt;This was deffinitely a worthwhile and value for money experience, which I can highly reccomend  (even though the pound and euro is so much stronger than the rand).&lt;br /&gt;&lt;br /&gt;For some photos, checkout:&lt;br /&gt;&lt;a href="http://picasaweb.google.com/amanic/EuropeanExperience"&gt;http://picasaweb.google.com/amanic/EuropeanExperience&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;table style="width: auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.com/lh/photo/mXcoeXLPb7HDIIUy6Ukz7A"&gt;&lt;img src="http://lh6.ggpht.com/amanic/SMd5Z4_ro0I/AAAAAAAAAIw/2UXVI4QiFdc/s400/From_Mt_Pilatus_Luzern2.JPG" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;"&gt;From &lt;a href="http://picasaweb.google.com/amanic/EuropeanExperience"&gt;European Experience&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-3587515476481263846?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/3587515476481263846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/09/european-experience.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3587515476481263846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3587515476481263846'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/09/european-experience.html' title='European experience'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/amanic/SMd5Z4_ro0I/AAAAAAAAAIw/2UXVI4QiFdc/s72-c/From_Mt_Pilatus_Luzern2.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-1918282369705206294</id><published>2008-08-06T19:04:00.000+02:00</published><updated>2008-08-06T21:53:21.503+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VirtualBox'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Headless VirtualBox in ubuntu server.</title><content type='html'>1) I tried to get a headless VirtualBox running in the virtualbox which I could apt-get from a standard Ubuntu Hardy repository. - turns out that that version of virtual box does not support headless mode.&lt;br /&gt;&lt;br /&gt;2) Then I tried to install a version of virtualbox I downloaded previously from sun (virtualbox_1.6.2-31466_Ubuntu_hardy_i386.deb) but it failed to compile its kernel module, even after I installed the kernel source:&lt;br /&gt;&lt;blockquote&gt;# /etc/init.d/vboxdrv setup&lt;br /&gt;* Stopping VirtualBox kernel module&lt;br /&gt;*  done.&lt;br /&gt;* Removing old VirtualBox kernel module&lt;br /&gt;*  done.&lt;br /&gt;* Recompiling VirtualBox kernel module&lt;br /&gt;* Look at /var/log/vbox-install.log to find out what went wrong&lt;/blockquote&gt;3) Then I downloaded the latest version from sun, installed it:&lt;br /&gt;&lt;blockquote&gt;# gdebi virtualbox_1.6.4-33808_Ubuntu_hardy_i386.deb&lt;/blockquote&gt;and it worked beautifully!&lt;a href="javascript:void(0)" tabindex="10" onclick="return false;"&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-1918282369705206294?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/1918282369705206294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/08/headless-virtualbox-in-ubuntu-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/1918282369705206294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/1918282369705206294'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/08/headless-virtualbox-in-ubuntu-server.html' title='Headless VirtualBox in ubuntu server.'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-1760711512840908554</id><published>2008-08-01T18:21:00.000+02:00</published><updated>2008-08-01T19:05:01.779+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maven repository manager'/><category scheme='http://www.blogger.com/atom/ns#' term='archiva'/><category scheme='http://www.blogger.com/atom/ns#' term='nexus'/><category scheme='http://www.blogger.com/atom/ns#' term='artifactory'/><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><category scheme='http://www.blogger.com/atom/ns#' term='proxy'/><title type='text'>maven repository manager</title><content type='html'>After struggling for a couple of days, I finally managed to set up a local maven repository behind a proxy.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;I first tried nexus, but it's configuration is very buggy and despite the fact that it don't work for me, it keeps on forgetting my settings if I open on it again.&lt;/li&gt;&lt;li&gt;Then I tried artifactory, ant it too looked promising, but for some reason I could not get it to download stuff through a proxy either. To be fair after I figured out that my real problem as that my maven clean plugin was broken, I managed to get artifactory working through a proxy (but I think I like archiva the most at the moment).&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Then I tried &lt;span style="font-weight: bold;"&gt;apache archiva&lt;/span&gt;, which looked even more promising since it actually had the concept of a network proxy on its configuration screen. After a lot of googling, I found out that its a known (and fixed but un-released) bug in archiva 1.1. (&lt;a href="http://jira.codehaus.org/browse/MRM-884"&gt;http://jira.codehaus.org/browse/MRM-884&lt;/a&gt;). So I installed &lt;span style="font-weight: bold;"&gt;version 1.0.2&lt;/span&gt; and my downloads began to work!!&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;The only problem was that as part of testing if this works, I  deleted the org directory in my maven repository (as described in the nexus section of the maven difinitve guide).&lt;br /&gt;This caused my `mvn clean` to stop working:&lt;br /&gt;"org.apache.maven.plugin.version.PluginVersionNotFoundException: The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid version could be found"&lt;br /&gt;After a bit of googling I found out that &lt;span style="font-weight: bold;"&gt;deleting my repository&lt;/span&gt; (~/.m2/repository) fixes this problem!&lt;br /&gt;(&lt;a href="http://www.mail-archive.com/users@maven.apache.org/msg68288.html"&gt;http://www.mail-archive.com/users@maven.apache.org/msg68288.html&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;A last note is that the different repository mangers are surprisingly similar as to how they work and configured. It must be something to with where they all come from.&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-1760711512840908554?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/1760711512840908554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/08/maven-repository-manager.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/1760711512840908554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/1760711512840908554'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/08/maven-repository-manager.html' title='maven repository manager'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-748322738705085761.post-3258757726895576233</id><published>2008-07-28T13:08:00.003+02:00</published><updated>2009-01-21T23:50:30.050+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='apt-cacher-ng'/><category scheme='http://www.blogger.com/atom/ns#' term='apt-cacher'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><category scheme='http://www.blogger.com/atom/ns#' term='apt-proxy'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>apt-cacher-ng</title><content type='html'>I've been trying to get  a decent apt-proxy going which doesn't force me to alter my sources.list file.&lt;br /&gt;I tried apt-cacher, which is supposed to work, but it didn't for me.&lt;br /&gt;Then I tried apt-cacher-ng.&lt;br /&gt;&lt;br /&gt;(At my office we connect to the internet through a proxy server which requires username/password authentication,&lt;br /&gt;so obviously I needed to configure apt-cacher-ng to connect&lt;br /&gt;through our normal web proxy to be able to access the internet)&lt;br /&gt;&lt;br /&gt;But it gave met the following error when I tried to use it:&lt;br /&gt;407 Proxy Authentication Required&lt;br /&gt;&lt;br /&gt;after struggling for some time, I figured out on this Russian site how to fix my problem:&lt;br /&gt;http://linuxforum.ru/index.php?s=c9cb81224e4e338dc7ba84b6857dca5f&amp;amp;showtopic=69037&amp;amp;st=0&amp;amp;p=661582&amp;amp;#entry661582&lt;br /&gt;&lt;br /&gt;It turns out the sample config file (/etc/apt-cacher-ng/acng.conf) is making you configure the proxy wrongly.&lt;br /&gt;So in stead of configuring like:&lt;br /&gt;proxy: &lt;a href="http://user:pass@srv/" target="_blank"&gt;http://user:pass@srv:port&lt;/a&gt;&lt;br /&gt;do it like:&lt;br /&gt;proxy: user:pass@srv:port&lt;br /&gt;&lt;br /&gt;Now that I could configure my apt-cacher-ng to connect through and authenticate to our internet proxy, I'm able to switch to using it by merely editing /etc/apt/apt.conf:&lt;br /&gt;Acquire::http { Proxy "http://myaptcacherng:3142"; };&lt;br /&gt;//Acquire::http { Proxy "http://networkproxy:3142"; };&lt;br /&gt;&lt;br /&gt;(lines starting with // are considered comments)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To Import .deb files from the local apt cache:&lt;br /&gt;# let apt-cacher-ng use the .deb files that are already in /var/cache/apt/archives/&lt;br /&gt;sudo mkdir -p /var/cache/apt-cacher-ng/_import&lt;br /&gt;sudo chown apt-cacher-ng /var/cache/apt-cacher-ng/_import&lt;br /&gt;sudo cp -al /var/cache/apt/archives/* /var/cache/apt-cacher-ng/_import/&lt;br /&gt;# browse to &lt;http://localhost:3142/acng-report.html&gt; and click "Start Import"&lt;br /&gt;(from http://ubuntuforums.org/archive/index.php/t-981085.html )&lt;div class="blogger-post-footer"&gt;&lt;&gt;&lt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/748322738705085761-3258757726895576233?l=amanica.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amanica.blogspot.com/feeds/3258757726895576233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amanica.blogspot.com/2008/07/apt-cacher-ng.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3258757726895576233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/748322738705085761/posts/default/3258757726895576233'/><link rel='alternate' type='text/html' href='http://amanica.blogspot.com/2008/07/apt-cacher-ng.html' title='apt-cacher-ng'/><author><name>AmanicA</name><uri>http://www.blogger.com/profile/06939512410991481694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://bp2.blogger.com/_vmFBfvw_rl0/SI2uo35ox-I/AAAAAAAAAFc/-NUyAgeM1_E/S220/me_at_enerjam2.JPG'/></author><thr:total>2</thr:total></entry></feed>
