Re: [Pharo-project] Does anyone have tried/succeeded to use PetitParser for parsing dates?

2012-03-16 Thread Tudor Girba
Hi, I used it for various forms of dates. What is the question? Cheers, Doru On 14 Mar 2012, at 16:24, Friedrich Dominicus wrote: I wonder if anyone has used PetitParser to parse dates in diverse formats. e.g 01/01/2012 07/31/2012 And with failures on things like 2012-07-32 or

Re: [Pharo-project] Issue 5476: File Browser Invalid utf8 input detected when clicking on a binary file

2012-03-16 Thread Marcus Denker
On Mar 16, 2012, at 2:48 AM, Alexis Parseghian wrote: Clicking on a file in the File Browser immediately loads a preview of its contents. Works fine for text files, but when the file is binary (eg .image, .png) the above error is raised. Changeset attached in the issue, wrapping on:do:

Re: [Pharo-project] Unicode depending on Zinc

2012-03-16 Thread Marcus Denker
On Mar 16, 2012, at 12:24 AM, Igor Stasenko wrote: you can always make dependency less hardcoded: Smalltalk at: #ZnClient ifAbsent: [ self error: 'sorry dude' ] ifPresent: [:client | ... download stuff , whatever ] Why don't we make that the default? That is, compile all globals to

Re: [Pharo-project] Unicode depending on Zinc

2012-03-16 Thread Pavel Krivanek
On Fri, Mar 16, 2012 at 8:20 AM, Marcus Denker marcus.den...@inria.fr wrote: On Mar 16, 2012, at 12:24 AM, Igor Stasenko wrote: you can always make dependency less hardcoded: Smalltalk at: #ZnClient ifAbsent: [ self error: 'sorry dude' ] ifPresent: [:client |  ... download stuff , whatever

Re: [Pharo-project] TestCase#assert:equals: optimization

2012-03-16 Thread Pavel Krivanek
On Fri, Mar 16, 2012 at 8:28 AM, Marcus Denker marcus.den...@inria.fr wrote: On Mar 15, 2012, at 11:20 PM, Nicolas Cellier wrote: Being able to automate is very good, however... rant I am 100% with you... my perfect system looks *completely* different to what we have... Can you, please,

[Pharo-project] [update 1.4] #14394

2012-03-16 Thread Marcus Denker
14394 - Issue 5466: Lots of failing test: test seems to create undeletable file on linux (trying a workaroung for now...) http://code.google.com/p/pharo/issues/detail?id=5466 Issue 5486: Fix in Abstract Tool

Re: [Pharo-project] Grouping of Tools?

2012-03-16 Thread Friedrich Dominicus
Stéphane Ducasse stephane.duca...@inria.fr writes: On Mar 13, 2012, at 11:25 AM, Friedrich Dominicus wrote: I wonder if one can get Pharo to group the tools e.g the Workspace on one tab, Browsers on another etc. Any suggestions? did you check the TWM project? No, I did not know anything

Re: [Pharo-project] Does anyone have tried/succeeded to use PetitParser for parsing dates?

