Re: [Pharo-project] HTML parser (again)

2010-08-18 Thread laurent laffont
On Wed, Aug 18, 2010 at 7:50 AM, Andrei Stebakov lisper...@gmail.comwrote:

 I've been looking for a nice and fast HTML parser.
 I've found Zulq Alam's Soup
 (http://www.squeaksource.com/@vHckXt8_6gVtXFxy/XMrjDbIs) it looks nice
 but it's way too slow for me (takes 5 sec to parse the page, my
 current lisp parser takes about 1 sec for that.)
 I found another one, Todd Blanchard's HTML and CSS parser
 (http://www.squeaksource.com/@iMgHmTKVxU00wEdz/A0jkqk71) but I
 couldn't load it into Pharo 1.1 or Squeak 4.1.
 It complains about some syntax error and leaves the progress bar which
 I can't kill...
 I wonder if anyone (Todd?) can take a look at the parser and figure
 out how to fix it?

 What other options I have for an HTML parser?
 Looking at Pharo speed I wonder if there is any way to optimize it? Is
 JIT or some other speed optimization in plans for Pharo/Squeak?



What do you need to do ?

There's XMLSupport http://www.squeaksource.com/XMLSupport.html
Scamper might have a standalone HTML parser
http://www.squeaksource.com/Scamper.html

The CogVM has JIT.

Laurent.



 Thank you,
 Andrei

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] Load OB in Pharo 1.2

2010-08-18 Thread Marcus Denker

On Aug 17, 2010, at 11:16 PM, Lukas Renggli wrote:

 Or you would keep the empty but deprecated class
 PluggableButtonMorphPlus in the image and make everybody happy :-)
 

Yes, let's do that... 

Marcus

--
Marcus Denker  -- http://www.marcusdenker.de
INRIA Lille -- Nord Europe. Team RMoD.


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] Should I be able to hang my pharo 1.1 image so easily?

2010-08-18 Thread Stéphane Ducasse
thanks david for the pointer.
Yes we should investigate that again.


On Aug 18, 2010, at 3:20 AM, David T. Lewis wrote:

 Probably completely off the mark but just in case it jogs someone's
 memory, the fixes for this issue that went into  Squeak 3.9 were
 tracked on Mantis here:
 
  http://bugs.squeak.org/view.php?id=1041
 
 Possibly one of the patches got undone by accident?
 
 HTH,
 Dave
 
 
 On Tue, Aug 17, 2010 at 10:28:31PM +0200, Adrian Lienhard wrote:
 I heard about that problem too...
 
 In Squeak 3.9 I can interrupt [[true] whileTrue] fork, but not in Pharo.
 
 Has anybody an idea why this doesn't work anymore? 
 
 Adrian
 
 On Aug 17, 2010, at 16:27 , Henrik Johansen wrote:
 
 
 On Aug 17, 2010, at 3:38 20PM, TimM wrote:
 
 Henrik Johansen wrote:
 
 Is this code run in a separate process?
 UserInterruptHandlerhandleUserInterrupt specifically interrupts the 
 UI-process, rather than f.ex. the last process consuming cycles.
 Whether that is desired behaviour or not, is up for discussion :)
 
 I'm not sure - as its seaside is that a UI-process (I don't think it is). 
 By browser - I mean web browser. And then I notice my cpu spike and if I 
 switch back to squeak, its hosed.
 
 Tim
 There's only one UI Process (tm) in Pharo/Squeak, responsible for updating 
 the UI, running doits, etc.
 
 Not quite sure how Seaside does its magic when requests are coming in, but 
 if it forks of their processing with priority = UIProcess priority, it 
 will indeed hose the image with no means of recovering using Cmd-dot in 
 the case of an infinite loop.
 
 Try the following from a workspace to illustrate:
 
 Interruptable with Cmd-dot
 [true ] whileTrue.
 
 Forking at lower than UI process, so UI stays responsive, but does not 
 interrupt runaway process with Cmd-dot (you can terminate it using process 
 browser)
 [[true ] whileTrue] forkAt: Processor activePriority - 1Code run from 
 a workspace will run in the UI process, so active priority will be the UI 
 process priority
 
 Forking at same as UI process, Cmd-dot interrups UI process rather than 
 runaway, but debugger is (almost) never displayed since runaway process 
 takes almost all cycles
 [[true] whileTrue] forkFork forks of the process at same priority as 
 active process
 
 
 Cheers,
 Henry
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] adding ISO-8859-15 and CP-1252 support

2010-08-18 Thread Philippe Marschall
On 08/17/2010 04:55 PM, Henrik Johansen wrote:
 
 On Aug 16, 2010, at 9:49 30PM, Philippe Marschall wrote:
 
 Hi

 I decided to write ISO-8859-15 and CP-1252 support [1] (mostly for
 selfish reasons so that Seaside on Pharo would support ISO-8859-15 and
 CP-1252).
 
 
 More converters are always nice :D
 Their code seems ok to me.

 A couple of notes:
 - the five unmapped bytes of CP-1252 (not ISO-8859-15, the comment is
 wrong) are mapped to the Unicode replacement character (U+FFFD)
 - a new Latin9 language environment is introduced
 - some minor clean up like removing unused class variables

 I'd appreciate it if somebody knowledgeable in these areas could review
 the changes. I'm especially unsure about the Latin9 language
 environment, but reusing Latin1 or Unicode seemed wrong.
 
 I'm not sure its too wrong, according to EncodedCharSet comment: 
 The other confusion comes from the name of Latin1 class.  It used to mean 
 the Latin-1 (ISO-8859-1) character set, but now it primarily means that the 
 Western European languages that are covered by the characters in Latin-1 
 character set.
 I'd reckon the same holds true for Latin1Environment (Western ), 
 Latin2Environment (Eastern), and Latin7Environment (Greek). I don't think 
 CP1252/8859-15 warrants the same as they are basically alternative encodings 
 to latin1 for western languages.
 
 Also: 
 - leadingChar is used in StrikeFontSet to choose different glyph sets. This 
 allows for StrikeFonts supporting more than the default latin1 glyphs, seems 
 to me it would be wrong to use the same one for two different encodings. 
 Not sure why this approach was taken rather than allowing additional strike 
 font sets based on unicode code point ranges, then using leadingChar only to 
 differentiate when the visual glyphs for those code points would be 
 different. I suspect it maybe was developed to deal with Han unification 
 first, then reused to support multiple character sets later.
 
 - LanguageEnvironment seems to have been used in conjunction with translation 
 (note the entire old translation system was removed in Pharo and replaced by 
 an external package), maybe to decide which encoding externally stored 
 translation files should be read in as.
 Then, having environments with overlapping supportedLanguages seem somewhat 
 weird as well.
 Modifying defaultEncodingName/systemConverterClass of Latin1Environment to 
 use CP1252 for some Windows systems (as per Latin2) may be another approach, 
 may or may not lead to unintended consequences elsewhere though, I did not 
 investigate all uses.
 
 IMHO, for someone who wasn't involved in its developemnt, the whole 
 multilingual package could use some cleaning, more class comments, and 
 clearer statement of responsibilities.
 
 Cheers,
 Henry
 
 TLDR; 
 More converters: yay! 
 More LanguageEnvironments: o_O, not sure

OK, if nobody says it's a good idea and the right thing to do I'll drop
the LanguageEnvironment.

Cheers
Philippe


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


[Pharo-project] [update 1.2] #12098

2010-08-18 Thread Marcus Denker
12098
-

Issue 2826: add empty PluggableButtonMorphPlus
Issue 2824: PluggableTextMorphWithModel is not used
Issue 2333: MCSnapshotBrowserallClassNames would incorrectly list the 
classe

--
Marcus Denker  -- http://www.marcusdenker.de
INRIA Lille -- Nord Europe. Team RMoD.


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] adding ISO-8859-15 and CP-1252 support

2010-08-18 Thread Stéphane Ducasse
may be you should contact yoshiki.

On Aug 18, 2010, at 9:59 AM, Philippe Marschall wrote:

 On 08/17/2010 04:55 PM, Henrik Johansen wrote:
 
 On Aug 16, 2010, at 9:49 30PM, Philippe Marschall wrote:
 
 Hi
 
 I decided to write ISO-8859-15 and CP-1252 support [1] (mostly for
 selfish reasons so that Seaside on Pharo would support ISO-8859-15 and
 CP-1252).
 
 
 More converters are always nice :D
 Their code seems ok to me.
 
 A couple of notes:
 - the five unmapped bytes of CP-1252 (not ISO-8859-15, the comment is
 wrong) are mapped to the Unicode replacement character (U+FFFD)
 - a new Latin9 language environment is introduced
 - some minor clean up like removing unused class variables
 
 I'd appreciate it if somebody knowledgeable in these areas could review
 the changes. I'm especially unsure about the Latin9 language
 environment, but reusing Latin1 or Unicode seemed wrong.
 
 I'm not sure its too wrong, according to EncodedCharSet comment: 
 The other confusion comes from the name of Latin1 class.  It used to mean 
 the Latin-1 (ISO-8859-1) character set, but now it primarily means that the 
 Western European languages that are covered by the characters in Latin-1 
 character set.
 I'd reckon the same holds true for Latin1Environment (Western ), 
 Latin2Environment (Eastern), and Latin7Environment (Greek). I don't think 
 CP1252/8859-15 warrants the same as they are basically alternative encodings 
 to latin1 for western languages.
 
 Also: 
 - leadingChar is used in StrikeFontSet to choose different glyph sets. This 
 allows for StrikeFonts supporting more than the default latin1 glyphs, seems 
 to me it would be wrong to use the same one for two different encodings. 
 Not sure why this approach was taken rather than allowing additional strike 
 font sets based on unicode code point ranges, then using leadingChar only to 
 differentiate when the visual glyphs for those code points would be 
 different. I suspect it maybe was developed to deal with Han unification 
 first, then reused to support multiple character sets later.
 
 - LanguageEnvironment seems to have been used in conjunction with 
 translation (note the entire old translation system was removed in Pharo and 
 replaced by an external package), maybe to decide which encoding externally 
 stored translation files should be read in as.
 Then, having environments with overlapping supportedLanguages seem somewhat 
 weird as well.
 Modifying defaultEncodingName/systemConverterClass of Latin1Environment to 
 use CP1252 for some Windows systems (as per Latin2) may be another approach, 
 may or may not lead to unintended consequences elsewhere though, I did not 
 investigate all uses.
 
 IMHO, for someone who wasn't involved in its developemnt, the whole 
 multilingual package could use some cleaning, more class comments, and 
 clearer statement of responsibilities.
 
 Cheers,
 Henry
 
 TLDR; 
 More converters: yay! 
 More LanguageEnvironments: o_O, not sure
 
 OK, if nobody says it's a good idea and the right thing to do I'll drop
 the LanguageEnvironment.
 
 Cheers
 Philippe
 
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] SocketStream enh

2010-08-18 Thread Stéphane Ducasse

 I will integrate the following SocketStream tests and before I would love 
 to see if this
 does not impact seaside
 
 http://code.google.com/p/pharo/issues/detail?id=2767

Does anybody have the time to give feedback on this important network changes?

Stef
___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


[Pharo-project] About porting and using the classificationModel in Pharo

2010-08-18 Thread Fernando olivero
Hi, is there a port to Pharo1.2 of the ClassificationModel. 
(http://scg.unibe.ch/archive/papers/Wuyt04aClassifications.pdf)

If not would the Star Browser  for Squeak , be a good place to start from?

http://map.squeak.org/package/9187f67b-a437-4e52-93f9-eecb9b48df78


Thanks
Fernando___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] why TextMorph and PluggableTextMorph are not

2010-08-18 Thread Fernando olivero
WEIRD!

IMO There should be no need for PluggableTextMorph, I think the work on 
NewTextMorph goes into that direction, a customizable and extensible text morph,
that announces whatever happens to it.

On Aug 17, 2010, at 9:46 PM, Stéphane Ducasse wrote:

 well in the same hierarchy?
 I like because I'm so naive about how the world could be :)
 
 Stef
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] TextEditorpossiblyChanged broke TextEditor quite well :(

2010-08-18 Thread Fernando olivero
This method is used when installing an new editor on a TextMorph, and resusing 
the state of the previous one ( for example: selection interval).

Currently we are just creating a new one, so YES, we could remove all senders.

Fernando.

On Aug 17, 2010, at 11:25 PM, Stéphane Ducasse wrote:

 
 
 From: stephane ducasse stephane.duca...@gmail.com
 Date: August 17, 2010 10:46:05 PM GMT+02:00
 To: Pharo Development Pharo-project@lists.gforge.inria.fr
 Subject: TextEditorpossiblyChanged broke TextEditor quite well :(
 
 
 Hi fernando
 
 apparently in TextEditorstateArrayPut: stateArray there is call to 
 possiblyChanged which does not exist in pharo or Squeak
 
 TextEditorstateArrayPut: stateArray
  | sel |
  sel := stateArray at: 1.
  self selectFrom: sel first to: sel last.
  beginTypeInBlock := stateArray at: 2.
  emphasisHere := stateArray at: 3.
  morph possiblyChanged
 
 And this breaks the system when I try to integrate the ParagraphEditro 
 replacement lost laready a couple of hours
 
 In CUIS it is defined as 
 
 
 PluggableTextMorphpossiblyChanged
  A hook for notificating possible interested parties
  Not used in base system
 
 
 TextMorphpossiblyChanged
 
 TextMorphForEditViewpossiblyChanged
  editView possiblyChanged
 
 
 So? 
 Do we need that? if not we should remove all the senders
 Stef
 
 
 
 
 
 
 
 
 ATT1..txt

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] About porting and using the classificationModel in Pharo

2010-08-18 Thread Stéphane Ducasse

On Aug 18, 2010, at 1:08 PM, Fernando olivero wrote:

 Hi, is there a port to Pharo1.2 of the ClassificationModel. 
 (http://scg.unibe.ch/archive/papers/Wuyt04aClassifications.pdf)
 
 If not would the Star Browser  for Squeak , be a good place to start from?

Yes

 
 http://map.squeak.org/package/9187f67b-a437-4e52-93f9-eecb9b48df78
 
 
 Thanks
 Fernando
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] why TextMorph and PluggableTextMorph are not

2010-08-18 Thread Stéphane Ducasse
Yes!

 WEIRD!
 
 IMO There should be no need for PluggableTextMorph, I think the work on 
 NewTextMorph goes into that direction, a customizable and extensible text 
 morph,
 that announces whatever happens to it.
 
 On Aug 17, 2010, at 9:46 PM, Stéphane Ducasse wrote:
 
 well in the same hierarchy?
 I like because I'm so naive about how the world could be :)
 
 Stef
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] TextEditorpossiblyChanged broke TextEditor quite well :(

2010-08-18 Thread Stéphane Ducasse
good news.

So I will do it.


On Aug 18, 2010, at 1:11 PM, Fernando olivero wrote:

 This method is used when installing an new editor on a TextMorph, and 
 resusing the state of the previous one ( for example: selection interval).
 
 Currently we are just creating a new one, so YES, we could remove all senders.
 
 Fernando.
 
 On Aug 17, 2010, at 11:25 PM, Stéphane Ducasse wrote:
 
 
 
 From: stephane ducasse stephane.duca...@gmail.com
 Date: August 17, 2010 10:46:05 PM GMT+02:00
 To: Pharo Development Pharo-project@lists.gforge.inria.fr
 Subject: TextEditorpossiblyChanged broke TextEditor quite well :(
 
 
 Hi fernando
 
 apparently in TextEditorstateArrayPut: stateArray there is call to 
 possiblyChanged which does not exist in pharo or Squeak
 
 TextEditorstateArrayPut: stateArray
 | sel |
 sel := stateArray at: 1.
 self selectFrom: sel first to: sel last.
 beginTypeInBlock := stateArray at: 2.
 emphasisHere := stateArray at: 3.
 morph possiblyChanged
 
 And this breaks the system when I try to integrate the ParagraphEditro 
 replacement lost laready a couple of hours
 
 In CUIS it is defined as 
 
 
 PluggableTextMorphpossiblyChanged
 A hook for notificating possible interested parties
 Not used in base system
 
 
 TextMorphpossiblyChanged
 
 TextMorphForEditViewpossiblyChanged
 editView possiblyChanged
 
 
 So? 
 Do we need that? if not we should remove all the senders
 Stef
 
 
 
 
 
 
 
 
 ATT1..txt
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] SocketStream enh

2010-08-18 Thread Philippe Marschall
On 08/18/2010 12:56 PM, Stéphane Ducasse wrote:
 
 I will integrate the following SocketStream tests and before I would love 
 to see if this
 does not impact seaside

 http://code.google.com/p/pharo/issues/detail?id=2767
 
 Does anybody have the time to give feedback on this important network changes?

Sorry, didn't yet have time.

Cheers
Philippe


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] why TextMorph and PluggableTextMorph are not

2010-08-18 Thread Lukas Renggli
On 18 August 2010 13:09, Fernando olivero fernando.oliv...@usi.ch wrote:
 WEIRD!

 IMO There should be no need for PluggableTextMorph, I think the work on 
 NewTextMorph goes into that direction, a customizable and extensible text 
 morph,
 that announces whatever happens to it.

Is there any documentation/blog/tutorial that explains how to use the
NewTextMorph.

I would like to integrate it with OmniBrowser at some point.

Lukas



 On Aug 17, 2010, at 9:46 PM, Stéphane Ducasse wrote:

 well in the same hierarchy?
 I like because I'm so naive about how the world could be :)

 Stef

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project




-- 
Lukas Renggli
www.lukas-renggli.ch

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] why TextMorph and PluggableTextMorph are not

2010-08-18 Thread Fernando olivero
There are some tests and class side examples.

Still missing a good tutorial.

We could work on that together at ESUG.

Fernando


Fernando
On Aug 18, 2010, at 2:02 PM, Lukas Renggli wrote:

 On 18 August 2010 13:09, Fernando olivero fernando.oliv...@usi.ch wrote:
 WEIRD!
 
 IMO There should be no need for PluggableTextMorph, I think the work on 
 NewTextMorph goes into that direction, a customizable and extensible text 
 morph,
 that announces whatever happens to it.
 
 Is there any documentation/blog/tutorial that explains how to use the
 NewTextMorph.
 
 I would like to integrate it with OmniBrowser at some point.
 
 Lukas
 
 
 
 On Aug 17, 2010, at 9:46 PM, Stéphane Ducasse wrote:
 
 well in the same hierarchy?
 I like because I'm so naive about how the world could be :)
 
 Stef
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 
 
 
 -- 
 Lukas Renggli
 www.lukas-renggli.ch
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


[Pharo-project] test

2010-08-18 Thread Fernando olivero


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] Should I be able to hang my pharo 1.1 image so easily?

2010-08-18 Thread Henrik Johansen
I've submitted a slice to inbox, which contains a proposed fix.
Details in the issue (2825) for those interested.

Cheers,
Henry

On Aug 18, 2010, at 9:25 52AM, Stéphane Ducasse wrote:

 thanks david for the pointer.
 Yes we should investigate that again.
 
 
 On Aug 18, 2010, at 3:20 AM, David T. Lewis wrote:
 
 Probably completely off the mark but just in case it jogs someone's
 memory, the fixes for this issue that went into  Squeak 3.9 were
 tracked on Mantis here:
 
 http://bugs.squeak.org/view.php?id=1041
 
 Possibly one of the patches got undone by accident?
 
 HTH,
 Dave
 
 
 On Tue, Aug 17, 2010 at 10:28:31PM +0200, Adrian Lienhard wrote:
 I heard about that problem too...
 
 In Squeak 3.9 I can interrupt [[true] whileTrue] fork, but not in Pharo.
 
 Has anybody an idea why this doesn't work anymore? 
 
 Adrian
 
 On Aug 17, 2010, at 16:27 , Henrik Johansen wrote:
 
 
 On Aug 17, 2010, at 3:38 20PM, TimM wrote:
 
 Henrik Johansen wrote:
 
 Is this code run in a separate process?
 UserInterruptHandlerhandleUserInterrupt specifically interrupts the 
 UI-process, rather than f.ex. the last process consuming cycles.
 Whether that is desired behaviour or not, is up for discussion :)
 
 I'm not sure - as its seaside is that a UI-process (I don't think it is). 
 By browser - I mean web browser. And then I notice my cpu spike and if I 
 switch back to squeak, its hosed.
 
 Tim
 There's only one UI Process (tm) in Pharo/Squeak, responsible for updating 
 the UI, running doits, etc.
 
 Not quite sure how Seaside does its magic when requests are coming in, but 
 if it forks of their processing with priority = UIProcess priority, it 
 will indeed hose the image with no means of recovering using Cmd-dot in 
 the case of an infinite loop.
 
 Try the following from a workspace to illustrate:
 
 Interruptable with Cmd-dot
 [true ] whileTrue.
 
 Forking at lower than UI process, so UI stays responsive, but does not 
 interrupt runaway process with Cmd-dot (you can terminate it using process 
 browser)
 [[true ] whileTrue] forkAt: Processor activePriority - 1Code run from 
 a workspace will run in the UI process, so active priority will be the UI 
 process priority
 
 Forking at same as UI process, Cmd-dot interrups UI process rather than 
 runaway, but debugger is (almost) never displayed since runaway process 
 takes almost all cycles
 [[true] whileTrue] forkFork forks of the process at same priority as 
 active process
 
 
 Cheers,
 Henry
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] SocketStream enh

2010-08-18 Thread Noury Bouraqadi

On 18 août 2010, at 12:56, Stéphane Ducasse wrote:

 
 I will integrate the following SocketStream tests and before I would love 
 to see if this
 does not impact seaside
 
 http://code.google.com/p/pharo/issues/detail?id=2767
 
 Does anybody have the time to give feedback on this important network changes?
 
I tested the referenced code and it fixes issue 2765 (SocketStreamTest hangs).
I put a detailed comment on GoogleCode.

Noury

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] whileTrue: implementation

2010-08-18 Thread Richard Durr
http://stackoverflow.com/questions/2500483/is-there-a-way-in-a-message-only-language-to-define-a-whiletrue-message-without-r

2010/8/17 Marcus Denker marcus.den...@inria.fr

 I added a entry in the bugtracker for this so we don't forget:

 http://code.google.com/p/pharo/issues/detail?id=2819


 On Aug 16, 2010, at 8:53 PM, Eliot Miranda wrote:


 BTW here's the VisualWorks 7.7 method.  For me it's a little too clever.

 whileFalse: aBlock
 Evaluate the argument, aBlock, as long as the value of the receiver is
 false.

 ^self value
 ifFalse:
 [aBlock value.
  [self value] whileFalse: [aBlock value]]

 This method is inlined if both the receiver and the argument are literal
  blocks. In all other cases, the code above is run. Note that the code
 above is defined recursively. However, to avoid actually building an
  activation record each time this method is invoked recursively, we have
 used the '[...] whileFalse: [..]' form in the last line, rather than the
 more
  concise 'self whileFalse: aBlock'. Using literal blocks for both the
 receiver
 and the argument allows the compiler to inline #whileFalse:, which (in the
  absence of type inferencing) could not be done if we were to use
 'self whileFalse: aBlock'.

 but it's accurate and does the job of turning
 | a b |
 a := [i = j].
 b := [i := i + 1].
 a whileTrue: b
 into an iterative execution.

 So at the very least we should improve the comment in whileTrue: and
 whileFalse: to point to the compiler optimization in MessageNode and IMO the
 VisualWorks implementation is the best compromise between clarity and
 honesty given the lack of tail-recursion elimination.


 --
 Marcus Denker  -- http://www.marcusdenker.de
 INRIA Lille -- Nord Europe. Team RMoD.


 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

[Pharo-project] Question about about LintRule

2010-08-18 Thread Cyrille Delaunay
Hello,

I'm currently looking a bit at how lint rules work. The current example I'm
looking at is:

 RBTempVarOverridesInstVarRule
   = this rule check for tmp variables that override an existing
instance variable in the class
   = when such a case is detected, the result is stored like that:
result
 addClass: aContext selectedClass
 selector: aContext selector.
result addSearchString: varName.

   = so, all variables are just stored one by one in a collection
('searchString') and never linked to the method in which the problem
happened.

What I wonder is: How are you able then to display, as result, a list of
method, and for each of them to highligth the 'problematic' tmp variable?
How do you make the the link between a class-selector from the result, and,
the variable name causing the problem for this selector?
___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] [squeak-dev] Re: HTML parser (again)

2010-08-18 Thread Andrei Stebakov
Web page scraping. XML parser chokes on bad html input.

On Wed, Aug 18, 2010 at 2:34 AM, laurent laffont
laurent.laff...@gmail.com wrote:


 On Wed, Aug 18, 2010 at 7:50 AM, Andrei Stebakov lisper...@gmail.com
 wrote:

 I've been looking for a nice and fast HTML parser.
 I've found Zulq Alam's Soup
 (http://www.squeaksource.com/@vHckXt8_6gVtXFxy/XMrjDbIs) it looks nice
 but it's way too slow for me (takes 5 sec to parse the page, my
 current lisp parser takes about 1 sec for that.)
 I found another one, Todd Blanchard's HTML and CSS parser
 (http://www.squeaksource.com/@iMgHmTKVxU00wEdz/A0jkqk71) but I
 couldn't load it into Pharo 1.1 or Squeak 4.1.
 It complains about some syntax error and leaves the progress bar which
 I can't kill...
 I wonder if anyone (Todd?) can take a look at the parser and figure
 out how to fix it?

 What other options I have for an HTML parser?
 Looking at Pharo speed I wonder if there is any way to optimize it? Is
 JIT or some other speed optimization in plans for Pharo/Squeak?


 What do you need to do ?
 There's XMLSupport http://www.squeaksource.com/XMLSupport.html
 Scamper might have a standalone HTML
 parser http://www.squeaksource.com/Scamper.html
 The CogVM has JIT.
 Laurent.


 Thank you,
 Andrei

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project






___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] Question about about LintRule

