Re: [Pharo-users] Slow compilation on one of my Windows PCs

2015-07-01 Thread Jan Blizničenko
I tried commenting primFlush: fileID in StandardFileStream#flush on my desktop PC and the store benchmark's speed improved significantly. Original result on Windows 7: 11 per sec Result without flushing on Windows 7: 9 430 per sec Original result on Linux Mint 17: 26 590 per sec Result without

[Pharo-users] skipping whole class

2015-07-01 Thread Peter Uhnák
Is it possible to skip whole class from testing? I could do self skip for individual methods, but the problems arise even in setUp so I would like to stop the whole class from being tested. Is that possbile? Thanks, Peter

[Pharo-users] Key language differences with VW2.5

2015-07-01 Thread Laura Risani
Hi all, I'm dealing with some VW2.5 code i want to read/port/rewrite. Are there any key syntactical/semantical differences one should be aware of? Thank you!

Re: [Pharo-users] HTTP file logging for Zinc

2015-07-01 Thread Sven Van Caekenberghe
On 01 Jul 2015, at 19:54, Esteban A. Maringolo emaring...@gmail.com wrote: Thank you Sven! You're welcome. One thing that I did that I am not sure of is, whether Referer and User-Agent should be - or just when absent, I chose the first one but I am not sure. How does it work with

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-01 Thread H. Hirzel
Joachim, which results do you get on VA Smalltalk for the tests? Do they all pass? --Hannes On 7/1/15, jtuc...@objektfabrik.de jtuc...@objektfabrik.de wrote: I am not complaining. It just makes porting harder. What made the thing especially strange was that I only had that problem with

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-01 Thread Sven Van Caekenberghe
Yes, on Pharo, #next (and #peek or #peekFor:) all return nil when #atEnd. It is the way it is (I am personally for stricter semantics), but that fact is certainly used in code all allround the place. On 01 Jul 2015, at 15:06, jtuc...@objektfabrik.de wrote: Hi Sven, I didn't test on

Re: [Pharo-users] OpenCL problems since we switch to OS X 10.10.3

2015-07-01 Thread Serge Stinckwich
I switch to 10.10.4 and still the same problem when I launch a simple demo. Process: Pharo [2003] Path: /Applications/Pharo.app/Contents/MacOS/Pharo Identifier:org.pharo.Pharo Version: Pharo 0.2.7-2015.04.20 (21.0) Code Type:

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-01 Thread jtuc...@objektfabrik.de
Hi Sven, I didn't test on Pharo. But I remember seeing differences in the way Pharo and VAST react to reads beyond the end of a Stream. Not sure, but this could have been in NeoCSV context two or three years ago. So it is very likely I was bitten by platform differences. Thanks for

Re: [Pharo-users] an elegant way to return a result

