view the source to see how to use PDF::API2.
Let me know if you have any other questions, feature requests, etc.
Dan
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2
9922 7989
email: [EMAIL PROTEC
On Fri, 2008-05-02 at 08:04 -0700, Rodrigo Tavares wrote:
> Hello,
>
> Today I write my perls scripts with a simple editor.
> I found this link http://www.enginsite.com/Perl.htm, but it run only in
> Windows.
>
> This link http://www.solutionsoft.com/perl.htm, contain the for linux, but
> have
On Sat, 2008-04-26 at 23:24 -0400, Richard Lee wrote:
> Hello guys,
>
> I want to start learning about sql and how it interacts w/ perl.
Great :)
If you want to create nice GUI apps that talk to databases, check out my
projects at: http://entropy.homelinux.org/axis
Dan
--
To unsubscribe, e-m
On Thu, 2008-04-10 at 03:44 -0700, jeevs wrote:
> Is there a good debugger for perl. I have an application running on
> Ubuntu , with apache and mod perl along with mysql. and we are into
> reverse engineering the product. And need to debug the code. Is there
> any debugger for perl other than the
7;ll have a better setup when
it's done.
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2
9922 7989
email: [EMAIL PROTECTED]
website:
http://www.nusconsulting.com.au
--
To unsubscribe, e-mail: [E
e
written lots of Gtk2-Perl apps that run on Linux, Windows and OS-X, and
they all run great. See http://entropy.homelinux.org/axis for some
screenshots of inhouse systems, and also some of my open-source stuff.
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North S
>main;
---
Sorry about the text wrapping ...
For more control over the colouring / formatting / etc, you should set a
custom cell data function, as in:
http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/TreeViewColumn.html#_tree_column_set_cel
This allows you to set things based on the data in your
On Sat, 2007-10-27 at 14:18 +, camotito wrote:
> The program I am using (that is running over windows) can only read
> the first line in the modified file. When I open the modified file
> with notepad I see an square at the end of each line.And all the lines
> are in one line.
For a Windows n
ut this is not the case with perl where variables come and go with
> scope. What if not enough memory is available?
Perl does all memory management for you. If your process runs out of
memory, it's up to the OS to do something, which could be to kill your
process, or maybe to kill another process
On Sun, 2007-09-02 at 00:53 +0800, Rafael Morales wrote:
> Hi list,
>
> This my situation I love Perl, and I need to create a GUI program for a
> school, but this is my problem:
> - In the school all machines are under Windows (different versions). -
> So I don`t know what to do, I must to code
its contents. Thanks.
I use LWP::Simple to fetch stuff, and HTML::TreeBuilder to parse it and
extract stuff.
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
w
ache handler
> [d] write commercial products
> [e] Biological analysis
> [f] others
GUI apps, with gtk2-perl and stuff at http://entropy.homelinux.org/axis
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F
Eko Hermiyanto wrote:
Well, is there anything better than GNU Emacs?
Did you read my response?
Please don't top-post.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
Tony Heal wrote:
I am looking for a good IDE for perl, I have eclipse and one of it's plugins,
but I am wondering if I a spinning my
wheels trying to set this up when there may be a better alternative.
Eclipse and EPIC are the way to go. It's a little tricky to get it
working for larger p
objects to connect your tables to your forms.
It's remarkably easy, requires *very* little code, and I'll help you out
if you get stuck.
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2
erlform manpage?
>
> http://perldoc.perl.org/perlform.html
>
> Hope this helps!
Also check out PDF::ReportWriter:
http://entropy.homelinux.org/axis
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F:
nd create some treeview columns ( in
Perl ), and append the columns to the treeview, and then connect the
model to the treeview.
I have some examples of setting up different kinds of columns
( including some custom renderers ) in my project,
Gtk2::Ex::datasheet::DBI, which you can find at:
htt
ns ( eg dial-up )
- report builder exports direct to PDF
- big plans for the next 12 months :)
See the screenshots / examples on my webpage for more details ...
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+
Hi all.
How do I, inside Perl, get the path of the home directory?
I assume if I can do this, it will only work under Linux / Unix?
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email
Hi all.
I'm writing an app in Gtk2-Perl. I want to include things like glade XML
files, and images. How do I go about that? I would like to be able to do
something like create an app folder:
/usr/share/some_application
and dump stuff in there. Can I do that? How?
Dan
--
To unsubscribe, e-mail
Ken Foskey wrote:
> I have a script that takes an sql and formats into a report, simple
> stuff.
>
> I have a product that when it changes I want a sub heading. I have
> coded this.
>
> if( $prior_product ne $sql_product ) {
> print form...
> $prior_product = $sql_product;
> }
>
> Is there
I'm after a Perl graphing library that includes alpha blending support.
I've checked out GD::Graph, but it *doesn't* support alpha blending. Are
there any options? I know of jpgraph for PHP ( which is excellent for
open-source stuff, but the commercial license is too expensive
oryann9 wrote:
I have a scanned PDF file and I want to convert its data so I can store it in
an xls file. What module(s) do you recommened?
I saw File::Extract::PDF ?
If you've scanned it, chances are the PDF doesn't contain any text that
you can extract. It will just be 1 image per p
been able to find any examples ( googled, honest ).
Has anyone done alpha blending in GD::Graph, in particular inside bars?
Seen any example code around?
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61
Suja Emmanuel wrote:
Hi all,
Could you please suggest me any good PERL editor which is
available in open source tools. I have tried 'EngineSite Perl Editor
-LITE' and 'PerlExpress' which I am not comfortable with. Kindly refer
me some good bug free tools.
Eclipse IDE with the
ymmdd;
it works for dates separated by dashes, and if I do:
my ( $, $mm, $dd ) = split /\//, $mmdd;
it works for dates separted by slashes.
Why can't I do both at the same time?
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australi
Hi all.
Does anyone know if it's possible to create a content index with
PDF::API2, so people viewing the PDF can click in the index and go
straight to the corresponding page of the PDF document?
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney
John W. Krahn wrote:
> Daniel Kasak wrote:
>
>> John W. Krahn wrote:
>>
>>> perldoc -f binmode
>>>
>> binmode is what I was after - thanks :)
>>
>
> Then don't forget to use the correct characters for this: "\0
);
> return FALSE;
> };
>
It's working on my system as-is. I'll check out that precedence thing
when I get some spare time.
>> if ( substr( $fieldnames, length( $fieldnames ) -2, 2 ) eq "\r\n" ) {
>>
>
> You don't have to call the
Dialogs::ErrorMsg->new_and_run(
title => "Please get Dan ...",
text=> "modules::mysql::import failed to find EOL sequence!"
);
return FALSE;
}
}
--
Daniel Kasak
IT D
Timothy Johnson wrote:
> Try this:
>
> system( "start evince /path/to/pdf.pdf" );
>
> Both cheap and nasty.
>
That does it. Thanks :)
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2
Greetings.
I'd like to trigger an application to open ( Acrobat Reader ), and *not*
freeze my perl app while it's open.
Under Linux, I do:
system ( "evince /path/to/pdf.pdf &" );
The ampersand does what I need. This doesn't work under Windows. Is
there a cheap &a
Hi all. I originally posted this to the Gtk2-Perl mailing list, but got
a total of 0 answers ...
I'm trying to do an install of a Gtk2-Perl setup on Windows 2000, but not
getting anywhere :(
I've installed Gtk2 binaries and Perl and all modules ( for Gtk2, using the
latest Win32 binaries from
n I can get back to the PC.
Thanks :)
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
--
To unsubscribe, e-mail: [EMAIL PRO
Timothy Johnson wrote:
One more question. Does it work if you do it like this?
perl script_name.pl argument
Yes, actually!
Strange ... very strange.
Thanks :)
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922
Timothy Johnson wrote:
Just to clarify, you're able to invoke the script by typing
script_name.pl, right?
Yep.
Because one possible reason would be that your file association somehow
didn't take when you installed activeperl.
Also, does it work if you do:
my $userid = $ARGV[0];
Hi all.
I've got an app than runs on Linux and Windows. I invoke it:
script_name.pl USERID
where USERID is a number that identifies the user. Under Linux, and
under *some* Windows 2000 installations, I can then get the value of USERID:
my $userid = shift;
However I just noticed that on a ne
wrong :-)
Same here usually.
Thanks for the tip.
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
--
To unsubscribe, e
xes instead of new lines. What should I
use to get Access to display a new line?
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.c
Jeff 'japhy' Pinyan wrote:
On Oct 18, Daniel Kasak said:
I've got an OO object that I want to destroy from inside the object
itself.
sub destroy_self {
my $self = shift;
$self = undef;
}
But this doesn't work. What is the correct way of doing it?
That's becau
Greetings.
I've got an OO object that I want to destroy from inside the object itself.
I'm trying:
sub destroy_self {
my $self = shift;
$self = undef;
}
But this doesn't work. What is the correct way of doing it?
--
Daniel Kasak
IT Developer
NUS Consulting Group
Leve
the documentation, was
developed way back.
http://members.aol.com/aumenu/index.html
Thank you.
Try gtk2-perl:
http://gtk2-perl.sourceforge.net/
It rocks. It *seriously* rocks. You can use Glade to build your GUI too
:) Glade is very nice. Check it out if you haven't already.
--
D
Toby Stuart wrote:
use binmode
my $png_data = get($http_request_string);
open ( OUTPUT_HANDLE, "> $path/top_n.png" );
binmode OUTPUT_HANDLE;
print OUTPUT_HANDLE $png_data;
close OUTPUT_HANDLE;
That's it.
Thanks :)
--
Daniel Kasak
IT Developer
NUS Consulting Group
L
onversion to ASCII.
Should the above code work under Windows? How do I write binary data to
a file so it works?
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTEC
Greetings.
I'm pleased to announce a round of upgrades to the packages making up
Axis Not Evil:
http://entropy.homelinux.org/axis_not_evil
Axis Not Evil is a suit of open-source, cross-platform Perl modules that
combine to provide an alternative to a /'leading'/ software vendor's RAD
design
re if that
satisfies my requirement of working on Windows ... easily. There are
binaries available for Windows, but I'm not sure whether they're current
or supported in any way.
Any suggestions?
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, N
e if I got
some type of return value ).
Where do I start?
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
--
To unsu
eone's post and then get swamped with
"out of office" and "prove you're not a spammer" emails.
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTE
partial record 'slices' ( or
'pages' as I suppose I should call them ) to reduce bandwidth and memory
requirements ... so instead of fetching all records returned by a query,
it will select the first 100 ( default, but you can change it ) records,
and then only get the next 10
different story. Users need to be running an X
server, which some object to, but isn't all that bad. You then need to
install Gtk2. I've tried to do this via 'darwin ports', and have not had
a great deal of success. However one of the Perl-Gtk2 developers assures
me that if y
Siegfried Heintze wrote:
Wow! Thanks for the enthusiastic responses!
Well I'm a C++ guy so GTK* and WxWindows look good. But is anyone using
these on ActiveState Perl? Is there some other perl for windows that I
should be using for GUI?
Siegfried
ActiveState Perl is fine for Gtk2-Perl.
At least
Siegfried Heintze wrote:
I get the impression that there are several alternatives to use=ing Tk for
writing OS neutral GUI programs in Perl.
Can anyone point me to a discussion that might help me choose one?
I'll give my vote to Gtk2 any day.
To start with, Tk looks like barf. It really, really,
nt_size => 12,
>align => "left",
>},
>
>and so on.
>
>The headers are displayed on the *second* page, but not on the first.
>
>
I fixed an issue with the 1st set of headers not showing in the 2nd
release, which is available via cpan ( and my we
Charles K. Clarkson wrote:
>Daniel Kasak <mailto:[EMAIL PROTECTED]> wrote:
>:
>: I have a large script ( 6000 lines ) that I'd like to break into
>: logical units. Is there a way I can tell perl to 'append' a list
>: of files into 1 script so that I can ca
variables
will be visible )?
Thanks :)
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
--
To unsubscribe, e-mail: [EMAIL
PDF::API2 object and work with it directly.
If you're interested, I can email you with my unfinished
PDF::ReportWriter ... it's *almost* ready for an initial release. I'm
pondering whether I should remove the dodgy hard-coded stuff or not.
--
Daniel Kasak
IT Developer
NUS Consulting
Michael Gale wrote:
Hello,
I am currently googling for this but ... I want to know what
people think or have used to create reports in perl. Maybe creating
some kind of graph or an excell report ?
I'm currently working on a text-based reporting module. It basically
does what MS Access' repor
hod able to perform many SQL clauses at all? If no what
> method or function should I use to perform this?
Current stable versions of MySQL don't support multiple statements in
this way.
I believe support for this will be added in 5.x, but it *could* be in
4.1.x. Either way, you won't be abl
hen you'll have to convert from pdf to ps, and finally print the ps.
Or you could output to another format ( ps? ).
I'm currently mucking around with PDF::API2 for all output that I know
in advance has to be printed. The documentation is a little
non-existant, but it works quite well.
--
ere any way to prevent 'Use of uninitialized value' warnings
without doing an extra test as above ( and still keeping warnings turned
on )?
Thanks :)
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 /
Jay Savage wrote:
Also,
try calling ->gfx with a positive value, which should cause it to
prepend and possibly render first.
This was the issue. Replacing:
my $blue_box = $page->gfx;
with:
my $blue_box = $page->gfx(1);
causes the gfx object to get rendered 1st.
Thanks :)
--
Daniel
Charles K. Clarkson wrote:
Daniel Kasak <mailto:[EMAIL PROTECTED]> wrote:
: Hi all.
:
: Despite making some decent progress in other areas, I'm banging my
: head against a brick wall on something simple: rendering text over a
: solid rectange.
You didn't provide enou
and run
the code, I get the correct text ( coming from
$self->{report}->{header}->{text} ).
Why does my text only appear if I *don't* create the blue box? Is it
being rendered underneath the box or something? I was under the
impression that anything you render gets placed on *top
ke this:
system("\"C:\\Program Files\\Adobe\\Acrobat 7.0\\Reader\\AcroRd32.exe\"
C:\\PDFs\\test.pdf");
That works. Thanks :)
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 798
ipt, pdf or dvi output? I'm
thinking of biting the bullet and trying to write one, but I think it
would be a little over my head at the moment. If I must, though, I will try.
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (
\\Adobe\\Acroba~1\\Reader\\AcroRd32
C:\\PDFs\\test.pdf");
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
--
To unsubscribe, e-
Chris Devers wrote:
On Wed, 16 Feb 2005, Tim Johnson wrote:
On Wed, 16 Feb 2005, Daniel Kasak wrote:
How do I detect what platform I'm running from inside a Perl script?
Check out the $^O variable.
...but be careful in writing code that matches it:
Under Mac OSX:
$ per
How do I detect what platform I'm running from inside a Perl script?
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
rding this. I'm not sure what effect this would have
if the header files are more recent than the server on your system ...
assuming there is a server on your system.
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7
t sort of printer is it?
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For ad
Randy W. Sims wrote:
<http://search.cpan.org/dist/PostScript-MailLabels/>
Too mailing-specific
or use some of the PostScript::* modules to roll your own.
Now *THAT* is what I was after.
Postscript::Simple seems to do everything I want, and *very* easily.
Thanks :)
--
Daniel Kasak
IT Develop
zentara wrote:
On Thu, 13 Jan 2005 14:20:34 +1100, [EMAIL PROTECTED] (Daniel
Kasak) wrote:
I'm hunting for a method of creating labels under Linux.
I've already looked at everything on freshmeat.net that came up when I
searched for 'labels'. None of them cut it.
Requ
PDF::API2, but I can't even figure out if it
does what I want - the documentation is a little nonexistant.
So should I use GD?
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email
G::TT::Graph ( which I unfortunately haven't been able to compile yet ).
And yes I realise I can search on cpan, eg:
http://search.cpan.org/modlist/Graphics but I'm asking for people's
opinion based on their experience.
Thanks :)
Dan
--
Daniel Kasak
IT Developer
NUS Consulting Grou
Pretty soon I'm going to need a graphing solution as well...
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
--
To
Hi all.
I have an object that I want to have execute some code that it gets told
about when it's constructed.
How do I go about that?
ie:
$self->{some_code_to_execute}
will either have the name of a sub, or a reference to a sub, or something.
Dan
--
Daniel Kasak
IT Developer
NUS Consulti
ngs that do this ).
More to the point, however, is convincing people to covert their Word
documents to OpenOffice's XML format.
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [
d for more info on writing modules.
HTH,
Charles K. Clarkson
Thanks. Much appreciated :)
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsult
tell it to look outside the package for functions?
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
--
To unsubscribe, e-mail:
79 matches
Mail list logo