Re: [PHP] recipes anyone?

2009-05-30 Thread Ashley Sheridan
On Fri, 2009-05-29 at 19:24 -0400, PJ wrote:
 Michael A. Peters wrote:
  Bob McConnell wrote:
   like a web based front end,
   exclusion of specific ingredients due to allergies and being able to
   attach dated notes about alterations or substitutions I try each time
 
  That sounds wicked.
  One of my brothers is allergic to corn.
  Being able to flag ingredients that contain corn (usually ingredients
  that contain corn syrup) would also be great.
 
  Fortunately nothing too drastic happens when he gets corn, he gets a
  rash and a bad attitude - but it still manages to slip its way into a
  lot of things you wouldn't think contain corn.
 
  I think it may be corn syrup itself and not corn that he is allergic
  to, I don't remember.
 
 Oh my god, you have just treaded into one horrible hornet's nest... corn
 is probably the worst thing imaginable when it come to the food chain,
 nutrition, ecology, global warmiing, allergies, green fuel, etc. etc.
 not to mention that we as human beings are practically being turned
 into corn ourselves.
 Maybe your brother already knows about some of this, but it would be
 worth it for you to pursue the subject and you would be horrifies what
 corn is doing to our bodies and our planet. That is truly Montezuma's
 Revenge. If you want to know where to look, I'll check it out from my
 reading... I don't have that on me at the moment. ;-)
 
 -- 
 Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
 -
 Phil Jourdan --- p...@ptahhotep.com
http://www.ptahhotep.com
http://www.chiccantine.com/andypantry.php
 
 
So, if corn is bad, eating it will get rid of it faster right? :p


Ash
www.ashleysheridan.co.uk


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] recipes anyone?

2009-05-30 Thread PJ
Ashley Sheridan wrote:
 On Fri, 2009-05-29 at 19:24 -0400, PJ wrote:
   
 Michael A. Peters wrote:
 
 Bob McConnell wrote:
   
 like a web based front end,
 exclusion of specific ingredients due to allergies and being able to
 attach dated notes about alterations or substitutions I try each time
 
 That sounds wicked.
 One of my brothers is allergic to corn.
 Being able to flag ingredients that contain corn (usually ingredients
 that contain corn syrup) would also be great.

 Fortunately nothing too drastic happens when he gets corn, he gets a
 rash and a bad attitude - but it still manages to slip its way into a
 lot of things you wouldn't think contain corn.

 I think it may be corn syrup itself and not corn that he is allergic
 to, I don't remember.

   
 Oh my god, you have just treaded into one horrible hornet's nest... corn
 is probably the worst thing imaginable when it come to the food chain,
 nutrition, ecology, global warmiing, allergies, green fuel, etc. etc.
 not to mention that we as human beings are practically being turned
 into corn ourselves.
 Maybe your brother already knows about some of this, but it would be
 worth it for you to pursue the subject and you would be horrifies what
 corn is doing to our bodies and our planet. That is truly Montezuma's
 Revenge. If you want to know where to look, I'll check it out from my
 reading... I don't have that on me at the moment. ;-)

 -- 
 Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
 -
 Phil Jourdan --- p...@ptahhotep.com
http://www.ptahhotep.com
http://www.chiccantine.com/andypantry.php


 
 So, if corn is bad, eating it will get rid of it faster right? :p


 Ash
 www.ashleysheridan.co.uk


   
No it will turn you into a corn cob! ;-)
The authority on that is Michael Pollan... check out his books; you'll
never eat the same again.

-- 
Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
-
Phil Jourdan --- p...@ptahhotep.com
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] recipes anyone?

2009-05-30 Thread Clancy
On Sat, 30 May 2009 14:31:26 -0400, af.gour...@videotron.ca (PJ) wrote:


 So, if corn is bad, eating it will get rid of it faster right? :p

No it will turn you into a corn cob! ;-)

Which is why Christopher Columbus found the Americas uninhabited! ;-)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] recipes anyone?

2009-05-29 Thread PJ
I'd like to get some input on how to deal with recipes.
use html pages to store and display, XML or db or... ? And what about
clips, like flvs ? TIA.

-- 
Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
-
Phil Jourdan --- p...@ptahhotep.com
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] recipes anyone?

2009-05-29 Thread Richard Heyes
Hi,

 I'd like to get some input on how to deal with recipes.
 use html pages to store and display, XML or db or... ? And what about
 clips, like flvs ? TIA.

Actual recipes? As in a pork roast? I would put them on the file
system in .html files. You could use a PHP file to serve them, and
have a URL like this:

http://www.pig-supper.com/recipe/pork-roast.html

recipe could be a PHP file that adds a common header and footer. I
do similar with my site. Eg:

http://www.phpguru.org/static/canvas.html

Or did you mean something else entirely...?

-- 
Richard Heyes
HTML5 graphing: RGraph (www.rgraph.net - updated 23rd May)
PHP mail: RMail (www.phpguru.org/rmail)
PHP datagrid: RGrid (www.phpguru.org/rgrid)
PHP Template: RTemplate (www.phpguru.org/rtemplate)
PHP SMTP: http://www.phpguru.org/smtp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] recipes anyone?

