Re: [Pharo-users] Brisbane meet up

2016-12-06 Thread Jeff Gray

https://www.meetup.com/en-AU/Brisbane-Smalltalk-Programmers-Meetup/events/235975305/




--
View this message in context: 
http://forum.world.st/Brisbane-meet-up-tp4925969p4926010.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Brisbane meet up

2016-12-06 Thread stepharong

On Tue, 06 Dec 2016 23:16:02 +0100, Jeff Gray  wrote:

I was poking around the internet wondering if there are many  
smalltalkers in

Brisbane (where I live) and came across a group in Meetup.com. There's a
monthly meeting and I've signed up. I'm looking forward to seeing what  
goes

on. Turns out there's 36 in the group. I don't know if they all meet but
good to know there are more of us out there :-)


can you send a link so that we can tweet it?




--
View this message in context:  
http://forum.world.st/Brisbane-meet-up-tp4925969.html

Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.




--
Using Opera's mail client: http://www.opera.com/mail/



[Pharo-users] Brisbane meet up

2016-12-06 Thread Jeff Gray
I was poking around the internet wondering if there are many smalltalkers in
Brisbane (where I live) and came across a group in Meetup.com. There's a
monthly meeting and I've signed up. I'm looking forward to seeing what goes
on. Turns out there's 36 in the group. I don't know if they all meet but
good to know there are more of us out there :-) 



--
View this message in context: 
http://forum.world.st/Brisbane-meet-up-tp4925969.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-06 Thread Dimitris Chloupis
you dont need gitfiletree to use git with pharo, I use just filetreee and
gitup which an excellent git client for macos

You can find the cause of the problem but it wont be simple. This is a C
problem not a pharo problem, meaning something is wrong with that library.

To really find out what you will need to load the library from C and use
the error detection functions to find what is wrong, you could use them
from pharo too but you will still need to understand C to make use of the
FFI.

Unfortunately I cannot help much in this case because its more or less a
continuous testing process. This is how I learned to do shared memory via
the FFI. Made the code in C first and then ported to Pharo. I had to
perform dozens of test to get it right and had to battle with dozens of
errors.

I have both Pharo 6 and Pharo 5 working fine on my macos sierra , so it
must be something wrong with your system.

On Tue, Dec 6, 2016 at 10:12 PM Trussardi Dario Romano <
dario.trussa...@tiscali.it> wrote:

> Thanks Dimitris,
>
>
>
> On Tue, Dec 6, 2016 at 8:46 PM Dimitris Chloupis 
> wrote:
>
> because you run a very old macos version it may be possible that because
> Cairo lib has been compiled for more recent macos that this is the source
> of your problems.
>
>
> Try the following commands from inside the folder you installed pharo
> following my previous instructions
>
>
> The
>
> otool -L ./pharo-vm/Pharo.app/Contents/MacOS/Plugins/libcairo.2.dylib
>
>
> Answer:
> ./pharo-vm/Pharo.app/Contents/MacOS/Plugins/libcairo.2.dylib:
> @executable_path/Plugins/libcairo.2.dylib (compatibility version 11203.0.0,
> current version 11203.14.0) @executable_path/Plugins/libpixman-1.0.dylib
> (compatibility version 27.0.0, current version 27.0.0)
> @executable_path/Plugins/libfreetype.6.dylib (compatibility version 15.0.0,
> current version 15.1.0) @executable_path/Plugins/libpng12.0.dylib
> (compatibility version 50.0.0, current version 50.0.0)
> /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
> (compatibility version 1.0.0, current version 48.0.0)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
> 1225.1.1)
> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
> (compatibility version 150.0.0, current version 1253.0.0)
> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
> (compatibility version 64.0.0, current version 600.0.0)
>
>
>
> This command will print the dependencies of the library and whether your
> OS libraries are enough to support this library. If one dependency fail
> then the whole library may fail.
>
> In that case you will need to locate a build for Cairo for the version of
> MacOS you are using and replace the dylib file or build it yourself,
>
>
> Without load anything the  VGTigerDemo runDemo  report into the error
> debug and into relative terminal ( where a launch the pharo ):
>
> dtr$ ./pharo-ui Pharo.image
>
> Error: External module not found
>
> ExternalLibraryFunction(Object)>>error:
> ExternalLibraryFunction(Object)>>externalCallFailed
> ExternalLibraryFunction(ExternalFunction)>>invokeWithArguments:
> AthensCairoSurface class>>primImage:width:height:
>
> FFICalloutAPI>>function:module:
> AthensCairoSurface class(Object)>>nbCall:
>
> AthensCairoSurface class>>primImage:width:height:
> AthensCairoSurface class>>extent:format:
> AthensCairoSurface class>>extent:
> VGTigerDemo>>initialize
> VGTigerDemo class(Behavior)>>new
> VGTigerDemo class>>runDemo
>
> As you may imagine its very difficult for us to continue supporting very
> old OS , because we are a small community.
>
>
> I do not want to bother.
>
> Just see if the issue is resolved on my system,
>
> or whether to postpone everything when update the operating system.
>
> But the gitFileTree support would be very useful to continue in a certain
> direction.
>
> Cheers,
>
> Dario
>
>
>
>
>
>


Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-06 Thread Trussardi Dario Romano
Thanks Dimitris,

