Re: [Pharo-users] Pharo Launcher and 64bit VM

2016-12-05 Thread Dimitris Chloupis
I'm using 64bit OS for quite some time (aka years) and consider it's
> good sign of some technology to help me avoding fiddling with 32bit
> setup.
>
>
Yeap no doubt there, 64 bit programming languages are pretty much the
standard. I am definitely a supporter of moving to 64 bit and from the
looks of it , maybe I should give 64 bit pharo a try myself, I thought it
was not quite ready yet. Glad I am wrong.


> Do you mind to list some?
>
> Well the ones I care is lack for documentation or outdated documentation,
lack of class method comments and lack of libraries which are the usual
problems for small communities like pharo. I am coming from common lisp
which was not very different. But then there are always pros and cons with
every choice and nonetheless coding in pharo is still a joy for me :)

"
I never heard of this disadvantage of 64 bits before. Are you basically
saing you can't run multiple instances of a 64-bit VM/Image on a
multicore machine?
Can you elaborate?


Joachim
"

Yeah I should have been more clear, no I am not saying that 64-bit VM
cannot do this. I was talking about multiple 32 bit pharo instances against
a single 64 bit pharo instance. A unfair comparison but I was just trying
to make a point.

This ability of multiple instances running on multiple cores is not even a
VM feature, its just normal process handling of the OS. The OS assign each
process to a different core to take better advantage of the processing
power of the CPU.


Re: [Pharo-users] Pier3 with latest Pillar?

2016-12-05 Thread Stephane Ducasse
I do not know where the project is hosted.
May be esteban knows because he was maintaining Pier.

On Sun, Dec 4, 2016 at 12:11 PM, Peter H. Meadows via Pharo-users <
pharo-users@lists.pharo.org> wrote:

>
>
> -- Forwarded message --
> From: "Peter H. Meadows" 
> To: Any question about pharo is welcome 
> Cc:
> Date: Sun, 4 Dec 2016 11:11:26 +
> Subject: Re: [Pharo-users] Pier3 with latest Pillar?
> On 15 November 2016 at 07:30, Peter H. Meadows
>  wrote:
> > Hey. Can someone check this for me? In Pharo5 do:
> >
> > Gofer new
> > smalltalkhubUser: 'Pier' project: 'Pillar';
> > configuration;
> > loadDevelopment.
> >
> > Gofer new
> > url:'http://www.smalltalkhub.com/mc/phm/PierLoadExperiment/main';
> > package: 'ConfigurationOfPierLoadExperiment';
> > load.
> > ((Smalltalk at: #ConfigurationOfPierLoadExperiment) project version:
> > #stable) load.
> >
> > Gofer new
> > url:'http://www.smalltalkhub.com/mc/phm/
> PierLoadExperimentChanges/main';
> > package: 'ConfigurationOfPierLoadExperimentChanges';
> > load.
> > ((Smalltalk at: #ConfigurationOfPierLoadExperimentChanges) project
> > version: #stable) load.
> >
> >
> > ZnZincServerAdaptor startOn: 8080.
> >
> > PRPierFrame registerAsApplication: 'pier' kernel: (PRKernel
> > instanceNamed: 'pier').
> >
> > (WAAdmin defaultDispatcher handlerAt: 'pier' ) exceptionHandler:
> > WADebugErrorHandler .
> >
> >
> > Then visit http://localhost:8080/pier
> > Does it work? Is it loading the right things? (I didn't check the
> > tests yet, and i don't really understand metacello or Pier, just
> > playing by trial and error :), but if it works, maybe someone with
> > more experience can turn it into a config that will load from catalog
> > in Pharo6. Thx.
> >
>
> Anyone check this? If it's correct, how do I get the changes into Pier?
>
>
> > On 11 November 2016 at 13:16, stepharo  wrote:
> >> Hi peter
> >>
> >> I do not know but I would love that it would work. I should find some
> time
> >> to do a new pass on pillar.
> >>
> >> On my first todo:
> >>
> >> - fix use of DNU instead of plain magritte methods.
> >>
> >> - extract object out of the command line.
> >>
> >> - document, document and document.
> >>
> >>
> >> Stef
> >>
> >>
> >>
> >> Le 10/11/16 à 22:34, Peter H. Meadows via Pharo-users a écrit :
> >>
> >>
>
>
>


Re: [Pharo-users] Mustache and section

2016-12-05 Thread Stephane Ducasse
having a nicer mustache can be cool :)

On Mon, Dec 5, 2016 at 6:25 AM, Norbert Hartl  wrote:

> Ok. I think about that again. It might be a useful thing to have although
> not supported IMHO by other mustache implementations.
>
> Norbert
>
> > Am 04.12.2016 um 18:19 schrieb Hilaire :
> >
> > Okay.
> > Indeed, my bypass was to copy the label in the list.
> >
> > Thank you for your answer.
> >
> > Hilaire
> >
> >> Le 04/12/2016 à 08:14, Norbert Hartl a écrit :
>  So far in my attempt the #label tag is not processed.
> 
>  Am I interpreting something wrongly?
> 
> >> No, what you want is not possible. To achieve it you should copy label
> into the elements of the list section.
> >>
> >> Norbert
> >
> > --
> > Dr. Geo
> > http://drgeo.eu
> >
> >
>
>
>


Re: [Pharo-users] Mustache and section

2016-12-05 Thread Norbert Hartl
I agree. But there is also a point in sharing mustache templates between  
different runtimes. Altering mustache does not make it very mustache anymore. 
And it will make it slower. I put that on my ever growing list of things to do. 
Maybe a switch could bring the best of both worlds.

Norbert

> Am 05.12.2016 um 16:24 schrieb Stephane Ducasse :
> 
> having a nicer mustache can be cool :)
> 
>> On Mon, Dec 5, 2016 at 6:25 AM, Norbert Hartl  wrote:
>> Ok. I think about that again. It might be a useful thing to have although 
>> not supported IMHO by other mustache implementations.
>> 
>> Norbert
>> 
>> > Am 04.12.2016 um 18:19 schrieb Hilaire :
>> >
>> > Okay.
>> > Indeed, my bypass was to copy the label in the list.
>> >
>> > Thank you for your answer.
>> >
>> > Hilaire
>> >
>> >> Le 04/12/2016 à 08:14, Norbert Hartl a écrit :
>>  So far in my attempt the #label tag is not processed.
>> 
>>  Am I interpreting something wrongly?
>> 
>> >> No, what you want is not possible. To achieve it you should copy label 
>> >> into the elements of the list section.
>> >>
>> >> Norbert
>> >
>> > --
>> > Dr. Geo
>> > http://drgeo.eu
>> >
>> >
>> 
>> 
> 


Re: [Pharo-users] Debugger and stepping over a function that will have a DNU

2016-12-05 Thread Norbert Hartl
I think it is known. But there seem to be more problems in the debugger when 
stepping. So not easy to find the exact culprit

Norbert

> Am 04.12.2016 um 14:34 schrieb Holger Freyther :
> 
> Hi,
> 
> before I try to reproduce this exactly I wondered if the following is a known 
> issue with Pharo5. If I am in the debugger and try to step over a message 
> send and that would generate a DNU, Pharo starts taking 99% cpu time. If I 
> use CMD+./CTRL+. to interrupt it doesn't really work either. I get it to 
> repaint the screen once and see a lot of message boxes with errors but the 
> system remains unresponsive.
> 
> Is that known?
> 
>holger
> 
> 
> 




Re: [Pharo-users] Debugger and stepping over a function that will have a DNU

2016-12-05 Thread Denis Kudriashov
2016-12-04 9:04 GMT+01:00 Holger Freyther :

> Hi,
>
> before I try to reproduce this exactly I wondered if the following is a
> known issue with Pharo5. If I am in the debugger and try to step over a
> message send and that would generate a DNU, Pharo starts taking 99% cpu
> time. If I use CMD+./CTRL+. to interrupt it doesn't really work either. I
> get it to repaint the screen once and see a lot of message boxes with
> errors but the system remains unresponsive.
>
> Is that known?
>

It was fixed here 16877
 and
here 19108
.
(last allows interrupt in such cases)


Re: [Pharo-users] NeoCSVWriter automatic quotes

2016-12-05 Thread Peter Uhnak
On Fri, Nov 25, 2016 at 09:38:42PM +0100, Sven Van Caekenberghe wrote:
> Peter,
> 
> > On 25 Nov 2016, at 19:35, Peter Uhnak  wrote:
> > 
> > Hi,
> > 
> > is it/would it be possible to modify NeoCSVWriter to add quotes only where 
> > necessary? So only if the written value contains the separator (is there 
> > any other case that would require the quotes?).
> > 
> > Thanks,
> > Peter
> 
> Why exactly do you want this ?

My use case is that sometimes I need/want to view the file with my eyes, and 
when in 95% of the file the content is single (or couple words), then quotes 
add a lot of clutter. So if in 5% (or 1%) of the file there are quotes and the 
reset aren't, then I would be happy. :)

But it's not such a big problem, I've added it for myself, at least until we 
will have a usable way to edit CSV files in Pharo... do we really not have any 
table editor? :/

Peter

> 
> CSV is a pretty simple format, having a field quoted in one line and not in 
> another already sounds like being a bit too clever, though it does seem to be 
> allowed.
> 
> The idea of having different field writers was to choose the most efficient 
> one for your data (types). You can configure a writer per field (column). If 
> you have numbers, raw gives you the fastest performance.
> 
> Doing optional quoting would always require more than one pass, if not many 
> more, over the string, possibly generating more garbage. (Like in your 
> example implementation).
> 
> There are 3 reasons to do quoting: embedded separator, embedded newline, 
> embedded quote (you forgot the newline case).
> 
> All that being said, maybe an #optionalQuoted field writer could be a 
> reasonable configureable option, but I would not make it the default. 
> 
> Again, why do you want this ?
> 
> Sven
> 
> 



Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-05 Thread Trussardi Dario Romano
Ciao,

> Pharo is unable to access a library it needs; this is the native boost plugin 
> which is normally bundled with it (and the cairo lib?)...
> 
> Guys, anybody with a mac around there?
> 
> Thierry
> 
> 

thanks Dimitris.

> Nativeboost has been removed and been replaced by UFFI, all libraries that 
> used Nativeboost are now using UFFI including the Cairo backend library for 
> Athens.

OK, but what i need to do for load UFFI Cairo library

and for load  the UFFI  library  required byGitFileTree Pharo 
support?


I wrong to install Pharo 5.0 on my MacBookPro with OS X  10.7.5. ?

If right remember i install Pharo 5.0 from   
http://pharo.org/download   link


Thanks.

Dario

Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-05 Thread Esteban Lorenzano
Hi, Dario, 

I do not understand quite well your problem… you should not have a problem 
installing GitFileTree in Pharo5, no matter the replacement of NativeBoost. 
Athens also works fine with UFFI (since is part of Pharo, it has to work on all 
versions). 

You *do not need* to download cairo bindings, they are already there. 
So… if Athens is not working (and you can check that executing "VGTigerDemo 
runDemo” ,  then you have another kind of problem. 

cheers, 
Esteban


> On 5 Dec 2016, at 17:34, Trussardi Dario Romano  
> wrote:
> 
> Ciao,
> 
>> Pharo is unable to access a library it needs; this is the native boost 
>> plugin which is normally bundled with it (and the cairo lib?)...
>> 
>> Guys, anybody with a mac around there?
>> 
>> Thierry
>> 
>> 
> 
>   thanks Dimitris.
> 
>> Nativeboost has been removed and been replaced by UFFI, all libraries that 
>> used Nativeboost are now using UFFI including the Cairo backend library for 
>> Athens.
> 
>   OK, but what i need to do for load UFFI Cairo library
> 
>   and for load  the UFFI  library  required byGitFileTree Pharo 
> support?
> 
> 
>   I wrong to install Pharo 5.0 on my MacBookPro with OS X  10.7.5. ?
> 
>   If right remember i install Pharo 5.0 from   
> http://pharo.org/download    link
> 
> 
>   Thanks.
>   
>   Dario



Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-05 Thread Dimitris Chloupis
If you go to the applications there is a folder called Utilities and inside
it there is a terminal application open it and issue the following commands

mkdir pharo
cd pharo
curl get.pharo.org | bash
./pharo-ui Pharo.image

First command will make folder, second will enter the folder, third will
dowload the standard stable version of pharo to the folder, foruth will
launch pharo.

Then when pharo opens follow the instruction Esteban gave you to test that
Athens works as it should. Do not install anything before testings. Then if
everything works proceed and install one thing, only, then test it, then
install the next one etc.

Moving step by step will help us pin point your problem

I suspect maybe something went crazy , it happens from time to time in
pharo, recently I had a nasty corruption with Pharo 6. If it happens once,
its ok , if it happens frequently its a problem.


On Mon, Dec 5, 2016 at 6:35 PM Trussardi Dario Romano <
dario.trussa...@tiscali.it> wrote:

> Ciao,
>
> Pharo is unable to access a library it needs; this is the native boost
> plugin which is normally bundled with it (and the cairo lib?)...
>
> Guys, anybody with a mac around there?
>
> Thierry
>
>
>
>
> thanks Dimitris.
>
> Nativeboost has been removed and been replaced by UFFI, all libraries that
> used Nativeboost are now using UFFI including the Cairo backend library for
> Athens.
>
>
> OK,  but what i need to do for load UFFI Cairo library
>
> and for load  the UFFI  library required by  GitFileTree Pharo support?
>
>
> I wrong to install Pharo 5.0 on my MacBookPro with OS X  10.7.5. ?
>
> If right remember i install Pharo 5.0 from  http://pharo.org/download
> link
>
>
> Thanks.
> Dario
>


Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-05 Thread Trussardi Dario Romano
Ciao Esteban,


> Hi, Dario, 
> 
> I do not understand quite well your problem… you should not have a problem 
> installing GitFileTree in Pharo5, no matter the replacement of NativeBoost. 
> Athens also works fine with UFFI (since is part of Pharo, it has to work on 
> all versions). 
> 
> You *do not need* to download cairo bindings, they are already there. 
> So… if Athens is not working (and you can check that executing "VGTigerDemo 
> runDemo” ,

The VGTigerDemo runDemo report:

ExternalLibraryFunction(Object)>>error:
ExternalLibraryFunction(Object)>>externalCallFailed
ExternalLibraryFunction(ExternalFunction)>>invokeWithArguments:
AthensCairoSurface class>>primImage:width:height:
AthensCairoSurface class>>extent:format:
AthensCairoSurface class>>extent:
VGTigerDemo>>initialize
VGTigerDemo class(Behavior)>>new
VGTigerDemo class>>runDemo

>  then you have another kind of problem. 

What do you mean about : another kind of problem.

How can I investigate about that?

Download again the image and see what happens?

Thanks,

Dario

P.S. What do you think about my email with same object dated:   29 
novembre 2016 11:55:02 GMT+01:00

It may be source of problems?


> 
> cheers, 
> Esteban
> 
> 
>> On 5 Dec 2016, at 17:34, Trussardi Dario Romano  
>> wrote:
>> 
>> Ciao,
>> 
>>> Pharo is unable to access a library it needs; this is the native boost 
>>> plugin which is normally bundled with it (and the cairo lib?)...
>>> 
>>> Guys, anybody with a mac around there?
>>> 
>>> Thierry
>>> 
>>> 
>> 
>>  thanks Dimitris.
>> 
>>> Nativeboost has been removed and been replaced by UFFI, all libraries that 
>>> used Nativeboost are now using UFFI including the Cairo backend library for 
>>> Athens.
>> 
>>  OK, but what i need to do for load UFFI Cairo library
>> 
>>  and for load  the UFFI  library  required byGitFileTree Pharo 
>> support?
>> 
>> 
>>  I wrong to install Pharo 5.0 on my MacBookPro with OS X  10.7.5. ?
>> 
>>  If right remember i install Pharo 5.0 from   
>> http://pharo.org/download   link
>> 
>> 
>>  Thanks.
>>  
>>  Dario
> 



Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-05 Thread Sven Van Caekenberghe
Yes, try this, I think you might be using the wrong VM.

> On 5 Dec 2016, at 18:41, Dimitris Chloupis  wrote:
> 
> If you go to the applications there is a folder called Utilities and inside 
> it there is a terminal application open it and issue the following commands
> 
> mkdir pharo
> cd pharo
> curl get.pharo.org | bash
> ./pharo-ui Pharo.image
> 
> First command will make folder, second will enter the folder, third will 
> dowload the standard stable version of pharo to the folder, foruth will 
> launch pharo.
> 
> Then when pharo opens follow the instruction Esteban gave you to test that 
> Athens works as it should. Do not install anything before testings. Then if 
> everything works proceed and install one thing, only, then test it, then 
> install the next one etc.
> 
> Moving step by step will help us pin point your problem
> 
> I suspect maybe something went crazy , it happens from time to time in pharo, 
> recently I had a nasty corruption with Pharo 6. If it happens once, its ok , 
> if it happens frequently its a problem. 
> 
> 
> On Mon, Dec 5, 2016 at 6:35 PM Trussardi Dario Romano 
>  wrote:
> Ciao,
> 
>> Pharo is unable to access a library it needs; this is the native boost 
>> plugin which is normally bundled with it (and the cairo lib?)...
>> 
>> Guys, anybody with a mac around there?
>> 
>> Thierry
>> 
>> 
> 
>   thanks Dimitris.
> 
>> Nativeboost has been removed and been replaced by UFFI, all libraries that 
>> used Nativeboost are now using UFFI including the Cairo backend library for 
>> Athens.
> 
>   OK, but what i need to do for load UFFI Cairo library
> 
>   and for load  the UFFI  library  required byGitFileTree Pharo 
> support?
> 
> 
>   I wrong to install Pharo 5.0 on my MacBookPro with OS X  10.7.5. ?
> 
>   If right remember i install Pharo 5.0 from   
> http://pharo.org/download   link
> 
> 
>   Thanks.
>   
>   Dario




Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-05 Thread Esteban Lorenzano

> On 5 Dec 2016, at 19:05, Sven Van Caekenberghe  wrote:
> 
> Yes, try this, I think you might be using the wrong VM.

yes :)

> 
>> On 5 Dec 2016, at 18:41, Dimitris Chloupis  wrote:
>> 
>> If you go to the applications there is a folder called Utilities and inside 
>> it there is a terminal application open it and issue the following commands
>> 
>> mkdir pharo
>> cd pharo
>> curl get.pharo.org | bash
>> ./pharo-ui Pharo.image
>> 
>> First command will make folder, second will enter the folder, third will 
>> dowload the standard stable version of pharo to the folder, foruth will 
>> launch pharo.
>> 
>> Then when pharo opens follow the instruction Esteban gave you to test that 
>> Athens works as it should. Do not install anything before testings. Then if 
>> everything works proceed and install one thing, only, then test it, then 
>> install the next one etc.
>> 
>> Moving step by step will help us pin point your problem
>> 
>> I suspect maybe something went crazy , it happens from time to time in 
>> pharo, recently I had a nasty corruption with Pharo 6. If it happens once, 
>> its ok , if it happens frequently its a problem. 
>> 
>> 
>> On Mon, Dec 5, 2016 at 6:35 PM Trussardi Dario Romano 
>>  wrote:
>> Ciao,
>> 
>>> Pharo is unable to access a library it needs; this is the native boost 
>>> plugin which is normally bundled with it (and the cairo lib?)...
>>> 
>>> Guys, anybody with a mac around there?
>>> 
>>> Thierry
>>> 
>>> 
>> 
>>  thanks Dimitris.
>> 
>>> Nativeboost has been removed and been replaced by UFFI, all libraries that 
>>> used Nativeboost are now using UFFI including the Cairo backend library for 
>>> Athens.
>> 
>>  OK, but what i need to do for load UFFI Cairo library
>> 
>>  and for load  the UFFI  library  required byGitFileTree Pharo 
>> support?
>> 
>> 
>>  I wrong to install Pharo 5.0 on my MacBookPro with OS X  10.7.5. ?
>> 
>>  If right remember i install Pharo 5.0 from   
>> http://pharo.org/download   link
>> 
>> 
>>  Thanks.
>>  
>>  Dario
> 
> 




[Pharo-users] Execute Tet pdflib

2016-12-05 Thread pauguillot

Hello,

1-  I need help to extract a selected text from a pdf document.
Tet pdflib can do that and  i need help to execute command line using 
Pharo.

I am able to do the work using a bat file but i think we can do better.

2- How we can code properly the delay (when we wait the Bat file)

Thank you for your help.


https://www.pdflib.com/products/tet/

|bat pdf stream pdfAsText contents |
bat := 'C:\some\code.bat'.
pdf := 'C:\some\document.pdf'.
stream := bat asFileReference writeStream.

"Console Windows code"
stream nextPutAll:  'CD "C:\Program Files\PDFlib\TET 5.0 64-bit\bin"';
nextPut: Character linefeed;
	nextPutAll: 'TET --samedir --lastpage last-1 --pageopt "includebox={ 
{98.38 693.32 253.41 709.91} {522.70 183.66 595 226.30} {416.97 574.79 
479 598.03} {401.33 773.91 453 789.55} {294.18 575.74 369.56 598.5} 
{295.6 492.3 373.35 524.43} {150.53 414.55 219.28 438.25} {47.17 494.67 
98.85 520.75} {112.26 684.01 193.66 698.03} {533.61 212.57 595 620} 
{100.75 657.29 217.85 673.41}}"';

nextPut: Character space;
nextPutAll: pdf;
nextPut: Character linefeed;
nextPutAll: 'EXIT';
close.
OS2Process command: bat.

pdfAsText := String streamContents: [ :s | 1 to: (pdf size - 4) do: [ 
:i | s nextPut: (pdf at: i) ]. s nextPutAll: '.txt'; close ]. 
"C:\some\document.txt"

(Delay forMilliseconds: 500)wait.
contents := pdfAsText asFileReference contents.
bat asFileReference delete.
pdfAsText asFileReference delete.
contents

 
Missatge enviat a través del Webmail de Girona.com
 http://www.girona.com
 




Re: [Pharo-users] Mustache and section

2016-12-05 Thread Stephane Ducasse
You mean that you would like to invent a much better mustache.
We could keep mustache as it is and invent Beard or rouquaflette :)

On Mon, Dec 5, 2016 at 12:35 PM, Norbert Hartl  wrote:

> I agree. But there is also a point in sharing mustache templates between
>  different runtimes. Altering mustache does not make it very mustache
> anymore. And it will make it slower. I put that on my ever growing list of
> things to do. Maybe a switch could bring the best of both worlds.
>
> Norbert
>
> Am 05.12.2016 um 16:24 schrieb Stephane Ducasse :
>
> having a nicer mustache can be cool :)
>
> On Mon, Dec 5, 2016 at 6:25 AM, Norbert Hartl  wrote:
>
>> Ok. I think about that again. It might be a useful thing to have although
>> not supported IMHO by other mustache implementations.
>>
>> Norbert
>>
>> > Am 04.12.2016 um 18:19 schrieb Hilaire :
>> >
>> > Okay.
>> > Indeed, my bypass was to copy the label in the list.
>> >
>> > Thank you for your answer.
>> >
>> > Hilaire
>> >
>> >> Le 04/12/2016 à 08:14, Norbert Hartl a écrit :
>>  So far in my attempt the #label tag is not processed.
>> 
>>  Am I interpreting something wrongly?
>> 
>> >> No, what you want is not possible. To achieve it you should copy label
>> into the elements of the list section.
>> >>
>> >> Norbert
>> >
>> > --
>> > Dr. Geo
>> > http://drgeo.eu
>> >
>> >
>>
>>
>>
>


Re: [Pharo-users] Debugger and stepping over a function that will have a DNU

2016-12-05 Thread Holger Freyther

> On 05 Dec 2016, at 13:03, Denis Kudriashov  wrote:
> 
> 

Dear Denis,


> It was fixed here 16877 and here 19108. (last allows interrupt in such cases)

is this in Pharo5 or will it show up in Pharo5?

thank you
holger


Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-05 Thread Ben Coman
hi Dario,

Reading back through the thread, it seems it works when you start
Pharo one way, but not another way.
Can you report the VM versions for each way..
World menu > System > System Reporter > VM General

Is one of those ways you start Pharo is using Pharo Launcher?
In the settings you can point it to a new VM you download.

cheers -ben

On Tue, Dec 6, 2016 at 2:16 AM, Esteban Lorenzano  wrote:
>
>> On 5 Dec 2016, at 19:05, Sven Van Caekenberghe  wrote:
>>
>> Yes, try this, I think you might be using the wrong VM.
>
> yes :)
>
>>
>>> On 5 Dec 2016, at 18:41, Dimitris Chloupis  wrote:
>>>
>>> If you go to the applications there is a folder called Utilities and inside 
>>> it there is a terminal application open it and issue the following commands
>>>
>>> mkdir pharo
>>> cd pharo
>>> curl get.pharo.org | bash
>>> ./pharo-ui Pharo.image
>>>
>>> First command will make folder, second will enter the folder, third will 
>>> dowload the standard stable version of pharo to the folder, foruth will 
>>> launch pharo.
>>>
>>> Then when pharo opens follow the instruction Esteban gave you to test that 
>>> Athens works as it should. Do not install anything before testings. Then if 
>>> everything works proceed and install one thing, only, then test it, then 
>>> install the next one etc.
>>>
>>> Moving step by step will help us pin point your problem
>>>
>>> I suspect maybe something went crazy , it happens from time to time in 
>>> pharo, recently I had a nasty corruption with Pharo 6. If it happens once, 
>>> its ok , if it happens frequently its a problem.
>>>
>>>
>>> On Mon, Dec 5, 2016 at 6:35 PM Trussardi Dario Romano 
>>>  wrote:
>>> Ciao,
>>>
 Pharo is unable to access a library it needs; this is the native boost 
 plugin which is normally bundled with it (and the cairo lib?)...

 Guys, anybody with a mac around there?

 Thierry