2009-05-29 Thread Bob McConnell
From: PJ
 
 I'd like to get some input on how to deal with recipes.
 use html pages to store and display, XML or db or... ? And what about
 clips, like flvs ? TIA.
 

There are as many ways to do cookbooks as there are cooks. I am familiar
with half a dozen, without counting the professional packages put out by
another department here where I work.

RecipeML is one option, but it is seriously incomplete if you need to
include nutritional information.

Qookbooks, Gormet (Gnome), Krecipes (KDE) MealMaster, Master Cook,
Recipants, etc. all have different storage formats and display formats.
Some are well documented, some are buried in the code, and some are
still kept secret. You can take your pick, or combine them and roll your
own.

A bigger issue is how to import existing recipe files. I have several
years of messages collected from newsgroups like rec.food.recipes,
r.f.cooking, r.f.baking, etc. that I would like to put into a usable,
and searchable format. But there are too many variations in the formats
and naming conventions used to be able to write a single routine to
handle them all. It is much easier just to use those already published
in MealMaster formats. At least that one is documented clearly now that
they are out of business.

Bob McConnell

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] recipes anyone?

2009-05-29 Thread PJ
Bob McConnell wrote:
 From: PJ
   
 I'd like to get some input on how to deal with recipes.
 use html pages to store and display, XML or db or... ? And what about
 clips, like flvs ? TIA.

 

 There are as many ways to do cookbooks as there are cooks. I am familiar
 with half a dozen, without counting the professional packages put out by
 another department here where I work.

 RecipeML is one option, but it is seriously incomplete if you need to
 include nutritional information.

 Qookbooks, Gormet (Gnome), Krecipes (KDE) MealMaster, Master Cook,
 Recipants, etc. all have different storage formats and display formats.
 Some are well documented, some are buried in the code, and some are
 still kept secret. You can take your pick, or combine them and roll your
 own.

 A bigger issue is how to import existing recipe files. I have several
 years of messages collected from newsgroups like rec.food.recipes,
 r.f.cooking, r.f.baking, etc. that I would like to put into a usable,
 and searchable format. But there are too many variations in the formats
 and naming conventions used to be able to write a single routine to
 handle them all. It is much easier just to use those already published
 in MealMaster formats. At least that one is documented clearly now that
 they are out of business.

 Bob McConnell
   
Thank you gentlemen. Basically, that's what I figured. But this does
give me some more stuff to mull over. The only thing I'm really
wondering is if it's worth doing anything with XML.
I do have a number of recipes already in HTML; probably will try to
re-use them and modify/or adapt with CSS.
Thanks, again.

-- 
Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
-
Phil Jourdan --- p...@ptahhotep.com
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] recipes anyone?

2009-05-29 Thread Bob McConnell
From: PJ
 Bob McConnell wrote:
 From: PJ
   
 I'd like to get some input on how to deal with recipes.
 use html pages to store and display, XML or db or... ? And what
about
 clips, like flvs ? TIA.

 

 There are as many ways to do cookbooks as there are cooks. I am
familiar
 with half a dozen, without counting the professional packages put out
by
 another department here where I work.

 RecipeML is one option, but it is seriously incomplete if you need to
 include nutritional information.

 Qookbooks, Gormet (Gnome), Krecipes (KDE) MealMaster, Master Cook,
 Recipants, etc. all have different storage formats and display
formats.
 Some are well documented, some are buried in the code, and some are
 still kept secret. You can take your pick, or combine them and roll
your
 own.

 A bigger issue is how to import existing recipe files. I have several
 years of messages collected from newsgroups like rec.food.recipes,
 r.f.cooking, r.f.baking, etc. that I would like to put into a usable,
 and searchable format. But there are too many variations in the
formats
 and naming conventions used to be able to write a single routine to
 handle them all. It is much easier just to use those already
published
 in MealMaster formats. At least that one is documented clearly now
that
 they are out of business.

 Bob McConnell
   
 Thank you gentlemen. Basically, that's what I figured. But this does
 give me some more stuff to mull over. The only thing I'm really
 wondering is if it's worth doing anything with XML.
 I do have a number of recipes already in HTML; probably will try to
 re-use them and modify/or adapt with CSS.
 Thanks, again.

A lot depends on what you are actually going to do with them. If you
need output in several different forms, then XML/XSLT might be the best
way to go. But, I have seen an automated translation of the RecipeML DTD
into an SQL schema, and it was not pretty. Unless you are very familiar
with XML, or just want some practice, I wouldn't go there.

I have been looking at this idea for some time, and have pretty much
decided on a Postgres server for the back end with a custom schema.
There are several features I want that are not all available in any of
the consumer grade packages I have seen; like a web based front end,
exclusion of specific ingredients due to allergies and being able to
attach dated notes about alterations or substitutions I try each time I
prepare a recipe. I just need to sit down with my collected notes and a
few days to patch it together. But lately I have been spending most of
my time with our grandchildren instead of the computer.

Good luck,

Bob McConnell

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] recipes anyone?

2009-05-29 Thread Michael A. Peters

PJ wrote:

