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

2011-09-29 Thread Adrian Hosey
On Sep 28, 2011, at 1:41 PM, Lola Lee Beno wrote:
> 
> Looks like I need to install make.  This means, I need to get XCode so I can 
> install make, right?

Yes, but - you should also read this 
http://deflatermouse.livejournal.com/149721.html

 - alh



Re: hex editor

2006-05-20 Thread Adrian Hosey
On Sat, 20 May 2006, Joseph Alotta wrote:
: 
: I have this text file I want to read that has ^M as the record separator (in
: emacs).  Is there a utility on the Mac that i can use to view this file in
: hex.   I thought i remember something like "hex filename", but it is not
: there.


hexdump. Check the man page, it has several useful flags. I like -C:

piltdown:~ alh$ hexdump -C testasm.s
  2e 74 65 78 74 0a 2e 67  6c 6f 62 6c 20 5f 6d 61  |.text..globl _ma|
0010  69 6e 0a 5f 6d 61 69 6e  3a 09 0a 09 70 75 73 68  |in._main:...push|
0020  6c 09 24 30 78 30 30 0a  09 6d 6f 76 6c 09 25 65  |l.$0x00..movl.%e|
etc...

--
Make sure your code "does nothing" gracefully.



Re: Faxing

2006-01-18 Thread Adrian Hosey
On Wed, 18 Jan 2006, Robert Whittle wrote:

: I managed to get perl to send faxes using the 'fax' front-end program, but
: never satisfactorily. I had to use root user to send faxes and I never managed
: to send any faxes that has graphics in the. In the end I installed PageSender,
: which has examples of sending faxes via AppleScript, and I called the
: AppleScript from perl. I know that sounds a  lot more round-about but it had a
: lot of advantages for me.


Also, anything that supports AppleScript can be driven directly from Perl
using Mac::Glue.

-- 
"...while the Japanese are unable to duplicate the American film [market] they
 can destroy it by this video cassette recorder." - Jack Valenti, 1982


Re: CPAN modules not included with OS X

2005-12-29 Thread Adrian Hosey
On Thu, 29 Dec 2005, James Reynolds wrote:
: 
: Hm.  I really do not want to install the Dev Tools on my Mac OS X Server
: boxes.  I have been getting around this by installing the files on a client
: machine and coping them to the servers, but I don't believe this is ideal.
: Does anyone know what problems I could be causing?

How about running CPAN on a sandbox machine and rsync'ing /Library/Perl
with the servers?

-- 
Please Do Not Throw Sausage Pizza Away


Re: question on Perl's ssh

2005-06-24 Thread Adrian Hosey
On Fri, 24 Jun 2005, Ted Zeng wrote:
: 
: I know how to circumvent this. But I would like to know why they behave 
: differently.
: I have assumed they should be the same.

If you want to know the gory details of .login, .bash_login, .profile, and
.bash_profile, and which ones get invoked when and in what order, do "man
bash", read the man page, and be prepared for a good cry. I don't think
anyone is dismissing your intellectual curiosity, but it's a real mess and
anyone writing an explanation would just be recopying the stuff in the man
page. You're picking at a really bad wart of Unix history.

In the end, you need to set $ENV{PATH} explicitly before you spawn any
subprograms. It's the only way to be sure.

-- 
It wasn't me it was the one-armed man!



Re: Safari Bookmarks comparison

2004-10-09 Thread Adrian Hosey
On Fri, 8 Oct 2004, Mark Wheeler wrote:

: I just found this site - 
: http://developer.apple.com/internet/opensource/cvsoverview.html - why 
: didn't I look there first. That may be helpful, too.

Or rsync.

http://rsync.samba.org/

-- 
"Applying discrete math to social relationships is kind of creepy."



Re: ical glue

2004-05-30 Thread Adrian Hosey
On Sat, 29 May 2004 [EMAIL PROTECTED] wrote:
: 
: But not this:
: 
:  use Mac::Glue qw(:glue);
:  
:  my $ical = new Mac::Glue "iCal";
:  
:  my $calendar = $ical->obj(calendar => gLast);
:  print $calendar->prop("title")->get, "\n\n";
:  
:  $calendar->make(
:new => 'event',
:at  => location('end'),
:with_properties => { summary => "foo" }
:  ); 

Normally when you post up something like this you should also include a
description of _how_ it fails.

On my machine Mac::Glue did not build a glue for iCal during installation,
for whatever reason. After I did a "gluemac /Applications/iCal.app" the
sample script ran okay for me.

-- 
Buddha's Koan Stew: Only the enlightened know what's in it.