> 
> 
> On Tue, Dec 6, 2016 at 8:46 PM Dimitris Chloupis  
> wrote:
> because you run a very old macos version it may be possible that because 
> Cairo lib has been compiled for more recent macos that this is the source of 
> your problems.
> 
> Try the following commands from inside the folder you installed pharo 
> following my previous instructions

The 
> otool -L ./pharo-vm/Pharo.app/Contents/MacOS/Plugins/libcairo.2.dylib

Answer:

./pharo-vm/Pharo.app/Contents/MacOS/Plugins/libcairo.2.dylib:
@executable_path/Plugins/libcairo.2.dylib (compatibility version 
11203.0.0, current version 11203.14.0)
@executable_path/Plugins/libpixman-1.0.dylib (compatibility version 
27.0.0, current version 27.0.0)
@executable_path/Plugins/libfreetype.6.dylib (compatibility version 
15.0.0, current version 15.1.0)
@executable_path/Plugins/libpng12.0.dylib (compatibility version 
50.0.0, current version 50.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 
1.2.5)

/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
 (compatibility version 1.0.0, current version 48.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 1225.1.1)

/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 
(compatibility version 150.0.0, current version 1253.0.0)

/System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics 
(compatibility version 64.0.0, current version 600.0.0)


> 
> This command will print the dependencies of the library and whether your OS 
> libraries are enough to support this library. If one dependency fail then the 
> whole library may fail.
> 
> In that case you will need to locate a build for Cairo for the version of 
> MacOS you are using and replace the dylib file or build it yourself, 

Without load anything   the VGTigerDemo runDemo report 
into the error debug and into relative terminal ( where a launch the pharo 
):

dtr$ ./pharo-ui Pharo.image
Error: External module not found
ExternalLibraryFunction(Object)>>error:
ExternalLibraryFunction(Object)>>externalCallFailed
ExternalLibraryFunction(ExternalFunction)>>invokeWithArguments:
AthensCairoSurface class>>primImage:width:height:
FFICalloutAPI>>function:module:
AthensCairoSurface class(Object)>>nbCall:
AthensCairoSurface class>>primImage:width:height:
AthensCairoSurface class>>extent:format:
AthensCairoSurface class>>extent:
VGTigerDemo>>initialize
VGTigerDemo class(Behavior)>>new
VGTigerDemo class>>runDemo

> 
> As you may imagine its very difficult for us to continue supporting very old 
> OS , because we are a small community.  

I do not want to bother.

Just see if the issue is resolved on my system,

or whether to postpone everything when update the operating system.

But the gitFileTree support would be very useful to continue in a certain 
direction.

Cheers,

Dario







Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-06 Thread Dimitris Chloupis
On Tue, Dec 6, 2016 at 8:46 PM Dimitris Chloupis 
wrote:

> because you run a very old macos version it may be possible that because
> Cairo lib has been compiled for more recent macos that this is the source
> of your problems.
>

Try the following commands from inside the folder you installed pharo
following my previous instructions

otool -L ./pharo-vm/Pharo.app/Contents/MacOS/Plugins/libcairo.2.dylib

This command will print the dependencies of the library and whether your OS
libraries are enough to support this library. If one dependency fail then
the whole library may fail.

In that case you will need to locate a build for Cairo for the version of
MacOS you are using and replace the dylib file or build it yourself,

As you may imagine its very difficult for us to continue supporting very
old OS , because we are a small community.


Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-06 Thread Dimitris Chloupis
because you run a very old macos version it may be possible that because
Cairo lib has been compiled for more recent macos that this is the source
of your problems.

But I already told you to test Athens without installing anything including
Roassal to be certain that this is actually a cairo problem.

On Tue, Dec 6, 2016 at 4:10 PM Trussardi Dario Romano <
dario.trussa...@tiscali.it> wrote:

> Ciao,
>
> from terminal i create a /opt/pharo folder and run your command.
>
> 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
>
> the Pharo is right open
>
> follow the instruction Esteban gave you to test that Athens works as it
> should.
>
>
> The Roassal2 is not load in the image.
>
> I load it from Pharo Project Catalog.
>
> I select the Roassal2 project and do the Install stable version.
>
> ( a this point i have a strange dialog behaviour :
>
> when the system open a dialog with:
>
> Question
>
> Roassal2 has not been marked as tested for Pharo5.0!
>
> Do you want to continue (installation could fail )?
>
> when i i select the yes or no button the dialog with the same question is
> often redispaly. )
>
> 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.
>
>
> After install the Roassal2 like above and do the  VGTigerDemo runDemo
>
> answer the same error:
>
> 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
>
> Thanks,
>
> Dario
>
> 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] Execute Tet pdflib

