Database Normalization ?

2002-09-21 Thread MMKHAJAH
Hello Everyone, I wonder if it's better to use database normalization solution when dealing with Flat Files databases ?

text/area editing

2002-09-21 Thread Ramon Hildreth
Hi, I would like to create a form that loads text into a text/area box for editing. So far in the books that I have I only see how you can post that is added to the text/area only. In my case I would like the html or cgi page to load with the text/area box already containing text. Is there a

Re: MD5 SHA-1

2002-09-21 Thread zentara
On Sat, 21 Sep 2002 10:29:25 +1000, [EMAIL PROTECTED] (Jimmy George) wrote: I thought 'encryption' was supposed to make the data transmitted from user to server into an unreadable block of garbage. Able to be decoded by the server of course - but of no use to any one else who tapped into the

Re: Creating thumbnails (Newbie Question)...

2002-09-21 Thread Randal L. Schwartz
Joel == Joel Hughes [EMAIL PROTECTED] writes: Joel After you have install image magick, the basic syntax is... Joel use Image::Magick; Joel $p = new Image::Magick; Joel $p-Read(..your main image...); Joel $p-Scale(width=$required_width, height=

Re: text/area editing

2002-09-21 Thread zentara
On Sat, 21 Sep 2002 06:04:56 -0700, [EMAIL PROTECTED] (Ramon Hildreth) wrote: Hi, I would like to create a form that loads text into a text/area box for editing. So far in the books that I have I only see how you can post that is added to the text/area only. In my case I would like the html or

Re: Database Normalization ?

2002-09-21 Thread Janek Schleicher
Mmkhajah wrote at Sat, 21 Sep 2002 13:20:14 +0200: I wonder if it's better to use database normalization solution when dealing with Flat Files databases ? And your Perl-CGI question is ... ? It's a good question, but I think you better should ask it in a database newsgroup. The only answer

RE: text/area editing

2002-09-21 Thread Ramon Hildreth
Hi, my cgi compiles on the command line, but I get an internal server error when I try to access in the browser use strict; use warnings; my $file_name=''; my $content=''; $file_name = 'testfile'; open TEXT, $file_name or die couldn't open '$file_name' for reading: $!\n; while (TEXT) {

Re: Help on Arrays - Beginner

2002-09-21 Thread david
try this: #!/usr/bin/perl -w use strict; print join(\n,sort map { join(', ',reverse split); } DATA); __DATA__ abcd apply xxx peach yyy dog zzz cat prints: apply, abcd cat, zzz dog, yyy peach, xxx david Grant Hansen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: file upload to MySql

2002-09-21 Thread Priss
You mean something like this? use DBI; $dbh = DBI-connect(DBI:mysql:database=mydatabase;host=localhost, user, password, {'RaiseError' = 1}); $sth = $dbh-prepare(LOAD DATA INFILE '/home/me/file' INTO TABLE mytable FIELDS TERMINATE D BY '|'); $sth-execute(); Priss --- Mariusz [EMAIL

Re: file upload to MySql

2002-09-21 Thread Priss
Sorry, a bit messy... use DBI; $dbh = DBI-connect(DBI:mysql:database=mydatabase;host=localhost, user, password, {'RaiseError' = 1}); $sth = $dbh-prepare(LOAD DATA INFILE '/home/me/file' INTO TABLE mytable FIELDS TERMINATED BY '|'); $sth-execute(); Priss --- Priss [EMAIL PROTECTED] wrote:

Re: perl - good programming principles

2002-09-21 Thread RP C987342
That solve you then need to resolve what 'performance' really means - are you counting cycles? at the code monkey end or the cpu end??? cpu end. Being a Java/C++ programmer mostly, I find perl very interesting mainly as it lets you do a lot in short time. But I find Perl as more as a

Re: how to find memory leaks?

2002-09-21 Thread Frank Wiles
.--[ chad kellerman wrote (2002/09/20 at 15:32:11) ]-- | | I tried doing the same thing but my supervisor got mad. We aren't | allowed to use any type of system call in our scripts. If the system | call is in a perl module it's one thing but not in our code. | | system or

RE: getppid?

2002-09-21 Thread Rowe, Sean D.
I'm having a very strange problem that I'm hoping someone has come across before. I'm using a hash to collect some field values. I want to write the hash values to file, and I want them delimited by the '|' character, so I use my $LineToWrite = join('|', hash_var_1, ..., hash_var_n) .

join hashes?

2002-09-21 Thread Rowe, Sean D.
( this message was accidentally submitted under the subject RE: getpid? Sorry ) I'm having a very strange problem that I'm hoping someone has come across before. I'm using a hash to collect some field values. I want to write the hash values to file, and I want them delimited by the '|'

Re: join hashes?

2002-09-21 Thread John W. Krahn
Sean D. Rowe wrote: ( this message was accidentally submitted under the subject RE: getpid? Sorry ) I'm having a very strange problem that I'm hoping someone has come across before. I'm using a hash to collect some field values. I want to write the hash values to file, and I want them

Re: perl - good programming principles

2002-09-21 Thread John W. Krahn
Rp C987342 wrote: In java, I would be careful in choosing a vector vs arraylist. In c/..., arrays have fixed length. In perl, when I say my @arr = STDIN; I do not (or cannot?) specify the length of the array even when I know it has only 15 elements. TMTOWTDI my @arr = (STDIN)[0..14];

Perl MySQL

2002-09-21 Thread dan
I'm in the process of writing IRC Services in Perl. I know most of you won't know anything about IRC in this aspect at least. However what I need help with is being able to store the services' data in a MySQL database. I know absolutely nothing about MySQL. At the moment it's using a flat text

Re: Perl MySQL

2002-09-21 Thread Wiggins d'Anconia
First off for those MySQL newbies in the crowd you might find this helpful, I compiled it a while ago but I am pretty sure it is still accurate: http://www.residualselfimage.com/mysql_pkt_ref/ Essentially you need to start with the mysql documentation, or a beginners guide on that, then

Re: Encryption/Decryption

2002-09-21 Thread zentara
On Fri, 20 Sep 2002 08:24:30 -0400, [EMAIL PROTECTED] (Rob Das) wrote: Hi List: Can anyone suggest a way/module to encrypt the contents of a file then decrypt it to get the contents back? I see many different modules on CPAN, but wondered if anyone can recommend one. I would be doing the

Re: how to find memory leaks?

2002-09-21 Thread Steve Grazzini
David [EMAIL PROTECTED] wrote: the heap will not go away (because Perl does it's own memory management) until the client exit.). Actually, the default config uses libc malloc. (check perl -V) -- Steve perldoc -qa.j | perl -lpe '($_)=m((.*))' -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Encryption/Decryption

2002-09-21 Thread zentara
On Sat, 21 Sep 2002 11:31:38 -0400, [EMAIL PROTECTED] (Zentara) wrote: On Fri, 20 Sep 2002 08:24:30 -0400, [EMAIL PROTECTED] (Rob Das) wrote: Hi List: Can anyone suggest a way/module to encrypt the contents of a file then decrypt it to get the contents back? I see many different modules on

Re: perl - good programming principles

2002-09-21 Thread drieux
On Saturday, Sep 21, 2002, at 01:41 US/Pacific, RP C987342 wrote: [..] That solve you then need to resolve what 'performance' really means - are you counting cycles? at the code monkey end or the cpu end??? cpu end. p0: first off thank you for forbearing on the bit of tongue in cheek - as

question to anyone using Perl for bio-sciences

2002-09-21 Thread nkuipers
Hello, I use Perl for DNA data mining and I'm just wondering what [non-bioperl] CPAN modules you make good use of in your work. Handling arbitrarily large/nested data structures is the main badboy here, but science-Perlers will know already the nature of the beast. I've hit a bit of a rut

Re: ActivePerl: Any Alternatives to MS-DOS Prompt?

2002-09-21 Thread Tim Musson
Hey Marshall, My MUA believes you used Microsoft Outlook Express 5.50.4807.1700 to write the following on Saturday, September 21, 2002 at 6:23:46 PM. MG In Windows, Perl runs from the command (DOS) prompt, and I can't MG scroll in the command window. MG Is there anything I can install

Re: Perl or Object Oriented Perl?

2002-09-21 Thread Randal L. Schwartz
wiggins == wiggins [EMAIL PROTECTED] writes: wiggins I am currently and finally working my way through the OOP wiggins Perl book by Conway and a few of the things seem a little wiggins dated with respect to how Perl can handle things, and the wiggins preferred method at least from what has

Re: ActivePerl: Any Alternatives to MS-DOS Prompt?

2002-09-21 Thread rob
Marshall Goldberg wrote: In Windows, Perl runs from the command (DOS) prompt, and I can't scroll in the command window. Is there anything I can install (besides Linux :) that will let me run Perl applications and view console output in a scrollable window? Try

Re: ActivePerl: Any Alternatives to MS-DOS Prompt?

2002-09-21 Thread rob
Marshall Goldberg wrote: In Windows, Perl runs from the command (DOS) prompt, and I can't scroll in the command window. sorry for the dual reply but go to sratr run cmd on nt /2000 or command on 95/98 on the upper left hand dos icon click edit scroll or properties and modify the

Re: file upload to MySql ??

2002-09-21 Thread Mariusz
does your solution require the file to be sitting on the host where the MySql is? If so, is there also an option of uploading it straight from the user's computer? I'm trying to give an option of uploading a picture (and I want to store it with the rest of my record in the MySql db) to my

RE: file upload to MySql

2002-09-21 Thread John Almberg
You can do the upload with a form. Read any HTML reference and check out the input type=file tag. The web server will store the uploaded file as a temporary file. Your form handler will have to store it someplace permanent. This is pretty simple using the CGI module. Check out the CGI module