Re: [Pharo-project] web services, pharo

2010-02-16 Thread Alexandre Bergel
> - parse the XML to get pictures URL You may consider to use Pastell, a library for XPath queries. Feel free to ping me if you need help for enhancement of the lib (I treat a subset of XPath only). Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http:

Re: [Pharo-project] web services, pharo

2010-02-16 Thread Stéphane Ducasse
cool :) On Feb 16, 2010, at 1:58 AM, Torsten Bergmann wrote: > Stefan wrote: >> What I would love to be able to do is to >> use the webcam of my machine to scan a book ISBN number >> and fetch all the data from a given provider. >> Does anybody have an idea how we could plug all that

[Pharo-project] web services, pharo

2010-02-15 Thread Torsten Bergmann
Stefan wrote: > What I would love to be able to do is to >use the webcam of my machine to scan a book ISBN number >and fetch all the data from a given provider. > Does anybody have an idea how we could plug all that together. I remember Seabreaze for Seaside has a seaside barcode/w

Re: [Pharo-project] web services, pharo

2010-02-15 Thread Mariano Martinez Peck
2010/2/14 laurent laffont > > 2010/2/14 Mariano Martinez Peck > >> Incredible. Clap clap clap! >> > > ^o^ > > >> >> Let me say that I really like your screencast and every time I see them, I >> learn. > > > Me too while recording :) I hope other people will contribute > > Sure they will. At

Re: [Pharo-project] web services, pharo

2010-02-15 Thread Mariano Martinez Peck
2010/2/15 laurent laffont > now that I work in library software :) ... > > Fetch data from ISBN is not so difficult, depends on the provider you want. > The most used protocol around the world is Z39.50 > http://en.wikipedia.org/wiki/Z39.50 to get MARC formatted catalogs > http://en.wikipedia.or

Re: [Pharo-project] web services, pharo

2010-02-15 Thread laurent laffont
now that I work in library software :) ... Fetch data from ISBN is not so difficult, depends on the provider you want. The most used protocol around the world is Z39.50 http://en.wikipedia.org/wiki/Z39.50 to get MARC formatted catalogs http://en.wikipedia.org/wiki/UNIMARC. I don't know if there'

Re: [Pharo-project] web services, pharo

2010-02-14 Thread Stéphane Ducasse
I really like the idea of scripting and gluing together behavior. What I would love to be able to do is to use the webcam of my machine to scan a book ISBN number and fetch all the data from a given provider. Does anybody have an idea how we could plug all that together. Stef On

Re: [Pharo-project] web services, pharo

2010-02-14 Thread laurent laffont
2010/2/14 Mariano Martinez Peck > Incredible. Clap clap clap! > ^o^ > > Let me say that I really like your screencast and every time I see them, I > learn. Me too while recording :) I hope other people will contribute > I think that we really should have a link from the official pharo

Re: [Pharo-project] web services, pharo

2010-02-14 Thread Mariano Martinez Peck
Incredible. Clap clap clap! Let me say that I really like your screencast and every time I see them, I learn. I think that we really should have a link from the official pharo website to your blog. Little note just in case you didn't know. To TAB right or left several rows/lines, just select them

Re: [Pharo-project] web services, pharo

2010-02-14 Thread laurent laffont
Thanks for help and enjoy :) http://pharocasts.blogspot.com/2010/02/rest-xml-parsing-and-photos.html Laurent Laffont On Sun, Feb 14, 2010 at 1:20 PM, laurent laffont wrote: > >> >> Make sure that the stream is binary: >> SketchMorph fromStream: (' >> http://lh3.ggpht.com/_BvlW9mJ6MFc/R-p4

Re: [Pharo-project] web services, pharo

2010-02-14 Thread John M McIntosh
Well *cough* I've always wondered why we use a un-supported smalltalk based decoder here versus relying on the JPEGReadWriter2 which uses the JPEG libraries we bundle into the VMs. Maybe you should to a quick performance test and see how they compare? On 2010-02-14, at 4:01 AM, laurent laff

Re: [Pharo-project] web services, pharo

2010-02-14 Thread laurent laffont
On Sun, Feb 14, 2010 at 4:24 PM, Stéphane Ducasse wrote: > ;) > BTW did you convert my old videos? > yes, sort of : http://pharocasts.blogspot.com/2010/01/learn-smalltalk-with-profstef.html Laurent > > Stef > > On Feb 14, 2010, at 1:20 PM, laurent laffont wrote: > > > > > > > Make sure that t

Re: [Pharo-project] web services, pharo

