Re: Is this a violation of the EOF commandment?

2009-11-12 Thread Denis Frolov
Although this doesn't violate EOF commandments, I think it does violate Principle of least astonishment. Here is a discussion of this question on stackoverflow - http://stackoverflow.com/questions/433678/modifying-setter-argument-is-it-hack-or-not Personally, I'm with with the answer by Bill the L

Re: new EOObjectStoreCoordinator and closing database connection afterwards

2009-11-12 Thread Anjo Krank
Just to say it: I think 100 should not be used in production. Your mem usage will go through the roof and your performance way down. 5 or so should be more like it. Cheers, Anjo Am 13.11.2009 um 00:14 schrieb Kieran Kelleher: > (I also set the .DBMaxConnections = 100 since docs and source >

Re: new EOObjectStoreCoordinator and closing database connection afterwards

2009-11-12 Thread Anjo Krank
I think this was for FrontBase. Cheers, Anjo Am 13.11.2009 um 00:14 schrieb Kieran Kelleher: > This other related property did not work at all and while mysql indicated > that connections were actually made, EOF failed to return any data when the > readonly SELECTs were tried, so I would not

Re: Is this a violation of the EOF commandment?

2009-11-12 Thread Chuck Hill
On Nov 12, 2009, at 7:12 PM, Ramsey Lee Gurley wrote: On Nov 12, 2009, at 9:32 PM, Chuck Hill wrote: On Nov 12, 2009, at 6:13 PM, Ramsey Lee Gurley wrote: In this case though, he would be changing the value passed. It is my understanding from the javadocs that this is what validateKey meth

Re: snip-me.com

2009-11-12 Thread Ramsey Lee Gurley
I can't read a word of it, but looks like an awesome site (^_^) Nice work! Ramsey On Nov 12, 2009, at 2:19 PM, Ken ISHIMOTO wrote: > Hi, > > It's a long time to write here, but I am alive^^ > > I am using WO now for two years. Also 100% in my 3 Project's that I am > developing. I am reading

Re: Writing maintainable and extendable D2W rules

2009-11-12 Thread Ramsey Lee Gurley
On Nov 12, 2009, at 3:22 PM, Mark Wardle wrote: > Not to hijack this thread but as a related issue, I wish I could add > comments to my rule files +1 If I had the time, I'd patch it myself. I'm afraid I am more than a bit rusty with XCode and Obj-C. I'd probably do more harm than good (

Re: Is this a violation of the EOF commandment?

2009-11-12 Thread Ramsey Lee Gurley
On Nov 12, 2009, at 9:32 PM, Chuck Hill wrote: > > On Nov 12, 2009, at 6:13 PM, Ramsey Lee Gurley wrote: > >> In this case though, he would be changing the value passed. It is my >> understanding from the javadocs that this is what validateKey methods are >> for, explicitly. >> >> http://de

Re: Is this a violation of the EOF commandment?

2009-11-12 Thread Chuck Hill
On Nov 12, 2009, at 6:13 PM, Ramsey Lee Gurley wrote: In this case though, he would be changing the value passed. It is my understanding from the javadocs that this is what validateKey methods are for, explicitly. http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Ref

Re: Is this a violation of the EOF commandment?

2009-11-12 Thread Ramsey Lee Gurley
In this case though, he would be changing the value passed. It is my understanding from the javadocs that this is what validateKey methods are for, explicitly. http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/com/webobjects/foundation/NSValidation

Re: My Eclipse keeps running out of memory

2009-11-12 Thread Mike Schrag
that's "swt impl" not "set impl" btw ... iphone completed that incorrectly. ms On Nov 12, 2009, at 6:51 PM, Ricardo J. Parada wrote: > > Thanks. No need to spin my wheels then. > I'll wait until things improve in Eclipse 3.5.x. > > > > > On Nov 12, 2009, at 6:47 PM, msch...@mdimension.co

Re: My Eclipse keeps running out of memory

2009-11-12 Thread Ricardo J. Parada
Thanks. No need to spin my wheels then. I'll wait until things improve in Eclipse 3.5.x. On Nov 12, 2009, at 6:47 PM, msch...@mdimension.com wrote: > It's not better. The problems are in the cocoa set impl and aren't 32/64 bit > issues. > > Sent from my iPhone > > On Nov 12, 2009, at 6:

Re: My Eclipse keeps running out of memory

2009-11-12 Thread mschrag
It's not better. The problems are in the cocoa set impl and aren't 32/64 bit issues. Sent from my iPhone On Nov 12, 2009, at 6:23 PM, "Ricardo J. Parada" wrote: On Nov 12, 2009, at 6:17 PM, Travis Britt wrote: It looks like you're setting -Xms and -Xmx twice. The latter setting it to 40/

Re: Is this a violation of the EOF commandment?

2009-11-12 Thread Chuck Hill
Yes, as long as you return the coerced value, not call set... Making validate... change data is bad. On Nov 12, 2009, at 3:32 PM, Travis Britt wrote: validateValueForKey is safe for coercing user input tho right? tb On Nov 12, 2009, at 4:59 PM, David Avendasora wrote: Nope. This is exactly w

Re: Is this a violation of the EOF commandment?

2009-11-12 Thread Travis Britt
validateValueForKey is safe for coercing user input tho right? tb On Nov 12, 2009, at 4:59 PM, David Avendasora wrote: > Nope. This is exactly where you should put this type of thing. If you put > this in the validation methods you'd be asking for trouble. > > Dave > > On Nov 12, 2009, at 4:49

Re: My Eclipse keeps running out of memory

2009-11-12 Thread Ricardo J. Parada
On Nov 12, 2009, at 6:17 PM, Travis Britt wrote: > It looks like you're setting -Xms and -Xmx twice. The latter setting it to > 40/256. Try removing those. FWIW I run -Xms128m -Xmx512m without issue. (on > 3.5 cocoa 64) Yep, thanks... I noticed that too after sending out the email. So I have

Re: My Eclipse keeps running out of memory

2009-11-12 Thread Travis Britt
It looks like you're setting -Xms and -Xmx twice. The latter setting it to 40/256. Try removing those. FWIW I run -Xms128m -Xmx512m without issue. (on 3.5 cocoa 64) tb On Nov 12, 2009, at 4:30 PM, Ricardo J. Parada wrote: > $ cat ./Eclipse.app/Contents/MacOS/eclipse.ini > --launcher.library > .

Re: Writing maintainable and extendable D2W rules

2009-11-12 Thread Anjo Krank
> convention over configuration! You need to be totally careful with that! It's a special case of duck typing, so you need to be aware that eg "propertyKey like '*Name'" may be firstName or lastName, but also statusName which can be a selection (contrived example, but you should get the point)

Re: Writing maintainable and extendable D2W rules

2009-11-12 Thread Mark Wardle
I suspect my wish to comment my rule files can be traced back to using too many specific rules rather than going for convention over configuration! Best wishes, Mark On Thursday, November 12, 2009, Anjo Krank wrote: > I for my part try to: > > - use what is already in the model: > >  (smartPro

Re: Gianduia and WO

2009-11-12 Thread David Avendasora
I sent that email days ago. I guess it just cleared the Moderators. Better late than never. :-) Dave On Nov 12, 2009, at 4:59 PM, Lachlan Deck wrote: > Hey Dave, > > quite compelling... cheers. > > On 07/11/2009, at 12:50 AM, David Avendasora wrote: > >> On Nov 6, 2009, at 8:17 AM, Mike Sch

Re: Gianduia and WO

2009-11-12 Thread Lachlan Deck
Hey Dave, quite compelling... cheers. On 07/11/2009, at 12:50 AM, David Avendasora wrote: On Nov 6, 2009, at 8:17 AM, Mike Schrag wrote: So if we're stirring the pot here ... For me, it's not being cool in the browser, it's about Java apps looking terrible. You can immediately tell when y

Re: Is this a violation of the EOF commandment?

2009-11-12 Thread David Avendasora
Nope. This is exactly where you should put this type of thing. If you put this in the validation methods you'd be asking for trouble. Dave On Nov 12, 2009, at 4:49 PM, Ricardo J. Parada wrote: > > public void setCpt(String value) { > if (value != null) value = value.toUpperCase();

Re: Writing maintainable and extendable D2W rules

2009-11-12 Thread Anjo Krank
I for my part try to: - use what is already in the model: (smartProp.type="String" && smartProp.size> 50) => use largeString - put as much stuff in the model as possible, eg, I have entity.userInfo.SIZE=small|medium|large, which allows me to (smartRel.destEnt.userInfo.SIZE='large') => comp

Re: Writing maintainable and extendable D2W rules

2009-11-12 Thread Anjo Krank
Well.. RuleModeler *is* open Source... not a big deal to extend it. Cheers, Anjo Am 12.11.2009 um 21:22 schrieb Mark Wardle: > Not to hijack this thread but as a related issue, I wish I could add > comments to my rule files It would be so helpful while learning... > > Mark _

Re: new EOObjectStoreCoordinator and closing database connection afterwards

2009-11-12 Thread Mike Schrag
Yeah i was thinking we should should default this as well. I can't think of a reason, offhand, to not want this all the time. ms On Nov 12, 2009, at 4:42 PM, Anjo Krank wrote: > "Hacky"... what a strange word. > >> # er.extensions.ERXJDBCAdaptor.className=er.extensions.jdbc.ERXJDBCAdaptor >

Re: Writing maintainable and extendable D2W rules

2009-11-12 Thread Ravi Mendis
Hi, The answer is to use Convention over Configuration. I've been meaning to add this to the wiki for awhile - on how to do this with D2W. Here it is: http://wiki.objectstyle.org/confluence/display/WO/How+to+Write+D2W+Rules Thanks, Ravi On 13/11/2009, at 5:04 AM, webobjects-dev-requ...@list

Is this a violation of the EOF commandment?

2009-11-12 Thread Ricardo J. Parada
public void setCpt(String value) { if (value != null) value = value.toUpperCase(); super.setCpt(value); } P.S. I'm using eo-gap generation pattern. So this class extends the _ class generated by the _WonderEntity.java template.

Re: My Eclipse keeps running out of memory

2009-11-12 Thread Chuck Hill
On Nov 12, 2009, at 1:30 PM, Ricardo J. Parada wrote: Hi All, Eclipse seems to be running out of memory when I do certain things such as rebuilding, updating all projects using subclipse, etc. Does anybody see anything wrong or that I should change in my current eclipse.ini file displaye

Re: Postponed validation possible?

2009-11-12 Thread Anjo Krank
Gee, it's been 5 years since I last touched this... You need to override public void validationFailedWithException(Throwable e, Object value, String keyPath) { in your page and have code similar to the stuff in ERD2WPage, also you need to extend ERXGenRec and let it use ERXEntityClassDesc

Re: new EOObjectStoreCoordinator and closing database connection afterwards

2009-11-12 Thread Anjo Krank
"Hacky"... what a strange word. > # er.extensions.ERXJDBCAdaptor.className=er.extensions.jdbc.ERXJDBCAdaptor I think we can set this as the default further on. In particular as this also fixes the §$% SQL-Error-messes-up-DBCs issues. Cheers, Anjo Am 12.11.2009 um 20:10 schrieb Mike Schrag:

Re: unsupported class version error

2009-11-12 Thread David Avendasora
You know, I read it as WOBoozetrap and couldn't for the life of me figure out how to unjar Chuck. Dave On Nov 12, 2009, at 2:36 PM, Mike Schrag wrote: > Exactly how did i spell it "WOBoostrap" like 5 times? That's weird ... Did i > copy and paste it so i didn't have to keep typing it? This ema

My Eclipse keeps running out of memory

2009-11-12 Thread Ricardo J. Parada
Hi All, Eclipse seems to be running out of memory when I do certain things such as rebuilding, updating all projects using subclipse, etc. Does anybody see anything wrong or that I should change in my current eclipse.ini file displayed below? My computer has 4GB of ram. It amazes me that Ecl

Re: Writing maintainable and extendable D2W rules

2009-11-12 Thread Mark Wardle
Not to hijack this thread but as a related issue, I wish I could add comments to my rule files It would be so helpful while learning... Mark 2009/11/12 Szántai Károly : > Hi, > > What is the best practices for writing good, _maintainable_ and extendable > D2W rules? Especially in the left-han

Re: unsupported class version error

2009-11-12 Thread Mike Schrag
Exactly how did i spell it "WOBoostrap" like 5 times? That's weird ... Did i copy and paste it so i didn't have to keep typing it? This email is a mystery wrapped in an enigma (wrapped in a sausage, wrapped in a pancake). I'll attribute this to being sent at 11:36PM. Suffice to say, I meant WOB

Re: Difficulties running WebObjects on CentOS linux remote host (my website)

2009-11-12 Thread Chuck Hill
On Nov 12, 2009, at 11:32 AM, Chuck Hill wrote: On Nov 12, 2009, at 11:11 AM, Reyn Waldram wrote: Hi, I have a problem running webobjects applications on a CentOS server (My website). Everything seems to be configured according to this http://wiki.objectstyle.org/confluence/display/WO/Ins

Re: Difficulties running WebObjects on CentOS linux remote host (my website)

2009-11-12 Thread Chuck Hill
On Nov 12, 2009, at 11:11 AM, Reyn Waldram wrote: Hi, I have a problem running webobjects applications on a CentOS server (My website). Everything seems to be configured according to this http://wiki.objectstyle.org/confluence/display/WO/Installing+WO+5.3+or+WO+5.4+on+Linux Wiki. When I

Re: Difficulties running WebObjects on CentOS linux remote host (my website)

2009-11-12 Thread kalpana . vaka
Hi Reyn, It seems like PATH environment variable is not set to java bin directory. Please append /usr/local/java/bin to PATH environment variable before launching the application. You can use the following commands. PATH=$PATH:/usr/local/java/bin export PATH It will fix your problem. Regards,

Re: Difficulties running WebObjects on CentOS linux remote host (my website)

2009-11-12 Thread Mike Schrag
is java installed on the box? looks like it isn't .. or it's not in your (its) path, at least. ms On Nov 12, 2009, at 2:11 PM, Reyn Waldram wrote: > Hi, > > I have a problem running webobjects applications on a CentOS server (My > website). Everything seems to be configured according to this

Difficulties running WebObjects on CentOS linux remote host (my website)

2009-11-12 Thread Reyn Waldram
Hi, I have a problem running webobjects applications on a CentOS server (My website). Everything seems to be configured according to this http://wiki.objectstyle.org/confluence/display/WO/Installing+WO+5.3+or+WO+5.4+on+Linux Wiki. When I try to start the application I get this: [r...@srv1 Jav

Re: new EOObjectStoreCoordinator and closing database connection afterwards

2009-11-12 Thread Chuck Hill
On Nov 11, 2009, at 6:06 PM, Kieran Kelleher wrote: OK, if Jeff Schmitz is going to resurrect an old thread today, then so am I ;-) :-P OK, I use Wonder (like driving with a seatbelt on) ... anyhow, I use ERXObjectStoreCoordinator exclusively (even for the default OSC) and I can confirm

