IDE for windows?

2003-02-17 Thread Neil Fryer
Hi All

Can anyone recommend a decent IDE for Windows?
Oh yeah, and free.  :-)

Thanks
Neil Fryer




Re: IDE for windows?

2003-02-17 Thread Dave Cross

From: Neil Fryer [EMAIL PROTECTED]
Date: 2/17/03 11:12:01 AM

 Hi All

 Can anyone recommend a decent IDE for Windows?
 Oh yeah, and free.  :-)

Depends what you want from an IDE. Xemacs always seems to do
all I want.

Dave...

-- 
http://www.dave.org.uk

Let me see you make decisions, without your television
   - Depeche Mode (Stripped)








Re: IDE for windows?

2003-02-17 Thread Nigel Hamilton
Hi Neil,

I really like UltraEdit, which has a Save As to FTP feature and 
Perl syntax highlighting etc. ... although it's not free it only costs $35 
US.

Nige

 Hi All
 
 Can anyone recommend a decent IDE for Windows?
 Oh yeah, and free.  :-)
 
 Thanks
 Neil Fryer
 

-- 
Nigel Hamilton
Turbo10 Metasearch Engine

email:  [EMAIL PROTECTED]
tel:+44 (0) 207 987 5460
fax:+44 (0) 207 987 5468

http://turbo10.com  Search Deeper. Browse Faster.





custom 404 page

2003-02-17 Thread Tony Kennick

http://www.coxar.pwp.blueyonder.co.uk/

-- 
Tony Kennick
TechnoPhobia Limited.
Phone: +44 (0)114 2212123  Fax: +44 (0)114 2212124
Email: [EMAIL PROTECTED]
WWW: http://www.technophobia.com
Registered in England and Wales Company No. 3063669
VAT registration No. 598 7858 42

The contents of this e-mail are confidential to the addressee and are
intended solely for the recipients use. If you are not the addressee, you
have received this e-mail in error. Any disclosure, copying, distribution or
action taken in reliance on it is prohibited and may be unlawful.

Any opinions expressed in this e-mail are those of the author personally and
not TechnoPhobia Limited who do not accept responsibility for the contents
of the message.

All e-mail communications, in and out of TechnoPhobia, are recorded for
monitoring purposes.





[JOB] Perl/MySQL developer - South London

2003-02-17 Thread David Lane
*
This message may contain confidential information and
will be protected by copyright.  If you receive it in error,
please notify us, delete the message from your system
and do not make use of or copy it.  Any attachment to
this message has been checked for viruses, but please
rely on your own virus checker and procedures.

Our website address is www.victimsupport.org
*

Victim Support, the national charity which helps people cope with crime, is
looking for a Perl/MySQL developer, ideally with experience of Debian and
Red Hat,  to create a database with an associated user authentication system
for the administration of its members' contact details. The system will need
to be accessible via our intranet to all of our UK volunteers, trustees and
staff, up to 15,000 people, and link to other applications provided on the
intranet.

If you are interested in this project on a contract-for-services basis
please contact David Lane ([EMAIL PROTECTED]) for more
information and with details of relevant experience and expected hourly
rates. 




Expect.pm

2003-02-17 Thread Adam Spiers
Any Expect.pm experts here?  tcl expect lets you do stuff like
this with interact:

 interact {
 -reset $CTRLZ {exec kill -STOP [pid]}
 \001   {send_user you typed a control-A\n;
 send \001
}
 $  {send_user The date is [exec date].}
 \003   exit
 foo{send_user bar}
 ~~
 }

But 

 $object-interact( \*FILEHANDLE, $escape_sequence)
 interact() is essentially a macro for calling inter
 connect() for connecting 2 processes together. \*FILEHANDLE
 defaults to \*STDIN and $escape_sequence defaults to
 undef. Interaction ceases when $escape_sequence is read
 from FILEHANDLE, not $object.  $object's listen group will
 consist solely of \*FILEHANDLE for the duration of the
 interaction.  \*FILEANDLE will not be echoed on STDOUT.

which appears considerably less flexible.  I want to interact until
the spawned process outputs something.

What are listen groups anyway?




Re: IDE for windows?

2003-02-17 Thread Luis Campos de Carvalho
- Original Message -
From: Dave Cross [EMAIL PROTECTED]
Sent: Monday, February 17, 2003 9:22 AM

 From: Neil Fryer [EMAIL PROTECTED]
 Date: 2/17/03 11:12:01 AM

  Can anyone recommend a decent IDE for Windows?
  Oh yeah, and free.  :-)

 Depends what you want from an IDE. Xemacs always seems to do
 all I want.


  Hi, Dave, hi Neil.

  This game is  multiplayer. =-]

  Emacs is quite nice, but can't debug perl code (as far as I know). I need
