[Pharo-users] best solution to store data

2014-09-02 Thread Roelof Wobben
Hello, I want to try to make a financial app for a organisation. There are some 50 customers so also 50 invoices a year. Then the payments . Also 50 a year. Cash and bank accounts . Every month some 10 - 20 things. So on my disk on the programm I now use it costs me some 30 - 50 Kb a year.

Re: [Pharo-users] best solution to store data

2014-09-02 Thread François Stephany
If you don't want a separate DB, object serialization with Fuel is an option. It's very easy to serialize a graph of objects to disk. You can also have a look at SandstoneDB, it's pretty small and some people use it. Cheers, Francois On Tue, Sep 2, 2014 at 8:17 AM, Roelof Wobben

Re: [Pharo-users] best solution to store data

2014-09-02 Thread Tim Mackinnon
Esteban talked about Voyage at ESUG, its on the list of talks here: http://goo.gl/E1VF53 You can of course scale up to Gemstone (or indeed start with that as well if you need something more commercial and supported - there is a Gemstone talk in that link as well). Tim On 2 Sep 2014, at

Re: [Pharo-users] best solution to store data

2014-09-02 Thread stepharo
Hello, I want to try to make a financial app for a organisation. We want you do succeed :) There are some 50 customers so also 50 invoices a year. Then the payments . Also 50 a year. Cash and bank accounts . Every month some 10 - 20 things. So on my disk on the programm I now use it

Re: [Pharo-users] best solution to store data

2014-09-02 Thread stepharo
On 2/9/14 09:11, François Stephany wrote: If you don't want a separate DB, object serialization with Fuel is an option. It's very easy to serialize a graph of objects to disk. You can also have a look at SandstoneDB, it's pretty small and some people use it. pay attention that images can get

Re: [Pharo-users] [Article] Reddit.st - In 10 Cool Pharo Classes

2014-09-02 Thread stepharo
Excellent. I started to port the old tutorial to PFTE so I will retire the chapter from the book for now. Stef On 1/9/14 23:18, Sven Van Caekenberghe wrote: Hi, I published another introduction/tutorial article Reddit.st - In 10 Cool Pharo Classes Implementing a Reddit style web

Re: [Pharo-users] GUI construction under Pharo

2014-09-02 Thread stepharo
On 1/9/14 17:40, Ichiseki wrote: Hi For what I've read and study Smalltalk was great a RAD, it was infact used a lot in financial services for that reason. Smalltalk is still used!. JPMorgan, globalFoundries (AMD 64), LAMRC, MMA Now I see that most commercial versions of Smalltalk have a GUI

Re: [Pharo-users] best solution to store data

2014-09-02 Thread Roelof Wobben
Thanks. Could Magna also be a good solution ? Roelof François Stephany schreef op 2-9-2014 9:11: If you don't want a separate DB, object serialization with Fuel is an option. It's very easy

Re: [Pharo-users] best solution to store data

2014-09-02 Thread Roelof Wobben
Thanks all. Is there a good tutorial how I can work with Fuel ? Roelof stepharo schreef op 2-9-2014 12:31: On 2/9/14 09:11, François Stephany wrote: If you don't

Re: [Pharo-users] best solution to store data

2014-09-02 Thread stepharo
On 2/9/14 13:01, Roelof Wobben wrote: Thanks. Could Magna also be a good solution ? For such quantity of information my impression is that it is oversized. May be Chris Mueller will reply. Now Magma does not work in Pharo (or may be it does but I do not know). Roelof François

Re: [Pharo-users] best solution to store data

2014-09-02 Thread François Stephany
Yep, the binary approach is a bit more fragile and less interoperable. STON, JSON or XML are all fine with such a small domain I imagine. On Tue, Sep 2, 2014 at 12:31 PM, stepharo steph...@free.fr wrote: On 2/9/14 09:11, François Stephany wrote: If you don't want a separate DB, object

Re: [Pharo-users] best solution to store data

