[Pharo-users] What about a Pharo day in May-June?

2014-04-09 Thread Pharo4Stef
Hi guys I think that it would be great to organize a gathering/talks/show me your stuff/networking day before spring. What do you think that this idea? We could host it at Lille. Stef

Re: [Pharo-users] [Pharo-dev] What about a Pharo day in May-June?

2014-04-09 Thread Serge Stinckwich
There is already a Pharo sprint just after the MOOSEDAY organized in Paris in June. Envoyé de mon iPhone Le 9 avr. 2014 à 08:25, Pharo4Stef pharo4s...@free.fr a écrit : Hi guys I think that it would be great to organize a gathering/talks/show me your stuff/networking day before spring.

Re: [Pharo-users] What about a Pharo day in May-June?

2014-04-09 Thread Marcus Denker
On 09 Apr 2014, at 08:25, Pharo4Stef pharo4s...@free.fr wrote: Hi guys I think that it would be great to organize a gathering/talks/show me your stuff/networking day before spring. What do you think that this idea? We could host it at Lille. The question is if not just doing it at

Re: [Pharo-users] [ANN] WIP iStoa

2014-04-09 Thread Hilaire Fernandes
Ok I got it, well I hope so. Debian Wheezy's GNU C lib is version 2.13. So it looks like the VM I used was compiled against GNU C Lib version 2.15 (stock Pharo VM from a few months ago), but more recent stock Pharo VM are compiled with older GNU lib C dependcies. And this is nice. If I am wrong,

[Pharo-users] open file in append mode

2014-04-09 Thread Norbert Hartl
How can I open a file in append mode in order to start writing at the end of the file? thanks, Norbert

Re: [Pharo-users] [ANN] WIP iStoa

2014-04-09 Thread Hilaire Fernandes
Where did you get your VM, because the one in Pharo web site does not have the same libc version dependencies? Thanks Hilaire Le 08/04/2014 10:48, Bernat Romagosa a écrit : And this is the output of ldd -v on the vm I used to run iStoa: -- Dr. Geo http://drgeo.eu

Re: [Pharo-users] [ANN] WIP iStoa

2014-04-09 Thread Bernat Romagosa
Sorry Hilaire, I just got to work and was about to check it. Nice to see you've already found the cause though :) 2014-04-09 9:25 GMT+02:00 Hilaire Fernandes hilaire.fernan...@gmail.com: Ok I got it, well I hope so. Debian Wheezy's GNU C lib is version 2.13. So it looks like the VM I used was

Re: [Pharo-users] open file in append mode

2014-04-09 Thread Sven Van Caekenberghe
Norbert, Just use #setToEnd once you opened the file stream. HTH, Sven On 09 Apr 2014, at 10:08, Norbert Hartl norb...@hartl.name wrote: How can I open a file in append mode in order to start writing at the end of the file? thanks, Norbert

Re: [Pharo-users] open file in append mode

2014-04-09 Thread Thomas Bany
Hi ! I use #setToEnd. Cheers 2014-04-09 10:08 GMT+02:00 Norbert Hartl norb...@hartl.name: How can I open a file in append mode in order to start writing at the end of the file? thanks, Norbert

[Pharo-users] Pharo Consortium: New Gold Member Lam Research

2014-04-09 Thread Marcus Denker
The Pharo Consortium is very happy to announce that Lam Research has joined the Consortium as a Gold Industrial Member. More about - Lam Research: http://lamrc.com - Pharo Consortium: http://consortium.pharo.org The goal of the Pharo Consortium is to allow companies to support the

Re: [Pharo-users] Error: No factory specified

2014-04-09 Thread Stephan Eggermont
Ok, there is a bug in The ConfigurationOfDBXDriver, the baseline has a versionString entry. That should be removed After removing that (and renaming Cache) it loads. Glorp loads already after renaming Cache. I’m not sure the isKindOf: on ProtoObject is safe. There is a renaming issue after

Re: [Pharo-users] [ANN] BabyMock 2

2014-04-09 Thread Guillaume Larcheveque
I think you can have your mock send an exception by using #answers:aBlock and signal the exception in the block 2014-04-08 15:58 GMT+02:00 Christophe Demarey christophe.dema...@inria.fr: Hello, Thanks. Very nice library! I have a question: is it possible to expect a method to throw an