>>>
>>>  thanks Dimitris.
>>>
 Nativeboost has been removed and been replaced by UFFI, all libraries that 
 used Nativeboost are now using UFFI including the Cairo backend library 
 for Athens.
>>>
>>>  OK, but what i need to do for load UFFI Cairo library
>>>
>>>  and for load  the UFFI  library  required byGitFileTree Pharo 
>>> support?
>>>
>>>
>>>  I wrong to install Pharo 5.0 on my MacBookPro with OS X  10.7.5. ?
>>>
>>>  If right remember i install Pharo 5.0 from   
>>> http://pharo.org/download   link
>>>
>>>
>>>  Thanks.
>>>
>>>  Dario
>>
>>
>
>



[Pharo-users] accessing local/instance variables with metalinks

2016-12-05 Thread Peter Uhnak
Hi,

what is the best way to access variables from within a metalink?

for example I have a message send `surface clear` and I want to change it to 
`surface clear: trachelCanvas color`.

I can use #instVarNamed:

```
MetaLink new
metaObject: [ :object |
(object instVarNamed: #surface) clear: (object instVarNamed: 
#trachelCanvas) color.
];
selector: #value:;
arguments: #(object);
control: #instead.
```

but the above isn't exactly nice, plus it wouldn't work with temporary 
variables.