2010-08-18 Thread Lukas Renggli
2010/8/18 Cyrille Delaunay cy.delau...@gmail.com:
 Hello,
 I'm currently looking a bit at how lint rules work. The current example I'm
 looking at is:
  RBTempVarOverridesInstVarRule
        = this rule check for tmp variables that override an existing
 instance variable in the class
        = when such a case is detected, the result is stored like that:
                         result
      addClass: aContext selectedClass
      selector: aContext selector.
         result addSearchString: varName.
        = so, all variables are just stored one by one in a collection
 ('searchString') and never linked to the method in which the problem
 happened.
 What I wonder is: How are you able then to display, as result, a list of
 method, and for each of them to highligth the 'problematic' tmp variable?
 How do you make the the link between a class-selector from the result, and,
 the variable name causing the problem for this selector?

The list comes from #addClass:selector:. The selection comes from the string.

There is no connection between the two, see
http://st-www.cs.illinois.edu/users/brant/Refactory/Lint.html on
Limitations/Highlighting.

Lukas

-- 
Lukas Renggli
www.lukas-renggli.ch

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] [squeak-dev] Re: HTML parser (again)

2010-08-18 Thread Nick Ager
On 18 August 2010 16:01, Andrei Stebakov lisper...@gmail.com wrote:

 Web page scraping. XML parser chokes on bad html input.


How about using Selenium:
http://pharocasts.blogspot.com/2010/08/web-application-testing-through.html
___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

[Pharo-project] FW: [Seaside] Changes file too big

2010-08-18 Thread Robert Sirois

How do I clear my changes file? Smalltalk condenseChanges. just brings up a 
PositionalStream error.

Thanks, RS
  ___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] [squeak-dev] Re: HTML parser (again)

2010-08-18 Thread Andrei Stebakov
I tried to load Scamper's Network-HTML, I got a Syntax Error during reloading:
HtmlTokenizer private-initialization initialize:
initialize: s
text _ s withSqueakLineEndings.
pos _ Nothing more expected -1.
textAreaLevel _ 0.

On Wed, Aug 18, 2010 at 2:34 AM, laurent laffont
laurent.laff...@gmail.com wrote:


 On Wed, Aug 18, 2010 at 7:50 AM, Andrei Stebakov lisper...@gmail.com
 wrote:

 I've been looking for a nice and fast HTML parser.
 I've found Zulq Alam's Soup
 (http://www.squeaksource.com/@vHckXt8_6gVtXFxy/XMrjDbIs) it looks nice
 but it's way too slow for me (takes 5 sec to parse the page, my
 current lisp parser takes about 1 sec for that.)
 I found another one, Todd Blanchard's HTML and CSS parser
 (http://www.squeaksource.com/@iMgHmTKVxU00wEdz/A0jkqk71) but I
 couldn't load it into Pharo 1.1 or Squeak 4.1.
 It complains about some syntax error and leaves the progress bar which
 I can't kill...
 I wonder if anyone (Todd?) can take a look at the parser and figure
 out how to fix it?

 What other options I have for an HTML parser?
 Looking at Pharo speed I wonder if there is any way to optimize it? Is
 JIT or some other speed optimization in plans for Pharo/Squeak?


 What do you need to do ?
 There's XMLSupport http://www.squeaksource.com/XMLSupport.html
 Scamper might have a standalone HTML
 parser http://www.squeaksource.com/Scamper.html
 The CogVM has JIT.
 Laurent.


 Thank you,
 Andrei

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project






___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] [squeak-dev] Re: HTML parser (again)

2010-08-18 Thread Mariano Martinez Peck
On Wed, Aug 18, 2010 at 5:55 PM, Andrei Stebakov lisper...@gmail.comwrote:

 I tried to load Scamper's Network-HTML, I got a Syntax Error during
 reloading:
 HtmlTokenizer private-initialization initialize:
 initialize: s
text _ s withSqueakLineEndings.
pos _ Nothing more expected -1.
textAreaLevel _ 0.


That code is using underscore as assigment, don't allowed anymore in Pharo
1.1 unless you explicity set a specific setting.

Soor set that setting or update the code (in another image)

cheers

mariano



 On Wed, Aug 18, 2010 at 2:34 AM, laurent laffont
 laurent.laff...@gmail.com wrote:
 
 
  On Wed, Aug 18, 2010 at 7:50 AM, Andrei Stebakov lisper...@gmail.com
  wrote:
 
  I've been looking for a nice and fast HTML parser.
  I've found Zulq Alam's Soup
  (http://www.squeaksource.com/@vHckXt8_6gVtXFxy/XMrjDbIs) it looks nice
  but it's way too slow for me (takes 5 sec to parse the page, my
  current lisp parser takes about 1 sec for that.)
  I found another one, Todd Blanchard's HTML and CSS parser
  (http://www.squeaksource.com/@iMgHmTKVxU00wEdz/A0jkqk71) but I
  couldn't load it into Pharo 1.1 or Squeak 4.1.
  It complains about some syntax error and leaves the progress bar which
  I can't kill...
  I wonder if anyone (Todd?) can take a look at the parser and figure
  out how to fix it?
 
  What other options I have for an HTML parser?
  Looking at Pharo speed I wonder if there is any way to optimize it? Is
  JIT or some other speed optimization in plans for Pharo/Squeak?
 
 
  What do you need to do ?
  There's XMLSupport http://www.squeaksource.com/XMLSupport.html
  Scamper might have a standalone HTML
  parser http://www.squeaksource.com/Scamper.html
  The CogVM has JIT.
  Laurent.
 
 
  Thank you,
  Andrei
 
  ___
  Pharo-project mailing list
  Pharo-project@lists.gforge.inria.fr
  http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 
 
 
 


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] DropList/EditableDropList fixes

2010-08-18 Thread Gary Chambers
Sorry, couldn't resist doing a bit more...

http://code.google.com/p/pharo/issues/detail?id=2829

Regards, Gary

- Original Message - 
  From: Gary Chambers 
  To: Pharo Development 
  Sent: Tuesday, August 17, 2010 5:30 PM
  Subject: [Pharo-project] DropList/EditableDropList fixes


  See http://code.google.com/p/pharo/issues/detail?id=2821

  Regards, Gary



--


  ___
  Pharo-project mailing list
  Pharo-project@lists.gforge.inria.fr
  http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] [squeak-dev] Re: HTML parser (again)

2010-08-18 Thread Andrei Stebakov
Where can I make this setting?

On Wed, Aug 18, 2010 at 1:14 PM, Mariano Martinez Peck
marianop...@gmail.com wrote:


 On Wed, Aug 18, 2010 at 5:55 PM, Andrei Stebakov lisper...@gmail.com
 wrote:

 I tried to load Scamper's Network-HTML, I got a Syntax Error during
 reloading:
 HtmlTokenizer private-initialization initialize:
 initialize: s
        text _ s withSqueakLineEndings.
        pos _ Nothing more expected -1.
        textAreaLevel _ 0.


 That code is using underscore as assigment, don't allowed anymore in Pharo
 1.1 unless you explicity set a specific setting.

 Soor set that setting or update the code (in another image)

 cheers

 mariano



 On Wed, Aug 18, 2010 at 2:34 AM, laurent laffont
 laurent.laff...@gmail.com wrote:
 
 
  On Wed, Aug 18, 2010 at 7:50 AM, Andrei Stebakov lisper...@gmail.com
  wrote:
 
  I've been looking for a nice and fast HTML parser.
  I've found Zulq Alam's Soup
  (http://www.squeaksource.com/@vHckXt8_6gVtXFxy/XMrjDbIs) it looks nice
  but it's way too slow for me (takes 5 sec to parse the page, my
  current lisp parser takes about 1 sec for that.)
  I found another one, Todd Blanchard's HTML and CSS parser
  (http://www.squeaksource.com/@iMgHmTKVxU00wEdz/A0jkqk71) but I
  couldn't load it into Pharo 1.1 or Squeak 4.1.
  It complains about some syntax error and leaves the progress bar which
  I can't kill...
  I wonder if anyone (Todd?) can take a look at the parser and figure
  out how to fix it?
 
  What other options I have for an HTML parser?
  Looking at Pharo speed I wonder if there is any way to optimize it? Is
  JIT or some other speed optimization in plans for Pharo/Squeak?
 
 
  What do you need to do ?
  There's XMLSupport http://www.squeaksource.com/XMLSupport.html
  Scamper might have a standalone HTML
  parser http://www.squeaksource.com/Scamper.html
  The CogVM has JIT.
  Laurent.
 
 
  Thank you,
  Andrei
 
  ___
  Pharo-project mailing list
  Pharo-project@lists.gforge.inria.fr
  http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 
 
 
 







___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] [squeak-dev] Re: HTML parser (again)

2010-08-18 Thread Mariano Martinez Peck
On Wed, Aug 18, 2010 at 7:34 PM, Andrei Stebakov lisper...@gmail.comwrote:

 Where can I make this setting?


In Pharo, go to System - Settings. In the search for type underscore
and hit enter.

You will see a setting that says allow underscore as assigment


On Wed, Aug 18, 2010 at 1:14 PM, Mariano Martinez Peck
 marianop...@gmail.com wrote:
 
 
  On Wed, Aug 18, 2010 at 5:55 PM, Andrei Stebakov lisper...@gmail.com
  wrote:
 
  I tried to load Scamper's Network-HTML, I got a Syntax Error during
  reloading:
  HtmlTokenizer private-initialization initialize:
  initialize: s
 text _ s withSqueakLineEndings.
 pos _ Nothing more expected -1.
 textAreaLevel _ 0.
 
 
  That code is using underscore as assigment, don't allowed anymore in
 Pharo
  1.1 unless you explicity set a specific setting.
 
  Soor set that setting or update the code (in another image)
 
  cheers
 
  mariano
 
 
 
  On Wed, Aug 18, 2010 at 2:34 AM, laurent laffont
  laurent.laff...@gmail.com wrote:
  
  
   On Wed, Aug 18, 2010 at 7:50 AM, Andrei Stebakov lisper...@gmail.com
 
   wrote:
  
   I've been looking for a nice and fast HTML parser.
   I've found Zulq Alam's Soup
   (http://www.squeaksource.com/@vHckXt8_6gVtXFxy/XMrjDbIs) it looks
 nice
   but it's way too slow for me (takes 5 sec to parse the page, my
   current lisp parser takes about 1 sec for that.)
   I found another one, Todd Blanchard's HTML and CSS parser
   (http://www.squeaksource.com/@iMgHmTKVxU00wEdz/A0jkqk71) but I
   couldn't load it into Pharo 1.1 or Squeak 4.1.
   It complains about some syntax error and leaves the progress bar
 which
   I can't kill...
   I wonder if anyone (Todd?) can take a look at the parser and figure
   out how to fix it?
  
   What other options I have for an HTML parser?
   Looking at Pharo speed I wonder if there is any way to optimize it?
 Is
   JIT or some other speed optimization in plans for Pharo/Squeak?
  
  
   What do you need to do ?
   There's XMLSupport http://www.squeaksource.com/XMLSupport.html
   Scamper might have a standalone HTML
   parser http://www.squeaksource.com/Scamper.html
   The CogVM has JIT.
   Laurent.
  
  
   Thank you,
   Andrei
  
   ___
   Pharo-project mailing list
   Pharo-project@lists.gforge.inria.fr
   http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
  
  
  
  
  
 
 
 
 
 
 


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] [squeak-dev] Re: HTML parser (again)

2010-08-18 Thread Andrei Stebakov
Is there a one-click image for CogVM somewhere so I can download it?


On Wed, Aug 18, 2010 at 2:34 AM, laurent laffont
laurent.laff...@gmail.com wrote:


 On Wed, Aug 18, 2010 at 7:50 AM, Andrei Stebakov lisper...@gmail.com
 wrote:

 I've been looking for a nice and fast HTML parser.
 I've found Zulq Alam's Soup
 (http://www.squeaksource.com/@vHckXt8_6gVtXFxy/XMrjDbIs) it looks nice
 but it's way too slow for me (takes 5 sec to parse the page, my
 current lisp parser takes about 1 sec for that.)
 I found another one, Todd Blanchard's HTML and CSS parser
 (http://www.squeaksource.com/@iMgHmTKVxU00wEdz/A0jkqk71) but I
 couldn't load it into Pharo 1.1 or Squeak 4.1.
 It complains about some syntax error and leaves the progress bar which
 I can't kill...
 I wonder if anyone (Todd?) can take a look at the parser and figure
 out how to fix it?

 What other options I have for an HTML parser?
 Looking at Pharo speed I wonder if there is any way to optimize it? Is
 JIT or some other speed optimization in plans for Pharo/Squeak?


 What do you need to do ?
 There's XMLSupport http://www.squeaksource.com/XMLSupport.html
 Scamper might have a standalone HTML
 parser http://www.squeaksource.com/Scamper.html
 The CogVM has JIT.
 Laurent.


 Thank you,
 Andrei

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project






___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] [squeak-dev] Re: HTML parser (again)

2010-08-18 Thread Andrei Stebakov
As for Scamper when I try to evaluate (in Pharo 1.1)
tok := HtmlTokenizer on: 'html /'.

There is an error:

Error: My subclass should have overridden #contents
Proceed
Abandon
Debug
HtmlTokenizer(Object)error:
HtmlTokenizer(Object)subclassResponsibility
HtmlTokenizer(Stream)contents
HtmlTokenizer(Stream)printOn:
[] in HtmlTokenizer(Object)printStringLimitedTo:
String class(SequenceableCollection class)streamContents:limitedTo:
HtmlTokenizer(Object)printStringLimitedTo:
HtmlTokenizer(Object)printString
TextMorphForShoutEditor(ParagraphEditor)printIt
[] in TextMorphForShoutEditor(ParagraphEditor)printIt:
TextMorphForShoutEditor(ParagraphEditor)terminateAndInitializeAround:
TextMorphForShoutEditor(ParagraphEditor)printIt:
TextMorphForShoutEditor(ParagraphEditor)dispatchOnKeyEvent:with:
TextMorphForShoutEditor(TextMorphEditor)dispatchOnKeyEvent:with:
TextMorphForShoutEditor(ParagraphEditor)keystroke:
TextMorphForShoutEditor(TextMorphEditor)keystroke:
[] in [] in TextMorphForShout(TextMorph)keyStroke:
TextMorphForShout(TextMorph)handleInteraction:
TextMorphForShout(TextMorphForEditView)handleInteraction:
[] in TextMorphForShout(TextMorph)keyStroke:



On Wed, Aug 18, 2010 at 2:34 AM, laurent laffont
laurent.laff...@gmail.com wrote:


 On Wed, Aug 18, 2010 at 7:50 AM, Andrei Stebakov lisper...@gmail.com
 wrote:

 I've been looking for a nice and fast HTML parser.
 I've found Zulq Alam's Soup
 (http://www.squeaksource.com/@vHckXt8_6gVtXFxy/XMrjDbIs) it looks nice
 but it's way too slow for me (takes 5 sec to parse the page, my
 current lisp parser takes about 1 sec for that.)
 I found another one, Todd Blanchard's HTML and CSS parser
 (http://www.squeaksource.com/@iMgHmTKVxU00wEdz/A0jkqk71) but I
 couldn't load it into Pharo 1.1 or Squeak 4.1.
 It complains about some syntax error and leaves the progress bar which
 I can't kill...
 I wonder if anyone (Todd?) can take a look at the parser and figure
 out how to fix it?

 What other options I have for an HTML parser?
 Looking at Pharo speed I wonder if there is any way to optimize it? Is
 JIT or some other speed optimization in plans for Pharo/Squeak?


 What do you need to do ?
 There's XMLSupport http://www.squeaksource.com/XMLSupport.html
 Scamper might have a standalone HTML
 parser http://www.squeaksource.com/Scamper.html
 The CogVM has JIT.
 Laurent.


 Thank you,
 Andrei

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project






___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] [squeak-dev] Re: HTML parser (again)

2010-08-18 Thread Andrei Stebakov
I am sorry, this error only happens when I try to print it instead of do it.

On Wed, Aug 18, 2010 at 2:10 PM, Andrei Stebakov lisper...@gmail.com wrote:
 As for Scamper when I try to evaluate (in Pharo 1.1)
 tok := HtmlTokenizer on: 'html /'.

 There is an error:

 Error: My subclass should have overridden #contents
 Proceed
 Abandon
 Debug
 HtmlTokenizer(Object)error:
 HtmlTokenizer(Object)subclassResponsibility
 HtmlTokenizer(Stream)contents
 HtmlTokenizer(Stream)printOn:
 [] in HtmlTokenizer(Object)printStringLimitedTo:
 String class(SequenceableCollection class)streamContents:limitedTo:
 HtmlTokenizer(Object)printStringLimitedTo:
 HtmlTokenizer(Object)printString
 TextMorphForShoutEditor(ParagraphEditor)printIt
 [] in TextMorphForShoutEditor(ParagraphEditor)printIt:
 TextMorphForShoutEditor(ParagraphEditor)terminateAndInitializeAround:
 TextMorphForShoutEditor(ParagraphEditor)printIt:
 TextMorphForShoutEditor(ParagraphEditor)dispatchOnKeyEvent:with:
 TextMorphForShoutEditor(TextMorphEditor)dispatchOnKeyEvent:with:
 TextMorphForShoutEditor(ParagraphEditor)keystroke:
 TextMorphForShoutEditor(TextMorphEditor)keystroke:
 [] in [] in TextMorphForShout(TextMorph)keyStroke:
 TextMorphForShout(TextMorph)handleInteraction:
 TextMorphForShout(TextMorphForEditView)handleInteraction:
 [] in TextMorphForShout(TextMorph)keyStroke:



 On Wed, Aug 18, 2010 at 2:34 AM, laurent laffont
 laurent.laff...@gmail.com wrote:


 On Wed, Aug 18, 2010 at 7:50 AM, Andrei Stebakov lisper...@gmail.com
 wrote:

 I've been looking for a nice and fast HTML parser.
 I've found Zulq Alam's Soup
 (http://www.squeaksource.com/@vHckXt8_6gVtXFxy/XMrjDbIs) it looks nice
 but it's way too slow for me (takes 5 sec to parse the page, my
 current lisp parser takes about 1 sec for that.)
 I found another one, Todd Blanchard's HTML and CSS parser
 (http://www.squeaksource.com/@iMgHmTKVxU00wEdz/A0jkqk71) but I
 couldn't load it into Pharo 1.1 or Squeak 4.1.
 It complains about some syntax error and leaves the progress bar which
 I can't kill...
 I wonder if anyone (Todd?) can take a look at the parser and figure
 out how to fix it?

 What other options I have for an HTML parser?
 Looking at Pharo speed I wonder if there is any way to optimize it? Is
 JIT or some other speed optimization in plans for Pharo/Squeak?


 What do you need to do ?
 There's XMLSupport http://www.squeaksource.com/XMLSupport.html
 Scamper might have a standalone HTML
 parser http://www.squeaksource.com/Scamper.html
 The CogVM has JIT.
 Laurent.


 Thank you,
 Andrei

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project







___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] HTML parser (again)