2012-03-16 Thread Friedrich Dominicus
Tudor Girba tu...@tudorgirba.com writes: Hi, I used it for various forms of dates. What is the question? E.g handling of optional leading zeroes how did you handle things like 1/1/11 (or didn't you?) or worse 1/1/1 - 01.01.2001? how have you treated dates like 1/12/2012 - 12.01.2012 or

Re: [Pharo-project] Unicode depending on Zinc

2012-03-16 Thread Sven Van Caekenberghe
If you want to avoid hardcoding a class reference to Zn, you could do a simple download like this: 'http://zn.stfx.eu/zn/numbers.txt' asZnUrl retrieveContents It avoids an entry to Undeclared or the ugly test, and it since it is implemented as retrieveContents Download and

Re: [Pharo-project] [Moose-dev] Moose Windows VM problem

2012-03-16 Thread Stéphane Ducasse
Hi, It would be great to get a job for running the Moose on Windows. Yes usman was talking about that with igor last week. Now just running. Stef

Re: [Pharo-project] Does anyone have tried/succeeded to use PetitParser for parsing dates?

2012-03-16 Thread Stéphane Ducasse
how did you handle things like 1/1/11 (or didn't you?) or worse 1/1/1 - 01.01.2001? This is not related to parsing but to the interpretation of the data :) There is no magic no? BTW this is the birthday of one of my sons :) how have you treated dates like 1/12/2012 - 12.01.2012 or

Re: [Pharo-project] Unicode depending on Zinc

2012-03-16 Thread Stéphane Ducasse
I would prefer to have a method that contains this data. Because any Smalltalk at:…. will lead to dead code when ring is not loaded. Stef On Mar 16, 2012, at 12:18 AM, Guillermo Polito wrote: That's why I generated a method from the file, and then put the link in the

Re: [Pharo-project] Unicode depending on Zinc

2012-03-16 Thread Stéphane Ducasse
On Mar 16, 2012, at 11:49 AM, Sven Van Caekenberghe wrote: If you want to avoid hardcoding a class reference to Zn, you could do a simple download like this: 'http://zn.stfx.eu/zn/numbers.txt' asZnUrl retrieveContents Sven the problem is that it just hides the problem. If Zinc is

Re: [Pharo-project] Unicode depending on Zinc

2012-03-16 Thread Stéphane Ducasse
On Mar 16, 2012, at 9:26 AM, Pavel Krivanek wrote: - the expression self environment is not good because the message #environment is defined only in classes and for nil, not in Object. environment is for classes not object. = namespace. Marcus your solution is interesting (I would like to

Re: [Pharo-project] Unicode depending on Zinc

2012-03-16 Thread Sven Van Caekenberghe
On 16 Mar 2012, at 12:15, Stéphane Ducasse wrote: Sven the problem is that it just hides the problem. If Zinc is not loaded then this code is broken code. I know ;-) My last answer was to the question of how to avoid 'hardcoding a reference'. My first answer was: add a method that can

Re: [Pharo-project] Does anyone have tried/succeeded to use PetitParser for parsing dates?

2012-03-16 Thread Fabrizio Perin
2012/3/16 Stéphane Ducasse stephane.duca...@inria.fr how did you handle things like 1/1/11 (or didn't you?) or worse 1/1/1 - 01.01.2001? This is not related to parsing but to the interpretation of the data :) I agree with Stef, your seems to be more an interpretation problem. If you

Re: [Pharo-project] Socket listenOn: 0 accept

2012-03-16 Thread drush66
Sven Van Caekenberghe wrote Most socket API's allow for the creation of a server socket on the next available port, often by specifying 0 instead of a port. When the socket is bound, one can retrieve the local port and let the client(s) know. I tried to do that in Pharo today, and these

[Pharo-project] Try with Coral

2012-03-16 Thread Alexandre Bergel
Hi! I just gave a try of Coral. Apparently I am not able to run the examples: /users/alexandrebergel/Downloads/Coral ./coral.sh scriptHappyFace.cst ok, bye... /users/alexandrebergel/Downloads/Coral ./coral.sh scriptHappyFace.cst ok, bye... /users/alexandrebergel/Downloads/Coral ./coral.sh

Re: [Pharo-project] Extending SystemBrowser

2012-03-16 Thread Ezequiel Lamonica
Ok, I just started with OB. Thanks! On 15 March 2012 18:46, Stéphane Ducasse stephane.duca...@inria.fr wrote: On Mar 13, 2012, at 9:21 PM, Ezequiel Lamonica wrote: Hi everybody, I have some problems to extend the SystemBrowser. I want to add a panel at the left of package panel to

[Pharo-project] Seaside image

2012-03-16 Thread Schwab,Wilhelm K
Hello all, I have started to resurrect some of my Seaside code (originally written for 2.8) in the Seaside downstream image for Pharo 1.3 (Seaside 3, I think??). I can't do anything with request contexts in the image. I can try loading Seaside myself in a new image, but I was wondering if