an IDE that can debug perl, something like the classic Borland's Turbo C
IDE... or, preferrably, I need something that helps Emacs do this. Maybe
Neil wants something like this too. This is a quite interesting thread.

  Any suggestions??

  Regards to all.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Luis Campos de Carvalho
  Computer Science Student
  OCP DBA Oracle  Unix Sys Admin
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=





Class::DBI::Join

2003-02-17 Thread Kate L Pugh
I sent this question to the Class::DBI list last week, but didn't get
any replies so I thought I'd ask here too.  Can anyone help me out?

Kake

- Forwarded message from Kate L Pugh [EMAIL PROTECTED] -

Hello.  I only started using Class::DBI last week so please don't
laugh if this is a stupid question.

I'm using Class::DBI::Join to relate dealers (of the art kind) to
categories.  So I've got a (many-to-many) table that relates dealer
IDs and category IDs, and a Categorisation class that subclasses
Class::DBI::Join so I can put dealers in categories and get them out
again.  The thing I need to add is support for the 'importance' column
in that table - some dealers are major dealers in a category, others
only occasionally stock items from that category.  Now as it stands I
can do:

  $category-add_dealer( dealer = $minor_dealer, importance = 2 );

and the information goes in the table, and I can get all the dealers in
a category with:

  @dealers = Categorisation-join( $category ); 

but I want to be able to do:

  @dealers = Categorisation-join( $category, importance = 1 );

to get just the major dealers, and I can't work out what the
recommended way to do this is.  I made a patch to Class::DBI::Join
(attached with tests) to make the line above Just Work, but I'm sure
I've missed something that makes this a bad idea.

Help?


Kake


diff -pubr Class-DBI-Join-0.03/lib/Class/DBI/Join.pm 
class-dbi-join/lib/Class/DBI/Join.pm
--- Class-DBI-Join-0.03/lib/Class/DBI/Join.pm   2002-04-17 16:10:16.0 +0100
+++ class-dbi-join/lib/Class/DBI/Join.pm2003-02-12 12:27:24.0 +
@@ -24,7 +24,8 @@ Class::DBI::Join - many-to-many relation
   # Given a join table like:
   # CREATE TABLE films_and_actors (
   # film_id INTEGER REFERENCES films,
-  # actor_idINTEGER REFERENCES actors
+  # actor_idINTEGER REFERENCES actors,
+  # as_name VARCHAR(80)
   # );
   # And assuming Film and Actor are Class::DBI subclasses.
   Roles-table('films_and_actors');
@@ -40,6 +41,7 @@ Class::DBI::Join - many-to-many relation
 
   my $btaste = Film-retrieve('Bad Taste');
   my @roles  = Roles-join($btaste);
+  my @alien_roles = Roles-join($btaste, as_name = '3rd Class Alien');
 
 =head1 DESCRIPTION
 
@@ -57,8 +59,17 @@ Class::DBI::Join adds the following meth
 
 =item Ijoin
 
+  # Find all roles in the film Bad Taste.
   my @roles = Roles-join($btaste);
 
+  # Or just those in which the actors are playing aliens.
+  my @alien_roles = Roles-join($btaste, as_name = '3rd Class Alien');
+
+The first argument to Cjoin should be the object whose relations you
+want to find. Any other arguments will be passed straight through to
+the Csearch method of LClass::DBI, so you can provide information
+here to construct additional WHERE clauses.
+
 =cut
 
 __PACKAGE__-set_sql('ManyToMany', SQL);
@@ -68,10 +79,10 @@ WHERE   %s = ?
 SQL
 
 sub join {
-my($class, $one) = @_;
+my($class, $one, @args) = @_;
 
 my $hasa_cols= __hasa_cols($class);
-return $class-search( $hasa_cols-{ref $one} = $one-id );
+return $class-search( $hasa_cols-{ref $one} = $one-id, @args );
 }
 
 
diff -pubr Class-DBI-Join-0.03/t/Join.t class-dbi-join/t/Join.t
--- Class-DBI-Join-0.03/t/Join.t2002-04-16 21:09:03.0 +0100
+++ class-dbi-join/t/Join.t 2003-02-12 12:20:39.0 +
@@ -1,6 +1,6 @@
 #!/usr/bin/perl -w
 
-use Test::More tests = 11;
+use Test::More tests = 13;
 require_ok('Class::DBI::Join');
 
 use lib qw(t/lib/);
@@ -60,6 +60,12 @@ my $btaste = Film-retrieve('Bad Taste')
 my @bt_roles = Roles-join($btaste);
 is( @bt_roles, 6 );
 
