[Pharo-users] Pharo 5 and retina displays in 2016?

2016-11-28 Thread Tim Mackinnon
Hi Guys - its been a while since I’ve had a chance to get back into some coding in Smalltalk, and took the plunge again with a new laptop and Pharo 5, however the screen is really blurry? Doing a google search, I can see this same question raised back in 2012, but has there been no progress in

Re: [Pharo-users] Flashing short duration images in a window

2016-11-28 Thread p...@highoctane.be
WorldState MinCycleLapse: 16 will make it 60 FPS. Much smoother on Windows. Ok, some CPU is used. Phil On Mon, Nov 28, 2016 at 9:53 PM, Henrik Nergaard wrote: > | image morph | > > > > image := Form fromFileNamed: 'path/(.jpg|.png)'. > > morph := image asMorph. > > morph openCenteredInWorld.

Re: [Pharo-users] Flashing short duration images in a window

2016-11-28 Thread Dimitris Chloupis
Flashing is basically animation. All you need is an ImageMorph and to add stepping using the step method. step is the method that does the animation loop (step = frame) stepTime you return how much time will be spend be spend per step this is my step method from my project ChronosManager which bas

Re: [Pharo-users] Flashing short duration images in a window

2016-11-28 Thread Henrik Nergaard
| image morph | image := Form fromFileNamed: 'path/(.jpg|.png)'. morph := image asMorph. morph openCenteredInWorld. morph addAlarm: #delete after: 2000 "ms". Ps. Pharo UI runs at 50Hz Best regards, Henrik From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org

[Pharo-users] Flashing short duration images in a window

2016-11-28 Thread William L. Cleveland
I want to write code to flash a color image of a person in a window for a short period of time. The duration of the flash is important, not the frequency of the flashes, which will be low and probably controlled by pressing a key. Ideally, the duration should be an integral number of frames, sta

Re: [Pharo-users] Execute a script from command line save image and exit

2016-11-28 Thread Dimitris Chloupis
On Mon, Nov 28, 2016 at 3:43 PM Thierry Goubier wrote: > > if the code is passed as eval it works fine. I assume here is because ! is > used to define metadata inside a st file. > > > Yes, I'd guess that you are triggering the !! delimited reading when you > give a .st. In short, giving a .st fil

Re: [Pharo-users] Execute a script from command line save image and exit

2016-11-28 Thread Sven Van Caekenberghe
> On 28 Nov 2016, at 15:08, Damien Pollet wrote: > > So… if I read that code correctly, when you pass both --save and --quit, the > image will first save itself and quit (with an unspecified return code, or > the one picked by the snapshot code). Then, next time you run this image, it > will

Re: [Pharo-users] Execute a script from command line save image and exit

