Re: Screencast about Localization from WOWODC09 missing
I run into this all the time, converting video from different formats to something that works for my kids iPod/iPads. I downloaded the the mov file and converted it with /Applications/HandBrakeCLI -i WOWODC09W-Localization.mov -o WOWODC09W-Localization.mp4 --preset=Universal It took about 15 minutes on my old CoreDuo mac mini and would be simple to script it to convert everything if thats what you want. The output is available at https://www.dropbox.com/s/q9cj4a66ndntje2/WOWODC09W-Localization.mp4 David On Apr 1, 2014, at 2:43 PM, Jesse Tayler jtay...@oeinc.commailto:jtay...@oeinc.com wrote: Ramsey! Didn’t know you knew words like didley-hole! On Apr 1, 2014, at 4:12 PM, Ramsey Gurley rgur...@smarthealth.commailto:rgur...@smarthealth.com wrote: This is how Apple says to QuickTime Devs: http://i.imgur.com/6g3Zq.jpg I’m pretty sure they’ll get about as much advanced notice as WO devs did. On Apr 1, 2014, at 1:03 PM, Jesse Tayler jtay...@oeinc.commailto:jtay...@oeinc.com wrote: what? I’m sure there’s more to that right? QT is highly important, so I’d imagine the SDK to be a big deal, maybe there’s some business reason or just changing APIs for future work? keep us posted... On Mar 31, 2014, at 1:36 PM, David Holt programming...@mac.commailto:programming...@mac.com wrote: Screen Shot 2014-03-31 at 10.35.02 AM.png On 2014-03-28, at 1:38 PM, Ramsey Gurley rgur...@smarthealth.commailto:rgur...@smarthealth.com wrote: Are you actually serious? http://imgur.com/LH4jRHJ Yes. You are. I’m at a loss for words. On Mar 28, 2014, at 12:34 PM, Christoph Wick wi...@me.commailto:wi...@me.com wrote: Hi List, I'd liked to watch the Screencast about Localization from WOWODC09. It is linked on http://wiki.wocommunity.org/display/WEB/Screencasts?src=search, but the linked file (http://www.wocommunity.org/podcasts/wowodc/west09/WOWODCW09-Localization.mov) does not exist. Can anyone fix this? Pascal? Or has anyone a local copy that I could use? C.U.CW P.S.: The one on iTunes says This video requires Quicktime which is not supported by this version of iTunes ;-( -- What are the three enemies of a programmer? Sunlight, oxygen, and the appalling roar of the birds. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.commailto:Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.commailto:rgur...@smarthealth.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.commailto:Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com This email sent to programming...@mac.commailto:programming...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.commailto:Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com This email sent to jtay...@oeinc.commailto:jtay...@oeinc.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.commailto:Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/daspinall%40global-village.net This email sent to daspin...@global-village.net ___ 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WOWODC 2014: more details
I'm In. If we have to have a quorum or Davids then I want to be there!!! --- David Aspinall Senior IT Consultant Global Village Consulting Inc. E: daspin...@global-village.net P: 1-587-439-7442 Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! Global Village Consulting ranks 44th in 25th annual PROFIT 500 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine! On 2013-10-10, at 1:02 PM, prob...@macti.ca wrote: Yup, we need at least 3 Davids, or else it's boring. More Davids please! On Oct 10, 2013, at 1:17 AM, David Avendasora webobje...@avendasora.com wrote: It all sounds great to me! I'm just glad to be able to attend again! Now, Chuck, stop that. You knew I was going to be back. You should have prepared. Dave On Sep 26, 2013, at 11:29 PM, David Holt programming...@mac.com wrote: Definitely interested. Sent from my iPad On Sep 26, 2013, at 6:25 PM, Pascal Robert prob...@macti.ca wrote: Hi guys, The ticket for WOWODC 2014 will be $580. As usual, we will have special price for groups. Tickets will be on sale before December. Ticket will include a dinner on Sunday April 13th, at this sugar shack: http://www.sucreriedelamontagne.com/ Daniel, the event manager, knows the owners, so we will probably have some extras. And I'm thinking of doing a A day with a sysadmin session+labs. It would be practical stuff, like how to deploy from Git (with hooks), from Jenkins, how to use and write Nagios plugins, how to use Selenium WebDriver, cluster with Linux, heartbeat, DRDB and HAProxy, managing your logs with logstash. That would concurrent to the other presentations. Anyone have any interest in 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: https://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: https://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com This email sent to webobje...@avendasora.com — WebObjects - so easy that even Dave Avendasora can do it!™ — David Avendasora Senior Software Abuser Nekesto, Inc. ___ 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: https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com This email sent to kenli...@anderhome.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: https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca This email sent to prob...@macti.ca ___ 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: https://lists.apple.com/mailman/options/webobjects-dev/daspinall%40global-village.net This email sent to daspin...@global-village.net ___ 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERXPartialEntity doesn't return correct values for classPropertyNames method
Hi ken. Thanks nice work. I'm at a conference right now but maybe I can help get in faster when I get back. Sent from my mobile, where brevity is beautiful. On 2013-05-28, at 3:34 AM, ISHIMOTO Ken k...@ksroom.com wrote: Hi Paul, Hi David, Fixed Project WOdka already pushed and fixed. I made a push request for Project wonder maybe in the few months you will get it. Ken On 2013/05/25, at 11:28, Paul Yu p...@mac.com wrote: The little o is for optional Sent from my iPad On May 24, 2013, at 10:38 PM, David Holt programming...@mac.com wrote: Class properties are determined by the diamonds. Sent from my iPad On 2013-05-24, at 6:13 PM, Jesse Tayler jtay...@oeinc.com wrote: you wanted Person.class).classPropertyNames() or Partial_ExployeePerson ? also, the little o there next to the lock? that says I'm a class property, no? so, I'd expect to see departmentId visible on that screen I think, just not sure if you are asking the right class for the right thing or if I misunderstand completely. On May 24, 2013, at 7:29 PM, David Holt programming...@mac.com wrote: Just a quick follow-up: As an example the output for the ERXPartialsExampleApp in Wonder is included below: log.info(Class properties for ERXPartialEntity + EOUtilities.entityForClass(ERXEC.newEditingContext(), Person.class).classPropertyNames()); May 24 16:24:50 ERXPartialsExampleApp[53778] INFO er.extensions.appserver.ERXApplication - Class properties for ERXPartialEntity (firstName, genderType, lastName, lastLoginDate, password, username, departmentID, employeeNumber, employeeTypeID, salary, department, employeeType) ! Clearly the departmentID and employeeTypeID should not be in this list of classPropertyNames: Screen Shot 2013-05-24 at 4.27.10 PM.png On 2013-05-24, at 4:20 PM, David Holt programming...@mac.com wrote: Hi all (and especially David Aspinall or Paul Hoadly), I've just discovered that when you call classPropertyNames() on an Entity that has a partial associated with it, the base classPropertyNames are returned correctly, but ALL of the properties are returned for the partial class. This applies to both attributes and relationships. Does anyone know why that might be? Here is what I used to test it in my Application: log.info(Class properties for ERXPartialEntity + EOUtilities.entityForClass(ERXEC.newEditingContext(), Person.class).classPropertyNames()); Thanks, David ___ 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: https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com This email sent to jtay...@oeinc.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: https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com This email sent to p...@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: https://lists.apple.com/mailman/options/webobjects-dev/ken%40ksroom.com This email sent to k...@ksroom.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: https://lists.apple.com/mailman/options/webobjects-dev/daspinall%40global-village.net This email sent to daspin...@global-village.net ___ 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WOCommunity Association is now a non-profit corporation
This link may have some boiler plate content that we can use. http://bigonbloor.com/by-law/BIG%20Bylaw%201-%20Final.doc David Sent from my mobile, where brevity is beautiful. On 2013-01-30, at 11:03 AM, Pascal Robert prob...@macti.ca wrote: FYI, I got confirmation that the WOCommunity Association is now a non-profit corporation! We still have to open a bank account and write the by-laws, but at least the first part is done. If someone wants to contribute or comment the by-laws, I wrote a draft in the wiki: http://wiki.wocommunity.org/display/WOCOM/Organization+Incorporation Please be aware that we defined two classes of members: « The corporation is authorized to establish Class A members and Class B members as follows : (1) The Class A members shall be entitled to receive notice of and to attend all meetings of the members of the Corporation and each Class A member shall have one (1) vote at each such meeting, except for meetings at which only members of another class are entitled to vote separately as a class. (2) Except as otherwise provided by the Canada Not-for-Profit Corporations Act, S.C. 2009, c.23 the Class B members shall not be entitled to receive notice of, attend or vote at meetings of the members of the Corporation. » The by-laws needs to define who is going in each class. ___ 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: https://lists.apple.com/mailman/options/webobjects-dev/daspinall%40global-village.net This email sent to daspin...@global-village.net ___ 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Partials and prototype boolean
Can you document the problem you are having with the migration? From what you have said so far the only thing you have changed is to make the column a varchar(10) instead of varchar(5). Also what do you perceive to be the migration difference between a root entity vs a partial? Can you post your migration classes? On 2012-11-27, at 5:39 PM, programming...@mac.com wrote: That's as far as I've gotten looking at this, but if this is the issue then it has nothing to do with ERXPartials, the prototype produced the same code for the main model. It's definitely a problem with Partials. As Paul says changing the prototype to varchar10 or intBoolean seems to allow the migration to happen. -- David Aspinall Senior IT Consultant Global Village Consulting Inc. E: daspin...@global-village.net P: 1-647-927-7442 Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine! ___ 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WOWODC 2013: call for presenters
Hi Pascal, Most of june works for me, except the last weekend (june 28-July1) as I have a wedding to attend. I would also be interested in doing one or possibly 2 speed round presentations (15 minute talk, 15 minute lab?) rather than one big presentation. (I have a big thing at the end of May for the eHealth conference .. so something has to give a little) David On 2012-10-20, at 6:52 PM, Pascal Robert prob...@macti.ca wrote: I'm going to meet an event planner this Wednesday and I want to have an idea of when WOWODC would be next year. And the decision will be made on when we can get as much presenters that we can. So if you want to present at WOWODC 2013, please tell me when you are available between June 24 and August 24. You don't have to be 100% certain that you will present, and no need to decide on a subject for now. Thanks. ___ 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: https://lists.apple.com/mailman/options/webobjects-dev/daspinall%40global-village.net This email sent to daspin...@global-village.net ___ 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: [MEET] Toronto Cocoaheads / tacow - July 10
Hi David, looks like I will miss yet another meeting. Sorry. Tammy and I are going to NoTL for wine tours and relaxation. Have a great Tacow David On 2012-07-03, at 5:38 PM, David LeBer wrote: tacow's next meeting is scheduled for 6:30 PM on Tuesday, July 10, 2012 in meeting room 303 of Metro Hall. Derek Longmuir will be discussing continuous deployment for iOS using Jenkins. Additional details can be found at http://goo.gl/fjieX. All are welcome, and we look forward to seeing you there. -- David LeBer Codeferous Software ___ 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: https://lists.apple.com/mailman/options/webobjects-dev/daspinall%40global-village.net This email sent to daspin...@global-village.net ___ 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WO HL7
I've been doing some HL7 work on iOS and although I have nothing specific for WebObjects, here are some comments and resources you might find helpful. - welcome to ACRONYM HELL If you thought programmers were bad for their own terminology, you have not seen anything. Health Informatics (HI) is absolutely awash in crazy terminology. You may want to start a personal reference doc to stick definitions and notes. - the HL7 v3 standard is a large rambling mess (IMO) and many node definitions can conflict with others within the same document! For example, it is possible to have a node like person defined several times within the same document, but with different structure. Or it can have the same concept like person but create nodes named person1 person2 ... person12 each can have different structures. - HL7 v2 is NOT XML. This is important because the majority of existing systems are v2. Even the newer variations like CDA or XDS often have HL7 v2 content embedded as values. Here is an example rim:ExternalIdentifier id=urn:uuid:9df60c92-2d25-49dd-a1d0-595bd002e37e lid=urn:uuid:9df60c92-2d25-49dd-a1d0-595bd002e37e registryObject=urn:uuid:5aa6ac81-cd1f-4725-8cf5-14bb740ef2e3 identificationScheme=urn:uuid:58a6f841-87b3-4a3e-92fd-a8ffeff98427 value=10001^^^amp;1.2.8.26224.2012.4.5amp;ISO rim:Name rim:LocalizedString value=XDSDocumentEntry.patientId/ /rim:Name rim:VersionInfo versionName=1.1/ /rim:ExternalIdentifier - you will also need to understand the code systems and terminology. For example patient1 classCode=PAT id root=2.16.840.1.112882.2.122.1.1.5 extension=5298/ this is the patient identifier. The root attribute identified the source and the extension identifies the value. You need to be able to distinguish between a root that represents a Drivers License, vs a Hospital vs an Insurance Carrier vs a Provincial Health Service or this relatedDocument typeCode=APND parentDocument id extension=C7F36C19-64F0-4a8d-859B-2404F07A2434 root=2.16.840.1.113883.3.933/ code code=34140-4 codeSystem=2.16.840.1.113883.6.1/ So what is this related document? Thats easy :) 2.16.840.1.113883.6.1 = LOINC (Logical Observation Identifier Names and Code) 34140-4 = Referral No problem .. right. Its the referral request. My suggestion is to stay VERY tightly focused on only the messages you must support, and initially only on the PORTION of the message that you need. Useful links HL7.org You might as well be confused by the vary source of the crazy :) http://www.hl7.org/index.cfm Terminology References SNOMED-CT http://en.wikipedia.org/wiki/SNOMED_CT http://www.nlm.nih.gov/research/umls/Snomed/snomed_main.html http://www.ihtsdo.org/snomed-ct/ Mohawk College http://www.mohawkcollege.ca/about/research/marc.html MARC-HI Everest Framework (Java reference framework HL7 v3) http://te.marc-hi.ca/view.aspx?project=af66d54ed41e4ac18b44d0d3ca6cabf0 The OpenHealth Foundation http://www.openehealth.org/display/OEHF/Foundation Java IPF (Integration Platform Framework) https://github.com/krasserm/ipf Learn the RIM (Reference Information Model) The RIM is the base building block for all the subsequent XML structures. It's nasty :) http://motorcycleguy.blogspot.ca/2010/04/quick-overview-of-ebxml-rim-objects-in.html https://tl7.intelliware.ca/public/messages/dataTypes/index.faces HAPI (v2 HL7 only) Opensource HL7 parser and Library, but as far as I know it is HL7 v2 ONLY http://hl7api.sourceforge.net/ Test Level 7 This is the only test site for HL7 v3 I have found. It is not cheap but the initial client registry search is free. Sorry, client registry may not be correct terminology, the correct name is Find candidates query and the HL7 message is PRPA_IN101103CA and the response is PRPA_IN101104CA https://tl7.intelliware.ca/index.faces http://i-proving.com/2010/12/13/hl7-message-processing-statistics/ Enjoy David --- David Aspinall Senior IT Consultant Global Village Consulting Inc. E: daspin...@global-village.net P: 1-647-927-7442 Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine! On 2012-06-07, at 9:35 AM, Paul Yu wrote: If HL7 is a markup language like HTML, XML, and others, than I would think using WO to create HL7 could just be putting the markup in the WO .html file and the generating the response as NSData and send it. Parsing HL7 would be you would take their HL7 java library and link it in and parse the HL7 documents that you receive
Re: [Wonder-disc] WebObjects + ERRest + iOS + CoreData (Yes another post on this)
Hi Jesse, Chuck's right, he is trying to kill me. I have been planning updates and demonstration code since last year, but paying customers come first. I am supposed to present a practical implementation at WOWODC which is only ... a month and a bit away. I am both freaking out and totally screwed. If you have specific questions you can send them to the list and I will attempt to address them. David On 2012-05-23, at 1:04 PM, Jesse Tayler wrote: I'd like to ask whats the status of ersync? I see a great video, but the github is a year without updates and there is a placeholder for the iOS companion? Also, it is mentioned at video time, last year, that it was not production ready. So, is it now? Is there an iOS demo app where we can see how the transport works in practice on the client? Id love to add this to my Errest based app but I'm uncertain how to setup my app and client Can anyone help with that? Sent from my iPad On May 23, 2012, at 3:12 AM, Rich richardwjo...@gmail.com wrote: Hey Riccardo, I've used pretty much the same setup of WO / ERRest backend presenting JSON for iOS consumers (iPad iPhone) with CoreData for model / persistence, for a contract I completed fairly recently. Works very well. I extensivly used the RESTKit framework on the the iOS platform, which has some nice 'automatic' CoreData syncing feature. The framework documentation or RESTkit is sketchy there are still some bugs in it which can be a big of a pain, but pretty stable and has good features. The ERRest stuff is great and I found it very easy to work out from the sample code. Just make sure you design you EO Model CoreData model so they have the same entity names attributes in both. That way sync is a lot easier as you don't have to re-map your JSON payload (which is a headache, trust me). Rich On 23/05/2012, at 2:26 AM, Riccardo De Menna deme...@rdm-web.com wrote: Hi all, I'm writing an iOS app that will fetch data from an ERRest-based-WOApp. I want it to use CoreData on the iOS side and be as integrated as I can get it. The whole ERRest thing seems really built to that end and the CoreData stack is obviously an EO spin-off, but I did not find around some design guidelines to help me identify a correct course of action. In particular the very interesting WWDC2010 Session 117 - Building a Server-driven User Experience, clearly identifies key points to follow, but I was not able to find any sample code to show the details of that design. I'm talking mostly about the iOS side as WO+ERRest basically do everything for me on the server side. Anyway, I'm building something based on those slides… so… On my WO side: I have an ERRest based app with a custom authentication system that allows for a login/logout/check action. These are simple DirectActions but with correct HTTP response codes, and they return the sessionID on success. The client app should store it in a cookie or provide it on any URL request, it doesn't matter. Various entity controllers that provide data in json/plist/xml/whatever with the added option to request only certain keys on show to minimize traffic if needed (my showFilter is limited to certain values server-side but the remaining ones can be on-demand so that, if I only need Person.firstName for 9000 records, I don't have to fetch unnecessary data. On my iOS side I have: A category that extends NSManagedObjectContext and provides: - (NSManagedObject *)localInstanceOfObject:(NSManagedObject *)iObject; A category that extends NSEntityDescription and provides: - (NSString *)route; - (BOOL)allowsFetch; - (BOOL)allowsInsert; - (BOOL)allowsUpdate; - (BOOL)allowsDelete; A category that extends NSManagedObject and provides: - (NSManagedObject *)localInstanceInContext:(NSManagedObjectContext *)context; - (NSDictionary *)toDictionary; A category that extends NSFetchRequest and provides: Incomplete… but would simply add a method that includes on optional endpoint for the fetch, as well as the qualifiers and sortorderings I want to pass to the server. A subclass of NSManagedObjectContext with overrides for: - (NSArray *)executeFetchRequest:(NSFetchRequest *)request error:(NSError **)error; - (BOOL)save:(NSError **)error; A subclass of NSManagedObject that provides a: @property (nonatomic, strong) NSString *endpoint; A model that mimics the EO-counterpart, only with wy less attributes. A subclass of my custom NSManagedObject for each entity This, I hope, is roughly what that session was suggesting and I can see it would work nicely. I'm trying to figure out how to implement the background operations that are to be performed by the two NSManagedObjectContext overrides. My idea is that the app just fetches on my CoreData stack and gets whatever data we already have persistently saved previously. But the fetch also
Re: [MEET] Toronto Cocoaheads / tacow - May 8
Rats, sorry I'll be missing this one. Have a great meet up David On 2012-05-02, at 12:53 PM, Karl Moskowski wrote: tacow's next meeting is scheduled for 6:30 PM on Tuesday, May 8, 2012 in room 304 of Metro Hall. @AshFurrow, lead iOS developer at 500px, will give a presentation on advanced scroll-view techniques. Details, directions, etc. at http://goo.gl/DXkMZ. All are welcome, and we look forward to seeing you there. Karl Moskowski kolpa...@voodooergonomics.com Voodoo Ergonomics Inc. http://voodooergonomics.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: https://lists.apple.com/mailman/options/webobjects-dev/daspinall%40global-village.net This email sent to daspin...@global-village.net ___ 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: HTTP cache and ERRest
Why, yes, yes they do. Although it looks better on the iPad :) iPhone http://itunes.apple.com/ca/app/cisco-webex-meeting-center/id298844386?mt=8 iPadhttp://itunes.apple.com/ca/app/webex-for-ipad/id364031971?mt=8 Fun, right? David On 2011-12-15, at 11:58 AM, Dan Beatty wrote: Greetings Pascal, Which time zone is that? Right now I taking what webex presentations I can from home. It kind of keeps me out of trouble. Do they make a WebEx for the iPhone? Anywho, I would like to attend and hope know which time and place to be their. V/R, Daniel Beatty Computer Scientist, Detonation Sciences Branch Code 474300D 1 Administration Circle M/S 1109 China Lake, CA 93555 daniel.bea...@navy.mil (LandLine) (760)939-7097 (iPhone) (806)438-6620 On 12/15/11 8:24 AM, Pascal Robert prob...@macti.ca wrote: Ok, so the French version of this presentation will be next week, so the one tomorrow (Friday) will be in English instead. Presentation will be at 1:30pm and you can register on WebEx: https://wocommunity.webex.com I will show what I have done in SimpleBlog to cache the posts, redirect URL to new one when the title change and returning a 410 status code when a post is deleted. If you saw the ERSync presentation at WOWODC, it's the same concept but in a different context. ___ 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/daniel.beatty%40navy.mil This email sent to daniel.bea...@navy.mil ___ 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/daspinall%40global-village.net This email sent to daspin...@global-village.net ___ 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: ERSync?
Hi Daniel, I think depending on your shoe box this could work. Let me rephrase where I see this going. Option 1: if your shoebox document is a custom binary store, XML document or anything of that nature, then this will NOT work. Sync'ing something like that is really hard. You might find success using a modified 'rsync' protocol, but even then there are going to be risks. Oh another good example of this would be git, svn or cvs. They only really work well with simple text documents, therare not that I know of that will merge (for example) a word document. They basically treat them as large binary blobs. Option 2: Each shoebox is a self contained core data database. This could work. The idea behind ERSync was to leverage the change notification system to create very small delta packages between the EOF legacy and the mobile core data system. Hope that helps, David On 2011-11-20, at 9:49 PM, Daniel Beatty wrote: Greetings Amy, Dave, Chuck, anyone, Does any one have any idea if ERSync could be expanded to handle synchronization to include document based applications? The shoe-box applications seems to be the current model for both the iOS and Mac. I was struck by a sort of revelation this weekend to construct a kind of shoe-box ERSync Cocoa app with scriptable capabilities that supplies subclass of NSAtomicStore. The premise is that the shoe-box app would serve kind of the same function as the ERSync framework does in the WO app except for the Cocoa app. The NSAtomicStore subclass would enable the user to call up the document (or shoe-box app) via their own app. The ERSync Cocoa shoe-box app would give the user a sort of user level admin capability over all ERSync enabled apps on their Mac (kind of a D2W for the shoe-box). The gotcha came when I considered the possibility of a document-based app using the NSAtomicStore subclass. Any ideas? I will try at first under the presumption that document-based apps don't exists. I am not sure how long that fairy will stay away for, I forgot to give him Guinness. V/R, Dan Beatty, ABD Ph.D. Student Texas Tech University dan.bea...@mac.com http://web.me.com/danielbeatty/My_Home_Page/Welcome.html (806)438-6620 On Jul 24, 2011, at 12:35 PM, Amy Worrall wrote: Great, thanks. I'll check it out. Amy On Sun, Jul 24, 2011 at 8:05 PM, Pascal Robert prob...@macti.ca wrote: Le 2011-07-24 à 12:02, Amy Worrall a écrit : Hi all! Could anyone point me to where I can find ERSync? I've heard about it (i.e. that it's good for writing backends for iPhone apps), but I don't know anything more about it than that. https://github.com/davidAtGVC/RemoteSync/tree/master/WebObjects/ERSync ___ 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/danielbeatty%40mac.com This email sent to danielbea...@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/daspinall%40global-village.net This email sent to daspin...@global-village.net -- David Aspinall Senior IT Consultant Global Village Consulting Inc. E: daspin...@global-village.net P: 1-647-927-7442 ___ 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: Anyone have a phone number formatter?
Message formatting is hard with Exchange WebMail (sucks) but here is a method we use to strip out the garbage and then submit the different parsed values for area code, number and extension. /** assumes the phone number is (111) 222- extension 444 which we reduce to 111222444 and then split up */ public void setFullPhoneNumer( String value ) { if ( value != null ) { /** remove everything except numbers */ String reduced = value.replaceAll(^1|\\D+, Const.EMPTY_STRING); int len = reduced.length(); if ( len = 10 ) { validateTakeValueForKeyPath( reduced.substring( 0, 3 ), phoneAreaCode ); validateTakeValueForKeyPath( reduced.replaceAll(^(\\d{3})(\\d{3})(\\d{4})(\\d*), $2$3), phoneNumber); // this will insert a dash in the phone number, depends how you want to store the value // reduced.replaceAll(^(\\d{3})(\\d{3})(\\d{4})(\\d*), $2-$3), phoneNumber); if ( len 10 ) validateTakeValueForKeyPath( reduced.substring( 10 ), phoneExtension ); } else throw new NSValidation.ValidationException( Invalid phone number ); } } -Original Message- From: [EMAIL PROTECTED] on behalf of Chuck Hill Sent: Thu 3/29/2007 8:09 PM To: Kevin Windham Cc: WebObjects Dev Apple Subject: Re: Anyone have a phone number formatter? If you just want output formatting (and not input parsing), it can be as simple as this: public StringBuffer format(Object object, StringBuffer stringBuffer, FieldPosition fieldPosition) { if (object instanceof Number) { stringBuffer.append(((Number)object).intValue() == 2 ? Y : ); } return stringBuffer; } /** * @throw RuntimeException parseObject is not implemented */ public Object parseObject(String arg0, ParsePosition arg1) { throw new RuntimeException(parseObject is not implemented); } This is an output formatter that takes a number formats this to Y if the value is 2 and to an empty string for all other values. Don't ask, legacy data. Chuck On Mar 29, 2007, at 4:58 PM, Kevin Windham wrote: I am looking for info on how to create a formatter for phone numbers. I have surmised that I am supposed to use java.text.format in some fashion, but I am having trouble finding any examples. Does anyone have any examples they can share, or can point me to some better info than the java docs on the class. Thanks, Kevin ___ 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/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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/daspinall%40ticoon.com This email sent to [EMAIL PROTECTED] ___ 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 archive@mail-archive.com
Re: ERXPatcher and component templates
Turns out to not be such a big deal. I added the following: === to my Properties === ticoon.replacement.classes = (PageWrapper, ticoon.web.LoginPanel) === to my Application class === public void initializeTicoon(NSNotification event) { // startup NSArray classesToReplace = PropertyTool.ArrayValue ( ticoon.replacement.classes ); if ( ArrayTool.IsEmptyArray( classesToReplace ) == false) { /** install patch components that must be 100% API compatible with each other */ String baseclasspath = ticoon.clients. + sponsorShortName() + . + applicationName(); for ( int i = 0; i classesToReplace.count(); i++ ) { String item = (String)classesToReplace.objectAtIndex(i); String itemName = item; /* class to replace may be 'ticoon.report.Something' we want to make that into 'ticoon.clients.sponsor.AdvisorSomething' not 'ticoon.clients.sponsor.Advisorticoon.report.Something' */ int lastdot = item.lastIndexOf(.); if ( lastdot 0 ) itemName = item.substring(lastdot+1); String fullpath = baseclasspath + itemName; try { // example ticoon.clients.bank.AdministratorMain Class replacement = Class.forName( fullpath ); com.webobjects.foundation._NSUtilities.setClassForName( replacement, item); } catch ( ClassNotFoundException e ) { /* not found, no replacement, use the default */ Log.Error( Failed to replace + item + with + fullpath ); } } } } /** override parent implementation to redirect component definitions to patched class names. Superclass will use the full class name, and strip off the package name when resolving the component name */ public WOComponentDefinition _componentDefinition(String s, NSArray nsarray) { if ( StringTool.IsBlankContent(s) == false ) { Class pageClass = com.webobjects.foundation._NSUtilities.classWithName( s ); if ( pageClass != null ) { /** this ensures that if we patch PageWrapper with ticoon.clients.sponsor.AdvisorPageWrapper that the AdvisorPageWrapper.wo is parsed instead of the original */ s = pageClass.getName(); } } return super._componentDefinition(s, nsarray); } ___ 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 archive@mail-archive.com
ERXPatcher and component templates
Many of you have probably encountered a situation where different clients like minor changes to a shipping application's user interface. As we strive to hold onto a common codebase for 90% of our product we start to see pages with large numbers of WOConditionals checking for one client code vs another. I am investigating use of a feature like ERXPatcher to switch two components at runtime in a simple way. For example if component looks like: == HTML == ... webobject name=wrap...content.../webobject == WOD == wrap: PageWrapper { api = value; } Now assuming all my PageWrapper classes are API compatible, I would like to switch ticoon.client.name.AjaxPageWrapper for the generic version. After examining the the Wonder code I have been able to replace the classes (trivial), but the template parser seems to insist on parsing the original PageWrapper.wo instead of the AjaxPageWrapper.wo I assume the parser is not using the _NSUtilities.classForName() method and simply using the name as defined in the WOD. I was able to intercept this process for Page level components by overriding WOApplication with public void initializeTicoon(NSNotification event) { // startup NSArray classesToReplace = PropertyTool.ArrayValue ( ticoon.replacement.classes ); if ( ArrayTool.IsEmptyArray( classesToReplace ) == false) { /** install patch components that must be 100% API compatible with each other */ String baseclasspath = ticoon.clients. + sponsorShortName() + . + applicationName(); for ( int i = 0; i classesToReplace.count(); i++ ) { String item = (String)classesToReplace.objectAtIndex(i); String fullpath = baseclasspath + item; try { // example ticoon.clients.bank.AdministratorMain Class replacement = Class.forName( fullpath ); com.webobjects.foundation._NSUtilities.setClassForName( replacement, item); } catch ( ClassNotFoundException e ) { /* not found, no replacement, use the default */ Log.Error( Failed to replace + item + with + fullpath ); } } } } public WOComponent pageWithName(String s, WOContext wocontext) { if ( s == null ) s = Main; // pass the alternate component name to super Class pageClass = com.webobjects.foundation._NSUtilities.classWithName( s ); if ( pageClass != null ) s = pageClass.getName(); return super.pageWithName( s, wocontext); } So I can replace even the Main page with a custom ticoon.client.name.CustomMain and the application will parse CustomMain.wo My next step will be to implement my own template parser and try replacing the component name during the parsing process, I just was hoping someone had done it already. Or is there a hook somewhere I can override and get the app to parse AjaxPageWrapper.wo instead of PageWrapper.wo? David ___ 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 archive@mail-archive.com
Re: ERXPatcher and component templates
Naturally, and we do this all over the place, however this is not a simple linear problem. Its not as if client A gets a traditional left nav, plus a custom search field div over the header image, plus wants a Calendar on the right column and wants Account list table with a column for last contact date instead of last updated date. Oh, and client B wants the same but with an EGO image on the right and a task list and not the custom search box, and client c wants a JavaScript drop down menu, no left nav, so the center content can increase 20% and we need 3 additional columns on the Account list What I am thinking is we do one 'default' layout with standard design, but optionally we could dynamically replace key components without the ever growing Switch/Case, if condition ... logic. We already define the menu in an XML document that the app reads at runtime. So we can place different component items in for pages and tab's within pages. But where one component is heavily customized, this 'might' be a better way. My task to to investigate and compare to the more traditional switch/case/ifconditions. I think this 'could' be a useful concept (like 'patching') and may be a valuable addition to the options available for controlling customization. David On 12-Feb-07, at 11:28 AM, Guido Neitzer wrote: On 12.02.2007, at 08:45, David Aspinall wrote: I am investigating use of a feature like ERXPatcher to switch two components at runtime in a simple way. For example if component looks like: Hmmm. For my point of view: the easiest way might be a WOSwitchComponent and a way of defining which component is used for which client. I do this a lot with a CMS system I'm currently building. cug ___ 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 archive@mail-archive.com
Problem with Subversion and Xcode line encodings
I have been having a very strange problem with Subversion and Xcode. I am trying to convert from CVS to SVN but when I commit a file that I have edited in Xcode i get ~/trunk/Core/src/ticoon $ svn commit crypto Adding crypto Adding crypto/HexTool.java Transmitting file data .svn: Commit failed (details follow): svn: Unrecognized line ending style svn: Your commit message was left in a temporary file: svn:'/Users/daspinall/trunk/Core/src/ticoon/svn-commit.tmp' The repository is a linux (Debian) server. The cvs2svn worked fine. I can edit and commit to this repo, but if I add a new file it fails. If I query the properties ticoon $ svn proplist -v crypto/HexTool.java Properties on 'crypto/HexTool.java': svn:executable : * svn:eol-style : native svn:keywords=Date Author Id Revision ticoon $ I have tried setting the svn:eol-style to CR, LF, I have tried changing the line encoding in XCode, all to no success. Please don't say _use eclipse_, I am looking at that also, but the developers have projects and comfort levels with XCode, so I think a migration for both CVS and XCode at once is too much. Subversion is the same on both the Macs and the Linux server $ svn --version svn, version 1.4.2 (r22196) XCode is version 2.4 I don't know what else could be the problem. Help? David --- [EMAIL PROTECTED] (416) 513-9524 x263 Ticoon Technology Inc. 56 The Esplanade, Suite 404, Toronto, ON, M5E 1A7 ___ 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 archive@mail-archive.com
Re: [partially solved] problem with XSLT Trasformations - was problem generating PDF using FOP
I have experienced this also, the problem may be that you must open the File stream with an encoding. I use the methods below and just call OutputStreamWriter osw = CreateOutputWriter( new FileOutputStream (path), UTF-8 ); xmlserializer.writeXML( xmlRoot, osw ); osw.close(); /** takes a stream and wraps it for an encoded writer. Defaults to UTF-8 */ public OutputStreamWriter CreateOutputWriter( OutputStream stream, String encoding ) throws UnsupportedEncodingException { String enc = (encoding == null ? UTF-8 : encoding); return new OutputStreamWriter(stream, enc); } /** takes a stream and wraps it for an encoded reader. Defaults to UTF-8 */ public InputStreamReader CreateInputReader( InputStream stream, String encoding ) throws UnsupportedEncodingException { String enc = (encoding == null ? UTF-8 : encoding); return new InputStreamReader(stream, enc); } On 13-Oct-06, at 9:37 AM, Amedeo Mantica wrote: Hello, I'm sorry, but after a lot of investigations I (with your help) discovered that the problem resides in the data source. Data source in Openbase UTF-8 encoded. In web / html all accented works ok. serializing in XML than saving to a file seem to be ok, but is bad. there fore XML - PDF is also bad. now I have another, but may be small, problem... the carriage return is written out in XML as \u000d... so I have pdf with written \u000d instead of correct carriage return. Diluizione: Prodotto pronto all'usoch\u000d/ch ch\u000d/ch Conservazione: Il mat after SilmpleTrasformation: Diluizione: Prodotto pronto all'uso\u000d \u000d Conservazione: Il mat Regards Amedeo ___ 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/daspinall% 40ticoon.com This email sent to [EMAIL PROTECTED] ___ 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 archive@mail-archive.com
Re: DB2 and WO
Yes, we are using it with one client. All we wrote was the plugin , then we use the drivers from IBM. If you are interested I will look into publishing the classes. On 6-Sep-06, at 5:51 PM, [EMAIL PROTECTED] wrote: Hello -- does anybody use DB2 with WO5? I can't see any adaptors out there? Has anybody had a crack at writing a JDBC adaptor for it? cheers. ___ Andrew Lindesay www.lindesay.co.nz ___ 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/daspinall% 40ticoon.com This email sent to [EMAIL PROTECTED] ___ 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 archive@mail-archive.com
Re: simple java question with WOComponent sub-classes
Make an interface called SecureConponentInterface (or whatever) and then public class SecureComponent extends WOComponent implements SecureConponentInterface { public class ReviewTrans extends WOLongResponsePage implements SecureConponentInterface { The sucks part is having to duplicate the implementation (assuming there is implementation in SecureComponent). You could handle this by using a utility class with static methods to perform those methods, just remember to pass the context and the request. Just a thought. David On 6-Jul-06, at 3:50 PM, Chuck Hill wrote: On Jul 6, 2006, at 11:18 AM, Baiss Eric Magnusson wrote: I have a class public class SecureComponent extends WOComponent { I have public class ReviewTrans extends SecureComponent { I want it to be public class ReviewTrans extends SecureComponent { where SecureComponent is a sub-class of WOLongResponsePage, not WOComponent, but only for this one class. NOTE: WOLongResponsePage is a sub-class of WOComponent. All I can see to do is duplicate the code in SecureComponent and create another class SecureComponentLong. That is the expedient way as Java does not support multiple inheritance. The only other option that I can think of is AOP (http://www.stepwise.com/Articles/AspectJ/). But that is overkill for the small amount of duplication you are talking about. Chuck -- Coming sometime... - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.http://www.global-village.net/products/ practical_webobjects ___ 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/daspinall% 40ticoon.com This email sent to [EMAIL PROTECTED] ___ 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 archive@mail-archive.com
Re: Unable to find entity for object
This line also looks wrong to me. Why are you trying to change the Entity Name? newLog.setEntityName(TestEntity); Is this an attribute on your table? It overrides the default EOEnterpriseObject method 'entityName' which I think EOF will be needing. I would recommend removing this column/attribute and trying again. I would also change the attributeName while your at it. Maybe 'ObjectName' and 'ColumnName' would be better? David --- Ticoon Technology Inc. 56 The Esplanade, Suite 404, Toronto, ON, M5E 1A7 On 29-Jun-06, at 12:43 PM, Chuck Hill wrote: Hi Owen, On Jun 29, 2006, at 12:09 AM, Owen McKerrow wrote: Im getting a strange error where WO claims to not know what the entity for an object is. Here's the code : EOEditingContext ec = new EOEditingContext(); AuditLog newLog = (AuditLog) EOUtilities.createAndInsertInstance (ec,AuditLog); newLog.setPerson((Person)EOUtilities.localInstanceOfObject(ec, ((Session)session()).currentPerson())); newLog.setEntityName(TestEntity); newLog.setIpAddress(((Session)session()).getIPAddress(context ().request())); newLog.setAttributeName(TestAttribute); newLog.setNewValue(NewValue); newLog.setOldValue(OldValue); ec.saveChanges(); Here's the error : Error: java.lang.IllegalStateException: Unable to find entity for object {values = {attributeName = TestAttribute; newValue = NewValue; person = ; message = ; when = 2006-06-29 07:01:34 Etc/GMT; ipAddress = 130.130.72.73; entityName = TestEntity; oldValue = OldValue; }; this = ; } The this = ; looks spectacularly weird. Was that a cut and paste problem? What this message usually means is that the entity / model did not get loaded. This can be the result of: 1. App referencing code in the framework from someplace other than the .framework 2. EOModel not getting built into the framework (e.g. a project config or build problem) 3. Corrupt .eomodeld directory, index.emodel, or entity.plist file. Check that EOModeler can open the model in the .framework that your app is referencing. Chuck Reason: Unable to find entity for object {values = {attributeName = TestAttribute; newValue = NewValue; person = Researcher 36083b (com.webobjects.eoaccess.EOAccessFaultHandler _EOIntegralKeyGlobalID[Researcher (java.math.BigDecimal)1541]); message = com.webobjects.foundation.NSKeyValueCoding$Null; when = 2006-06-29 07:01:34 Etc/GMT; ipAddress = 130.130.72.73; entityName = TestEntity; oldValue = OldValue; }; this = AuditLog f4b610 EOTemporaryGlobalID: 0 0 -126 -126 72 73 0 0 -49 100 1 0 0 0 1 12 30 -105 -72 30 25 96 -16 -12; } Stack trace: File Line# Method Package EODatabaseContext.java 4624 _entityForObject com.webobjects.eoaccess EODatabaseContext.java 4528 _buildPrimaryKeyGeneratorListForEditingContext com.webobjects.eoaccess EODatabaseContext.java 5843 prepareForSaveWithCoordinator com.webobjects.eoaccess EOObjectStoreCoordinator.java 409 saveChangesInEditingContext com.webobjects.eocontrol EOEditingContext.java 3226 saveChanges com.webobjects.eocontrol attributesManagement.java 51 init attributesManagement NativeConstructorAccessorImpl.java NA newInstance0 sun.reflect NativeConstructorAccessorImpl.java 39 newInstance sun.reflect DelegatingConstructorAccessorImpl.java 27 newInstance sun.reflect Constructor.java 274 newInstance java.lang.reflect AuditLog is an entity in the model file ( both are part of a framework ). AuditLog extends EOGenericRecord. Any ideas on why this is happening and how to fix it ? OS X 10.4.7 WO 5.3 xCode 2.3 Owen McKerrow WebMaster, emlab Ph : +61 02 4221 5517 http://emlab.uow.edu.au - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - As of tomorrow, employees will only be able to access the building using individual security cards. Pictures will be taken next Wednesday employees will receive their cards in two weeks. - Dilbert Quotes Winner, Fred Dales, Microsoft Corp ___ 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/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- Coming sometime... - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.http://www.global-village.net/products/ practical_webobjects ___ 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/daspinall% 40ticoon.com This email sent to [EMAIL
Re: Jboss 4.0.x deployment
We are not using JBoss, but we are using WebSphere and all database connections are handled by the IBM Connection pool. We got all kinds of connection issues (incomplete transactions, deadlocks, closed connections) because EOF like to make a connection and hold it forever. To fix it i created an alternate EOF adaptor based on the JavaPoolingJDBCAdaptor. It manages the connections using delegate hooks from EOF. Let me know, I can probably post it if you are interested. David --- Ticoon Technology Inc. 56 The Esplanade, Suite 404, Toronto, ON, M5E 1A7 On 28-Jun-06, at 1:09 PM, Andrew Madu wrote: Hi, is anyone deploying their webobjects peoject withing Jboss 4.0.x? If so, how are you handling your DB connections, are you letting Jboss handle the connection via JNDI or are you letting webojects handle it? thanks in advance Andrew ___ ___ 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 archive@mail-archive.com
Re: WO 5.3 and Tomcat property files?
I encountered problems with WebSphere using properties files. The first problem is that either the Framework properties files were NOT read, or they were not read in time (for me to initialize from them). The second is that when the properties are loaded, there is only ONE System.properties object. See: http://www.google.com/search?q=webobjects+servlet+properties http://developer.apple.com/documentation/WebObjects/JSP_and_Servlets/ SpecialIssues/chapter_4_section_2.html Additionally you can set properties in the container and WO will load them from JNDI. Which is cool in a way and familiar for clients with their own administration processes and policies. Our solution is to have one property defined in the container to identify an additional properties file. That file we manually read (from filesystem/war/ear) using a standard java Properties object and then for each property we set the key and value into NSProperties. If we do this early enough (Application initialization) then we can control/override all the standard WebObjects properties (including custom jdbc/jndi connection info). Hope this helps, David On 19-May-06, at 2:39 AM, Dave Elsner wrote: Hi, What the best approach to use property files from development in and for deployment within tomcat? Because it seems they are not being read in at run time System.getProperty(foo) always returns null under tomcat, but works perfectly in development in Xcode. I tried printing out System.getProperties() and none of my application properties have been loaded only the built in Java ones are there. How does every one else handle this? 1) Manually add properties as env-entry in the web.xml file? 2) Avoid properties altogether ? 3) Something else? I had a quick look at LEConfigServletEnvEntryMergeTool from lejstuff from Andrew Lindesay and it looks promising. As it appears to convert property files to env-entry in the web.xml file, but running it out of the box I got IO.exceptions. - Dave ___ 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/daspinall% 40ticoon.com This email sent to [EMAIL PROTECTED] ___ 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 archive@mail-archive.com
Re: WebSphere connection pool and deadlock - HELP!
Ok, that doesn't seem to be the issue. I have been searching the web (again) and I have identified 2 possible problem areas. One: seems there may be a problem with WebSphere connection pools prematurely closing when the connection/statement/resultset are all in different declared scopes. Seems odd to me but there were several reports where the problem (like mine) went away when the connection/ statement/resultset were all declared locally, used and released within the same scope. Unfortunately I do not see a way to make WebObjects act this way : Two: seems there may be a problem with WebSphere connection pools where the user (WebObjects) tries to set the autocommit flag (either true or false). Since I know WO does set the connection to autocommit false, I am again stuck. Does this sound familiar to anyone? Suggestions ... please. David On 12-May-06, at 1:48 PM, David Aspinall wrote: Ok, that doesn't seem to be the issue. I have been searching the web (again) and I have identified 2 possible problem areas. One: seems there may be a problem with WebSphere connection pools prematurely closing when the connection/statement/resultset are all in different declared scopes. Seems odd to me but there were several reports where the problem (like mine) went away when the connection/statement/resultset were all declared locally, used and released within the same scope. Unfortunately I do not see a way to make WebObjects act this way : Two: seems there may be a problem with WebSphere connection pools where the user (WebObjects) tries to set the autocommit flag (either true or false). Since I know WO does set the connection to autocommit false, I am again stuck. Does this sound familiar to anyone? Suggestions ... please. David On 8-May-06, at 4:18 PM, David Aspinall wrote: I am wondering now if the problem could be the way the applications are packaged as an EAR file. We are currently deploying as 5 different applications within websphere, using one EAR file to deploy all. My new understanding suggests that websphere allocates only one child JVM for the ear file. (as opposed to deploying them as 5 separate EAR or WAR files, where I would get 5 separate JVM's) Could this be the problem? Does anyone have any experience with this? David On 4-May-06, at 1:25 PM, Michael Parlee wrote: Well you've got me. I didn't realize that the PoolingJDBCAdapter uses its own connection pool. I guess I might look at that source code and try to modify it do a JNDI lookup for a connection pool on the app server. Other than that I don't know what to suggest, I can't find anything on the web about WO and J2EE connection pools. The fact that your object store coordinators are deadlocking makes me wonder if in using a new object store coordinator for each EC you are having issues with related objects being spread across multiple object stores. Sorry, I wish I could be more help. Mike On Wednesday, May 03, 2006, at 08:45AM, David Aspinall [EMAIL PROTECTED] wrote: Thanks Michael, I am not using the PoolingJDBCAdaptor. The connection is configured in WebSphere and obtained using JNDI. My raw query tool uses the following to find the connection try { String contextName = java:comp/env/jdbc/DefaultDataSource; InitialContext ctx = new InitialContext(); datasource = (DataSource)ctx.lookup( contextName ); connection = datasource.getConnection(); } catch (NamingException e) { Log.Debug( this.getClass().getName() + .findJNDIDatasource ( InitialContext ): Could not find JNDI/JDBC Context for name ' + contextName + '); throw e; } The problem is not with the raw query tool (in fact the problem takes place without even having used the query tool), the problem is with the regular EOF access. When I give each new EOEdtingContext it's own ObjectStoreCoordinator, then I get a full stack, and a new connection for each stack. EOF seems to find the connections without any problem, but it is locking objects in one stack (connection) that I am trying to save in a different stack. I just cannot see why. The problem also occurs when I use the session default EC for everything, so there should only be one stack... When I kill the connection using EnterpriseManager for SQLServer I get the following backtrace [5/3/06 12:49:38:160 BST] 291adf4c SystemErr R [Imports]: DEBUG: com.webobjects.jdbcadaptor.JDBCAdaptorException: DSRA9110E: Connection is closed. at com.webobjects.jdbcadaptor.JDBCContext.rollbackTransaction (JDBCContext.java:453) at com.webobjects.eoaccess.EODatabaseContext.rollbackChanges (EODatabaseContext.java:6607) at com.webobjects.eoaccess.EODatabaseContext.commitChanges (EODatabaseContext.java:6483) at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEdit ingCo ntext(EOObjectStoreCoordinator.java:425
Re: WebSphere connection pool and deadlock - HELP!
I am wondering now if the problem could be the way the applications are packaged as an EAR file. We are currently deploying as 5 different applications within websphere, using one EAR file to deploy all. My new understanding suggests that websphere allocates only one child JVM for the ear file. (as opposed to deploying them as 5 separate EAR or WAR files, where I would get 5 separate JVM's) Could this be the problem? Does anyone have any experience with this? David On 4-May-06, at 1:25 PM, Michael Parlee wrote: Well you've got me. I didn't realize that the PoolingJDBCAdapter uses its own connection pool. I guess I might look at that source code and try to modify it do a JNDI lookup for a connection pool on the app server. Other than that I don't know what to suggest, I can't find anything on the web about WO and J2EE connection pools. The fact that your object store coordinators are deadlocking makes me wonder if in using a new object store coordinator for each EC you are having issues with related objects being spread across multiple object stores. Sorry, I wish I could be more help. Mike On Wednesday, May 03, 2006, at 08:45AM, David Aspinall [EMAIL PROTECTED] wrote: Thanks Michael, I am not using the PoolingJDBCAdaptor. The connection is configured in WebSphere and obtained using JNDI. My raw query tool uses the following to find the connection try { String contextName = java:comp/env/jdbc/DefaultDataSource; InitialContext ctx = new InitialContext(); datasource = (DataSource)ctx.lookup( contextName ); connection = datasource.getConnection(); } catch (NamingException e) { Log.Debug( this.getClass().getName() + .findJNDIDatasource ( InitialContext ): Could not find JNDI/JDBC Context for name ' + contextName + '); throw e; } The problem is not with the raw query tool (in fact the problem takes place without even having used the query tool), the problem is with the regular EOF access. When I give each new EOEdtingContext it's own ObjectStoreCoordinator, then I get a full stack, and a new connection for each stack. EOF seems to find the connections without any problem, but it is locking objects in one stack (connection) that I am trying to save in a different stack. I just cannot see why. The problem also occurs when I use the session default EC for everything, so there should only be one stack... When I kill the connection using EnterpriseManager for SQLServer I get the following backtrace [5/3/06 12:49:38:160 BST] 291adf4c SystemErr R [Imports]: DEBUG: com.webobjects.jdbcadaptor.JDBCAdaptorException: DSRA9110E: Connection is closed. at com.webobjects.jdbcadaptor.JDBCContext.rollbackTransaction (JDBCContext.java:453) at com.webobjects.eoaccess.EODatabaseContext.rollbackChanges (EODatabaseContext.java:6607) at com.webobjects.eoaccess.EODatabaseContext.commitChanges (EODatabaseContext.java:6483) at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditin gCo ntext(EOObjectStoreCoordinator.java:425) at com.webobjects.eocontrol.EOEditingContext.saveChanges (EOEditingContext.java:3187) at ticoon.edit.ValidatingEOCollectionEditor.saveChanges (ValidatingEOCollectionEditor.java:222) [5/3/06 12:49:38:953 BST] 291adf4c WSRdbManagedC W DSRA0180W: Exception detected during ManagedConnection.destroy(). The exception is: com.ibm.ws.exception.WsException: DSRA0080E: An exception was received by the Data Store Adapter. See original exception message: [IBM][SQLServer JDBC Driver]No more data available to read.. with SQL State : 08006 SQL Code : 0 at com.ibm.websphere.jdbc.base.BaseExceptions.createException() at com.ibm.websphere.jdbc.base.BaseExceptions.getException() at com.ibm.websphere.jdbc.base.BaseExceptions.getException() at com.ibm.websphere.jdbc.sqlserver.tds.TDSExecuteRequest.submitRequest( ) at com.ibm.websphere.jdbc.sqlserver.SQLServerImplConnection.rollbackTran sac tion() at com.ibm.websphere.jdbc.base.BaseConnection.rollback() at com.ibm.websphere.jdbcx.base.BasePooledConnection.rollback() at com.ibm.websphere.jdbcx.base.BaseConnectionWrapper.rollback() at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.cleanupTransactio ns( WSRdbManagedConnectionImpl.java:2626) at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.destroy (WSRdbManagedConnectionImpl.java:2068) at com.ibm.ejs.j2c.MCWrapper.destroy(MCWrapper.java:1380) at com.ibm.ejs.j2c.poolmanager.FreePool.cleanupAndDestroyMCWrapper (FreePool.java:506) at com.ibm.ejs.j2c.poolmanager.FreePool.returnToFreePool (FreePool.java:318) at com.ibm.ejs.j2c.poolmanager.PoolManager.release (PoolManager.java:1309) at com.ibm.ejs.j2c.MCWrapper.releaseToPoolManager (MCWrapper.java:1766) at com.ibm.ejs.j2c.LocalTransactionWrapper.afterCompletionCode
WebSphere connection pool and deadlock - HELP!
We have a client who insists on using WebSphere 5.0. At first everything was fine, but all our database connections were created using JDBC connection logic. The client insists we use the JNDI naming context for finding and using the websphere connection pool and we began to encounter problems. The first problem was that sub-threads are not permitted under the servlet spec and so the behaviour if undefined. This shows up initially as the subthreads are not able to find the JNDI named context so nothing connects. My fix for this is to perform all actions in the current request response loop (no backgrounding). Now that I have everything connecting correctly I am creating a database deadlock constantly. Basically is seems that fetches are locking database rows, but the insert/updates are going to the database in a different connection and so are deadlocking on the same objects. No deadlock occurs until an INSERT is sent for an object related to a previous fetch. For example I can insert ActivityLogs all day since they have no relationships, but if I insert a new ContactLog for a Household .. dead. I have tried: - turning on concurrent request handling (thought it might change the fetch lock logic) - put in a custom SQLServerPlugin and overrode lockClause() to return an empty string. - did all editing in the session editing context - did initial fetches in the session EC, then all edits in a new EC - did initial fetches in the session EC, then all edits in a new EC with a new ObjectStoreCoordinator - reverting to straight JDBC, no pool works fine. I'm not sure where to go next. Other notes: - WebSphere 5.0.x deployed on SUSE - MS SQLServer 2000 - WebObjects 5.2.4 - Fastest way to reproduce is to submit a delta XML document via DirectAction POST. Thanks, David --- [EMAIL PROTECTED] (416) 513-9524 x263 Ticoon Technology Inc. 56 The Esplanade, Suite 404, Toronto, ON, M5E 1A7 ___ 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 archive@mail-archive.com