Re: Formatting uploaded images

2006-02-16 Thread John Horner
Nobody's yet mentioned the Image::Size module? If installing a module is hard, then it doesn't seem sensible to advise using a different module! There is an *enormous* difference between installing ImageMagick (which isn't a module, although you get a perl module with it) and installing

Re: Formatting uploaded images

2006-02-15 Thread John Horner
- check uploaded image physical pixel size This can be done relatively easily by parsing the JFIF tags Nobody's yet mentioned the Image::Size module? http://search.cpan.org/~rjray/Image-Size-2.992/Size.pm That's what I'd use before I went poking about in the bytes of a JPEG. And, the advice

Re: XMLTV installation can't find META.yml

2006-01-14 Thread John Horner
On 14/01/2006, at 9:04 PM, Leo Lapworth wrote: You can install without this file - it's just meta data about the package. So do: perl Makefile.PL make make test make install OK now I have to apologise because I wasn't quoting the whole error message: Warning: the following files are

XMLTV installation can't find META.yml

2006-01-13 Thread John Horner
I'm trying to install XMLTV, see http://sourceforge.net/project/showfiles.php?group_id=39046 but it fails every time saying Warning: the following files are missing in your kit: META.yml Please inform the author. The interesting thing is, when I look at MANIFEST, META.yml is

Re: Perl web server

2006-01-10 Thread John Horner
I suspect the problem is the Apache config on my Mac but have researched and made changes but to no avail. We're going to need more details! Is the web server running? Where is the script you're trying to run located? How are you trying to get it to run in a browser, i.e. what URL are you

System rename command

2006-01-07 Thread John Horner
I was trying to do something involving renaming files the other day and I wrote: system(rename $originalname $newname); and got an error. I figured out in the end I was getting confused -- perl has a rename function and if I want to do the system way, I need mv instead. But when I do man

Re: System rename command

2006-01-07 Thread John Horner
On 08/01/2006, at 12:56 PM, [EMAIL PROTECTED] wrote: That appears to be a Section 2 manpage (system call, not a command). Commands are in Section 1. Try: That makes a lot of sense. The stuff about #include stdio.h should have been a clue! Thanks.

OT: wget question

2005-12-31 Thread John Horner
I hope you don't mind me asking a wget question. I have a feeling it may hang on some Mac-specific issue which I'm not getting. I'm trying to download http://www.guardian.co.uk/pda/avantgo/ for offline reading. I'm using wget's --restrict-file-names flag to make sure that problem characters

Re: ImageMagick and Perl on 10.3.9

2005-10-30 Thread John Horner
Those @FOO@ strings are placeholders, they shouldn't appear in Makefile.PL. Are you certain that you're running perl Makefile.PL, not perl Makefile.PL.in? Absolutely sure. if you insist on using such an old version of the library, you'll need to fetch and install the Perl module by hand.

ImageMagick and Perl on 10.3.9

2005-10-29 Thread John Horner
Can anyone explain some of the mysteries of ImageMagick scripting with Perl? I installed the ImageMagick package found here: http://www.entropy.ch/software/macosx/welcome.html#imagemagick and it says it installed OK, although I can't do mogrify -args file I have to do

Re: ImageMagick and Perl on 10.3.9

2005-10-29 Thread John Horner
the package you installed has (correctly, IMNSHO) been configured to use the default prefix of /usr/local. [...] edit ~/.bashrc OK, got that part, thanks. when troubleshooting, always look at the *first* error, not the last one. At the beginning of these hundreds of lines, you'll find the

Re: The shell and my scripts

2005-07-31 Thread John Horner
Thank you all for your help. I think I get it now. Just to clear up some confusion, when I'm working in BBEDit, I have two options to run the script: Run -- which seems to run the script in bash. Run In Terminal -- which runs in my chosen shell and I also run scripts from cron, using the

The shell and my scripts

2005-07-28 Thread John Horner
Recently there was a change at work -- all http access now needs to go through a proxy. So if I have a script using LWP::UserAgent or similar, I have to add $UA-proxy( ['http'] , 'http://proxy.fake.com:8080' ); to all my scripts. Which is a big pain. So a *NIX guy said you shouldn't need

Re: Newbie: renaming files

2005-06-12 Thread john horner
better would be a test, whether $1 is between 1-12 or 13-24 or 25-36 ... $src= $dest files1-12 = file01_ files13-24 = file02_ files25-36 = file03_ If I understand your numbering scheme, you need something like this: $newnumber

Re: Parsing Jpeg files for comments

2005-06-08 Thread John Horner
I want to be able to access those comments through perl. Is there a module which already exists which does this? Not what you asked for, but this site: http://osx.freshmeat.net/projects/libjpeg/ has an OS X version of rdjpegcom which is a system tool for reading JPG comments.

Re: CamelBones on Intel? Maybe not.

2005-06-07 Thread John Horner
My main question about the change to Intel is why the developer pack, whatever it was, costs so much? What do you get for your $999? I was expecting something free to download to developer members.

Re: CamelBones on Intel? Maybe not.

2005-06-07 Thread John Horner
They throw in a Pentium4 / 3.x gHz computer with the deal. Phrase it that way and it's actually kind of cheap... :-/ Oops. I must have missed that part in the excitement! So that means IntelMacs (MacTels? PentiuMacs?) will be out in the wild very shortly, in that sense at least. How

How to mount FTP as volume?

2005-03-30 Thread John Horner
Slightly off-topic I know, but ... there was discussion recently of ways to get FTP servers to mount as volumes on OS X, but I can't find it now -- can anyone point me at the right tool?

Re: problem with installing DBD::mysql

2005-03-15 Thread John Horner
ld='MACOSX_DEPLOYMENT_TARGET=10.3 cc' ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc' Call me petty, but this problem has been around for *years*, hasn't it? I'm constantly seeing it come up on the list. Hasn't Apple fixed it yet? The page referred to has some kind of reference to we spotted it

Can I Download Shux by itself?

2005-03-14 Thread John Horner
I wouldn't mind having a dedicated OS X Pod viewer -- can I download Shux by itself without downloading a big old package of other stuff? If so, I can't find it!

Re: Sorting year and month

2005-03-01 Thread John Horner
I was interested by this question -- and let me say, of course the correct answer is, use the module -- I just took the opportunity to try learn a bit about more advanced sorting. The following is of course a very roundabout solution, but it shows how you can sort by an arbitrary quality you

Re: Perl stopped working on Apache 1.3.3, but then starts?

2005-02-08 Thread John Horner
Apache was too busy dealing with web requests, and could not process cgi requests until traffic subsided. Perhaps Perl/cgi requests are lower priority? I think it's more complex than that, but serving simple html files takes less time, requires less memory, can more easily be cached and so on.

Re: TextWrangler

2005-01-20 Thread John Horner
At 9:34 PM -0800 20/1/05, Chris Nandor wrote: it handles all the same Perl stuff as its bigger sibling: syntax coloring, running scripts, filters, debugging, viewing POD, etc. How does BBEdit view POD? I never knew about that.

Re: HTML::Tidy Filter for BBEdit?

2005-01-18 Thread John Horner
by the module. Does its clean function transform a string in place? It doesn't seem to. Where are the options? Is it perhaps confused about where tidy is on my system (/opt/local/bin/tidy) ? Have You Validated Your Code? John

Re: Reading in a File

2004-12-26 Thread John Horner
Short answer: show us the whole script, and tell us about the file history.txt. The most likely explanation for why do something for each line of file x would do nothing is that there are no lines in file x, right? That is, it will do something three times for a three-line file, and zero

Re: Installers can't find/use cc

2004-11-18 Thread John Horner
Just wanted to follow up on this: I installed the December 2002 Developer Tools and the August 2003 copy of gcc and everything is fine. I got darwinports to install Perl (5.8.5) for me and everything seems fine. Couple of supplementary questions: 1) I presume that my 10.2 box is now pretty