2016-11-28 Thread Damien Pollet
So… if I read that code correctly, when you pass both --save and --quit, the image will first save itself and quit (with an unspecified return code, or the one picked by the snapshot code). Then, next time you run this image, it will resume execution and exit immediately (that time with an explicit

Re: [Pharo-users] Execute a script from command line save image and exit

2016-11-28 Thread Thierry Goubier
2016-11-28 14:28 GMT+01:00 Dimitris Chloupis : > > > On Mon, Nov 28, 2016 at 2:13 PM Thierry Goubier > wrote: > >> The GitFileTree-MergeDriver is a good place for that since it has a >> Makefile[1] with smalltalk scripting inside ("eval"), and a command line >> handler[2] to handle being used on

Re: [Pharo-users] Dictionaries and STON

2016-11-28 Thread Cyril Ferlicot D.
On 28/11/2016 14:20, Sven Van Caekenberghe wrote: > Hi Cyril, > > See this commit: > > === > Name: STON-Core-SvenVanCaekenberghe.77 > Author: SvenVanCaekenberghe > Time: 24 October 2016, 10:36:19.993021 am > UUID: cb69cdaa-0065-4014-afa7-67a2a7e445db > Ancestors: STON-Core-SvenVanCaekenberghe.76

Re: [Pharo-users] Execute a script from command line save image and exit

2016-11-28 Thread Dimitris Chloupis
On Mon, Nov 28, 2016 at 2:13 PM Thierry Goubier wrote: > The GitFileTree-MergeDriver is a good place for that since it has a > Makefile[1] with smalltalk scripting inside ("eval"), and a command line > handler[2] to handle being used on the command line[3] by git. > > yeah problem is eval works f

Re: [Pharo-users] Dictionaries and STON

2016-11-28 Thread Sven Van Caekenberghe
Hi Cyril, See this commit: === Name: STON-Core-SvenVanCaekenberghe.77 Author: SvenVanCaekenberghe Time: 24 October 2016, 10:36:19.993021 am UUID: cb69cdaa-0065-4014-afa7-67a2a7e445db Ancestors: STON-Core-SvenVanCaekenberghe.76 Remove the option #allowComplexMapKeys from STONReader (to functional

Re: [Pharo-users] Execute a script from command line save image and exit

2016-11-28 Thread p...@highoctane.be
I have been doing like this: #!/bin/bash ./pharo Pharo.image save Builder ./pharo Builder.image LoadBuilder.st --quit and LoadBuilder.st contains Smalltalk saveSession. Worked for me in a 3.0, so should still be fine. I could then to a set of images with various names and builders so one coul

[Pharo-users] Dictionaries and STON

2016-11-28 Thread Cyril Ferlicot D.
Hi! I need to store some datas and in my model I have a dictionary with objects as keys. When I try to serialize and materialize it with STON I get an error. Apparently STON manage dictionaries with literals as key only. Is there a workaround to this? -- Cyril Ferlicot http://www.synectique.eu

Re: [Pharo-users] Execute a script from command line save image and exit

2016-11-28 Thread Sven Van Caekenberghe
Hi Dimitris, According to STCommandLineHandler>>#end | quit | quit := self commandLine hasOption: 'quit'. (self commandLine hasOption: 'save') ifTrue: [ Smalltalk snapshot: true andQuit: quit ]. quit ifTr

Re: [Pharo-users] Execute a script from command line save image and exit

2016-11-28 Thread Thierry Goubier
The GitFileTree-MergeDriver is a good place for that since it has a Makefile[1] with smalltalk scripting inside ("eval"), and a command line handler[2] to handle being used on the command line[3] by git. [1] https://github.com/ThierryGoubier/GitFileTree-MergeDriver/blob/master/Makefile [2] https:/

Re: [Pharo-users] Execute a script from command line save image and exit

2016-11-28 Thread Dimitris Chloupis
can you provide a link to your makefile, maybe I do something stupid, I am very noob when it comes to command line cause I use GUIs 99% of the time On Mon, Nov 28, 2016 at 1:59 PM Thierry Goubier wrote: > 2016-11-28 12:54 GMT+01:00 Dimitris Chloupis : > > there are two binaries one is pharo-ui

Re: [Pharo-users] Execute a script from command line save image and exit

2016-11-28 Thread Thierry Goubier
2016-11-28 12:54 GMT+01:00 Dimitris Chloupis : > there are two binaries one is pharo-ui that displays the gui and one is > pharo that does not use the GUI , because I use pharo and not pharo-ui , i > do not need -vm-display-null and does not solve my problem of not exiting > Then this is strange

Re: [Pharo-users] Execute a script from command line save image and exit

2016-11-28 Thread Dimitris Chloupis
there are two binaries one is pharo-ui that displays the gui and one is pharo that does not use the GUI , because I use pharo and not pharo-ui , i do not need -vm-display-null and does not solve my problem of not exiting On Mon, Nov 28, 2016 at 1:25 PM Thierry Goubier wrote: > 2016-11-28 12:13

Re: [Pharo-users] Execute a script from command line save image and exit

2016-11-28 Thread Thierry Goubier
2016-11-28 12:13 GMT+01:00 Dimitris Chloupis : > How to execute a script from command line , then save the image and exit ? > > I use the st command but it offers either --save which saves but keeps > image opened or --exit the exits the image without saving > > ./pharo Ephestos.image st --save t

[Pharo-users] Execute a script from command line save image and exit

2016-11-28 Thread Dimitris Chloupis
How to execute a script from command line , then save the image and exit ? I use the st command but it offers either --save which saves but keeps image opened or --exit the exits the image without saving ./pharo Ephestos.image st --save test.st