2010-08-18 Thread Sean P. DeNigris


Andrei Stebakov wrote:
 
 I found another one, Todd Blanchard's HTML and CSS parser
 (http://www.squeaksource.com/@iMgHmTKVxU00wEdz/A0jkqk71) but I
 couldn't load it into Pharo 1.1 or Squeak 4.1.
 It complains about some syntax error and leaves the progress bar which
 I can't kill...
 I wonder if anyone (Todd?) can take a look at the parser and figure
 out how to fix it?
 

I fixed it - I swear I didn't mean to.  I had other things to do and I
promised myself I was just going to take a look, but one thing led to
another and...

I don't have write access to the repo, so you can get it here:
http://www.squeaksource.com/SPDProjectUpdates (look for the HTML package)

Sean

p.s. I've never used it, so I don't know if it works, but it loads
-- 
View this message in context: 
http://forum.world.st/HTML-parser-again-tp2329387p2330254.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] Fwd: break point

2010-08-18 Thread TimM
 I was guilty of harvesting that for 3.7 or 3.6... (Squeak that is).

Thanks for trying to get it in, it would be so nice if we could have
easy ui breakpoints like other smalltalks and languages.

I remain hopeful from your other comments though.

Tim


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


[Pharo-project] Syntax errors while loading a package

2010-08-18 Thread Sean P. DeNigris

After fixing a syntax error while loading a package, how do you resume
loading successfully?

Motivation: I was loading the HTML package from
http://www.squeaksource.com/htmlcssparser.  I got a syntax error because
-1 was typed - 1.  I fixed and accepted it in the window that came up,
but the load got messed up - specifically many classes had methods that
showed in the browser, but the category pane showed no methods.  At this
point, I couldn't save the package, or even merge, because MC was reporting
errors.  I removed all the offending classes, and then merged, using
everything from the original package except the method I had fixed.

It seemed too complicated.  What is the best way to handle the above
situation?

Sean
-- 
View this message in context: 
http://forum.world.st/Syntax-errors-while-loading-a-package-tp2330279p2330279.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] HTML parser (again)

2010-08-18 Thread Andrei Stebakov
Thank you Sean, it load now.
I only wish the library had some test cases or description since it's
not obvious how to use it.

On Wed, Aug 18, 2010 at 2:55 PM, Sean P. DeNigris s...@clipperadams.com wrote:


 Andrei Stebakov wrote:

 I found another one, Todd Blanchard's HTML and CSS parser
 (http://www.squeaksource.com/@iMgHmTKVxU00wEdz/A0jkqk71) but I
 couldn't load it into Pharo 1.1 or Squeak 4.1.
 It complains about some syntax error and leaves the progress bar which
 I can't kill...
 I wonder if anyone (Todd?) can take a look at the parser and figure
 out how to fix it?


 I fixed it - I swear I didn't mean to.  I had other things to do and I
 promised myself I was just going to take a look, but one thing led to
 another and...

 I don't have write access to the repo, so you can get it here:
 http://www.squeaksource.com/SPDProjectUpdates (look for the HTML package)

 Sean

 p.s. I've never used it, so I don't know if it works, but it loads
 --
 View this message in context: 
 http://forum.world.st/HTML-parser-again-tp2329387p2330254.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] Syntax errors while loading a package

2010-08-18 Thread Schwab,Wilhelm K
This is a fairly big usability hassle, but I have typically been doing even 
worse things to the code (SIF, followed by search/replace with the regex 
package), so I typically have gone hunting for the snag (usually an improperly 
terminated cascade, which Dolphin 5.x happily compiles, hence the large number 
of them in my code), exit Pharo, re-run, re-load and look for the next error.  
It's a pleasant surprise when it finally loads cleanly.  It would be better to 
have a clean way to cope with these things.

Bill



From: pharo-project-boun...@lists.gforge.inria.fr 
[pharo-project-boun...@lists.gforge.inria.fr] On Behalf Of Sean P. DeNigris 
[s...@clipperadams.com]
Sent: Wednesday, August 18, 2010 3:16 PM
To: pharo-project@lists.gforge.inria.fr
Subject: [Pharo-project] Syntax errors while loading a package

After fixing a syntax error while loading a package, how do you resume
loading successfully?

Motivation: I was loading the HTML package from
http://www.squeaksource.com/htmlcssparser.  I got a syntax error because
-1 was typed - 1.  I fixed and accepted it in the window that came up,
but the load got messed up - specifically many classes had methods that
showed in the browser, but the category pane showed no methods.  At this
point, I couldn't save the package, or even merge, because MC was reporting
errors.  I removed all the offending classes, and then merged, using
everything from the original package except the method I had fixed.

It seemed too complicated.  What is the best way to handle the above
situation?

Sean
--
View this message in context: 
http://forum.world.st/Syntax-errors-while-loading-a-package-tp2330279p2330279.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] [Pharo-users] Printing documents

2010-08-18 Thread Mariano Martinez Peck
This is in seaside website but it may help you anyway for Pharo:

http://www.seaside.st/documentation/pdfs

I have no idea about the printer.

Cheers

Mariano

On Wed, Aug 18, 2010 at 10:00 PM, Linus De Meyere linus...@gmail.comwrote:

 Hey all,

 Is there a way to drive a printer from a pharo environment? I would like to
 know if it's possible to generate a pdf and instruct the printer to print
 it. Any advice?

 Thanks in advance,

 Linus

 ___
 Pharo-users mailing list
 pharo-us...@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] HTML parser (again)

2010-08-18 Thread laurent laffont
Marcus, Stéphane,

is it possible to have the Scamper repository with public write access ? Or
at least add Andrei and Sean...

Cheers,

Laurent

On Wed, Aug 18, 2010 at 8:55 PM, Sean P. DeNigris s...@clipperadams.comwrote:



 Andrei Stebakov wrote:
 
  I found another one, Todd Blanchard's HTML and CSS parser
  (http://www.squeaksource.com/@iMgHmTKVxU00wEdz/A0jkqk71) but I
  couldn't load it into Pharo 1.1 or Squeak 4.1.
  It complains about some syntax error and leaves the progress bar which
  I can't kill...
  I wonder if anyone (Todd?) can take a look at the parser and figure
  out how to fix it?
 

 I fixed it - I swear I didn't mean to.  I had other things to do and I
 promised myself I was just going to take a look, but one thing led to
 another and...

 I don't have write access to the repo, so you can get it here:
 http://www.squeaksource.com/SPDProjectUpdates (look for the HTML package)

 Sean

 p.s. I've never used it, so I don't know if it works, but it loads
 --
 View this message in context:
 http://forum.world.st/HTML-parser-again-tp2329387p2330254.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] why TextMorph and PluggableTextMorph are not

2010-08-18 Thread Stéphane Ducasse
Lukas 
I think that we should try it. Because I think that is still dust and bugs 
there (like the possiblyChanged I encountered yesteday).
I will have a look soon. Missing also evaluateSelection for example :)

Stef


On Aug 18, 2010, at 2:02 PM, Lukas Renggli wrote:

 On 18 August 2010 13:09, Fernando olivero fernando.oliv...@usi.ch wrote:
 WEIRD!
 
 IMO There should be no need for PluggableTextMorph, I think the work on 
 NewTextMorph goes into that direction, a customizable and extensible text 
 morph,
 that announces whatever happens to it.
 
 Is there any documentation/blog/tutorial that explains how to use the
 NewTextMorph.
 
 I would like to integrate it with OmniBrowser at some point.
 
 Lukas
 
 
 
 On Aug 17, 2010, at 9:46 PM, Stéphane Ducasse wrote:
 
 well in the same hierarchy?
 I like because I'm so naive about how the world could be :)
 
 Stef
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 
 
 
 -- 
 Lukas Renggli
 www.lukas-renggli.ch
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] Should I be able to hang my pharo 1.1 image so easily?

