petr.kozelka.net
mc unzip problem on ubuntu karmic | Petr Kozelka
http://petr.kozelka.net/blog/2009/11/25/mc-unzip-problem-on-ubuntu-karmic
Mc unzip problem on ubuntu karmic. Ubuntu 9.10 (Karmic Koala) has a little issue with Midnight Commander - it does not browse into zipped files, and shows empty contents instead. After searching the web I found out that the problem can be solved by setting property "op has zipinfo" to "1" in file "/usr/share/mc/extfs/uzip". For the truly lazy people I prepared this little commandline fixing that (no need to open the editor):. Fork me on GitHub.
petr.kozelka.net
extending family - princess 2008 :) | Petr Kozelka
http://petr.kozelka.net/blog/2008/08/08/extending-family-princess-2008
Extending family - princess 2008 :). Yesterday my family was extended by a new little girl, see here:. Many thanks to my wife Martina! Fork me on GitHub.
petr.kozelka.net
Generating temporary files in junit tests | Petr Kozelka
http://petr.kozelka.net/blog/generating-temporary-files-in-junit-tests
Generating temporary files in junit tests. It is often useful to create some temporary files inside a unit test. Basically it is not a problem, because junit does not limit you in such thing; you might simply use a "current" directory to store such files, and it usually works. However, different frameworks invoking JUnit use different "current" directories, which makes it difficult to:. Locate the temporary files for debugging purposes. Remove them between test re-executions. Files using a relative path.
petr.kozelka.net
GWT MVP: supporting legacy URL tokens | Petr Kozelka
http://petr.kozelka.net/blog/2011/01/21/gwt-ap-mvp-supporting-legacy-url-tokens
GWT MVP: supporting legacy URL tokens. Recently I started to migrate a GWT application to MVP, in order to learn it, and also to enjoy the promised advantages. For now I decided to use the MVP framework that comes with GWT 2.1. Migration itself was relatively easy, but the framework dictates how the token is structured - and it is quite simple:. The colon is hardcoded in the AbstractPlaceHistoryMapper class, but my previous implementation uses slash. And a slightly different approach to select the view).
petr.kozelka.net
About me | Petr Kozelka
http://petr.kozelka.net/about
Stack Overflow Careers 2.0 Profile. Ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvK7gMCO80Ildz7mmG2VWsLhbh6DmdA7NNuXk3B2HfhIDmI 4EoHYHgPZXfLgdGhLW8tZT217CYpkuwJ0V3Si xOg62RUt89lL4v9TCjkpAL0NLn70c13 mOJoHFGZP1yaOpgnTIkz9gq8EMTOXx72njd7AW4jyDEzcMVlHAB39Zwow94bjfhBIZSFl4LNGW228/KbN2Ae5R5W VXfdsaKFlThT/obWs3bnXKdBrgg7M6ove8crOuTK/4aVYANFGHy5xBiHx64pw1YYEL585ZxNmY49BQ/PEhl1AP/GUIQtHsuQSf4WDvJ2EK6f5yBHfOaLPmKn 3aQ6VXHilvw7/LmHaQ=. Comment: petr.kozelka@hp.com. Ssh-dss AAAAB3NzaC1kc3MAAACBAMFrQ bIkR2P7R 0PKL/TTgPNjBzT16...
petr.kozelka.net
bash script aware of its location for various types of invocation | Petr Kozelka
http://petr.kozelka.net/blog/2008/11/29/bash-script-aware-of-its-location-for-various-types-of-invocation
Bash script aware of its location for various types of invocation. When writing a bash script launching a tool used directly on commandline, it is often convenient for the user to have various ways of invocation. It is not a problem with trivial scripts, but those who need to access files with known location relative to the script, there are little troubles. Following snippet shows how to handle such cases:. Fork me on GitHub.
petr.kozelka.net
Why it is good to declare your dependencies | Petr Kozelka
http://petr.kozelka.net/blog/2007/07/29/why-it-is-good-to-declare-your-dependencies
Why it is good to declare your dependencies. When you build an application, with complexity exceeding "Hello, World" example, you usually need to use classes and other resources from another library. Then you have several options how to do it:. Worst one) copy the sources of this library to your project. This is extremely bad idea; id disconnects you from the development of original code. Fortunately, AFAIK, this is not widely used practice. You can be very sure that you use a version published by its ve...
petr.kozelka.net
How to build a ZIP output artifact in Maven | Petr Kozelka
http://petr.kozelka.net/blog/2009/10/22/how-to-build-a-zip-output-artifact-in-maven
How to build a ZIP output artifact in Maven. It's quite a common situation that you have a bunch of files, most or all of them committed in svn, and need to make a release of this so that it can be reused with the Maven's dependency mechanism. There are several ways how to accomplish that:. To build and build-helper-maven-plugin. Create custom plugin that handles both packaging and attaching. Each of them has its advantages in some situations, but my favorite is the second option for most cases. Project ...
petr.kozelka.net
When is it best to do cleanup in tests ? | Petr Kozelka
http://petr.kozelka.net/blog/2009/07/04/when-is-it-best-to-do-cleanup-in-tests
When is it best to do cleanup in tests? With "true" unit tests, having no requirements on shared external resources, this is not an issue. But in reality, we often need (integration) tests that do need such resources - database, jms, other servers or just files located somewhere. In my opinion, the cleanup in all unit tests should happen before. The test itself. It has a simple reason - whatever wrong happens, next time the test can be executed without need for any annoying manual intervention. Do no cle...