Re: [JDEV] Perl Headline Delivery script Error?

2002-03-16 Thread Stephen Allsopp

On Fri, 15 Mar 2002 14:36:31 -0700
Nicholas Perez <[EMAIL PROTECTED]> wrote:

> You know you could talk directly with the developer who's code is in
> question instead of asking a large selection of people that might not
> have even looked at Net::Jabber :) Just a thought ;)

Gunjan, I don't think it's the Net::Jabber code that's at fault here. What it sounds 
like is that you've given the Send the wrong type of argument. When I set up presence 
(this is based on examples from the book), I create a Net::Jabber::Presence object, 
fill it appropriately, and pass it to $connection->Send() (not PresenceSend). It works 
for me.

Also, be aware of a few things in Programming Jabber: for one, it's got *lots* of 
typos and errata. I haven't found anything yet that affects me in the code examples, 
but there is always the possibility that something has gone amiss. I suggest you check 
the Errata page for the book on the O'Reilly website. Also, as you have already 
pointed out, the Net::Jabber libs are a moving target, as is Jabber itself, to some 
extent. 

But I'd be inclined to suspect my own code first :-)

> On Sat, 16 Mar 2002 02:46:43 +0530, "Gunjan Kakani" <[EMAIL PROTECTED]>
> wrote: Hi,
> 
> I was experimenting with the Perl Headline Delivery script written by DJ
> Adams, from "Fun with Jabber" articles.
> 
> But the script when executed gives error as following...
> 
> "Can't use string("3C924DDA") as a HASH ref while "strict refs" in use
> at /usr/lib/perl5/./Jabber.pm line 588."
> 
> I checked with the changes made in the Net::Jabber module since this
> script was written, but those changes could not solve this problem,
> since this problem occures in sending the presence at
> $Connection->PresenceSend() method. If I uncomment this method and
> produce the log, its working perfect, just that is is not sending
> messages to subscribers, since they dont know the presence of the
> headline deliverer.
> 
> Anyone, has any ideas of this problem???
> 
> Thanks
> 
> -Cheers
> 
> -GC
> ___
> jdev mailing list
> [EMAIL PROTECTED]
> http://mailman.jabber.org/listinfo/jdev


-- 
Stephen Allsopp  [EMAIL PROTECTED]

End of message reached. For your comfort and convenience, we recommend
that you stop reading now.
___
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev



Re: [JDEV] Perl Headline Delivery script Error?

2002-03-16 Thread Piers Harding

Well - I'll bow to DJ's superrior knowledge - but off the top of my head, It sounds 
like a version issue with Net::Jabber.  At arround 1.020 ( or some such version ) 
Net::Jabber added the ID as the first arguement to a callback, so you could allways 
try dumping out the values being passed in with Data::Dumper.


Cheers.


On Sat, Mar 16, 2002 at 12:10:39PM +, Stephen Allsopp wrote:
> On Fri, 15 Mar 2002 14:36:31 -0700
> Nicholas Perez <[EMAIL PROTECTED]> wrote:
> 
> > You know you could talk directly with the developer who's code is in
> > question instead of asking a large selection of people that might not
> > have even looked at Net::Jabber :) Just a thought ;)
> 
> Gunjan, I don't think it's the Net::Jabber code that's at fault here. What it sounds 
>like is that you've given the Send the wrong type of argument. When I set up presence 
>(this is based on examples from the book), I create a Net::Jabber::Presence object, 
>fill it appropriately, and pass it to $connection->Send() (not PresenceSend). It 
>works for me.
> 
> Also, be aware of a few things in Programming Jabber: for one, it's got *lots* of 
>typos and errata. I haven't found anything yet that affects me in the code examples, 
>but there is always the possibility that something has gone amiss. I suggest you 
>check the Errata page for the book on the O'Reilly website. Also, as you have already 
>pointed out, the Net::Jabber libs are a moving target, as is Jabber itself, to some 
>extent. 
> 
> But I'd be inclined to suspect my own code first :-)
> 
> > On Sat, 16 Mar 2002 02:46:43 +0530, "Gunjan Kakani" <[EMAIL PROTECTED]>
> > wrote: Hi,
> > 
> > I was experimenting with the Perl Headline Delivery script written by DJ
> > Adams, from "Fun with Jabber" articles.
> > 
> > But the script when executed gives error as following...
> > 
> > "Can't use string("3C924DDA") as a HASH ref while "strict refs" in use
> > at /usr/lib/perl5/./Jabber.pm line 588."
> > 
> > I checked with the changes made in the Net::Jabber module since this
> > script was written, but those changes could not solve this problem,
> > since this problem occures in sending the presence at
> > $Connection->PresenceSend() method. If I uncomment this method and
> > produce the log, its working perfect, just that is is not sending
> > messages to subscribers, since they dont know the presence of the
> > headline deliverer.
> > 
> > Anyone, has any ideas of this problem???
> > 
> > Thanks
> > 
> > -Cheers
> > 
> > -GC
> > ___
> > jdev mailing list
> > [EMAIL PROTECTED]
> > http://mailman.jabber.org/listinfo/jdev
> 
> 
> -- 
> Stephen Allsopp  [EMAIL PROTECTED]
> 
> End of message reached. For your comfort and convenience, we recommend
> that you stop reading now.
> ___
> jdev mailing list
> [EMAIL PROTECTED]
> http://mailman.jabber.org/listinfo/jdev
___
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev



