From karjala at karjala.org Sun Feb 9 22:43:00 2003 From: karjala at karjala.org (Alexander Karelas) Date: Mon Aug 2 21:22:57 2004 Subject: [Athens-pm] When do we meet? Message-ID: <20030210044300.GA12864@karjala.org> When/where is the meeting? A From nacos at eureka.edu.gr Mon Feb 10 15:11:31 2003 From: nacos at eureka.edu.gr (Michael K. Nacos) Date: Mon Aug 2 21:22:57 2004 Subject: [Athens-pm] meeting Message-ID: <20030210211130.GB1424@eureka.edu.gr> Hi everybody! Tis that time of the month again :P Mark, r u back? I suggest we meet for a drink Wednesday. if you guys wanna do the Perl-Tk feature/tutorial/seminar/workshop I suggest we do it Sunday in Kypseli. Please let me know in advance, so as to buy enough coffee and spare keyboards for the day ;-) Michael From mark at dreamzpace.com Mon Feb 10 16:43:06 2003 From: mark at dreamzpace.com (Mark Pors) Date: Mon Aug 2 21:22:57 2004 Subject: [Athens-pm] meeting In-Reply-To: <20030210211130.GB1424@eureka.edu.gr> References: <20030210211130.GB1424@eureka.edu.gr> Message-ID: At 23:11 +0200 2/10/03, Michael K. Nacos wrote: >Hi everybody! Tis that time of the month again :P >Mark, r u back? no i'll be back on the 16th have fun! Mark PS Vincent, if you read this: please go on wednesday, otherwise there will be an Athens mongers meeting 'in Greek' :-) >I suggest we meet for a drink Wednesday. >if you guys wanna do the Perl-Tk feature/tutorial/seminar/workshop I >suggest we do it Sunday in Kypseli. Please let me know in advance, >so as to buy enough coffee and spare keyboards for the day ;-) > >Michael > >_______________________________________________ >Athens-pm mailing list >Athens-pm@mail.pm.org >http://mail.pm.org/mailman/listinfo/athens-pm From nacos at eureka.edu.gr Tue Feb 11 15:09:19 2003 From: nacos at eureka.edu.gr (Michael K. Nacos) Date: Mon Aug 2 21:22:57 2004 Subject: [Athens-pm] perl drink Message-ID: <20030211210919.GA1385@eureka.edu.gr> may I suggest we meet for a drink in IPPOPOTAMOS Delfon St. (off Skoufa, Kolonaki, near Ippokratous St.) 21:00 tomorrow please reply to this message. i'd like to know who's coming. we're meeting inside. pl call 6945 332681 if you don't know where IPPOPOTAMOS is (or what we look like) ;-) Michael From lartis at ath.forthnet.gr Thu Feb 13 04:28:06 2003 From: lartis at ath.forthnet.gr (Vincent Kargatis / Anne Larson) Date: Mon Aug 2 21:22:57 2004 Subject: [Athens-pm] meeting References: <20030210211130.GB1424@eureka.edu.gr> Message-ID: <005c01c2d34b$25630710$22a010d5@dc.Blackboard.com> From: "Mark Pors" > PS Vincent, if you read this: please go on wednesday, otherwise there > will be an Athens mongers meeting 'in Greek' :-) Wish I could - we're in fire-fighting crunch mode at work, and since I telecommute to the US, I'm mostly working on their time, which is in the evenings. Just no chance to get out in the evenings recently, not if I want to keep working. :) vince From skatoulininis at yahoo.com Tue Feb 18 08:18:31 2003 From: skatoulininis at yahoo.com (Antonis Faragitakis) Date: Mon Aug 2 21:22:57 2004 Subject: [Athens-pm] seminar notes Message-ID: <20030218141831.47121.qmail@web40601.mail.yahoo.com> Hi everyone,\ is it possibly for those who missed the seminar go get the notes via e-mail!? Antonis From karjala at karjala.org Tue Feb 18 11:40:49 2003 From: karjala at karjala.org (Alexander Karelas) Date: Mon Aug 2 21:22:57 2004 Subject: [Athens-pm] seminar notes In-Reply-To: <20030218141831.47121.qmail@web40601.mail.yahoo.com> References: <20030218141831.47121.qmail@web40601.mail.yahoo.com> Message-ID: <20030218174049.GA1369@karjala.org> Huh? Which seminar? Alex On Tue, Feb 18, 2003 at 06:18:31AM -0800, Antonis Faragitakis wrote: > Hi everyone,\ > is it possibly for those who missed the seminar go get > the notes via e-mail!? > > Antonis > > _______________________________________________ > Athens-pm mailing list > Athens-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/athens-pm > From mark at dreamzpace.com Tue Feb 18 11:47:56 2003 From: mark at dreamzpace.com (Mark Pors) Date: Mon Aug 2 21:22:57 2004 Subject: [Athens-pm] seminar notes In-Reply-To: <20030218141831.47121.qmail@web40601.mail.yahoo.com> Message-ID: <5.1.0.14.2.20030218194707.052d9eb0@pop.green-globe.com> yeah, I'd be intered too Mark At 06:18 18-02-03 -0800, Antonis Faragitakis wrote: >Hi everyone,\ >is it possibly for those who missed the seminar go get >the notes via e-mail!? > >Antonis > >_______________________________________________ >Athens-pm mailing list >Athens-pm@mail.pm.org >http://mail.pm.org/mailman/listinfo/athens-pm From mark at dreamzpace.com Tue Feb 18 12:19:27 2003 From: mark at dreamzpace.com (Mark Pors) Date: Mon Aug 2 21:22:57 2004 Subject: [Athens-pm] seminar notes In-Reply-To: <20030218174049.GA1369@karjala.org> References: <20030218141831.47121.qmail@web40601.mail.yahoo.com> <20030218141831.47121.qmail@web40601.mail.yahoo.com> Message-ID: <5.1.0.14.2.20030218201846.057793a0@pop.green-globe.com> At 19:40 18-02-03 +0200, Alexander Karelas wrote: >Huh? >Which seminar? wasn't there a perl/tk seminar announced for last Sunday? Mark >Alex > >On Tue, Feb 18, 2003 at 06:18:31AM -0800, Antonis Faragitakis wrote: > > Hi everyone,\ > > is it possibly for those who missed the seminar go get > > the notes via e-mail!? > > > > Antonis > > > > _______________________________________________ > > Athens-pm mailing list > > Athens-pm@mail.pm.org > > http://mail.pm.org/mailman/listinfo/athens-pm > > >_______________________________________________ >Athens-pm mailing list >Athens-pm@mail.pm.org >http://mail.pm.org/mailman/listinfo/athens-pm From skatoulininis at yahoo.com Tue Feb 18 23:56:30 2003 From: skatoulininis at yahoo.com (Antonis Faragitakis) Date: Mon Aug 2 21:22:57 2004 Subject: [Athens-pm] seminar notes In-Reply-To: <20030218174049.GA1369@karjala.org> Message-ID: <20030219055630.5602.qmail@web40606.mail.yahoo.com> --- Alexander Karelas wrote: > Huh? > Which seminar? > > > Alex > --------------------------------------------------- From: "Michael K. Nacos" To: athens-pm@mail.pm.org Subject: [Athens-pm] meeting Date: Mon, 10 Feb 2003 23:11:31 +0200 Hi everybody! Tis that time of the month again :P Mark, r u back? I suggest we meet for a drink Wednesday. if you guys wanna do the Perl-Tk feature/tutorial/seminar/workshop I suggest we do it Sunday in Kypseli. Please let me know in advance, so as to buy enough coffee and spare keyboards for the day ;-) Michael --------------------------------------------------- This one! Antonis From nacos at eureka.edu.gr Wed Feb 19 00:04:49 2003 From: nacos at eureka.edu.gr (Michael K. Nacos) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] seminar notes In-Reply-To: <20030218141831.47121.qmail@web40601.mail.yahoo.com> References: <20030218141831.47121.qmail@web40601.mail.yahoo.com> Message-ID: <20030219060449.GA1389@eureka.edu.gr> Mark, Antoni and Alex: kalimera! i'll put some seminar notes online once they are ready. the seminar never materialized as there were no participants. if you guys are still interested, perhaps we could try again this Sunday. Michael ----- Original Message ----- From: "Antonis Faragitakis " To: To Athens-pm@mail.pm.org Date: Tue, 18 Feb, 2003 16:18 EET Subject: [Athens-pm] seminar notes > Hi everyone,\ > is it possibly for those who missed the seminar go get > the notes via e-mail!? > > Antonis > > _______________________________________________ > Athens-pm mailing list > Athens-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/athens-pm From mark at dreamzpace.com Wed Feb 19 03:44:25 2003 From: mark at dreamzpace.com (Mark Pors) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] seminar notes References: <20030218141831.47121.qmail@web40601.mail.yahoo.com> <20030219060449.GA1389@eureka.edu.gr> Message-ID: <3E5351F9.6010000@dreamzpace.com> Michael K. Nacos wrote: > Mark, Antoni and Alex: > kalimera! > i'll put some seminar notes online once they are ready. > the seminar never materialized as there were no participants. > if you guys are still interested, perhaps we could try again this Sunday. I am! Mark > > Michael > > ----- Original Message ----- > From: "Antonis Faragitakis " > To: To Athens-pm@mail.pm.org > Date: Tue, 18 Feb, 2003 16:18 EET > Subject: [Athens-pm] seminar notes > > >>Hi everyone,\ >>is it possibly for those who missed the seminar go get >>the notes via e-mail!? >> >>Antonis >> >>_______________________________________________ >>Athens-pm mailing list >>Athens-pm@mail.pm.org >>http://mail.pm.org/mailman/listinfo/athens-pm > > _______________________________________________ > Athens-pm mailing list > Athens-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/athens-pm > > From gepiti at eexi.gr Wed Feb 19 04:10:29 2003 From: gepiti at eexi.gr (Giorgos Epitidios) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] seminar notes References: <20030218141831.47121.qmail@web40601.mail.yahoo.com> <20030219060449.GA1389@eureka.edu.gr> <3E5351F9.6010000@dreamzpace.com> Message-ID: <008b01c2d7ff$3f370d40$6513a8c0@forthnet.gr> I too would be interested but I am unavailable for this but also for next Sunday :-( Good learning to you all. Giorgos Epitidios ----- Original Message ----- From: "Mark Pors" To: Sent: Wednesday, February 19, 2003 11:44 AM Subject: Re: [Athens-pm] seminar notes > Michael K. Nacos wrote: > > Mark, Antoni and Alex: > > kalimera! > > i'll put some seminar notes online once they are ready. > > the seminar never materialized as there were no participants. > > if you guys are still interested, perhaps we could try again this Sunday. > > I am! > > Mark > > > > > Michael > > > > ----- Original Message ----- > > From: "Antonis Faragitakis " > > To: To Athens-pm@mail.pm.org > > Date: Tue, 18 Feb, 2003 16:18 EET > > Subject: [Athens-pm] seminar notes > > > > > >>Hi everyone,\ > >>is it possibly for those who missed the seminar go get > >>the notes via e-mail!? > >> > >>Antonis > >> > >>_______________________________________________ > >>Athens-pm mailing list > >>Athens-pm@mail.pm.org > >>http://mail.pm.org/mailman/listinfo/athens-pm > > > > _______________________________________________ > > Athens-pm mailing list > > Athens-pm@mail.pm.org > > http://mail.pm.org/mailman/listinfo/athens-pm > > > > > > > _______________________________________________ > Athens-pm mailing list > Athens-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/athens-pm > From nacos at eureka.edu.gr Thu Feb 20 05:33:54 2003 From: nacos at eureka.edu.gr (Michael K. Nacos) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] Tk Sunday In-Reply-To: <3E5351F9.6010000@dreamzpace.com> References: <20030218141831.47121.qmail@web40601.mail.yahoo.com> <20030219060449.GA1389@eureka.edu.gr> <3E5351F9.6010000@dreamzpace.com> Message-ID: <20030220113353.GA1812@eureka.edu.gr> ok then, let's give this a try. Perl/Tk workshop Sunday 23.02.03 17:00 eurek@! ΠΛΗΡΟΦΟΡΙΚΗ Φαιδριάδων 38, Κυψέλη all welcome. basic perl a must. please see http://eureka.edu.gr for directions 6945 332681 From skatoulininis at yahoo.com Thu Feb 20 10:56:03 2003 From: skatoulininis at yahoo.com (Antonis Faragitakis) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] cgi-html linking... In-Reply-To: <20030220113353.GA1812@eureka.edu.gr> Message-ID: <20030220165603.6276.qmail@web40611.mail.yahoo.com> hi all, programatizo ena website to opoio to exo kanei attach sto e-mail auto. exo tin eksis aporia, pos mporo na kaleso subroutines meso tis html px me to tag . katalabeno oti den ginete auto giati i html de mpori na 'dei' codika tis perl. yparxei kapoios allos tropos na ginei auto!? kamia idea!? Antonis -------------- next part -------------- A non-text attachment was scrubbed... Name: htdocs.zip Type: application/x-zip-compressed Size: 3066 bytes Desc: htdocs.zip Url : http://mail.pm.org/pipermail/athens-pm/attachments/20030220/76ceb2d1/htdocs.bin From ktop at hellug.gr Thu Feb 20 16:40:56 2003 From: ktop at hellug.gr (Topoglidis Con/nos) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] cgi-html linking... In-Reply-To: <20030220165603.6276.qmail@web40611.mail.yahoo.com> References: <20030220113353.GA1812@eureka.edu.gr> <20030220165603.6276.qmail@web40611.mail.yahoo.com> Message-ID: <20030220224056.GA31437@hellug.gr> kalispera, prosopika den katalava ti les .... exo tin entiposi pos i lista einai sta agglika (oxi aparaitita) anyway .. ola ta mail pou exo dei einai sta agglika :) ----- Hello, personaly .. I didn't understand completly what you said ... I think that you mean the cascade style sheets though! you can find infos at www.w3c.org (or we can (or I can help) if you define the problem ...) On Thu, Feb 20, 2003 at 08:56:03AM -0800, Antonis Faragitakis wrote: > hi all, > > programatizo ena website to opoio to exo kanei attach > sto e-mail auto. exo tin > eksis aporia, pos mporo na kaleso subroutines meso tis > html px me to tag . > katalabeno oti den ginete auto giati i html de mpori > na 'dei' codika tis perl. > yparxei kapoios allos tropos na ginei auto!? > kamia idea!? > > Antonis -- Topoglidis Con/nos (Trying only ... to learn!) From skatoulininis at yahoo.com Fri Feb 21 00:56:42 2003 From: skatoulininis at yahoo.com (Antonis Faragitakis) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] cgi-html linking .... [EN Version] Message-ID: <20030221065642.23857.qmail@web40607.mail.yahoo.com> ok! from the beggining , i'm creating a web site that will contains some links, for example "Notepad", "Address Book" etc etc. I want that links when they are clicked to call some code from inside the perl script (in this case "login.pl" script). How can i do that, without the html's tag!? Antonis From mark at dreamzpace.com Fri Feb 21 03:54:31 2003 From: mark at dreamzpace.com (Mark Pors) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] cgi-html linking... In-Reply-To: <20030220224056.GA31437@hellug.gr> References: <20030220113353.GA1812@eureka.edu.gr> <20030220165603.6276.qmail@web40611.mail.yahoo.com> <20030220224056.GA31437@hellug.gr> Message-ID: <3E55F757.7090001@dreamzpace.com> Topoglidis Con/nos wrote: >kalispera, >prosopika den katalava ti les .... >exo tin entiposi pos i lista einai sta agglika (oxi aparaitita) >anyway .. ola ta mail pou exo dei einai sta agglika :) > > yeah but thats because the first two members of athens.pm are not Greek now that the majority is Greek I'd say: please go ahead. we are in Greece after all I'll keep on mailing in English for a while though... Mark >----- >Hello, >personaly .. I didn't understand completly what you said ... >I think that you mean the cascade style sheets though! > >you can find infos at www.w3c.org >(or we can (or I can help) if you define the problem ...) > > > > >On Thu, Feb 20, 2003 at 08:56:03AM -0800, Antonis Faragitakis wrote: > > >>hi all, >> >>programatizo ena website to opoio to exo kanei attach >>sto e-mail auto. exo tin >>eksis aporia, pos mporo na kaleso subroutines meso tis >>html px me to tag . >>katalabeno oti den ginete auto giati i html de mpori >>na 'dei' codika tis perl. >>yparxei kapoios allos tropos na ginei auto!? >>kamia idea!? >> >>Antonis >> >> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/athens-pm/attachments/20030221/2700b2e0/attachment.htm From mark at dreamzpace.com Fri Feb 21 04:04:02 2003 From: mark at dreamzpace.com (Mark Pors) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] cgi-html linking .... [EN Version] In-Reply-To: <20030221065642.23857.qmail@web40607.mail.yahoo.com> References: <20030221065642.23857.qmail@web40607.mail.yahoo.com> Message-ID: <3E55F992.7060906@dreamzpace.com> Hi Antonis, Antonis Faragitakis wrote: >ok! >from the beggining , i'm creating a web site that will >contains some links, for example "Notepad", "Address >Book" etc etc. >I want that links when they are clicked to call some >code from inside the perl script (in this case >"login.pl" script). How can i do that, without the >html's tag!? > I'm not sure if I understand you (even now it is in English :-)) A link is per definition a tag, so why should you want without it? anyway, for a perl script you'll have to retrieve the script from the server, so you are stuck to a link or some javascript onClick thingies please give us some more info on what you want to accomplish Mark > >Antonis >_______________________________________________ >Athens-pm mailing list >Athens-pm@mail.pm.org >http://mail.pm.org/mailman/listinfo/athens-pm > > > > From pjlees at ics.forth.gr Fri Feb 21 04:06:36 2003 From: pjlees at ics.forth.gr (Philip Lees) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] cgi-html linking .... [EN Version] In-Reply-To: <20030221065642.23857.qmail@web40607.mail.yahoo.com> Message-ID: <000a01c2d990$eb2a6f60$44be5b8b@ics.forth.gr> > I want that links when they are clicked to call some > code from inside the perl script (in this case > "login.pl" script). How can i do that, without the > html's tag!? This is confusing - a clickable link means that there _must be_ an tag. There are two ways of invoking a perl (or other CGI) script from a Web page: 1. Use a form with one or more Submit buttons. Specify your script name for the form's 'action' parameter and use fields (hidden fields if necessary) to pass parameters to your script. 2. Use a direct link, e.g. Click this If your arguments can contain spaces or strange characters you should pass them through the URI::Escape module to be sure the link will work on all browsers. It may be useful for you to look at the OpenECG Web site (which I maintain :-] ): http://www.openecg.net The main part of the site is handled by just one Perl script, which is passed arguments that tell it what to display for each link. The code in your login.pl script looks fine. A couple of comments: > my %levels = (0 => "\"the bastard\"", > 1 => "\"just another user\"", > 2 => "\"configure it!\""); If you use single quotes you don't need to do the escaping, e.g. my %levels = (0 => '"the bastard"', But that's too hard to read, so use q: my %levels = (0 => q("the bastard"), Same here: > $cgi->p('You\'re not logged in.', $cgi->p( q(You're not logged in.), It's good that you check the success of open: > open (USERCOUNT, $file) or die ("Cannot open $file") but if it ever fails, you won't know why. Get the error message from perl: open (USERCOUNT, $file) or die ("Cannot open $file: $!") I hope this is of some help. Philip -- Philip Lees Working Group on Cardiology ICS-FORTH, Science and Technology Park of Crete Vassilika Vouton, P.O. Box 1385, GR 711 10 Heraklion, Crete, GREECE tel.: +30-2810-391680, fax: +30-2810-391601, e-mail: pjlees@ics.forth.gr 'The aim of high technology should be to simplify, not complicate' - Hans Christian von Baeyer From pjlees at ics.forth.gr Fri Feb 21 04:12:22 2003 From: pjlees at ics.forth.gr (Philip Lees) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] OpenECG programming contest Message-ID: <000b01c2d991$b9cfe4d0$44be5b8b@ics.forth.gr> After sending my last reply I realised that I should really have told you all about this before. Anyway, there's plenty of time. Visit: http://www.openecg.net and click on Programming Contest. Prizes total 10,000 Euros. Please pass this on to anyone who might be interested. Philip -- Philip Lees Working Group on Cardiology ICS-FORTH, Science and Technology Park of Crete Vassilika Vouton, P.O. Box 1385, GR 711 10 Heraklion, Crete, GREECE tel.: +30-2810-391680, fax: +30-2810-391601, e-mail: pjlees@ics.forth.gr 'The aim of high technology should be to simplify, not complicate' - Hans Christian von Baeyer From skatoulininis at yahoo.com Fri Feb 21 05:55:19 2003 From: skatoulininis at yahoo.com (Antonis Faragitakis) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] cgi-html linking .... [EN Version] Message-ID: <20030221115519.6078.qmail@web40602.mail.yahoo.com> thanks Philip, this is the answer i was looking for! thanks for the last comments too! Antonis --- Philip Lees wrote: > > I want that links when they are clicked to call > some > code from inside the perl script (in this case > "login.pl" script). How can i do that, without > the > html's tag!? > > This is confusing - a clickable link means that > there _must be_ an > tag. > > There are two ways of invoking a perl (or other > CGI) > script from a Web > page: > > 1. Use a form with one or more Submit buttons. > Specify your script name > for the form's 'action' parameter and use fields > (hidden fields if > necessary) to pass parameters to your script. > > 2. Use a direct link, e.g. > > href="my_script.pl? > argument1=string;argument2=123;argument3=no"> > Click this > > If your arguments can contain spaces or strange > characters you should > pass them through the URI::Escape module to be > sure > the link will work > on all browsers. > > It may be useful for you to look at the OpenECG > Web > site (which I > maintain :-] ): > > http://www.openecg.net > > The main part of the site is handled by just one > Perl script, which is > passed arguments that tell it what to display for > each link. > > The code in your login.pl script looks fine. A > couple of comments: > > my %levels = (0 => "\"the bastard\"", > 1 => "\"just another user\"", > 2 => "\"configure it!\""); > > If you use single quotes you don't need to do the > escaping, e.g. > > my %levels = (0 => '"the bastard"', > > But that's too hard to read, so use q: > > my %levels = (0 => q("the bastard"), > > Same here: > > $cgi->p('You\'re not logged in.', > > $cgi->p( q(You're not logged in.), > > It's good that you check the success of open: > > open (USERCOUNT, $file) or die ("Cannot open > $file") > > but if it ever fails, you won't know why. Get the > error message from > perl: > > open (USERCOUNT, $file) or die ("Cannot open > $file: > $!") > > I hope this is of some help. > > Philip > -- > Philip Lees > Working Group on Cardiology > ICS-FORTH, Science and Technology Park of Crete > Vassilika Vouton, P.O. Box 1385, GR 711 10 > Heraklion, Crete, GREECE > > tel.: +30-2810-391680, fax: +30-2810-391601, > e-mail: > pjlees@ics.forth.gr From pjlees at ics.forth.gr Fri Feb 21 07:43:47 2003 From: pjlees at ics.forth.gr (Philip Lees) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] RE: about my web site In-Reply-To: <20030221121336.88819.qmail@web40605.mail.yahoo.com> Message-ID: <001401c2d9af$44358ea0$44be5b8b@ics.forth.gr> Antonis Faragitakis wrote: > I believe that the website must connect to a db (like mysql) to keep users/access > levels instead of flat db. what is your opinion about that?! I'm replying to the list because maybe some other opinions could be useful. It depends how many users you expect. I use mysql for the OpenECG members' database and for a few other things. With Perl's DBI module I find it very easy to use and I'm quite happy with it. If you use DBI you could start out with a flat file and then move to mysql if it becomes necessary. That's very easy with DBI if you're only doing standard SQL stuff. Philip -- Philip Lees Working Group on Cardiology ICS-FORTH, Science and Technology Park of Crete Vassilika Vouton, P.O. Box 1385, GR 711 10 Heraklion, Crete, GREECE tel.: +30-2810-391680, fax: +30-2810-391601, e-mail: pjlees@ics.forth.gr 'The aim of high technology should be to simplify, not complicate' - Hans Christian von Baeyer From skatoulininis at yahoo.com Sat Feb 22 06:22:48 2003 From: skatoulininis at yahoo.com (Antonis Faragitakis) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] HTML::Template.... Message-ID: <20030222122248.58336.qmail@web40610.mail.yahoo.com> Hi everyone! I can't figure out what is wrong with the following code: ###################HTML TEMPLATE##################### Welcome <TMPL_VAR NAME=user_name> to your place
Welcome back ! We have let you in times!
Your access is restricted to level.
###################HTML TEMPLATE##################### ###################PERL##################### #!/usr/bin/perl -w use strict; use CGI; use CGI::Carp qw(fatalsToBrowser); use HTML::Template; my $cgi = new CGI; my $template = HTML::Template->new(filename => 'head.tmpl'); print $cgi->header; $template ->param(user_name => 'antonis'); $template ->param(acclevel => 'the bastard'); $template ->param(usercount => '10'); $template->output(); ###################PERL##################### any help!? Antonis From mark at dreamzpace.com Mon Feb 24 04:01:42 2003 From: mark at dreamzpace.com (Mark Pors) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] HTML::Template.... In-Reply-To: <20030222122248.58336.qmail@web40610.mail.yahoo.com> Message-ID: <5.1.0.14.2.20030224120038.030fc2f8@pop.green-globe.com> Ha Antonis, Did you solve it yet? If not, what does the perl interpreter complain about? Mark At 04:22 22/02/2003 -0800, Antonis Faragitakis wrote: >Hi everyone! > >I can't figure out what is wrong with the following >code: > >###################HTML TEMPLATE##################### >Transitional//EN" >"http://www.w3.org/TR/html4/loose.dtd"> > >Welcome back ! We have let you in times! > >---------- >Your access is restricted to level. >###################HTML TEMPLATE##################### > >###################PERL##################### > >#!/usr/bin/perl -w >use strict; >use CGI; >use CGI::Carp qw(fatalsToBrowser); >use HTML::Template; >my $cgi = new CGI; >my $template = HTML::Template->new(filename => >'head.tmpl'); >print $cgi->header; >$template ->param(user_name => 'antonis'); >$template ->param(acclevel => 'the bastard'); >$template ->param(usercount => '10'); >$template->output(); > >###################PERL##################### >any help!? > >Antonis > >_______________________________________________ >Athens-pm mailing list >Athens-pm@mail.pm.org >http://mail.pm.org/mailman/listinfo/athens-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/athens-pm/attachments/20030224/f19cb623/attachment.htm From pjlees at ics.forth.gr Mon Feb 24 04:01:52 2003 From: pjlees at ics.forth.gr (Philip Lees) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] HTML::Template.... In-Reply-To: <20030222122248.58336.qmail@web40610.mail.yahoo.com> Message-ID: <000401c2dbeb$c2030310$44be5b8b@ics.forth.gr> > I can't figure out what is wrong with the following > code: I've never used HTML::Template, but there doesn't seem to be anything obviously wrong. What output/error messages/warnings are you getting? Philip -- Philip Lees Working Group on Cardiology ICS-FORTH, Science and Technology Park of Crete Vassilika Vouton, P.O. Box 1385, GR 711 10 Heraklion, Crete, GREECE tel.: +30-2810-391680, fax: +30-2810-391601, e-mail: pjlees@ics.forth.gr 'The aim of high technology should be to simplify, not complicate' - Hans Christian von Baeyer From mark at dreamzpace.com Mon Feb 24 04:08:25 2003 From: mark at dreamzpace.com (Mark Pors) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] HTML::Template.... In-Reply-To: <000401c2dbeb$c2030310$44be5b8b@ics.forth.gr> References: <20030222122248.58336.qmail@web40610.mail.yahoo.com> Message-ID: <5.1.0.14.2.20030224120748.030bb420@pop.dreamzpace.com> At 12:01 24/02/2003 +0200, Philip Lees wrote: > > I can't figure out what is wrong with the following > > code: > >I've never used HTML::Template, but there doesn't seem to be anything >obviously wrong. > >What output/error messages/warnings are you getting? :-) we must have been on the same brainwavelenght, sent at the same moment Mark >Philip >-- >Philip Lees >Working Group on Cardiology >ICS-FORTH, Science and Technology Park of Crete >Vassilika Vouton, P.O. Box 1385, GR 711 10 Heraklion, Crete, GREECE > >tel.: +30-2810-391680, fax: +30-2810-391601, e-mail: pjlees@ics.forth.gr > >'The aim of high technology should be to simplify, not complicate' - >Hans Christian von Baeyer > >_______________________________________________ >Athens-pm mailing list >Athens-pm@mail.pm.org >http://mail.pm.org/mailman/listinfo/athens-pm From pjlees at ics.forth.gr Mon Feb 24 04:19:24 2003 From: pjlees at ics.forth.gr (Philip Lees) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] HTML::Template.... In-Reply-To: <5.1.0.14.2.20030224120748.030bb420@pop.dreamzpace.com> Message-ID: <000801c2dbee$34ac6d50$44be5b8b@ics.forth.gr> > :-) > we must have been on the same brainwavelenght, sent at the same moment > > Mark Right. I noticed. A good sign? Philip -- Philip Lees Working Group on Cardiology ICS-FORTH, Science and Technology Park of Crete Vassilika Vouton, P.O. Box 1385, GR 711 10 Heraklion, Crete, GREECE tel.: +30-2810-391680, fax: +30-2810-391601, e-mail: pjlees@ics.forth.gr 'The aim of high technology should be to simplify, not complicate' - Hans Christian von Baeyer From mark at dreamzpace.com Mon Feb 24 04:35:19 2003 From: mark at dreamzpace.com (Mark Pors) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] HTML::Template.... In-Reply-To: <000801c2dbee$34ac6d50$44be5b8b@ics.forth.gr> References: <5.1.0.14.2.20030224120748.030bb420@pop.dreamzpace.com> Message-ID: <5.1.0.14.2.20030224123411.06f732f8@pop.green-globe.com> At 12:19 24/02/2003 +0200, Philip Lees wrote: > > :-) > > we must have been on the same brainwavelenght, sent at the same moment > > > > Mark > >Right. I noticed. A good sign? I dunno, I suppose so.. Mark >Philip >-- >Philip Lees >Working Group on Cardiology >ICS-FORTH, Science and Technology Park of Crete >Vassilika Vouton, P.O. Box 1385, GR 711 10 Heraklion, Crete, GREECE > >tel.: +30-2810-391680, fax: +30-2810-391601, e-mail: pjlees@ics.forth.gr > >'The aim of high technology should be to simplify, not complicate' - >Hans Christian von Baeyer > > >_______________________________________________ >Athens-pm mailing list >Athens-pm@mail.pm.org >http://mail.pm.org/mailman/listinfo/athens-pm From nacos at eureka.edu.gr Mon Feb 24 05:25:46 2003 From: nacos at eureka.edu.gr (Michael K. Nacos) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] brainwaves Message-ID: <20030224112546.GA2468@eureka.edu.gr> quick message to say I'll post some Perl/Tk notes later this week. thanks to everyone for coming. it's a weird idea of fun, perl hacking on a Sun evening, nevertheless it was fun. here's to doing it again some time soon. perhaps the next one will be Perl/Tk II -> *Monopoly* ;-) or any other Perl related subject. Please feel free to suggest. Philip, were your fingers itching for a Perl/Tk triliza/tic-tac-toe last night? - just keeping the new brainwave thread alive :-D michael From skatoulininis at yahoo.com Mon Feb 24 05:44:00 2003 From: skatoulininis at yahoo.com (Antonis Faragitakis) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] brainwaves In-Reply-To: <20030224112546.GA2468@eureka.edu.gr> Message-ID: <20030224114400.6274.qmail@web40612.mail.yahoo.com> Hi Michael I'd like the next meeting to learn about the perl DBI, i think it's more usefull than TK (what i believe). Perl is a command line programming languange and should be kept like that! Antonis! x(: P.S>Ok i admit it! i want to learn DBI --- "Michael K. Nacos" wrote: > > quick message to say I'll post some Perl/Tk notes > later this week. thanks to everyone for coming. it's > a weird idea of fun, perl hacking on a Sun evening, > nevertheless it was fun. here's to doing it again > some time soon. perhaps the next one will be Perl/Tk > II -> *Monopoly* ;-) or any other Perl related > subject. Please feel free to suggest. Philip, were > your fingers itching for a Perl/Tk > triliza/tic-tac-toe last night? - just keeping the > new brainwave thread alive :-D > > michael > > _______________________________________________ > Athens-pm mailing list > Athens-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/athens-pm From pjlees at ics.forth.gr Mon Feb 24 06:20:10 2003 From: pjlees at ics.forth.gr (Philip Lees) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] brainwaves In-Reply-To: <20030224112546.GA2468@eureka.edu.gr> Message-ID: <000a01c2dbff$137f2bc0$44be5b8b@ics.forth.gr> > Philip, were > your fingers itching for a Perl/Tk triliza/tic-tac-toe last > night? - just keeping the new brainwave thread alive :-D > > michael I'm afraid that Perl/Tk was far from my thoughts yesterday evening. I've done a bit of Tk'ing, though. Here's a Tk JAPH (not mine). Philip -- Philip Lees Working Group on Cardiology ICS-FORTH, Science and Technology Park of Crete Vassilika Vouton, P.O. Box 1385, GR 711 10 Heraklion, Crete, GREECE tel.: +30-2810-391680, fax: +30-2810-391601, e-mail: pjlees@ics.forth.gr 'The aim of high technology should be to simplify, not complicate' - Hans Christian von Baeyer -------------- next part -------------- A non-text attachment was scrubbed... Name: JAPH_Tk_1.pl Type: application/octet-stream Size: 327 bytes Desc: not available Url : http://mail.pm.org/pipermail/athens-pm/attachments/20030224/b8e5e29f/JAPH_Tk_1.obj From mark at dreamzpace.com Tue Feb 25 05:18:39 2003 From: mark at dreamzpace.com (Mark Pors) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] brainwaves In-Reply-To: <20030224112546.GA2468@eureka.edu.gr> References: <20030224112546.GA2468@eureka.edu.gr> Message-ID: <3E5B510F.7080409@dreamzpace.com> Michael K. Nacos wrote: >quick message to say I'll post some Perl/Tk notes later this week. thanks to everyone for coming. > thanx for getting us started with Tk! >it's a weird idea of fun, perl hacking on a Sun evening, nevertheless it was fun. here's to doing it again some time soon. perhaps the next one will be Perl/Tk II -> *Monopoly* ;-) or any other Perl related subject. Please feel free to suggest. > I'd like a Tk II session. Other things that I'd like to know more about the lazy way: - mod_perl - daemons and forking and all that Something I could talk about myself on a athens.pm-sunday-seminar is e.g. the LWP module. Mark > Philip, were your fingers itching for a Perl/Tk triliza/tic-tac-toe last night? - just keeping the new brainwave thread alive :-D > >michael > >_______________________________________________ >Athens-pm mailing list >Athens-pm@mail.pm.org >http://mail.pm.org/mailman/listinfo/athens-pm > > > > From skatoulininis at yahoo.com Wed Feb 26 11:16:32 2003 From: skatoulininis at yahoo.com (Antonis Faragitakis) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] Click this and the perl code: $cgi->param("goto_url"); if ($goto_url eq 'test' and $user_pass) { $cgi->start_html(-title=>'It works'). $cgi->p(q(Ok it works)). $cgi->end_html(); } ok i know this code sucks, but i cant think something better than this! any help please! Antonis! From mark at dreamzpace.com Wed Feb 26 12:00:50 2003 From: mark at dreamzpace.com (Mark Pors) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] Click this > > and the perl code: > $cgi->param("goto_url"); > I think you gotto do: $goto_url = $cgi->param("goto_url"); mark > if ($goto_url eq 'test' and $user_pass) { > $cgi->start_html(-title=>'It works'). > $cgi->p(q(Ok it works)). > $cgi->end_html(); > } > > ok i know this code sucks, but i cant think something > better than this! > any help please! > > Antonis! > > _______________________________________________ > Athens-pm mailing list > Athens-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/athens-pm > > From skatoulininis at yahoo.com Wed Feb 26 12:14:51 2003 From: skatoulininis at yahoo.com (Antonis Faragitakis) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] wrote: > Antonis Faragitakis wrote: > > hello everyone, > > > > can;t make it work: > > > > we have the following html code: > > Click this > > > > and the perl code: > > $cgi->param("goto_url"); > > > > I think you gotto do: > $goto_url = $cgi->param("goto_url"); > > mark > > > if ($goto_url eq 'test' and $user_pass) { > > $cgi->start_html(-title=>'It works'). > > $cgi->p(q(Ok it works)). > > $cgi->end_html(); > > } > > > > ok i know this code sucks, but i cant think > something > > better than this! > > any help please! > > > > Antonis! > > > > _______________________________________________ > > Athens-pm mailing list > > Athens-pm@mail.pm.org > > http://mail.pm.org/mailman/listinfo/athens-pm > > > > > > > _______________________________________________ > Athens-pm mailing list > Athens-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/athens-pm -------------- next part -------------- A non-text attachment was scrubbed... Name: htdocs.zip Type: application/x-zip-compressed Size: 7573 bytes Desc: htdocs.zip Url : http://mail.pm.org/pipermail/athens-pm/attachments/20030226/317a1ab6/htdocs.bin From mark at dreamzpace.com Wed Feb 26 16:19:32 2003 From: mark at dreamzpace.com (Mark Pors) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] start_html(-title=>'It works'). $q->p(q(Ok it works)). $q->end_html(); } Identical to your code I'd say.... Mark Antonis Faragitakis wrote: > Oh sorry guys, i forgot some crucial instructions: > i've already > $goto_url = $cgi->param("goto_url"); > mark > the problem is that when i click the link it displays > me the message "you need to log in". that means that > the code supposed that im not currently loged in. > i'll attach the site to get the code entirely > > --- Mark Pors wrote: > >>Antonis Faragitakis wrote: >> >>>hello everyone, >>> >>>can;t make it work: >>> >>>we have the following html code: >>>Click this >>> >>>and the perl code: >>>$cgi->param("goto_url"); >>> >> >>I think you gotto do: >>$goto_url = $cgi->param("goto_url"); >> >>mark >> >> >>>if ($goto_url eq 'test' and $user_pass) { >>> $cgi->start_html(-title=>'It works'). >>> $cgi->p(q(Ok it works)). >>> $cgi->end_html(); >>>} >>> >>>ok i know this code sucks, but i cant think >> >>something >> >>>better than this! >>>any help please! >>> >>>Antonis! >>> >>>_______________________________________________ >>>Athens-pm mailing list >>>Athens-pm@mail.pm.org >>>http://mail.pm.org/mailman/listinfo/athens-pm >>> >>> >> >> >>_______________________________________________ >>Athens-pm mailing list >>Athens-pm@mail.pm.org >>http://mail.pm.org/mailman/listinfo/athens-pm > From pjlees at ics.forth.gr Thu Feb 27 03:17:17 2003 From: pjlees at ics.forth.gr (Philip Lees) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] > This works for me if I call the script with '?goto_url=test': On the other hand, Antonis' index.htm invokes the script as follows:
There's no ?goto_url in there. I don't know what happens if you try to mix form field parameters and URL type arguments. Probably better not to. I don't understand why you need to pass goto_url as a parameter anyway. If you must do that, why not just use a hidden form field: Philip -- Philip Lees Working Group on Cardiology ICS-FORTH, Science and Technology Park of Crete Vassilika Vouton, P.O. Box 1385, GR 711 10 Heraklion, Crete, GREECE tel.: +30-2810-391680, fax: +30-2810-391601, e-mail: pjlees@ics.forth.gr 'The aim of high technology should be to simplify, not complicate' - Hans Christian von Baeyer From skatoulininis at yahoo.com Thu Feb 27 04:19:01 2003 From: skatoulininis at yahoo.com (Antonis Faragitakis) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] so when i call for example "login.pl?goto_url=notepad" it should work. Am I right Philip!? PS. What is the purpose of using hidden fields!? Antonis --- Philip Lees wrote: > Aaargh! I said this: > > > However, I think the main problem with Antonis' > login script is this: > > > > my $goto_url = $cgi->param("goto_url"); > > But I failed to notice this: > > > > This works for me if I call the script with > '?goto_url=test': > > On the other hand, Antonis' index.htm invokes the > script as follows: > > enctype="application/x-www-form-urlencoded" > action="http://localhost/login.pl"> > > There's no ?goto_url in there. > > I don't know what happens if you try to mix form > field parameters and > URL type arguments. Probably better not to. I don't > understand why you > need to pass goto_url as a parameter anyway. If you > must do that, why > not just use a hidden form field: > > > > Philip > -- > Philip Lees > Working Group on Cardiology > ICS-FORTH, Science and Technology Park of Crete > Vassilika Vouton, P.O. Box 1385, GR 711 10 > Heraklion, Crete, GREECE > > tel.: +30-2810-391680, fax: +30-2810-391601, e-mail: > pjlees@ics.forth.gr > > 'The aim of high technology should be to simplify, > not complicate' - > Hans Christian von Baeyer > > _______________________________________________ > Athens-pm mailing list > Athens-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/athens-pm From mark at dreamzpace.com Thu Feb 27 04:29:36 2003 From: mark at dreamzpace.com (Mark Pors) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] enctype="application/x-www-form-urlencoded" > action="http://localhost/login.pl?goto_url=main"> >so when i call for example "login.pl?goto_url=notepad" >it should work. Am I right Philip!? > >PS. What is the purpose of using hidden fields!? you could also put the value in a hidden field within the form like has the same effect Mark >Antonis >--- Philip Lees wrote: > > Aaargh! I said this: > > > > > However, I think the main problem with Antonis' > > login script is this: > > > > > > my $goto_url = $cgi->param("goto_url"); > > > > But I failed to notice this: > > > > > > This works for me if I call the script with > > '?goto_url=test': > > > > On the other hand, Antonis' index.htm invokes the > > script as follows: > > > > > enctype="application/x-www-form-urlencoded" > > action="http://localhost/login.pl"> > > > > There's no ?goto_url in there. > > > > I don't know what happens if you try to mix form > > field parameters and > > URL type arguments. Probably better not to. I don't > > understand why you > > need to pass goto_url as a parameter anyway. If you > > must do that, why > > not just use a hidden form field: > > > > > > > > Philip > > -- > > Philip Lees > > Working Group on Cardiology > > ICS-FORTH, Science and Technology Park of Crete > > Vassilika Vouton, P.O. Box 1385, GR 711 10 > > Heraklion, Crete, GREECE > > > > tel.: +30-2810-391680, fax: +30-2810-391601, e-mail: > > pjlees@ics.forth.gr > > > > 'The aim of high technology should be to simplify, > > not complicate' - > > Hans Christian von Baeyer > > > > _______________________________________________ > > Athens-pm mailing list > > Athens-pm@mail.pm.org > > http://mail.pm.org/mailman/listinfo/athens-pm > >_______________________________________________ >Athens-pm mailing list >Athens-pm@mail.pm.org >http://mail.pm.org/mailman/listinfo/athens-pm From pjlees at ics.forth.gr Thu Feb 27 04:31:32 2003 From: pjlees at ics.forth.gr (Philip Lees) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] enctype="application/x-www-form-urlencoded" > action="http://localhost/login.pl?goto_url=main"> > so when i call for example "login.pl?goto_url=notepad" > it should work. Am I right Philip!? It has a much better chance of working now, yes. However, as I said, I don't know what happens if you mix form fields and URL parameters. Perl probably handles them correctly, but I'm not sure. > PS. What is the purpose of using hidden fields!? To avoid mixing form fields and URL parameters :-) A more correct answer is that you use hidden fields to pass values that you don't want to appear in the browser window. Of course, if the user clicks View Source, they'll be there for all to see. Philip -- Philip Lees Working Group on Cardiology ICS-FORTH, Science and Technology Park of Crete Vassilika Vouton, P.O. Box 1385, GR 711 10 Heraklion, Crete, GREECE tel.: +30-2810-391680, fax: +30-2810-391601, e-mail: pjlees@ics.forth.gr 'The aim of high technology should be to simplify, not complicate' - Hans Christian von Baeyer From pjlees at ics.forth.gr Thu Feb 27 04:33:08 2003 From: pjlees at ics.forth.gr (Philip Lees) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] > > has the same effect Er ... didn't I just say that? Philip -- Philip Lees Working Group on Cardiology ICS-FORTH, Science and Technology Park of Crete Vassilika Vouton, P.O. Box 1385, GR 711 10 Heraklion, Crete, GREECE tel.: +30-2810-391680, fax: +30-2810-391601, e-mail: pjlees@ics.forth.gr 'The aim of high technology should be to simplify, not complicate' - Hans Christian von Baeyer From mark at dreamzpace.com Thu Feb 27 04:36:23 2003 From: mark at dreamzpace.com (Mark Pors) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] greek chars Message-ID: <5.1.0.14.2.20030227122621.0308f278@pop.dreamzpace.com> Hi, This is a bit off-topic but I'm sure one of you has experience with this. A translator provides me with text in Greek (real Greek not greeklish) in a MS Word file. When I open the word file, it all looks fine, the Greek characters show up OK. I want this text in a text-file however (to put it into a database later on). Since normal ASCII doesn't support Greek chars the following things don't work: - save word file as text - copy text from word file and paste in a text editor. So what do I do in order to get this text in a database, and then when I retrieve it from the database and print it to a HTML page, it shows up in Greek? Please help! Mark From mark at green-globe.com Thu Feb 27 04:39:35 2003 From: mark at green-globe.com (Mark Pors) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] > > > > has the same effect > >Er ... didn't I just say that? ah yeah! sorry I should read incomming e-mail :-) BTW mixing POST and GET vars shouldn't be a problem (as long as they are not the same, and you can't control the order) Mark >Philip >-- >Philip Lees >Working Group on Cardiology >ICS-FORTH, Science and Technology Park of Crete >Vassilika Vouton, P.O. Box 1385, GR 711 10 Heraklion, Crete, GREECE > >tel.: +30-2810-391680, fax: +30-2810-391601, e-mail: pjlees@ics.forth.gr > >'The aim of high technology should be to simplify, not complicate' - >Hans Christian von Baeyer > >_______________________________________________ >Athens-pm mailing list >Athens-pm@mail.pm.org >http://mail.pm.org/mailman/listinfo/athens-pm ---------------------------------------- Green Globe One More Tree! E-mail: info@green-globe.com WWW: http://www.green-globe.com Tel/Fax: +1 530 325 8078 ---------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/athens-pm/attachments/20030227/e9093537/attachment.htm From pjlees at ics.forth.gr Thu Feb 27 05:50:52 2003 From: pjlees at ics.forth.gr (Philip Lees) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] greek chars In-Reply-To: <5.1.0.14.2.20030227122621.0308f278@pop.dreamzpace.com> Message-ID: <001f01c2de56$7b675b00$44be5b8b@ics.forth.gr> Mark Pors wrote: > the following things don't work: > - save word file as text If I save Greek from Word as Text with layout (*.ans) it opens fine in a text editor. > - copy text from word file and paste in a text editor. This one works for me with no problem. What platform are you on? What text editor? ... etc. What if you saved the texts as HTML directly? No. Don't do that. The HTML produced by MS Word is NOT HTML by any reasonable definition. Ob: Perl If you're interested, I have a script somewhere that uses Win32::OLE to make MS Word act as a kind of puppet to convert Word documents (or other formats it can understand) to text files. It appears to work for Greek, too. That might help you automate the conversion. Philip -- Philip Lees Working Group on Cardiology ICS-FORTH, Science and Technology Park of Crete Vassilika Vouton, P.O. Box 1385, GR 711 10 Heraklion, Crete, GREECE tel.: +30-2810-391680, fax: +30-2810-391601, e-mail: pjlees@ics.forth.gr 'The aim of high technology should be to simplify, not complicate' - Hans Christian von Baeyer From mark at dreamzpace.com Thu Feb 27 06:12:54 2003 From: mark at dreamzpace.com (Mark Pors) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] greek chars In-Reply-To: <001f01c2de56$7b675b00$44be5b8b@ics.forth.gr> References: <001f01c2de56$7b675b00$44be5b8b@ics.forth.gr> Message-ID: <3E5E00C6.4070304@dreamzpace.com> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: cat-en.doc Type: application/msword Size: 25600 bytes Desc: not available Url : http://mail.pm.org/pipermail/athens-pm/attachments/20030227/9531fadf/cat-en.doc From nacos at eureka.edu.gr Thu Feb 27 06:55:01 2003 From: nacos at eureka.edu.gr (Michael K. Nacos) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] greek chars In-Reply-To: <5.1.0.14.2.20030227122621.0308f278@pop.dreamzpace.com> References: <5.1.0.14.2.20030227122621.0308f278@pop.dreamzpace.com> Message-ID: <20030227125501.GA1476@eureka.edu.gr> hi Mark in my experience, it doesn't really matter whether the characters in the database are in a human-readable form. as soon as you serve them up on a web page they display fine again. having said that, what's causing you trouble is a difference in the way DOS and Windows handle greek characters (this might extend to other languages, i really can't say). Perfectly readable greek text in Word won't be readable in Notepad and vice versa. what you really wanna do is do away with all this Windows - DOS nonsense and save your Word documents as plain text with ISO encoding (pl. see picture). Whether the characters will look O.K. in your text editor depends on the configuration of your system. ISO Greek may not be readable in Notepad, but it's a much cleaner solution for storing text into the database. you can also easily convert ISO Greek to Unicode. try this on your linux box iconv --from-code=ISO-8859-7 --to-code=UTF-8 iso-file.txt > utf-file.txt for people with too much time on their hands, here's a link to a page describing the differences between the ISO-8859-7 and windows-1253 encodings. http://www.cs.tut.fi/~jkorpela/unicode/greek.html michael -------------- next part -------------- A non-text attachment was scrubbed... Name: word-greek.png Type: image/png Size: 9675 bytes Desc: not available Url : http://mail.pm.org/pipermail/athens-pm/attachments/20030227/084d12cf/word-greek.png From skatoulininis at yahoo.com Thu Feb 27 08:42:49 2003 From: skatoulininis at yahoo.com (Antonis Faragitakis) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] > ... then at the end: > > if ($goto_url eq 'test' and $user_pass) { > > In the form in index.htm there is no field called > goto_url, so this will > always fail. > > Also, I think that this: > > if ($user_name and $user_pass and $user_pass eq > $users{$user_name}) { > > could safely be written more simply as: > > if ( $user_pass eq $users{$user_name} ) { I used the code you writen in my CGI, the problem was, that when you submited the login form without username and password you still have access to the system. That's why i check if $user_name and $user_pass > since you are in control of the username/password > combinations. > > Philip > -- > Philip Lees > Working Group on Cardiology > ICS-FORTH, Science and Technology Park of Crete > Vassilika Vouton, P.O. Box 1385, GR 711 10 > Heraklion, Crete, GREECE > > tel.: +30-2810-391680, fax: +30-2810-391601, e-mail: > pjlees@ics.forth.gr > > 'The aim of high technology should be to simplify, > not complicate' - > Hans Christian von Baeyer > > > _______________________________________________ > Athens-pm mailing list > Athens-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/athens-pm From mark at dreamzpace.com Fri Feb 28 03:20:25 2003 From: mark at dreamzpace.com (Mark Pors) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] greek chars References: <5.1.0.14.2.20030227122621.0308f278@pop.dreamzpace.com> <20030227125501.GA1476@eureka.edu.gr> Message-ID: <3E5F29D9.8000608@dreamzpace.com> Michael K. Nacos wrote: > hi Mark > > in my experience, it doesn't really matter whether the characters in the database are in a human-readable form. as soon as you serve them up on a web page they display fine again. whoohoo! that works! also had to add this in the head of course: thanx! Mark > > having said that, what's causing you trouble is a difference in the way DOS and Windows handle greek characters (this might extend to other languages, i really can't say). Perfectly readable greek text in Word won't be readable in Notepad and vice versa. what you really wanna do is do away with all this Windows - DOS nonsense and save your Word documents as plain text with ISO encoding (pl. see picture). Whether the characters will look O.K. in your text editor depends on the configuration of your system. ISO Greek may not be readable in Notepad, but it's a much cleaner solution for storing text into the database. you can also easily convert ISO Greek to Unicode. > > try this on your linux box > > iconv --from-code=ISO-8859-7 --to-code=UTF-8 iso-file.txt > utf-file.txt > > for people with too much time on their hands, here's a link to a page describing the differences between the ISO-8859-7 and windows-1253 encodings. > > http://www.cs.tut.fi/~jkorpela/unicode/greek.html > > michael > > > > ------------------------------------------------------------------------ > From pjlees at ics.forth.gr Fri Feb 28 03:20:48 2003 From: pjlees at ics.forth.gr (Philip Lees) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] Click this can't fix it! In-Reply-To: <000001c2df0a$ae8a9560$44be5b8b@ics.forth.gr> Message-ID: <20030228095144.16055.qmail@web40608.mail.yahoo.com> --- Philip Lees wrote: > Antonis Faragitakis wrote: > > > > if ( $user_pass eq $users{$user_name} ) { > > > > I used the code you writen in my CGI, the problem > was, > > that when you submited the login form without > username > > and password you still have access to the system. > > That's why i check if $user_name and $user_pass > > Why not check for those right at the start. > Something like: > > print_error_page and exit unless $cgi->param( > 'user_name' ) and > $cgi->param( 'user_pass' ); Yes i know "There is more than one to do it!" but why mess with another sub routine, when i can add two more $variable in the code and not two new lines of code!? Antonis > Write a sub print_error_page that does just that. > > Philip > -- From pjlees at ics.forth.gr Fri Feb 28 04:09:33 2003 From: pjlees at ics.forth.gr (Philip Lees) Date: Mon Aug 2 21:22:58 2004 Subject: [Athens-pm] but why mess with another sub routine, when i can > add two more $variable in the code and not two new > lines of code!? One reason is that as your script grows and becomes more complex (as it is likely to do) you can keep all your error messages together in one sub that is called with an error number - and other arguments too, if you like. # missing user name or password print_error_page(1) and exit unless $cgi->param( 'user_name' ) and $cgi->param( 'user_pass' ); # password doesn't match print_error_page( 2, $user_name ) and exit unless $users{ 'user_name' } eq $user_pass; # database error print_error_page( 3, $DBI::errstr ) and exit unless $dbh->connect( ... ); This makes it very easy to add new error messages. Also, you do all your html output stuff only once, in the sub. You may even find that you can copy your error message sub and use it in another script. Philip -- Philip Lees Working Group on Cardiology ICS-FORTH, Science and Technology Park of Crete Vassilika Vouton, P.O. Box 1385, GR 711 10 Heraklion, Crete, GREECE tel.: +30-2810-391680, fax: +30-2810-391601, e-mail: pjlees@ics.forth.gr 'The aim of high technology should be to simplify, not complicate' - Hans Christian von Baeyer