Need for Case-Sensitive File System?

2012-01-15 Thread Bruce Van Allen
Hi Friends, I've been developing in Perl on OS X ever since the OS X Public Beta. Somewhere along the line I came to believe that I should set up my system with the boot drive formatted as Max OS Extended (Case-sensitive, Journaled). Emphasis here on Case-sensitive. My question is: Is this

Re: Can't Update CPAN, Can't Install DBD::mysql

2011-09-28 Thread Bruce Van Allen
On 2011-09-28, Lola Lee Beno wrote: Looks like I need to install make. This means, I need to get XCode so I can install make, right? Other than the huge download of a bunch of XCode stuff you might never use, that's probably the best way to install make. - Bruce

SQLite over MySQL?

2011-06-17 Thread Bruce Van Allen
Hey John (or anyone else), On 2011-06-17, John Delacour wrote: I'm afraid I can't advise since I can't stand MySQL and find life much easier with SQLite. This aroused my curiosity because I have to switch some Perl programs written long ago with various flat-file data tables accessed via

Re: Ann: CamelBones 1.1.0

2009-11-23 Thread Bruce Van Allen
On 2009-11-23 at 11:08 AM, sherm.pend...@gmail.com (Sherm Pendley) wrote: http://www.camelbones.org/node/4 The requested URL /CamelBones/1.1/CamelBones-1.1.dmg was not found on this server. The link worked when I changed it to: /CamelBones/1.1/CamelBones-1.1.0.dmg Note the zero.

Re: Proposed Mac::Pasteboard