+my @aliens = Roles-join($btaste, as_name = '3rd Class Alien');
+is( @aliens, 2, 'join works with extra where clause' );
+my @alien_actors = sort map { $_-actor-name } @aliens;
+is_deeply( \@alien_actors, ['Craig Smith (I)', 'Terry Potter'],
+  '...returns the right things too' );
+
 my $pj = Actor-retrieve('Peter Jackson');
 my @pj_roles = Roles-join($pj);
 is( @pj_roles, 4 );


- End forwarded message -




RE: IDE for windows?

2003-02-17 Thread Neil Fryer
Hi Luis,

That's it exactly!
I should have been more specific, but thank you.

Regards
Neil Fryer

-Original Message-
From: Luis Campos de Carvalho [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 17, 2003 12:28 PM
To: [EMAIL PROTECTED]
Subject: Re: IDE for windows?


- Original Message -
From: Dave Cross [EMAIL PROTECTED]
Sent: Monday, February 17, 2003 9:22 AM

 From: Neil Fryer [EMAIL PROTECTED]
 Date: 2/17/03 11:12:01 AM

  Can anyone recommend a decent IDE for Windows?
  Oh yeah, and free.  :-)

 Depends what you want from an IDE. Xemacs always seems to do
 all I want.


  Hi, Dave, hi Neil.

  This game is  multiplayer. =-]

  Emacs is quite nice, but can't debug perl code (as far as I know). I need
an IDE that can debug perl, something like the classic Borland's Turbo C
IDE... or, preferrably, I need something that helps Emacs do this. Maybe
Neil wants something like this too. This is a quite interesting thread.

  Any suggestions??

  Regards to all.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Luis Campos de Carvalho
  Computer Science Student
  OCP DBA Oracle  Unix Sys Admin
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=





Re: IDE for windows?

2003-02-17 Thread Paul Makepeace
On Mon, Feb 17, 2003 at 11:12:01AM -, Neil Fryer wrote:
 Hi All
 
 Can anyone recommend a decent IDE for Windows?
 Oh yeah, and free.  :-)

Try Komodo by Activestate,

http://www.activestate.com/Products/Komodo/ (not just Perl!)

Others:
http://www.solutionsoft.com/perl.htm - Perl Builder
http://www.perl-express.com/ - Perl Express
http://open-perl-ide.sourceforge.net/ - Open Perl IDE

HTH,
Paul

-- 
Paul Makepeace ... http://paulm.com/

What is feces? House plants on acid.
   -- http://paulm.com/toys/surrealism/




Re: IDE for windows?

2003-02-17 Thread Robin Berjon
Luis Campos de Carvalho wrote:

  Emacs is quite nice, but can't debug perl code (as far as I know). I need
an IDE that can debug perl, something like the classic Borland's Turbo C
IDE... or, preferrably, I need something that helps Emacs do this. Maybe
Neil wants something like this too. This is a quite interesting thread.

  Any suggestions??


You might want to look at Komodo which gets better every time I look at it. 
Downside: commercial edition $295, non-commercial $30.

--
Robin Berjon [EMAIL PROTECTED]
Research Engineer, Expwayhttp://expway.fr/
7FC0 6F5F D864 EFB8 08CE  8E74 58E6 D5DB 4889 2488




Re: IDE for windows?

2003-02-17 Thread Alex McLintock
Depends what you want. I hear good things about Eclipse... and jedit seems 
to be popular - but whether or not these are IDE's which do what you want

Alex


At 11:12 17/02/03, you wrote:
Hi All

Can anyone recommend a decent IDE for Windows?
Oh yeah, and free.  :-)

Thanks
Neil Fryer


Available for java/perl/C++/web development in London, UK or nearby.
Apache FOP, Cocoon, Turbine, Struts,XSL:FO, XML, Tomcat, JSP
http://www.OWAL.co.uk/





Re: IDE for windows?

2003-02-17 Thread Ian Brayshaw
On Mon, 2003-02-17 at 11:12, Neil Fryer wrote:

 Can anyone recommend a decent IDE for Windows?
 Oh yeah, and free.  :-)