Installers can't find/use cc

2004-11-14 Thread John Horner
/libexec/gcc/darwin/ppc/2.95.2/specs Apple Computer, Inc. version gcc-934.3, based on gcc version 2.95.2 19991024 (release) TIA Have You Validated Your Code? John Horner(+612 / 02) 9333 2110 Senior

Re: BBEdit as HTML validator back end?

2004-11-12 Thread John Horner
http://validator.w3.org/source/ Instructions for that one are only a couple clicks away: http://www.mediaville.net/articles/validator/ Thank you. I had no idea. Checking it out now. It's possible to install these tools on LINUX using PPM I think you're confused - Linux is not an ancronym, and

Re: BBEdit as HTML validator back end?

2004-11-12 Thread John Horner
the results to another file -- how hard would it be to hook in to that with a CGI script? On Nov 11, 2004, at 7:06 PM, John Horner wrote: I would like to be able to install a browser-based HTML validator on my OSX web server

Re: BBEdit as HTML validator back end?

2004-11-12 Thread John Horner
On 13/11/2004, at 5:48 AM, Sherm Pendley wrote: If BBEdit can be driven via AppleScript, you should also be able to use Mac::Glue to drive it. Or, you could run your AppleScript with the osascript tool. That got me on the right track -- to the extent that this is already working:

BBEdit as HTML validator back end?

2004-11-11 Thread John Horner
I would like to be able to install a browser-based HTML validator on my OSX web server, like the W3C: http://validator.w3.org/source/ or WDG: http://www.htmlhelp.com/tools/validator/source.html validators. It's possible to install these tools on LINUX using PPM but being able to hack

Re: OT: [SOLVED] what happened to my permissions?

2004-10-06 Thread john horner
The problem is now fixed, thanks for your patience. In case anyone needs to know, the problem is with the ftpd daemon; for some reason after the upgrade its default umask was 002 when previously it was 022. The solution is to create, if it doesn't exist, a file at /etc/ftpd.conf containing the

Re: OT: what happened to my permissions?

2004-10-05 Thread John Horner
without any arguments tell you? Something like 037 or 015? It just says 2. Have You Validated Your Code? John Horner(+612 / 02) 9333 2110 Senior Developer, ABC Online http://www.abc.net.au/

OT: what happened to my permissions?

2004-10-04 Thread John Horner
the GUI? And finally, if anyone's really annoyed by this being OT, where should I go to ask for this kind of help in future? Have You Validated Your Code? John Horner(+612 / 02) 9333 2110 Senior

Re: Help! (with sendmail after upgrade)

2004-09-14 Thread John Horner
::Sendmail which is working just fine. Thanks again. Have You Validated Your Code? John Horner(+612 / 02) 9333 2110 Senior Developer, ABC Online http://www.abc.net.au/

Help! (with sendmail after upgrade)

2004-09-13 Thread John Horner
/html\n\n; print ran with no problems?; Have You Validated Your Code? John Horner(+612 / 02) 9333 2110 Senior Developer, ABC Online http://www.abc.net.au/

Re: BBEdit 8.0

2004-09-09 Thread John Horner
Multi-file regular expression find replace functionality, with nameable saveable expressions That's the killer-app feature for me. I could actually say that I think it's BBEdit that gave me my first glimpse of the power of Perl. I use BBEdit literally every day for both HTML and Perl. It's got

Re: Upgrading from 10.1 to 10.2

2004-09-01 Thread John Horner
Just for the record, I've upgraded from 10.1 to 10.2 without any major problems, but what I wish I'd thought of, as it's primarily used as a webserver, is backing up httpd.conf -- I'm going to have to go in and tweak that to suit my preferred settings all over again, as, while Perl is working

Re: Upgrading from 10.1 to 10.2

2004-09-01 Thread John Horner
with the Apache install, but to httpd.conf.applesaved. Have You Validated Your Code? John Horner(+612 / 02) 9333 2110 Senior Developer, ABC Online http://www.abc.net.au/

Upgrading from 10.1 to 10.2

2004-08-31 Thread John Horner
I'm having puzzling errors with a calendar application written in PHP. Now I know this isn't the place to ask about PHP, but the thing is, the app is running on an old Mac G3 which I use as an intranet server, and it's still on OS X 10.1 -- so the first thing I was going to do was upgrade it to

Brand New Empty Mac

2004-08-25 Thread John Horner
and documents on another and so on? Any issues around the installation of Perl and other things like C libraries that I should be thinking about? Have You Validated Your Code? John Horner(+612 / 02

DarwinPorts (not strictly Perl)

2004-08-06 Thread John Horner
so I'm pretty much stuck on Page One. Any help gratefully received. Have You Validated Your Code? John Horner(+612 / 02) 9333 2110 Senior Developer, ABC Online http://www.abc.net.au/

Re: DarwinPorts (not strictly Perl)

2004-08-06 Thread John Horner
cvs -d :pserver:[EMAIL PROTECTED]:/Volumes/src/cvs/od login but I get asked for a password. There's no mention of this, and no password I Thanks to everyone who pointed out that I could just hit return instead of entering a password for the darwinports CVS command. I'm rather red-faced over it

Double-Clickable or Droplet Files?

2004-07-17 Thread John Horner
I was very impressed by Pashua, which allowed me to add an OS X interface to a Perl script. But I still have to call the script from the command line. Are there ways to create double-clickable or droplet-style applications in OS X, the way I used to in MacPerl on 9? There was some mention

Re: CPAN installing to somewhere not in @INC

2004-06-11 Thread John Horner
and make everything work but apparently not... Have You Validated Your Code? John Horner(+612 / 02) 9333 2110 Senior Developer, ABC Online http://www.abc.net.au/

CPAN installing to somewhere not in @INC

2004-06-10 Thread John Horner
This may be a frequently-asked question, but I've got installed modules which CPAN says are up to date but Perl can't find. @INC contains: /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1

Whither Developer Tools?

2004-06-09 Thread John Horner
have a Developer Tools CD. Maybe they're assuming anyone who wants it will sign up and download it? Or have I missed something? Have You Validated Your Code? John Horner(+612 / 02) 9333 2110

Re: Whither Developer Tools?

2004-06-09 Thread John Horner
Thanks everyone, I guess I should have figured that HDs are so huge these days, putting a few hundred megs of optional content is actually easier than putting it on a CD. jh

which perl [am I using?]

2004-06-03 Thread John Horner
the command-line CPAN tool tells me [modulename] is up to date but a script will say it can't find it. I realise this is a lot to ask in one go... Have You Validated Your Code? John Horner

Re: Module Installation

2004-06-02 Thread John Horner
(can't test right now). Appreciate your help. Have You Validated Your Code? John Horner(+612 / 02) 9333 2110 Senior Developer, ABC Online http://www.abc.net.au/

Module Installation

2004-06-01 Thread John Horner
I'm a little reluctant to even ask, because I'm sure these questions get asked very often here, but I have a problem with installing a module, HTML::Parser. I have Panther, I have Dev Tools, Perl 5.8.0, I tried using CPAN and manually, and it fails every time. I won't post the whole thing but

Re: word list generator?

2003-03-09 Thread John Horner
I'll let you know: but I started to feel guilty, so I may have deleted it. -- John Horner(+612 / 02) 9333 2110 Senior Developer, ABC Online http://abc.net.au/

XML and XSLT C Libraries

2003-03-04 Thread John Horner
versions they are, just as long as I can get the Perl modules installed. Can someone help me/point me to pages online/get me started? jh -- John Horner(+612 / 02) 9333 2110 Senior Developer, ABC Online

More Specific Question

2003-03-04 Thread John Horner
? -- John Horner(+612 / 02) 9333 2110 Senior Developer, ABC Online http://abc.net.au/

Non-Perl but baffling question

2003-02-25 Thread John Horner
this for perl is just perl -v. -- John Horner(+612 / 02) 9333 2110 Senior Developer, ABC Online http://abc.net.au/

Installing Modules -- Success/Another question

2002-08-11 Thread John Horner
suggestions? jh -- John Horner(+612 / 02) 9333 2110 Senior Developer, ABC Online http://abc.net.au/