Re: [Pharo-users] Questions

2016-07-28 Thread Julien Delplanque
Hello, Have a look at "NeoCSV" project from the catalog browser. This document [1] may help you as well. There is a dedicated section for NeoCSV. Regards, Julien Links: [1]: http://www.slideshare.net/philippeback/pharo-days-2016-data-formats-and-protocols On 28/07/16 08:30, Alejandro Adg

Re: [Pharo-users] Questions

2016-07-28 Thread Sven Van Caekenberghe
And there is this chapter in the new book: https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/book-result/NeoCSV/NeoCSV.html But I understood that Alejandro has to write a simple CSV parser from first principles himself. > On 28 Jul 2016, at 09:51, Julie

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Denis Kudriashov
Hi 2016-07-27 22:19 GMT+02:00 Steven Costiou : > Hi, > > I use virus from Ghost to intercept messages sent to a given object and > adapt methods behaviors for this particular object only. However it would > seems that doing interception this way is subject to the "self problem" > described in thi

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Denis Kudriashov
I think I not understood second part of "self problem" in this paper. But self sends are covered by virus as I described. 2016-07-28 11:30 GMT+02:00 Denis Kudriashov : > Hi > > 2016-07-27 22:19 GMT+02:00 Steven Costiou : > >> Hi, >> >> I use virus from Ghost to intercept messages sent to a given

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Guille Polito
This is the difference between Forwarding and Delegation [1]. Accessorily to this discussion, the name "Virus" does not yet convince me: - first, it has a negative connotation in informatics. People do not want to have virus installed. They do not want virus infecting their machines. People us

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Steven Costiou
Hi, I think i am missing something. For example in the following code (took from the tests): | victim virus actual | virus := GHObjectVirus behaviour: GHGhostBehaviourStub new. victim := 0@0 corner: 3@4. virus infect: victim. victim corner The evaluation is trapped by t

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Esteban Lorenzano
I do not like either the “virus” name. not just because is negative in a subjective way… also it hides what it does inside a fantasy name, and that IMO is negative to self discovery of the system. I mean… a framework can have a fantasy name… but a class? A method name? (#infect:… come on!)

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Norbert Hartl
> Am 28.07.2016 um 12:56 schrieb Esteban Lorenzano : > > I do not like either the “virus” name. > not just because is negative in a subjective way… also it hides what it does > inside a fantasy name, and that IMO is negative to self discovery of the > system. > > I mean… a framework can have

[Pharo-users] Update CI books written in Pillar

2016-07-28 Thread Yann Dubois
Hi ! In the last version of Pillar (4.0.x), Pillar don't manage the compilation cycle. So the ./compile.sh does not work anymore. To update our CI, we use a Makefile (I advise you to use this too). You have an example on : https://github.com/pillar-markup/Pillar-Archetype/blob/master/welcome/Make

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Steven Costiou
Ok by digging a bit, i found that it was a problem in my behavior though i don't understand it. When sending message to self, the #isMetaMessage: returns always true when evaluating the first test condition GHCurrentMetaLevelDepth value > 0 ifTrue: [ ^true ]. The value returns something higher th

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Denis Kudriashov
Steven, I fixed it. Load development version (or just this: Ghost-ObjectVirus-DenisKudryashov.12). I will update stable soon 2016-07-28 13:46 GMT+02:00 Steven Costiou : > Ok by digging a bit, i found that it was a problem in my behavior though i > don't understand it. > > When sending message to

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Denis Kudriashov
And stable version 2.2.2 is done 2016-07-28 14:05 GMT+02:00 Denis Kudriashov : > Steven, I fixed it. > Load development version (or just this: > Ghost-ObjectVirus-DenisKudryashov.12). > > I will update stable soon > > 2016-07-28 13:46 GMT+02:00 Steven Costiou : > >> Ok by digging a bit, i found t

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Steven Costiou
Thank you very much =) It works perfectly ! Steven. Le 2016-07-28 14:05, Denis Kudriashov a écrit : > Steven, I fixed it. > Load development version (or just this: > Ghost-ObjectVirus-DenisKudryashov.12). > > I will update stable soon > > 2016-07-28 13:46 GMT+02:00 Steven Costiou : >

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread stepharo
Le 28/7/16 à 12:11, Guille Polito a écrit : This is the difference between Forwarding and Delegation [1]. Accessorily to this discussion, the name "Virus" does not yet convince me: - first, it has a negative connotation in informatics. People do not want to have virus installed. They do not

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Denis Kudriashov
2016-07-28 12:56 GMT+02:00 Esteban Lorenzano : > I do not like either the “virus” name. > not just because is negative in a subjective way… also it hides what it > does inside a fantasy name, and that IMO is negative to self discovery of > the system. > > I mean… a framework can have a fantasy nam

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Guille Polito
Denis, I recommend that you read carefully the paper that Steven sent (the one about message passing, that Stef wrote many years ago :)). If you read carefully, you'll see that what you call object virus is already there, and falls into the category "anonymous classes". Maybe you can get som