If it wasn't for the free restriction, I'd suggest Komodo from
ActiveState (http://www.activestate.com/Products/Komodo). Never used it,
but have heard good things about it.


Ian


-- 
s@#^#@#@##@@#y^#@712($;='z')s(..)0$1gs$0s(.)([^01])
$1x$2xge($.='a')s$d4823604df80d7e51d7018b9(@_=$...$;)undef$.;do
{s(.)(.*)(.)$..=$1.$3,$2e}while(length);s$.;$*=0;undef$.;$..=($_?$_[(
$*+=$_)%@_]:$)foreach(map{hex}m(..)g);s.*$.$/s(\b.)\U$1goprint





Re: IDE for windows?

2003-02-17 Thread Dave Cross

From: Luis Campos de Carvalho [EMAIL PROTECTED]
Date: 2/17/03 12:27:49 PM

- Original Message -
From: Dave Cross [EMAIL PROTECTED]
Sent: Monday, February 17, 2003 9:22 AM

 From: Neil Fryer [EMAIL PROTECTED]
 Date: 2/17/03 11:12:01 AM

  Can anyone recommend a decent IDE for Windows?
  Oh yeah, and free.  :-)

 Depends what you want from an IDE. Xemacs always seems to
 do all I want.

  Hi, Dave, hi Neil.

  This game is  multiplayer. =-]

 Emacs is quite nice, but can't debug perl code (as far as
 I know). I need an IDE that can debug perl, something like
 the classic Borland's Turbo C IDE... or, preferrably, I 
 need something that helps Emacs do this. Maybe Neil wants 
 something like this too. This is a quite interesting 
 thread.

Well I was talking about Xemacs, not Emacs. There are differences.

When I open a Perl file in Xemacs I get a new Perl menu. This
includes a Debugger menu item. Running this, runs my Perl code
in the Perl debugger within the Xemacs buffer. And the Xemacs
debugging support understands the output from the Perl debugger
and amkes it all nice and interactive.

All this is completely standard. I haven't had to change a thing.

Dave...

-- 
http://www.dave.org.uk

Let me see you make decisions, without your television
   - Depeche Mode (Stripped)








Re: IDE for windows?

2003-02-17 Thread Steve Mynott
On Monday, Feb 17, 2003, at 13:07 Europe/London, Dave Cross wrote:


Well I was talking about Xemacs, not Emacs. There are differences.

When I open a Perl file in Xemacs I get a new Perl menu. This
includes a Debugger menu item. Running this, runs my Perl code
in the Perl debugger within the Xemacs buffer. And the Xemacs
debugging support understands the output from the Perl debugger
and amkes it all nice and interactive.


I would also recommend xemacs (which works very well under windows) but 
should you wish to use emacs in the same way all you have to do is 
change the default perl mode to cperl by using