2008-01-27 Thread Bruce Van Allen
On Jan 27, 2008, at 10:53 AM, [EMAIL PROTECTED] wrote: On Jan 27, 10:49 am, [EMAIL PROTECTED] (Chas. Owens) wrote: On Jan 26, 2008 10:46 PM, [EMAIL PROTECTED] wrote: On Jan 22, 2:31 am, [EMAIL PROTECTED] (Brian D Foy) wrote: [[ This message was both posted and mailed: see the To, Cc,

Re: CamelBones: Will hack for food!

2007-05-09 Thread Bruce Van Allen
On 5/9/07 Jeremiah Foster wrote: I have blogged a bit about Camel Bones here on O'Reilly. Please comment if you would so that the python person who commented is not the sole comment. Nothing personal against python but it sucks. But let's not turn this into a battle in the best language wars.

Re: CamelBones: Will hack for food!

2007-05-09 Thread Bruce Van Allen
On 5/9/07 Jeremiah Foster wrote: Wed, May 09, 2007 at 08:55:54AM -0700: Bruce Van Allen mangled some bits into this alignment: On 5/9/07 Jeremiah Foster wrote: I have blogged a bit about Camel Bones here on O'Reilly. Please comment if you would so that the python person who commented

Re: Speaking of support for Camel Bones

2007-05-09 Thread Bruce Van Allen
On 5/8/07 Tim Bunce wrote: On Tue, May 08, 2007 at 05:38:42PM -0400, Sherm Pendley wrote: On May 8, 2007, at 5:23 PM, Bruce Van Allen wrote: I think we can confidently answer the Benefits to the Perl Community issue. That's my biggest concern. CB is mostly of use to the subset

Re: CamelBones: Will hack for food!

2007-05-09 Thread Bruce Van Allen
On 5/9/07 Peter N Lewis wrote: Perhaps folks have some ideas for apps that could be written in CamelBones? Something that would presumably use some of the vast CPAN facilities to make something cool with minimal programming effort. Mine would not be as flashy as games, but I'm working toward

Re: Speaking of support for Camel Bones

2007-05-08 Thread Bruce Van Allen
On 5/7/07 Chris Nandor wrote: Have you considered a Perl Foundation Grant? On 5/7/07 Tim Bunce wrote: Seconded, FWIW. On 5/8/07 Tom Yarrish wrote: This just came through on my RSS reader. http://news.perl-foundation.org/2007/05/calls_for_proposals.html Let's get behind this. Sherm could do

Re: Regex and Mac vs UNIX line endings

2006-07-20 Thread Bruce Van Allen
Peter gave some good examples, so I shortened this to supplement his suggestions. I prefer to determine what the end-of-line (eol) character is using something less slippery than \r and \n. In Perl, \n is the native eol for the OS that Perl is executing under, so it could any of the \n, \r, \r\n,

Re: When does a hash of lists get defined?

2006-04-05 Thread Bruce Van Allen
On 4/5/06 Stewart Leicester wrote: Bruce Van Allen wrote: Both defined $phash{D}[3] and exists $phash{D}[3] autovivify $phash{D}. - Bruce 'defined' will autovivify, 'exists' will not. I'll leave it up to Doug to decide if knowing that helps. Oh? Try this: #!/usr/bin/perl -w use

Re: When does a hash of lists get defined?

2006-04-04 Thread Bruce Van Allen
On 4/4/06 Doug McNutt wrote: While messing with CGI POSTed data I got trapped by this one. Version 5.8.1-RC3 for Mac OS 10.3.9 It appears that the hash element D gets defined in the process of testing to see if an element in the associated string is defined. The last if below takes the else

Re: When does a hash of lists get defined?

2006-04-04 Thread Bruce Van Allen
On 4/4/06 Stewart Leicester wrote: if (! defined $phash{D}) { print \$phash{D} is undefined, We expected that.\n; } Instead of defined $phash{D} use exists $phash{D} Actually, those mean different things. Neither autovivifies, which was what Doug was seeking to understand.

Re: Formatting uploaded images

2006-02-16 Thread Bruce Van Allen
On 2/17/06 John Horner wrote: 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

Re: return status code from sendmail in macosx

2006-01-18 Thread Bruce Van Allen
On 1/18/06 Riccardo Perotti wrote: Hi all: I have a typical mail cgi script written in perl and can't figure out why I don`t get an error when the message is not sent. ... The problem is that it does not die even though the message is not sent. I've tried checking $? (child error) but nothing

Re: CamelBones on Intel

2005-11-10 Thread Bruce Van Allen
On 11/10/05 Sherm Pendley wrote: To the future and beyond! Is that from a movie, tv show, book, etc.? It sounds familiar, but I can't quite place it... it's been bugging me for days... ;-) To infinity and beyond! was from Toy Story. Best, - Bruce __bruce__van_allen__santa_cruz__ca__

Re: CamelBones on Intel

2005-11-10 Thread Bruce Van Allen
On 11/10/05 Bruce Van Allen wrote: On 11/10/05 Sherm Pendley wrote: To the future and beyond! Is that from a movie, tv show, book, etc.? It sounds familiar, but I can't quite place it... it's been bugging me for days... ;-) To infinity and beyond! was from Toy Story. And let me add that I

Re: CamelBones on Intel

2005-11-04 Thread Bruce Van Allen
On 11/4/05 Sherm Pendley wrote: Here's some good news. I just heard from someone who's been helping me test CamelBones on Intel, ... And here's what he had to say about it: I spent a few minutes clicking around in this latest version on my Intel box with no apparent failures of any kind. It

Re: ActiveState is announcing support for Mac OS X

2005-06-08 Thread Bruce Van Allen
On 6/8/05 Sherm Pendley wrote: On Jun 8, 2005, at 11:38 AM, John Delacour wrote: To use the Perl that came with the OS, as Sherm recommends, is simply not satisfactory when important developments are happening within Perl. I recommended no such thing. I simply pointed out that a Windows

Re: Tiger version - Please stop

2005-04-11 Thread Bruce Van Allen
On 2005-04-11 various people addressed the question: Does anyone know when Tiger itself will be shipping? Will those suffering from can't-wait-for-the-next thing please not infect this list? Thanks, - Bruce __bruce__van_allen__santa_cruz__ca__

Re: ANN: ShuX 3.0-beta1

2005-03-19 Thread Bruce Van Allen
On 2005-03-18 Sherm Pendley wrote: On Mar 18, 2005, at 5:02 PM, john horner wrote: Downloaded, installed, didn't work, ran the Terminal command, works just fine I'm beginning to wonder if *anyone* is still using the Perl that came with Panther. ;-) Worked out of the box over here -- but I'm

Re: Any GUI tools that can set execute bit?

2005-03-03 Thread Bruce Van Allen
On 2005-03-03 Tommy Nordgren wrote: Are there any Graphical User Interface Tools that can set the executable bits in the file info on disk? Home is not where you are born, but where your heart finds peace - Tommy Nordgren, The dying old crone I suggest SuperGetInfo from Barebones Software

Re: Variables in external file

2005-02-18 Thread Bruce Van Allen
On 2005-02-18 Mark Wheeler wrote: Ok... I made the changes, but still no luck. Here is the script as it is, now. -- test.cgi -- #!/usr/bin/perl -w use strict; our @list; require 'variables.conf'; foreach (@list)

Re: TextWrangler

2005-01-20 Thread Bruce Van Allen
On 2005-01-21 John Horner wrote: 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. Open a Perl script or module in BBE

Re: Options for control of output in Terminal?

2004-11-22 Thread Bruce Van Allen
On 2004-11-22 Dan Buettner wrote: Ideally, I'd like to have the window have a fixed display (no scrolling) and always output the information from a specific thread in a specific position. In other words, Thread 1 gets the first 2 lines, Thread 2 gets lines 3 and 4, etc. Maybe you could

Re: Console.app tool

2004-10-13 Thread Bruce Van Allen
On 2004-10-13 Bill Stephenson wrote: On Sep 9, 2004, at 2:06 PM, Sherm Pendley wrote: I can configure Console.app to automagically pop itself to the front of the window stack whenever anything gets appended to Apache's (or some other) error log. Hey Sherm, I've been thinking about that

Re: CPAN Question

2004-05-29 Thread Bruce Van Allen
On 5/29/04 Timothy Bailey wrote: On Thu, 27 May 2004 20:24:28 -0700, someone going by the name of Bruce Van Allen [EMAIL PROTECTED] spoke: You can also download it from Apple. You have to join as a developer, but that's no big deal. Then just make sure you get the Developer Tools appropriate

Re: CPAN Question

2004-05-27 Thread Bruce Van Allen
On 5/27/04 Timothy Bailey wrote: Hmm, I did buy the computer used, and reinstalled the OS that came with it (10.2, two CDs), and I thought I had installed everything off of them. (Of course, this =is= my first experience with OSX.) Is there a third CD I should have gotten with Jaguar? Yes.

Re: passing a function and then calling the function with parameters

2004-05-19 Thread Bruce Van Allen
Try this (working from your code as much as possible): #!/usr/bin/perl -w use strict; sub solve # solves any given function { my ($funct) = @_; return f(3) = . $funct-(3); } sub foo # a function to solve { my ($x) = @_; return This should print 6: . ($x + 3); } print

Re: Copying files

2004-04-27 Thread Bruce Van Allen
On 4/27/04 Mark Wheeler wrote: Yup. You're right. I missed that one. Here's what I did to simplify the testing of the script. copy(/Users/xx/Documents/db1.txt, /Users/xx/Documents/db1.txt.bak) or warn Can't copy file: $!; - I know the cron

Re: Copying files

2004-04-27 Thread Bruce Van Allen
, at 3:24 PM, Bruce Van Allen wrote: Is that Permission Denied for execution of your script? Perhaps it's for writing the file. Check the write permissions of the /Users/xx/Documents directory. 1; - Bruce __bruce__van_allen__santa_cruz__ca__

Re: Copying files

2004-04-27 Thread Bruce Van Allen
On 4/27/04 Mark Wheeler wrote: OK... I changed the permissions. Still no change. The file is not being backed up. One more permission to check, which is whether the original file may be read 'executed' by your script. Should be: -rwxr-xr-x How do I check to see if the script is even

Re: Copying files