Re: [JDEV] JECL library for Win32

2002-03-16 Thread Piers Harding

I think Mass is doing something about this - but I don't know when it will be 
available?

Cheers.

On Fri, Mar 15, 2002 at 06:45:45PM -0800, Dong Yan wrote:
> Hi,
> 
>   Does anyone know if a win32 version of Jecl libary is available or under
> development? 
> 
> Don
> ___
> jdev mailing list
> [EMAIL PROTECTED]
> http://mailman.jabber.org/listinfo/jdev
___
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev



[JDEV] Capturing user logoff

2002-03-16 Thread Glen Starchman


I am using the xdb_sql module for user authentication, so being able to
tell when a user logs in is trivial. However, is there a mechanism
whereby I can tell when a user logs off? 

Regards.

___
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev



RE: [JDEV] JECL library for Win32

2002-03-16 Thread Max Metral

I sent some initial VC projects of libbedrock, libjudo and supporting libs
to dizzyd last August.  I hadn't been able to get the socket stuff
converted, but it seemed like D didn't have time to deal, so I stopped
working.  If anybody wants the stuff I had to take it further, email me, as
I don't know if sending the attachment to the list would be so nice.

-Original Message-
From: Piers Harding [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 16, 2002 7:30 AM
To: [EMAIL PROTECTED]
Subject: Re: [JDEV] JECL library for Win32


I think Mass is doing something about this - but I don't know when it will
be available?

Cheers.

On Fri, Mar 15, 2002 at 06:45:45PM -0800, Dong Yan wrote:
> Hi,
> 
>   Does anyone know if a win32 version of Jecl libary is available or under
> development? 
> 
> Don
> ___
> jdev mailing list
> [EMAIL PROTECTED]
> http://mailman.jabber.org/listinfo/jdev
___
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev
___
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev



Re: [JDEV] JECL library for Win32

2002-03-16 Thread Ben Schumacher

On Fri, 15 Mar 2002, Dong Yan wrote:
> Hi,
>
>   Does anyone know if a win32 version of Jecl libary is available or under
> development?
>
> Don

There is a project underway (currently hosted @ SourceForge) that is
converting the JECL libraries over to C#. You can find the project at
jabber-net.sf.net.

In addition to the component libraries (bedrock, jax and judo), there has
been considerable work towards implementing JECL-like libraries for client
development.

Cheers,

Ben

___
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev



[JDEV] Differences between "public" and "private" conferencing?

2002-03-16 Thread Glen

Hi List -

I asked this question on JADMIN, but got no responses at all, so I guess
they don't know.  So may I bow to everyone's great wisdom, and send the
message to this list?

Having a great time with jabberd-1.4.2 on SCO OpenServer 5.0.6!  Some
questions, if I might.

1. What is the difference - in practice - between the "public" and "private"
   configurations of conferencing?  It seems to me that under either setup,
   any user can create and/or enter any chatroom on the system.

2. In the sample "public" configuration, I see a  tag - I assume that
   implies a password to access a conference room?  How would one supply this
   password.  With that tag, -nobody- (even the admin user) can enter that
   "admin" room.

3. I believe I read in the archives that there is no way yet for a user to
   easily "see" a list of existing chatrooms - am I correct?

4. Finally, is it possible to limit the system to a certain group of pre-
   defined chatrooms?  I'd like to control which chatrooms exist, and 
   prevent people from creating their own chatrooms on the fly.  Doable?

Thanks so much for your help and patience with a newbie!

Glen

___
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev



Re: [JDEV] Perl Headline Delivery script Error?

2002-03-16 Thread DJ Adams

On Sat, Mar 16, 2002 at 02:46:43AM +0530, Gunjan Kakani wrote:
> Hi,
> 
> I was experimenting with the Perl Headline Delivery script written by DJ Adams, from 
>"Fun with Jabber" articles.
> 
> But the script when executed gives error as following...
> 
> "Can't use string("3C924DDA") as a HASH ref while "strict refs" in use at 
>/usr/lib/perl5/./Jabber.pm line 588."
> 
> I checked with the changes made in the Net::Jabber module since this script was 
>written, but those changes could not solve this problem, since this problem occures 
>in sending the presence at $Connection->PresenceSend() method. If I uncomment this 
>method and produce the log, its working perfect, just that is is not sending messages 
>to subscribers, since they dont know the presence of the headline deliverer.
> 

Hello Gunjan

This is a well-known (well, I thought so :-) problem due to how Net::Jabber
has changed over the course of releases (for the better, of course).
The significant release change was, as Piers has already correctly pointed
out (thanks dude :-), from 1.0020 to 1.0021, where a new value is passed
first to all callbacks.

I wrote an article last year [1] which explains what's going on - please
let know if you have any questions about it.

Just now, to test, I downloaded the headline script from the article's
page [2], made the (one-word) change as described in the article, and it
solved the problem.  

Cheers
dj

[1] http://www.pipetree.com/jabber/nj10021.html
[2] http://www.pipetree.com/jabber/headlines.html

___
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev



Re: [JDEV] Perl Headline Delivery script Error?

2002-03-16 Thread DJ Adams

On Sat, Mar 16, 2002 at 12:10:39PM +, Stephen Allsopp wrote:
> On Fri, 15 Mar 2002 14:36:31 -0700
> Nicholas Perez <[EMAIL PROTECTED]> wrote:
> 
> > You know you could talk directly with the developer who's code is in
> > question instead of asking a large selection of people that might not
> > have even looked at Net::Jabber :) Just a thought ;)
> 
> Gunjan, I don't think it's the Net::Jabber code that's at fault here. What it sounds 
>like is that you've given the Send the wrong type of argument. When I set up presence 
>(this is based on examples from the book), I create a Net::Jabber::Presence object, 
>fill it appropriately, and pass it to $connection->Send() (not PresenceSend). It 
>works for me.
> 

It's a 'wrong type of argument' problem, but not with Send(); in this case
it's with the new() method of Net::Jabber::Presence() - called in the
handle_presence() callback in the script. As Piers, and the nj10021.html
article, has already mentioned, what is happening is that Net::Jabber is
now sending two values to the callbacks - the first being a session ID,
the second being the one that we really want to pass to the new() method.
Pre-1.0021, it just sent the latter value.

> Also, be aware of a few things in Programming Jabber: for one, it's got *lots* of 
>typos and errata. I haven't found anything yet that affects me in the code examples, 
>but there is always the possibility that something has gone amiss. I suggest you 
>check the Errata page for the book on the O'Reilly website. Also, as you have already 
>pointed out, the Net::Jabber libs are a moving target, as is Jabber itself, to some 
>extent. 
> 

Stephen - I try to check the Errata page regularly, but please don't
hesitate to bug me by email ([EMAIL PROTECTED]) with anything you find
and want to ask about or thwap me over the head about :-)

Cheers
dj
___
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev



[JDEV] The logger cc and presence bcc in 1.4.2

2002-03-16 Thread Philippe Raxhon

Hi,

 From the 1.4.2 change log I have seen that:
The logging module (mod_log) can now be configured to simply copy all 
messages to one more more services.  To enable this, put the name of the 
service(s) (which must be in the local server domain, not routed over 
s2s) in the jsm configuration as: 
name For every message, that 
service will receive a copy of the message wrapped in a route element of 
type "archive".

I have added thid to my jabber.xml;

  ...
  

  
  
slogger
  


Knowing the slogger service is an accept component (working fine, I can 
send mesages to it with this jid: slogger.mydomain.org):
  
slogger.mydomain.org

  localhost
  5999
  secret

  

But it's not working, my component doesn't receive any logging packet. 
What am I doing wrong?

I have also tried this, once again from the change log:
The presence module can also be configured with a list of jids that will 
be blind-copied every presence update from every available user.  These 
bcc jids are configured in the jsm section as: 
jid  These jids are not restricted, 
and may be any local service, remote service, or even a normal users jid 
(maybe an administrator with a special client that will display every 
presence it receives).

So I added to my jabber.xml:

  ...
  

  
  
slogger.mydomain.org
  


But once again without success.

Can somebody help?

Thanks a lot

Philippe

___
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev