Marcus Denker | 23 Feb 2010 09:06
Picon
Picon
Favicon
Gravatar

Fwd: [Pharo-project] Sprint at Bern

Hi,

even though mainly to get work done (i.e. for developers), it could be nevertheless interesting
for "users" to come and learn:

> Hi guys
> 
> the software composition group of the university of bern is organizing a Pharo sprint
> saturday 13 of march.
> You are all welcome.
> 
> http://code.google.com/p/pharo/wiki/PharoSprints?ts=1266658289&updated=PharoSprints
> 
> http://scg.unibe.ch/contact/maps
> 
> Thanks SCG for organizing and hosting this.
> 
> Stef (we should blog about it)

--
Marcus Denker  -- http://www.marcusdenker.de
INRIA Lille -- Nord Europe. Team RMoD.
Steve Graham | 26 Feb 2010 15:35
Picon
Favicon

Getting a web page

I'm a newbie to Smalltalk, but not to programming.

I'm trying to get a web page using an example from Squeak and Pharo (which I have loaded on my machine):


"  HTTPSocket httpShowPage: 'http://www.altavista.digital.com/
index.html'      "


When I select this and do it - I get nothing.


When I select this and print it - I get nil


What am I doing wrong?




Thanks, Steve

_______________________________________________
Pharo-users mailing list
Pharo-users@...
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
Mariano Martinez Peck | 26 Feb 2010 16:22
Picon
Gravatar

Re: Getting a web page

Hi and welcome. Maybe this screencast help you:

http://pharocasts.blogspot.com/2010/02/rest-xml-parsing-and-photos.html

Look for some classes/messages that Laurent uses there.

Cheers

Mariano

On Fri, Feb 26, 2010 at 11:35 AM, Steve Graham <jsgrahamus-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:
I'm a newbie to Smalltalk, but not to programming.

I'm trying to get a web page using an example from Squeak and Pharo (which I have loaded on my machine):


"  HTTPSocket httpShowPage: 'http://www.altavista.digital.com/
index.html'      "


When I select this and do it - I get nothing.


When I select this and print it - I get nil


What am I doing wrong?




Thanks, Steve


_______________________________________________
Pharo-users mailing list
Pharo-users-bM+ny+RY8h/F2uMehF1BdA@public.gmane.orgge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users


_______________________________________________
Pharo-users mailing list
Pharo-users@...
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
Marcus Denker | 26 Feb 2010 16:40
Picon
Picon
Favicon
Gravatar

Re: Getting a web page


On Feb 26, 2010, at 4:22 PM, Mariano Martinez Peck wrote:
> 
> On Fri, Feb 26, 2010 at 11:35 AM, Steve Graham <jsgrahamus@...> wrote:
> I'm a newbie to Smalltalk, but not to programming. 
> 
> I'm trying to get a web page using an example from Squeak and Pharo (which I have loaded on my machine):
> 
> 
> 
> "  HTTPSocket httpShowPage: 'http://www.altavista.digital.com/ 
> index.html'      " 
> 

use another server :-) the digital is dead :-)

	HTTPSocket httpShowPage: 'heise.de'

Works here. But: this method is kind of useless, as it just dispays the html by doing:

	(StringHolder new contents: doc) openLabel: url.

We should remove that method.

	Marcus

--
Marcus Denker  -- http://www.marcusdenker.de
INRIA Lille -- Nord Europe. Team RMoD.
Steve Graham | 27 Feb 2010 01:40
Picon
Favicon

Re: Getting a web page

I'm using Pharo-1.0-10508-rc2.

And, yes, I was trying to "do" a comment.  Silly me.

Thanks for thinking of the obvious (to everyone but me).  Works fine now.


Steve

--- On Fri, 2/26/10, Michael Roberts <mike-JvzQYNTqaJXQXOPxS62xeg@public.gmane.org> wrote:

From: Michael Roberts <mike-JvzQYNTqaJXQXOPxS62xeg@public.gmane.org>
Subject: Re: [Pharo-users] Getting a web page
To: "Steve Graham" <jsgrahamus-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
Date: Friday, February 26, 2010, 9:52 AM

Which version of Pharo are you using?  When I try that in a core 1.0 image it seems to work ok.  Looking at the code it opens a window for you so you only need to do-it.  I assume you are not selecting the quotes, otherwise that would just be a comment.

cheers,
Mike

On Fri, Feb 26, 2010 at 2:35 PM, Steve Graham <jsgrahamus-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:
I'm a newbie to Smalltalk, but not to programming.

I'm trying to get a web page using an example from Squeak and Pharo (which I have loaded on my machine):


"  HTTPSocket httpShowPage: 'http://www.altavista.digital.com/
index.html'      "


When I select this and do it - I get nothing.


When I select this and print it - I get nil


What am I doing wrong?




Thanks, Steve


_______________________________________________
Pharo-users mailing list
Pharo-users <at> lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users



_______________________________________________
Pharo-users mailing list
Pharo-users@...
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
Stéphane Ducasse | 27 Feb 2010 09:07
Picon
Picon
Favicon
Gravatar

Re: Getting a web page

Don't worry 
sillyness is only when you ask several the same question :)
I'm daily doing mistakes but I try to learn fast :)

Stef

On Feb 27, 2010, at 1:40 AM, Steve Graham wrote:

> I'm using Pharo-1.0-10508-rc2.
> 
> And, yes, I was trying to "do" a comment.  Silly me.
> 
> Thanks for thinking of the obvious (to everyone but me).  Works fine now.
> 
> 
> Steve
> 
> --- On Fri, 2/26/10, Michael Roberts <mike@...> wrote:
> 
> From: Michael Roberts <mike@...>
> Subject: Re: [Pharo-users] Getting a web page
> To: "Steve Graham" <jsgrahamus@...>
> Date: Friday, February 26, 2010, 9:52 AM
> 
> Which version of Pharo are you using?  When I try that in a core 1.0 image it seems to work ok.  Looking at the
code it opens a window for you so you only need to do-it.  I assume you are not selecting the quotes, otherwise
that would just be a comment.
> 
> cheers,
> Mike
> 
> On Fri, Feb 26, 2010 at 2:35 PM, Steve Graham <jsgrahamus@...> wrote:
> I'm a newbie to Smalltalk, but not to programming. 
> 
> I'm trying to get a web page using an example from Squeak and Pharo (which I have loaded on my machine):
> 
> 
> 
> "  HTTPSocket httpShowPage: 'http://www.altavista.digital.com/ 
> index.html'      " 
> 
> 
> 
> When I select this and do it - I get nothing. 
> 
> 
> 
> When I select this and print it - I get nil 
> 
> 
> 
> What am I doing wrong? 
> 
> 
> 
> 
> 
> 
> 
> Thanks, Steve
> 
> 
> _______________________________________________
> Pharo-users mailing list
> Pharo-users@...
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> 
> 
> 
> _______________________________________________
> Pharo-users mailing list
> Pharo-users@...
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users

Gmane