[Pharo-users] Emojis in Pharo

2016-07-28 Thread Sean P. DeNigris
Are there any available fonts which correctly display emojis? I'm playing with sms data... - Cheers, Sean -- View this message in context: http://forum.world.st/Emojis-in-Pharo-tp4908461.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Re: [Pharo-users] Pharo-users Digest, Vol 39, Issue 126

2016-07-28 Thread Alejandro Adgi Romano
links after the compilation. Personnaly, I had > > *find book-result -type l -exec unlink {} \;* > > > at the end of the EnterprisePharo's Jenkins script. > > Cheers, Yann > -- next part -- > An HTML attachment was scrubbed... > URL: < >

Re: [Pharo-users] OpenGLES2 binding available!

2016-07-28 Thread stepharo
Hi thibault I took some times to look at your project. Nice. Now the GLW example is not working. I understand that this is a binding. I do not want to have to work that low level. I'm curious to see what people will be able to build on top of it. Stef Le 19/7/16 à 13:19, Thibault Raffai

Re: [Pharo-users] OpenGLES2 binding available!

2016-07-28 Thread Alexandre Bergel
> I would love to see an athens back-end for it. > Isn't it what Ronie is working on? Alexandre > > Le 19/7/16 à 13:19, Thibault Raffaillac a écrit : >> Hi all, >> >> My tiny binding for OpenGLES2 is ready :) >> http://smalltalkhub.com/#!/~ThibaultRaffaillac/OpenGLES2/ >>

[Pharo-users] Listing Named Play Pages

2016-07-28 Thread Sean P. DeNigris
Is there another way besides via Spotter? I would expect to find a menu or button on the playground itself... - Cheers, Sean -- View this message in context: http://forum.world.st/Listing-Named-Play-Pages-tp4908505.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Re: [Pharo-users] OpenGLES2 binding available!

2016-07-28 Thread Ronie Salgado
> > Isn't it what Ronie is working on? I am not working with OpenGL or OpenGL ES anymore. I am moving all of my efforts into Woden 2, the AbstractGPU (an abstraction layer for Vulkan, Direct3D 12 and Metal), and Dastrel (Data Stream Language) a custom shader language whose compiler I implemented i

Re: [Pharo-users] Pharo-users Digest, Vol 39, Issue 126

2016-07-28 Thread Sven Van Caekenberghe
t; need to remove the symbolic links after the compilation. Personnaly, I had > > *find book-result -type l -exec unlink {} \;* > > > at the end of the EnterprisePharo's Jenkins script. > > Cheers, Yann > -- next part -- > An HTML attachment was

Re: [Pharo-users] OpenGLES2 binding available!

2016-07-28 Thread stepharo
Thanks ronie for your analysis (especially the thread local point). Stef Le 28/7/16 à 20:36, Ronie Salgado a écrit : Isn't it what Ronie is working on? I am not working with OpenGL or OpenGL ES anymore. I am moving all of my efforts into Woden 2, the AbstractGPU (an abstraction layer fo

Re: [Pharo-users] OpenGLES2 binding available!

2016-07-28 Thread stepharo
Anyway, implementing a Athens backend from scratch is a really hard problem, because paths can be concave, curve and self intersecting. Drawing a path, unlike drawing a triangle is a global operation, for which GPUs were not designed for. The easiest and most robust technique for drawing a

Re: [Pharo-users] OpenGLES2 binding available!

2016-07-28 Thread Alexandre Bergel
+1 > On Jul 28, 2016, at 3:52 PM, stepharo wrote: > > Thanks ronie for your analysis (especially the thread local point). > Stef > > Le 28/7/16 à 20:36, Ronie Salgado a écrit : >> Isn't it what Ronie is working on? >> I am not working with OpenGL or OpenGL ES anymore. I am moving all of my >>

[Pharo-users] XMLParser Claims U+00A0 is “Invalid UTF-8”

