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 Web services, parse XML, download pictures ?
Is there existing apps / code which do this sort of things ? Thanks ! Laurent Laffont _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
2010/2/13 laurent laffont <[hidden email]> Hi, Sorry I cannot help you, but let me say that this particular example is VERY useful for "real applications". Having to parse XML and interact through webservices to another systems, is present in mostly current software projects. So, please..I hope you can do it and record it. Cheers Mariano
_______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by laurent laffont
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 > - parse the XML to get pictures URL > - download pictures > - display them in a morphic GUI > > Which packages should I use to use Web services, parse XML, download pictures ? > > Is there existing apps / code which do this sort of things ? > > Thanks ! > > Laurent Laffont > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
I've found this in my mails:
(SketchMorph fromStream: asUrl retrieveContents contentStream)) openInWorld On Sat, Feb 13, 2010 at 3:08 PM, Stéphane Ducasse <[hidden email]> wrote: I like the idea of the scenario. _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
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.google.com/p/pharo/logo' > asUrl retrieveContents contentStream)) openInWorld _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Which web page ?
Laurent Laffont On Sat, Feb 13, 2010 at 3:42 PM, Stéphane Ducasse <[hidden email]> wrote: laurent have a look in the network chapter of the new blue book (collective book available on web page) _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
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 <[hidden email]> 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 > > On Feb 13, 2010, at 3:29 PM, laurent laffont wrote: > > > (SketchMorph fromStream: > > ('http://code.google.com/p/pharo/logo' > > asUrl retrieveContents contentStream)) openInWorld > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by laurent laffont
I think he talks about this one
http://coweb.cc.gatech.edu/squeakbook/ 2010/2/13 laurent laffont <[hidden email]> Which web page ? _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Arghh it's almost done but I have a bug:
SketchMorph fromStream: ('http://lh3.ggpht.com/_BvlW9mJ6MFc/R-p4PtCKitI/AAAAAAAAA1A/jySYN6rz_pc/DSC00801.JPG' asUrl retrieveContents contents readStream)
fails: image format is not recognized. In JPEGReadWriter class >> understandsImageFormat aStream next = 16rFF answer false ??? - aStream next answers a Character instance
- 16rFF is a SmallInteger - both equals 255. What is the right way to correct that ? Laurent Laffont 2010/2/13 Mariano Martinez Peck <[hidden email]> I think he talks about this one _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
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/AAAAAAAAA1A/jySYN6rz_pc/DSC00801.JPG' > asUrl retrieveContents contents readStream) > > fails: image format is not recognized. > > In JPEGReadWriter class >> understandsImageFormat > aStream next = 16rFF answer false ??? > - aStream next answers a Character instance > - 16rFF is a SmallInteger > - both equals 255. > > What is the right way to correct that ? SketchMorph fromStream: ('http://lh3.ggpht.com/_BvlW9mJ6MFc/R-p4PtCKitI/AAAAAAAAA1A/jySYN6rz_pc/DSC00801.JPG' asUrl retrieveContents contents asByteArray readStream) Levente > > Laurent Laffont > > > 2010/2/13 Mariano Martinez Peck <[hidden email]> > >> I think he talks about this one >> >> http://coweb.cc.gatech.edu/squeakbook/ >> >> >> 2010/2/13 laurent laffont <[hidden email]> >> >>> Which web page ? >>> >>> Laurent Laffont >>> >>> >>> >>> On Sat, Feb 13, 2010 at 3:42 PM, Stéphane Ducasse < >>> [hidden email]> 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 >>>> >>>> On Feb 13, 2010, at 3:29 PM, laurent laffont wrote: >>>> >>>>> (SketchMorph fromStream: >>>>> ('http://code.google.com/p/pharo/logo' >>>>> asUrl retrieveContents contentStream)) openInWorld >>>> >>>> >>>> _______________________________________________ >>>> Pharo-project mailing list >>>> [hidden email] >>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >>>> >>> >>> >>> _______________________________________________ >>> Pharo-project mailing list >>> [hidden email] >>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >>> >> >> >> _______________________________________________ >> Pharo-project mailing list >> [hidden email] >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >> > Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by laurent laffont
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.ggpht.com/_BvlW9mJ6MFc/R-p4PtCKitI/AAAAAAAAA1A/jySYN6rz_pc/DSC00801.JPG' asUrl retrieveContents contents readStream) > > fails: image format is not recognized. > > In JPEGReadWriter class >> understandsImageFormat > aStream next = 16rFF answer false ??? > - aStream next answers a Character instance > - 16rFF is a SmallInteger > - both equals 255. > > What is the right way to correct that ? > > Laurent Laffont > > > 2010/2/13 Mariano Martinez Peck <[hidden email]> > I think he talks about this one > > http://coweb.cc.gatech.edu/squeakbook/ > > > 2010/2/13 laurent laffont <[hidden email]> > Which web page ? > > Laurent Laffont > > > > On Sat, Feb 13, 2010 at 3:42 PM, Stéphane Ducasse <[hidden email]> 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 > > On Feb 13, 2010, at 3:29 PM, laurent laffont wrote: > > > (SketchMorph fromStream: > > ('http://code.google.com/p/pharo/logo' > > asUrl retrieveContents contentStream)) openInWorld > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Levente Uzonyi-2
It works ! Thank you ! You've just saved a screencast :) Laurent Laffont
_______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
;)
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/AAAAAAAAA1A/jySYN6rz_pc/DSC00801.JPG' asUrl retrieveContents contents asByteArray readStream) > > > Levente > > > It works ! Thank you ! You've just saved a screencast :) > > Laurent Laffont > > > > > > > Laurent Laffont > > > 2010/2/13 Mariano Martinez Peck <[hidden email]> > > I think he talks about this one > > http://coweb.cc.gatech.edu/squeakbook/ > > > 2010/2/13 laurent laffont <[hidden email]> > > Which web page ? > > Laurent Laffont > > > > On Sat, Feb 13, 2010 at 3:42 PM, Stéphane Ducasse < > [hidden email]> 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 > > On Feb 13, 2010, at 3:29 PM, laurent laffont wrote: > > (SketchMorph fromStream: > ('http://code.google.com/p/pharo/logo' > asUrl retrieveContents contentStream)) openInWorld > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
On Sun, Feb 14, 2010 at 4:24 PM, Stéphane Ducasse <[hidden email]> wrote: ;) Laurent
_______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by laurent laffont
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 laffont wrote: Arghh it's almost done but I have a bug: -- =========================================================================== John M. McIntosh <[hidden email]> Twitter: squeaker68882 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com =========================================================================== _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by 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 <[hidden email]> wrote:
_______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
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 and use the shortcuts ctrl + shift + r (to tab right) or ctrl + shit + l (to tab left) :) Cheers Mariano 2010/2/14 laurent laffont <[hidden email]>
_______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
2010/2/14 Mariano Martinez Peck <[hidden email]> Incredible. Clap clap clap! ^o^
Me too while recording :) I hope other people will contribute.... I think that we really should have a link from the official pharo website to your blog. There's one here: http://pharo-project.org/documentation/tutorials-books
Cool, thank you. I hope shortcut assignment will be better in 1.1 Laurent Laffont
_______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by laurent laffont
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 Feb 14, 2010, at 8:45 PM, laurent laffont wrote: > 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 <[hidden email]> wrote: > > > Make sure that the stream is binary: > SketchMorph fromStream: ('http://lh3.ggpht.com/_BvlW9mJ6MFc/R-p4PtCKitI/AAAAAAAAA1A/jySYN6rz_pc/DSC00801.JPG' asUrl retrieveContents contents asByteArray readStream) > > > Levente > > > It works ! Thank you ! You've just saved a screencast :) > > Laurent Laffont > > > > > > > Laurent Laffont > > > 2010/2/13 Mariano Martinez Peck <[hidden email]> > > I think he talks about this one > > http://coweb.cc.gatech.edu/squeakbook/ > > > 2010/2/13 laurent laffont <[hidden email]> > > Which web page ? > > Laurent Laffont > > > > On Sat, Feb 13, 2010 at 3:42 PM, Stéphane Ducasse < > [hidden email]> 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 > > On Feb 13, 2010, at 3:29 PM, laurent laffont wrote: > > (SketchMorph fromStream: > ('http://code.google.com/p/pharo/logo' > asUrl retrieveContents contentStream)) openInWorld > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
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's Smalltalk implementations of these standards. If you don't need high level of details, Amazon, Library Thing, ... have good catalogs with modern web services to access them. For the webcam / scan part, I don't know what we have in Smalltalk. You need OCR tools... Laurent Laffont On Sun, Feb 14, 2010 at 10:24 PM, Stéphane Ducasse <[hidden email]> wrote: I really like the idea of scripting and gluing together behavior. _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Free forum by Nabble | Edit this page |