Re: [Pharo-users] Error: No factory specified

2014-04-09 Thread Sven Van Caekenberghe
Thanks, Stephan. I will have a look and try to load/use Glorp myself towards the end of the week. On 09 Apr 2014, at 11:08, Stephan Eggermont step...@stack.nl wrote: Ok, there is a bug in The ConfigurationOfDBXDriver, the baseline has a versionString entry. That should be removed After

[Pharo-users] Memory profiling: usage per class - instance in old memory

2014-04-09 Thread Thomas Bany
Hi, My app is a parser/filter for binary files, that produces a bunch of ascii files. At the begining of the parsing, the filtering step involves the storage of the positions of 32 objects, each second for a whole day. So that's 32 Arrays with 86400 elements each. During this step, the memory

Re: [Pharo-users] Memory profiling: usage per class - instance in old memory

2014-04-09 Thread Stephan Eggermont
Your calculation seem to be off. 32 * 86400 objects = 2.8 million objects. A shortint = 4 bytes, making 10.6 MB Everything else (except value objects) is larger. Stephan

Re: [Pharo-users] [ANN] WIP iStoa

2014-04-09 Thread Sergi Reyner
2014-04-09 8:25 GMT+01:00 Hilaire Fernandes hilaire.fernan...@gmail.com: So it looks like the VM I used was compiled against GNU C Lib version 2.15 (stock Pharo VM from a few months ago), but more recent stock Pharo VM are compiled with older GNU lib C dependcies. And this is nice. +10

Re: [Pharo-users] Error: No factory specified

2014-04-09 Thread Markus Fritsche
On 09.04.2014 00:51, Stephan Eggermont wrote: That would be nice but creates problems. There is existing third party code we want to use. We can be much more precise in naming, and should not use generic names for specific implementations. When #totalWeight is no longer below

Re: [Pharo-users] [ANN] WIP iStoa

2014-04-09 Thread Bernat Romagosa
Ouch! I think it was myself who compiled it... I'll check again tomorrow! 2014-04-09 14:00 GMT+02:00 Sergi Reyner sergi.rey...@gmail.com: 2014-04-09 8:25 GMT+01:00 Hilaire Fernandes hilaire.fernan...@gmail.com: So it looks like the VM I used was compiled against GNU C Lib version 2.15

Re: [Pharo-users] Memory profiling: usage per class - instance in old memory

2014-04-09 Thread Thomas Bany
I meant a single array weight something like 300Kb with the 32 of them weighting arround 10Mb. I tried to look closely at the way the memory (with VirtualMachine#memoryEnd) was incrementing and it follows this pattern: - The memory costly function is defenitly the one storing my position

Re: [Pharo-users] Memory profiling: usage per class - instance in old memory

2014-04-09 Thread Sven Van Caekenberghe
Hi Thomas, Fixing memory consumption problems is hard, but important: memory efficient code is automatically faster in the long run as well. Your issue sounds serious. However, I would start by trying to figure out what is happening at your coding level: somehow you (or something you use) must

Re: [Pharo-users] [ANN] BabyMock 2

2014-04-09 Thread Christophe Demarey
Thanks Guillaume. It works well. With BabyMock2, the syntax is = aBlock Le 9 avr. 2014 à 11:13, Guillaume Larcheveque a écrit : I think you can have your mock send an exception by using #answers:aBlock and signal the exception in the block 2014-04-08 15:58 GMT+02:00 Christophe Demarey

[Pharo-users] Socket Handles to C

2014-04-09 Thread Sean P. DeNigris
How do Socket handles map to C socket IDs? I'm wrapping libssh2 via Native Boost and I'd much rather create sockets via Smalltalk than C, but I'm not sure how to pass the handle to a C function expecting a C socket ID. Maybe I'm missing something really simple? Thanks. - Cheers, Sean --

Re: [Pharo-users] Zinc HTTP server seems to convert always ...

2014-04-09 Thread itli...@schrievkrom.de
Am 09.04.2014 15:29, schrieb Sven Van Caekenberghe: Hi Marten, I will need (much) more detail, what are you trying to do that is not working according to you ? As far as I know Zinc HTTP Components does the right thing and can be used (configured) to do almost anything you want. It

Re: [Pharo-users] [ANN] WIP iStoa

2014-04-09 Thread Hilaire Fernandes
LOL. So you have no choice but to prepare for me an archive with your compiled VM, so I will use it ;-) (my system use glibc 2.15 anyway) Hilaire Le 09/04/2014 14:29, Bernat Romagosa a écrit : Ouch! I think it was myself who compiled it... I'll check again tomorrow! -- Dr. Geo

