[Pharo-users] Class naming guide

2013-05-27 Thread Bahman Movaqar
Hi all, I noticed that since there is no `import' statement in Pharo, class names can easily conflict. What is the common naming strategy that you people use to avoid that? TIA, -- Bahman Movaqar (http://BahmanM.com) ERP Evaluation, Implementation, Deployment Consultant

Re: [Pharo-users] PettitParser approach help

2013-05-27 Thread Tudor Girba
Hi, I am not sure what you mean when you say an object that knows how to add to the result. Basically, you would need to build for each production the object and collect the meaningful ones in the outer scope. Here is something that would work for your example: a := 'AAA' asParser ==> [:token

Re: [Pharo-users] String replacement

2013-05-27 Thread S Krish
* Use the regex in Pharo too. Should be more than adequate for what you seek. * Create your string parsing code, in the lines of what Igor suggests, extending it for multiple line header fields * Use other libraries, like Zinc as Sven suggests, there are others similar in other packages, bit cont

[Pharo-users] PettitParser approach help

2013-05-27 Thread Juan Ignacio Vaccarezza
Hi all, First of all thanks for the amazing work and aswers to all. Having said that, the problem: I need to parse a log, a model that represents the lo is the following: ' AAA AAA BBB Line I don't care which can contain anything that is not AAA BBB or CCC CCC AAA CCC BBB Line I don't care which

Re: [Pharo-users] Gettext package for 2.0 - information not updated

2013-05-27 Thread Usman Bhatti
On Mon, May 27, 2013 at 6:53 PM, stephane ducasse wrote: > Usman there is a getText in the pharo repo on smalltalk but we have to > check its state. > It still has references to FileDirectory so I was thinking if its usable on 2.0. > > Stef > > On May 27, 2013, at 2:35 PM, Usman Bhatti wrote:

Re: [Pharo-users] String replacement

2013-05-27 Thread Sven Van Caekenberghe
Igor, I don't think that is what he wants. Thomas, You can use the build in ZnHeaders class from the Zinc HTTP Components library/framework: ZnHeaders readFrom: (String crlf join: 'Foo:1 Bar: foo- bar Final:true Foo: another-foo' lines) readStream. => a ZnHeaders('Bar'->'foo- bar' 'Final'->

Re: [Pharo-users] Gettext package for 2.0 - information not updated

2013-05-27 Thread stephane ducasse
Usman there is a getText in the pharo repo on smalltalk but we have to check its state. Stef On May 27, 2013, at 2:35 PM, Usman Bhatti wrote: > Hello, > > I am looking to see how localization works in Pharo. There is a pharo book > chapter that explains how to make it work but the chapter ex

Re: [Pharo-users] String replacement

2013-05-27 Thread Igor Stasenko
On 27 May 2013 18:42, Thomas Worthington wrote: > I've got a string which is the header section of an email. I have a regex > which will split a header field name from its data (ie, "From: > j...@null.com" becomes "From" and "j...@null.com") but some header lines are > long and have been continued

Re: [Pharo-users] ORM with PostgreSQL support

2013-05-27 Thread stephane ducasse
> Hi all, > > I'm completely new to Smalltalk world so please bear with me. Welcome :) do not hesitate to ask any questions and problems you face. learning alone smalltalk is not necessarily trivial. > Coming from the Java world, I'm used to using an ORM when developing a > database-backed app

[Pharo-users] String replacement

2013-05-27 Thread Thomas Worthington
I've got a string which is the header section of an email. I have a regex which will split a header field name from its data (ie, "From: j...@null.com" becomes "From" and "j...@null.com") but some header lines are long and have been continued by inserting a newline and one or more spaces. Before s

Re: [Pharo-users] How to install SandstoneDb

2013-05-27 Thread Bahman Movaqar
On 2013-05-27 17:42, Mariano Martinez Peck wrote: > Doesn't it have tests? I remember it did... Yes, it does. But as a Smalltalk newbie I have to figure out how to run them :-) > On Mon, May 27, 2013 at 10:11 AM, Bahman Movaqar > wrote: > > On 2013-05-27 16:16,

Re: [Pharo-users] How to install SandstoneDb

2013-05-27 Thread Mariano Martinez Peck
Doesn't it have tests? I remember it did... On Mon, May 27, 2013 at 10:11 AM, Bahman Movaqar wrote: > On 2013-05-27 16:16, Bahman Movaqar wrote: > > What is the correct way to install `SandstoneDb' in Pharo 2.0? With the > > approach Pharo book takes[1], Pharo complains about two other package

Re: [Pharo-users] How to install SandstoneDb

2013-05-27 Thread Bahman Movaqar
On 2013-05-27 16:16, Bahman Movaqar wrote: > What is the correct way to install `SandstoneDb' in Pharo 2.0? With the > approach Pharo book takes[1], Pharo complains about two other packages > to be installed as well: `DataStream' and `SmartRefStream'. > > TIA, > > [1] http://book.pharo-project.o

Re: [Pharo-users] How to install SandstoneDb

2013-05-27 Thread Bahman Movaqar
On 2013-05-27 16:48, p...@highoctane.be wrote: > There is sample for an alternative technique (the one between "save the > full image" and "sandstone". > > I kind of ported the example for my own use by using Fuel based saves. > > http://www.smalltalkhub.com/#!/~philippeback/DripfeedIt/packages/

[Pharo-users] Fwd: Gettext package for 2.0 - information not updated

2013-05-27 Thread Usman Bhatti
Hello, I am looking to see how localization works in Pharo. There is a pharo book chapter that explains how to make it work but the chapter explains the working on Pharo 1.4. http://book.pharo-project.org/book/LanguageAndLibraries/Localisation Recent changes in STHub allow to load the package in

Re: [Pharo-users] How to install SandstoneDb

2013-05-27 Thread p...@highoctane.be
There is sample for an alternative technique (the one between "save the full image" and "sandstone". I kind of ported the example for my own use by using Fuel based saves. http://www.smalltalkhub.com/#!/~philippeback/DripfeedIt/packages/DripfeedIt-Persistence You may need the DripfeedIt-Domain

Re: [Pharo-users] How to install SandstoneDb

2013-05-27 Thread Sven Van Caekenberghe
Hi, That is because `DataStream' and `SmartRefStream' are old serialisation technologies. There is a port of SandstoneDB using Fuel (and FileSystem), AFAIK. Look at the specific versions on SqueakSource. I can see that the original author made commits as well, which is very good. There is also h

[Pharo-users] How to install SandstoneDb

2013-05-27 Thread Bahman Movaqar
What is the correct way to install `SandstoneDb' in Pharo 2.0? With the approach Pharo book takes[1], Pharo complains about two other packages to be installed as well: `DataStream' and `SmartRefStream'. TIA, [1] http://book.pharo-project.org/book/PharoTools/SandstoneDB -- Bahman Movaqar (http:

Re: [Pharo-users] ORM with PostgreSQL support

2013-05-27 Thread Sven Van Caekenberghe
http://dbxtalk.smallworks.com.ar On 27 May 2013, at 11:08, "p...@highoctane.be" wrote: > http://book.pharo-project.org/book/PharoTools/Glorp/ > > > On Mon, May 27, 2013 at 10:44 AM, Bahman Movaqar wrote: > Hi all, > > I'm completely new to Smalltalk world so please bear with me. > > Coming

Re: [Pharo-users] ORM with PostgreSQL support

2013-05-27 Thread p...@highoctane.be
In fact, check http://www.slideshare.net/esug/dbxtalk and http://rmod.lille.inria.fr/archives/events/2012PharoConf/Slides/2012-PharoConf-DBXTalk.pdf Phil On Mon, May 27, 2013 at 10:44 AM, Bahman Movaqar wrote: > Hi all, > > I'm completely new to Smalltalk world so please bear with me. > > C

Re: [Pharo-users] ORM with PostgreSQL support

2013-05-27 Thread p...@highoctane.be
http://book.pharo-project.org/book/PharoTools/Glorp/ On Mon, May 27, 2013 at 10:44 AM, Bahman Movaqar wrote: > Hi all, > > I'm completely new to Smalltalk world so please bear with me. > > Coming from the Java world, I'm used to using an ORM when developing a > database-backed application. Wha

[Pharo-users] ORM with PostgreSQL support

2013-05-27 Thread Bahman Movaqar
Hi all, I'm completely new to Smalltalk world so please bear with me. Coming from the Java world, I'm used to using an ORM when developing a database-backed application. What are the options in the Smalltalk world? I'm specially looking for something that supports PostgreSQL as that's what I 99