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

2015-07-01 Thread Peter Uhnák
This is cool indeed! It would be interesting to integrate it with Roassal to drag elements around. :) Peter On Thu, Jul 2, 2015 at 12:33 AM, Johan Fabry wrote: > Very cool ! > > > On Jul 1, 2015, at 18:52, stepharo wrote: > > > > > > Now that we have gestures we can interface recognisers. > >

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

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

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 wrote: > >> On 01 Jul 2015, at 19:54, Esteban A. Maringolo 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

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

2015-07-01 Thread Johan Fabry
Very cool ! > On Jul 1, 2015, at 18:52, stepharo 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 - http://pleiad

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 suggesti

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 wrote: Now that we have gest

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 wrote: > > > Now that we have gestures we can interface recognisers. > Thanks Thales for the sponsoring. > > http://youtu.be/Ghxgv8c9OWM > > Stef >

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

[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] 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 menti

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

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 f

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] [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 understa

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] skipping whole class

2015-07-01 Thread Peter Uhnák
Of course... thanks :) Peter On Wed, Jul 1, 2015 at 6:44 PM, Camille wrote: > > > On 01 Jul 2015, at 18:24, Peter Uhnák 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 s

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 investmen

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 poten

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 Th

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 keep

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 j

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 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 FileStreams when th

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 some

[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] skipping whole class

2015-07-01 Thread Camille
> On 01 Jul 2015, at 18:24, Peter Uhnák 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 “self ski

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

[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] 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'; d

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 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, but I want to

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 Cha

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

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

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

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 : > Cool stuff. > > Let's keep on truckin' > > This makes for interesting Roassal interactions. > > Phil > > Le 30 juin 2015 13:49

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 a

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 sense

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 P

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 answering

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

2015-07-01 Thread Marcus Denker
> On 01 Jul 2015, at 14:28, Thierry Goubier wrote: > > Hi Marcus, Stef, > > 2015-07-01 11:24 GMT+02:00 Marcus Denker >: > > > On 30 Jun 2015, at 19:21, stepharo > > wrote: > > > > Hi guys > > > > does any of you use the AST code navigat

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 wrote: > Hi everybody, > > I was wondering if anyone has implemented or knows where to find the > Huffman compression algorithm in Pharo ? > > Che

[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

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 : > > > On 30 Jun 2015, at 19:21, stepharo 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 not use good key > com

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 Th

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 hand

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

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

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 > wrote: > > hi, > > i am running pharo 40614 on linux on a mac with a retina screen. > > i have not tested this on a norm

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

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

2015-07-01 Thread Marcus Denker
> On 30 Jun 2015, at 19:21, stepharo 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 based navigati

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

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 : > 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 FlushFileBuffers. You