Re: How to use noConflict to get JQuery and Ajax (Wonder) working together?
Hi David, Am 05.08.2010 um 01:10 schrieb David BON: I read on this link: Using jQuery with Other Libraries that I have to insert in the head section the noConflict() function: I've used a different approach mentioned on the same page once: Load jQuery before prototype and then wrap jquery code into jQuery(function($){...}); In the PageWrapper's head section: !-- load jquery -- wo:ERXJavaScript framework = app filename = jquery/ jquery-1.4.2.min.js / !-- Load prototype after jquery, this replaces the definition of the $ function with the prototype one -- wo:ERXJavaScript framework = Ajax filename = prototype.js / And then in the component: script type = text/javascript jQuery(function($){ // $ is jQuery's $ here, not Prototype's. Do some jQuery stuff here. }); /script This will probably only work, if the third party jQuery library you are using is built cleanly. In my case it was the date picker from jQuery UI and it worked fine. I'd still be careful when mixing different JS libraries though... Timo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
migrations and dropping sequences..
I am about to use migrations on an existing project.. I need to drop a table and its associated sequence. I don't see a choice for existingSequenceNamed() database.existingTableNamed(t_task_group).drop(); now for the sequence Do I need to resort to SQL in my migration? Ted ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
OGNL syntax in inline binding...
Hi List, What is the correct syntax to create an id in a woComponent binding using a template variable? In my pageWrapper.WO I set a component using the template variable: wo:Split3View id=goodMenuContentPane panelName=menu1Panel/ And in the Split3View component, I try to set the id of a div to menu1Panel_splitter with: wo:container elementName=div id= '~$^panelname'+_splitter class =splitter Obviously this synthax is wrong but I can't find the right way of writing this. Any help welcome. Regards. David B. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: OGNL syntax in inline binding...
Hi David, AFAIK caret notation won't work in WOGNL expressions, so you should define a getter in the component public String panelName() { return stringValueForBinding(panelName); } Then the following expression should work: id=~panelName+'_splitter' Timo Am 05.08.2010 um 14:31 schrieb David BON: wo:Split3View id=goodMenuContentPane panelName=menu1Panel/ And in the Split3View component, I try to set the id of a div to menu1Panel_splitter with: wo:container elementName=div id= '~$^panelname'+_splitter class =splitter Obviously this synthax is wrong but I can't find the right way of writing this. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: OGNL syntax in inline binding...
You need to define a getter to return the id of the component. What I normally do is I define an optional binding named id and in the component I define a private string variable to hold the value of the id such as private String _id; And in the getter I do something like this public String id() { if(_id == null) { _id = stringValueForBinding(id, context().elementId().replace('.', '_')); } return _id; } What it does if the id binding is provided by the user, it uses that, otherwise get an id from the context element and replace the dot with underscore to make it javascript compatible. Farrukh Sent from my iPad On 05-Aug-2010, at 3:31 PM, David BON bo...@mac.com wrote: Hi List, What is the correct syntax to create an id in a woComponent binding using a template variable? In my pageWrapper.WO I set a component using the template variable: wo:Split3View id=goodMenuContentPane panelName=menu1Panel/ And in the Split3View component, I try to set the id of a div to menu1Panel_splitter with: wo:container elementName=div id= '~$^panelname'+_splitter class =splitter Obviously this synthax is wrong but I can't find the right way of writing this. Any help welcome. Regards. David B. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com This email sent to farrukh.i...@fuegodigitalmedia.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
[ANN] Safari Extension 0.88
Title: Index (WebObjects 5.4.2 Reference) Hi,Now a new version of WebObject Safari Extension is available.What's new?1. A Safari Toolbar Button for show and hide the Toolbar. (Was a request feature)^^2. A WebObjects javadoc SearchThis Search doesn't use Google. It's actually called a WO Database that has all Commands index in an Database.Also Search for like "ObjectFrom" gives you: awakeObjectFromFetch(EOEnterpriseObject, EOEditingContext) - Method in class com.webobjects.eocontrol.EOClassDescription Overridden by subclasses to perform standard post fetch initialization for object in editingContext. awakeObjectFromFetch(EOEnterpriseObject, EOEditingContext) - Method in class com.webobjects.eodistribution.client.EODistributedClassDescription Called every time an object is fetched in an editing context. awakeObjectFromInsertion(EOEnterpriseObject, EOEditingContext) - Method in class com.webobjects.eoaccess.EOEntityClassDescription Propagates inserts for the newly-inserted Enterprise Object object in the editing context ec. awakeObjectFromInsertion(EOEnterpriseObject, EOEditingContext) - Method in class com.webobjects.eocontrol.EOClassDescription Assigns empty arrays to to many relationship properties of newly inserted enterprise objects. awakeObjectFromInsertion(EOEnterpriseObject, EOEditingContext) - Method in class com.webobjects.eodistribution.client.EODistributedClassDescription Automatically creates related objects for relationships which propagate primary keys. excludeObjectFromPropertyWithKey(Object, String) - Method in class com.webobjects.eocontrol.EOCustomObject Removes the object eo from the to-many relationship named key without affecting inverse relationships, by directly modifying the property storing the to-many relationship. objectFromPListFile(File) - Static method in class com.webobjects.directtoweb.Services objectFromPListPathURL(URL) - Static method in class com.webobjects.directtoweb.Services objectFromRawRow(EOEditingContext, String, NSDictionary) - Static method in class com.webobjects.eoaccess.EOUtilities Fetches the object corresponding to the specified raw row (using faultForRawRow). removeObjectFromBothSidesOfRelationshipWithKey(EORelationshipManipulation, String) - Method in class com.webobjects.eocontrol.EOCustomObject Removes object from the receiver's relationship identified by key, and also removes the receiver from objects's reciprocal relationship if there is one. removeObjectFromBothSidesOfRelationshipWithKey(EORelationshipManipulation, String) - Method in interface com.webobjects.eocontrol.EORelationshipManipulation Removes the enterprise object eo from the receiver's relationship, which is identified by key, and also removes the receiver from the enterprise object eo's inverse relationship if there is one. removeObjectFromPropertyWithKey(Object, String) - Method in class com.webobjects.eocontrol.EOCustomObject Removes the object eo from the to-many relationship named key without affecting inverse relationships. removeObjectFromPropertyWithKey(Object, String) - Method in interface com.webobjects.eocontrol.EORelationshipManipulation Removes the enterprise object eo from the receiver's relationship value(s), without modifying any inverse relationship. Other Features will come in the future. Thank youK's ROOM (ISHIMOTO Ken)[E-Mail] k...@ksroom.com[iChat:] ibase_...@mac.com[HP] http://www.ksroom.com/_This e-mail has not been scanned for viruses because it was written on an Mac,and there are NO Viruses on an Apple Computer.For further information visit http://www.apple.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: [ANN] Safari Extension 0.88
On 2010-08-05, at 8:02 AM, ISHIMOTO Ken wrote: Hi, Now a new version of WebObject Safari Extension is available. What's new? 1. A Safari Toolbar Button for show and hide the Toolbar. (Was a request feature)^^ Thanks Ken! I think that is much nicer. If anyone doesn't want the button, they can remove it by Customizing the Toolbar in Safari. David スクリーンショット(2010-08-05 16.56.02).png 2. A WebObjects javadoc Search スクリーンショット(2010-08-05 16.55.53).png This Search doesn't use Google. It's actually called a WO Database that has all Commands index in an Database. Also Search for like ObjectFrom gives you: awakeObjectFromFetch(EOEnterpriseObject, EOEditingContext) - Method in class com.webobjects.eocontrol.EOClassDescription Overridden by subclasses to perform standard post fetch initialization for object in editingContext. awakeObjectFromFetch(EOEnterpriseObject, EOEditingContext) - Method in class com.webobjects.eodistribution.client.EODistributedClassDescription Called every time an object is fetched in an editing context. awakeObjectFromInsertion(EOEnterpriseObject, EOEditingContext) - Method in class com.webobjects.eoaccess.EOEntityClassDescription Propagates inserts for the newly-inserted Enterprise Object object in the editing context ec. awakeObjectFromInsertion(EOEnterpriseObject, EOEditingContext) - Method in class com.webobjects.eocontrol.EOClassDescription Assigns empty arrays to to many relationship properties of newly inserted enterprise objects. awakeObjectFromInsertion(EOEnterpriseObject, EOEditingContext) - Method in class com.webobjects.eodistribution.client.EODistributedClassDescription Automatically creates related objects for relationships which propagate primary keys. excludeObjectFromPropertyWithKey(Object, String) - Method in class com.webobjects.eocontrol.EOCustomObject Removes the object eo from the to-many relationship named key without affecting inverse relationships, by directly modifying the property storing the to-many relationship. objectFromPListFile(File) - Static method in class com.webobjects.directtoweb.Services objectFromPListPathURL(URL) - Static method in class com.webobjects.directtoweb.Services objectFromRawRow(EOEditingContext, String, NSDictionary) - Static method in class com.webobjects.eoaccess.EOUtilities Fetches the object corresponding to the specified raw row (using faultForRawRow). removeObjectFromBothSidesOfRelationshipWithKey(EORelationshipManipulation, String) - Method in class com.webobjects.eocontrol.EOCustomObject Removes object from the receiver's relationship identified by key, and also removes the receiver from objects's reciprocal relationship if there is one. removeObjectFromBothSidesOfRelationshipWithKey(EORelationshipManipulation, String) - Method in interface com.webobjects.eocontrol.EORelationshipManipulation Removes the enterprise object eo from the receiver's relationship, which is identified by key, and also removes the receiver from the enterprise object eo's inverse relationship if there is one. removeObjectFromPropertyWithKey(Object, String) - Method in class com.webobjects.eocontrol.EOCustomObject Removes the object eo from the to-many relationship named key without affecting inverse relationships. removeObjectFromPropertyWithKey(Object, String) - Method in interface com.webobjects.eocontrol.EORelationshipManipulation Removes the enterprise object eo from the receiver's relationship value(s), without modifying any inverse relationship. Other Features will come in the future. Thank you K's ROOM (ISHIMOTO Ken) [E-Mail] k...@ksroom.com [iChat:] ibase_...@mac.com [HP] http://www.ksroom.com/ _ This e-mail has not been scanned for viruses because it was written on an Mac, and there are NO Viruses on an Apple Computer. For further information visit http://www.apple.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com This email sent to programming...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: two different databases at same time?
So, I'm starting to wonder if something broke/changed in Wonder. I've set up test projects that list two DBs in the Properties file for two models, but only one is ever added to the connection dictionary. Does there need to workable values for the default database in the eomodeld directory itself? This has worked for me before, with one framework model and one local project model. This time, i have two models in one framework. On Aug 4, 2010, at 7:26 PM, Joe Little jmlit...@gmail.com wrote: You gave me a good clue. I may be using the same damn ec On Aug 4, 2010, at 7:17 PM, Cheong Hee \(Gmail\) chn...@gmail.com wrote: When the question posted, I intended to find out if the different db works in the same ec. I have not thought more on the storing and fetching. I am not sure if this is right but merely bring it out for better understanding. Please point out whichever does not seem right: Said the Student table is in databaase A. The AdmitApplicant table is stored in database B. A row admitApplicantID is created in Student table and a relationship should be defined, said admitApplicant. The modelling cross different database should be fine. If I understand what David mentioned, the EOF fetch through relationship admitApplicant will fail. Therefore, I will assume that the fetch will have to be done by getting the admitApplicant key from Student, and then use the key to search the AdmitApplicant that is resided in database B. Good thing is both could be done in the same ec. Cheers Cheong Hee - Original Message - From: David LeBer dleber_wo...@codeferous.com To: Joe Little jmlit...@gmail.com Cc: Cheong Hee chn...@gmail.com; WO Dev Group webobjects-dev@lists.apple.com Sent: Thursday, August 05, 2010 2:36 AM Subject: Re: two different databases at same time? On 2010-08-04, at 2:26 PM, Joe Little wrote: On Wed, Aug 4, 2010 at 11:20 AM, David LeBer dleber_wo...@codeferous.com wrote: On 2010-08-04, at 2:12 PM, Joe Little wrote: Digging up an old thread. This is the first time I'm creating a multi-database relation. When my migrations kick off to generate my newer database that has a single relation to the old, it fails in spectacular ways. Specifically, it has this error: Caused by: java.lang.RuntimeException: Failed to execute 'ALTER TABLE STUDENT ADD CONSTRAINT STUDENT_admitApplicantID_ID_FK FOREIGN KEY (admitApplicantID) REFERENCES ADMIT_APPLICANT (ID) DEFERRABLE INITIALLY DEFERRED'. PSQLException: ERROR: relation admit_applicant does not exist student has a relation to admit_applicant, where student is db2.student and admit_applicant is db1.admit_applicant This is keyed off this migration line: studentTable.addForeignKey(admitApplicantID, ADMIT_APPLICANT, ID); Don't do that. EOF is fine with cross database relationships but your DB probably isn't. So it won't like you trying to create a foreign key constraint to a different database, so don't. So, what is the alternative? Would a join table work -- I think that still has foreign key constraints. Or is it simply stating a differ type of join (not inner)? I haven't done this before so my lack of clue is telling. Sorry, I wasn't clear. Model the relationship in the EOModel, create a vanilla row in the db that will act as a foreign key for the relationship, but don't tell the db that it is a foreign key. Let EOF manage the relationship for you. Am I just missing some clue that others already have? On Thu, Apr 1, 2010 at 8:17 PM, Cheong Hee chn...@gmail.com wrote: Apparently I have complicated it by thinking of using multi ec to handle respective database connections. Thanks for clarification.. Cheers Cheong Hee - Original Message - From: David LeBer dleber_wo...@codeferous.com To: Cheong Hee chn...@gmail.com Cc: WO Dev Group webobjects-dev@lists.apple.com Sent: Thursday, April 01, 2010 8:23 PM Subject: Re: two different databases at same time? On 2010-04-01, at 12:07 AM, Cheong Hee wrote: Is there any pointers or sample code how these could be done to initiate connection and save changes in respective ec? You don't need multiple ec's unless you want them. Other than that it's transparent. EOEditingContext ec = ERXEC.newEditingContext(); Person p = (Person)EOUtitlites.createAndInsertInstance(ec, Person.ENTITY_NAME); // Person entity persists in database A Horse h = (Horse)EOUtitlites.createAndInsertInstance(ec, Horse.ENTITY_NAME); // Horse entity persists in database B // make chagnes to h and p ec.saveChanges(); // p saved to database A, h saved to database B You can model cross database relationships as long as you don't try and create a fetch based on them. Cheers Cheong Hee - Original Message - From: Mark Ritchie mark.ritc...@mac.com To: James Cicenia ja...@jimijon.com Cc: WO Dev Group webobjects-dev@lists.apple.com Sent: Thursday, April
Re: OGNL syntax in inline binding...
Thanks Timo and Farrukh. I'll do that. Regards. David B. Le 5 août 10 à 14:15, Farrukh Ijaz a écrit : You need to define a getter to return the id of the component. What I normally do is I define an optional binding named id and in the component I define a private string variable to hold the value of the id such as private String _id; And in the getter I do something like this public String id() { if(_id == null) { _id = stringValueForBinding(id, context().elementId ().replace('.', '_')); } return _id; } What it does if the id binding is provided by the user, it uses that, otherwise get an id from the context element and replace the dot with underscore to make it javascript compatible. Farrukh Sent from my iPad On 05-Aug-2010, at 3:31 PM, David BON bo...@mac.com wrote: Hi List, What is the correct syntax to create an id in a woComponent binding using a template variable? In my pageWrapper.WO I set a component using the template variable: wo:Split3View id=goodMenuContentPane panelName=menu1Panel/ And in the Split3View component, I try to set the id of a div to menu1Panel_splitter with: wo:container elementName=div id= '~$^panelname'+_splitter class =splitter Obviously this synthax is wrong but I can't find the right way of writing this. Any help welcome. Regards. David B. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz% 40fuegodigitalmedia.com This email sent to farrukh.i...@fuegodigitalmedia.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: OGNL syntax in inline binding...
context().elementId().replace('.', '_') ERXWOContext.safeElementID(), btw ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Converting an oooold project to proper wolips directory layout..
Hello - I have a very old project I haven't touched in two years... at least. Well I decided it would be the one I move to a new deployment. Unfortunately after moving all the files around I now get the following error which I can't seem to fix: build.xml:40: The properties 'wo.system.frameworks' and 'wo.local.frameworks' must be set. Check that your ../wolips.properties is correct. All my other projects build/deploy just fine. What or where is the proper file I need to fix. Thanks James ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Converting an oooold project to proper wolips directory layout..
Hi James, what is your build.xml looking like on line 40? Have you compared your build.xml file with one from a newly created project? jw Am 05.08.2010 um 22:09 schrieb James Cicenia: Hello - I have a very old project I haven't touched in two years... at least. Well I decided it would be the one I move to a new deployment. Unfortunately after moving all the files around I now get the following error which I can't seem to fix: build.xml:40: The properties 'wo.system.frameworks' and 'wo.local.frameworks' must be set. Check that your ../wolips.properties is correct. All my other projects build/deploy just fine. What or where is the proper file I need to fix. Thanks James ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/jw%40oyosys.de This email sent to j...@oyosys.de smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Converting an oooold project to proper wolips directory layout..
Ahh good hint. I replaced my build.xml with a new one and it is giving me more sensical errors that I can fix. Thanks James On Aug 5, 2010, at 3:16 PM, Johann Werner wrote: Hi James, what is your build.xml looking like on line 40? Have you compared your build.xml file with one from a newly created project? jw Am 05.08.2010 um 22:09 schrieb James Cicenia: Hello - I have a very old project I haven't touched in two years... at least. Well I decided it would be the one I move to a new deployment. Unfortunately after moving all the files around I now get the following error which I can't seem to fix: build.xml:40: The properties 'wo.system.frameworks' and 'wo.local.frameworks' must be set. Check that your ../wolips.properties is correct. All my other projects build/deploy just fine. What or where is the proper file I need to fix. Thanks James ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/jw%40oyosys.de This email sent to j...@oyosys.de ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Suggestions for best deployment?
yeah, that looks about right. keep in mind my earlier comments about the full cost of a production environment: you got to factor in salaries to see the true value at a low-medium scale production environment. we think at larger scale the cost benefits are even easier to see, but YMMV. unfortunately i'm not going to be at WOWODC - whilst you are all lecturing out, i'll be surfing on the (hopefully) sunny cornwall coastline with my little nippers. however, a couple of our dev's are coming out to canada. they aren't too involved with the aws stuff, but might be able to answer some q's. i'm more than happy to keep answering q's on this list, and sharing stuff we've figured.. simon On 4 August 2010 21:43, Kieran Kelleher kieran_li...@mac.com wrote: So the AWS calculator indicates about $2200 a month for one Large Multi-AZ 100% RDS and 3 Extra Large 100% EC2 instances. Does that sound about right or would you expect it to be much less than that? Or, if you prefer you can enlighten me more over a beer at WOWODC - are you going to the upcoming WOWODC? Regards, Kieran On Aug 4, 2010, at 7:18 AM, Simon wrote: yes, we run our production servers 24/7. at the moment we run our staging and build servers 24/7 as well, but we are going to stop that shortly by writing a quartz job based on the ec2 api to boot and shutdown non-production instances automatically so they run 8am-8pm instead of 24/7 simon On 4 August 2010 10:12, Marius Soutier m.sout...@starhealthcare.infowrote: So are you using your EC2 instances 24/7? Do you use on-demand instances or reserved ones? EC2 seems ridiculously cheap as long as you start instances only when you need them, but for permanent usage I'm not sure yet. - Marius On 03.08.2010, at 14:28, Simon wrote: we run a db.m1.large instance and our db is around 20GB. previously it ran on an intel xserve with 8GB of Ram. performance wise db.m1.large is around where we were before, but we've not been scientific about this because we didn't have any performance issues before, and we don't have any now. we didn't move to RDS for performance. however, when staging the move we initially ran a db.m1.small instance and that was nowhere near powerful enough. when we boot copies of production for testing purposes we use db.m1.small, but we wouldn't use that in production. the real beauty of RDS with regard to performance is that is its literally a couple of clicks to upgrade. how long do you think it will take you to transition your DB to that a linux raid server ? we could double our compute power and ram in literally 3 clicks and a couple of minutes - and because we run with multi-avail zone it would automatically fail over to the slave whilst the upgrade took place. we don't use ssl. traffic is limited to our ec instances, and yes sensitive data is encrypted in the db anyway. we've just flown through PCIDSS compliance without a glitch. regarding multi-avail: my understanding is that they have made limited modifications to the 5.1 code base to support running mysql on a big scale in the cloud. i don't know if that includes fundamental changes to the master/slave mechanics, but the way multi-avail works feels like it's just plain old replication, but wrapped in some fancy automation. yeah, the docs do mention latency, but we've not noticed anything at all. the biggest mistake we made was attempting to run apps outside ec2 pointing at RDS. the latency in that set-up killed our apps. ymmv. simon On 2 August 2010 21:02, Kieran Kelleher kieran_li...@mac.com wrote: Sounds great Simon. I have a database of about 35GB of data running on an 8GB PowerPC G5 today in one of my active projects and we have preliminary plans under way to upgrade our DB server to a 32GB Linux RAID unit. What is the biggest RDS memory size instance that you have used, and what is the perception of performance gains, if any, over traditional self or colo hosting? I notice they support SSL connections also to MySQL. Do you use SSL between the EC2 app instance and the RDS instance - or is that overkill considering that I have sensitive data (credit card numbers, etc) encrypted in the database fields anyway? If you do use SSL connections between app and db, have you noticed much latency? You said you have availed of the different zone replication/failover feature - from reading the FAQs, it appears that this is different to traditional master-slave replication - are they executing the SQL in parallel on both the master and failover RDS instances to give true mirroring, or am I reading this wrong? Have you noticed latency impact due to this configuration (the online info suggests that there is some latency)? Regards, Kieran On Aug 2, 2010, at 1:38 PM, Simon wrote: How does session management work with the elastic load balancer? For example if you have 3 independent EC2 instances all running the same app? if you are not using https then amazon
Re: How to use noConflict to get JQuery and Ajax (Wonder) working together?
Just my 2 cts for the next newbie like me: I try to summarize the solution that work for me and seems quite easy (thanks to Faruk, Mike and Timo). In my javascript directory (under WebserverResources), I created a jquery-noconflict directory and a jquery directory. In this last one, I put the latest jquery source files I need. For every source file using jquery (e.g. splitter.js) I create in that directory a file with the same name with the following lines: ;jQuery.noConflict()(function() { include('../jquery/splitter.js'); }); In the head section of my pageWrapper.wo I put: wo:ERXJavaScript framework = app filename = JavaScript/jquery/ jquery.js / wo:ERXJavaScript framework = app filename = JavaScript/jquery- noconflict/splitter.js / (NB: It loads before any other library like prototype.js that comes with Ajax) And in the component where I need to use jquery I use the explicit call to jquery like in: // Use jQuery via jQuery(...) jQuery().ready(function() { // Vertical splitter. Set min/max/starting sizes for the left pane. jQuery(#Mysplitter'').splitter({ splitVertical: true, outline: true, sizeLeft: true, anchorToWindow: true, accessKey: I }); Work like a charm for me. Regards. David B. Le 5 août 10 à 08:56, Timo Hoepfner a écrit : Hi David, Am 05.08.2010 um 01:10 schrieb David BON: I read on this link: Using jQuery with Other Libraries that I have to insert in the head section the noConflict() function: I've used a different approach mentioned on the same page once: Load jQuery before prototype and then wrap jquery code into jQuery (function($){...}); In the PageWrapper's head section: !-- load jquery -- wo:ERXJavaScript framework = app filename = jquery/ jquery-1.4.2.min.js / !-- Load prototype after jquery, this replaces the definition of the $ function with the prototype one -- wo:ERXJavaScript framework = Ajax filename = prototype.js / And then in the component: script type = text/javascript jQuery(function($){ // $ is jQuery's $ here, not Prototype's. Do some jQuery stuff here. }); /script This will probably only work, if the third party jQuery library you are using is built cleanly. In my case it was the date picker from jQuery UI and it worked fine. I'd still be careful when mixing different JS libraries though... Timo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: How to use noConflict to get JQuery and Ajax (Wonder) working together?
In fact, javascript isn't php :-( ! The include() function does not exist... I have to find or create an equivalent to the include function, except if someone else see has already gone this way... Sorry. Le 5 août 10 à 22:41, David BON a écrit : Just my 2 cts for the next newbie like me: I try to summarize the solution that work for me and seems quite easy (thanks to Faruk, Mike and Timo). In my javascript directory (under WebserverResources), I created a jquery-noconflict directory and a jquery directory. In this last one, I put the latest jquery source files I need. For every source file using jquery (e.g. splitter.js) I create in that directory a file with the same name with the following lines: ;jQuery.noConflict()(function() { include('../jquery/splitter.js'); }); In the head section of my pageWrapper.wo I put: wo:ERXJavaScript framework = app filename = JavaScript/jquery/ jquery.js / wo:ERXJavaScript framework = app filename = JavaScript/jquery- noconflict/splitter.js / (NB: It loads before any other library like prototype.js that comes with Ajax) And in the component where I need to use jquery I use the explicit call to jquery like in: // Use jQuery via jQuery(...) jQuery().ready(function() { // Vertical splitter. Set min/max/starting sizes for the left pane. jQuery(#Mysplitter'').splitter({ splitVertical: true, outline: true, sizeLeft: true, anchorToWindow: true, accessKey: I }); Work like a charm for me. Regards. David B. Le 5 août 10 à 08:56, Timo Hoepfner a écrit : Hi David, Am 05.08.2010 um 01:10 schrieb David BON: I read on this link: Using jQuery with Other Libraries that I have to insert in the head section the noConflict() function: I've used a different approach mentioned on the same page once: Load jQuery before prototype and then wrap jquery code into jQuery (function($){...}); In the PageWrapper's head section: !-- load jquery -- wo:ERXJavaScript framework = app filename = jquery/ jquery-1.4.2.min.js / !-- Load prototype after jquery, this replaces the definition of the $ function with the prototype one -- wo:ERXJavaScript framework = Ajax filename = prototype.js / And then in the component: script type = text/javascript jQuery(function($){ // $ is jQuery's $ here, not Prototype's. Do some jQuery stuff here. }); /script This will probably only work, if the third party jQuery library you are using is built cleanly. In my case it was the date picker from jQuery UI and it worked fine. I'd still be careful when mixing different JS libraries though... Timo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/bon_d%40mac.com This email sent to bo...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: two different databases at same time?
Will there make any difference if these connection dictionaries is defined in respective model db url? - Original Message - From: Joe Little jmlit...@gmail.com To: Joe Little jmlit...@gmail.com Cc: Cheong Hee (Gmail) chn...@gmail.com; David LeBer dleber_wo...@codeferous.com; WO Dev Group webobjects-dev@lists.apple.com Sent: Friday, August 06, 2010 2:17 AM Subject: Re: two different databases at same time? So, I'm starting to wonder if something broke/changed in Wonder. I've set up test projects that list two DBs in the Properties file for two models, but only one is ever added to the connection dictionary. Does there need to workable values for the default database in the eomodeld directory itself? This has worked for me before, with one framework model and one local project model. This time, i have two models in one framework. On Aug 4, 2010, at 7:26 PM, Joe Little jmlit...@gmail.com wrote: You gave me a good clue. I may be using the same damn ec On Aug 4, 2010, at 7:17 PM, Cheong Hee \(Gmail\) chn...@gmail.com wrote: When the question posted, I intended to find out if the different db works in the same ec. I have not thought more on the storing and fetching. I am not sure if this is right but merely bring it out for better understanding. Please point out whichever does not seem right: Said the Student table is in databaase A. The AdmitApplicant table is stored in database B. A row admitApplicantID is created in Student table and a relationship should be defined, said admitApplicant. The modelling cross different database should be fine. If I understand what David mentioned, the EOF fetch through relationship admitApplicant will fail. Therefore, I will assume that the fetch will have to be done by getting the admitApplicant key from Student, and then use the key to search the AdmitApplicant that is resided in database B. Good thing is both could be done in the same ec. Cheers Cheong Hee - Original Message - From: David LeBer dleber_wo...@codeferous.com To: Joe Little jmlit...@gmail.com Cc: Cheong Hee chn...@gmail.com; WO Dev Group webobjects-dev@lists.apple.com Sent: Thursday, August 05, 2010 2:36 AM Subject: Re: two different databases at same time? On 2010-08-04, at 2:26 PM, Joe Little wrote: On Wed, Aug 4, 2010 at 11:20 AM, David LeBer dleber_wo...@codeferous.com wrote: On 2010-08-04, at 2:12 PM, Joe Little wrote: Digging up an old thread. This is the first time I'm creating a multi-database relation. When my migrations kick off to generate my newer database that has a single relation to the old, it fails in spectacular ways. Specifically, it has this error: Caused by: java.lang.RuntimeException: Failed to execute 'ALTER TABLE STUDENT ADD CONSTRAINT STUDENT_admitApplicantID_ID_FK FOREIGN KEY (admitApplicantID) REFERENCES ADMIT_APPLICANT (ID) DEFERRABLE INITIALLY DEFERRED'. PSQLException: ERROR: relation admit_applicant does not exist student has a relation to admit_applicant, where student is db2.student and admit_applicant is db1.admit_applicant This is keyed off this migration line: studentTable.addForeignKey(admitApplicantID, ADMIT_APPLICANT, ID); Don't do that. EOF is fine with cross database relationships but your DB probably isn't. So it won't like you trying to create a foreign key constraint to a different database, so don't. So, what is the alternative? Would a join table work -- I think that still has foreign key constraints. Or is it simply stating a differ type of join (not inner)? I haven't done this before so my lack of clue is telling. Sorry, I wasn't clear. Model the relationship in the EOModel, create a vanilla row in the db that will act as a foreign key for the relationship, but don't tell the db that it is a foreign key. Let EOF manage the relationship for you. Am I just missing some clue that others already have? On Thu, Apr 1, 2010 at 8:17 PM, Cheong Hee chn...@gmail.com wrote: Apparently I have complicated it by thinking of using multi ec to handle respective database connections. Thanks for clarification.. Cheers Cheong Hee - Original Message - From: David LeBer dleber_wo...@codeferous.com To: Cheong Hee chn...@gmail.com Cc: WO Dev Group webobjects-dev@lists.apple.com Sent: Thursday, April 01, 2010 8:23 PM Subject: Re: two different databases at same time? On 2010-04-01, at 12:07 AM, Cheong Hee wrote: Is there any pointers or sample code how these could be done to initiate connection and save changes in respective ec? You don't need multiple ec's unless you want them. Other than that it's transparent. EOEditingContext ec = ERXEC.newEditingContext(); Person p = (Person)EOUtitlites.createAndInsertInstance(ec, Person.ENTITY_NAME); // Person entity persists in database A Horse h = (Horse)EOUtitlites.createAndInsertInstance(ec, Horse.ENTITY_NAME); // Horse entity persists in database B // make chagnes to h and p ec.saveChanges(); // p saved to database