Re: Owns destination implies mandatory?

2009-11-12 Thread Chuck Hill
On Nov 11, 2009, at 4:58 PM, Ramsey Lee Gurley wrote: Whoops, I just noticed you started this thread (^_^) I was wanting to say one other thing in regards to this anyway. I'm not sure this is the 'advised' way to do things, so we might want to wait for Chuck's approval on this... (^_^) H

Re: Postponed validation possible?

2009-11-12 Thread Riccardo De Menna
> Oh, and the push changes thing appears to be controlled by a property. It > appears that if you want to turn it on you would put > > er.extensions.ERXValidationShouldPushChangesToObject=true > > In your properties file. It doesn't seem to work for me. Even though I turn it on, a model based

Re: RESTful EOAdaptor for key-value stores

2009-11-12 Thread Mike Schrag
The trickiest problem with these stores is relationships ... They typically have very strange (relative to relational) methods of modeling relationships, and many of them also allow dynamic schemas (and often per-instance), which makes it sort of weird to use as an eomodel backing store. Yo

Re: Firefox adding "Pr" to a hidden field?!

2009-11-12 Thread Miguel Arroz
Hi! Ok, I've found it! With the help and info of a few other people, I was pointed to . Essentially, the problem happens on Leopard, with Parental controls turned on, and Firefox. When Parental controls are on, the OS makes all t