2010-02-14 Thread Stéphane Ducasse
;) BTW did you convert my old videos? Stef On Feb 14, 2010, at 1:20 PM, laurent laffont wrote: > > > Make sure that the stream is binary: > SketchMorph fromStream: > ('http://lh3.ggpht.com/_BvlW9mJ6MFc/R-p4PtCKitI/A1A/jySYN6rz_pc/DSC00801.JPG' > asUrl retrieveContents contents asByte

Re: [Pharo-project] web services, pharo

2010-02-14 Thread laurent laffont
> > > > Make sure that the stream is binary: > SketchMorph fromStream: (' > http://lh3.ggpht.com/_BvlW9mJ6MFc/R-p4PtCKitI/A1A/jySYN6rz_pc/DSC00801.JPG' > asUrl retrieveContents contents asByteArray readStream) > > > Levente It works ! Thank you ! You've just saved a screencast :) Lauren

Re: [Pharo-project] web services, pharo

2010-02-14 Thread Stéphane Ducasse
laurent did you check if it was working on older version? Which version are you using now? I tried in Squeak and latest pharo and they both fail. Stef On Feb 14, 2010, at 1:01 PM, laurent laffont wrote: > Arghh it's almost done but I have a bug: > > SketchMorph fromStream: > ('http://lh3.ggp

Re: [Pharo-project] web services, pharo

2010-02-14 Thread Levente Uzonyi
On Sun, 14 Feb 2010, laurent laffont wrote: Arghh it's almost done but I have a bug: SketchMorph fromStream: (' http://lh3.ggpht.com/_BvlW9mJ6MFc/R-p4PtCKitI/A1A/jySYN6rz_pc/DSC00801.JPG' asUrl retrieveContents contents readStream) fails: image format is not recognized. In JPEGReadWri

Re: [Pharo-project] web services, pharo

2010-02-14 Thread laurent laffont
Arghh it's almost done but I have a bug: SketchMorph fromStream: (' http://lh3.ggpht.com/_BvlW9mJ6MFc/R-p4PtCKitI/A1A/jySYN6rz_pc/DSC00801.JPG' asUrl retrieveContents contents readStream) fails: image format is not recognized. In JPEGReadWriter class >> understandsImageFormat aStream

Re: [Pharo-project] web services, pharo

2010-02-13 Thread Mariano Martinez Peck
I think he talks about this one http://coweb.cc.gatech.edu/squeakbook/ 2010/2/13 laurent laffont > Which web page ? > > Laurent Laffont > > > > On Sat, Feb 13, 2010 at 3:42 PM, Stéphane Ducasse < > stephane.duca...@inria.fr> wrote: > >> laurent have a look in the network chapter of the new blu

Re: [Pharo-project] web services, pharo

2010-02-13 Thread Stéphane Ducasse
http://stephane.ducasse.free.fr/FreeBooks/CollectiveNBlueBook/ Stef On Feb 13, 2010, at 3:59 PM, laurent laffont wrote: > Which web page ? > > Laurent Laffont > > > On Sat, Feb 13, 2010 at 3:42 PM, Stéphane Ducasse > wrote: > laurent have a look in the network chapter of the new blue book (

Re: [Pharo-project] web services, pharo

2010-02-13 Thread laurent laffont
Which web page ? Laurent Laffont On Sat, Feb 13, 2010 at 3:42 PM, Stéphane Ducasse wrote: > laurent have a look in the network chapter of the new blue book (collective > book available on web page) > because I do not remember but you could find some snippets going in the > same sense. > > Stef

Re: [Pharo-project] web services, pharo

2010-02-13 Thread Stéphane Ducasse
laurent have a look in the network chapter of the new blue book (collective book available on web page) because I do not remember but you could find some snippets going in the same sense. Stef On Feb 13, 2010, at 3:29 PM, laurent laffont wrote: > (SketchMorph fromStream: > ('http://code.goo

Re: [Pharo-project] web services, pharo

2010-02-13 Thread laurent laffont
*I've found this in my mails:* * * * (SketchMorph fromStream: ('http://code.google.com/p/pharo/logo' asUrl retrieveContents contentStream)) openInWorld *Laurent Laffont On Sat, Feb 13, 2010 at 3:08 PM, Stéphane Ducasse wrote: > I like the idea of the scenario. > >XMLParser >

Re: [Pharo-project] web services, pharo

2010-02-13 Thread Stéphane Ducasse
I like the idea of the scenario. XMLParser We really need more of such examples. Stef > Hi, > > I would like to record a screencast with the following scenario: > - search for pictures using Flickr web services, > http://www.flickr.com/services/api/, XML-RPC response > - pars

Re: [Pharo-project] web services, pharo

2010-02-13 Thread Mariano Martinez Peck
2010/2/13 laurent laffont > Hi, > > I would like to record a screencast with the following scenario: > - search for pictures using Flickr web services, > http://www.flickr.com/services/api/, XML-RPC response > - parse the XML to get pictures URL > - download pictures > - display them in a morphic

[Pharo-project] web services, pharo

2010-02-13 Thread laurent laffont
Hi, I would like to record a screencast with the following scenario: - search for pictures using Flickr web services, http://www.flickr.com/services/api/, XML-RPC response - parse the XML to get pictures URL - download pictures - display them in a morphic GUI Which packages should I use to use We