At 3:42 AM +0900 7/25/01, [EMAIL PROTECTED] wrote:
>At the moment I'm switching between OS 9 and OSX via 'STARTUP
>DISK'->'RESTART' due to the fact none of the drivers for 3rd party
>USB periphs (like my ISDN TA modem, the hell I'm going back to 56k)
>have been updated yet, which in turn means I'
The 'D' in DHCP is for 'Dynamic'.
So let's go back to the OP's question: does anyone know a way to
extract one's *current* dynamic IP address from OS X via Perl?
Pre- OS X, I found this once:
IP Poster Script version 1.1
--
Since there is no Mac IP Poster appli
At 8:46 PM -0400 8/23/01, Bohdan Peter Rekshynskyj wrote:
>At 19:37 -0500 8/23/2001, Timothy A. Canon wrote:
>>Thanks for the tip. From the command line this works for me:
>>
>>/usr/sbin/ipconfig getifaddr en1
>
>
>I don't agree here - this showed me an old ip address.
>
>I used en0 instead to sh
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
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
At 10:00 AM -0600 1/7/02, James Edward Gray II wrote:
>My memory must be failing because I'm pretty sure I've read the
>answer to this in my Programming Perl book, but I can't for the life
>of me find it now. Why do so many modules end with the line "1;"?
To ensure that a true value is returne
At 7:51 AM -0500 3/11/02, Chris Nandor wrote:
>It's been over four years since a new MacPerl has been released, and it
>has been at least five years since MacPerl has been updated to the
>latest perl source (at the time, perl 5.004).
[snip]
>MacPerl 5.6.1r1 is the result of well over a year of d
At 10:35 AM -0700 4/12/02, drieux wrote:
>volks,
>
>when I run
>
> perl Skank.pl
>
>on the command line on my solaris and/or unix boxes it takes
>the default path through the code and dumps out what the html
>would be - but when I run the same code on my OSX box it dumps
>out a weird case:
>
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'
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 kno
At 2:55 PM -0700 2002-05-24, Chris Angelli wrote:
>difficulty doing something very simple. For some
>reason I can't get file uploads to work. I am doing
>nothing fancy, but my uploads just don't work.
I moved the rest of Chris's post to the end, in case someone wants to
look at it.
I've had s
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
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 documentatio
At 4:55 PM +1000 2002-08-31, Ken Williams wrote:
>On Saturday, August 31, 2002, at 04:31 AM, Bruce Van Allen wrote:
>
>> At 1:20 PM -0400 2002-08-30, Warren Pollans wrote:
>>> Hi Folks,
>>>
>>> This is not OSX-related, but I'm hoping that some OSXe
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 we
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__
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 be
At 8:28 PM -0400 10/26/02, Mark Knipfer wrote:
On 10/26/02 1:25 PM, Trey Harris wrote:
Did you test this code snippet it? It won't work. You can't use
a numeric comparison to test for stringwise equality. (Sorry to be
nitpicky, but it matters here.)
No problem. After I pasted the Perl cod
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 erro
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.
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 de
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
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) fai
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 \f
Cool.
On Wednesday, February 26, 2003, at 08:46 AM, Ken Williams wrote:
Awesome - I'm now adding a little perl script around it to get the
absolute path and to activate the Finder:
Thanks Ken (and Ted Brown)!
I save it as ~/bin/select, and now I can just do 'select Perl.tar' and
I see the icon
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 wo
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
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.
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(
On 3/4/04 Baiss Eric Magnusson wrote:
>I went back and removed files and then tried a clean install of
>.
[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 to go
>with my cur
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
promp
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
cripts directory is correct.
>On Apr 27, 2004, 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__
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 ex
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&
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
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
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
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 ab
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 extrap
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
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';
>
>fo
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 Sof
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
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__
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 Wi
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 ki
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_
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... ;-)
>>
>
>
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
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 p
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
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 se
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 autoviv
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
On 3/22/07 John Delacour wrote:
>If all that's needed is to copy the whole text of a pdf window and
>put it in a text file, then GUI scripting can be used.
Just make sure Preview has Text Tool chosen, or add that to the script,
keystroke "2" using command down
Also, with larger documents,
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
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.
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
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. C
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
On 10/4/07 Michael Barto wrote:
>I am working with an old Perl Library (program module) written in
>Perl4 and Perl 5 depending who was "hacking the code". My program
>that calls it, uses -w and strict and has identified many syntax
>errors and so forth in the old library which I fixed. My problem
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
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.
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 ho
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
_bruce__van_allen__s
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 thi
67 matches
Mail list logo