RE: RESTful EOAdaptor for key-value stores

2009-11-12 Thread Beatty, Daniel D CIV NAVAIR, 474300D
Greetings James, I have looking into this issue as well. Turns out that Wonder supplies another RESTful framework close to the definition that Ruby on Rails uses. Mike presented on this subject at WOWODC 2009 west. From what I can tell, it also has the create, update and delete components of

RESTful EOAdaptor for key-value stores

2009-11-12 Thread Brook, James
I am thinking about making use of a distributed key-value store for something I am working on. Perhaps CouchDB, Reddit or Tokyo Cabinet. I am wondering what the best approach for talking to the database will be. I am thinking along the lines of an EOAdaptor. I see that Project Wonder provid

Re: Getting the max value for an entity's attribute

2009-11-12 Thread Stefan Klein
Hi, you can ask the EOModel: EOEntity entity = EOModelGroup.globalModelGroup().entityNamed(_Login._ENTITY_NAME); EOAttribute attribute = entity.anyAttributeNamed(_Login.WEBBROWSERINFO); int len = attribute.width(); Stefan Jeff Dunnett schrieb: Hello, I have an Entity

Writing maintainable and extendable D2W rules

2009-11-12 Thread Szántai Károly
Hi, What is the best practices for writing good, _maintainable_ and extendable D2W rules? Especially in the left-hand side. What do I mean? Let's see a very simple example. Which of the following is more maintainable, more extendable? This? 100: entity.name = 'Father' and task = 'edit' a

