<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Petr Kozelka's Blog - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-88f43358" type="application/json"/><link>http://kozelka-net.disqus.com/</link><description></description><atom:link href="http://kozelka-net.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sat, 10 Sep 2011 12:41:32 -0000</lastBuildDate><item><title>Re: &amp;#8230; but gnome-mplayer starts instead</title><link>http://kozelka.net/blog/ubuntu-places-menu-weird-behavior-of-home-place/pic2-gnome-mplayer#comment-306701302</link><description>&lt;p&gt;i have the same problem i try to open up a shortcut to my drive and i get gnome mplayer, i shouldnt do that i cant change permissions to not open and it still does.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Duncan Firth</dc:creator><pubDate>Sat, 10 Sep 2011 12:41:32 -0000</pubDate></item><item><title>Re: How to build a ZIP output artifact in Maven</title><link>http://kozelka.net/blog/how-to-build-a-zip-output-artifact-in-maven#comment-235062807</link><description>&lt;p&gt;Nice job, very useful article.&lt;br&gt;&lt;br&gt;&lt;br&gt;Another tutorial about the &lt;a href="http://www.java-tutorial.ch/maven/build-helper-maven-plugin" rel="nofollow"&gt;build-helper-maven plugin&lt;/a&gt; i found useful&lt;br&gt;&lt;br&gt;Thx&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David</dc:creator><pubDate>Sun, 26 Jun 2011 03:12:25 -0000</pubDate></item><item><title>Re: Ubuntu Places menu: weird behavior of “Home” place</title><link>http://kozelka.net/blog/ubuntu-places-menu-weird-behavior-of-home-place#comment-175894852</link><description>&lt;p&gt;How simple... it just didn't happen to my mind that I might have done something like this (I suspect my kids anyway :) )&lt;br&gt;Thanks for sharing!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pkozelka</dc:creator><pubDate>Thu, 31 Mar 2011 19:40:01 -0000</pubDate></item><item><title>Re: Ubuntu Places menu: weird behavior of “Home” place</title><link>http://kozelka.net/blog/ubuntu-places-menu-weird-behavior-of-home-place#comment-175204400</link><description>&lt;p&gt;I was having the same annoying problem just now. but here's what caused it and how to fix it. simple really&lt;br&gt;what I did and I bet you did too was try to open a folder with "Open With Other Application..." and the box Remember this application for "folder" files was checked.&lt;br&gt;now every time you want to open a folder normally the computer tries to use the newly associated program rather than nautilus.&lt;/p&gt;

&lt;p&gt;THE FIX:  open nautilus, right click on a folder, Open With Other...., find "Open Folder" and select that and make sure that Remember this is checked.&lt;/p&gt;

&lt;p&gt;Hope this helps someone.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Monoplex</dc:creator><pubDate>Wed, 30 Mar 2011 19:02:08 -0000</pubDate></item><item><title>Re: Generating temporary files in junit tests</title><link>http://kozelka.net/blog/generating-temporary-files-in-junit-tests#comment-154590651</link><description>&lt;p&gt;Thanks for sharing. This was exactly what I needed.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave S</dc:creator><pubDate>Wed, 23 Feb 2011 09:26:55 -0000</pubDate></item><item><title>Re: Ubuntu Places menu: weird behavior of “Home” place</title><link>http://kozelka.net/blog/ubuntu-places-menu-weird-behavior-of-home-place#comment-135148872</link><description>&lt;p&gt;My "Places" menu when clicked on desktop or others, takes me to "movie player.' Why is this?  I had just edited some home video and then this error now occurs.  &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brotherlee44</dc:creator><pubDate>Wed, 26 Jan 2011 22:58:28 -0000</pubDate></item><item><title>Re: mc unzip problem on ubuntu karmic</title><link>http://kozelka.net/blog/blog/mc-unzip-problem-on-ubuntu-karmic#comment-134738659</link><description>&lt;p&gt;Solved!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Airfire</dc:creator><pubDate>Wed, 26 Jan 2011 05:21:15 -0000</pubDate></item><item><title>Re: Generating temporary files in junit tests</title><link>http://kozelka.net/blog/generating-temporary-files-in-junit-tests#comment-127534724</link><description>&lt;p&gt;&lt;a href="#comment-252" rel="nofollow"&gt;@Scott Carey &lt;/a&gt; &lt;br&gt;yes but that is not good for running the tests from your IDE then - unless it calls Maven for junit testing which is not usual.&lt;br&gt;But you are right, this makes the whole thing a bit simpler on modules where you don't care about IDEs.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Petr Kozelka</dc:creator><pubDate>Sun, 19 Dec 2010 07:53:14 -0000</pubDate></item><item><title>Re: Generating temporary files in junit tests</title><link>http://kozelka.net/blog/generating-temporary-files-in-junit-tests#comment-127534723</link><description>&lt;p&gt;Just pass ${project.build.directory} in as a property to your tests via surefire systemPropertyValues, avoiding the classloader stuff.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://maven.apache.org/plugins/maven-surefire-plugin/examples/system-properties.html" rel="nofollow"&gt;http://maven.apache.org/plugin...&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then you don't need to pass in a class, and your test helper method can be simpler.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Scott Carey</dc:creator><pubDate>Fri, 17 Dec 2010 18:18:05 -0000</pubDate></item><item><title>Re: How to build a ZIP output artifact in Maven</title><link>http://kozelka.net/blog/how-to-build-a-zip-output-artifact-in-maven#comment-127534728</link><description>&lt;p&gt;Great work man, just what i needed.&lt;/p&gt;

