[OT?] Dynamically loading Perl into C programs

2005-06-28 Thread wren argetlahm
There's a project I'm working on (Paperboy RSS) that's written in C, the simplest part of which is basically applying XSLT to files with libxml2/libxslt. There's a separate but related project written in Perl that's going to use paperboy to do the heavy lifting but needs to be able to let users

Re: CamelBones on Intel? Maybe not.

2005-06-09 Thread wren argetlahm
--- Edward Moy [EMAIL PROTECTED] wrote: So what is really needed at this point is for the CamelBones community to get together and innovate. Create some killer apps with CamelBones. Get developer excited about this technology. I'll bite. Dunno if it'd count as killer or not but I

Taint mode (was Re: Variables in external file)

2005-02-18 Thread wren argetlahm
--- Bruce Van Allen [EMAIL PROTECTED] wrote: And you will avoid the stress of combing back through a program you need to make secure, trying to find the elusive points where the -T switch tenaciously challenges you, an enterprise in which you may risk losing your appreciation of logically

Re: Options for control of output in Terminal?

2004-11-22 Thread wren argetlahm
--- Bruce Van Allen [EMAIL PROTECTED] wrote: For your use, what you especially want to get from this example is the use of the Perl character \b, which outside of regular expressions means backspace. The point is to print \b the same number of times as the number of characters you want to

Re: [OT] Text Editor for OSX

2004-10-04 Thread wren argetlahm
(Replying to all the messages in one) I guess right now I'm mainly looking for a good (to a certain extent, read: dedicated) XML editor and haven't yet encountered one for OSX. Aside form the standard text editor features, the two biggest things I'm looking for are automatic (via keystroke)

Re: [OT] Text Editor for OSX

2004-10-04 Thread wren argetlahm
--- John Delacour [EMAIL PROTECTED] wrote: At 7:46 am -0700 3/10/04, wren argetlahm wrote: So, in my infinite (lack of) wisdom I've decided that it might be good to write my own. Have you considered Alpha? http://alphatcl.sourceforge.net/ I have not, this is the first I've heard

[OT] Text Editor for OSX

2004-10-03 Thread wren argetlahm
I apologize in advance for the off-topic nature of this posting. I've recently been lamenting the shortcomings of my current text editor for my purposes (SubEthaEdit since my copy of BBEdit is Classic and a new one costs way to much for my budget). I did a quick google search to try and find out

Re: Thunderbird

2004-09-23 Thread wren argetlahm
--- Chris Devers wrote: --- Joel Rees wrote: I don't know about .vcf, but .csv is fairly easy to just look at with a text editor (formatting off, of course). Yeah, they're both just text and (pretty) easily readable. The problem comes in that I don't want to stop using AddressBook and so

Re: Thunderbird

2004-09-22 Thread wren argetlahm
--- Ken Williams [EMAIL PROTECTED] wrote: You might be interested in this page, entitled Import Address Book records into to Thunderbird : http://www.macosxhints.com/article.php?story=20040905025741769 When I googled for thunderbird and address, trying to learn what thunderbird was,

Thunderbird