2015-07-01 Thread jtuc...@objektfabrik.de
Stef, you're shooting the wrong man! ;-) The crime was committed in your team ;- See you in Brescia Joachim Am 30.06.15 um 19:19 schrieb stepharo: Le 30/6/15 14:39, jtuc...@objektfabrik.de a écrit : Ah, Okay, you are mentioning the one and only one case in which this could make

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-01 Thread jtuc...@objektfabrik.de
I am not complaining. It just makes porting harder. What made the thing especially strange was that I only had that problem with uploaded files because the Browser removes the trailing CrLf (or better, doesn't add another one in the multipart form data). So reading from a file all works like

Re: [Pharo-users] Interactive table support in Pharo (thanks to the new OS window architecture)

2015-07-01 Thread Merwan Ouddane
The objects on the screen are just shapes printed on paper and then glued on plastic ^^ These shapes looks like QRCodes and the table sends different IDs for each of them Cheers, Merwan On mer., 2015-07-01 at 15:39 +0200, Luc Fabresse wrote: Hi Stef, Nice ! Did you build the objects that

Re: [Pharo-users] does anybody use the AST navigation?

2015-07-01 Thread Marcus Denker
On 01 Jul 2015, at 14:28, Thierry Goubier thierry.goub...@gmail.com wrote: Hi Marcus, Stef, 2015-07-01 11:24 GMT+02:00 Marcus Denker marcus.den...@inria.fr mailto:marcus.den...@inria.fr: On 30 Jun 2015, at 19:21, stepharo steph...@free.fr mailto:steph...@free.fr wrote: Hi guys

Re: [Pharo-users] Interactive table support in Pharo (thanks to the new OS window architecture)

2015-07-01 Thread Luc Fabresse
Hi Stef, Nice ! Did you build the objects that you put on the screen? What materials are they made with? Cheers, #Luc 2015-06-30 16:16 GMT+02:00 p...@highoctane.be p...@highoctane.be: Cool stuff. Let's keep on truckin' This makes for interesting Roassal interactions. Phil Le 30 juin

Re: [Pharo-users] pharo looses font settings on linux with retina screen

2015-07-01 Thread Esteban Lorenzano
currently fonts+retina display is not a good combination :( can you link a screenshot of the problem you are describing? Esteban On 01 Jul 2015, at 11:47, Martin Bähr mba...@email.archlab.tuwien.ac.at wrote: hi, i am running pharo 40614 on linux on a mac with a retina screen. i have

Re: [Pharo-users] does anybody use the AST navigation?

2015-07-01 Thread Marcus Denker
On 30 Jun 2015, at 19:21, stepharo steph...@free.fr wrote: Hi guys does any of you use the AST code navigation? Because we could remove it. I think we never enabled it because we could not use good key combinations… the idea was to use ctrl-arrow keys for it… I still think that AST

Re: [Pharo-users] pharo looses font settings on linux with retina screen

2015-07-01 Thread Martin Bähr
Excerpts from Esteban Lorenzano's message of 2015-07-01 11:56:21 +0200: currently fonts+retina display is not a good combination :( can you link a screenshot of the problem you are describing? http://societyserver.org/scripts/get.pike?object=137514 i just ran into another issue. when i

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-01 Thread Sven Van Caekenberghe
Hi Joachim, First, thanks for the feedback. Second, since you are on a different platform, that might be a factor. Did you test your problem on Pharo itself ? Because there are already unit tests specifically for the case you describe: #testEmptyLastFieldUnquoted #testEmptyLastFieldQuoted

Re: [Pharo-users] does anybody use the AST navigation?

2015-07-01 Thread Thierry Goubier
Hi Marcus, Stef, 2015-07-01 11:24 GMT+02:00 Marcus Denker marcus.den...@inria.fr: On 30 Jun 2015, at 19:21, stepharo steph...@free.fr wrote: Hi guys does any of you use the AST code navigation? I haven't. Because we could remove it. I think we never enabled it because we could

[Pharo-users] stream not working with MemoryFileSystemFile

2015-07-01 Thread Torsten Bergmann
Christophe Demarey I tried to create an in-memory file as following: (MemoryFileSystemFile named: 'Foo') writeStreamDo: [ :stream | stream nextPutAll: 'bar' ] Then I get an improper store into ByteArray. It looks like Character cannot be store in a byte array. I do not know if the bug is

[Pharo-users] pharo looses font settings on linux with retina screen

2015-07-01 Thread Martin Bähr
hi, i am running pharo 40614 on linux on a mac with a retina screen. i have not tested this on a normal laptop yet, so i don't know if the retina resolution is the problem or the pharo version i am using. probably a bit of both. the worst issue is that when i restart an image, the font

Re: [Pharo-users] Any Huffman implementation ?

2015-07-01 Thread Martin Dias
Hi, InflateStream has several methods under the huffman trees protocol. (In Pharo 40616) Martín On Fri, Jun 26, 2015 at 12:46 PM, Merwan Ouddane merwanoudd...@gmail.com wrote: Hi everybody, I was wondering if anyone has implemented or knows where to find the Huffman compression algorithm

[Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-01 Thread jtuc...@objektfabrik.de
Hi there, I am on VA Smalltalk and therefor using an older version of NeoCSV (SvenVanCaekenberghe.14). I found a bug in this old version that is somewhat special. It seems NeoCSV cannot handle the situation where the very last field is just empty AND if there is no trailing CRLF at the end

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-01 Thread jtuc...@objektfabrik.de
Hi, I've tried porting SvenVanCaekenberghe.20 and see the same problems in this version. IN addition to the fix already mentioned, I also had to change readSeparator: readSeparator ^self atEnd ifFalse: [self peekFor: separator] As far as I can tell by now, this fixes the problem at

Re: [Pharo-users] [Ann] DragPanels: Floating palette windows with drag-and-drop in Morphic

2015-07-01 Thread H. Hirzel
Thank you for the custom made class CardsSvgWriter I loaded it from http://smalltalkhub.com/#!/~StephanEggermont/Documentation CardsMorphic-StephanEggermont.57 through the Monticello Browser. BTW Gofer new smalltalkhubUser: 'StephanEggermont' project: 'Documentation' package:

Re: [Pharo-users] HTTP file logging for Zinc

2015-07-01 Thread Sven Van Caekenberghe
Esteban, On 29 Jun 2015, at 21:40, Esteban A. Maringolo emaring...@gmail.com wrote: Hello everyone, I want to record everything that goes in or out from our REST API servers, maybe including HTTP payload (JSON mostly). ZnLogEvent seems to have the basic building blocks for logging,

[Pharo-users] loading with gofer without network

2015-07-01 Thread Christophe Demarey
Hi, I'm trying to load a package (mcz) from the package cache with Gofer. |gofer| gofer := Gofer new repository: MCCacheRepository uniqueInstance; repository: (MCSmalltalkhubRepository owner: 'Seaside' project: 'Grease11'); version: 'Grease-Core-JohanBrichau.94';

Re: [Pharo-users] stream not working with MemoryFileSystemFile

2015-07-01 Thread Christophe Demarey
Le 1 juil. 2015 à 14:42, Torsten Bergmann a écrit : Christophe Demarey I tried to create an in-memory file as following: (MemoryFileSystemFile named: 'Foo') writeStreamDo: [ :stream | stream nextPutAll: 'bar' ] Then I get an improper store into ByteArray. It looks like Character

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-01 Thread jtuc...@objektfabrik.de
You mean RewriteRules? I was planning to do that, for this exact reason. But you know how things go when there is a long list of priorities. I know it saves a lot of time and makes porting so much more safe, but it needs an up-front investment in time... Joachim Am 01.07.15 um 21:10 schrieb

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-01 Thread Thierry Goubier
Le 01/07/2015 21:07, jtuc...@objektfabrik.de a écrit : I gave up on porting tests. VAST doesn't support creating Arrays with curly braces, and they are used all over the place in Pharo code. I wuld use them if I had them, so this is not an accuse or anything. It's just a huge load of work to

Re: [Pharo-users] skipping whole class

2015-07-01 Thread Peter Uhnák
Of course... thanks :) Peter On Wed, Jul 1, 2015 at 6:44 PM, Camille camille.ter...@gmail.com wrote: On 01 Jul 2015, at 18:24, Peter Uhnák i.uh...@gmail.com wrote: Is it possible to skip whole class from testing? I could do self skip for individual methods, but the problems arise even

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-01 Thread Thierry Goubier
Le 01/07/2015 21:16, jtuc...@objektfabrik.de a écrit : You mean RewriteRules? I was planning to do that, for this exact reason. But you know how things go when there is a long list of priorities. I know it saves a lot of time and makes porting so much more safe, but it needs an up-front

Re: [Pharo-users] Key language differences with VW2.5

2015-07-01 Thread stepharo
not that much in fact. Pharo as sharedPool (special class) instead of PoolDictionrary Hi all, I'm dealing with some VW2.5 code i want to read/port/rewrite. Are there any key syntactical/semantical differences one should be aware of? Thank you!

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-01 Thread jtuc...@objektfabrik.de
I gave up on porting tests. VAST doesn't support creating Arrays with curly braces, and they are used all over the place in Pharo code. I wuld use them if I had them, so this is not an accuse or anything. It's just a huge load of work to keep tests up to date when porting newer versions, so I

Re: [Pharo-users] does anybody use the AST navigation?

2015-07-01 Thread stepharo
Because we could remove it. I think we never enabled it because we could not use good key combinations… the idea was to use ctrl-arrow keys for it… I still think that AST based navigation is a very good idea, removing it now without having ever used it for real is

Re: [Pharo-users] RAM-efficient alternative to ZnMultiPartFormDataEntity

2015-07-01 Thread Stephan Eggermont
On 29/06/15 10:00, mikefilonov wrote: Hi Sven, Thank you for a prompt reply. I have in mind something similar to the followin nginx plugin: http://www.grid.net.ru/nginx/upload.en.html That is in http://www.squeaksource.com/fileupload Stephan

Re: [Pharo-users] an elegant way to return a result

2015-07-01 Thread Matthieu Lacaton
This whole conversation really makes me want to ask: How do you know if some code is bad, good or completely ugly ? I've not been programming for long but I've already heard sentences like this: Damn this piece of code is so bad ! so often that I am really wondering. What are the rules ?

Re: [Pharo-users] RAM-efficient alternative to ZnMultiPartFormDataEntity

2015-07-01 Thread Stephan Eggermont
On 30/06/15 06:01, mikefilonov wrote: Thank you for the link. It is a useful example of how ajax upload can be implemented in Seaside. However, by looking at the code which works without nginx plugin I see the project does not change the mechanism of request reading, meaning if you upload 1Gb

Re: [Pharo-users] RAM-efficient alternative to ZnMultiPartFormDataEntity

2015-07-01 Thread Stephan Eggermont
On 01/07/15 23:07, Stephan Eggermont wrote: On 29/06/15 10:00, mikefilonov wrote: Hi Sven, Thank you for a prompt reply. I have in mind something similar to the followin nginx plugin: http://www.grid.net.ru/nginx/upload.en.html That is in http://www.squeaksource.com/fileupload I should

[Pharo-users] 1$ Recognizer in Pharo

2015-07-01 Thread stepharo
Now that we have gestures we can interface recognisers. Thanks Thales for the sponsoring. http://youtu.be/Ghxgv8c9OWM Stef

Re: [Pharo-users] 1$ Recognizer in Pharo

2015-07-01 Thread Sven Van Caekenberghe
Cool, cool, cool ! On 01 Jul 2015, at 23:52, stepharo steph...@free.fr wrote: Now that we have gestures we can interface recognisers. Thanks Thales for the sponsoring. http://youtu.be/Ghxgv8c9OWM Stef

Re: [Pharo-users] [Ann] DragPanels: Floating palette windows with drag-and-drop in Morphic

2015-07-01 Thread Stephan Eggermont
On 01/07/15 13:00, H. Hirzel wrote: BTW Gofer new smalltalkhubUser: 'StephanEggermont' project: 'Documentation' package: 'CardsMorphic'; load. taken from above gives an error message. Needs a configuration, depends on DragPanels and WebSocket from Zinc. I

Re: [Pharo-users] an elegant way to return a result

2015-07-01 Thread stepharo
I know :D Le 1/7/15 15:19, jtuc...@objektfabrik.de a écrit : Stef, you're shooting the wrong man! ;-) The crime was committed in your team ;- See you in Brescia Joachim Am 30.06.15 um 19:19 schrieb stepharo: Le 30/6/15 14:39, jtuc...@objektfabrik.de a écrit : Ah, Okay, you are

Re: [Pharo-users] HTTP file logging for Zinc

2015-07-01 Thread Esteban A. Maringolo
Thank you Sven! How does it work with FileStreams when the requests come from different threads of the server? I mean, is FileStream thread safe? I guess that if I have multiple images I should have a file per image, otherwise I couldn't write to a single file. I will add the payload logging

[Pharo-users] Seeking help to build an accordion widget for GUI of sQuick

2015-07-01 Thread Jigyasa Grover
Hello All :) I am a newbie in Pharo and have started to build my first application i.e. an offline text search application namely searchQuick. You all are welcome to fork the code (https://github.com/jig08/sQuick_new) , try the infancy application and send in suggestions. Currently, I have built

Re: [Pharo-users] skipping whole class

2015-07-01 Thread Camille
On 01 Jul 2015, at 18:24, Peter Uhnák i.uh...@gmail.com wrote: Is it possible to skip whole class from testing? I could do self skip for individual methods, but the problems arise even in setUp so I would like to stop the whole class from being tested. Is that possbile? Yes it is: put a

Re: [Pharo-users] Slow compilation on one of my Windows PCs

2015-07-01 Thread Jan Blizničenko
Sounds good, could I try it and run all those benchmarks etc. on it on my PCs? Jan Nicolai Hess wrote Yes, the vm primitives, like I already told some messages above. FilePrimitives ARE slow on windows. We may get better performance, if we disable windows file cache/buffering and use

Re: [Pharo-users] Slow compilation on one of my Windows PCs

2015-07-01 Thread Nicolai Hess
2015-07-01 7:46 GMT+02:00 Jan Blizničenko blizn...@fit.cvut.cz: Sounds good, could I try it and run all those benchmarks etc. on it on my PCs? Jan With this: http://stackoverflow.com/questions/14290337/is-fwrite-faster-than-writefile-in-windows It seems this all comes down to calling

[Pharo-users] Phratch: Support for Spanish language in the interface

2015-07-01 Thread Offray Vladimir Luna Cárdenas
Hi, Some teachers are considering to make some field work with Phratch on learning physics by modelling simple real world phenomena (uniform accelerated movement, free fall etc). I downloaded it today and try to change the interface to Spanish, but I couldn't find the proper place to do it.

Re: [Pharo-users] an elegant way to return a result

2015-07-01 Thread Joachim Tuchel
Just found this on twitter: http://www.cs.wm.edu/~denys/pubs/ICSE%2715-BadSmells-CRC.pdf Am 01.07.2015 23:35 schrieb stepharo steph...@free.fr: I know :D Le 1/7/15 15:19, jtuc...@objektfabrik.de a écrit : Stef, you're shooting the wrong man! ;-) The crime was committed in your

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-01 Thread Sven Van Caekenberghe
But before you ask for help on the Pharo ML you should run the NeoCSV code on Pharo to validate that your assumption hold there. If not, it is a porting error/problem. And unit tests are *VERY IMPORTANT* to maintain our sanity across versions and/or platforms. Again, what you report as a

Re: [Pharo-users] [Pharo-dev] 1$ Recognizer in Pharo

2015-07-01 Thread Merwan Ouddane
The DollarP is available too: (Gofer it smalltalkhubUser: 'MerwanOuddane' project: 'DollarPRecognizer'; package: 'DollarPRecognizer') load. On 02/07/2015 00:02, Sven Van Caekenberghe wrote: Cool, cool, cool ! On 01 Jul 2015, at 23:52, stepharo steph...@free.fr wrote: Now

Re: [Pharo-users] HTTP file logging for Zinc

2015-07-01 Thread Ben Coman
On Thu, Jul 2, 2015 at 2:53 AM, Sven Van Caekenberghe s...@stfx.eu wrote: On 01 Jul 2015, at 19:54, Esteban A. Maringolo emaring...@gmail.com wrote: Thank you Sven! You're welcome. One thing that I did that I am not sure of is, whether Referer and User-Agent should be - or just when

Re: [Pharo-users] 1$ Recognizer in Pharo

2015-07-01 Thread Johan Fabry
Very cool ! On Jul 1, 2015, at 18:52, stepharo steph...@free.fr wrote: Now that we have gestures we can interface recognisers. Thanks Thales for the sponsoring. http://youtu.be/Ghxgv8c9OWM Stef --- Save our in-boxes! http://emailcharter.org --- Johan Fabry -

Re: [Pharo-users] Modern Events Touch and Gestures in Pharo.

2015-07-01 Thread Merwan Ouddane
On 30/06/2015 22:35, J.F. Rick wrote: Awesome! There's a reasonable chance that I can contribute to this (or at least utilize it), depending on what contracts I get. If I do get that in the near future, who do I contact about contributing? I will maintain it for a while, if you have any

Re: [Pharo-users] Pharo image processing library

2015-07-01 Thread Luc Fabresse
2015-06-30 9:34 GMT+02:00 Serge Stinckwich serge.stinckw...@gmail.com: On Tue, Jun 30, 2015 at 8:39 AM, Nicolai Hess nicolaih...@web.de wrote: 2015-06-25 18:41 GMT+02:00 Peter Uhnák i.uh...@gmail.com: Hi, is there any image (as in picture) processing library in the likes of