2010-08-18 Thread Stéphane Ducasse
TX!


On Aug 18, 2010, at 4:29 PM, Henrik Johansen wrote:

 I've submitted a slice to inbox, which contains a proposed fix.
 Details in the issue (2825) for those interested.
 
 Cheers,
 Henry
 
 On Aug 18, 2010, at 9:25 52AM, Stéphane Ducasse wrote:
 
 thanks david for the pointer.
 Yes we should investigate that again.
 
 
 On Aug 18, 2010, at 3:20 AM, David T. Lewis wrote:
 
 Probably completely off the mark but just in case it jogs someone's
 memory, the fixes for this issue that went into  Squeak 3.9 were
 tracked on Mantis here:
 
 http://bugs.squeak.org/view.php?id=1041
 
 Possibly one of the patches got undone by accident?
 
 HTH,
 Dave
 
 
 On Tue, Aug 17, 2010 at 10:28:31PM +0200, Adrian Lienhard wrote:
 I heard about that problem too...
 
 In Squeak 3.9 I can interrupt [[true] whileTrue] fork, but not in Pharo.
 
 Has anybody an idea why this doesn't work anymore? 
 
 Adrian
 
 On Aug 17, 2010, at 16:27 , Henrik Johansen wrote:
 
 
 On Aug 17, 2010, at 3:38 20PM, TimM wrote:
 
 Henrik Johansen wrote:
 
 Is this code run in a separate process?
 UserInterruptHandlerhandleUserInterrupt specifically interrupts the 
 UI-process, rather than f.ex. the last process consuming cycles.
 Whether that is desired behaviour or not, is up for discussion :)
 
 I'm not sure - as its seaside is that a UI-process (I don't think it 
 is). By browser - I mean web browser. And then I notice my cpu spike and 
 if I switch back to squeak, its hosed.
 
 Tim
 There's only one UI Process (tm) in Pharo/Squeak, responsible for 
 updating the UI, running doits, etc.
 
 Not quite sure how Seaside does its magic when requests are coming in, 
 but if it forks of their processing with priority = UIProcess priority, 
 it will indeed hose the image with no means of recovering using Cmd-dot 
 in the case of an infinite loop.
 
 Try the following from a workspace to illustrate:
 
 Interruptable with Cmd-dot
 [true ] whileTrue.
 
 Forking at lower than UI process, so UI stays responsive, but does not 
 interrupt runaway process with Cmd-dot (you can terminate it using 
 process browser)
 [[true ] whileTrue] forkAt: Processor activePriority - 1Code run 
 from a workspace will run in the UI process, so active priority will be 
 the UI process priority
 
 Forking at same as UI process, Cmd-dot interrups UI process rather than 
 runaway, but debugger is (almost) never displayed since runaway process 
 takes almost all cycles
 [[true] whileTrue] forkFork forks of the process at same priority as 
 active process
 
 
 Cheers,
 Henry
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] FW: [Seaside] Changes file too big

2010-08-18 Thread Stéphane Ducasse
Oops.
Robert can you tell us which version you are using?

Stef

 How do I clear my changes file? Smalltalk condenseChanges. just brings up a 
 PositionalStream error.
 
 Thanks, RS
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] DropList/EditableDropList fixes

2010-08-18 Thread Stéphane Ducasse
:)

Gary I noticed a change in behavior with dialog 
before I enter in an inputdialog was bound with enter and now I have to press 
enter.
Did you notice that too?

On Aug 18, 2010, at 7:32 PM, Gary Chambers wrote:

 Sorry, couldn't resist doing a bit more...
  
 http://code.google.com/p/pharo/issues/detail?id=2829
 
 Regards, Gary
  
 - Original Message -
 From: Gary Chambers
 To: Pharo Development
 Sent: Tuesday, August 17, 2010 5:30 PM
 Subject: [Pharo-project] DropList/EditableDropList fixes
 
 See http://code.google.com/p/pharo/issues/detail?id=2821
 
 Regards, Gary
 
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] FW: [Seaside] Changes file too big

2010-08-18 Thread Mariano Martinez Peck
With condenseCHanges we used to have the problem with Invalid UTF input
dected (or something like that), but I don't know a possition error.
Provide, VM and image version, and a clean PharoDebug.log.

cheers

mariano

On Wed, Aug 18, 2010 at 10:58 PM, Stéphane Ducasse 
stephane.duca...@inria.fr wrote:

 Oops.
 Robert can you tell us which version you are using?

 Stef

  How do I clear my changes file? Smalltalk condenseChanges. just brings up
 a PositionalStream error.
 
  Thanks, RS
  ___
  Pharo-project mailing list
  Pharo-project@lists.gforge.inria.fr
  http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] Fwd: break point

2010-08-18 Thread Stéphane Ducasse
We will have them :)
Marcus shows me Opal today and probably in 1.3 we will have really nice 
compiler and all nice bytecode manipulation framework 
(like bytesurgeon). So we will have simple break points and after cool one.

Stef


On Aug 18, 2010, at 9:02 PM, TimM wrote:

 I was guilty of harvesting that for 3.7 or 3.6... (Squeak that is).
 
 Thanks for trying to get it in, it would be so nice if we could have
 easy ui breakpoints like other smalltalks and languages.
 
 I remain hopeful from your other comments though.
 
 Tim
 
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] HTML parser (again)

2010-08-18 Thread Stéphane Ducasse
sure 
I was not aware I was admin. I saw that marcus did it ;)

Stef

On Aug 18, 2010, at 10:14 PM, laurent laffont wrote:

 Marcus, Stéphane,
 
 is it possible to have the Scamper repository with public write access ? Or 
 at least add Andrei and Sean...
 
 Cheers,
 
 Laurent 
 
 On Wed, Aug 18, 2010 at 8:55 PM, Sean P. DeNigris s...@clipperadams.com 
 wrote:
 
 
 Andrei Stebakov wrote:
 
  I found another one, Todd Blanchard's HTML and CSS parser
  (http://www.squeaksource.com/@iMgHmTKVxU00wEdz/A0jkqk71) but I
  couldn't load it into Pharo 1.1 or Squeak 4.1.
  It complains about some syntax error and leaves the progress bar which
  I can't kill...
  I wonder if anyone (Todd?) can take a look at the parser and figure
  out how to fix it?
 
 
 I fixed it - I swear I didn't mean to.  I had other things to do and I
 promised myself I was just going to take a look, but one thing led to
 another and...
 
 I don't have write access to the repo, so you can get it here:
 http://www.squeaksource.com/SPDProjectUpdates (look for the HTML package)
 
 Sean
 
 p.s. I've never used it, so I don't know if it works, but it loads
 --
 View this message in context: 
 http://forum.world.st/HTML-parser-again-tp2329387p2330254.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] We want your photo

2010-08-18 Thread laurent laffont
Plenty of people added :) Thanks

Laurent

On Mon, Aug 16, 2010 at 10:12 PM, laurent laffont laurent.laff...@gmail.com
 wrote:

 for http://pharo-project.org/community/contributors

 and a little description of your Pharo usage and / or contributions.

 Thanks,
 http://pharo-project.org/community/contributors
 Laurent Laffont

 http://pharocasts.blogspot.com/
 http://magaloma.blogspot.com/

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] HTML parser (again)

2010-08-18 Thread laurent laffont
Thanks.

Sean, could you put your package there ?

Laurent


On Wed, Aug 18, 2010 at 11:08 PM, Stéphane Ducasse 
stephane.duca...@inria.fr wrote:

 sure
 I was not aware I was admin. I saw that marcus did it ;)

 Stef

 On Aug 18, 2010, at 10:14 PM, laurent laffont wrote:

  Marcus, Stéphane,
 
  is it possible to have the Scamper repository with public write access ?
 Or at least add Andrei and Sean...
 
  Cheers,
 
  Laurent
 
  On Wed, Aug 18, 2010 at 8:55 PM, Sean P. DeNigris s...@clipperadams.com
 wrote:
 
 
  Andrei Stebakov wrote:
  
   I found another one, Todd Blanchard's HTML and CSS parser
   (http://www.squeaksource.com/@iMgHmTKVxU00wEdz/A0jkqk71) but I
   couldn't load it into Pharo 1.1 or Squeak 4.1.
   It complains about some syntax error and leaves the progress bar which
   I can't kill...
   I wonder if anyone (Todd?) can take a look at the parser and figure
   out how to fix it?
  
 
  I fixed it - I swear I didn't mean to.  I had other things to do and I
  promised myself I was just going to take a look, but one thing led to
  another and...
 
  I don't have write access to the repo, so you can get it here:
  http://www.squeaksource.com/SPDProjectUpdates (look for the HTML
 package)
 
  Sean
 
  p.s. I've never used it, so I don't know if it works, but it loads
  --
  View this message in context:
 http://forum.world.st/HTML-parser-again-tp2329387p2330254.html
  Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
 
  ___
  Pharo-project mailing list
  Pharo-project@lists.gforge.inria.fr
  http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 