Re: [Pharo-users] Zinc HTTP server seems to convert always ...

2014-04-09 Thread Norbert Hartl
Am 09.04.2014 um 17:29 schrieb itli...@schrievkrom.de: Am 09.04.2014 15:29, schrieb Sven Van Caekenberghe: Hi Marten, I will need (much) more detail, what are you trying to do that is not working according to you ? As far as I know Zinc HTTP Components does the right thing and can be

Re: [Pharo-users] Memory profiling: usage per class - instance in old memory

2014-04-09 Thread Thomas Bany
Thanks ! That's exactly what I was looking for. There is a compare method I dont quite understand but I think I found what is going on. I failed to grasp that an Array reply to #sizeInMemory with it's own size, without the sizes of its references. A single position object weight 96 bytes, which

Re: [Pharo-users] Zinc HTTP server seems to convert always ...

2014-04-09 Thread Sven Van Caekenberghe
On 09 Apr 2014, at 17:29, itli...@schrievkrom.de wrote: The browser sends UTF8 data and in my application code I get instances of ZnStringEntity and the contained string is converted to (?) ISO8859-1 (?) or CP-1252 (?). This seems to be due to the fact, that the entity instance always has a

Re: [Pharo-users] Memory profiling: usage per class - instance in old memory

2014-04-09 Thread Sven Van Caekenberghe
On 09 Apr 2014, at 18:01, Thomas Bany mun.sys...@gmail.com wrote: Thanks ! That's exactly what I was looking for. There is a compare method I dont quite understand but I think I found what is going on. I failed to grasp that an Array reply to #sizeInMemory with it's own size, without

Re: [Pharo-users] Zinc HTTP server seems to convert always ...

2014-04-09 Thread itli...@schrievkrom.de
Ok, if the browser sends POST/PUT request with a JSON structure it also sends charset = utf8 (in my case). That's ok, because for JSON this is more or less the default charset. Zinc now seems to notice, that UTF8 charset is needed and creates a ZnStringEntity with an UTF8Encoder. Now when my

Re: [Pharo-users] Zinc HTTP server seems to convert always ...

2014-04-09 Thread Sven Van Caekenberghe
Marten, On 09 Apr 2014, at 18:25, itli...@schrievkrom.de wrote: Ok, if the browser sends POST/PUT request with a JSON structure it also sends charset = utf8 (in my case). That's ok, because for JSON this is more or less the default charset. Zinc now seems to notice, that UTF8 charset is

[Pharo-users] NeoJSON Parsing Nested Objects

2014-04-09 Thread Sean P. DeNigris
I'm wrapping the Digital Ocean API. This particular response has a status, and an array of droplet sizes. For example:

Re: [Pharo-users] NeoJSON Parsing Nested Objects

2014-04-09 Thread Sean P. DeNigris
Sean P. DeNigris wrote I'd like to convert them to DropletSize objects Duh :-P reader for: DoResponse do: [ :m | m mapInstVar: #status. (m mapInstVar: #contents to: #sizes) valueSchema: #ArrayOfDropletSizes ]. - Cheers, Sean -- View this message in

Re: [Pharo-users] Zinc HTTP server seems to convert always ...