I'd like to get some input on how to deal with recipes.
use html pages to store and display, XML or db or... ? And what about
clips, like flvs ? TIA.



I believe there is already an xml format for recipes.
I would either use that format to store them, or use equivalent database 
fields to store them.


When displaying, you'd need to translate the recipe xml format to html 
but you should also make the xml format available for people with 
software designed to work with recipe's.


http://www.happy-monkey.net/recipebook/

is one xml specification. There may be others.
I use to maintain the Fedora package for a python/Gtk2+ recipe manager, 
it used sqlite internally but could import from at least one xml format 
- not sure if the one I linked to is it or not.


You'll need to use one of the xml tools to convert xml recipe's to html 
for viewing, but by using xml in your code, you both make the recipe's 
readily available via xml to your users and make it easy for you to add 
recipe's to your site that use the specified xml format.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] recipes anyone?

2009-05-29 Thread Michael A. Peters

PJ wrote:

  

Thank you gentlemen. Basically, that's what I figured. But this does
give me some more stuff to mull over. The only thing I'm really
wondering is if it's worth doing anything with XML.


For display in a web browser, the only thing you should do with xml is 
what browsers know how to handle - xhtml and MathML (maybe a few others 
??) - and IE still doesn't properly support either of those.


xml however is an excellent way to store information for data exchange 
between different applications, assuming the specification (DTD) is 
logical and well documented.


Don't use xml just for the sake of using xml, if that's what you are 
asking. Use it because a good xml specification already exists for what 
you want to do that makes it easier for data sharing between different 
apps / hardware.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] recipes anyone?

2009-05-29 Thread Michael A. Peters

Bob McConnell wrote:
 like a web based front end,
 exclusion of specific ingredients due to allergies and being able to
 attach dated notes about alterations or substitutions I try each time

That sounds wicked.
One of my brothers is allergic to corn.
Being able to flag ingredients that contain corn (usually ingredients 
that contain corn syrup) would also be great.


Fortunately nothing too drastic happens when he gets corn, he gets a 
rash and a bad attitude - but it still manages to slip its way into a 
lot of things you wouldn't think contain corn.


I think it may be corn syrup itself and not corn that he is allergic to, 
I don't remember.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] recipes anyone?

2009-05-29 Thread Shawn McKenzie
Michael A. Peters wrote:
 Bob McConnell wrote:
 like a web based front end,
 exclusion of specific ingredients due to allergies and being able to
 attach dated notes about alterations or substitutions I try each time
 
 That sounds wicked.
 One of my brothers is allergic to corn.
 Being able to flag ingredients that contain corn (usually ingredients
 that contain corn syrup) would also be great.
 
 Fortunately nothing too drastic happens when he gets corn, he gets a
 rash and a bad attitude - but it still manages to slip its way into a
 lot of things you wouldn't think contain corn.
 
 I think it may be corn syrup itself and not corn that he is allergic to,
 I don't remember.

Oh God, please don't get PJ started on corn!

-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] recipes anyone?

2009-05-29 Thread PJ
Michael A. Peters wrote:
 Bob McConnell wrote:
  like a web based front end,
  exclusion of specific ingredients due to allergies and being able to
  attach dated notes about alterations or substitutions I try each time

 That sounds wicked.
 One of my brothers is allergic to corn.
 Being able to flag ingredients that contain corn (usually ingredients
 that contain corn syrup) would also be great.

 Fortunately nothing too drastic happens when he gets corn, he gets a
 rash and a bad attitude - but it still manages to slip its way into a
 lot of things you wouldn't think contain corn.

 I think it may be corn syrup itself and not corn that he is allergic
 to, I don't remember.

Oh my god, you have just treaded into one horrible hornet's nest... corn
is probably the worst thing imaginable when it come to the food chain,
nutrition, ecology, global warmiing, allergies, green fuel, etc. etc.
not to mention that we as human beings are practically being turned
into corn ourselves.
Maybe your brother already knows about some of this, but it would be
worth it for you to pursue the subject and you would be horrifies what
corn is doing to our bodies and our planet. That is truly Montezuma's
Revenge. If you want to know where to look, I'll check it out from my
reading... I don't have that on me at the moment. ;-)

-- 
Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
-
Phil Jourdan --- p...@ptahhotep.com
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] recipes anyone?

2009-05-29 Thread PJ
Shawn McKenzie wrote:
 Michael A. Peters wrote:
   
 Bob McConnell wrote:
 
 like a web based front end,
 exclusion of specific ingredients due to allergies and being able to
 attach dated notes about alterations or substitutions I try each time
   
 That sounds wicked.
 One of my brothers is allergic to corn.
 Being able to flag ingredients that contain corn (usually ingredients
 that contain corn syrup) would also be great.

 Fortunately nothing too drastic happens when he gets corn, he gets a
 rash and a bad attitude - but it still manages to slip its way into a
 lot of things you wouldn't think contain corn.

 I think it may be corn syrup itself and not corn that he is allergic to,
 I don't remember.
 

 Oh God, please don't get PJ started on corn!

   
Too late! :-P

-- 
Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
-
Phil Jourdan --- p...@ptahhotep.com
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php