Re: Frickin' CPAN

2005-06-09 Thread Ken Williams

I feel like nobody's listening...

Look at your 'tar', 'unzip', 'lynx', and 'gzip' entries.  They don't 
actually include the name of the program.


Here are the equivalent ones from my config:

  'gzip' => q[/usr/bin/gzip],
  'lynx' => q[],
  'tar' => q[/usr/bin/tar],
  'unzip' => q[/usr/bin/unzip],

 -Ken

On Jun 9, 2005, at 10:04 AM, John Mercer wrote:


Hi guys,

Firewall problems? Or config problems? Or both?

I've found that CPAN works when I run "sudo perl -MCPAN etc", but not 
when I run as root: "macbox:/ root# perl -MCPAN". I find that very 
strange, but hey, if it works as sudo, it works and that's all I need.


However, it doesn't work very well. When I run CPAN it take FOREVER to 
download modules, but then installs them pretty quickly (at least when 
there aren't any errors--and I often have plenty). Could my firewall 
by interfering with CPAN? I don't have anything fancy: just the OSX 
Tiger firewall and a Netgear router on a home-office network. Do I 
need to tweak some obscure config file so that CPAN can get in and out 
of the firewall.


PPM also takes forever to download, if it downloads at all.

In case it help, I've appended the sudo/root config file below. Please 
let me know if anything's wrong w/ it.


Many thanks,

John Mercer

/System/Library/Perl/5.8.6/CPAN/Config.pm

build_cache20
build_dir  /var/root/.cpan/build
cache_metadata 1
cpan_home  /var/root/.cpan
dontload_hash
ftp/usr/bin/ftp
ftp_proxy
getcwd cwd
gpg
gzip   /usr/bin
histfile   /var/root/.cpan/histfile
histsize   100
http_proxy
inactivity_timeout 0
index_expire   1
inhibit_startup_message 0
keep_source_where  /var/root/.cpan/sources
lynx   /sw/bin
make   /usr/bin/make
make_arg
make_install_arg
makepl_arg
ncftpget   /usr/bin/ncftpget
no_proxy
pager  /usr/bin/less
prerequisites_policy ask
scan_cache atstart
shell  /bin/sh
tar/usr/bin
term_is_latin  1
unzip  /usr/bin
urllist
ftp://ftp.sunsite.utk.edu/pub/CPAN/
ftp://ftp.theshell.com/pub/CPAN/
ftp://ftp.uwsg.iu.edu/pub/perl/CPAN/
ftp://linux.cs.lewisu.edu/pub/CPAN
ftp://mirror.candidhosting.com/pub/CPAN
ftp://mirror.cc.columbia.edu/pub/software/cpan/
ftp://mirror.datapipe.net/pub/CPAN/
ftp://mirror.hiwaay.net/CPAN/
ftp://mirror.sg.depaul.edu/pub/CPAN/
ftp://mirror.sit.wisc.edu/pub/CPAN/
ftp://mirror.xmission.com/CPAN/
ftp://mirrors.ibiblio.org/pub/mirrors/CPAN
ftp://mirrors.jtlnet.com/CPAN/
ftp://mirrors.kernel.org/pub/CPAN
ftp://mirrors.phenominet.com/pub/CPAN/
ftp://mirrors.rcn.net/pub/lang/CPAN/
ftp://perl.secsup.org/pub/perl/
http://cpan.belfry.net/
http://cpan.binarycompass.org
http://cpan.mirrors.hoobly.com/
http://cpan.mirrors.nks.net/
wget   /sw/bin/wget




On Jun 8, 2005, at 9:56 PM, Ken Williams wrote:


Hi John,

The permissions thing is a red herring.

Look more closely at the error message.  It's trying to run a program 
called "/usr/bin".  Look at your CPAN configuration ("o conf" in the 
CPAN shell) to figure out why.


 -Ken

On Jun 8, 2005, at 3:14 PM, John Mercer wrote:



Hi all,

CPAN is being a pain in the ass, and I don't know what the problem 
is. Here's an error message when I run "install Bundle::XML".


Can't exec "/usr/bin": Permission denied at 
/System/Library/Perl/5.8.6/darwin-thread-multi-2level/IO/File.pm 
line 176,  line 1.
Could not pipe[/usr/bin --decompress --stdout 
/var/root/.cpan/sources/authors/01mailrc.txt.gz |]: Permission 
denied at /System/Library/Perl/5.8.6/CPAN.pm line 5727,  line 
1.


When I try to run "install XML::XPath" I get about 20 repetitions of

Subroutine AUTOLOAD redefined at 
/sw/lib/perl5/5.8.6/darwin-thread-multi-2level/Compress/Zlib.pm line 
84,  line 2


Regarding the first error, I don't see how I can have a permissions 
error when I'm running CPAN as the root user. Root has--I 
checked--read, write, execute permissions in that directory 
(/System/Library/etc, etc). Regarding the second error, I have no 
idea what that's about. Could fink have somehow messed up my perl 
installation.


In case this helps, I'm running Perl 5.8.6 under OSX 10.4 on 
Macmini. I'm running all the install scripts as root.


Any help would really be appreciated. Thanks.

--John M










Re: Newbie.. how do I find method names..

2005-06-09 Thread Sherm Pendley

On Jun 9, 2005, at 12:19 PM, Leo Lapworth wrote:


I've just started playing with CB and I followed the example docs...

But when I switch to using a NSTextView, rather than an NSTextField
it seems I have to change the method names.

I just want to change the copy in the NSTextView, but setStringValue()
does not work.


NSTextView is considerably more complex. It works with instances of  
several other classes - NSTextContainer, NSLayoutManager, and  
NSTextStorage among others.


To change the copy in an NSTextView, you first need to get a  
reference to the NSTextStorage object it's displaying:


my $textStorage = $textView->textStorage();

NSTextStorage is a subclass of NSMutableAttributedString, so we can  
use that class' setAttributedString() method to assign a new string.  
But that method takes an instance of NSAttributedString as its  
argument, so we need to create one first:


my $attributedString = NSAttributedString->alloc()->initWithString 
("Hello");

$textStorage->setAttributedString($attributedString);

There's an overview of the text system architecture on Apple's  
developer site, at:



Apple occasionally decides to move the local docs around, but if  
you're using the same Xcode version I am, this link might work for you:
Conceptual/TextArchitecture/index.html>



I have tried looking through the documentation in xCode and the
web, but I end up getting confused, looking at Java and Object-C
methods etc.

So my question... how do I look up what methods should be used
in relation to a specific GUI element?


You've got the right idea - Apple's Cocoa docs.

I've posted a general guideline to help read Objective-C code here:




Ideally, it would be best to have a complete set of reference  
material that's geared towards Perl. But in practice that's too much  
for me to do alone. I can's simply copy-and-paste Apple's docs -  
they're copyrighted. And there's far, far too much material needed  
for me to write it all.


Outlets example seems to have a copy/paste bug (though I could be  
wrong)..


sub saySomething : Selector(sayHello:) IBAction {

should that not be:

sub saySomething : Selector(saySomething:) IBAction {


Yep - you're right. Fixed it.

sherm--


Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org



Newbie.. how do I find method names..

2005-06-09 Thread Leo Lapworth

Hi,

I've just started playing with CB and I followed the example docs...

But when I switch to using a NSTextView, rather than an NSTextField
it seems I have to change the method names.

I just want to change the copy in the NSTextView, but setStringValue()
does not work.

I have tried looking through the documentation in xCode and the
web, but I end up getting confused, looking at Java and Object-C
methods etc.

So my question... how do I look up what methods should be used
in relation to a specific GUI element?

Thanks

Leo

ps.
Outlets example seems to have a copy/paste bug (though I could be  
wrong)..


sub saySomething : Selector(sayHello:) IBAction {

should that not be:

sub saySomething : Selector(saySomething:) IBAction {


Re: Frickin' CPAN

2005-06-09 Thread Larry Prall
You might want to take a look at that URL list.  Try going to each  
site by hand and see how long it takes to connect.  Move your fastest  
sites to the top of the list.


- Larry

On Jun 9, 2005, at 11:04 AM, John Mercer wrote:


urllist
ftp://ftp.sunsite.utk.edu/pub/CPAN/
ftp://ftp.theshell.com/pub/CPAN/
ftp://ftp.uwsg.iu.edu/pub/perl/CPAN/
ftp://linux.cs.lewisu.edu/pub/CPAN
ftp://mirror.candidhosting.com/pub/CPAN
ftp://mirror.cc.columbia.edu/pub/software/cpan/
ftp://mirror.datapipe.net/pub/CPAN/
ftp://mirror.hiwaay.net/CPAN/
ftp://mirror.sg.depaul.edu/pub/CPAN/
ftp://mirror.sit.wisc.edu/pub/CPAN/
ftp://mirror.xmission.com/CPAN/
ftp://mirrors.ibiblio.org/pub/mirrors/CPAN
ftp://mirrors.jtlnet.com/CPAN/
ftp://mirrors.kernel.org/pub/CPAN
ftp://mirrors.phenominet.com/pub/CPAN/
ftp://mirrors.rcn.net/pub/lang/CPAN/
ftp://perl.secsup.org/pub/perl/
http://cpan.belfry.net/
http://cpan.binarycompass.org
http://cpan.mirrors.hoobly.com/
http://cpan.mirrors.nks.net/
wget   /sw/bin/wget





Re: Frickin' CPAN

2005-06-09 Thread John Mercer

Hi guys,

Firewall problems? Or config problems? Or both?

I've found that CPAN works when I run "sudo perl -MCPAN etc", but not  
when I run as root: "macbox:/ root# perl -MCPAN". I find that very  
strange, but hey, if it works as sudo, it works and that's all I need.


However, it doesn't work very well. When I run CPAN it take FOREVER  
to download modules, but then installs them pretty quickly (at least  
when there aren't any errors--and I often have plenty). Could my  
firewall by interfering with CPAN? I don't have anything fancy: just  
the OSX Tiger firewall and a Netgear router on a home-office network.  
Do I need to tweak some obscure config file so that CPAN can get in  
and out of the firewall.


PPM also takes forever to download, if it downloads at all.

In case it help, I've appended the sudo/root config file below.  
Please let me know if anything's wrong w/ it.


Many thanks,

John Mercer

/System/Library/Perl/5.8.6/CPAN/Config.pm

build_cache20
build_dir  /var/root/.cpan/build
cache_metadata 1
cpan_home  /var/root/.cpan
dontload_hash
ftp/usr/bin/ftp
ftp_proxy
getcwd cwd
gpg
gzip   /usr/bin
histfile   /var/root/.cpan/histfile
histsize   100
http_proxy
inactivity_timeout 0
index_expire   1
inhibit_startup_message 0
keep_source_where  /var/root/.cpan/sources
lynx   /sw/bin
make   /usr/bin/make
make_arg
make_install_arg
makepl_arg
ncftpget   /usr/bin/ncftpget
no_proxy
pager  /usr/bin/less
prerequisites_policy ask
scan_cache atstart
shell  /bin/sh
tar/usr/bin
term_is_latin  1
unzip  /usr/bin
urllist
ftp://ftp.sunsite.utk.edu/pub/CPAN/
ftp://ftp.theshell.com/pub/CPAN/
ftp://ftp.uwsg.iu.edu/pub/perl/CPAN/
ftp://linux.cs.lewisu.edu/pub/CPAN
ftp://mirror.candidhosting.com/pub/CPAN
ftp://mirror.cc.columbia.edu/pub/software/cpan/
ftp://mirror.datapipe.net/pub/CPAN/
ftp://mirror.hiwaay.net/CPAN/
ftp://mirror.sg.depaul.edu/pub/CPAN/
ftp://mirror.sit.wisc.edu/pub/CPAN/
ftp://mirror.xmission.com/CPAN/
ftp://mirrors.ibiblio.org/pub/mirrors/CPAN
ftp://mirrors.jtlnet.com/CPAN/
ftp://mirrors.kernel.org/pub/CPAN
ftp://mirrors.phenominet.com/pub/CPAN/
ftp://mirrors.rcn.net/pub/lang/CPAN/
ftp://perl.secsup.org/pub/perl/
http://cpan.belfry.net/
http://cpan.binarycompass.org
http://cpan.mirrors.hoobly.com/
http://cpan.mirrors.nks.net/
wget   /sw/bin/wget




On Jun 8, 2005, at 9:56 PM, Ken Williams wrote:


Hi John,

The permissions thing is a red herring.

Look more closely at the error message.  It's trying to run a  
program called "/usr/bin".  Look at your CPAN configuration ("o  
conf" in the CPAN shell) to figure out why.


 -Ken

On Jun 8, 2005, at 3:14 PM, John Mercer wrote:



Hi all,

CPAN is being a pain in the ass, and I don't know what the problem  
is. Here's an error message when I run "install Bundle::XML".


Can't exec "/usr/bin": Permission denied at /System/Library/Perl/ 
5.8.6/darwin-thread-multi-2level/IO/File.pm line 176,  line 1.
Could not pipe[/usr/bin --decompress --stdout /var/root/.cpan/ 
sources/authors/01mailrc.txt.gz |]: Permission denied at /System/ 
Library/Perl/5.8.6/CPAN.pm line 5727,  line 1.


When I try to run "install XML::XPath" I get about 20 repetitions of

Subroutine AUTOLOAD redefined at /sw/lib/perl5/5.8.6/darwin-thread- 
multi-2level/Compress/Zlib.pm line 84,  line 2


Regarding the first error, I don't see how I can have a  
permissions error when I'm running CPAN as the root user. Root  
has--I checked--read, write, execute permissions in that directory  
(/System/Library/etc, etc). Regarding the second error, I have no  
idea what that's about. Could fink have somehow messed up my perl  
installation.


In case this helps, I'm running Perl 5.8.6 under OSX 10.4 on  
Macmini. I'm running all the install scripts as root.


Any help would really be appreciated. Thanks.

--John M








Re: CamelBones on Intel? Maybe not.

2005-06-09 Thread Ken Williams


On Jun 9, 2005, at 4:39 AM, wren argetlahm wrote:


--- Edward Moy <[EMAIL PROTECTED]> wrote:

So what is really needed at this
point is for the CamelBones community to get
together and innovate.
Create some killer apps with CamelBones.  Get
developer excited about
this technology.


I'll bite.

Dunno if it'd count as "killer" or not but I have a
F/OSS project I've been working on that's been looking
for a GUI for a while. We were going to go with Python
for cross-platformability, but I've been thinking
about learning Cocoa for a while and have really
wanted to use CB for *something*.



It seems like the Fink Commander application could also have been 
written well in CB.  It's an example of a fairly broad category of 
applications: Cocoa interfaces to perl modules.  What with the depth & 
breadth of CPAN, that's seems like it would be a pretty broad category.


 -Ken



Re: CamelBones on Intel? Maybe not.

2005-06-09 Thread Sherm Pendley

On Jun 9, 2005, at 7:29 AM, Charlie Garrison wrote:

And are there any licensing issues that would prevent using CB in a  
commercial

app?


No. I chose the Lesser GPL over the GPL for precisely that reason -  
the "viral" aspect of the license applies to the framework *only*,  
not to your apps.


sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org



Re: CamelBones on Intel? Maybe not.

2005-06-09 Thread Sherm Pendley

On Jun 9, 2005, at 5:39 AM, wren argetlahm wrote:


Dunno if it'd count as "killer" or not but I have a
F/OSS project I've been working on that's been looking
for a GUI for a while. We were going to go with Python
for cross-platformability, but I've been thinking
about learning Cocoa for a while and have really
wanted to use CB for *something*.

Hey Sherm, I haven't toyed with CB since the days of
10.2, anything I should know before diving in again?


It probably wouldn't hurt to scan through the "getting started" docs  
again - there have been some minor (but important) changes in how  
classes are declared.


You can inherit from Cocoa classes now, with all that implies -  
document-based apps with custom NSDocument subclasses, custom NSView  
subclasses, support for Cocoa Binding, etc.


And, as a direct result of recent events (i.e. this thread), I've  
decided to make GNUStep support a high priority item for the next 1.0  
beta release. Cross-platform support will be a major feature going  
forward - I'm hedging my bets, and CamelBones will be a way for you  
folks to do the same.


sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org



Re: CamelBones on Intel? Maybe not.

2005-06-09 Thread Charlie Garrison
Good evening,

On 9/6/05 at 2:39 AM -0700, wren argetlahm <[EMAIL PROTECTED]> wrote:

>Hey Sherm, I haven't toyed with CB since the days of
>10.2, anything I should know before diving in again?

And are there any licensing issues that would prevent using CB in a commercial
app?


Charlie

-- 
   Charlie Garrison  <[EMAIL PROTECTED]>
   PO Box 141, Windsor, NSW 2756, Australia



Re: CamelBones on Intel? Maybe not.

2005-06-09 Thread wren argetlahm
--- Edward Moy <[EMAIL PROTECTED]> wrote:
> So what is really needed at this  
> point is for the CamelBones community to get
> together and innovate.   
> Create some killer apps with CamelBones.  Get
> developer excited about  
> this technology.

I'll bite.

Dunno if it'd count as "killer" or not but I have a
F/OSS project I've been working on that's been looking
for a GUI for a while. We were going to go with Python
for cross-platformability, but I've been thinking
about learning Cocoa for a while and have really
wanted to use CB for *something*.

Hey Sherm, I haven't toyed with CB since the days of
10.2, anything I should know before diving in again?

Live well,
~wren

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com