2004-04-27 Thread Bruce Van Allen
On 4/27/04 Ken Williams wrote: On Apr 27, 2004, at 5:46 PM, Bruce Van Allen wrote: Most likely your script is not running as owner, so you probably want drwxrwxrwx for the Documents directory ( chmod 0777, '/Users/xx/Documents' ). That's a bad idea. I wouldn't want *my* Documents

Re: Undefined subroutine main::sendmail

2004-03-04 Thread Bruce Van Allen
On 3/4/04 Baiss Eric Magnusson wrote: I went back and removed files and then tried a clean install of Mail-Sendmail-0.78.tar. [snipped description of errors] The errors most certainly relate to the way Base64 and QuotedPrint were installed, now if I can just find the versions of those modules

Re: Undefined subroutine main::sendmail

2004-03-04 Thread Bruce Van Allen
On 3/4/04 Bruce Van Allen wrote: In your Terminal, type 'cpan' without the quotes. You'll get the CPAN shell, and the first time you'll be taken through its configuration. On Sorry, less grief if you type 'sudo cpan' at your Terminal/command line prompt. Use your administrative password

Re: error catching and hashes

2004-01-10 Thread Bruce Van Allen
On 1/10/04 wren argetlahm wrote: --- Piers Cawley [EMAIL PROTECTED] wrote: This is because 'return undef;' is good, but 'return;' is better. It returns the correct, context dependent representation of false. That seems to have fixed my problem, but I'm not sure why it works. My error($error) is

Re: File Writing and CGI

2003-11-21 Thread Bruce Van Allen
OK, one more thing to add to the tutorial the OP just got on CGI scripting: In the CGI execution context (webserver), it's best to put your output last. As soon as you do this: print Content-type: text/html\n\n; print ... ; don't rely on the webserver to do much more for you

Re: File Writing and CGI

2003-11-21 Thread Bruce Van Allen
On 11/21/03 Chris Devers wrote: On Fri, 21 Nov 2003, Bruce Van Allen wrote: My experience across about many different commercial and institutional web servers leads me to at minimum wrap up all system-related actions like file ops -- before printing output. And the best approach is: output

Re: A Wheeler by anyother name...

2003-03-15 Thread Bruce Van Allen
On Saturday, March 15, 2003, at 12:25 PM, Chris Nandor wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Randal L. Schwartz) wrote: You don't make fun of a man's name. Period. That is your opinion, it is not a rule, and stating it as a rule doesn't make it one. Your Jedi mind tricks

Re: Form feed

2003-02-19 Thread Bruce Van Allen
Thanks Matt and drieux for the background and leads for exploring this further, especially along the lines of translating to Postscript, an area I was already wanting to learn more about. On Wednesday, February 19, 2003, at 10:06 AM, Matthew Langford wrote: The problem may not be with Perl's

Re: Form feed

2003-02-17 Thread Bruce Van Allen
I was hoping someone could offer some useful advice here. I've just begun fiddling with lpr recently, and am still very ignorant, so after the OP's first query, I immediately tried to print something with a form feed on my laser printer Speedy (OS X 10.2.4, Perl 5.6.1): #!/usr/bin/perl -w open

Problems installing Event.pm

2003-02-17 Thread Bruce Van Allen
Has anyone successfully installed Event.pm on darwin's Perl? I have OS X 10.2.4, with Perl 5.6.1 replacing Apple's install of 5.6.0. I need Event for Net::Z3950. Poking around, I've found that Event.pm has problems installing on Windows. The installation (via CPAN; also tried via CPANPLUS)

Re: dmg of perl 5.8.0 on Mac OS X

2003-02-06 Thread Bruce Van Allen
Hey Nat -- Thanks. Downloaded and installed just fine on my t?rusty G4-350, OS X 10.2.3. I've been under a major deadline until last week, so I've just been watching everyone's travails with upgrading their OS X Perl installation. I took the risk of upgrading to Jaguar when it came out, but

Re: OT praise for the cookbook

2002-11-27 Thread Bruce Van Allen
At 1:31 PM -0500 11/27/02, Dan Sugalski wrote: At 12:59 PM -0500 11/27/02, Chris Devers wrote: On Wed, 27 Nov 2002, Nathan Torkington wrote: \ I've been working with other editors at O'Reilly to free up my time so that I can work on the second edition. Tom's been doing a lot of the Cool.

Console problem

2002-11-26 Thread Bruce Van Allen
At 10:02 PM -0400 10/23/02, Sherm Pendley wrote: Here's a tip: If you're doing web development, Console.app is insanely great. Start it up, open the /var/log/httpd/error_log file, and then hide the app. Whenever an error is logged, Console.app automatically unhides itself to show you the

Re: dos2unix... and other

2002-10-07 Thread Bruce Van Allen
At 1:01 PM -0500 2002-10-07, Puneet Kishor wrote: s/ +/ /g; seems to work just as well. Which begs the question... why even have \s? maybe because tmtowtdi?! \s stands for white space: [ \t\n\r\f]. HTH 1; -- - Bruce __bruce_van_allen__santa_cruz_ca__

Re: dos2unix... and other

2002-10-07 Thread Bruce Van Allen
At 1:23 PM -0500 2002-10-07, Puneet Kishor wrote: Bruce Van Allen wrote: At 1:01 PM -0500 2002-10-07, Puneet Kishor wrote: s/ +/ /g; seems to work just as well. Which begs the question... why even have \s? maybe because tmtowtdi?! \s stands for white space: [ \t\n\r\f]. yes, I know

Re: question on ssh and peeve on editors

2002-10-04 Thread Bruce Van Allen
At 9:01 PM -0500 2002-10-03, Puneet Kishor wrote: I have Golive 5, but didn't invest in 6 because I discovered it didn't do anything for Perl. Is the SDK GL6 specific? I have no idea what knowledge it On Thursday, October 3, 2002, at 01:18 PM, Troy Davis wrote: I use GoLive to create

Re: [OT] how to use a constant in regex?

2002-08-30 Thread Bruce Van Allen
At 1:20 PM -0400 2002-08-30, Warren Pollans wrote: Hi Folks, This is not OSX-related, but I'm hoping that some OSXer could point me in the right direction. This has to have a RTFM answer but I haven't been able to find the FM to R. With Perl, there is always its own internal documentation,

Re: Dumb Bunny Future Time Problem

2002-06-26 Thread Bruce Van Allen
on 2002-06-26, drieux wrote: Well here is the problem in more unpleasantry. I do the make dist load the *.gz it up to the server then download it - and let the StuffIt unwrap it - and i have a folder on my desktop - I use a terminal to go in and check the date stamps - they are -

Re: Time::HiRes

2002-04-24 Thread Bruce Van Allen
At 11:43 AM -0700 2002-04-24, drieux wrote: volks, I am just starting on with the process of use Benchmark; and have stumbled myself into the problem that I need to run 'Time::HiRes' like resolutions to get a better sub-second resolution to resolve the delta's - does anyone know of any

good practice in list civility

2002-04-16 Thread Bruce Van Allen
At 1:01 AM -0400 4/16/02, Chris Devers wrote: On Mon, 15 Apr 2002, Puneet Kishor wrote: sorry guys, maybe I'll lurk, maybe I'll leave, maybe I'll go back to my No no no, please don't leave. Please accept my deep sincere apologies for what I wrote. Chris Devers May I say that: 1. Chris'

Re: DropScript

2001-12-01 Thread Bruce Van Allen
At 4:25 PM -0600 12/1/01, Joshua Kaufman wrote: Thanks for the help. Now I can see the errors that the script is generating, but I'm still not sure how to access argv from my perl script. For example, if I want to assign the contents of argv to @some_array how do I do that? Tantalizingly, if

Re: IP Address with DHCP

2001-08-23 Thread Bruce Van Allen
At 10:00 PM -0400 8/23/01, Sean P. Scanlon wrote: en1 or en0 is the name of the interface. if you have only one ethernet card, you will get an error trying to get the ip address of the second (non-existent) interface. Thanks for the info. So I can explore this further, I assume since it's