2014-09-02 Thread Esteban Lorenzano
seeing that use case is really small, I would probably try the simplest approach possible. Something like sandstonedb can make the trick here :) http://smalltalkhub.com/#!/~gnaritas/SandstoneDb Esteban On 02 Sep 2014, at 14:31, François Stephany tulipe.mouta...@gmail.com wrote: Yep, the

Re: [Pharo-users] best solution to store data

2014-09-02 Thread kilon alios
When I was coding in Python for small local databases SQlite was recommended , I only have played briefly with it but it looked to me fairly easy to use and with a very good performance. But I dont know how well it works in Pharo, so maybe someone can jump in and tells us about it . On Tue, Sep

Re: [Pharo-users] best solution to store data

2014-09-02 Thread Pierce Ng
On Tue, Sep 02, 2014 at 03:55:50PM +0300, kilon alios wrote: When I was coding in Python for small local databases SQlite was recommended , I only have played briefly with it but it looked to me fairly easy to use and with a very good performance. But I dont know how well it works in Pharo, so

Re: [Pharo-users] [Article] Reddit.st - In 10 Cool Pharo Classes

2014-09-02 Thread Esteban A. Maringolo
Excellent. I hope this spurs more people to embrace GLORP use together with Seaside. :) Thank you again. Esteban A. Maringolo 2014-09-01 18:18 GMT-03:00 Sven Van Caekenberghe s...@stfx.eu: Hi, I published another introduction/tutorial article Reddit.st - In 10 Cool Pharo Classes

Re: [Pharo-users] best solution to store data

2014-09-02 Thread kilon alios
ah yes thats it , thanks Pierce . It may come handy for my project Ephestos, though I prefer to keep things inside the Pharo image personally. On Tue, Sep 2, 2014 at 4:04 PM, Pierce Ng pie...@samadhiweb.com wrote: On Tue, Sep 02, 2014 at 03:55:50PM +0300, kilon alios wrote: When I was coding

Re: [Pharo-users] Persistence on Moose browsers, showing always a selection in trees and making tree labels editable.

2014-09-02 Thread Offray Vladimir Luna Cárdenas
Hi Sven, On 08/28/2014 04:47 PM, Sven Van Caekenberghe wrote: Hi, On 28 Aug 2014, at 07:49, Offray Vladimir Luna Cárdenas off...@riseup.net wrote: The last question its related with Sven's STON: Suppose that I would like to store light markup languages in STON which have the single quote

Re: [Pharo-users] best solution to store data

2014-09-02 Thread Esteban Lorenzano
problem with relational databases is that they do not match really well with object models. nowadays you have a lot of cool solutions that allow you to avoid them (several document-oriented databases, object-oriented, etc.) so unless you are really constrained for some reason (like imposition

Re: [Pharo-users] best solution to store data

2014-09-02 Thread Roelof Wobben
Hello Estaban. Do you have a tutorial or a example how I can store my data in objects. Roelof Esteban Lorenzano schreef op 2-9-2014 15:23: problem with relational databases is that they do not match really

Re: [Pharo-users] best solution to store data

2014-09-02 Thread Pablo R. Digonzelli
What about transactions and ACID things with voyager and Mongo? Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714 - Mensaje original - De: Tim Mackinnon

Re: [Pharo-users] best solution to store data

2014-09-02 Thread Esteban Lorenzano
there is no such thing as ACID or transactions in MongoDB, and therefore also not in Voyage. instead, for MongoDB each commit is atomic. It happens or it doesn’t :) Esteban On 02 Sep 2014, at 16:46, Pablo R. Digonzelli pdigonze...@gmail.com wrote: What about transactions and ACID things

Re: [Pharo-users] best solution to store data

2014-09-02 Thread kilon alios
When I was coding in Python I was using dictionaries a lot. I have made a tutorial about them here https://www.youtube.com/watch?v=MmTxJ_VBrIAlist=PLqbtQ7OkSta0ULYAd7Qdxof851ybh-_m_index=18 Esteban I have instictive dislike since databases that started 23 years ago when I was taught Dbase a

