tag:blogger.com,1999:blog-85274762024-03-07T10:00:29.453+01:00amBlogAndré M. Bonkowskihttp://www.blogger.com/profile/01008068548229545426noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-8527476.post-30553825851209614462010-01-06T17:27:00.004+01:002010-01-06T17:43:19.326+01:00Drools syntax highlightning in IntelliJI tried to include my version of the IntelliJ IDEA filtype configuration in a comment at <a href="http://danilogurovich.wordpress.com/2007/05/31/adding-a-drl-filetype-with-syntax-highlighting-to-intellij/">Danilo Gurovich blog</a> without success, but here it is:<br /><br /><pre style="font-family:arial;font-size:12px;border:1px dashed #CCCCCC;width:99%;height:auto;overflow:auto;background:#f0f0f0;;background-image:URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzNG-oJPZEYxm8HpwGp_EXrcVr6kiflZW1vWHKG3AVqFl3xBvoLR2JuWxzvDLv7La-OgUJW4oIwyw_1pqrkhK4BHdn1_CP3M4agZSjGrpWuO-fzUHjdog65ZnrhBRBAjuY16LOWg/s320/codebg.gif);padding:0px;color:#000000;text-align:left;line-height:20px;"><code style="color:#000000;word-wrap:normal;"> <?xml version="1.0" encoding="UTF-8"?> <br /> <filetype binary="false" default_extension="" description="Drools" name="Drools"> <br /> <highlighting> <br /> <options> <br /> <option name="LINE_COMMENT" value="#" /> <br /> <option name="COMMENT_START" value="/*" /> <br /> <option name="COMMENT_END" value="*/" /> <br /> <option name="HEX_PREFIX" value="" /> <br /> <option name="NUM_POSTFIXES" value="" /> <br /> <option name="HAS_BRACKETS" value="true" /> <br /> <option name="HAS_BRACES" value="true" /> <br /> <option name="HAS_PARENS" value="true" /> <br /> <option name="HAS_STRING_ESCAPES" value="false" /> <br /> </options> <br /> <keywords ignore_case="false"> <br /> <keyword name="accumulate" /> <br /> <keyword name="collect" /> <br /> <keyword name="comment" /> <br /> <keyword name="end" /> <br /> <keyword name="eval" /> <br /> <keyword name="exists" /> <br /> <keyword name="forall" /> <br /> <keyword name="from" /> <br /> <keyword name="function" /> <br /> <keyword name="global" /> <br /> <keyword name="import" /> <br /> <keyword name="package" /> <br /> <keyword name="rule" /> <br /> <keyword name="then" /> <br /> <keyword name="when" /> <br /> </keywords> <br /> <keywords2> <br /> <keyword name="!=" /> <br /> <keyword name=":" /> <br /> <keyword name="&lt;" /> <br /> <keyword name="&lt;=" /> <br /> <keyword name="==" /> <br /> <keyword name="&gt;" /> <br /> <keyword name="&gt;=" /> <br /> <keyword name="and" /> <br /> <keyword name="contains" /> <br /> <keyword name="in" /> <br /> <keyword name="matches" /> <br /> <keyword name="memberof" /> <br /> <keyword name="not" /> <br /> <keyword name="or" /> <br /> </keywords2> <br /> <keywords3> <br /> <keyword name="inserLogical" /> <br /> <keyword name="insert" /> <br /> <keyword name="retract" /> <br /> <keyword name="update" /> <br /> </keywords3> <br /> <keywords4> <br /> <keyword name="activation-group" /> <br /> <keyword name="agenda-group" /> <br /> <keyword name="auto-focus" /> <br /> <keyword name="date-effective" /> <br /> <keyword name="date-expires" /> <br /> <keyword name="dialect" /> <br /> <keyword name="duration" /> <br /> <keyword name="lock-on-active" /> <br /> <keyword name="no-loop" /> <br /> <keyword name="salience" /> <br /> </keywords4> <br /> </highlighting> <br /> <extensionMap> <br /> <mapping ext="drl" /> <br /> <mapping ext="rule" /> <br /> </extensionMap> <br /> </filetype> <br /></code></pre>André M. Bonkowskihttp://www.blogger.com/profile/01008068548229545426noreply@blogger.com0tag:blogger.com,1999:blog-8527476.post-8742048253987131932010-01-06T17:26:00.006+01:002010-01-06T18:23:58.294+01:00I'm back!Wow! It have been almost 4 years since the last time I wrote a post on this blog, but I guess nobody really noticed that I have been away? :-)<br /><br />Nothing much has really changed since the last time I was “here”. We have moved to a new house, been on a holiday in Thailand, Florida and Sardinia, Italy, which all was really great.<br /><br />I have been on three different projects in the last four years, but now I'm back at the same client as last time. I haven't been coding much Ruby lately because I discovered Objective-C and iPhone programming which is great fun. I also went to the WWDC2009, and I have to say that this was the best developer conference I ever attended. I’m going back go this year as well…<br /><br /><br />See you soon!André M. Bonkowskihttp://www.blogger.com/profile/01008068548229545426noreply@blogger.com0tag:blogger.com,1999:blog-8527476.post-1146118699712630462006-04-27T07:10:00.000+02:002006-04-27T08:18:19.756+02:00Still no MacBook Pro, but…<p class="MsoNormal"><span style="" lang="EN-GB">I have been waiting to buy a MacBook Pro until Apple fixed the few issues that have been reported on the first MacBook’s. After the release of a new revision that claimed to fix these problems, I ordered a <st1:metricconverter productid="15.4”" st="on">15.4”</st1:metricconverter> 2GHz MacBook Pro with 2GB Ram and 100MB 7200rpm hard.<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-GB"><o:p></o:p>A few days later I read at the <a href="http://mac1.no/">Mac1.no</a> site that the new <st1:metricconverter productid="17”" st="on">17”</st1:metricconverter> MacBook Pro was released. I had of course heard the rumours that it was expected, but I guessed it would be too expensive. <span style="font-weight: bold;">It wasn’t</span>. <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-GB">For about 185 kroner (about $30) more I get a larger screen, faster processor, one extra USB port, one FireWire800 port and a 8x SuperDrive compared to a 4x on the <st1:metricconverter productid="15,4”" st="on">15,4”</st1:metricconverter>. My <a href="http://123data.no/">Mac dealer</a> let me change the order so now I’m waiting for my <st1:metricconverter productid="17”" st="on">17”</st1:metricconverter> MacBook Pro. The drawback is that I have to wait a couple of weeks longer until I get my new laptop, but I hope it’s worth it!<o:p></o:p></span></p>André M. Bonkowskihttp://www.blogger.com/profile/01008068548229545426noreply@blogger.com0tag:blogger.com,1999:blog-8527476.post-1137451376150147232006-01-16T23:40:00.000+01:002006-01-17T07:04:47.873+01:00The wait is finally over...When I first heard the news about that the new MacBook will ship in February, my first reaction was, “I'm have to have one as soon as possible!<br /><br />But maybe I should wait until the first update comes? Will it have an 8x SuperDrive as the old PowerBooks? What about the missing FireWire 800? It honestly doesn’t worry me that much as the reportedly problem with the heat.<br /><br /><!-- technorati tags start --><p style="FONT-SIZE: 10px; TEXT-ALIGN: right">Technorati Tags: <a href="http://www.technorati.com/tag/MacBook" rel="tag">MacBook</a></p><!-- technorati tags end -->André M. Bonkowskihttp://www.blogger.com/profile/01008068548229545426noreply@blogger.com0tag:blogger.com,1999:blog-8527476.post-1127677713692407742005-09-25T21:47:00.000+02:002005-09-25T21:48:33.703+02:00Congratulations, Fernando Alonso!<p class="MsoNormal"><span style="" lang="EN-US">The youngest formula one champion in the history is Fernando Alonso. That’s clear after he finished third at Interlagos, Brasil today. Montoya won the race just before my personal favorite, Kimi </span>Räikkönen<span style="" lang="EN-US">.<br /></span></p> <p class="MsoNormal"><span style="" lang="EN-US"><br /><span style="font-weight: bold;">You’ll be back next year Kimi!!!</span> <o:p></o:p></span></p>André M. Bonkowskihttp://www.blogger.com/profile/01008068548229545426noreply@blogger.com0tag:blogger.com,1999:blog-8527476.post-1127249258213349592005-09-20T22:38:00.000+02:002005-09-20T22:48:38.850+02:00Eclipse, take five…<span style="" lang="EN-US">As the few of you that actually reads my blog already know, I have quit my job in Telenor and started as a consultant again. My new employer is Net Professionals, and my first assignment is for a company that both use IntelliJ, Eclipse or whatever you want to use. But in this project all developers uses Eclipse, but I was free to use IntelliJ. I felt that this could be a good chance to learn to use and like Eclipse, even though that I have tried four times earlier without being convinced. But this time the version is 3.1 and it looks even better that the last time, so I am (trying) to be optimistic and starting up Eclipse and getting ready to do some real work.<o:p></o:p></span><br /><br /><span style="font-weight: bold;font-size:130%;" >One week later...</span><br />I am back using IntelliJ.<br /><br />What is that makes Eclipse so popular. It’s free and that’s nice, but if you are a professional developer using your IDE or Editor many hours a day, $499 is not that much. The main advantage Eclipse has over IntelliJ is the wealth of good plugin’s. While IntelliJ have some nice ones, my favorite being TestDox, it is still far behind Eclipse. But as coders IDE IntelliJ shines, except for the ugly look and feel used by the 5 version. I wonder when I will try Eclipse for the sixth time…André M. Bonkowskihttp://www.blogger.com/profile/01008068548229545426noreply@blogger.com0tag:blogger.com,1999:blog-8527476.post-1127247642895115762005-09-20T22:19:00.000+02:002005-09-20T22:20:42.900+02:00Damn you Ruby on RailsAfter discovering Ruby on Rails this spring :-) my interest in Java and Java related technology has dropped to the bottom. I’m thinking “why the hell should I want to do it in Java when I’m so much more productive in RoR?” Yes I know, Rails and Ruby is not the best choice for a lot of problems and systems, but it have made me often think that “this must be able to be solved an easer way using some other technology”. But that’s a good thing.André M. Bonkowskihttp://www.blogger.com/profile/01008068548229545426noreply@blogger.com0tag:blogger.com,1999:blog-8527476.post-1097218515543857862004-10-08T08:38:00.000+02:002004-10-08T08:57:13.620+02:00Spring Rich Client ProjectYesterday I was attending a <a href="http://www.springframework.org">Spring Framework</a> seminar arranged by <a href="http://www.objectware.no">Objectware</a>. They had invited Keith Donald from <a href="http://www.springframework.com/company">Interface21</a> to do a full day presentation. I have been using Spring for quite some time now, so I didn't learn anything new, except for one thing: The <a href="http://www.springframework.org/spring-rcp.html">Spring Rich Client</a> subproject, founded by Keith.
<br />
<br />It has been a while since the last time I wrote a Swing application but after this presentation I would not mind getting my hands dirty again. What it provides is a nice abstraction layer above the Swing API, the same as the "Core" Spring Framework does for the J2EE API's. Nice :-)
<br />
<br />
<br />
<br />André M. Bonkowskihttp://www.blogger.com/profile/01008068548229545426noreply@blogger.com0tag:blogger.com,1999:blog-8527476.post-1096925764690945702004-10-04T23:17:00.000+02:002004-10-04T23:36:04.690+02:00Hibernate, PostgreSQL and SpringPuh.. After couple of hours swearing at this problem, I finally found what caused the error. The problem was that when trying to insert data in a PostgreSQL table I kept getting errors for some of the rows I was trying to insert. The error message returned from Hibernate was something like <span style="font-style: italic;">"data integrity violated by SQL 'null'…" blah blah blah "… Call getNextException() to see the cause"</span>. The Spring Framework data access exception was reporting a DataIntegrityViolationException.
<br />
<br />I therefore assumed that the problem had to do with the quality of the data I was attempting to insert, such as null values. The suspicion did not get any less by the fact that the source of the data was read from an Excel spreadsheet using POI.
<br />
<br />When I finally got to my senses and traced the Hibernate code, I was able to see the <span style="font-style: italic;">"next exception"</span>, which did NOT have anything to do with null values. The problem was that once in a while the value of one cell contained a string of six characters instead of five as defined in the database schema :-( It would be nice if Hibernate could include this information in the returned error message. Please Gavin!
<br />
<br />I have recently converted from MySQL to PostgreSQL, after been lobbied by <a href="http://thepope.blog-city.com/">Thomas Roka-Aardal</a> and have found that PostgreSQL is much more intolerant and strict than MySQL, but after all I think that is OK.
<br />André M. Bonkowskihttp://www.blogger.com/profile/01008068548229545426noreply@blogger.com0tag:blogger.com,1999:blog-8527476.post-1096667795235053782004-10-01T23:34:00.000+02:002004-10-03T21:26:44.130+02:00Static hell! <span style="" lang="EN-GB">Where does it say that factories classes only should have static methods? Nowhere, but somehow it seems to be the rule. Why am I complaining about this, you may ask? After one week trying to reuse some of the legacy code at work (<span style="font-style: italic;">written one month ago</span> :-) I am getting quite frustrated trying to write tests for the new functionality I am adding. But now, after a half day of refactoring the code, I have managed to get rid of the problem. For now… </span>André M. Bonkowskihttp://www.blogger.com/profile/01008068548229545426noreply@blogger.com2tag:blogger.com,1999:blog-8527476.post-1096488668118021372004-09-29T22:05:00.000+02:002004-10-03T21:29:05.206+02:00At last, I have a blog as well <p class="MsoNormal"><span style="" lang="EN-US">Since</span><span style="" lang="EN-GB"> my friend, <a href="http://reassess.blogspot.com/">Trond </a>already has a </span><span style="" lang="EN-US">blog</span><span style="" lang="EN-GB">, I guess I should get one also :-)</span><span style="" lang="EN-GB"></span></p> <span class="content"><a href="http://www.blogger.com/app/options_basic.pyra?blogID=8527476">
<br /></a></span>André M. Bonkowskihttp://www.blogger.com/profile/01008068548229545426noreply@blogger.com0