[29567] in Perl-Users-Digest
Perl-Users Digest, Issue: 811 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Aug 31 11:02:04 2007
Date: Fri, 31 Aug 2007 08:01:25 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Fri, 31 Aug 2007 Volume: 11 Number: 811
Today's topics:
Announcing VCI: The Version Control Interface for Perl mkanat@cpan.org
DBD::SQLite FreeBSD install brian.darkblueb@gmail.com
Head of tech <sawveq@gmail.com>
HEAD OF TECHNOLOGY <sawveq@gmail.com>
Re: How to continue process without waiting for the out <zencod@gmail.com>
how to write a "od -bc" like function? <jck11@msr.pchome.com.tw>
Re: how to write a "od -bc" like function? <dummy@example.com>
Re: how to write a "od -bc" like function? <1usa@llenroc.ude.invalid>
Re: how to write a "od -bc" like function? <josef.moellers@fujitsu-siemens.com>
Re: how to write a "od -bc" like function? <dummy@example.com>
Re: Important Research Project <kst-u@mib.org>
Re: Important Research Project <mecej4@operamail.com>
Re: Important Research Project <bugbear@trim_papermule.co.uk_trim>
new CPAN modules on Fri Aug 31 2007 (Randal Schwartz)
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 31 Aug 2007 13:37:08 GMT
From: mkanat@cpan.org
Subject: Announcing VCI: The Version Control Interface for Perl
Message-Id: <Jnn4Hw.1Hzx@zorch.sf-bay.org>
"Long have we toiled on our tools that interact with CVS. Oh, wait,
you mean we're switching to Subversion? Oh...long have we toiled
on...what,
we're switching to Git?" -The Oppressed Development Tools Maintainer
So, I wanted to write a simple tool that displayed some information
about version-control systems (or "software change management"
systems,
as some are called). I went looking through CPAN, thinking, "Surely,
there must be a single module that can interact with many different
VCSes, right?"
But surprisingly, there wasn't. There was the VCS module, and I
spoke with its maintainer and he said that he'd always wanted to re-
write
it in an object-oriented fashion, but had never found the time to do
so.
So, I wrote VCI, the generic Version Control Interface. Currently
it can display the history and contents of CVS, Subversion, Bazaar,
Mercurial, and Git. It's easy to write new drivers for other VCSes,
you just make a new package in the VCI::VCS namespace. (And if you
read
the VCI code and documentation, you'll see it's easy to write a
driver.)
VCI is object-oriented. It uses Moose.
VCI aims to provide a broad set of features while still working
well with all the different VCSes commonly in use. The rationale,
structure, and functionality of VCI is described in the documentation
of the VCI module.
You can find VCI on the CPAN at:
http://search.cpan.org/dist/VCI/
VCI also has a (currently minimal) homepage at:
http://vci.everythingsolved.com/
VCI is currently alpha-quality. Stability and performance
improvements are coming in the future.
I'm very interested in knowing who's using VCI, and am very
willing to have contributions and new drivers from any programmer who
feels competent enough to design quality code.
You can direct any questions, comments, or patches to me at this
email address.
I hope that you find VCI useful!
-Max
------------------------------
Date: Thu, 30 Aug 2007 19:51:35 -0700
From: brian.darkblueb@gmail.com
Subject: DBD::SQLite FreeBSD install
Message-Id: <1188528695.198328.216610@l22g2000prc.googlegroups.com>
I wanted to do a quick install of DBI and DBD::SQLite on a pretty new
FreeBSD machine. DBI went fine. But when I got DBD::SQLite, the link
fails with a reference to pthread_create. Looking on the web, I found -
pthread, CFLAGS=-pthread and link with -lpthread. I set an env var,
failure, I then edited the Makefile by hand, but still, the make
works, but the tests fail because "Cant load xxx/SQLite.so - Undefined
symbol pthread_create".
I do not want to install ports.. This is not my machine, and I am not
an admin. I just want a Lite DBI module to do some testing with ...
Please advise, thanks
------------------------------
Date: Fri, 31 Aug 2007 07:56:11 -0000
From: SAWVEQ <sawveq@gmail.com>
Subject: Head of tech
Message-Id: <1188546971.917550.250210@i38g2000prf.googlegroups.com>
Senior Position Vacant for www.123greetings.com
Head of Technology
(Kolkata, India)
Responsibilities:
To Scale the website to handle large volumes of user traffic.
To lead the development team for Alexa Top 100 Web Property.
To Manage Relationships with DataCenters, CDN/Bandwidth providers,
ESP's etc.
To Implement next generation of web technologies.
Deliverables
Increase User Access Speed of the Website
* Implement Distributed DNS
* Implement Web Catching/Acceleration
Increase Website Uptime
* Implement Load Balancing to handle 600 web servers
* Manage servers spread across 5 Datacenters in 3 geographies
* Implement Blade Servers/Web Farm
Website Management
* Improve Content Management System to update 50,000 WebPages
daily.
Website Features
* Implement Web 2.0 Features to increase stickiness of the
website.
* Implement latest flash & streaming technologies for content
delivery.
Data Mining & Warehousing
* To Collect & Store huge volumes of user data.
* To Structure & Mine user data for trend, data analysis.
Requirements:
Profile
Exp:-10Years In related field
Required to manage & lead the development team consist of PHP & Perl
Programmers, Project Managers, Action Script Developers, JavaScript
Developers, Server Administrators.
Website Technologies
Operating Systems: Linux /Apache/FreeBSD; No Microsoft Technologies
Development Languages: Open Source Technologies (Perl/PHP/MySQL) Front
End languages: JavaScript, AJAX, HTML, CSS, Flash ActionScript
Developers.
Interested Candidate plz contact - souvik.mukherjee@itlindia.com
or visit http://www.123greetings.com/careers/form.html for more
details
------------------------------
Date: Fri, 31 Aug 2007 07:55:45 -0000
From: SAWVEQ <sawveq@gmail.com>
Subject: HEAD OF TECHNOLOGY
Message-Id: <1188546945.028968.168030@x35g2000prf.googlegroups.com>
Senior Position Vacant for www.123greetings.com
Head of Technology
(Kolkata, India)
Responsibilities:
To Scale the website to handle large volumes of user traffic.
To lead the development team for Alexa Top 100 Web Property.
To Manage Relationships with DataCenters, CDN/Bandwidth providers,
ESP's etc.
To Implement next generation of web technologies.
Deliverables
Increase User Access Speed of the Website
* Implement Distributed DNS
* Implement Web Catching/Acceleration
Increase Website Uptime
* Implement Load Balancing to handle 600 web servers
* Manage servers spread across 5 Datacenters in 3 geographies
* Implement Blade Servers/Web Farm
Website Management
* Improve Content Management System to update 50,000 WebPages
daily.
Website Features
* Implement Web 2.0 Features to increase stickiness of the
website.
* Implement latest flash & streaming technologies for content
delivery.
Data Mining & Warehousing
* To Collect & Store huge volumes of user data.
* To Structure & Mine user data for trend, data analysis.
Requirements:
Profile
Exp:-10Years In related field
Required to manage & lead the development team consist of PHP & Perl
Programmers, Project Managers, Action Script Developers, JavaScript
Developers, Server Administrators.
Website Technologies
Operating Systems: Linux /Apache/FreeBSD; No Microsoft Technologies
Development Languages: Open Source Technologies (Perl/PHP/MySQL) Front
End languages: JavaScript, AJAX, HTML, CSS, Flash ActionScript
Developers.
Interested Candidate plz contact - souvik.mukherjee@itlindia.com
or visit http://www.123greetings.com/careers/form.html for more
details
------------------------------
Date: Fri, 31 Aug 2007 07:30:33 -0700
From: Cod <zencod@gmail.com>
Subject: Re: How to continue process without waiting for the output of system()?
Message-Id: <1188570633.227615.319150@l22g2000prc.googlegroups.com>
Thank you all.
Use Narthring's method or xhos's method, there is one problem: BEFORE
the calc closed, the programe won't exit. Just like this:
d:\>perl -e "fork or do {system('calc'); exi
t}; $|=1; print 'hello' "
hello
AFTER calc closed, below appears:
d:\>
By Follow Ben Morrow say, I tried:
d:\>perl -e "fork or do {system('calc'); exi
t}; $|=1; print 'hello' "
hello
d:\>
This time it works just what I wanted.
Thank you all again, and sorry for my poor English:)
------------------------------
Date: Fri, 31 Aug 2007 10:52:01 +0800
From: "jck11" <jck11@msr.pchome.com.tw>
Subject: how to write a "od -bc" like function?
Message-Id: <fb7vth$fq5$1@netnews.hinet.net>
hi all
Could any one give me a direction to write a function to match the unix-like
function "od -bc" do.
Now I only get the idea of opening the file.
open(IN, "filename")or die;
my $str=<IN>;
.............
close(IN);
By the way, if the file is a exe or image type, the $str seems don't work
correctly.
------------------------------
Date: Fri, 31 Aug 2007 04:00:13 GMT
From: "John W. Krahn" <dummy@example.com>
Subject: Re: how to write a "od -bc" like function?
Message-Id: <hnMBi.17016$vP5.796@edtnps90>
jck11 wrote:
> hi all
> Could any one give me a direction to write a function to match the unix-like
> function "od -bc" do.
http://search.cpan.org/src/CWEST/ppt-0.14/bin/od
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
------------------------------
Date: Fri, 31 Aug 2007 04:21:05 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: how to write a "od -bc" like function?
Message-Id: <Xns999D3894CC7Basu1cornelledu@127.0.0.1>
"jck11" <jck11@msr.pchome.com.tw> wrote in
news:fb7vth$fq5$1@netnews.hinet.net:
> hi all
> Could any one give me a direction to write a function to match the
> unix-like function "od -bc" do.
> Now I only get the idea of opening the file.
>
> open(IN, "filename")or die;
Prefer the three-argument form of open.
At least give an indication why the call failed.
open my $in, '<', 'filename'
or die $!;
> my $str=<IN>;
Here, you read only one line from the file.
> .............
> close(IN);
>
> By the way, if the file is a exe or image type, the $str seems don't
> work correctly.
Study my hexdump example at:
http://www.unur.com/comp/ppp/hexdump.html
You should be able to adapt that to produce the same output od -bc
produces by changing only the hexdump_line subroutine.
Keep in mind:
You must read the input file in binary mode.
Line-by-line processing does not mean much here as you are trying to
display fixed sized blocks of bytes.
Sinan
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(remove .invalid and reverse each component for email address)
clpmisc guidelines: <URL:http://www.augustmail.com/~tadmc/clpmisc.shtml>
------------------------------
Date: Fri, 31 Aug 2007 08:56:52 +0200
From: Josef Moellers <josef.moellers@fujitsu-siemens.com>
Subject: Re: how to write a "od -bc" like function?
Message-Id: <fb8e3r$r45$1@nntp.fujitsu-siemens.com>
jck11 wrote:
> hi all
> Could any one give me a direction to write a function to match the unix=
-like
> function "od -bc" do.
> Now I only get the idea of opening the file.
>=20
> open(IN, "filename")or die;
> my $str=3D<IN>;
> .............
> close(IN);
>=20
> By the way, if the file is a exe or image type, the $str seems don't wo=
rk
> correctly.
Apart from the usual: three-argument "open", lexical filehandles, and=20
explicit '<':
1. if you're dealing with binary files, you must tell perl this:=20
"binmode IN;" after open(...), and
2. you're not reading "strings" of *characters* but "blocks" of *binary* =
data, so better use "read(...)".
so
perldoc -f binmode
perldoc -f read
--=20
These are my personal views and not those of Fujitsu Siemens Computers!
Josef M=F6llers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
Company Details: http://www.fujitsu-siemens.com/imprint.html
------------------------------
Date: Fri, 31 Aug 2007 08:22:46 GMT
From: "John W. Krahn" <dummy@example.com>
Subject: Re: how to write a "od -bc" like function?
Message-Id: <qdQBi.17026$vP5.5982@edtnps90>
Josef Moellers wrote:
> jck11 wrote:
>> hi all
>> Could any one give me a direction to write a function to match the
>> unix-like
>> function "od -bc" do.
>> Now I only get the idea of opening the file.
>>
>> open(IN, "filename")or die;
>> my $str=<IN>;
>> .............
>> close(IN);
>>
>> By the way, if the file is a exe or image type, the $str seems don't work
>> correctly.
>
> Apart from the usual: three-argument "open", lexical filehandles, and
> explicit '<':
> 1. if you're dealing with binary files, you must tell perl this:
> "binmode IN;" after open(...), and
Or use the open pragma:
use open IO => ':raw';
perldoc open
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
------------------------------
Date: Thu, 30 Aug 2007 18:57:13 -0700
From: Keith Thompson <kst-u@mib.org>
Subject: Re: Important Research Project
Message-Id: <lnsl60o492.fsf@nuthaus.mib.org>
"E.D.G." <edgrsprj@ix.netcom.com> writes:
> "CBFalconer" <cbfalconer@yahoo.com> wrote in message
> news:46D6CA0E.E66ED5C8@yahoo.com...
>> "E.D.G." wrote:
>
>> Where is Perl described in the C standard? This seems rather OT.
>
> It has been my experience that a person who is an expert with one computer
> language can usually do reasonably well when working with other languages.
> I am trying to find some people who can assist with getting a Perl program
> running. It would probably be easier for expert programmers in any language
> to help with this type of work compared with people such as myself who are
> not experts in any programming language.
CBFalconer's point is that this newsgroup (comp.lang.c, where he and I
are both reading this) is for discussion of the C programming
language. If you want to discuss something other than C, please find
another forum. Massive cross-posts like this are rarely appropriate.
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
------------------------------
Date: Fri, 31 Aug 2007 09:32:20 -0500
From: mecej4 <mecej4@operamail.com>
Subject: Re: Important Research Project
Message-Id: <46d82674$0$15411$4c368faf@roadrunner.com>
E.D.G. wrote:
> "dave_w" <dave.willmer@gmail.com> wrote in message
> news:1188500139.411988.127100@q5g2000prf.googlegroups.com...
>
> My main Perl program is presently about 3500 lines of code long and 160 KB
> in size. So I am not too anxious to translate it into another language.
>
Apparently, having painted himself into a corner, our warrior wants a
few expert roofers to slither up and extricate him.
One of the best experiences that a programmer can have is that of
admitting that the lovingly nurtured brainchild is now terminally ill,
and showing enough fortitude to make a fresh start.
> The problem I am having is largely with the mechanics of linking modules to
> the Perl compiler etc. So I am looking for experts who can help with
> cookbook instructions, start with step 1, step 2, step 3 etc.
Experts saintly enough to salvage the possibly hopeless would some idea
of whether they are being asked to donate their time to work on a
fundamentally flawed design.
> With trying to find a chart program to use for example, there appear to be a
> number of them. But from examining their instructions it looks like most of
> them must also be linked to a third program called Gnuplot. And that
> increases the complexity of getting something running.
>
Since Perl, as also most other general purpose languages, has no
plotting primitives or intrinsics,
you will have to use _some_ graphics protocol -- there is no escaping that.
Gnuplot is by no means the only choice, but it is simple and provides
a wide selection of output devices. Your Perl program can write the plot
script to a
file, and call Gnuplot to run that script.
-- mecej4
------------------------------
Date: Fri, 31 Aug 2007 15:58:53 +0100
From: bugbear <bugbear@trim_papermule.co.uk_trim>
Subject: Re: Important Research Project
Message-Id: <13dgb5e5bci7n9d@corp.supernews.com>
E.D.G. wrote:
> "dave_w" <dave.willmer@gmail.com> wrote in message
> news:1188500139.411988.127100@q5g2000prf.googlegroups.com...
>
> My main Perl program is presently about 3500 lines of code long and 160 KB
> in size. So I am not too anxious to translate it into another language.
That's not terribly big, you know.
Tell you what - do some legwork, find a relevant forum,
and post your ACTUAL requirment, instead of deciding
you already know the solution.
At the moment, you're being amazingly cryptic
about the problem you're trying to solve,
which has made some people (including me)
suspicious.
BugBear
------------------------------
Date: Fri, 31 Aug 2007 04:42:12 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Fri Aug 31 2007
Message-Id: <JnMFqC.qzB@zorch.sf-bay.org>
The following modules have recently been added to or updated in the
Comprehensive Perl Archive Network (CPAN). You can install them using the
instructions in the 'perlmodinstall' page included with your Perl
distribution.
Archive-Unzip-Burst-0.02
http://search.cpan.org/~smueller/Archive-Unzip-Burst-0.02/
Featureless but fast ZIP extraction
----
Astro-SIMBAD-Client-0.008
http://search.cpan.org/~wyant/Astro-SIMBAD-Client-0.008/
Fetch astronomical data from SIMBAD 4.
----
Chart-Clicker-1.1.7
http://search.cpan.org/~gphat/Chart-Clicker-1.1.7/
Powerful, extensible charting.
----
ClearCase-Argv-1.25
http://search.cpan.org/~dsb/ClearCase-Argv-1.25/
ClearCase-specific subclass of Argv
----
DBIx-Class-QueryLog-1.0.0
http://search.cpan.org/~gphat/DBIx-Class-QueryLog-1.0.0/
Log queries for later analysis.
----
DateTime-0.40
http://search.cpan.org/~drolsky/DateTime-0.40/
A date and time object
----
DateTime-Format-Builder-0.79
http://search.cpan.org/~drolsky/DateTime-Format-Builder-0.79/
Create DateTime parser classes and objects.
----
DateTime-Format-Mail-0.3001
http://search.cpan.org/~drolsky/DateTime-Format-Mail-0.3001/
Convert between DateTime and RFC2822/822 formats
----
Digest-MD5-Reverse-1.3
http://search.cpan.org/~blwood/Digest-MD5-Reverse-1.3/
MD5 Reverse Lookup
----
Eludia-07.08.31
http://search.cpan.org/~dmow/Eludia-07.08.31/
----
ExtUtils-InferConfig-1.00
http://search.cpan.org/~smueller/ExtUtils-InferConfig-1.00/
Infer Perl Configuration for non-running interpreters
----
GD-Graph-smoothlines-1.1.1.1
http://search.cpan.org/~andrei/GD-Graph-smoothlines-1.1.1.1/
----
GDGraph-1.44_01
http://search.cpan.org/~bwarfield/GDGraph-1.44_01/
----
HTML-Menu-TreeView-0.7.7
http://search.cpan.org/~lze/HTML-Menu-TreeView-0.7.7/
----
HTML-Menu-TreeView-0.7.8
http://search.cpan.org/~lze/HTML-Menu-TreeView-0.7.8/
----
IO-EventMux-1.00
http://search.cpan.org/~tlbdk/IO-EventMux-1.00/
Multiplexer for sockets, pipes and any other types of filehandles that you can set O_NONBLOCK on and does buffering for the user.
----
Imager-0.60
http://search.cpan.org/~tonyc/Imager-0.60/
Perl extension for Generating 24 bit Images
----
JavaScript-Writer-0.0.5
http://search.cpan.org/~gugod/JavaScript-Writer-0.0.5/
JavaScript code generation from Perl.
----
Net-Social-Service-Jabber-0.1
http://search.cpan.org/~simonw/Net-Social-Service-Jabber-0.1/
a Jabber plugin for Net::Social
----
OCR-Naive-0.05
http://search.cpan.org/~karasik/OCR-Naive-0.05/
convert images into text in a extremely naive fashion
----
RPC-Async-1.00
http://search.cpan.org/~tlbdk/RPC-Async-1.00/
Asynchronous RPC framework
----
Sub-Exporter-0.976
http://search.cpan.org/~rjbs/Sub-Exporter-0.976/
a sophisticated exporter for custom-built routines
----
Test-LectroTest-0.3600
http://search.cpan.org/~tmoertel/Test-LectroTest-0.3600/
Easy, automatic, specification-based tests
----
Test-Smoke-1.20.03
http://search.cpan.org/~abeltje/Test-Smoke-1.20.03/
The Perl core test smoke suite
----
Text-Iconv-1.5
http://search.cpan.org/~mpiotr/Text-Iconv-1.5/
Perl interface to iconv() codeset conversion function
----
Unicode-Semantics-1.00
http://search.cpan.org/~juerd/Unicode-Semantics-1.00/
Work around *the* Perl 5 Unicode bug
----
Web-Scraper-0.12
http://search.cpan.org/~miyagawa/Web-Scraper-0.12/
Web Scraping Toolkit inspired by Scrapi
----
XML-Rules-0.20
http://search.cpan.org/~jenda/XML-Rules-0.20/
parse XML & process tags by rules starting from leaves
----
perlconsole-0.3
http://search.cpan.org/~sukria/perlconsole-0.3/
----
your-1.00
http://search.cpan.org/~mschwern/your-1.00/
Perl pragma to declare use of other package's variables
If you're an author of one of these modules, please submit a detailed
announcement to comp.lang.perl.announce, and we'll pass it along.
This message was generated by a Perl program described in my Linux
Magazine column, which can be found on-line (along with more than
200 other freely available past column articles) at
http://www.stonehenge.com/merlyn/LinuxMag/col82.html
print "Just another Perl hacker," # the original
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V11 Issue 811
**************************************