Re: [Pharo-users] configurable space in XML Writer tag

2018-04-06 Thread monty
It's changed to no longer emit that space. I was considering removing it, or at 
least making it configurable, anyway.



Re: [Pharo-users] line drawing bug

2018-04-06 Thread joe

That worked, thank you so much! This helps me get running in the interim while 
i investigate how to use Athens.


{ jb }

On Apr 6, 2018, 9:31 AM -0400, Nicolai Hess , wrote:
> Hi Joe,
>
> the problem is that the BalloonCanvas (or some objects it is using) aren't 
> fully reset after some drawing operations.
> (the drawString method for example sets the sourceForm as glyph to be drawn).
>
> it should work if you do not store the canvas instance, but create a new in 
> every loop:
>
>     points do: [ :p |
>
>    canvas := form getCanvas asBalloonCanvas aaLevel:4; yourself.
>
>    canvas drawPolygon: p
>   color: Color transparent
>   borderWidth: 1
>   borderColor: Color red.
>
>    canvas drawString: p first asString
>   at: p first
>   font: nil
>   color: Color green.
>     ].
>
>
>
>
> Or just reset the engine state (but I don't like this solution, the engine 
> state should be private to the canvas).
>
>     points do: [ :p |
>
>    canvas drawPolygon: p
>   color: Color transparent
>   borderWidth: 1
>   borderColor: Color red.
>
>    canvas drawString: p first asString
>   at: p first
>   font: nil
>   color: Color green.
>    canvas resetEngine.
>     ].
>
>
>
>
>
> > 2018-04-06 2:57 GMT+02:00 :
> > > Hello everyone!
> > >
> > > Im trying use the balloon canvas to draw some nice smooth anti aliased 
> > > lines, but now i seem to have hit upon a bug which i dont know how to fix.
> > >
> > > if i draw just lines i get everything i want.  but if i add a 
> > > “drawString:…” in there at any point, all the lines i try to draw 
> > > subsequently dont show up.
> > >
> > > Here is code that shows the exact issue:
> > >
> > > > form := Form extent: 100@100 depth: 32.
> > > > form fillWhite.
> > > > canvas := BalloonCanvas on: form.
> > > > canvas aaLevel: 4.
> > > > "canvas := FormCanvas on: form."
> > > > points := { {10@10 . 50@43} . {50@42 . 90@75} . {90@75 . 50@90 } }.
> > > >
> > > > points do: [ :p |
> > > >    canvas drawPolygon: p
> > > >       color: Color transparent
> > > >       borderWidth: 1
> > > >       borderColor: Color red.
> > > >
> > > >    canvas drawString: p first asString
> > > >       at: p first
> > > >       font: nil
> > > >       color: Color green.
> > > > ].
> > > >
> > > > morph := ImageMorph new.
> > > > morph image: form.
> > > > morph openCenteredInWorld.
> > >
> > >
> > > if i comment out the canvas drawstring i get what you would expect: a 
> > > squiggly line.
> > >
> > > if i add in the drawstring, the first line shows up but all the 
> > > subsequent lines do not get drawn.  (both images attached)
> > >
> > > I spent a bunch of time tracking it down to its most purest form and then 
> > > a bunch of time debugging it and im out of my depth with the baloon code, 
> > > i cant seem to figure out whats wrong.  if anyone knows whats wrong or 
> > > can give me a clue on how to fix it i’d greatly appreciate it.
> > >
> > > thanks in advance.
> > >
> > >
> > > { jb }
>


Re: [Pharo-users] line drawing bug

2018-04-06 Thread joe


No at least not right now.


{ jb }

On Apr 6, 2018, 8:11 AM -0400, Hilaire , wrote:
> Does { jb } want to deploy on tablet computer (Android or iOS) ?
>
>
> Le 06/04/2018 à 12:31, Esteban Lorenzano a écrit :
> > real question is why you use Balloon and not Athens:)
>
> --
> Dr. Geo
> http://drgeo.eu
>
>
>


Re: [Pharo-users] line drawing bug

2018-04-06 Thread joe

I must have missed the deprecation warnings when i ran my code. 8).

Ill check out Athens, i don’t want to have to rewrite the entire application to 
support a new drawing backend. As a first step it would be great if i could 
render to an Athens canvas using the same API or something like it, but in my 
quick experiments I’ve had no luck. I’m sure I’m doing something wrong.

Is there any Athens tutorial documentation? All I’ve found is forum posts and 
videos and most of that stuff is quite old and there are a lot of broken links.


{ jb }

On Apr 6, 2018, 6:32 AM -0400, Esteban Lorenzano , wrote:
> hi,
>
> real question is why you use Balloon and not Athens :)
>
> cheers,
> Esteban
>


Re: [Pharo-users] Plans for XSD in XML(Parser) the foreseeable future?

2018-04-06 Thread monty
Unfortunately not. It's a major effort, and I'm not able to devote the time to 
it now.