(add-hook 'perl-mode-hook
  '(lambda () (cperl-mode)))

in your .emacs which will make things a *lot* easier.  Basically xemacs 
has more modern defaults than emacs.

Both emacs and xemacs (not the same program as emacs with X!) integrate 
very well with other GNU tools like gcc etc

--
Steve Mynott [EMAIL PROTECTED]




Open Source Web Development with LAMP

2003-02-17 Thread Alex McLintock
I have a review copy of this going available to anyone who can persuade me 
they will write me a review - and who can collect the book somehow

(It helps if you are not on David Cantrell's naughty list for reviewing books)

More info can be found here

http://news.diversebooks.com/article.pl?sid=03/02/17/1557208

Alex



Available for java/perl/C++/web development in London, UK or nearby.
Apache FOP, Cocoon, Turbine, Struts,XSL:FO, XML, Tomcat, JSP
http://www.OWAL.co.uk/




Changing namserver whois record

2003-02-17 Thread Paul Makepeace
A friend of mine has srl.org which is listed in whois as a nameserver
with a particular IP. Bulkregister isn't helping with changing the IP
and is saying it's become much more difficult since the .org
change-over. Is this smoke  mirrors or is there some truth behind it?
Anyone know how to change a registered nameserver's IP these days?

It seems that looking up the address (`host srl.org`) returns the A
record without consulting the nameservers, presumably since it's
registered with an A record by dint of being a whois-known nameserver. I
didn't realise the gTLD servers did that. What a pain in the arse.

penderel:~$ ns srl.org | perl -ne '/\S+$/  print `host srl.org $`'
srl.org A   208.44.199.253
srl.org A   208.44.199.253
srl.org A   208.44.199.253
penderel:~$ host srl.org
srl.org A   64.81.251.171
penderel:~$

Either that or I've made a mistake here somewhere :-)

Paul

-- 
Paul Makepeace ... http://paulm.com/

What is the difference between symbolism and surrealism? A childish
 retort.
   -- http://paulm.com/toys/surrealism/




Re: IDE for windows?

2003-02-17 Thread Greg McCarroll
* Alex McLintock ([EMAIL PROTECTED]) wrote:
 Depends what you want. I hear good things about Eclipse... and jedit seems 
 to be popular - but whether or not these are IDE's which do what you want
 

the nicest thing about Eclipse in my somewhat skewed view of the world
is the fact it had a todo list built in at the bottom of the ide (i
think or at least i am reliably informed that you can do something
similar in MS VS). however last time i looked there was no Perl
plugins that would do syntax highlighting or indenting (this may have
changed).

it is also written in Java which means that it should run anywhere[1].

Greg

[1] sometimes i just crack myself up ;-)

-- 
*** ***
***   Email address has changed to [EMAIL PROTECTED] . Please   ***
***   update your email address book.   ***
*** ***
Greg McCarroll http://www.mccarroll.org.uk/~gem/
   jabber:[EMAIL PROTECTED]




Re: Changing namserver whois record

2003-02-17 Thread Luis Campos de Carvalho
  Hello, Paul.
  A really off-toppic question, but easy to figure out what's going on under
the hood.

  Your old ISP hasn't changed it's name server yet (or not propagated new
maps correctly).
  I consulted the SOA for your domain (srl.org) from here, and it seems to
point to the new place (as far as I know).

  I would bet on the Smoke and Mirrors option, to start with.

  Most of the internet domain name registars provide a nice web-driven
interface to change things on your domain.
  Normally, that website address comes with your documentation for the
domain. Please consult your documentation.

  Presumably, you're using Verisign GRS as your registar.


--
[whois.crsnic.net]

Whois Server Version 1.3

Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.

   Server Name: SRL.ORG
   Registrar: VERISIGN GRS (ORG)
   Whois Server: whois.verisign-grs.com
   Referral URL: http://www.verisign-grs.com


 Last update of whois database: Mon, 17 Feb 2003 05:44:03 EST 

The Registry database contains ONLY .COM, .NET, .EDU domains and
Registrars.

--

  I hope that helps.
  Kind regards.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Luis Campos de Carvalho
  Computer Scientist
  OCP DBA Oracle  Senior Unix Sys Admin
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

- Original Message -
From: Paul Makepeace [EMAIL PROTECTED]
To: London.pm [EMAIL PROTECTED]
Sent: Monday, February 17, 2003 3:11 PM
Subject: Changing namserver whois record


 A friend of mine has srl.org which is listed in whois as a nameserver
 with a particular IP. Bulkregister isn't helping with changing the IP
 and is saying it's become much more difficult since the .org
 change-over. Is this smoke  mirrors or is there some truth behind it?
 Anyone know how to change a registered nameserver's IP these days?

 It seems that looking up the address (`host srl.org`) returns the A
 record without consulting the nameservers, presumably since it's
 registered with an A record by dint of being a whois-known nameserver. I
 didn't realise the gTLD servers did that. What a pain in the arse.

 penderel:~$ ns srl.org | perl -ne '/\S+$/  print `host srl.org $`'
 srl.org A   208.44.199.253
 srl.org A   208.44.199.253
 srl.org A   208.44.199.253
 penderel:~$ host srl.org
 srl.org A   64.81.251.171
 penderel:~$

 Either that or I've made a mistake here somewhere :-)

 Paul

 --
 Paul Makepeace ... http://paulm.com/

 What is the difference between symbolism and surrealism? A childish
  retort.
-- http://paulm.com/toys/surrealism/







Re: Changing namserver whois record

2003-02-17 Thread Alex Hudson
On Mon, Feb 17, 2003 at 03:47:03PM -0300, Luis Campos de Carvalho wrote:
   A really off-toppic question, but easy to figure out what's going on under
 the hood.
 
   Your old ISP hasn't changed it's name server yet (or not propagated new
 maps correctly).

Are you sure about this? It looks like bad glue to me..

   I consulted the SOA for your domain (srl.org) from here, and it seems to
 point to the new place (as far as I know).

It looks to me like the .org servers provide A records for domains within
that zone, and so the resolver never consults the nameservers for srl.org.
I thought that was only done to provide glue to in-bailwick nameservers 
(i.e., servers within the domain that has been delegated to them), and
therefore would be a .org registry problem.

I've never heard of a problem with the .org registry, but I guess anything
is possible. You'd have to be poor to be worse than NetSol tho'...

Cheers,

Alex.





Re: Changing namserver whois record

2003-02-17 Thread Jody Belka
Alex Hudson said:
 I've never heard of a problem with the .org registry, but I guess
 anything is possible. You'd have to be poor to be worse than NetSol
 tho'...

well, the .org registry has been moved away from Verisign recently of
course. The actual transition apparently happened back on Jan27. Maybe
this problem is down to the transition? I know that when i recently looked
at the registration/transfer stuff of the company dealing with my domain i
found this notice:

We regret that .org registrations  transfers are suspended whilst the
.org registry is being migrated to a new registrar.

So it could be that things haven't settled down completely yet?


Jody Belka






Re: Changing namserver whois record

2003-02-17 Thread Mark Morgan
There's no problem on the registry side for creating/deleting/updating a
.org nameserver.  Just tried creating one here, and doing all the above.

You will run into problems though, if you try to add a new .org nameserver
to Verisign, as they still think they are authorative for em, and don't
allow the change.

Mark.

On Mon, 17 Feb 2003, Paul Makepeace wrote:

 Date: Mon, 17 Feb 2003 18:11:36 +
 From: Paul Makepeace [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: London.pm [EMAIL PROTECTED]
 Subject: Changing namserver whois record

 A friend of mine has srl.org which is listed in whois as a nameserver
 with a particular IP. Bulkregister isn't helping with changing the IP
 and is saying it's become much more difficult since the .org
 change-over. Is this smoke  mirrors or is there some truth behind it?
 Anyone know how to change a registered nameserver's IP these days?

 It seems that looking up the address (`host srl.org`) returns the A
 record without consulting the nameservers, presumably since it's
 registered with an A record by dint of being a whois-known nameserver. I
 didn't realise the gTLD servers did that. What a pain in the arse.

 penderel:~$ ns srl.org | perl -ne '/\S+$/  print `host srl.org $`'
 srl.org A   208.44.199.253
 srl.org A   208.44.199.253
 srl.org A   208.44.199.253
 penderel:~$ host srl.org
 srl.org A   64.81.251.171
 penderel:~$

 Either that or I've made a mistake here somewhere :-)

 Paul

 --
 Paul Makepeace ... http://paulm.com/

 What is the difference between symbolism and surrealism? A childish
  retort.
-- http://paulm.com/toys/surrealism/







Ssssilly Ssssilent Ssssysss::Sssyslog

2003-02-17 Thread Luis Campos de Carvalho
  Hello again, list folks.
  Maybe I should upgrade my production system, but I won't take this risk...
=-]

  Could anybody help me figure out why the Sys::Syslog module is silent?

  Every time I call Sys::Syslog::syslog() method, the call completes
sucessfuly, but the syslog register nothing.
  I've tryied using the linux logger(1) program and it can write to my
syslog.

  Attached follows (a) My current perl version; (b) the sample program that
uses Sys::Syslog (and silently completes without writing the messages to the
syslog); (c) the Sys::Syslog module that I'm using, gzipped; (d) the
Sys::Hostname on what the Sys::Syslog depends (in case somebody thinks on
run diff against the modules); and finally, but not least important, (e) my
/etc/syslog.conf file.

  Any help, suggestions, complaints, bad names, or solutions would be great.

  Thank you all.
  Regards.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Luis Campos de Carvalho
  Computer Science Student
  OCP DBA Oracle  Unix Sys Admin
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Linux mail.netfax.com.br 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
Red Hat Linux release 7.1 (Seawolf)
Kernel 2.4.2-2 on an i686


Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
osname=linux, osvers=2.2.17-8smp, archname=i386-linux
uname='linux porky.devel.redhat.com 2.2.17-8smp #1 smp fri nov 17 16:12:17 est 
2000 i686 unknown '
config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc 
-Dcccdlflags=-fPIC -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dd_dosuid 
-Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm 
-Uuselargefiles'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=undef 
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
cc='gcc', optimize='-O2 -march=i386 -mcpu=i686', gccversion=2.96 2731 (Red Hat 
Linux 7.1 2.96-79)
cppflags='-fno-strict-aliasing'
ccflags ='-fno-strict-aliasing'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lc -lcrypt
libc=/lib/libc-2.2.2.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options:
  Built under linux
  Compiled at Mar 23 2001 12:49:50
  @INC:
/usr/lib/perl5/5.6.0/i386-linux
/usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl
.

#!/usr/bin/perl -wT
use strict;
use Sys::Syslog;

openlog 'Netfax', 'pid', 'local1';
syslog 'info', Teste do syslog do netfax.;
closelog;



Hostname.pm.gz
Description: GNU Zip compressed data


Syslog.pm.gz
Description: GNU Zip compressed data
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;\
  cron.none;local7.none;local1.none /var/log/messages

# The authpriv file has restricted access.
authpriv.*  /var/log/secure

# Log all the mail messages in one place.
mail.*  /var/log/maillog

# Log cron stuff
cron.*  /var/log/cron

# Everybody gets emergency messages, plus log them on another
# machine.
*.emerg *

# Save mail and news errors of level err and higher in a
# special file.
uucp,news.crit  /var/log/spooler

# Save boot messages also to boot.log
local7.*/var/log/boot.log

# This is the place where my system will log messages.
local1.*/var/log/netfax.log



Re: Ssssilly Ssssilent Ssssysss::Sssyslog

2003-02-17 Thread Mark Morgan
This caught me up the first couple of times I need to use the module...

You'll likely need to call setlogsock with a param of 'unix' before
calling openlog/syslog.  By default, this doesn't use unix sockets for the
connection.  This is documented in the perldoc.

Take care,
Mark.

On Mon, 17 Feb 2003, Luis Campos de Carvalho wrote:

 Date: Mon, 17 Feb 2003 17:01:44 -0300
 From: Luis Campos de Carvalho [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: London.pm List [EMAIL PROTECTED]
 Subject: Ssssilly Ssssilent Ssssysss::Sssyslog

   Hello again, list folks.
   Maybe I should upgrade my production system, but I won't take this risk...
 =-]

   Could anybody help me figure out why the Sys::Syslog module is silent?

   Every time I call Sys::Syslog::syslog() method, the call completes
 sucessfuly, but the syslog register nothing.
   I've tryied using the linux logger(1) program and it can write to my
 syslog.

   Attached follows (a) My current perl version; (b) the sample program that
 uses Sys::Syslog (and silently completes without writing the messages to the
 syslog); (c) the Sys::Syslog module that I'm using, gzipped; (d) the
 Sys::Hostname on what the Sys::Syslog depends (in case somebody thinks on
 run diff against the modules); and finally, but not least important, (e) my
 /etc/syslog.conf file.

   Any help, suggestions, complaints, bad names, or solutions would be great.

   Thank you all.
   Regards.
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
   Luis Campos de Carvalho
   Computer Science Student
   OCP DBA Oracle  Unix Sys Admin
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=







Re: Changing namserver whois record

2003-02-17 Thread Dirk Koopman
Doing a quick dig:-

dig srl.org ns

;  DiG 9.2.1  srl.org ns
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 13661
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 3

;; QUESTION SECTION:
;srl.org.   IN  NS

;; ANSWER SECTION:
srl.org.3583IN  NS  ns2.realprogrammers.com.
srl.org.3583IN  NS  ns3.realprogrammers.com.
srl.org.3583IN  NS  ns1.realprogrammers.com.

;; ADDITIONAL SECTION:
ns1.realprogrammers.com. 172783 IN  A   195.82.114.220
ns2.realprogrammers.com. 172783 IN  A   64.173.182.158
ns3.realprogrammers.com. 172783 IN  A   207.111.205.245

and

dig srl.org soa

;  DiG 9.2.1  srl.org soa
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 60183
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 3

;; QUESTION SECTION:
;srl.org.   IN  SOA

;; ANSWER SECTION:
srl.org.3600IN  SOA ns1.realprogrammers.com.
hostmaster.realprogrammers.com. 2003020801 7200 3600 604800 86400


This all seems nice and self consistant. A (j)whois srl.org won't work
as it stands because internic are no longer authoritative for .org.
However, this shouldn't matter. Remember that the whois stuff is there
for human consumption. The DNS system doesn't use it, only registrars
and people like us do. In order to query the .org whois you need to
use the correct server which is: whois.publicinterestregistry.net

or you can try: http://whois.bw.org/

The whois entry confirms the above dig information. 

Dirk

On Mon, 2003-02-17 at 18:11, Paul Makepeace wrote:
 A friend of mine has srl.org which is listed in whois as a nameserver
 with a particular IP. Bulkregister isn't helping with changing the IP
 and is saying it's become much more difficult since the .org
 change-over. Is this smoke  mirrors or is there some truth behind it?
 Anyone know how to change a registered nameserver's IP these days?
 
 It seems that looking up the address (`host srl.org`) returns the A
 record without consulting the nameservers, presumably since it's
 registered with an A record by dint of being a whois-known nameserver. I
 didn't realise the gTLD servers did that. What a pain in the arse.
 
 penderel:~$ ns srl.org | perl -ne '/\S+$/  print `host srl.org $`'
 srl.org A   208.44.199.253
 srl.org A   208.44.199.253
 srl.org A   208.44.199.253
 penderel:~$ host srl.org
 srl.org A   64.81.251.171
 penderel:~$
 
 Either that or I've made a mistake here somewhere :-)
 
 Paul
-- 
Please Note: Some Quantum Physics Theories Suggest That When the
Consumer Is Not Directly Observing This Product, It May Cease to
Exist or Will Exist Only in a Vague and Undetermined State.






Re: Changing namserver whois record

2003-02-17 Thread Robin Szemeti
On Monday 17 February 2003 18:11, Paul Makepeace wrote:

 It seems that looking up the address (`host srl.org`) returns the A
 record without consulting the nameservers, presumably since it's
 registered with an A record by dint of being a whois-known nameserver. I
 didn't realise the gTLD servers did that. What a pain in the arse.

 penderel:~$ ns srl.org | perl -ne '/\S+$/  print `host srl.org $`'
 srl.org A   208.44.199.253
 srl.org A   208.44.199.253
 srl.org A   208.44.199.253
 penderel:~$ host srl.org
 srl.org A   64.81.251.171
 penderel:~$

right ... what you have here is an unwanted glue record:

in the dig stuff below you will see the line:

srl.org.172800  IN  A   64.81.251.171

that is coming directly from the .org root server.  the query is never 
referred to your nameservers as the .org root server is able to give an 
authoratative answer ...  and  helpfully it is 4 days TTL .. so at best it 
will be friday before it gets sorted :)

