[Pharo-users] your opinion about storing FixedDecimal in Mongo

2013-08-19 Thread Sabine Knöfel
Hi, I am interested in your opinion. I use FixedDecimal for computing currency amounts. This works fine. When storing the amounts with voyage into mongo (I have a lot of them!!!), normally, one currency amount would be stored into mongo as follows: "vatAmountEUR": { "#ins

Re: [Pharo-users] your opinion about storing FixedDecimal in Mongo

2013-08-19 Thread jtuc...@objektfabrik.de
Am 19.08.13 10:38, schrieb Sabine Knöfel: I think, this is a lot of stuff for one single value. I tend to convert the FixedDecimal into a Float for storing it. In this case, it would be like this: "vatAmountEUR": 0.7196 When loading, I immediately re-convert it into a FixedDecimal. I would do

Re: [Pharo-users] your opinion about storing FixedDecimal in Mongo

2013-08-19 Thread jtuc...@objektfabrik.de
Am 19.08.13 10:46, schrieb jtuc...@objektfabrik.de: Am 19.08.13 10:38, schrieb Sabine Knöfel: I think, this is a lot of stuff for one single value. I tend to convert the FixedDecimal into a Float for storing it. In this case, it would be like this: "vatAmountEUR": 0.7196 When loading, I imm

Re: [Pharo-users] your opinion about storing FixedDecimal in Mongo

2013-08-19 Thread Esteban Lorenzano
Hi, yes, looks like too much :) I would go with the float representation... for the conversion, I do not have an experience or opinion about performance or db footprint. You have to check that in the old empirical fashion way :) Esteban On Aug 19, 2013, at 10:38 AM, Sabine Knöfel wrote: >

Re: [Pharo-users] Pharo as a platform for a large E-Commerce website

2013-08-19 Thread Esteban Lorenzano
Hi, sorry for the very delayed answer :) Some years ago I made a massive ecommerce, it was developed on pharo and deployed on gemstone. that works pretty well and you have infinite scaling. now, you could do the same with pharo + some db backend (I'd recommend mongo) + a load balancing stra

[Pharo-users] Smalltalk frameworks that use parsers

2013-08-19 Thread Mohammad Al Houssami (Alumni)
Hello all, Are there any frameworks or applications built in Smalltalk that use parsers ? If yes can I get the names of a few of them ? I was only able to find applications that provide parsing services but not things that use a parser to do something like sanitization for example. Any help is m

Re: [Pharo-users] Smalltalk frameworks that use parsers

2013-08-19 Thread Tudor Girba
Hi, The Moose project uses PetitParser for various parsers: http://moosetechnology.org But, could you elaborate your use case? Doru On Mon, Aug 19, 2013 at 12:21 PM, Mohammad Al Houssami (Alumni) < mh...@mail.aub.edu> wrote: > Hello all, > > Are there any frameworks or applications built

Re: [Pharo-users] Smalltalk frameworks that use parsers

2013-08-19 Thread Mohammad Al Houssami (Alumni)
I am working on an html5 parser and I want to get ideas of how a parser can be used outside a browser. So a very simple example is something like live DOM viewer(http://software.hixie.ch/utilities/js/live-dom-viewer/ ) that shows the hierarchy of the elements in the html code. This is an applica

Re: [Pharo-users] your opinion about storing FixedDecimal in Mongo

2013-08-19 Thread Henrik Johansen
On Aug 19, 2013, at 10:38 , Sabine Knöfel wrote: > Hi, > > I am interested in your opinion. > I use FixedDecimal for computing currency amounts. > This works fine. > > When storing the amounts with voyage into mongo (I have a lot of them!!!), > normally, one currency amount would be stored int

Re: [Pharo-users] your opinion about storing FixedDecimal in Mongo

2013-08-19 Thread Sabine Knöfel
Hi Henry, Esteban, Joachim, thanks for your opinion! The ranges of my data are relatively small because my application deals with travel expenses, e.g. Hotel receipts, Taxi receipts, Flights et. So, 99,99% of all my amounts are less than 10.000 Euro. So I will try it with the Float solution and

[Pharo-users] Pier 3 Code exporter

2013-08-19 Thread Stephan Eggermont
Hi all, Before my holidays I started on making the code exporter for pier3 work easy. I had some issues, and fixed most of the before my holidays. But now after my holidays I had time to test the entire path, so we can deploy our website www.legacycode.nl from continuous integration. We now ca

Re: [Pharo-users] Smalltalk frameworks that use parsers

2013-08-19 Thread Damien Cassou
On Mon, Aug 19, 2013 at 12:21 PM, Mohammad Al Houssami (Alumni) wrote: > Are there any frameworks or applications built in Smalltalk that use parsers > ? If yes can I get the names of a few of them ? there are plenty of applications that use parsers: - smalltalkhub.com parses markdown text to r

[Pharo-users] image resize event

2013-08-19 Thread Usman Bhatti
Hello, I would like to resize all my windows opened inside my image when resizing the image window. Can anyone point me to the hook where I can plug my code for window resizing? For example, it would like to do onImageResize World fitAll. tx, usman

Re: [Pharo-users] image resize event

2013-08-19 Thread Benjamin
Somewhere in World doOneCycle I guess Ben On Aug 19, 2013, at 6:07 PM, Usman Bhatti wrote: > Hello, > > I would like to resize all my windows opened inside my image when resizing > the image window. Can anyone point me to the hook where I can plug my code > for window resizing? > > For exam

Re: [Pharo-users] Pharo as a platform for a large E-Commerce website

2013-08-19 Thread S Krish
Let me start with this note: "Asking a Pharo Group what fits best for a good commercial solution is like asking an hungry person whether he would like to go for a feast.." Most certainly the answer should be a resounding yes from this group. You should. Now if you are asking if there are alterna

[Pharo-users] Metrics for production images

2013-08-19 Thread Udo Schneider
All, which metrics would be interesting from long-running Smalltalk images? I can think of memory/GC metrics. Or things like session count/rate/expiring for Seaside. Anything else you would like to see? Sorry for not being able to be more specific - just checking some proof-of-concept code I

Re: [Pharo-users] Smalltalk frameworks that use parsers

2013-08-19 Thread Mohammad Al Houssami (Alumni)
Thank you Damien. This is very very helpful :) -Original Message- From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of Damien Cassou Sent: Monday, August 19, 2013 4:05 PM To: Any question about pharo is welcome Subject: Re: [Pharo-users] Smalltalk frameworks that us

[Pharo-users] Process ID of VM

2013-08-19 Thread Udo Schneider
All, is there anyway to get the PID of the VM running the image. I'm searching for a way to differentiate different instances of the same (read-only) image running on multiple VMs on the same server. Any other thoughts? Best Regards, Udo

Re: [Pharo-users] Process ID of VM

2013-08-19 Thread David T. Lewis
On Mon, Aug 19, 2013 at 11:02:37PM +0200, Udo Schneider wrote: > All, > > is there anyway to get the PID of the VM running the image. I'm > searching for a way to differentiate different instances of the same > (read-only) image running on multiple VMs on the same server. Any other > thoughts?