2014-04-09 Thread itli...@schrievkrom.de
Ok, forget the JSON stuff - it has nothing to do with the problem. Other way round: My whole database and internal processing is done in UTF8. This is the most important point here to mention. Now the request comes into Zinc as mentioned below (the content of the request is a JSON string

Re: [Pharo-users] Socket Handles to C

2014-04-09 Thread Igor Stasenko
On 9 April 2014 16:59, Sean P. DeNigris s...@clipperadams.com wrote: How do Socket handles map to C socket IDs? I'm wrapping libssh2 via Native Boost and I'd much rather create sockets via Smalltalk than C, but I'm not sure how to pass the handle to a C function expecting a C socket ID. Maybe

Re: [Pharo-users] Error: No factory specified

2014-04-09 Thread Esteban A. Maringolo
Renaming Cache to AbstractCache (or whatever else, it has no global references) I was able to load Glorp and have it running with the NativePostgresDriver. However there are a mix of things that are innecesary interdependant. For instance: * Running the tests the default glorp login doesn't have

Re: [Pharo-users] NeoJSON Parsing Nested Objects

2014-04-09 Thread Sven Van Caekenberghe
On 09 Apr 2014, at 19:18, Sean P. DeNigris s...@clipperadams.com wrote: I'm wrapping the Digital Ocean API. Cool !

Re: [Pharo-users] NeoJSON Parsing Nested Objects

2014-04-09 Thread Esteban A. Maringolo
2014-04-09 14:56 GMT-03:00 Sven Van Caekenberghe s...@stfx.eu: On 09 Apr 2014, at 19:18, Sean P. DeNigris s...@clipperadams.com wrote: I'm wrapping the Digital Ocean API. Cool ! +1 I use it for my Pharo hosting too (plus a JIRA instance on other droplet). Anybody using Supervisord or

Re: [Pharo-users] Zinc HTTP server seems to convert always ...

2014-04-09 Thread Sven Van Caekenberghe
On 09 Apr 2014, at 19:35, itli...@schrievkrom.de wrote: Ok, forget the JSON stuff - it has nothing to do with the problem. Other way round: My whole database and internal processing is done in UTF8. This is the most important point here to mention. Why ? This means you forgo almost all

Re: [Pharo-users] NeoJSON Parsing Nested Objects

2014-04-09 Thread Sven Van Caekenberghe
On 09 Apr 2014, at 19:28, Sean P. DeNigris s...@clipperadams.com wrote: Sean P. DeNigris wrote I'd like to convert them to DropletSize objects Duh :-P reader for: DoResponse do: [ :m | m mapInstVar: #status. (m mapInstVar: #contents to: #sizes) valueSchema:

Re: [Pharo-users] Zinc HTTP server seems to convert always ...

2014-04-09 Thread itli...@schrievkrom.de
And now the additional information: I'm working under Gemstone and I noticed quite some differences between Pharo and its Gemstone port of Zinc in this area ... I have to take a closer look here. Marten -- Marten Feldtmann

Re: [Pharo-users] Zinc HTTP server seems to convert always ...

2014-04-09 Thread Sven Van Caekenberghe
On 09 Apr 2014, at 20:54, itli...@schrievkrom.de wrote: And now the additional information: I'm working under Gemstone and I noticed quite some differences between Pharo and its Gemstone port of Zinc in this area ... I have to take a closer look here. Marten I already expected that much.

Re: [Pharo-users] NeoJSON Parsing Nested Objects

2014-04-09 Thread Sean P. DeNigris
Esteban A. Maringolo wrote I'm wrapping the Digital Ocean API. Cool ! +1 The embryo is alive. See documentation at http://smalltalkhub.com/#!/~SeanDeNigris/DigitalOcean A few supported operations: DoDroplet allActive. DoDroplet allActive detect: [ :e | e name = 'mycooldomain.org' ].

Re: [Pharo-users] Zinc HTTP server seems to convert always ...

2014-04-09 Thread Paul DeBruicker
+1 to Sven's comment and Marten - you should post this on the GemStone list as one of their guys will be able to help you with the encoding issues. Paul Sven Van Caekenberghe-2 wrote On 09 Apr 2014, at 20:54, itlists@ wrote: And now the additional information: I'm working under

Re: [Pharo-users] [Pharo-dev] Pharo Consortium: New Gold Member Lam Research

2014-04-09 Thread Tudor Girba
Great! Doru -- www.tudorgirba.com Every thing has its own flow. On 09.04.2014, at 11:38, Marcus Denker marcus.den...@inria.fr wrote: The Pharo Consortium is very happy to announce that Lam Research has joined the Consortium as a Gold Industrial Member. More about - Lam