Bug#429210: more tests on iec16022

2009-04-19 Thread Hubertus Krogmann
Hi

tests:
Ok:
./iec16022 -f png -o /tmp/ttt.png "Ostern_2009"
[..]
./iec16022 -f png -o /tmp/ttt.png "er/privat/2009/Ostern_2009"

Broken:
./iec16022 -f png -o /tmp/ttt.png "der/privat/2009/Ostern_2009"
-> der/privat/2009/Ostern^20

./iec16022 -f png -o /tmp/ttt.png "lder/privat/2009/Ostern_2009"
-> lder/privat/2009/Ostern^20

even more strange:
./iec16022 -f png -o /tmp/ttt.png 
"der/privat/2009/Ostern_2009der/privat/2009/Ostern_2009"
i-> der/privat/2009/Ostern^2009der/privat/2009/Ostern^20

40* "_" get encoded correctly.
"a_b_c_ ... _y_z_" get encoded correctly.

"lder/privat/2009/Ostern_2009" -> lder/privat/2009/Ostern^20
"/aa//aa_" -> /aa//aa^
"/ZZ//ZZ_" -> no, not what I expected :) : :[Z/[Z/[[_[

I don't know really the algo, nor have I really looked at the code, but I
think, this looks like integer overflows while counting ascii code together
or something like that in combination with the way the pixel gets placed.

Let's take "@" (ascii 64 so easy to count)
@@_ -> @@
@_ -> @
_ ->
@@@_ -> @@@
@@_ -> @@
@_ -> @
_ ->
@@@_ -> @@@
..
@_ -> @
_ ->
but:
@@@_ -> @@@_
@@_  -> @@_
@_   -> @_
_-> _

so,7*64 + 95 is ok
   8*64 + 95 is NULL
 n*4*64 + 95 is NULL
1*64+n*4*64 + 95 is 64
2*64+n*4*64 + 95 is 64 64
2*64+n*4*64 + 95 is 64 64 64

@@@_ -> @@@_ is going to get encoded correctly

what ever happens here :-)

Perhaps someone could code a little programm around 
http://sourceforge.net/projects/iec16022sharp/
or port that to C ...

Seems I have to build small tiny urls with as few bytes as possible :-/

btw. "dddP _" (same sum as "_" gets encoded correctly)


-- 
Hubertus Krogmann 
hk @ hkit . de 


signature.asc
Description: PGP signature


Bug#429210: Tried version 0.2.3 encoding is somewhat instable

2009-04-18 Thread Hubertus Krogmann
Hello

Ubuntu 8.10 here, but also debain sid

downloaded 0.2.3 from  http://www.datenfreihafen.org/projects/iec16022.html

but hit (this) error. 

I contacted Stefan, but he is to busy at the moment.

I don't think it is a "if _ is on position 4+ it is encoded wrong" as
he 
./iec16022 -f  png -o /tmp/ttt.png 
"1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_"

produces a correct (as in "my nokia n78 with barcodescanner shows the same 
text") output.

a http:// link of same length with one "_" gets a "^" encoded.

Even when I insert " " before and after the "/" and "_".

If I use the string 
"1/2/3/4/5/6/7/8_9_0_1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_"
the result is completely broken. (I used -i infile to workaround possible shell 
escape problems)


-- 
Hubertus Krogmann 
hk @ hkit . de 


signature.asc
Description: PGP signature


Bug#521144: Processed: Re: Bug#521144: /usr/bin/gajim: gajim-svm (and gajim) disconnects and reconnect every 5 or so minutes

2009-03-26 Thread Hubertus Krogmann
On Wed, 25 Mar 2009 13:56:12 +0100
Hubertus Krogmann  wrote:

> Maybe the default 30 seconds "wait before reconnect" are to small for 
> accounts on servers with a lot of accounts. Building the roster with
> 800+ entries needs some time...

I tried to set 
keep_alives_enabled = True
time_for_keep_alive_answer = 300

but after restart it is set back to 30. 
If there is a limit, it should be mentioned.

-- 
Hubertus Krogmann 
hk @ hkit . de 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#521144: Processed: Re: Bug#521144: /usr/bin/gajim: gajim-svm (and gajim) disconnects and reconnect every 5 or so minutes

2009-03-25 Thread Hubertus Krogmann
On Wed, 25 Mar 2009 10:19:37 +0100
Martin Michlmayr  wrote:

> I'm CCing the actual bug submitter:
> 
> * Yann Leboulanger  [2009-03-25 09:58]:
> > First, gajim-svn is an unofficial package.
> >
> > Then there is most probably logs about a xmpp-ping
> >
> > Could you run gajim -v -l gajim=DEBUG and attach logs (or send them in  
> > private if you don't want to expose them)

I have started with the old settings (both accounts)

one against openfire 3.6.something 
one against ejabberd2 with those 800+ accounts

once I manually connected to that one -> gajim disconnects both
accounts and try to reconnect one, as the other is not set to autoconncet


I stripped all user information from that account above the reconnect,
the last entries before the disconnect were things like : 

DEBUG: ESC[35mroster   okESC[32mSetting roster item 
t...@ttt.jabber.big.account ...ESC[0m

It looks like gajim is not able to handle that account.

I will try it without keepalives, but I don't think that will help.

> > As a workarround, disable keepalive packets.
> > -- 
> > Yann
> 
> -- 
> Martin Michlmayr
> http://www.cyrius.com/


-- 
Hubertus Krogmann 
hk @ hkit . de 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#521144: Processed: Re: Bug#521144: /usr/bin/gajim: gajim-svm (and gajim) disconnects and reconnect every 5 or so minutes

2009-03-25 Thread Hubertus Krogmann
On Wed, 25 Mar 2009 10:19:37 +0100
Martin Michlmayr  wrote:

> I'm CCing the actual bug submitter:
> 
> * Yann Leboulanger  [2009-03-25 09:58]:
> > First, gajim-svn is an unofficial package.
> >
> > Then there is most probably logs about a xmpp-ping
> >
> > Could you run gajim -v -l gajim=DEBUG and attach logs (or send them in  
> > private if you don't want to expose them)
> >
> > As a workarround, disable keepalive packets.

Hmm, I may have missed to restart gajim after setting keepalives off.
(without restart it disconnect before roster was build, no I even can chat :)

Maybe the default 30 seconds "wait before reconnect" are to small for 
accounts on servers with a lot of accounts. Building the roster with
800+ entries needs some time...

> > -- 
> > Yann
> 
> -- 
> Martin Michlmayr
> http://www.cyrius.com/


-- 
Hubertus Krogmann 
hk @ hkit . de 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#521144: /usr/bin/gajim: gajim-svm (and gajim) disconnects and reconnect every 5 or so minutes

2009-03-25 Thread Hubertus Krogmann
Package: gajim-svn
Version: 20090323-1
Severity: important
File: /usr/bin/gajim

Hello

after upgrading to gajim 0.12.1-2 on sid it reconnects all 5 or so minutes.
(I use 2 jabber servers, it reconnects on both) 
I tried gajim-svn then, same behaviour.
I tried psi : no reconnects
I use ubuntu 8.10, gajim 0.12.?? with the same servers on another system : no 
problems

I mv ~/.gajim ~/.gajim.old and recreated my accounts : reconnect all 5 or so 
minutes.

if looking into the xml console, I only see status messages of accounts in the 
roster,
and the reconnect, no message why it disconnects.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-rc8-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages gajim-svn depends on:
ii  dnsutils   1:9.5.1.dfsg.P2-1 Clients provided with BIND
ii  python 2.5.4-2   An interactive high-level object-o
ii  python-glade2  2.14.1-1  GTK+ bindings: Glade support
ii  python-gtk22.14.1-1  Python bindings for the GTK+ widge
ii  python-pysqlite2   2.5.0-2   Python interface to SQLite 3
ii  python-support 0.8.7 automated rebuilding support for P

Versions of packages gajim-svn recommends:
ii  dbus  1.2.12-1   simple interprocess messaging syst
ii  notification-daemon   0.4.0-1a daemon that displays passive pop
ii  python-dbus   0.83.0-1   simple interprocess messaging syst
ii  python-gnupginterface 0.3.2-9Python interface to GnuPG (GPG)
ii  python-openssl [python-pyopen 0.8-1  Python wrapper around the OpenSSL 

Versions of packages gajim-svn suggests:
ii  aspell-en 6.0-0-5.1  English dictionary for GNU Aspell
ii  avahi-daemon  0.6.24-2   Avahi mDNS/DNS-SD daemon
ii  libgtkspell0  2.0.13-2   a spell-checking addon for GTK's T
pn  nautilus-sendto(no description available)
pn  network-manager(no description available)
pn  python-avahi   (no description available)
ii  python-gnome2 2.22.3-3   Python bindings for the GNOME desk
ii  python-gnome2-desktop 2.24.1-1   Python bindings for the GNOME desk

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org