Getting the max value for an entity's attribute

2009-11-12 Thread Jeff Dunnett
Hello, I have an Entity named Login. It has an attribute named webBroswerInfo that is a string. Is there any way for me to determine in code he maximum size of that string? What I would like to do is have a validation method that checks the size of the string and then truncates the str

Re: UTF-8 forms and database, still some special characters get through as things like fi Why?

2009-11-12 Thread Pascal Robert
6) Localizable.strings should be encoded in UTF-16 And to be more specific, they should be in UTF-16LE ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscri

Re: UTF-8 forms and database, still some special characters get through as things like fi Why?

2009-11-12 Thread Kieran Kelleher
FWIW, I also use Unicode=true in the connection URL: jdbc:mysql://localhost/Example? capitalizeTypenames=true&useUnicode=true&characterEncoding=UTF-8 On Nov 12, 2009, at 8:11 AM, Ramsey Lee Gurley wrote: Hi Johan, Just a short checklist that I can think of... Don't forget: 1) The database n

Re: UTF-8 forms and database, still some special characters get through as things like fi Why?

2009-11-12 Thread David Griffith
Hi Johan, Interesting. I still haven't found a solution, been trying all sorts of things to try and determine exactly what is happening. Everything else displays fine on the page, but entering the € symbol on the form converts to strange characters when added to the display group that d