[Pharo-users] Tide installation

2014-09-02 Thread Bernat Romagosa
Hi list! I wanted to try out Tide, and I'm following the steps at: https://github.com/tide-framework/tide However, I can't get through the bower install step. Here's the output: bower amber#0efe3ad09 not-cached git:// github.com/amber-smalltalk/amber.git#0efe3ad09 bower amber#0efe3ad09

Re: [Pharo-users] Tide installation

2014-09-02 Thread Esteban Lorenzano
yeah, doc is bad… you need to install the newest bower, not the version specifies there. cheers, Esteban On 02 Sep 2014, at 17:05, Bernat Romagosa tibabenfortlapala...@gmail.com wrote: Hi list! I wanted to try out Tide, and I'm following the steps at:

Re: [Pharo-users] Tide installation

2014-09-02 Thread Bernat Romagosa
My bad! Forget my previous email! Sorry. 2014-09-02 18:16 GMT+02:00 Bernat Romagosa tibabenfortlapala...@gmail.com: Hola Esteban! Thanks, but it's still failing (although it progressed a little bit further): bower amber#0efe3ad09 not-cached git://

Re: [Pharo-users] Tide installation

2014-09-02 Thread Bernat Romagosa
Hey, it looks really nice. Is there any documentation around? Any getting started tutorial or bigger project I can take a look at? I don't exactly get how proxying works. I inspected the TDCounter instance in Pharo and I see it's persisting its value, but I don't get how's the widget getting to

Re: [Pharo-users] [Article] Reddit.st - In 10 Cool Pharo Classes

2014-09-02 Thread Sean P. DeNigris
jfabry wrote the tutorials are missing the basic explanation of the use of workspaces and browsers, and I don’t know where to get some documentation that treats just that. Any pointers to that kind of material? PBE? - Cheers, Sean -- View this message in context:

Re: [Pharo-users] best solution to store data

2014-09-02 Thread Stephan Eggermont
Roelof wrote I think I wil go for a Magma or a xml approach. http://wiki.squeak.org/squeak/2665 Magma might be overkill for this amount of data. Magma needs an upgrade for recent Pharo. Chris uses it on Squeak and found maintaining it on Pharo too much work. With XML you'll need to do more

Re: [Pharo-users] Tide installation

2014-09-02 Thread Tim Mackinnon
You can try watching the ESUG video from this year on: http://goo.gl/E1VF53 The presentation that Esteban gave was great - and it also inspired me to look at this some more too. Tim On 2 Sep 2014, at 17:46, Bernat Romagosa tibabenfortlapala...@gmail.com wrote: Hey, it looks really nice. Is

Re: [Pharo-users] Tide installation