Re: [Pharo-users] line drawing bug

2018-04-06 Thread Nicolai Hess
Hi Joe,

the problem is that the BalloonCanvas (or some objects it is using) aren't
fully reset after some drawing operations.
(the drawString method for example sets the sourceForm as glyph to be
drawn).

it should work if you do not store the canvas instance, but create a new in
every loop:

points do: [ :p |

   canvas := form getCanvas asBalloonCanvas aaLevel:4; yourself.

   canvas drawPolygon: p
  color: Color transparent
  borderWidth: 1
  borderColor: Color red.

   canvas drawString: p first asString
  at: p first
  font: nil
  color: Color green.
].




Or just reset the engine state (but I don't like this solution, the engine
state should be private to the canvas).

points do: [ :p |

   canvas drawPolygon: p
  color: Color transparent
  borderWidth: 1
  borderColor: Color red.

   canvas drawString: p first asString
  at: p first
  font: nil
  color: Color green.
   canvas resetEngine.
].





2018-04-06 2:57 GMT+02:00 :

> Hello everyone!
>
> Im trying use the balloon canvas to draw some nice smooth anti aliased
> lines, but now i seem to have hit upon a bug which i dont know how to fix.
>
> if i draw just lines i get everything i want.  but if i add a
> “drawString:…” in there at any point, all the lines i try to draw
> subsequently dont show up.
>
> Here is code that shows the exact issue:
>
> form := Form extent: 100@100 depth: 32.
> form fillWhite.
> canvas := BalloonCanvas on: form.
> canvas aaLevel: 4.
> "canvas := FormCanvas on: form."
> points := { {10@10 . 50@43} . {50@42 . 90@75} . {90@75 . 50@90 } }.
>
> points do: [ :p |
>canvas drawPolygon: p
>   color: Color transparent
>   borderWidth: 1
>   borderColor: Color red.
>
>canvas drawString: p first asString
>   at: p first
>   font: nil
>   color: Color green.
> ].
>
> morph := ImageMorph new.
> morph image: form.
> morph openCenteredInWorld.
>
>
>
> if i comment out the canvas drawstring i get what you would expect: a
> squiggly line.
>
> if i add in the drawstring, the first line shows up but all the subsequent
> lines do not get drawn.  (both images attached)
>
> I spent a bunch of time tracking it down to its most purest form and then
> a bunch of time debugging it and im out of my depth with the baloon code, i
> cant seem to figure out whats wrong.  if anyone knows whats wrong or can
> give me a clue on how to fix it i’d greatly appreciate it.
>
> thanks in advance.
>
>
> { jb }
>


Re: [Pharo-users] Slower

2018-04-06 Thread Hilaire



Le 05/04/2018 à 16:09, Henrik Sperre Johansen a écrit :


DRGEO:


20.9% {27116ms} DrGPointMorph>>drawOnAthensCanvas:
|16.7% {21720ms} AthensCairoCanvas(AthensCanvas)>>createPath:

Storing the path in DrGPointMorph, rather than recreating for each draw:,
should save alot of time.


Indeed should work nicely for point with round shape. For rectangle 
shape it is not necessary, this what I did in the demo.

7.7% {9962ms} DrGTextMorph>>drawOnAthensCanvas:
   | 7.7% {9962ms} Form>>asAthensPaintOn:

Same thing here, only storing the paint, rather than converting from form
each draw.
In my demo, the text changes at each iteration. Useful for static 
geometric item label thought. But I already optimized this by discarding 
empty label


The cache suggestions will be find for static surface, it does not apply 
always though.
In the scenario where Dr.Geo is used for animated demonstration, I 
already found a few optimization for Dr.Geo itself without touching to 
the Athens layer.


Thanks for your review

Hilaire

--
Dr. Geo
http://drgeo.eu





Re: [Pharo-users] line drawing bug

2018-04-06 Thread Hilaire

Does { jb } want to deploy on tablet computer (Android or iOS) ?


Le 06/04/2018 à 12:31, Esteban Lorenzano a écrit :

real question is why you use Balloon and not Athens:)


--
Dr. Geo
http://drgeo.eu





Re: [Pharo-users] line drawing bug

2018-04-06 Thread Norbert Hartl


> Am 06.04.2018 um 12:58 schrieb Marcus Denker :
> 
> And the real^2 question: why do we still have balloon in the image if we 
> should not use it?
> 
+1

Norbert

>> On 6 Apr 2018, at 12:31, Esteban Lorenzano  wrote:
>> 
>> hi,
>> 
>> real question is why you use Balloon and not Athens :)
>> 
>> cheers, 
>> Esteban
>> 
>>> On 6 Apr 2018, at 12:14, Hilaire  wrote:
>>> 
>>> I tried on a recent Squeak system, still got a buggy out put but a bit 
>>> surprisingly different!
>>> 
>>> Hialire
>>> 
>>> 
>>> Le 06/04/2018 à 12:10, Hilaire a écrit :
 I don't think anybody within Pharo use the balloon canvas. You should ask 
 to the Squeak community, you will very likely have more support on that 
 matter.