Re: File Upload Example or Project Import Problem

2009-11-12 Thread Ramsey Lee Gurley
If you're using Wonder, ERAttachment framework is the way to go. http://webobjects.mdimension.com/hudson/job/Wonder53/javadoc/er/attachment/package-summary.html Ramsey On Nov 12, 2009, at 4:47 AM, Chan Yeow Heong, Jerome wrote: > Hello! > > Is there an example on how to use file upload in WebO

UTF-8 forms and database, still some special characters get through as things like fi Why?

2009-11-12 Thread Johan Henselmans
Reading David Griffith's struggle with the euro sign, I thought checking myself if that worked in my test application. What I did was: go to a textfield in a form, then (on a mac) press shift and alt key, and go over the keyboard from 1 in the upper left to / in the lower right. Save the stu

Re: new EOObjectStoreCoordinator and closing database connection afterwards

2009-11-12 Thread Johan Henselmans
Op 12 nov 2009, om 03:06 heeft Kieran Kelleher het volgende geschreven: > OK, if Jeff Schmitz is going to resurrect an old thread today, then so am I > ;-) > > OK, I use Wonder (like driving with a seatbelt on) ... anyhow, I use > ERXObjectStoreCoordinator exclusively (even for the default OSC

File Upload Example or Project Import Problem

2009-11-12 Thread Chan Yeow Heong, Jerome
Hello! Is there an example on how to use file upload in WebObjects? Most of my google hits return the developer/examples/javawebobjects/ project. The problem is I can't seem to import the files into eclipse. I create a new project and drag the files from the finder and drop them into where they

Re: Uses for D2JC (was: Gianduia and WO)

2009-11-12 Thread Jean Pierre Malrieu
The second is a quick handling of mashups be they constructed by GWT or that French chocolate (Gianduia) that I have trouble pronouncing. I know that everything good and hard to pronouce tends to comes from France, but in that case, it's italian... like the Pizza framework, the Gorgonzola f