___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] We want your photo

2010-08-18 Thread Mariano Martinez Peck
chin chin!!  we have our first women :)

gracias veronica jajaja

ps: carla...we are waiting you ;)

2010/8/18 laurent laffont laurent.laff...@gmail.com

 Plenty of people added :) Thanks

 Laurent

 On Mon, Aug 16, 2010 at 10:12 PM, laurent laffont 
 laurent.laff...@gmail.com wrote:

 for http://pharo-project.org/community/contributors

 and a little description of your Pharo usage and / or contributions.

 Thanks,
 http://pharo-project.org/community/contributors
 Laurent Laffont

 http://pharocasts.blogspot.com/
 http://magaloma.blogspot.com/



 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] [squeak-dev] Re: HTML parser (again)

2010-08-18 Thread laurent laffont
On Wed, Aug 18, 2010 at 7:48 PM, Andrei Stebakov lisper...@gmail.comwrote:

 Is there a one-click image for CogVM somewhere so I can download it?


It's planned but for now it seems you have to build it yourself.

Laurent





 On Wed, Aug 18, 2010 at 2:34 AM, laurent laffont
 laurent.laff...@gmail.com wrote:
 
 
  On Wed, Aug 18, 2010 at 7:50 AM, Andrei Stebakov lisper...@gmail.com
  wrote:
 
  I've been looking for a nice and fast HTML parser.
  I've found Zulq Alam's Soup
  (http://www.squeaksource.com/@vHckXt8_6gVtXFxy/XMrjDbIs) it looks nice
  but it's way too slow for me (takes 5 sec to parse the page, my
  current lisp parser takes about 1 sec for that.)
  I found another one, Todd Blanchard's HTML and CSS parser
  (http://www.squeaksource.com/@iMgHmTKVxU00wEdz/A0jkqk71) but I
  couldn't load it into Pharo 1.1 or Squeak 4.1.
  It complains about some syntax error and leaves the progress bar which
  I can't kill...
  I wonder if anyone (Todd?) can take a look at the parser and figure
  out how to fix it?
 
  What other options I have for an HTML parser?
  Looking at Pharo speed I wonder if there is any way to optimize it? Is
  JIT or some other speed optimization in plans for Pharo/Squeak?
 
 
  What do you need to do ?
  There's XMLSupport http://www.squeaksource.com/XMLSupport.html
  Scamper might have a standalone HTML
  parser http://www.squeaksource.com/Scamper.html
  The CogVM has JIT.
  Laurent.
 
 
  Thank you,
  Andrei
 
  ___
  Pharo-project mailing list
  Pharo-project@lists.gforge.inria.fr
  http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 
 
 
 

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] We want your photo

2010-08-18 Thread Carla F. Griggio
XD You're not alone, Veronica.

I'll send one tonight :P

2010/8/18 Mariano Martinez Peck marianop...@gmail.com

 chin chin!!  we have our first women :)

 gracias veronica jajaja

 ps: carla...we are waiting you ;)

 2010/8/18 laurent laffont laurent.laff...@gmail.com

 Plenty of people added :) Thanks

 Laurent

 On Mon, Aug 16, 2010 at 10:12 PM, laurent laffont 
 laurent.laff...@gmail.com wrote:

 for http://pharo-project.org/community/contributors

 and a little description of your Pharo usage and / or contributions.

 Thanks,
 http://pharo-project.org/community/contributors
 Laurent Laffont

 http://pharocasts.blogspot.com/
 http://magaloma.blogspot.com/



 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project



 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

[Pharo-project] Dispatch morphic stepping from window back to model

2010-08-18 Thread Torsten Bergmann
See http://code.google.com/p/pharo/issues/list?cursor=2832
for details and please help to discuss if we really need
this dispatching of #step methods from the view to the model
and the no-op #step methods in Model and MCTool or if 
we can clean things up a little bit

Thanks
T.
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] HTML parser (again)

2010-08-18 Thread Sean P. DeNigris


laurent laffont wrote:
 
 Sean, could you put your package there ?
 

The wonderful world of Squeak packages...  The package I fixed is Todd
Blanchard's HTML  CSS Validating Parser at
http://www.squeaksource.com/htmlcssparser/, not the Scamper HTML from
http://www.squeaksource.com/HTML, although both packages are called HTML.

However, this is a lovely opportunity to repeat my call for either (or maybe
both):
* (my favorite) create an inbox for each project on SqS, just like for
Squeak and Pharo trunk, so users can choose between the bleeding edge (which
would include contributions like this one) or the last officially blessed
one; but they would all be in the same place and obvious to find.
* or, send an email to all SqS emails saying that if they don't affirm
responsibility for their project within X amount of time, the repo will be
released to the community i.e. made w/r.

I also seem to remember a suggestion at one point to have a list of people
that were approved to commit to any repo on SqS.

The point is, make it easy to contribute and people will.  It is a downer to
go through the work of fixing packages, only to put them in my own repo
where they may never be found by users, because the repo is read-only and I
can't get in touch with the admins.

rant
Also, adding oneself to each repo is RUBBISH!  Even though I usually
take the time, I shudder at the thought of all the community fixes that were
kept personally or thrown away because it was a hassle to share them.  I'm
sure many people, like me, just fix things that are broken.  This is the
whole beauty of a live system that's turtles all the way down - my system's
menus are broken, great, I just spend 20 minutes fixing them for every user
on the planet vs. the typical X months (if ever) for an OS vendor to get
around to a fix
/rant

Sean
-- 
View this message in context: 
http://forum.world.st/HTML-parser-again-tp2329387p2330466.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] FW: [Seaside] Changes file too big

2010-08-18 Thread Robert Sirois
I can't say for sure until I get home but it was the something dot 505 from a 
little earlier this year.

Thanks,
RS

Oh, also.. that condenseChanges messed up monticello, too.

 From: stephane.duca...@inria.fr
 Date: Wed, 18 Aug 2010 22:58:32 +0200
 To: Pharo-project@lists.gforge.inria.fr
 Subject: Re: [Pharo-project] FW: [Seaside] Changes file too big
 
 Oops.
 Robert can you tell us which version you are using?
 
 Stef
 
  How do I clear my changes file? Smalltalk condenseChanges. just brings up a 
  PositionalStream error.
  
  Thanks, RS
  ___
  Pharo-project mailing list
  Pharo-project@lists.gforge.inria.fr
  http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
  ___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] [squeak-dev] Re: HTML parser (again)

2010-08-18 Thread John M McIntosh
I will try to push a CogVM for the mac this weekend, Eliot and I are planing 
some time then to get this out the door. 

On 2010-08-18, at 2:05 PM, stephane ducasse wrote:

 no CogVM is not ready for us.
 
 
 

--
===
John M. McIntosh john...@smalltalkconsulting.com   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===





___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


[Pharo-project] FW: FW: [Seaside] Changes file too big

2010-08-18 Thread Robert Sirois



From: watchl...@hotmail.com
To: watchl...@hotmail.com
Subject: RE: [Pharo-project] FW: [Seaside] Changes file too big
Date: Wed, 18 Aug 2010 20:56:37 -0600








Ok... I was running pharo1.0-10505-rc1dev10.01.2.
I decided to time machine back to last night, so I only lost a couple hours of 
work. Somehow Gofer, maybe? added tons of lines of random code to all the 
methods in the packages I was trying to save out via Monticello and erased all 
the code I had in them.
If you need more information I can pull the image out of time machine from this 
morning again.
Thanks,RS
How do I clear the changes or make the max bigger? I would think it would be 
easy.
From: watchl...@hotmail.com
To: pharo-project@lists.gforge.inria.fr
Subject: RE: [Pharo-project] FW: [Seaside] Changes file too big
Date: Wed, 18 Aug 2010 17:22:46 -0600







I can't say for sure until I get home but it was the something dot 505 from a 
little earlier this year.

Thanks,
RS

Oh, also.. that condenseChanges messed up monticello, too.

 From: stephane.duca...@inria.fr
 Date: Wed, 18 Aug 2010 22:58:32 +0200
 To: Pharo-project@lists.gforge.inria.fr
 Subject: Re: [Pharo-project] FW: [Seaside] Changes file too big
 
 Oops.
 Robert can you tell us which version you are using?
 
 Stef
 
  How do I clear my changes file? Smalltalk condenseChanges. just brings up a 
  PositionalStream error.
  
  Thanks, RS
  ___
  Pharo-project mailing list
  Pharo-project@lists.gforge.inria.fr
  http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
 
 
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
  ___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project