2016-07-28 Thread Sean P. DeNigris
Posted to StackOverflow (https://stackoverflow.com/questions/38645553/xmlparser-in-pharo-claims-u00a0-is-invalid-utf-8): Given the input: Where the character after the "." in the body attribute of the sms tag is U+00A0; I get the error: XMLEncodingException: Invalid UTF-8 character enc

Re: [Pharo-users] XMLParser Claims U+00A0 is “Invalid UTF-8”

2016-07-28 Thread monty
Just to be sure, I manually recreated your file (with the great Bless hex editor) and parsed it with no issue. Please post your code and attach the actual source as a file separately. > Sent: Thursday, July 28, 2016 at 3:12 PM > From: "Sean P. DeNigris" > To: pharo-users@lists.pharo.org > Subje

Re: [Pharo-users] XMLParser Claims U+00A0 is “Invalid UTF-8”

2016-07-28 Thread Sean P. DeNigris
monty-3 wrote > Just to be sure, I manually recreated your file (with the great Bless hex > editor) and parsed it with no issue. Thanks! monty-3 wrote > Please post your code and attach the actual source as a file separately. The code is merely: messageLog := FileLocator home / 'illegal-UTF-s

Re: [Pharo-users] Listing Named Play Pages

2016-07-28 Thread Tudor Girba
Hi, Indeed, this is a missing feature. Cheers, Doru > On Jul 28, 2016, at 7:47 PM, Sean P. DeNigris wrote: > > Is there another way besides via Spotter? I would expect to find a menu or > button on the playground itself... > > > > - > Cheers, > Sean > -- > View this message in context:

Re: [Pharo-users] XMLParser Claims U+00A0 is “Invalid UTF-8”

2016-07-28 Thread Sven Van Caekenberghe
Sean, Your XML file is not UTF-8 encoded, it is plain Unicode. At least the way it is served from the URL you gave. (('http://forum.world.st/file/n4908531/illegal-UTF-sms.xml' asUrl retrieveContents) at: 72 ) = 160 asCharacter. "true" Like you said, 160 asCharacter asString utf8Encoded.

Re: [Pharo-users] XMLParser Claims U+00A0 is “Invalid UTF-8”

2016-07-28 Thread Sean P. DeNigris
Sven Van Caekenberghe-2 wrote > Your XML file is not UTF-8 encoded, it is plain Unicode. At least the way > it is served from the URL you gave. > .. > You see ? Unfortunately, no! ha ha. I didn't generate the file and I took it's assertion that it was UTF-8 at face value. How do I properly feed th

Re: [Pharo-users] XMLParser Claims U+00A0 is “Invalid UTF-8”

2016-07-28 Thread Sven Van Caekenberghe
In my older work image, the following just works: XMLDOMParser parse: ('http://forum.world.st/file/n4908531/illegal-UTF-sms.xml' asUrl retrieveContents). But I guess that is because my (older) XML parser version ignores the encoding, or is more lenient. You could try to edit the incoming file,

Re: [Pharo-users] XMLParser Claims U+00A0 is “Invalid UTF-8”

2016-07-28 Thread monty
You're double decoding. Use onFileNamed:/parseFileNamed: instead (and the DOM printToFileNamed: family of messages when writing) and let XMLParser take care this for you, or disable XMLParser decoding before parsing with #decodesCharacters:. Longer explanation: The class #on:/#parse: take eith

Re: [Pharo-users] XMLParser Claims U+00A0 is “Invalid UTF-8”

2016-07-28 Thread Sean P. DeNigris
monty-3 wrote > You're double decoding And in public, no less! Thanks. It works now with #parseFileNamed:. Minus side - half a day wasted; plus side - I wrote a compatibility layer for Magritte-XMLBinding to accept SoupTags to #fromXmlNode: - Cheers, Sean -- View this message in context: h

Re: [Pharo-users] XMLParser Claims U+00A0 is “Invalid UTF-8”

2016-07-28 Thread monty
Good for finding one of the fixes, but please use #parseURL:/#onURL: instead of #asUrl/#asZnUrl with #retrieveContents, because that will result in Zinc eagerly decoding the response without looking at the declaration as the XML spec requires. #parseURL:/#onURL: use Zinc correctly, doing their

Re: [Pharo-users] XMLParser Claims U+00A0 is “Invalid UTF-8”

2016-07-28 Thread monty
Also #parseURL:/#onURL: will use WebClient on Squeak (unless Zinc is present of course) > Sent: Thursday, July 28, 2016 at 6:15 PM > From: monty > To: pharo-users@lists.pharo.org > Subject: Re: [Pharo-users] XMLParser Claims U+00A0 is “Invalid UTF-8” > > Good for finding one of the fixes, but pl

Re: [Pharo-users] XMLParser Claims U+00A0 is “Invalid UTF-8”

2016-07-28 Thread Sven Van Caekenberghe
> On 29 Jul 2016, at 00:15, monty wrote: > > Good for finding one of the fixes, but please use #parseURL:/#onURL: instead > of #asUrl/#asZnUrl with #retrieveContents, because that will result in Zinc > eagerly decoding the response without looking at the declaration as > the XML spec require

Re: [Pharo-users] Emojis in Pharo

2016-07-28 Thread Ben Coman
On Thu, Jul 28, 2016 at 10:11 PM, Sean P. DeNigris wrote: > Are there any available fonts which correctly display emojis? I'm playing > with sms data... Do you want to display them as graphics... http://unicode.org/emoji/charts/full-emoji-list.html or cross-platform characters... https://github.

Re: [Pharo-users] Emojis in Pharo

2016-07-28 Thread Sean P. DeNigris
Ben Coman wrote > Do you want to display them as graphics... > http://unicode.org/emoji/charts/full-emoji-list.html In this case, yes. I'd like to have them properly display inside Pharo. - Cheers, Sean -- View this message in context: http://forum.world.st/Emojis-in-Pharo-tp4908461p490857