2016-12-06 Thread pauguillot

Ok, that's the best that i can do. -Pau

|bin pdf pdfAsText result|
bin :=  '"C:\Program Files\PDFlib\TET 5.0 64-bit\bin\tet.exe"'.
pdf := '"C:\*\document.pdf"'.
pdfAsText := 'C:\*\document.txt' asFileReference.

OS2Process command: bin, ' --samedir ', pdf.
[ pdfAsText exists ] whileFalse: [ (Delay forMilliseconds: 1) wait ].
(Delay forMilliseconds: 300) wait.
result := pdfAsText contents.
pdfAsText delete.
result






A 2016-12-06 00:43, Ben Coman escrigué:

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
 




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




Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-06 Thread Trussardi Dario Romano

Ciao,

> 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?

i have a  MacBookPro with OS X   10.7.5.  with much work on it.

The upgrade to a the last supported OS X   on my book   ( 10.11.6  )

is very problematic because with the upgrade the system can't restart,

and consequently I should reformat the disk.

This is no time for such risk.

Cheers,

Dario

>  
> 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



Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-06 Thread Trussardi Dario Romano
Ciao,

from terminal i create a /opt/pharo folder and run your command.

> 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

the Pharo is right open

> follow the instruction Esteban gave you to test that Athens works as it 
> should.

The Roassal2 is not load in the image.

I load it from Pharo Project Catalog. 

I select the Roassal2 project and do the Install stable version.

( a this point i have a strange dialog behaviour :

when the system open a dialog with:
Question
Roassal2 has not been marked as tested for Pharo5.0!
Do you want to continue (installation could fail )?

when i i select the yes or no button the dialog with the same 
question is often redispaly. )

> 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.

After install the Roassal2 like above and do theVGTigerDemo 
runDemo  

answer the same error:

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

Thanks,

Dario
> 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-06 Thread Trussardi Dario Romano
Ciao Ben,

> 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 GeneralImage


In the first case ( from Pharo on desktop ): 

-
/Users/dtr/Desktop/Pharo5.0.app/Contents/Resources/Pharo5.0.image
Pharo5.0
Latest update: #50763
Unnamed

Virtual Machine
---
/Users/dtr/Desktop/Pharo5.0.app/Contents/MacOS/Pharo
CoInterpreter VMMaker.oscog-HolgerHansPeterFreyther.1880 uuid: 
16138eb3-2390-40f5-a6c8-15f0494936f8 Oct 10 2016
StackToRegisterMappingCogit VMMaker.oscog-HolgerHansPeterFreyther.1880 uuid: 
16138eb3-2390-40f5-a6c8-15f0494936f8 Oct 10 2016
g...@github.com:pharo-project/pharo-vm.git Commit: 
06744effac0f0aa3b4b32e17636448f9d51d6707 Date: 2016-09-30 08:40:43 +0200 By: 
GitHub  

Mac Cocoa Cog 5.8b12 21-Sep-10 >1B0534FA-246C-47C5-AB29-7A76C81CCDCB<
VMMaker versionString g...@github.com:pharo-project/pharo-vm.git Commit: 
06744effac0f0aa3b4b32e17636448f9d51d6707 Date: 2016-09-30 08:40:43 +0200 By: 
GitHub  
CoInterpreter VMMaker.oscog-HolgerHansPeterFreyther.1880 uuid: 
16138eb3-2390-40f5-a6c8-15f0494936f8 Oct 10 2016
StackToRegisterMappingCogit VMMaker.oscog-HolgerHansPeterFreyther.1880 uuid: 
16138eb3-2390-40f5-a6c8-15f0494936f8 Oct 10 2016


In the second case ( a specific image into package )

Image
-
/Users/dtr/Desktop/Pharo5.0.app/Contents/Resources/Pharo5.0-161205.image
Pharo5.0
Latest update: #50763
Unnamed

Virtual Machine
---
/Users/dtr/Desktop/Pharo5.0.app/Contents/MacOS/Pharo
CoInterpreter VMMaker.oscog-HolgerHansPeterFreyther.1880 uuid: 
16138eb3-2390-40f5-a6c8-15f0494936f8 Oct 10 2016
StackToRegisterMappingCogit VMMaker.oscog-HolgerHansPeterFreyther.1880 uuid: 
16138eb3-2390-40f5-a6c8-15f0494936f8 Oct 10 2016
g...@github.com:pharo-project/pharo-vm.git Commit: 
06744effac0f0aa3b4b32e17636448f9d51d6707 Date: 2016-09-30 08:40:43 +0200 By: 
GitHub  