Thanks,
Peter



Re: [Pharo-users] Execute Tet pdflib

2016-12-05 Thread Ben Coman
On Tue, Dec 6, 2016 at 4:28 AM,   wrote:
> Hello,
>
> 1-  I need help to extract a selected text from a pdf document.
> Tet pdflib can do that and  i need help to execute command line using Pharo.
> I am able to do the work using a bat file but i think we can do better.

Someone else will need ot help for that.

>
> 2- How we can code properly the delay (when we wait the Bat file)

Can you expand on the problem.
"(Delay forMilliseconds: 500)wait." looks fine to me.

cheers -ben


>
> Thank you for your help.
>
>
> https://www.pdflib.com/products/tet/
>
> |bat pdf stream pdfAsText contents |
> bat := 'C:\some\code.bat'.
> pdf := 'C:\some\document.pdf'.
> stream := bat asFileReference writeStream.
>
> "Console Windows code"
> stream nextPutAll:  'CD "C:\Program Files\PDFlib\TET 5.0 64-bit\bin"';
> nextPut: Character linefeed;
> nextPutAll: 'TET --samedir --lastpage last-1 --pageopt "includebox={
> {98.38 693.32 253.41 709.91} {522.70 183.66 595 226.30} {416.97 574.79 479
> 598.03} {401.33 773.91 453 789.55} {294.18 575.74 369.56 598.5} {295.6 492.3
> 373.35 524.43} {150.53 414.55 219.28 438.25} {47.17 494.67 98.85 520.75}
> {112.26 684.01 193.66 698.03} {533.61 212.57 595 620} {100.75 657.29 217.85
> 673.41}}"';
> nextPut: Character space;
> nextPutAll: pdf;
> nextPut: Character linefeed;
> nextPutAll: 'EXIT';
> close.
> OS2Process command: bat.
>
> pdfAsText := String streamContents: [ :s | 1 to: (pdf size - 4) do: [ :i | s
> nextPut: (pdf at: i) ]. s nextPutAll: '.txt'; close ].
> "C:\some\document.txt"
> (Delay forMilliseconds: 500)wait.
> contents := pdfAsText asFileReference contents.
> bat asFileReference delete.
> pdfAsText asFileReference delete.
> contents
>
>  
> Missatge enviat a través del Webmail de Girona.com
>  http://www.girona.com
>  
>
>



Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-05 Thread Andrew Glynn
I run Pharo 5.0 with no problems on a Macbook Pro, but it’s running OS X v. 
10.12.1.  Any reason your OS is backdated?

 

Andrew Glynn

 

From: Pharo-users  on behalf of Trussardi 
Dario Romano 
Reply-To: Any question about pharo is welcome 
Date: Monday, December 5, 2016 at 11:34 AM
To: Any question about pharo is welcome 
Subject: Re: [Pharo-users] GitFileTree on Pharo 5.0

 

Ciao,



Pharo is unable to access a library it needs; this is the native boost plugin 
which is normally bundled with it (and the cairo lib?)...

 

Guys, anybody with a mac around there?

Thierry

 

 

    thanks Dimitris.



Nativeboost has been removed and been replaced by UFFI, all libraries that used 
Nativeboost are now using UFFI including the Cairo backend library for Athens.

 

    OK,     but what i need to do for load UFFI Cairo 
library

 

    and for load  the UFFI  library  required by     GitFileTree Pharo 
support?

 

 

    I wrong to install Pharo 5.0 on my MacBookPro with OS X   10.7.5. ?

 

    If right remember i install Pharo 5.0 from     
http://pharo.org/download   link

 


    Thanks.

    

    Dario