Re: [Perl] Config sourcen [was: Re: mutt + mysql-Adressbuch)

2002-09-20 Thread Joerg Plate

 DB_Host, Database, table, username, password etc sollen in
 einer separaten Datei abgespeichert werden.
Ich würde das mit Config::IniFiles machen...

if (-e $configfile) {
  tie %ini, 'Config::IniFiles', (-file=$configFile);
} else {
  die kein $configfile: $!\n;
}

my $DB_Host = %ini{Database}{Host} || default DB_Host;
my $Database = %ini{Database}{Name};
if (!defined $Database) { die ... }

und in $configfile steht dann sowas wie

[Database}
Host = foo
Name = bar

-- 
I'm working on it.  http://Patterner.de


-- 
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)




Re: [Perl] Config sourcen [was: Re: mutt + mysql-Adressbuch)

2002-09-20 Thread Joerg Plate


 Davor hab ich noch ein   use Config::IniFiles;
Klar... ich habe ja auch kein komplettes Programm geschrieben,
nur ein paar Fragmente :-)

 my %ini = ;
%ini ist ein Hash und kein Skalar.  my %ini reicht.

 my $host = %ini{Database}{host}
my $host = $ini{Database}{host}

Das war natürlich Unfug von mir. Es geht ja um einen Wert aus dem
Hash und nicht um das gesamte Hash selber.

-- 
I'm working on it.  http://Patterner.de

Mental note: no untested fragments anymore


-- 
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)




Re: Prog zum skriptgesteuerter FTP-Upload

2002-09-18 Thread Joerg Plate


sitecopy

-- 
I'm working on it.  http://Patterner.de


-- 
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)




Re: alsa: no license

2002-04-26 Thread Joerg Plate


 Warning: loading /lib/modules/2.4.18/misc/snd.o will taint the kernel: no license
Warnung, kein Fehler.

 Gibt es einen workaround?
Wofür? Wenn es nicht funktioniert hat es einen anderen Grund.

-- 
I'm working on it.  http://Patterner.de

http://StudiesInWords.de awfully darn close to the most useful Buffy link in 
existence WGF


-- 
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)




Re: Diff meldet Unterschied, nur ich sehe ihn nicht?

2002-04-21 Thread Joerg Plate


LANG=de.DE@euro
   |
LANG=de_DE@euro

-- 
I'm working on it.  http://Patterner.de

http://StudiesInWords.de awfully darn close to the most useful Buffy link in 
existence WGF


-- 
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)




Re: INN einrichten

2002-04-12 Thread Joerg Plate


   Wenn ich jedoch als user news versuche, eine neue Gruppe anzulegen, sagt
   mir INN: 'No innd.pid file found; Did server die?'
INN oder ctlinnd..? Ist der INN überhaupt am laufen?

-- 
I'm working on it.  http://Patterner.de

http://StudiesInWords.de awfully darn close to the most useful Buffy link in 
existence WGF


-- 
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)




Re: Bad block scan auf swap-Partition?

2002-04-08 Thread Joerg Plate


 wie kann ich einen Bad-Block scan auf meiner swap-Partition machen?
mkswap mit -c als zusätzlichem Parameter...

-- 
I'm working on it.  http://Patterner.de

http://StudiesInWords.de awfully darn close to the most useful Buffy link in 
existence WGF


-- 
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)




Re: [wml] wml::fmt::sdf