Mac Cocoa Cog 5.8b12 21-Sep-10 >1B0534FA-246C-47C5-AB29-7A76C81CCDCB<
VMMaker versionString g...@github.com:pharo-project/pharo-vm.git Commit: 
06744effac0f0aa3b4b32e17636448f9d51d6707 Date: 2016-09-30 08:40:43 +0200 By: 
GitHub  
CoInterpreter VMMaker.oscog-HolgerHansPeterFreyther.1880 uuid: 
16138eb3-2390-40f5-a6c8-15f0494936f8 Oct 10 2016
StackToRegisterMappingCogit VMMaker.oscog-HolgerHansPeterFreyther.1880 uuid: 
16138eb3-2390-40f5-a6c8-15f0494936f8 Oct 10 2016


In a new Pharo 5.0 folder
 ( following Dimitris command :
mkdir pharo
cd pharo
curl get.pharo.org | bash
./pharo-ui Pharo.image )

Image
-
/opt/pharo/Pharo.image
Pharo5.0
Latest update: #50764
Unnamed

Virtual Machine
---
/opt/pharo/pharo-vm/Pharo.app/Contents/MacOS/Pharo
CoInterpreter VMMaker.oscog-HolgerHansPeterFreyther.1880 uuid: 
16138eb3-2390-40f5-a6c8-15f0494936f8 Oct 10 2016
StackToRegisterMappingCogit VMMaker.oscog-HolgerHansPeterFreyther.1880 uuid: 
16138eb3-2390-40f5-a6c8-15f0494936f8 Oct 10 2016
g...@github.com:pharo-project/pharo-vm.git Commit: 
06744effac0f0aa3b4b32e17636448f9d51d6707 Date: 2016-09-30 08:40:43 +0200 By: 
GitHub  

Mac Cocoa Cog 5.8b12 21-Sep-10 >1B0534FA-246C-47C5-AB29-7A76C81CCDCB<
VMMaker versionString g...@github.com:pharo-project/pharo-vm.git Commit: 
06744effac0f0aa3b4b32e17636448f9d51d6707 Date: 2016-09-30 08:40:43 +0200 By: 
GitHub  
CoInterpreter VMMaker.oscog-HolgerHansPeterFreyther.1880 uuid: 
16138eb3-2390-40f5-a6c8-15f0494936f8 Oct 10 2016
StackToRegisterMappingCogit VMMaker.oscog-HolgerHansPeterFreyther.1880 uuid: 
16138eb3-2390-40f5-a6c8-15f0494936f8 Oct 10 2016


> 
> Is one of those ways you start Pharo is using Pharo Launcher?

No, i use Pharo Launcher only for Pharo 4.0.

Not for Pharo 5.0

Thanks,

Dario

> 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, 

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

2016-12-06 Thread Marcus Denker

> On 6 Dec 2016, at 07:10, Marcus Denker  wrote:
> 
> 
>> On 5 Dec 2016, at 19:10, Holger Freyther  wrote:
>> 
>> 
>>> 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?
>> 
> 
> These are good candidates for back porting. I will put it on my TODO.

I added an issue to not forget:


https://pharo.fogbugz.com/f/cases/19424/Backport-Debugger-step-fixes-to-Pharo5 


Marcus



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

2016-12-06 Thread Denis Kudriashov
2016-12-05 23:10 GMT+01:00 Holger Freyther :

> > 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?


It was fixed only in Pharo 6. it should be mentioned in issue parameters


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

2016-12-06 Thread Marcus Denker

> On 5 Dec 2016, at 19:10, Holger Freyther  wrote:
> 
> 
>> 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?
> 

These are good candidates for back porting. I will put it on my TODO.

Marcus




Re: [Pharo-users] Mustache and section

2016-12-06 Thread Damien Pollet
https://github.com/zalando/beard is in Scala :p

On 5 December 2016 at 21:54, Stephane Ducasse 
wrote:

> 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] Mustache and section

2016-12-06 Thread Norbert Hartl
I want to keep mustache to work as the other mustache implementations.
I agree choosing a different name for an enhanced version would be feasible. 
That happened in the javascript world several times. One example is handlebars. 
Much better is not that easy. In most implementations I know better is 
something like adding poor duplicates of functionalities of your programming 
language to the template engine. Does not work in the end. So better you need 
to prove if this one is not good enough.

Norbert

> Am 06.12.2016 um 03:24 schrieb 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] Execute Tet pdflib

2016-12-06 Thread pauguillot

Works fine but it's a Delay fixed it's not a delay adapted.
I wan't to wait until we have the pdfAsText document disponible to read 
contents. Not wait some constant time

Tank you -Pau



A 2016-12-06 00:43, Ben Coman escrigué:

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
 




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