[vox-tech] Re: question - perl and databases

2004-12-17 Thread Jay Strauss
Peter Jay Salzman wrote:
Hi Jay,
Question about Perl databases.  I want to write an application that uses a
db.  Never played with db before.  Ultimately, I want to write something that
creates a webpage using the db data.
I also want people to be able to simply install my program without worrying
about installing other software, like msql or postgresql.
When you use DBI, do you *have* to have a separate daemon-run database or is
there a Perl module that provides a backend to DBI?
I'd rather use DBI because it's more convenient for complex data structures
and so I can use SQL, but if you need to install a database to use DBI, I
might try to make due with DBM.
Pete
Pete,
There are various ways to use DBI without a RDBMS server running 
somewhere.  Take a gander at search.cpan.org, and search for DBD.

There are drivers to run against various types of flat files: cvs, 
DBD::WTSprite, DBD::SQLite2

HTH
Jay
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


[vox-tech] Konqueror

2004-12-17 Thread ALLO (Alfredo Lopez De Leon)
Hi,
Does anybody knows the location of Koqueror's Introduction Screen
page.  This is the page that Konqueror displays when you run it for the
first time. This page appears when you have as your Home page a ~.
Konqueror somehow knows where to find it, it must be hard-coded or
something similar.

Thanks a lot in advance,

Alfredo
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


RE: [vox-tech] Konqueror

2004-12-17 Thread ALLO (Alfredo Lopez De Leon)
Sorry to answer my own question, but I finally found it.

/usr/share/doc/HTML

Cheers!
Alfredo

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ALLO (Alfredo
Lopez De Leon)
Sent: Friday, December 17, 2004 10:53 AM
To: [EMAIL PROTECTED]
Subject: [vox-tech] Konqueror


Hi,
Does anybody knows the location of Koqueror's Introduction Screen
page.  This is the page that Konqueror displays when you run it for the
first time. This page appears when you have as your Home page a ~.
Konqueror somehow knows where to find it, it must be hard-coded or
something similar.

Thanks a lot in advance,

Alfredo
_
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


[vox-tech] Using Perl to Find and Replace

2004-12-17 Thread Trevor M. Lango
I am working on a cdrom 'snapshot' of a website I help
maintain for use at demos where there is no network
access.

Practically every page uses server side includes.

I need to scan through an html file for expressions of
the following format:

  !--
   #include virtual=
   relative_path_to_file/filename
  --

and replace the expression:

  !--
   #include virtual=
   relative_path_to_file/filename
  --

with the contents of 'filename'.  I know how to use
Perl to scan through a file for a specified regular
expression and replace it (thank to an earlier post -
you guys are awesome!) but I'm lost as to how to
locate regular expressions of the given pattern,
interpret a portion of it as the name of a file, then
extract that file's content and replace the original
expression...!?

Perl, anyone...? ;-)


- Trevor

___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] Using Perl to Find and Replace

2004-12-17 Thread Jeff Newmiller
On Fri, 17 Dec 2004, Trevor M. Lango wrote:

 I am working on a cdrom 'snapshot' of a website I help
 maintain for use at demos where there is no network
 access.
 
 Practically every page uses server side includes.
 
 I need to scan through an html file for expressions of
 the following format:
 
   !--
#include virtual=
relative_path_to_file/filename
   --
 
 and replace the expression:
 
   !--
#include virtual=
relative_path_to_file/filename
   --
 
 with the contents of 'filename'.  I know how to use
 Perl to scan through a file for a specified regular
 expression and replace it (thank to an earlier post -
 you guys are awesome!) but I'm lost as to how to
 locate regular expressions of the given pattern,
 interpret a portion of it as the name of a file, then
 extract that file's content and replace the original
 expression...!?
 
 Perl, anyone...? ;-)

What is wrong with wget?

---
Jeff NewmillerThe .   .  Go Live...
DCN:[EMAIL PROTECTED]Basics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
/Software/Embedded Controllers)   .OO#.   .OO#.  rocks...1k
---

___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] Re: question - perl and databases

2004-12-17 Thread Henry House
På fredag, 17 december 2004, skrev Jay Strauss:
 Peter Jay Salzman wrote:
 Hi Jay,
 
 Question about Perl databases.  I want to write an application that uses a
 db.  Never played with db before.  Ultimately, I want to write something 
 that
 creates a webpage using the db data.
 
 I also want people to be able to simply install my program without worrying
 about installing other software, like msql or postgresql.
 
 When you use DBI, do you *have* to have a separate daemon-run database or 
 is
 there a Perl module that provides a backend to DBI?
 
 I'd rather use DBI because it's more convenient for complex data structures
 and so I can use SQL, but if you need to install a database to use DBI, I
 might try to make due with DBM.

I recommend looking into Sqlite (http://sqlite.org/), one of the options
that Jay mentioned. It is daemonless SQL database engine embedded in a C
library, which stores its databases in binary files. It is fast and easy to
manipulate via the Perl DBI.

-- 
Henry House
+1 530 753 3361 ext. 13
Please don't send me HTML mail! My mail system usually rejects it.
The unintelligible text that may follow is a digital signature.
See http://hajhouse.org/pgp to find out how to use it.
My OpenPGP key: http://hajhouse.org/hajhouse.asc.



signature.asc
Description: Digital signature
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] Using Perl to Find and Replace

2004-12-17 Thread Jay Strauss
Trevor M. Lango wrote:
I am working on a cdrom 'snapshot' of a website I help
maintain for use at demos where there is no network
access.
Practically every page uses server side includes.
I need to scan through an html file for expressions of
the following format:
  !--
   #include virtual=
   relative_path_to_file/filename
  --
and replace the expression:
  !--
   #include virtual=
   relative_path_to_file/filename
  --
with the contents of 'filename'.  I know how to use
Perl to scan through a file for a specified regular
expression and replace it (thank to an earlier post -
you guys are awesome!) but I'm lost as to how to
locate regular expressions of the given pattern,
interpret a portion of it as the name of a file, then
extract that file's content and replace the original
expression...!?
Perl, anyone...? ;-)
- Trevor
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech

I think you can make the replace a reference to a subroutine (which 
would return the contents of the file), but I can't seem to google the 
right words to see how it works.  Maybe someone else can say

Jay
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech