web services, pharo

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: web services, pharo

Mariano Martinez Peck


2010/2/15 laurent laffont <[hidden email]>
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...


I don't know, what would be cool. I suggest to send separate emails for this to get more answers.

 
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.
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


_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: web services, pharo

Mariano Martinez Peck
In reply to this post by laurent laffont


2010/2/14 laurent laffont <[hidden email]>

2010/2/14 Mariano Martinez Peck <[hidden email]>
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 least giving ideas. Take as an example the ProfStef. Now, it is included in PharoDev. GLASS did their tutorials with it. Danny build a cool browser for it. Torsten build a HelpSyste. Etc etc etc...

Here is my contribution. I have more ideas :)

1) I would like a screencast to demostrate how to use Monticello and SqueakSource. We can take as an example, and reuse the PicasaAPI project. Little ideas:
- Create the package in Monticello Browser
- Create a user in squeaksource
- create the project in squeaksource
- commit it
- see changes
- merge
- take a clean image and load



2)  I would like a screencast to demostrate how to build a Metacello configuration and load it. We can take as an example, and reuse the PicasaAPI project. Little ideas, altough maybe they can be split:

- Demonstrate how hard is to load your project in a clean image. You have to install all dependencies by hand, you don't know which versions, and you don't know what packages to load. This point can be even part of 1)
- Show how to create a new Metacello configuration.
- Commit it to MonticelloRepository
- How to load it in another clean image


3)  Advanced Metacello:  show how to create and load groups, project references, etc. You can also show Metacello OB tools and Metaceller

4) This is boring but useful. A screencast that shows how to open an issue. It would be really cool to do it with a real bug. You can record how to reproduce the bug in the image, then how to search in issue tracker and open the issue. The idea is to show all these steps:

http://www.pharo-project.org/community/issue-tracking

5) This is boring but useful. A screencast that shows how to commit. If it is only one package, just that to inbox, if there are several projects, how to create a slice package and use the "dirty packages" trick, etc...  Again, it would be really cool if it can be a real commit. Even better, if it is a fix for 4)
The idea is to show all these steps:

http://code.google.com/p/pharo/wiki/HowToContribute


Ok....those are all the ideas I have for the moment :)

Thanks for you excellent work.

Mariano

 
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)     :)

Cool, thank you. I hope shortcut assignment will be better in 1.1

Laurent Laffont
 

Cheers

Mariano

2010/2/14 laurent laffont <[hidden email]>



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


_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: web services, pharo

Alexandre Bergel
In reply to this post by laurent laffont
> - 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://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
12