Rainer Blessing's Site Notes Of A Software Developer

5Mar/100

KTagebuch for KDE4

I am currently porting KTagebuch to KDE4. Saving, loading and browsing is already working.
For people who already want to try this version I created a Ubuntu package for KTagebuch-0.80. Please create a backup of your KTagebuch database which you can find in "~/.kde/share/apps/ktagebuch/", because this version has not been tested much.
I set up a github repository for the source code.

Filed under: My Software No Comments
7Oct/090

Notes about creating a project with Seam, Eclipse and Maven2

install JBoss, Seam und Eclipse (German): http://javathreads.de/2008/09/tutorial-mit-jboss-seam-und-jee5-unter-eclipse-starten/

I used the following versions: jboss-5.1.0.GA, jboss-seam-2.1.1, Eclipse 3.6M2

Maven Project Template: http://kasper.eobjects.dk/2009/04/seam-ejbs-and-ear-packaging-in-maven.html

1. Change sayHello in ejb-hello.xhtml to sayHello() (with the parentheses)
2. Change version of facelets dependency in web/pom.xml from 1.1.11 to 1.1.15.B1 to work with JBoss AS 5

Eclipse Maven Plugin: http://code.google.com/p/q4e/

Import project directory as Maven2 project (Seam-EJB-...) .

Eclipse File sync Plugin für Deployment http://andrei.gmxhome.de/filesync/index.html

Create configuration for Filesync:

Filename: packaging/.settings/de.loskutov.FileSync.prefs:

#Wed Oct 07 11:34:44 CEST 2009
WARNING=DO NOT MODIFY THIS FILE IF YOU DON'T UNDERSTAND
defaultDestination=
/JBossSeam/jboss/jboss-5.1.0.GA/server/default/deploy
defaultVariables=
eclipse.preferences.version=1
includeTeamPrivateFiles=false
map|0=target|,|*.ear|,|,
useCurrentDateForDestinationFiles=false

Deployment:
- start jboss in Eclipse
- mvn install

Steps to adapt the project template
-Change Java files in src/main/java
-Rename the template project name "SeamExample" in the pom.xml files

Filed under: Work No Comments
28Aug/090

Reading a CSV File with FasterCSV

I needed to import a data in a CSV file into a database. I needed to find the encoding of the CSV file. I found a method to display the encoding in the VIM statusline, and included this code in .vimrc:

# show file encoding in vim status line
if has("statusline")
 set statusline=%< %f\
%h%m%r%=%{\"[\".(&fenc==\"\"?&enc:&fenc).((exists(\"+bomb\")\ &&\
&bomb)?\",B\":\"\").\"]\ \"}%k\ %-14.(%l,%c%V%)\ %P
endif

The characterset was Latin1, and I converted it to unicode with Iconv. The row with umlauts had to be split manually, because FasterCSV did not split it.

FasterCSV.foreach(csv_file) do |row|
  if(row[1].nil?)
     row=row[0].split(',')
     Iconv.iconv('UTF-8', 'LATIN1',row[0]).join
     Iconv.iconv('UTF-8', 'LATIN1',row[1]).join
  end
end

Is there a more elegant solution?

24Apr/080

RBDiary 1.1

RBDiary 1.1
This is a slightly improved version. The most visible improvement is the marking of the entries in the calendar.

Filed under: My Software No Comments
12Apr/080

RBDiary – 1.0

RBDiary 1.0

RBDiary - 1.0 another attempt at at diary application. This time I used Ruby and plain QT which means it is cross platform and works on all three OSs. I wrote it in a few hours and it already does everything I need. With KTagebuch it was completely different. I spent many hours just struggling with the automake build tool.

Filed under: My Software No Comments
29Sep/070

AnimalTracker 0.73

This version contains few small fixes.

Filed under: My Software No Comments
4Aug/070

AnimalTracker 0.72

Another user of AnimalTracker appeared which motivated me to work on it again. I mainly fixed some bugs. The distribution calculation crashes for example if no range is defined. So after four years there is AnimalTracker 0.72.

Filed under: My Software No Comments
26Feb/060

KTagebuch is in a Kubuntu Repository

KTagebuch can be installed from a Kubuntu Breezy Repository. Click here for instructions to add the repository.

Filed under: My Software No Comments
12Feb/060

KTagebuch Kubuntu Package

I created a KTagebuch package for Kubuntu and also added a funtion to restore the window size and location.

Filed under: My Software No Comments
23Dec/050

XGSEmu 0.08

XGSEmu-0.08XGSEmu
Two screen sizes are now selectable and the aspect ratio is now closer to 4:3.

Filed under: General No Comments

Pages

Tags

characterset Ruby

 

March 2010
M T W T F S S
« Oct    
1234567
891011121314
15161718192021
22232425262728
293031  

Twitter Updates

RSS Mein tägliches Blog

RSS Mein Pferde Blog

Bad Behavior has blocked 37 access attempts in the last 7 days.