Re: need a Little help please

2007-10-02 Thread Paul McCann
Hi Noah, I am not able to get CPAN to reload an index. I cant seem to figure out why I cant reload the CPAN index? Even after updating the CPAN URL list - I am still unable to fetch things from servers. The output you showed (in all its glory!) might result from not having FTP_PASSIVE

Re: Code Examples for NewAlias

2006-11-04 Thread Paul McCann
Laurence Haynes wrote: I'm trying to understand how to use the Mac::Files NewAlias function. I have not found any code examples and I'm struggling. The NewAlias function creates a filehandle. How do I create an alias file from the alias filehandle? I'm not surprised: Chris Nandor provided

Re: perltidy and -w flag

2006-10-05 Thread Paul McCann
Jay Savage wrote: I can't for the life of me figure how to get it to stop putting the '-w' flag on the shebang line. It also seems to occasionally eat my 'use warnings;' when it does it. I've just tried to replicate this in TextMate (selecting "Tidy" via the Perl bundle with a "use warnings;

Re: Perl Module Installation

2006-08-23 Thread Paul McCann
Michael Barto wrote: If you have downloaded the module instead of using CPAN, look at the file "INSTALL" in the module. If should tell you what to do: #./configuration #make #make check <= VERY IMPORTANT!! #make install Hmm, doesn't look very typical!! Most perl modules don't have

Re: Math::GMP and Net::SSH::Perl

2006-08-05 Thread Paul McCann
Hi Michael, I think the problem here is that Math::GMP doesn't look in /usr/local/ lib to find the libgmp* libraries, so you need to give it a helping hand. Just modifying the Makefile.PL file so that instead of 'LIBS' => ['-lgmp'], # e.g., '-lm' you have 'LIBS' => ['-L/usr/lo

Re: Mac Perl bug?

2006-07-19 Thread Paul McCann
Hi again, Ugh: please ignore my previous example, which split on the empty string by mistake (it's even evident in the script you quoted). Thwack... Let me try and pull this together: splitting on a string containing a single space is special in a "do what you probably mean" way: it's

Re: Mac Perl bug?

2006-07-18 Thread Paul McCann
Ende asked... Why? $a = "1 2 3"; 1 2 3 split / /, $a; [1, "", 2, 3] split " ", $a; [1, 2, 3] Using a single space as the string on which to split triggers a special case: from "perldoc -f split" specifying a PATTERN of space (' ') will

Re: convert string to number?

2006-07-07 Thread Paul McCann
Hi Adam, sounds like the symptoms you'd get if the value you're sending to R has a newline character hanging on the end. Perl will do the conversion to an integer when required [1], but if you're passing such a thing to R it'll probably get grumpy. Just chomp the line before doing the ext

Re: Mac-Carbon-0.76

2006-06-22 Thread Paul McCann
Hi Chris, Thanks for all the input, I got a lot of small bugs fixed, in tests and docs mostly, and a small one in code. No major code changes, no Intel-specific code changes. Smooth as silk here, both with and without MAC_CARBON_GUI set. Cheers, Paul

Re: Mac::Carbon for Intel ... Done?

2006-06-20 Thread Paul McCann
Hi again, Yes, AppleEvents/t/event and AppleEvents/t/desc were both failing with the same error message: === AppleEvents/t/eventNOK 2# Failed test 'require '"$Bin/ helper.pl"';' # in AppleEvents/t/event.t a

Re: Mac::Carbon for Intel ... Done?

2006-06-19 Thread Paul McCann
Hi Chris, Go play with it, if you have an Intel Mac. Let me know if you find anything wrong, and let me know soon, since I have less than a week left with this Intel Mac. The module (Mac-Carbon-0.75) was fine through "make" on my intel Mac (modulo all the "deprecated" warnings of course,

Re: Control-D Bug?

2006-02-01 Thread Paul McCann
Jonathan Levi wrote: #!/usr/bin/env perl # [comments omitted] print reverse <>; drj2:learningperl4 jonathan$ p052e1.pl 1 2 3 3D 2 1 I'm pretty sure that you're just seeing an artefact of executing in the terminal (ie it's a display problem, rather than a problem

Re: backup strategy questions

2005-08-14 Thread Paul McCann
Hi Joe, I've used the Disk Utility and created a copy that boots. Thank you it was fun. I haven't done the cron thing yet or the psync over it. One question, it appears like everything on the restore copy is exactly the same, however the total file size and the total number of files i

Re: backup strategy questions

2005-08-10 Thread Paul McCann
Hi Joe, ... I wrote a little program that creates a new directory each time (ie, 2005-08-09) and does a full backup using psync to the directory. My question: In the event of a hard disk failure, will I be able to boot from a full copy in a directory? How would I be able to recover?

Re: psync backup problems: suggestions?

2005-07-14 Thread Paul McCann
Joe asked, > As an aside, does anyone know how to turn spotlight off of a volume? > It immediately starts creating an index and it is causing my > comnputer to run hot and make everything else run slow. System Preferences => Spotlight => Privacy Just drag in what you don't want indexed. Cheers,

Re: HTML::Tidy Filter for BBEdit?

2005-01-17 Thread Paul McCann
Hi John, you wrote... > my question is, how can I create the same sort of script which will > use HTML::Tidy? > > Both the module and the library are installed and running OK on my > Mac, but I can't seem to get it to work, in fact I can't even figure > out from the documentation how t

Re: Parsing Excel spreadsheet on osx?

2005-01-16 Thread Paul McCann
Hi Adam, you asked... [[script deleted]] > This gives no output at all. Any ideas if this should work on OSX? Yes, it works perfectly on my machine. I made a new spreadsheet "test.xls", inserted some simple data on two separate sheets, and then ran the script you provided. Output was -

Re: A Net::Config problem

2004-11-22 Thread Paul McCann
Hi Vic, you wrote... > I've got a ".libnetrc" file in my home directory. It reads >{ > 'nntp_hosts' => [ "news.dacor.net" ], > 'smtp_hosts' => [ "mail.dacor.net" ], > 'pop3_hosts' => [ "mail.dacor.net", "mailstore.bgsu.edu" ], >} I've thrown that file into my hom

Re: installing scripts using expat/libxml on 10.1.5

2004-11-02 Thread Paul McCann
Hi Richard, you asked... > I'm about to write a number of fairly simple perl scripts. They'll be > reading xml files. Unfortunately they've got to be installed on a > client machine that uses 10.1.5, owned by a fairly untechnical user. > I've always had control of the environment befo

Re: curses

2004-09-15 Thread Paul McCann
There was a hint on macosxhints.com a couple of days ago about getting Curses installed under Panther. It rang some very familiar bells for me, so I think the hint paraphrased something I'd tripped across earlier (after some googling). To save the lookup, here's the prescription posted:

Re: Mac::Glue finder physical size

2004-08-30 Thread Paul McCann
Hi Rick, you wrote... > From previous posts (ages ago) I thought the following code should > return the physical size of the folder in question. However getting > ->prop() just returns the $obj for some reason. What am I doing wrong? You need to add a ->get after the prop(). Strangely

Re: [OT?] Shebang question

2004-07-21 Thread Paul McCann
Hi ~wren, you wrote... > Sorry if this is off-topic, but I seem to recall > sometime fairly recently (less than a year, more than > a few weeks) someone mentioned a way to "autofind" the > path to perl on the shebang line so you don't need to > hardcode the path. I can't seem to find the p

Re: Preview.app opening multiple files

2004-03-29 Thread Paul McCann
Ned Day asked, > how on earth do i unsubscribe from this? Try reading the mail headers of any message to the list: List-Unsubscribe: Cheers, Paul

Re: Preview.app opening multiple files

2004-03-29 Thread Paul McCann
Hi Joseph, you wrote... > It's easy to replicate from the Finder. You highlight the files and > double click holding shift down. > Also, you can highlight, then control click getting the menu and then > select open. Thanks for the explanation, but my machine seems to be on a rather s

Re: Preview.app opening multiple files

2004-03-29 Thread Paul McCann
> On Mon, 29 Mar 2004, Chris Devers wrote: > > > Unfortunately, I get the same error you do when I try to run it: > > > > $ ./osatest.sh > > ## Component Manager: attempting to find symbols in a component alias of type > > (regR/carP/x!bt) This is some sort of issue with Toast; googli

Re: Scripting Mail.app on 10.3.2?

2004-01-22 Thread Paul McCann
Hi John, you asked... > Can you provide a real working example. I find the Synopsis of > IPC::Run a little obscure. It's expecting an arrayref in the first slot: here's a trivial, but working, example. --- #!/usr/bin/p

Re: /tmp v. /tmp/501/TemporaryItems

2004-01-18 Thread Paul McCann
Hi John, you wrote... > Can someone please tell me if there's any reason not to write files > in /private/tmp rather than in /tmp/501/TemporaryItems ? > > drwxrwxrwt 29 root wheel 986 18 Jan 21:49 tmp > drwxr-xr-x 13 jdwheel 442 18 Jan 21:30 TemporaryItems > > So far as jd

Re: xterm color support

2004-01-18 Thread Paul McCann
Hi Gohaku, you wrote... > I have a question about the following script: > use Term::ANSIColor; > print color("red on_white"), "Danger, Will Robinson!\n"; > print color("red on_white"), "Danger, Will Robinson!\n"; > print color("red on_white"), "Danger, Will Robinson!\n"; > print color("res

Re: Newcomer with a few questions

2003-11-07 Thread Paul McCann
John wrote... > The trouble is that it takes an age for the libraries to be loaded, the > events to be compiled and for the dialog to appear: > > #!/usr/bin/perl > use MacPerl; > $phone = MacPerl::Ask("Enter your phone number:"); Hmm, must depend crucially on the machine: on this dual 1G thing

Re: Perl version of GetFileInfo?

2003-10-31 Thread Paul McCann
Hi Conrad, you wrote... > I jumped too soon. I tested the MacOSX::File install under Panther and it > failed with these errors: > > I tried using gcc 2.95 instead of 3.3 and got further but still errored... I > don't have time right now to try and debug it but maybe later. If you check

Re: Problems installing libwww-perl-5.69 on OSX

2003-10-19 Thread Paul McCann
Hi Mike, you wrote... > I'm trying to install libwww-perl-5.69 on my OSX machine to run under > Perl 5.8.0. Try using 5.72 (which is on CPAN now). I installed it this morning and all tests passed without problem. (This is with perl 5.8.1, but I'd bet you'll get similar results with 5.8

[solution] Getting Curses.pm to work in 10.2.x

2003-10-12 Thread Paul McCann
Greetings all, Having searched for hints as to how to install Curses.pm under 10.2.x and come up empty-handed I think it's worth detailing a working procedure. The naive approach ("just do it") fails miserably, as do a couple of near relatives. The key is realising that (1) Curses.pm is really ol

Re: psync Warnings

2003-09-29 Thread Paul McCann
Hi David, you wrote... > While running a psync backup, I get lots of warnings such as these: > > [[warnings deleted]] > > Should I worry about these? The command I'm running is While I don't recognise all the warnings that you showed at least some of them can be removed by replacing Dan's

Re: psync trouble

2003-09-25 Thread Paul McCann
Hi Bill, you wrote... > I'm getting close. > psync doesn't seem to set file permissions. It sets directory > permissions, sort of. > > I'm looking at the browser Camino. My source file > /Camino.app/Contents/MacOS/Camino is set to 771. > When psync copies it, the target /Camino.app/Cont

Re: File write/read problem

2003-09-24 Thread Paul McCann
Hi Mark, you wrote... > Permission denied at /Library/WebServer/CGI-Executables/write.cgi > > All the permissions for each of these directories are 755. Something is > a miss. So what can I do?! I'm very confused. There's your problem. 755 will not allow the "www" user (or whatever you'

Re: installing expat

2003-09-10 Thread Paul McCann
Hi Chad, you wrote... > http://sourceforge.net/projects/expat/ > > Unfortunately, I don't seem to be able to figure out how to install > expat. I downloaded it from ftp://ftp.jclark.com/pub/xml , where it > includes a makefile. However, my degree in music composition didn't > involve

Re: Panther, Perl 5.8.*, threads, etc.

2003-07-15 Thread Paul McCann
Sounds like you might be heading in the POE direction: http://poe.perl.org/ Worth a look if you haven't already considered this option. Cheers, Paul

Re: copy files with everything?

2003-03-30 Thread Paul McCann
Hi Berndt, you wrote... > simple question, how can I copy file type, creator and icon along with a file. > > > #!/usr/bin/perl use File::Copy; copy("/private/var/root/Desktop/xxx/test1.doc", "/private/var/root/Desktop/yyy/test2.doc"); > > copies just the file, but the

Re: MacPerl->Perl help

2003-03-05 Thread Paul McCann
On Wed, Mar 05, 2003 at 04:09:46PM -0800, Nicholas G. Thornton wrote: > Also, is there a way to run OSXPerl scripts from Aqua rahter than from Darwin? > And is there any way to make droplets ala MacPerl used to? If you save a perl script with an extension of command (eg, myscript.command) then do

Re: [OT] More Terminal/Finder cooperation

2003-02-26 Thread Paul McCann
On Wed, Feb 26, 2003 at 10:46:05AM -0600, Ken Williams wrote: > Awesome - I'm now adding a little perl script around it to get the > absolute path and to activate the Finder: Nice script: I think you can probably save some execution time by incorporating both finder calls in the same osascript c

Re: hi and axpoint

2003-02-22 Thread Paul McCann
Marco Baroni wrote: > However... > > >Most of the rest of the dependencies are pretty much sorted these > >days: at > >least once you've got libxml2 and libxslt and have their perl wrappers > >installed (watch the version of XML::LibXML, as per earlier messages. > >It broke > >some time soon af

Re: hi and axpoint

2003-02-21 Thread Paul McCann
Hi Marco, > In particular, I followed the suggestions regarding the Makefile of > Text::Iconv that I found in the message > http://archive.develooper.com/[EMAIL PROTECTED]/msg04392.html, but that > didn't help (it didn't even help wrt to Text::Iconv, which still cannot > find the libiconv, des

Re: (CB) PerlPad 0.1 + Perl 5.8

2003-02-10 Thread Paul McCann
Thilo wrote... > If I understand Paul McCann's post to this list correctly though, he > made it work and even assigned a new key-equivalent that gets through. Bingo: I'm using BBEdit 6.5.3 and services (including PerlPad's) come through loud and clear. I just did and quick check on http://www.b

Re: Announcement: PerlPad 0.1

2003-02-09 Thread Paul McCann
Thanks for the info Thilo: just in case someone else wants to do the remapping. Find PerlPad, control click and select "Show Package Contents". Open up Info.plist file inside the Contents directory (double clicking will probably crank open "Property List Editor", which is a pretty good tool f

Re: Announcement: PerlPad 0.1

2003-02-09 Thread Paul McCann
On Mon, Feb 10, 2003 at 09:51:34AM +0900, Thilo Planz wrote: > I have been playing around with Camelbones a little and placed my > results on SourceForge: > > http://perl-pad.sourceforge.net/ > > I would like some feedback, basically to see if the thing installs on > other computers than my own

Re: dmg of perl 5.8.0 on Mac OS X

2003-02-05 Thread Paul McCann
On Wed, Feb 05, 2003 at 06:03:32PM -0700, Nathan Torkington wrote: > Please download and test the perl 5.8.0 distribution available from: > http://nathan.torkington.com/tmp/perl5.8.0gnat1.dmg Done, and much appreciated. (The machine on which I have just installed your dmg was giving all sorts of

Re: CamelBones example code?

2003-01-28 Thread Paul McCann
Rich Morin wrote: > FWIW, I managed to get the data source part working, though somebody is > making FAR too many calls to numberOfRowsInTableView (:-). My current > issue is setting a fixed-width font for the table's data cells. This: > $acell = $col->dataCell(); > $acell->setFont(NSFont-

Re: trouble with DBD::SQLite 0.23

2003-01-28 Thread Paul McCann
Hi again, > h... if you (I too) can't see it on search.cpan.org, how do you > know 0.24 exists? I searched on the minimalist seargent.org, and on > Google too... nothing about 0.24. Is there a secret place? ;-) Hmm, not very sEcReT; Matt Sergeant has a use.perl.org journal http://use.perl.

Re: trouble with DBD::SQLite 0.23

2003-01-28 Thread Paul McCann
Puneet Kishor wrote: > I am able to build SQLite 2.7.6 from source without any problem. But, > DBD::SQLite 0.23 (which comes with its own SQLite) croaks. > Interestingly, it seems to build and install ok, many tests are passed, > then 'make test' (regression testing) fails. Running dbish shows SQ

Re: XML-LibXML

2003-01-18 Thread Paul McCann
Robert Whittle asked: > Has anyone managed to install XML-LibXML(1.53) on OSX 10.2? > I installed libxml2-2.4.15 (from the OSX packages on > http://xmlsoft.org), but it seems to be out of date. I'm happy to be able to report that the latest versions of libxml2 and libxslt from xmlsoft compile bea

Re: Process table information

2002-12-03 Thread Paul McCann
Chris Nandor wrote: > [EMAIL PROTECTED] (Ken Williams) wrote: > > > Yeah, that looks like exactly what I want. Now if I can just > > get Mac::Carbon working under 10.1.5! =) Still haven't had any > > luck with that, it looks like a gcc 2/3 issue to me. > > Yeah, I dunno. :/ I've not had an

Re: PDFLib

2002-12-03 Thread Paul McCann
On Tue, Dec 03, 2002 at 10:13:48PM +0100, jonasbn wrote: > I am currently working on a bingo game in Perl (its a long story). > > The next step in the development is to be able to produce bingo plates > and I have been given some code dependent on PDFLib from a kind soul. > > I have downloaded th

Re: Opening a MacOS package

2002-11-05 Thread Paul McCann
On Tue, Nov 05, 2002 at 09:26:01PM +, John Delacour wrote: > I've a feeling I'm doing something silly here, but I can't work out > what it is. In the shell I can list the contents of a Mail.app > account package, but perl will not recognise the package as a > directory. Do I need to use so

Re: Installation of LWP fails

2002-10-12 Thread Paul McCann
On Fri, Oct 11, 2002 at 09:55:18AM -0700, David Wheeler wrote: > On Friday, October 11, 2002, at 08:36 AM, Phil Dobbin wrote: > > > Is this indicative of the Developer Tools not being installed? > > I don't know about that, but if the developer tools weren't installed, > there'd be no compiler

Re: Perl REs as System Service

2002-10-11 Thread Paul McCann
On Fri, Oct 11, 2002 at 09:43:27AM -0400, Alexandre Enkerli wrote: > Did anyone try building a System Service (in the "Services" submenu) to > apply Perl regular expressions on selected text? Kevin van Vechten has a Perl Service for Mac OS X that works fine with Jaguar (unlike his SSHAgentServic

Re: Installation of LWP fails

2002-10-10 Thread Paul McCann
On Friday, October 11, 2002, at 03:24 AM, Palle Bo Nielsen wrote: > I have exactly the same problem on a machine at work running Mac OS X > Server 10.2. Don't know how to fix it. Would like to be able to run > the LWP module too. >> >>> (You get this message, because MakeMaker could not find

Re: Mac::AppleScript fixed

2002-09-02 Thread Paul McCann
On Mon, Sep 02, 2002 at 08:36:39AM -0400, Dan Sugalski wrote: > If someone's got a harmless and unobtrusive piece of applescript code > that'd be better for the test, I'm all for it. Here's a tedious bit of applescript that might fit the bill: tell app "Finder" open startup disk

Help with Perl on MacOSX

2002-01-09 Thread Paul McCann
Hi Anthony, almost certainly a line endings problem. The script needs "unix" line endings, and I'll bet it's currently got "mac" line endings. Check the settings in your text editor. Something like perl -pi -e 'tr/\015/\012/' macperl.pl should sort out the problem if my guess is right. Che

Re: XML::LibXML on Mac OS X 10.1.1

2001-12-13 Thread Paul McCann
> I'm trying to build XML::LibXML and XML::LibXSLT on OS X 10.1.1 and I > have no luck doing it. > I already installed libxml2 Version 2.3.14-1 with Fink. Not good enough I'm afraid: that fink package must be fairly old. >From the Makefile.PL for XML::LibXML die "XML::LibXML needs libxml2

Re: Nonblocking IO

2001-11-30 Thread Paul McCann
Hi James, my advice is to beg, steal, or borrow a copy of Lincoln Stein's "Network Programming with Perl". It covers the ground you're looking to tread extraordinarily well. Another option might be to have a look at POE, which gives a kind of "threads without threads" in pure perl. There, ain't t

Re: Compiling expat for OSX

2001-08-22 Thread Paul McCann
Hi again, many thanks to all respondents: expat 1.95.1 installed without a hitch using simply: % ./configure % make % sudo make install I installed XML::Parser 2.30 by adding in the explicit paths, as suggested by Nathaniel: % perl Makefile.PL EXPATLIBPATH=/usr/local/lib/ \ EXPATINCPATH=

Compiling expat for OSX

2001-08-21 Thread Paul McCann
Hi, in a fit of XML fever I tried to install XML::Parser on my OSX machine (running 10.0.4 with the standard 5.6.0 perl that came with the original OS). To install XML::Parser you first need to install expat, and here's where my trouble arose. I downloaded 1.95.2 from http://sourceforge.net/pro

Re: Creating groups was (RE: OT: mySQL installation)

2001-07-20 Thread Paul McCann
Maybe this will stop the OT stuff: maybe it'll only make it worse! >> Well that still doesn't explain how to create a group I've inserted a chunk of a "nervous nelly" step-by-step set of instructions I wrote a while ago on a macfixit_forum thread below this message. niutil is probably prefer

Re: making a file executable

2001-07-19 Thread Paul McCann
Hi Robin, On Friday, 20 July 2001 at 3:45AM you wrote: >I've included the script below for perusal, it basically kills any >apps which are open at the time of invokation - I got fed up doing it >manually and didn't want to write an Applescript to do it. It works >as expected when run

Re: Running PERL Modules

2001-07-01 Thread Paul McCann
> At 2:41 pm -0400 1/7/01, Steve Torrence wrote: >> [Sun Jul 1 14:32:18 2001] [error] (2)No such file or directory: >> exec of /Library/WebServer/CGI-Executables/YaBB.cgi failed >> [Sun Jul 1 14:32:18 2001] [error] [client 63.220.209.166] Premature >> end of script headers: /Library/WebServer/C

Re: Make is where it should but where is 'wich' ?

2001-06-20 Thread Paul McCann
Hi Ronald, > To find make Martin suggested %wich make or %where make. On my machine make > & gnumake are where they should > be, thougth bash can not find wich or where? Are this to tools part of the > developer tools? > They are not on /usr/bin, where else can they be? Otherwise where can I get

Re: apache wont start on osX (needed to run perl-cgi scrips)

2001-04-17 Thread Paul McCann
Replying to Alan, Scott wrote... >you need to be root to start it. > >use sudo > >sudo apachectl start Which nicely explains the message that Alan saw: httpd: could not open error log file /private/var/log/httpd/error_log httpd starts up with root privileges, opens the log files, which are wri