try. Two words: Pythagorean Theorem :)
Aloha,
mel
--
mel matsuoka
Technical Director/Trained Primate
Hawaiian Image Productions
[vox] +1 808.531.5474
[fax] +1 808.526.4040
[e-mail] [EMAIL PROTECTED]
[www] http://www.hawaiianimage.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
'user', 'password');
foreach my $reset_key (@reset_keys) {
foreach my $U (keys %PASS) {
$PASS{$U}{$reset_key} = undef;
}
}
HTH..aloha
mel
--
mel matsuoka[EMAIL PROTECTED]
Head Geek
t=400")>
>
Try comp.lang.javascript instead. This is the wrong forum for Javascript
questions, even if you declare "off topic" in the subject header.
Cheers,
mel
--
mel matsuoka (vox)1.808.531.5474
Head Geek (fax)1.80
At 01:12 AM 10/28/01 -0700, Dave Turner wrote:
>I have scanned the docs and can't seem to find the answer to this anywhere.
>
>I want to change the color of the text and the font size on a web page
>using CGI:pm.
>
>my code looks like:
>
>$q->h2( "Something witty here");
>
>but I'd like to have t
erldoc strict
Turning on strict mode requires that you declare your variable scope before
using them. This is the source of your errors.
Aloha,
mel
--
mel matsuoka (vox)1.808.531.5474
Head Geek (fax)1.808.526.4040
Hawaiian Image Prod
f all you want to do is "crop" the text out the image, it's
extremely easy using GD.pm
Aloha,
mel
--
mel matsuoka (vox)1.808.531.5474
Head Geek (fax)1.808.526.4040
Hawaiian Image Productions [EMAIL
;/etc/ppp/ppp");
Probably something in your ifconfig routine is sending its output to STDOUT...
Aloha,
mel
--
mel matsuokaHawaiian Image Productions
Chief Executive Alphageek (vox)1.808.531.5474
[EMAIL PROTECTED] (fax)1.808.526.4040
ing a simple task done, when said
newbie is still in the stages of learning the core language and
methodologies first. I can imagine this is why many people are turned off
by Perl because they see a lot of compact, "read only" code written by
experienced Perl jockeys :)
Just my
instead of trying to re-invent this particular
wheel.
I personally dont use Webmin, cause it still freaks me out to be doing
root-level configurations using a webbrowser, unless you restrict access
only to localhost.
HTH, Aloha,
mel
--
mel matsuokaHawaiian Image P
ould just use Date::Calc, but thats just not as fun ;)
Aloha,
mel
--
mel matsuokaHawaiian Image Productions
Chief Executive Alphageek (vox)1.808.531.5474
[EMAIL PROTECTED] (fax)1.808.526.4040
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For a
even bother to refer the OP to
>dictionary.com) ( none of that - pesonal)
>(obviously I don't know the rules of borderline vulgarity on this list,
>hope i don't get kicked off...)
Actually, either way is wrong. You should know by now that spelling-flames
are the hallmark of a newbie
i script.
Please show us your code so we can help you better. I have used DBI for
everything as simple as a 3 field table all the way up to a ridiculous 20
field table, so your problem is almost certainly an issue with errors in
your Perl code, and not DBI itself.
What DBD are you using, btw?
A
At 05:30 PM 09/19/2001 +0200, Andy McDowell wrote:
>Spam... since when was asking questions and wanting to learn something spam??
>
Asking questions and wanting to learn is not spam.
Crossposting your questions to multiple unrelated mailing lists, on the
other hand, technically IS spam and con
ink it was entirely inappropriate for some people to
flame the OP in the manner that they did. This is not comp.lang.perl.misc.,
if you want to be a bully to newbies, then you probably should hang out
there instead ;)
Aloha,
mel
--
mel matsuokaHawaiian Image Productions
abel placement) that forces me to create my own GD drawing routines
to work around.
aloha,
mel
--
mel matsuoka Hawaiian Image Productions
Chief Executive Alphageek(vox)1.808.531.5474
[EMAIL PROTECTED](fax)1.808.526.4040
iously off-topic here. As
such, your logic about HTML questions doesn't follow.
For HTML related questions, I would highly recommend the Webmonster
(formerly Lynda Weinman's) webdesign-l . http://www.webmonster.net
Aloha,
mel
--
mel matsuokaHawaiian Image Produc
priciated.
Use GD::Graph.
http://search.cpan.org
aloha,
mel
--
mel matsuoka Hawaiian Image Productions
Chief Executive Alphageek(vox)1.808.531.5474
[EMAIL PROTECTED](fax)1.808.526.4040
--
To unsubscribe, e-mail: [EM
halign => 'left',
color => $gd_black);
$align->set_text($textstring);
$align->set_halign($alignment);
$align->set_valign('top');
# $align->set_font(gdGiantFont); # works when value is
At 03:47 PM 08/09/2001 -0500, Baartmans, Hans wrote:
>Is there a module or command that returns the permissions of a file or
>directory?
>
>Thanks,
>Hans
use the stat() function.
Aloha;
mel
--
mel matsuokaHawaiian Image Productions
Chief Exec
will not be allowed to access it, for security
reasons.
Save your images under the normal webserver document-root and reference
them in your HTML using relative or absolute paths.
Aloha,
mel
--
mel matsuokaHawaiian Image Productions
Chief Executive Alphageek (vo
At 08:29 AM 08/08/2001 -0600, Kent Mercer wrote:
>How do I begin my first script?
>
>And how do I save it ?
>
>Something simple like "Hello World"
>
>Just started 2 days ago
>Need pointed in the right direction
Check out the resources and FAQs located at http://www.perl.com
Theres a plethora o
At 03:15 PM 08/08/2001 -0700, Sofia wrote:
>I have the following hash of first names and last
>names:
>
>%hash = (
> joe => "smith",
> jim => "jones",
> sof => "comes",
>);
>
>If for example, jim now has two last names ie jones
>taylor, how do I represent that on the hash?
You'd basically w
st stop before asking about
the existence of a module :)
aloha,
mel
--
mel matsuokaHawaiian Image Productions
Chief Executive Alphageek (vox)1.808.531.5474
[EMAIL PROTECTED] (fax)1.808.526.4040
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
At 02:52 AM 08/08/2001, Mel Matsuoka wrote:
>
>You should optimize this code by using a dispatch table, which is basically
>a hash which maps keys to references to subroutines:
>
> %menuChoices = ( '0' => \&readFile,
>
erence the subroutine mapped to $menuchoice
$menuChoices{$menuchoice}->();
}
else {
$lastMsg = "That was not a valid choice!";
callMenu();
}
HTH..Aloha,
mel
--
mel matsuokaHawaiian Image Productions
Chief Executive Alphageek (vox)1.808.531.5474
[EMAIL PROTECTED] (fax)1.808.526.4040
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ortant as the
process you took in order to arrive at that answer.
Aloha,
mel
--
mel matsuoka Hawaiian Image Productions
Chief Executive Alphageek(vox)1.808.531.5474
[EMAIL PROTECTED](fax)1.808.526.4040
--
To unsubscr
red. Every moment of emotional energy you spend being "offended" at
faceless people on the internet is time wasted on otherwise learning
valuable lessons.
just my unsolicited .02
Aloha
--
mel matsuoka Hawaiian Image Productions
Chief Executive Alph
ser of Win32::ODBC, I recommend giving DBI a try
instead, using the DBD::ODBC driver. You'll thank yourself down the road
when you need to port this code over to another DBMS. I find DBI much more
convenient to use than Win32::ODBC...though I suppose of you need to do
real
perlfaq(9). A better, more workable alternative
would be to check for a valid MX record for the given domain name.
Aloha,
mel
--
mel matsuokaHawaiian Image Productions
Chief Executive Alphageek (vox)1.808.531.5474
[EMAIL PROTECTED] (fax)1.808
er got around to
using it (and /learning it) on that box...then again I never had a use for
it, since AOS had that cool built-in ARexx interprocess scripting language
(like Applescript).
Ah, I sort of miss the good ol' days of the Video Toaster on my A2000
(souped up with a BLAZING Zeus 680
state Perl on Win98.
IRCd on a Windows box eh? You certainly are a masochist :)
Cheers,
Mel (aka Mr_Me on Afternet)
--
mel matsuokaHawaiian Image Productions
Chief Executive Alphageek (vox)1.808.531.5474
[EMAIL PROTECTED] (fax)1.808.526.404
At 10:56 AM 07/30/2001, Mel Matsuoka wrote:
>At 01:39 PM 07/30/2001 -0700, [EMAIL PROTECTED] wrote:
>>> "Stephen P. Potter" <[EMAIL PROTECTED]> said:
>>
>>> |
>>> | open (MAIL, "|/usr/sbin/sendmail $email")
>>> |
lity waiting to be exploited. What if the user-supplied value of
$email was something like ";rm -rf ." ? Not good.
You should really be using sendmail with the -t flag to avoid shell
exploits like this.
Aloha,
mel
--
mel matsuoka Hawaiian Image Productions
Chief Ex
At 03:14 PM 07/29/2001 -1000, . wrote:
>I'm currently running a RedHat 7.1 box, with Perl 5.005 (I think), and
>Apache webserver 1.3.12.
>
>My problem is that, after having followed the directions for configuring
>Apache to handle cgi scripts (from both www.apache.org and the httpd.conf
>documenta
t's probably easy to do, but my experience with CGI is next to
>nothing.
If you're using Apache (and you realy should if you aren't :)), you might
want to look into mod_rewrite.
Aloha,
mel
--
mel matsuokaHawaiian Image Productions
Chief Executive Alphageek
$action )= split(/\t/);
You need to declare your variable scope using 'my'. The strict pragma
spanks you if you use global variables without specifically intending it:
my($email, action)
Aloha,
mel
--
mel matsuoka Hawaiian Image Productions
Chief Execu
At 01:33 AM 07/25/2001, Mel Matsuoka wrote:
>Off the top of my head, perhaps a more secure method would be to have your
>CGI script serve as a "wrapper" to pass username/passwd data to another
>script (which has root or sudo root execute permissions) which is located
>out
l world experience with them so I
couldnt attest to thier security.
HTH, aloha,
mel
--
mel matsuokaHawaiian Image Productions
Chief Executive Alphageek (vox)1.808.531.5474
[EMAIL PROTECTED] (fax)1.808.526.4040
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
At 04:41 PM 07/25/2001 +0900, Super Newbie wrote:
>Which Perl book is the best for a newbie? Any recommendation?
>
"Elements of Programming with Perl" from Andrew Johnson.
"Learning Perl" by Randal Schwartz.
Both books rock.
Aloha,
mel
--
mel matsuoka
At 01:48 PM 07/24/2001 -0500, Mooney Christophe-CMOONEY1 wrote:
>Why not just use a regex?
>
>($basename)=$file_string=~m!([^/]+)$!;
Why not just use File::Basename? ;)
Aloha,
mel
--
mel matsuokaHawaiian Image Productions
Chief Executive Alphageek
!/usr/bin/perl -w
use CGI;
use strict;
my $q = new CGI;
print $q->header;
print "Hello World!\n";
Also remember to ALWAYS use strict and -w, no matter how trivial the script.
HTH..aloha,
mel
--
mel matsuoka Hawaiian Image Productions
Chief E
41 matches
Mail list logo