AFAIK the only way to get rid of these is to make a request to the registrar 
to do it manually, as it is rarely possible using the sh1tty web forms.

(ask a certain dave hodg about the fun we had with a glue record for www.blah)



##

[robin@workstation robin]$ dig @E5.NSTLD.COM srl.org a +norecurse

;  DiG 9.1.3  @E5.NSTLD.COM srl.org a
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 39381
;; flags: qr rd; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 0

;; QUESTION SECTION:
;srl.org.   IN  A

;; ANSWER SECTION:
srl.org.172800  IN  A   64.81.251.171

;; AUTHORITY SECTION:
srl.org.86400   IN  NS  ns3.realprogrammers.com.
srl.org.86400   IN  NS  ns2.realprogrammers.com.
srl.org.86400   IN  NS  ns1.realprogrammers.com.

#

-- 
Robin Szemeti





Re: Changing namserver whois record

2003-02-17 Thread Robin Szemeti
On Monday 17 February 2003 18:11, Paul Makepeace wrote:
 A friend of mine has srl.org which is listed in whois as a nameserver

and to correct a common misconception .. the nameservers are not listed in 
the whois record .. well  .. they are listed in whois record, but thats a 
human readable thing not really involved in DNS per-se ... its the host 
record / zone file of the .org root servers that does the business .. they 
are derived from the whois record .. BUT ( and I believe this is vaguely 
important) the contents of the whois record are not used by the DNS system in 
anyway .. its the host record/zonefile that counts.