2002-02-01 Thread Joerg Plate


 ** wml::fmt::sdf: external filter `sdf' not found
Was sagt which sdf...?

 Kann mir jemand sagen was ich falsch mache?
Fehlendes apt-get install sdf..?

Bei mir funktioniert es jedenfalls.

-- 
I'm working on it.  http://patterner.de
http://www.amazon.de/exec/obidos/wishlist/AQP0BN7EPJIH


-- 
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)




Re: Mathematica

1999-09-30 Thread Joerg Plate
 And just to bolster your confidence, I ran Mathematica just
 fine on my Debian slink system for quite some time.
It works with potato, too. It is not a libc.so.6 or libc.so.5
problem, because everything is statically linked.

-- 
I'm working on it.   There should be more math. This could be mathier.


Re: BEWARE: Exim in potato.

1999-06-29 Thread Joerg Plate
 also if you are running fetchmail. exim 3.02-1 will not work with fetchmail.
It works for me...

mda /usr/sbin/exim -bm %T

-- 
I'm working on it.   There should be more math. This could be mathier.


Re: Broken libtiff3g-dev

1999-05-01 Thread Joerg Plate
Append exit 0 to /var/lib/dpkg/info/libtiff3g-dev.postinst and run
dpkg --configure --pending.

-- 
I'm working on it.   There should be more math. This could be mathier.


Re: Automate UPPER to lower case directory

1998-10-20 Thread Joerg Plate

1 cat /usr/local/bin/rename
#!/usr/bin/perl -Tw
use locale;
# usage: rename perlexp [files]
($op = shift) || die Usage: $0 perlexp [filenames]\n;
if ([EMAIL PROTECTED]) { @ARGV = STDIN; chop(@ARGV); }

for (@ARGV) {
  $old = $_;
  eval $op;
  die $@ if $@;
  $new = $_;
  next if $old eq $new;
  next if -e $new;
  rename($old,$new) || die $0: cannot rename $old to $new: $!\n;
}

1 rename y/A-Z/a-z/ *

-- 
i'm working on it


Re: Palm Pilot software

1998-08-03 Thread Joerg Plate

URL:http://www.moshpit.org/pilotmgr/

-- 
i'm working on it


--  
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null


Re: Stupid unix

1998-07-24 Thread Joerg Plate


 Is there a simple way to change all filenames in a directory so they
 are lowercase?

1 cat /usr/local/bin/rename
#!/usr/bin/perl -Tw

use locale;

# usage: rename perlexp [files]

($op = shift) || die Usage: $0 perlexp [filenames]\n;
if ([EMAIL PROTECTED]) {
  @ARGV = STDIN;
  chop(@ARGV);
}

$op =~ m/(.*)/; $op = $1;   # Un-taint $op

for (@ARGV) {
  $old = $_;
  eval $op;
  die $@ if $@;
  $new = $_;
  next if $old eq $new;
  next if -e $new;
  $old =~ m/(.*)/; $old = $1; # Un-taint $old
  $new =~ m/(.*)/; $new = $1; # Un-taint $new
  rename($old,$new) || die $0: cannot rename $old to $new: $!\n;
}

1 rename y/A-Z/a-z/ *# lowercase all files
1 rename s/.jpeg/.jpg/   # change jpeg to jpg

This is fun if you know perl :-)

-- 
i'm working on it


--  
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null


where is killall? (hamm)

1998-01-11 Thread Joerg Plate

1 dpkg -S killall
sysvinit: /usr/man/man8/killall5.8.gz
sysvinit: /sbin/killall5

ii  sysvinit2.73-2 System-V like init.

Maybe another package?

-- 
i'm working on it

CIA SECRET:  Proof of P=NP found in UFO![EMAIL PROTECTED]


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: parallel zip and scsi-kontroller conflict

1997-11-26 Thread Joerg Plate

Hello-hello,

the problem is not a problem anymore :-)

Kernel 2.0.32 and ppa 1.38 works fine (with modules, etc.)

Jörg
-- 
i'm working on it

CIA SECRET:  Proof of P=NP found in UFO![EMAIL PROTECTED]


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] .
Trouble?  e-mail to [EMAIL PROTECTED] .


parallel zip and scsi-kontroller conflict

1997-11-22 Thread Joerg Plate

Hello-hello,

a scsi-controller and a harddisk are recognized as /dev/sda.
If I try to use the zip-drive insmod ppa fails (maybe
because it wants to be /dev/sda, too). Reading the sources
wasn't very helpful. How can both be used together?

-- 
i'm working on it

CIA SECRET:  Proof of P=NP found in UFO![EMAIL PROTECTED]


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: [DEBIAN] Financial software?

1997-11-21 Thread Joerg Plate

http://www.menet.umn.edu/~clolson/cbb/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


montage: can't resolve symbol 'compress'

1997-09-02 Thread Joerg Plate

1 dpkg -S montage
imagemagick: /usr/X11R6/bin/montage

1 dpkg -l imagemagick
ii  imagemagick 3.8.9-1

1 ldd /usr/X11R6/bin/montage
libMagick.so.3.8 = /usr/X11R6/lib/libMagick.so.3.8 (0x4000b000)
3.8.9
libdf.so.4.0 = /usr/lib/libdf.so.4.0 (0x4011f000)  
4.0.2
libtiff.so.3 = /usr/local/lib/libtiff.so.3 (0x40191000)
3.4.035
libjpeg.so.6a = /usr/lib/libjpeg.so.6a (0x401bf000)
6a.0.0
libpng.so.0 = /usr/lib/libpng.so.0 (0x401de000)
0.96
libXext.so.6 = /usr/X11R6/lib/libXext.so.6 (0x4020)
6.3
libX11.so.6 = /usr/X11R6/lib/libX11.so.6 (0x4020b000)  
6.1
libm.so.5 = /lib/libm.so.5 (0x402a9000)
5.0.9
libc.so.5 = /lib/libc.so.5 (0x402b2000)
5.4.33

-- 
i'm working on it


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .