Archive for the 'opensource' Category

Dec 17 2006

Solution to “Error starting modern compiler”

Published by pj under eclipse,java,opensource

The eclipse/java error “Error starting modern compiler” when trying to compile something using javac in eclipse is being caused by eclipse using a different java VM than the one JAVA_HOME is pointing to.

Other keywords:

  • eclipse compile error
  • “13: Error starting modern compiler”
  • eclipse cannot compile

30 responses so far

Dec 01 2006

Mythtv channel list for Leiden/Den Haag

Published by pj under mythtv,opensource

After doing a scan in mythtv, you’ll end up with lots of unnamed channels.

This table:

http://mythtv.org/pipermail/mythtv-users/attachments/20031125/ad787d1d/Cable_casema_DenHaag.obj

Can be converted to SQL using:

perl -we 'while(<>){ /^(.+?)\s+[\d\-\+]+\s+[\d\-\+]+\s+([\w\d]+)\s+([\d\-]+)$/ && do {print "UPDATE channel set name=\"$1\",callsign=\"$1\" where channum = \"$2\";\n"} }' > myth.sql

(just paste the table into the command box where you executed perl)

You can now feed myth.sql to your mythtv mysql instance, and your channel names will be set correctly.

No responses yet

Dec 01 2006

Catching rogue packets

Published by pj under opensource

For a while, my internal linux machine was sending strange DNS queries to my providers’ DNS servers.

Packets sniffed with tshark:
0.000000 192.168.1.10 -> 217.19.16.131 DNS Standard query A eth1

Tcpdump adds the port number by default as well:

21:15:36.795149 IP 192.168.1.10.32781 > 217.19.16.131.53:32834+ A? eth1. (22)

Running a loop on lsof:

while :; do lsof -iUDP

Allowed me to catch the bad process:

nmbd 5468 root 9u IPv4 26837 UDP 192.168.1.10:32783->customer.cambrium.nl:domain

Looking at samba’s configuration file, searching for ‘eth1′..:

interfaces = eth1/255.255.255.0


Baaad ubuntu, m'kay.

No responses yet

Nov 28 2006

Samba/Windows problem: content of folder does not refresh

Published by pj under opensource,samba

Problems like:

  • files not disappearing when you delete it through a samba share on a windows machine
  • “new folder” command requires manual F5 (refresh) before it appears

Can be easily solved by adding:

refresh = 1

To your smb.conf configuration file. (global section)

Same issue earlier reported:

Other keywords:

  • windows directory contents do not refresh
  • sync bug in windows samba share
  • samba share does not update
  • samba folder does not appear to be valid
  • samba refresh
  • apache deleted windows share refresh
  • samba directories not refreshing
  • new folder does not appear until refresh f5
  • samba folder refresh

16 responses so far

Nov 21 2006

Content Management Systems (NOT for the web!)

Published by pj under opensource

While searching for a web-interface on top of the JCR-170 implementation called “Apache Jackrabbit”, I looked at several of the comparison matrix pages describing the different content management systems.

Why does everyone seem to think “content” should only be used in the context of website publishing?!

I’m looking for a content system which allows me to manage content (images, pdf’s, scans) through the web:

- manage structure (tree-like would be fine)

- upload and browse through available content

No responses yet

Oct 29 2006

ABN Amro mutatieoverzicht exporteren bij zakelijke rekeningen

Published by pj under opensource

(This article is regarding the Dutch online banking website for ABN Amro

Voor het exporteren van de mutatiehistorie bij ABN Amro moet er bij zakelijke rekeningen 5 ct/regel betaald worden, terwijl het bij de particuliere versie gratis is.

Dit GreaseMonkey script voegt een ‘CSV’ knop toe aan je mutatiehistorie, zodat je ten alle tijde kostenloos je mutatie-historie kunt exporteren.

ABN Amro mutations download Screenshot 1

Wanneer je op de ‘CSV’ knop klikt, krijg je in een apart scherm de mutatiehistorie als tekst te zien, welke je via de webbrowser kunt ‘Opslaan als’:

ABN Amro mutations download Screenshot 2

Bekende problemen:

- Na klikken op de ‘CSV’ knop krijg je in je originele scherm een error op de ABN website – klik dan op ‘terug’ om terug te gaan naar je overzicht

- Er zijn twee ontbrekende velden (vermoedelijk de begin- en eind-balans waarden)

- Deze “CSV” is nog geen echte CSV: het is leesbare machine-tekst zoals ABN Amro het zelf ook exporteert.

No responses yet

Oct 11 2006

Apache2 and subversion broken

Published by pj under apache2,bugs,opensource,subversion

Problem: SVN (Subversion) didn’t work: “(20014)Internal error: Bad database version: compiled with 4.4.20, running against 4.3.28″

Solution:

But only this time: the debian-apache2 team linked apache2 against both libdb4.3 and libdb4.4. I rely heavily on the apache2 module “dav_svn”, which uses apache2′s preferred libdb.

After four hours of reinstalling and debugging with the help of Peter Samuelsen, he found this issue and reported it to the debian-apache2 team.

The updated subversion debian package is at: http://free.linux.hp.com/~troyhebe/subversion-1.4.0-5/libsvn1_1.4.0-5_i386.deb

No responses yet

Oct 04 2006

Fun with graphviz and dot

Published by pj under design,dot,opensource

I am currently using “Graphviz” to visualize the design of a use case model within a wiki environment.

(Trac plugin: http://trac-hacks.org/wiki/GraphvizPlugin)

Consider this line:

pie->I->like->pie->yummy->I->yummy->like->I->pie->like->yummy->pie

Resulting in this picture:

Example of Dot's usage

Delicious!

No responses yet

« Prev