[Pharo-users] Lecture in Togo at Lome

2015-09-17 Thread stepharo
Hi just a little announce to mention that I'm going to Lome (TOGO) to give one week lecture on Pharo and advanced OOP. Stef

[Pharo-users] XML Viewer and XML syntax highlighting

2015-09-17 Thread Peter Uhnák
Hi, do we have some nice(r) XML viewer? GTInspector provides tree extension, however I find it often worse than looking at the raw contents (mainly because the tree view doesn't break lines) So my question is: do we have something better? And second (if we don't have something better): How woul

[Pharo-users] GTDebugger create method

2015-09-17 Thread Peter Uhnák
Hi, does GTDebugger support creation of new methods? Also not having tooltips on the buttons isn't entirely helpful. Thanks, Peter

Re: [Pharo-users] GTDebugger create method

2015-09-17 Thread Andrei Chis
Hi, Yes it does. There should be an icon with a plus sign when a #doesNotUnderstand happens. It seems there is a bug related to displaying tooltips. Cheers, Andrei On Thu, Sep 17, 2015 at 2:19 PM, Peter Uhnák wrote: > Hi, > > does GTDebugger support creation of new methods? > > Also not havin

Re: [Pharo-users] GTDebugger create method

2015-09-17 Thread Peter Uhnák
Ah, plus... I'm blind. Thanks! Peter On Thu, Sep 17, 2015 at 2:23 PM, Andrei Chis wrote: > Hi, > > Yes it does. There should be an icon with a plus sign when a > #doesNotUnderstand happens. > > It seems there is a bug related to displaying tooltips. > > Cheers, > Andrei > > On Thu, Sep 17, 201

Re: [Pharo-users] Problem loading Zinc

2015-09-17 Thread sebast...@flowingconcept.com
This loads fine: Gofer it url: 'http://mc.stfx.eu/ZincHTTPComponents'; package: 'ConfigurationOfZincHTTPComponents'; loadStable. The following command fails saying it could not resolve Zinc-WebSocket-Tests-SvenVanCaekenberghe.9

Re: [Pharo-users] Problem loading Zinc

2015-09-17 Thread Sven Van Caekenberghe
> On 17 Sep 2015, at 15:01, sebast...@flowingconcept.com wrote: > > This loads fine: > > Gofer it > url: 'http://mc.stfx.eu/ZincHTTPComponents'; > package: 'ConfigurationOfZincHTTPComponents'; > loadStable. > > > The following command fails

[Pharo-users] String vs Symbol use cases

2015-09-17 Thread Peter Uhnák
Are there some best practices regarding using strings and symbols? For example I am processing XML and I might query it via xpath... myDocument xPath: 'entity/@name', or myDocument xPath: #'entity/@name' or myDocument / 'entity' @ 'name' or myDocument / #entity @ #name. So does it make sen

Re: [Pharo-users] String vs Symbol use cases

2015-09-17 Thread Tudor Girba
I prefer the last one. Doru On Thu, Sep 17, 2015 at 4:10 PM, Peter Uhnák wrote: > Are there some best practices regarding using strings and symbols? > > For example I am processing XML and I might query it via xpath... > > myDocument xPath: 'entity/@name', > > or > > myDocument xPath: #'entity/

[Pharo-users] Pharo for Entreprise?

2015-09-17 Thread Alexandre Bergel
Hi! Where can I get the pdf? I see something here: https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/lastSuccessfulBuild/artifact/ But I thought it discusses databases and seaside. Isn’t it the case? Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandr

Re: [Pharo-users] Pharo for Entreprise?

2015-09-17 Thread Sven Van Caekenberghe
http://files.pharo.org/books/enterprisepharo/ seems the most user friendly top level page > On 17 Sep 2015, at 16:23, Alexandre Bergel wrote: > > Hi! > > Where can I get the pdf? > I see something here: > https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/lastSuccessfulBuild/art

Re: [Pharo-users] String vs Symbol use cases

2015-09-17 Thread Alexandre Bergel
Ideally, both: > myDocument / 'entity' @ 'name' > > or > > myDocument / #entity @ #name. should work. You are here defining a small api to formulate xpath queries, which is great. However, I am not sure that your api will cover all features offered by xpath. The syntax "myDocument xPath: 'ent

Re: [Pharo-users] String vs Symbol use cases

2015-09-17 Thread Peter Uhnák
> > You are here defining a small api to formulate xpath queries, which is > great. Nono, this is XPath library by Hernan (available from Catalog Browser), I'm just using it.

Re: [Pharo-users] String vs Symbol use cases

2015-09-17 Thread Alexandre Bergel
Ah okay! Alexandre > On Sep 17, 2015, at 2:55 PM, Peter Uhnák wrote: > > You are here defining a small api to formulate xpath queries, which is great. > > Nono, this is XPath library by Hernan (available from Catalog Browser), I'm > just using it. -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~

Re: [Pharo-users] String vs Symbol use cases

2015-09-17 Thread monty
Peter, the XPath lib was rewritten not long ago to provide full XPath 1.0 support + extensions, so feel free to mail me with questions or bugs. The old lib didn't implement the whole spec and would crash or infinite loop on valid input, so I felt a rewrite was needed. > myDocument xPath: #'enti

Re: [Pharo-users] String vs Symbol use cases

2015-09-17 Thread monty
> Remember the xPath: usage gives access to full XPath syntax (not just axis > and nametests), including predicates, functions, and variables. XPath is > really a different language so mapping it all to a ST DSL is tricky. For > example, XPath 1.0 is weakly typed so "1" = 1 = "1.0" but clearly

Re: [Pharo-users] String vs Symbol use cases

2015-09-17 Thread monty
Hernan maintained the old lib. The PharoExtras/XPath lib you get from the catalog or config browsers was rewritten and questions/bugs should be sent to me. Note it is incompatible with Pastell, so you can't have both in the same image. > Sent: Thursday, September 17, 2015 at 4:07 PM > From: "Al

[Pharo-users] XPath (was String vs Symbol use cases)

2015-09-17 Thread Peter Uhnák
Hi monty, thanks for your answers. The original question wasn't really aimed at XPath, it was just an example, however you raise some important points which I should keep in mind. Now for the XPath itself, I seem to have run into a bug Imagine xml ~

Re: [Pharo-users] XML Viewer and XML syntax highlighting

2015-09-17 Thread monty
What's needed is a highlight/styling widget that works with GT that can also be treated like an ordinary write stream. Then you subclass XMLPrettyPrintingWriterFormatter and override the formatting messages to style the stream differently at certain points (like before a start tag, after a star

Re: [Pharo-users] XPath (was String vs Symbol use cases)

2015-09-17 Thread monty
I understand the problem and I'm studying possible fixes while reviewing the specs, but I need more time. if you could work around it for now, that would be good. I will update you by mail.

Re: [Pharo-users] XML Viewer and XML syntax highlighting

2015-09-17 Thread Tudor Girba
Indeed, you need a parser and afterwards you can use the same approach as I used for the styling Pillar in Rubric: http://www.humane-assessment.com/blog/writing-pillar-books-with-the-gtinspector/ Cheers, Doru On Fri, Sep 18, 2015 at 12:20 AM, monty wrote: > What's needed is a highlight/styling