Re: [Pharo-users] Finding files in Pharo

2017-06-18 Thread Sven Van Caekenberghe
Hernán, We obviously don't have as many options as find, but this should get you started: Check the category 'enumerating' in AbstractFileReference, with methods like #childrenMatching: and #allChildrenMatching: Once you have a reference, you can use other meta data, see the 'accessing' prot

Re: [Pharo-users] Finding files in Pharo

2017-06-18 Thread john pfersich
Why not just use OsProcess or OsSubprocess to run the unix commands (works on Mac OS and Linux)? Sent from my iPhone > On Jun 17, 2017, at 19:59, Hernán Morales Durand > wrote: > > I would like to find files in Pharo like the UNIX find command: > > find . -iname "*.txt" -type f -print > > f

Re: [Pharo-users] Finding files in Pharo

2017-06-18 Thread Hernán Morales Durand
I know file system commands could be executed using the OS wrappers. But Smalltalk is more elegant than shell command line, and we have Windows still the most used OS. 2017-06-18 3:59 GMT-03:00 john pfersich : > Why not just use OsProcess or OsSubprocess to run the unix commands (works > on Mac

Re: [Pharo-users] Finding files in Pharo

2017-06-18 Thread Hernán Morales Durand
Thanks Sven, Just checking some brave soul out there with a cool "unpublished" package... Cheers, Hernán 2017-06-18 3:58 GMT-03:00 Sven Van Caekenberghe : > Hernán, > > We obviously don't have as many options as find, but this should get you > started: > > Check the category 'enumerating' in A

Re: [Pharo-users] WrapAthen, World coordinate?

2017-06-18 Thread Hilaire
It behaves as the canvas wrapped in the Athens wrapper got its origin locked to top left position Le 17/06/2017 à 23:24, Hilaire a écrit : > Any information to know to understand why a DrGeo canvas wrapped in P6 > AthenWrappedMorph got its coordinates shifted, clipped, background in > gray and not

Re: [Pharo-users] UUIDGenerator

2017-06-18 Thread p...@highoctane.be
Spotting for hex is hardly complex. Shift-Enter hex #im --> implementors of hex, first one I see is in ByteArray. Shit-Enter hex #se --> senders of hex. First one is a test in ByteArray testHex "self debug: #testHex" self assert: #[122 43 213 7] hex = '7a2bd507'. self assert: #[151 193 242 221

Re: [Pharo-users] Pharo6 server deployment and no home directory

2017-06-18 Thread Juraj Kubelka
> El 16-06-2017, a las 10:34, Holger Freyther escribió: > > >> On 12. Jun 2017, at 16:41, Juraj Kubelka wrote: >> >> Hi Holger, >> >> I have an impression that it can be solved by using >> "--no-default-preferences” option: >> ./pharo Pharo.image --no-default-preferences >> >> Is it

[Pharo-users] Regression with PNGReaderWriter in P6

2017-06-18 Thread Hilaire
The code bellow decodes the PNG picture just fine in P3, in P6 it can't! I suspect changes in PNGReaderWriter>>nextImage However the version shows no history of edit :( One should add this code below in a test for PNG. PNGReadWriter createAFormFrom: #(137 80 78 71 13 10 26 10 0 0 0 13 73 72 68

Re: [Pharo-users] Regression with PNGReaderWriter in P6

2017-06-18 Thread Nicolai Hess
2017-06-18 14:01 GMT+02:00 Hilaire : > The code bellow decodes the PNG picture just fine in P3, in P6 it can't! > > I suspect changes in PNGReaderWriter>>nextImage > However the version shows no history of edit :( > > One should add this code below in a test for PNG. > > > PNGReadWriter createAFor

Re: [Pharo-users] Regression with PNGReaderWriter in P6

2017-06-18 Thread Hilaire
Aha, so I understand why you have all icons displayed just fine Some arrays are decoded fine, but most are not. Damn it. Anyway the attached example will be fine for a unit test. Le 18/06/2017 à 14:12, Nicolai Hess a écrit : > > Works for me in windows 32. > Maybe it is an 32/64 bit vm issue ?

Re: [Pharo-users] Regression with PNGReaderWriter in P6

2017-06-18 Thread Stephane Ducasse
Hilaire what do you mean exactly. Is it working or not? and where would be problem to fix. Stef On Sun, Jun 18, 2017 at 2:16 PM, Hilaire wrote: > Aha, so I understand why you have all icons displayed just fine > Some arrays are decoded fine, but most are not. > > Damn it. > > Anyway the attache

Re: [Pharo-users] WrapAthen, World coordinate?

2017-06-18 Thread Stephane Ducasse
Do you have an expression showing the problem? Stef On Sun, Jun 18, 2017 at 9:53 AM, Hilaire wrote: > It behaves as the canvas wrapped in the Athens wrapper got its origin > locked to top left position > > Le 17/06/2017 à 23:24, Hilaire a écrit : >> Any information to know to understand why a Dr

Re: [Pharo-users] Finding files in Pharo

2017-06-18 Thread Stephane Ducasse
I would love that too :). Can you tell us what is missing from the file properties? On Sun, Jun 18, 2017 at 4:59 AM, Hernán Morales Durand wrote: > I would like to find files in Pharo like the UNIX find command: > > find . -iname "*.txt" -type f -print > > find . \( -iname "*.txt" -o -iname "*.

Re: [Pharo-users] Regression with PNGReaderWriter in P6

2017-06-18 Thread kmo
Just to confirm - I've tried it - works fine in Linux 32 bit VM - but fails with the 64 bit VM -- View this message in context: http://forum.world.st/Regression-with-PNGReaderWriter-in-P6-tp4951796p4951803.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Re: [Pharo-users] Prolog in Pharo

2017-06-18 Thread Stephane Ducasse
this is cool On Sat, Jun 17, 2017 at 7:11 PM, Evan Donahue wrote: > Hi, just saw this. > > Smallkanren is complete and under very active development, I just haven't > put a new version up in a while because I didn't think that anyone was using > it. I'm currently cleaning up a new release and wa

Re: [Pharo-users] Prolog in Pharo

2017-06-18 Thread Stephane Ducasse
For that you define a BaselineOf look at the example from QualittyAssistant. I should start also to learn it. Stef On Sun, Jun 18, 2017 at 2:37 AM, Evan Donahue wrote: > Hi, > > Yes, I am planning to move it to github, which is part of why I didn't get > around to keeping the sth version synced.

Re: [Pharo-users] Autoformatting in SystemBrowser

2017-06-18 Thread Stephane Ducasse
I used it daily and it does not come from the formatter. Nicolai suggestion looks a path to investigate because it may be that the code is lost and that the formatter displays text from the bytecode. stef On Sat, Jun 17, 2017 at 10:56 AM, Marc Hanisch via Pharo-users wrote: > > > -- Forw

Re: [Pharo-users] Regression with PNGReaderWriter in P6

2017-06-18 Thread Hilaire
Le 18/06/2017 à 15:39, Stephane Ducasse a écrit : > what do you mean exactly. Is it working or not? It is not working on 64 bits image/vm > and where would be problem to fix. No idea -- Dr. Geo http://drgeo.eu

Re: [Pharo-users] WrapAthen, World coordinate?

2017-06-18 Thread Hilaire
Only the picture I sent previously, but Nicolas tracked the problem in the clipping default choices: https://bugs.launchpad.net/drgeo/+bug/1698582 Le 18/06/2017 à 15:41, Stephane Ducasse a écrit : > Do you have an expression showing the problem? -- Dr. Geo http://drgeo.eu

Re: [Pharo-users] Regression with PNGReaderWriter in P6

2017-06-18 Thread Hilaire
As a matter of fact, if I drop the original PNG picture in the 64bits image , it is decoded fine (I am not sure however both the png file and the bytearray are exactly the same) It may seems the problem comes from the Byte array representation, just blind guess. Le 18/06/2017 à 16:09, Hilaire a

[Pharo-users] How to access path elements of a path

2017-06-18 Thread Stephane Ducasse
Hi guys (FileSystem workingDirectory / 'book-result' / 'W01-Welcome') relativeToReference: FileSystem workingDirectory >>> Path * 'book-result' / 'W01-Welcome' And I would like to get 'book-result/W01-Welcome' I tried all kind of combination and the lack of comments (Yes I know I added the ones

Re: [Pharo-users] How to access path elements of a path

2017-06-18 Thread Alistair Grant
Hi Stef, On Sun, Jun 18, 2017 at 05:54:08PM +0200, Stephane Ducasse wrote: > Hi guys > > (FileSystem workingDirectory / 'book-result' / 'W01-Welcome') > relativeToReference: FileSystem workingDirectory > >>> Path * 'book-result' / 'W01-Welcome' > > And I would like to get 'book-result/W01-Welco

Re: [Pharo-users] How to access path elements of a path

2017-06-18 Thread Stephane Ducasse
Hi alistair Thanks alistair. It looks to me that there is something missing because the printOn: is producing this. Relying on DiskStore current stringFromPath: looks ugly to me. https://pharo.fogbugz.com/f/cases/20165/Support-segment-path-printing So I propose to add Path >> printPathOn: aStre

Re: [Pharo-users] Autoformatting in SystemBrowser

2017-06-18 Thread Marc Hanisch via Pharo-users
--- Begin Message --- Hi Stephane, Yes it seems to be an issue with the sources file. Maybe my workflow is wrong? When I want to store an image somewhere else, I always left+click and select save as... to save my image. As far as I understand Pharo, it then saves the image and a changes file in

Re: [Pharo-users] Regression with PNGReaderWriter in P6

2017-06-18 Thread David T. Lewis
Hi Hilaire, I confirmed this on Squeak, and added a new test based on your example. The test is at http://lists.squeakfoundation.org/pipermail/squeak-dev/2017-June/194766.html, and the fix is http://lists.squeakfoundation.org/pipermail/squeak-dev/2017-June/194767.html I did not check a Phar

Re: [Pharo-users] UUIDGenerator

2017-06-18 Thread horrido
I didn't know about the Spotter. That is so frickin' cool!!! Thanks. philippeback wrote > Spotting for hex is hardly complex. > > Shift-Enter hex #im > > --> implementors of hex, first one I see is in ByteArray. > > Shit-Enter hex #se > > --> senders of hex. First one is a test in ByteArray

[Pharo-users] Teapot session

2017-06-18 Thread horrido
Does Teapot's (ZnRequest's?) session ever expire? What is the expiry period? I can't find where it's specified or configured. -- View this message in context: http://forum.world.st/Teapot-session-tp4951845.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

[Pharo-users] GT questions

2017-06-18 Thread Torsten Bergmann
Hi, do we have an example on Glamorous Toolkit on 1. how to have a splitter between a pane (for instance to change size for left and right pane on a #dashboard) 2. how to have vertical tabs in a #tabulator 3. on how to use D&D from GT from a list or tree to the world? Thanks T.

Re: [Pharo-users] Teapot session

2017-06-18 Thread Stephane Ducasse
Teapot is a layer on zinc so you may check the Zinc chapters (I do not know if this is there). On Mon, Jun 19, 2017 at 1:42 AM, horrido wrote: > Does Teapot's (ZnRequest's?) session ever expire? What is the expiry period? > > I can't find where it's specified or configured. > > > > > -- > View t

Re: [Pharo-users] WrapAthen, World coordinate?

2017-06-18 Thread Stephane Ducasse
Hi hilaire Can you add a bug entry in the pharo bug tracker? We cannot look at bugs that are not listed there. Stef On Sun, Jun 18, 2017 at 4:11 PM, Hilaire wrote: > Only the picture I sent previously, but Nicolas tracked the problem in > the clipping default choices: > > https://bugs.launchpad

Re: [Pharo-users] Teapot session

2017-06-18 Thread Sven Van Caekenberghe
If you are talking about ZnServerSessions, the ones returned from ZnRequest>>#session, then the answer is that they are eligible for expiration and cleanup after 1 hour (see ZnServerSession>>#isValid). Cleanup happens inZnSingleThreadedServer>>#periodTasks. Right now, the expiration time is a f

Re: [Pharo-users] WrapAthen, World coordinate?

2017-06-18 Thread Nicolai Hess
Done: 20166 wrong cliprect on transformed athens canvas Although I don't know how we handle fixes for Athens, as the current repository and in-image version already diverged again. 2017-06-19 8:15 GMT+02:00