2014-09-02 Thread Bernat Romagosa
Thanks Tim, I'll take a look at it. Unfortunately I couldn't attend this year :( In the meantime I've just found out where the counter entry point is defined: TDDispatcher setupDefault default := self new. default registerHandler: ((TDFileHandler path: 'tide') directoryPath: '.';

Re: [Pharo-users] Tide installation

2014-09-02 Thread Tim Mackinnon
You also know about the action and state pragma’s as well right? They were explained in the Esug session, and show up in the Counter code. Tim On 2 Sep 2014, at 18:03, Bernat Romagosa tibabenfortlapala...@gmail.com wrote: Thanks Tim, I'll take a look at it. Unfortunately I couldn't attend

[Pharo-users] Date text converter/formatter

2014-09-02 Thread Esteban A. Maringolo
Does exist an user friendly Date text converter and/or formatter package? I'd like to specify the format of certain dates, in the way you normally do this, it is... with a string such as 'dd/mm/' or 'dd/mmm/'. Date's #printOn:format: expects a different parameter, which seems really

Re: [Pharo-users] Date text converter/formatter

2014-09-02 Thread Sven Van Caekenberghe
Check out ZTimestampFormatter (load ConfigurationOfZTimestamp). From the class comment: === I am ZTimestampFormat, an implementation of a textual representation for a timestamp, date or time that can be used for formatting or parsing. You instanciate me by specifying the textual format by

Re: [Pharo-users] Date text converter/formatter

2014-09-02 Thread Esteban A. Maringolo
Thank you. It is certainly better than the base parser. But for formats I can't pass Date objects to #format:, I have to convert them to ZTimestamp before. Curiosity #1: Why did you use an example date string instead of using regular patterns like , dd, hh/hh24, etc? Regards! Esteban A.

Re: [Pharo-users] [Article] Reddit.st - In 10 Cool Pharo Classes

2014-09-02 Thread Johan Fabry
On Sep 2, 2014, at 2:03 PM, Sven Van Caekenberghe s...@stfx.eu wrote: On 02 Sep 2014, at 18:54, Sean P. DeNigris s...@clipperadams.com wrote: jfabry wrote the tutorials are missing the basic explanation of the use of workspaces and browsers, and I don’t know where to get some

Re: [Pharo-users] best solution to store data

2014-09-02 Thread Alain Rastoul
Forgort to say: It's great to see Pharo apps coming to business world ! keep on. I wish you succeed Alain

Re: [Pharo-users] Date text converter/formatter

2014-09-02 Thread Sean P. DeNigris
Esteban A. Maringolo wrote Curiosity #1: Why did you use an example date string instead of using regular patterns like , dd, hh/hh24, etc? I like the example concept because the user has less to remember (even if those date patterns are pretty well-known). Although, I noticed an example

[Pharo-users] Help to get the classes/methods that were updated after compilation.

2014-09-02 Thread Pernet Alexis
Hello! So, i need to know what classes/methods have been changed so that i can run the critic browser tests on the fly. I remember there's a way to do it, but not exactly how to use it. Can i have some help with that? (or a link to somewhere that is explained) Also, i need a way to gather

Re: [Pharo-users] Help to get the classes/methods that were updated after compilation.

2014-09-02 Thread Yuriy Tymchuk
Hi, for now I’ve started to develop a script which will generate new rules based on existing ones. I encountered some problems today, so in the end I think I’ll trash some of them for now. If you have some knowledge about environments it can be interesting, because I don’t see a reason for

Re: [Pharo-users] Help to get the classes/methods that were updated after compilation.

2014-09-02 Thread Camille Teruel
On 2 sept. 2014, at 23:29, Pernet Alexis alexis.per...@etudiant.univ-lille1.fr wrote: Hello! Hi Alexis, So, i need to know what classes/methods have been changed so that i can run the critic browser tests on the fly. I remember there's a way to do it, but not exactly how to use it. Can

Re: [Pharo-users] Date text converter/formatter

2014-09-02 Thread Sean P. DeNigris
Sven Van Caekenberghe-2 wrote Maybe you got the example and the input mixed up ? Oh yeah, I did, but even the example in that case is ambiguous, no? (ZTimestampFormat fromString: '02/03/01 (16:05:06)') parse: '10/10/10 (12:01:01)'. How does it decide whether it's American i.e.

Re: [Pharo-users] best solution to store data

2014-09-02 Thread Stuart Herring
On 2 September 2014 22:02, stepharo steph...@free.fr wrote: For such quantity of information my impression is that it is oversized. May be Chris Mueller will reply. Now Magma does not work in Pharo (or may be it does but I do not know). Magma actually scales down pretty well, and given how

[Pharo-users] Moose browsers: Updating an object value from a text pane and from an emergent window

2014-09-02 Thread Offray Vladimir Luna Cárdenas
Hi, I'm trying to restate my question to see if I have more luck with any answer this time. I'm making advances with an outliner like app for writing and now I can add nodes move them and store them in the really nice STON format. But because information on trees is not editable, I would