for instance .. if you upload changes to the .uk root servers, you will 
notice the whois record on whois.nic.uk chnages immediately ... however the 
host records are only updated at ~4am, until that point the two records are 
differetn ... but when the root servers are updated thats when the changes 
start to occur in the DNS sytem, not before.

-- 
Robin Szemeti




Re: Changing namserver whois record

2003-02-17 Thread Robin Szemeti
On Monday 17 February 2003 18:11, Paul Makepeace wrote:

 It seems that looking up the address (`host srl.org`) returns the A
 record without consulting the nameservers, presumably since it's
 registered with an A record by dint of being a whois-known nameserver. I
 didn't realise the gTLD servers did that. What a pain in the arse.

 penderel:~$ ns srl.org | perl -ne '/\S+$/  print `host srl.org $`'
 srl.org A   208.44.199.253
 srl.org A   208.44.199.253
 srl.org A   208.44.199.253
 penderel:~$ host srl.org
 srl.org A   64.81.251.171
 penderel:~$

right ... what you have here is an unwanted glue record:

in the dig stuff below you will see the line:

srl.org.172800  IN  A   64.81.251.171

that is coming directly from the .org root server.  the query is never 
referred to your nameservers as the .org root server is able to give an 
authoratative answer ...  and  helpfully it is 4 days TTL .. so at best it 
will be friday before it gets sorted :)

AFAIK the only way to get rid of these is to make a request to the registrar 
to do it manually, as it is rarely possible using the sh1tty web forms.

(ask a certain dave hodg about the fun we had with a glue record for www.blah)



##

[robin@workstation robin]$ dig @E5.NSTLD.COM srl.org a +norecurse

;  DiG 9.1.3  @E5.NSTLD.COM srl.org a
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 39381
;; flags: qr rd; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 0

;; QUESTION SECTION:
;srl.org.   IN  A

;; ANSWER SECTION:
srl.org.172800  IN  A   64.81.251.171

;; AUTHORITY SECTION:
srl.org.86400   IN  NS  ns3.realprogrammers.com.
srl.org.86400   IN  NS  ns2.realprogrammers.com.
srl.org.86400   IN  NS  ns1.realprogrammers.com.

#

-- 
Robin Szemeti