[solved] Missing “cv.cls” using Kubuntu 9.10?

28/01/2010 bkiew Leave a comment

In the last days i wanted to update my old latex-based CV. But what happened? The file “cv.cls” was not found. Somehow my configuration changed – the reason may be the upgrade to Kubuntu 9.10…

Here a short list of steps to get it fixed:

  • download http://wiki.lyx.org/uploads/Examples/CV/cv.cls
  • copy/move the downloaded file to a sub directory of “/usr/share/texmf-texlive/tex/latex” (perhaps you have to alter the directory access permissions or run “sudo cp“)
  • reconfigure the latex distribution by executing “sudo texconfig rehash
  • Categories: latex Tags:

    Issue in localisation of hibernate validator annotations via Richfaces

    14/01/2010 bkiew Leave a comment

    There is an issue when you want to localise your ‘hibernate validator annotation’ messages in combination with Richfaces (f.e. using <rich:graphValidator>).

    See https://jira.jboss.org/jira/browse/RF-8265

    Summary:
    Use ‘ValidatorMessages.properties’ instead of ‘ValidationMessages.properties’

    Further usage of my masterthesis…

    04/01/2010 bkiew Leave a comment

    Remembering the sortOrder of a rich:dataTable

    17/12/2009 bkiew Leave a comment

    A plain and simple solution to remember the sortOrder of a rich:dataTable can be found
    in the Richfaces forum.

    Categories: JSF, Richfaces, java Tags: , ,

    window.print() does not work after JSF-Redirect in IE6

    09/12/2009 bkiew Leave a comment

    I wanted to present a button with an onclick-handler which invokes the browser printing dialog.

    With simple code like this

                <button onclick="window.print();return false;">Print me</button>
    

    It works in Mozilla Firefox 3.x and MS Internet Explorer 6, when the page is called directly. You can click the button, the dialog appears and everything is fine.

    Issue 1: But when the page is the result of a JSF-navigation-rule-based <redirect/> the IE6 behaves in a strange way: You click on the button and nothing happens – no js-code is invoked. It works after a manual reload using the F5-key.

    Issue 2: I figured out, that not even the following code works in IE6. After such a redirect.

    <script type="text/javascript">
      jQuery(document).ready(function(){
        	//your js-code here
      });
    </script>
    

    Does anybody can reproduce the issues? And knows solutions for them?

    Workaround for Issue 1:
    Use self.print() instead of window.print(). This works in my usecase in FF3.x and IE6.

                <button onclick="self.print();return false;">Print me</button>
    

    Links: How to create a “MS Excel”-compatible CSV file

    04/12/2009 bkiew Leave a comment

    http://www.rfc-editor.org/rfc/rfc4180.txt
    http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm
    http://www.csvreader.com/csv_format.php

    Note the information about escaping double-quotes with two double-quotes! This helped me a lot.

    Categories: Excel Tags: , , ,

    Status code 401 on mvn site:deploy?

    27/11/2009 bkiew Leave a comment

    Are you faced to a 401 status code when invoking mvn site:deploy?

    Like this one?
    Embedded error: Failed to transfer file: http://server:port/dir/projectname//./changes-report.html. Return code is: 401

    Then

    1. check your pom.xml if the site-id in the distribution-section of the pom.xml matches any server-id setting in your settings.xml.
    2. check if the password is still valid!

    For example the following pom.xml and settings.xml DO NOT match. Note the difference between BARNAME and FOONAME! This cannot work.

    pom.xml:

       <distributionManagement>
         <site>
           <!-- does not match FOONAME -->
           <id>BARNAME</id>
           <url>${site-base-url}/projectname/</url>
         </site>
       </distributionManagement>
    

    .m2/settings.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <settings xmlns="http://maven.apache.org/POM/4.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
    
    http://maven.apache.org/xsd/settings-1.0.0.xsd">
    
      <servers>
        <server>
           <!-- does not match BARNAME -->
          <id>FOONAME</id>
          <username>XXXXXX</username>
          <password>XXXXXX</password>
        </server>
      </servers>
    </settings>
    
    Categories: Uncategorized Tags: , , ,

    How to recover a wand password in Opera?

    25/11/2009 bkiew Leave a comment

    I found this cool solution.

    http://operawiki.info/PowerButtons#retrievewand

    a) Add a javascript-based button to your toolbar.
    b) Navigate to the site, where you want to retrieve your wand password.
    c) Click the button (from step a) and an alert-window will show you the desired password.

    Categories: opera Tags: , ,

    maven-surefire-plugin only uses 67MB of heap?

    24/11/2009 bkiew Leave a comment

    Today i  had to do some merging of artifacts (code and pom.xml). Then i wondered, why the tests didn’t run properly.

    java.lang.OutOfMemoryError: Java heap space” was the reason. But why? I didn’t change the tests and i carefully merged the configuration. So i connected VisualVM to the surefire process and saw that only ca. 67MB max heap were available. I reviewed my MAVEN_OPTS, but my settings didn’t apply…

    The culprit is a bug. See http://jira.codehaus.org/browse/SUREFIRE-501.

    The workaround is to place your max heap configuration in the configuration section of the plugin. As seen in the linked bug issue:

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-plugin</artifactId>
      <configuration>
        <!-- http://jira.codehaus.org/browse/SUREFIRE-501 -->
        <argLine>-Xmx256m</argLine>
      </configuration>
    </plugin>
    
    Categories: maven Tags: , ,