>>> 
>>> -- 
>>> Dr. Geo
>>> http://drgeo.eu
>>> 
>>> 
>>> 
>> 
>> 
> 
> 




Re: [Pharo-users] line drawing bug

2018-04-06 Thread Marcus Denker
And the real^2 question: why do we still have balloon in the image if we should 
not use it?

> On 6 Apr 2018, at 12:31, Esteban Lorenzano  wrote:
> 
> hi,
> 
> real question is why you use Balloon and not Athens :)
> 
> cheers, 
> Esteban
> 
>> On 6 Apr 2018, at 12:14, Hilaire  wrote:
>> 
>> I tried on a recent Squeak system, still got a buggy out put but a bit 
>> surprisingly different!
>> 
>> Hialire
>> 
>> 
>> Le 06/04/2018 à 12:10, Hilaire a écrit :
>>> I don't think anybody within Pharo use the balloon canvas. You should ask 
>>> to the Squeak community, you will very likely have more support on that 
>>> matter.
>> 
>> -- 
>> Dr. Geo
>> http://drgeo.eu
>> 
>> 
>> 
> 
> 




Re: [Pharo-users] line drawing bug

2018-04-06 Thread Esteban Lorenzano
hi,

real question is why you use Balloon and not Athens :)

cheers, 
Esteban

> On 6 Apr 2018, at 12:14, Hilaire  wrote:
> 
> I tried on a recent Squeak system, still got a buggy out put but a bit 
> surprisingly different!
> 
> Hialire
> 
> 
> Le 06/04/2018 à 12:10, Hilaire a écrit :
>> I don't think anybody within Pharo use the balloon canvas. You should ask to 
>> the Squeak community, you will very likely have more support on that matter.
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> 
> 
> 




Re: [Pharo-users] line drawing bug

2018-04-06 Thread Hilaire
I tried on a recent Squeak system, still got a buggy out put but a bit 
surprisingly different!


Hialire


Le 06/04/2018 à 12:10, Hilaire a écrit :
I don't think anybody within Pharo use the balloon canvas. You should 
ask to the Squeak community, you will very likely have more support on 
that matter.


--
Dr. Geo
http://drgeo.eu





Re: [Pharo-users] line drawing bug

2018-04-06 Thread Hilaire
I don't think anybody within Pharo use the balloon canvas. You should 
ask to the Squeak community, you will very likely have more support on 
that matter.


Hilaire


Le 06/04/2018 à 02:57, j...@boremaj.net a écrit :
Im trying use the balloon canvas to draw some nice smooth anti aliased 
lines, but now i seem to have hit upon a bug which i dont know how to fix.




--
Dr. Geo
http://drgeo.eu





Re: [Pharo-users] installation of packages on 6.1

2018-04-06 Thread Baveco, Hans

I used:

Metacello new
smalltalkhubUser: 'hernan' project: 'Territorial';
configuration: 'Territorial';
version: #'bleedingEdge';
load

I don't think the problem is related to Territorial; same thing happened when 
trying to load Roassal2 directly or some other packages
Hans

-Original Message-
From: Hernán Morales Durand  
Sent: donderdag 5 april 2018 20:58
To: Any question about pharo is welcome 
Subject: Re: [Pharo-users] installation of packages on 6.1

Hi Hans,

How did you tried?
Using the following expression I got a different error:

Gofer it
  smalltalkhubUser: ’hernan’ project: ’Territorial’;
  configuration;
  loadBleedingEdge.


LGit_GIT_ERROR: Failed to connect to github.com: Invalid argument.


2018-04-05 13:02 GMT-03:00 Baveco, Hans :
> Trying to install Territorial the installation got stuck on the 
> installation of Roassal2 1.35, with error “LGitObjectNotInitialized”
>
>
>
> Transcript says:
>
>
>
> “Project: Roassal2 1.35
>
> I got an error while cloning: There was an authentication error while 
> trying to execute the operation: error authenticating: failed connecting 
> agent.
>
> This happens usually because you didn't provide a valid set of credentials.
>
> You may fix this problem in different ways:
>
>
>
> 1. adding your keys to ssh-agent, executing ssh-add ~/.ssh/id_rsa in 
> your command line.
>
> 2. adding your keys in settings (open settings browser search for "Use 
> custom SSH keys" and
>
> add your public and private keys).
>
> 3. using HTTPS instead SSH (Just use an url in the form 
> HTTPS://etc.git). I will try to clone the HTTPS variant.”
>
>
>
> I have encountered this several times before, for different packages 
> (on windows 7, pharo 6.1 (Image: Pharo6.0 [Latest update: #60540])) 
> and have no idea how to deal with this.
>
>
>
> Any suggestions?
>
>
>
> Hans