2004-09-21 Thread wren argetlahm
I've recently started messing around with Thunderbird. I like it a bunch but I'm wondering if there's any good way to port over my Address Book, with perl or otherwise. I've tried exporting from AB (as .vcf, the only option) then importing in Thunderbird (.vcf isn't one of the formats listed that

Re: [OT] Brand New Empty Mac

2004-08-25 Thread wren argetlahm
--- John Horner [EMAIL PROTECTED] wrote: But I just thought I'd get the opinions of the list on the best way to set up such a brand-new machine -- do you partition your hard-drives? Do you have the system on one partition and documents on another and so on? Any issues around the

Forking Signals

2004-08-19 Thread wren argetlahm
I have a perl script (modified from one of Chris Nandor's) that I run as a background-process/daemon via fork(). Now I know I can use kill to end it, but I was wondering if there was a way that I can catch the SIGTERM to do one last thing before quitting? It looks like it should already do this,

Re: Mac::Glue::VERSION

2004-07-21 Thread wren argetlahm
--- Chris Nandor [EMAIL PROTECTED] wrote: At 19:15 +0100 2004.07.21, John Delacour wrote: I presumed that by running cpan install Mac::Glue all prerequisites would be installed by cpan in order to enable me to install and use it. Yes, unless you specifically tell the CPAN shell to not do

[OT?] Shebang question

2004-07-21 Thread wren argetlahm
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 post in the archives. Does any one remember

CPAN troubles

2004-06-16 Thread wren argetlahm
It seems to be working fine eventually but I'v noticed that I've started getting this error when I run CPAN: LWP failed with code[500] message[LWP::Protocol::MyFTP: connect: Invalid argument] I was wondering what might be causing that? ~wren __

Re: Basic question

2004-05-22 Thread wren argetlahm
--- Rich Morin [EMAIL PROTECTED] wrote: Given that the Perl executable may be located in any of several places, hard-coding a path into the shebang line isn't all that great an idea. The following will always give you the version of perl that comes first on your search path:

Re: [OT] Localization

2004-05-06 Thread wren argetlahm
--- Thane Norton [EMAIL PROTECTED] wrote: The complete official answer can be found here: Wow that's a long URL. Thanks a bundle* for it though, it has what I was looking for (which was localizing some of my folder names rather than localizing apps). ~wren * pardoning the pun ;)

[OT] Localization

2004-05-04 Thread wren argetlahm
I have an account on my box that has Japanese set as the default language and I noticed that certain files get automagically renamed into Japanese (e.g. various Apple programs in /Applications). I also noticed that this is blocked if I change the name of the app (e.g. from iTunes to iTunes 4.5).

Re: Icon in Address Bar

2004-04-26 Thread wren argetlahm
--- Charles Albrecht [EMAIL PROTECTED] wrote: You can also indicate this file using a header along the lines of: link rel=icon href=/favicon.png type=image/png While on that thought and keeping it perl related, how would one make that sort of a tag from CGI.pm under the $CGI-start_html()

Re: Getting info from iTunes

2004-03-02 Thread wren argetlahm
--- Chris Nandor [EMAIL PROTECTED] wrote: I've got two scripts that do it. happening is a script that updates your iChat status, and np.pl is an X-Chat Aqua script Thanks a bundle. I've figured out generally what `happening` is doing, though the details of the Mac::Glue stuff'll take a bit

Getting info from iTunes

2004-02-29 Thread wren argetlahm
I was wondering if there was a good way to get information about the currently playing song in iTunes? Browsing through CPAN all I could find were modules for controlling iTunes (play, pause, etc) with a few assorted other commands (make new playlist, etc ~wren __

Installing 5.8.3

2004-02-15 Thread wren argetlahm
I just installed Perl 5.8.3 per the instructions on http://developer.apple.com/internet/opensource/perl.html. They worked as advertised up until the end when I type: % perl -v and it comes up with the default v5.6.0 built for Darwin. Where did I go wrong? ~wren

Re: Installing 5.8.3

2004-02-15 Thread wren argetlahm
--- Adrian Howard [EMAIL PROTECTED] wrote: Try /usr/local/bin/perl -v to check that it installed okay. Yeah, I was hoping to keep the system's perl untouched (having heard horror stories). That did it, thanks :) ~wren __ Do you Yahoo!? Yahoo! Finance: Get

*nix Perl newbie Question

2004-02-15 Thread wren argetlahm
So I finally made the switch from MacPerl to Perl 5.8.3 on OSX (10.2.8) and I can't seem to get things working quite right. I'm having problems using modules. % perl -I ~/lib script.pl #!perl use module; ...(or moral equivalent) works fine but: % ./script.pl #!perl -I ~/lib use module; ...and:

Re: *nix Perl newbie Question

2004-02-15 Thread wren argetlahm
--- Sherm Pendley [EMAIL PROTECTED] wrote: Are you *sure* that's the error you're getting? the actual shebang line is: #! /usr/local/bin/perl -I ~/Library/Perl The error is: Can't locate WREN/Numbers.pm in @INC (@INC contains: ~/Library/Perl [...snip...]) at ./t.plx line 3. BEGIN

Re: *nix Perl newbie Question

2004-02-15 Thread wren argetlahm
--- Doug McNutt [EMAIL PROTECTED] wrote: I worry that the ~/ convention for the home directory is a shell convention. In the first case it is expanded by the shell while in the other cases it's expanded by perl. Does perl honor the option? When you say @INC is properly modified is the

using CPAN to install Mac::Carbon

2004-02-15 Thread wren argetlahm
In my efforts to get Perl5.8.3 all set up I tried installing Mac::Carbon via the CPAN shell. But it just enters a loop of running the test files (unless I don't do what the dialog boxes say, in which case the make fails). What am I doing wrong? ~wren __ Do you

Re: can anyone help me with this install for OS X Server?

2004-02-12 Thread wren argetlahm
--- Jason F.B. [EMAIL PROTECTED] wrote: Using OS X Server 10.2.8, Upgraded to 10.3 Server Since I upgraded to 10.3 I have not been able to get Perl to work. Others on the list will be able to give you a much better answer than I but, I believe the problem is that you need to install the

Developer Tools iTunes

2004-02-10 Thread wren argetlahm
I'm a newbie to Perl on *nix and am in the process of converting from MacPerl to OSX and I've just recently downloaded the developer tools for OSX10.2 because I was under the impression that they're necessary to really use Perl on OSX (i.e. to use CPAN, Camel Bones, etc). But installing the

Re: Developer Tools iTunes

2004-02-10 Thread wren argetlahm
Thanks everyone for the information, especially Chris Devers for the suggestions on how to crop things out. I just realized that the *.dmg file for the dev tools is on my startup drive, so if I move that to another drive it should free up enough space if I don't install the documentation. ~wren

Developer Tools Hijinks

2004-02-10 Thread wren argetlahm
Installing the dev tools has done horrible things to my computer. The drive says it has 80MB or so left, but most every program I run complains about the disk being full and won't run; including trying to burn CDs to back things up before repartitioning it all. Is there any way to uninstall the

Problem with objects

2004-01-23 Thread wren argetlahm
I've come up with an idea for an object oriented module and am making it in order to learn a bit more about objects and OOP. I've run into a strange problem that I can't figure out why what's happening is happening. I'm trying to copy part of a data structure from one position in the object to

Re: Problem with objects

2004-01-23 Thread wren argetlahm
--- Thilo Planz [EMAIL PROTECTED] wrote: It is a problem of context. That's what I figured, but I wasn't sure off-hand how. Thanks for the insight (you too Charlie). I had it set up as $scalar=$ref initially but that introduced some major problems that took a while to hunt down-- namely that it

Re: tricky parsing question

2004-01-23 Thread wren argetlahm
--- Chris Devers [EMAIL PROTECTED] wrote: Do you need to handle ambiguities? For example, -ough can famously be pronounced several ways: The way it's set up now can't deal with them, but I'm about to rewrite the thing to handle more than one segment having the same orthographic representation.

tricky parsing question

2004-01-22 Thread wren argetlahm
I'm working on a linguistic module and I'm trying to find a good way to split a string up into segments. I can't assume single charecter strings and want to assume maximal segments. As an example, the word church would be rendered as the list ('ch', 'u', 'r', 'ch') and wouldn't break the ch up

Re: tricky parsing question

2004-01-22 Thread wren argetlahm
--- Bill Stephenson [EMAIL PROTECTED] wrote: You need to get a book on regex's. I know the solution lies in regex's, the problem is that I can't quite figure out a generic enough way of doing it. The problem is for a module and so the list of valid segments is user defined. I guess I could do

Re: error catching and hashes

2004-01-10 Thread wren argetlahm
--- 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 now something to the effect

error catching and hashes

2004-01-09 Thread wren argetlahm
I've recently discovered the joys of return undef; for error catching, but I'm having problems when the subroutine returns a hash (unless there's an error). Something like the following: %hash = subroutine($input) or error($error); returns the expected odd number of elements in hash assignment

Re: searching complex datastructures

2003-12-11 Thread wren argetlahm
--- Charlie Garrison [EMAIL PROTECTED] wrote: I'm no expert ( I'd love to hear from one). But when I need to do something similar I use a second data structure for doing the 'reverse lookup'. I thought about that, but was put off by the fact that it's a complex structure-- of course I'm only