&lt;p&gt;What i`ve been doing is trying to go without flexmojos for building my flex project.&lt;br&gt;Ive been using ANT to build flex project and ant-run plugin for maven to execute it.&lt;br&gt;With your help ive packaged everything to artifact (.swc) &lt;/p&gt;

&lt;p&gt;Thanks again, great post&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ivan Najman</dc:creator><pubDate>Fri, 03 Dec 2010 16:41:37 -0000</pubDate></item><item><title>Re: mc unzip problem on ubuntu karmic</title><link>http://kozelka.net/blog/mc-unzip-problem-on-ubuntu-karmic#comment-127534748</link><description>&lt;p&gt;Thanks for this post. I was trying to figure out why it would not browse into zipped files. This took care of it.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ubuntu Guy</dc:creator><pubDate>Thu, 28 Oct 2010 14:57:52 -0000</pubDate></item><item><title>Re: mc unzip problem on ubuntu karmic</title><link>http://kozelka.net/blog/mc-unzip-problem-on-ubuntu-karmic#comment-127534747</link><description>&lt;p&gt;thanks man, it helped me!)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pls</dc:creator><pubDate>Fri, 09 Jul 2010 04:28:54 -0000</pubDate></item><item><title>Re: Generating temporary files in junit tests</title><link>http://kozelka.net/blog/generating-temporary-files-in-junit-tests#comment-127534721</link><description>&lt;p&gt;That's correct - this is definitely simpler solution.&lt;/p&gt;

&lt;p&gt;However, what I like on the suggested one is, that temporary files used by the module are "inside" it, which has some advantages, like:&lt;br&gt;- next "mvn clean install" command removes them so you don't have to take care of it&lt;br&gt;- they are naturally bound to the right module and its last build; in your case, you either need to hardcode the name which may cause problems (at least it should be deleted before using), or generate a random dir - then you must go to log and see which one was used&lt;/p&gt;

&lt;p&gt;So, the technique you suggest is valid, but I prefer using it only on "manually" started tests, not for tests that are executed inside a continuous integration system&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Petr Kozelka</dc:creator><pubDate>Fri, 04 Jun 2010 05:57:31 -0000</pubDate></item><item><title>Re: Generating temporary files in junit tests</title><link>http://kozelka.net/blog/generating-temporary-files-in-junit-tests#comment-127534720</link><description>&lt;p&gt;I find just using the temporary folder path system variable suffices e.g.:&lt;/p&gt;

&lt;p&gt;  String filename = "some.dat";&lt;br&gt;  String filepath = System.getProperty("java.io.tmpdir");&lt;br&gt;  String fullFilePath = filepath + filename;&lt;/p&gt;

&lt;p&gt;I generally then create a file and use a try/finally block to remove the file when the test is done.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christopher Hunt</dc:creator><pubDate>Thu, 03 Jun 2010 21:05:54 -0000</pubDate></item><item><title>Re: Generating temporary files in junit tests</title><link>http://kozelka.net/blog/generating-temporary-files-in-junit-tests#comment-127534719</link><description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;  Thanks for this very useful tip. I used it with success, for the jupload project, available on sourceforge.&lt;/p&gt;

&lt;p&gt;A note: &lt;br&gt;I changed the line 'final String clsPath = url.getPath();'  to:&lt;br&gt;final String clsPath = url.getPath().replaceAll("%20", " ");&lt;/p&gt;

&lt;p&gt;This allows working with pathes containing spaces.&lt;/p&gt;

&lt;p&gt;Etienne&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">etienne_sf</dc:creator><pubDate>Thu, 22 Apr 2010 06:08:13 -0000</pubDate></item><item><title>Re: mc unzip problem on ubuntu karmic</title><link>http://kozelka.net/blog/mc-unzip-problem-on-ubuntu-karmic#comment-127534744</link><description>&lt;p&gt;Thanks a lot ...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">S. Wefel</dc:creator><pubDate>Wed, 17 Mar 2010 09:48:41 -0000</pubDate></item><item><title>Re: mc unzip problem on ubuntu karmic</title><link>http://kozelka.net/blog/mc-unzip-problem-on-ubuntu-karmic#comment-127534743</link><description>&lt;p&gt;Thanks a lot. BTW: the one-liner seams to be too long for firefox to display...&lt;br&gt;Thanks anyway&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">J</dc:creator><pubDate>Wed, 24 Feb 2010 07:48:56 -0000</pubDate></item><item><title>Re: mc unzip problem on ubuntu karmic</title><link>http://kozelka.net/blog/mc-unzip-problem-on-ubuntu-karmic#comment-127534742</link><description>&lt;p&gt;&lt;a href="#comment-215" rel="nofollow"&gt;@hardyolbaum &lt;/a&gt; &lt;br&gt;sure, I welcome that&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Petr Kozelka</dc:creator><pubDate>Sat, 16 Jan 2010 12:55:08 -0000</pubDate></item><item><title>Re: mc unzip problem on ubuntu karmic</title><link>http://kozelka.net/blog/mc-unzip-problem-on-ubuntu-karmic#comment-127534739</link><description>&lt;p&gt;Can I translate this in my language and publish it on my website with your name? I'm french and some french has a really poor english. if this fix is in french I'm sure it could help many people.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">hardyolbaum</dc:creator><pubDate>Sat, 16 Jan 2010 00:37:09 -0000</pubDate></item><item><title>Re: mc unzip problem on ubuntu karmic</title><link>http://kozelka.net/blog/mc-unzip-problem-on-ubuntu-karmic#comment-127534735</link><description>&lt;p&gt;Tanks a lot, this bug was very annoying...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jabba</dc:creator><pubDate>Wed, 13 Jan 2010 11:12:43 -0000</pubDate></item><item><title>Re: mc unzip problem on ubuntu karmic</title><link>http://kozelka.net/blog/mc-unzip-problem-on-ubuntu-karmic#comment-127534733</link><description>&lt;p&gt;Very simple and elegant problem solving. &lt;br&gt;I've reposted it to my blog with link to you. Thanks a lot.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">libc6</dc:creator><pubDate>Thu, 17 Dec 2009 07:13:45 -0000</pubDate></item><item><title>Re: mc unzip problem on ubuntu karmic</title><link>http://kozelka.net/blog/mc-unzip-problem-on-ubuntu-karmic#comment-127534729</link><description>&lt;p&gt;This was driving me crazy - after making the change the problem disappeared. Thanks a million!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrzej Bialecki</dc:creator><pubDate>Fri, 04 Dec 2009 05:11:25 -0000</pubDate></item><item><title>Re: Generating temporary files in junit tests</title><link>http://kozelka.net/blog/generating-temporary-files-in-junit-tests#comment-127534717</link><description>&lt;p&gt;thanks for the tip, it seems to cover some important cases - when I want the files to disappear after the test I would prefer a standard solution like this one&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Petr Kozelka</dc:creator><pubDate>Tue, 06 Oct 2009 16:27:49 -0000</pubDate></item><item><title>Re: Generating temporary files in junit tests</title><link>http://kozelka.net/blog/generating-temporary-files-in-junit-tests#comment-127534716</link><description>&lt;p&gt;take a look at TemporaryFolder in JUnit (since 4.7), e.g. &lt;a href="http://weblogs.java.net/blog/johnsmart/archive/2009/09/29/working-temporary-files-junit-47" rel="nofollow"&gt;http://weblogs.java.net/blog/j...&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am not aware if TestNG also offers such feature&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tomek</dc:creator><pubDate>Fri, 02 Oct 2009 14:41:55 -0000</pubDate></item><item><title>Re: How to force explicit version specification</title><link>http://kozelka.net/blog/how-to-force-explicit-version-specification#comment-127534699</link><description>&lt;p&gt;For anyone interested, I reported this as &lt;a href="http://jira.codehaus.org/browse/MENFORCER-62" rel="nofollow"&gt;[#MENFORCER-62]&lt;/a&gt;.&lt;br&gt;Brian: thanks for responding so quickly.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Petr Kozelka</dc:creator><pubDate>Thu, 05 Feb 2009 09:10:00 -0000</pubDate></item></channel></rss>
