Re: Recording and looking up dates, when day-wide precision is required

2008-12-30 Thread Florijan Stamenkovic
On Dec 30, 2008, at 06:03, Lachlan Deck wrote: Hi there, On 30/12/2008, at 7:47 PM, Andrew Lindesay wrote: I _think_ (correct me if I'm wrong) Florijan would like to store a logical date rather than a timestamp. For example, he would like to store the date 2008-09-28. The requirement be

Re: Recording and looking up dates, when day-wide precision is required

2008-12-23 Thread Florijan Stamenkovic
On Dec 23, 2008, at 18:08, Lachlan Deck wrote: One more thing... Reading the posts that David mentioned, I notice there is some mentioning of java.util.Date being converted to and from NSTimestamp. I am not sure why this is mentioned as a problem. AFAIK, both Date and NSTimestamp (which in

Re: Recording and looking up dates, when day-wide precision is required

2008-12-23 Thread Florijan Stamenkovic
Uhm, some more thoughts... *Please* help me make sense out of this... Setting a formatter to GMT will for any given date String produce this: 00:00:00 GMT. However, format the resulting Date with a formatter that has GMT-0400, this results in: 21:00:00 -0400. Which means, if a user is in

Re: Recording and looking up dates, when day-wide precision is required

2008-12-23 Thread Florijan Stamenkovic
First of all, thanks everyone for the help, I feel I am getting somewhere, uhm, somewhere that makes sense, more or less :) On Dec 22, 2008, at 16:22, Lachlan Deck wrote: It'll parse the time into whatever timezone you set to the formatter. If you're using SimpleDateFormat, for example, set

Recording and looking up dates, when day-wide precision is required

2008-12-22 Thread Florijan Stamenkovic
Hi all, I am recording daily currency conversion rates. The problem I have is that at the moment currency information can be input from wherever on the planet. Now, most users will deal with date info only, when it comes to currency info, leaving time and timezone issues in Java's hands.

Re: casting in qualifier format strings

2008-12-18 Thread Florijan Stamenkovic
On Dec 18, 2008, at 12:22, Mike Schrag wrote: How in the world did you discover this?!? You didn't actually try to do it??? I can pretty much guarantee this did not come from the current documentation. :-P Um .. yeah .. Unless you consider digging through decompiled javacc- generated parse

Re: casting in qualifier format strings

2008-12-18 Thread Florijan Stamenkovic
Cool... How in the world did you discover this?!? You didn't actually try to do it??? F On Dec 18, 2008, at 00:12, Mike Schrag wrote: I very rarely use qualifier format strings, but i have a special case where I needed one, but i needed a timestamp literal in it ... turns out you can ca

Re: Two questions about latest build system

2008-11-24 Thread Florijan Stamenkovic
On Nov 23, 2008, at 06:46, Paul Hoadley wrote: I have an application project that depends on a framework project (actually, more than one). I'm back to using the incremental build system for development, in which case it seems like (after running Project > Clean... on everything) it's suf

Translator (English -> Spanish) sought...

2008-11-19 Thread Florijan Stamenkovic
Hi all, We are localizing our software to various languages, and are in need of a translator that can provide translations to Spanish. We need a person proficient in specialized terminology (software, database, accounting, project management etc..). If anyone has experience with contract

Re: Cannot run any app in development

2008-11-17 Thread Florijan Stamenkovic
Hm, might this be the case: http://dev.eclipse.org/newslists/news.eclipse.tools/msg63260.html F On Nov 17, 2008, at 11:48, David Holt wrote: Continuing to try to get this to work this morning I have installed a new Eclipse/WOLips from scratch (same error) I created a new user account think

"Powered by WO" on an apple site

2008-11-14 Thread Florijan Stamenkovic
https://appleseed.apple.com/cgi-bin/WebObjects/SeedPortal Maybe it's just me, but I've never seen a "Powered by WO" banner/tag/ whatever on any other Apple site. Interesting... F ___ Do not post admin requests to the list. They will be ignored. Webob

Re: Lots of EOs slow down the performance

2008-11-05 Thread Florijan Stamenkovic
As you say that the EO generation happens fast, maybe you should switch to using something else as a WOComponent to generate your CSV. I use ostermiller utils: http://ostermiller.org/utils/ A more "raw" approach to generating the CSV should work faster. Especially in combination with raw r

Re: NSSelector and Void Returned Value

2008-10-31 Thread Florijan Stamenkovic
Hey Andrew, Have you tried java.lang.Void? IIRC this (or something similar, or same, regarding void and generics) was discussed on the list a while ago. I can't remember the thread though, just recall that Void was mentioned. Anyone else? HTH F On Oct 30, 2008, at 15:38, Andrew Lindesay w

Re: Flattened Relationships and storedValueForkey()

2008-10-30 Thread Florijan Stamenkovic
On Oct 30, 2008, at 05:24, David Avendasora wrote: On Oct 25, 2008, at 10:42 AM, Florijan Stamenkovic wrote: Without knowing exactly what the problem is, I'd just suggest that you skip flattening in the model, and do it in Java. You'll avoid this problem, and you'll also ha

Re: Class.this.. ?

2008-10-28 Thread Florijan Stamenkovic
On Oct 28, 2008, at 19:33, Q wrote: NestingClass.ref That would refer to a static variable called 'ref' on the class NestingClass. LOL! Obviously! I can't believe I overlooked that 'minor' issue :) This is a no-go. Now, as far as I understand the concept of class nesting as it is imple

Re: Class.this.. ?

2008-10-28 Thread Florijan Stamenkovic
e first time wished to do this. Peculiar. I will google this a bit, and depending on what I find might submit a bug report to Sun. Any thoughts on this are welcome F On Sep 20, 2008, at 17:46, Florijan Stamenkovic wrote: On Sep 20, 2008, at 16:36, Ash Mishra wrote: I understand what

Re: WO Equivalent of prepared statement

2008-10-27 Thread Florijan Stamenkovic
On Oct 27, 2008, at 17:04, Randy Wigginton wrote: I am processing millions of rows of data, and the output is very large tables. I would like to use an equivalent of preparedstatements for my writing&updating; there is less need for transactional integrity and more need of raw speed. Is

Re: generics and KVC.NullValue

2008-10-27 Thread Florijan Stamenkovic
Well, as far as collections are concerned, foundation could (should?) switch to the java.util style of allowing / using Java null values in NSArrays and NSDicts. As for other parts of EOF/WO which rely on NullValue, this might work or it might not. Personally I remember having to explicitly

Re: Flattened Relationships and storedValueForkey()

2008-10-25 Thread Florijan Stamenkovic
Without knowing exactly what the problem is, I'd just suggest that you skip flattening in the model, and do it in Java. You'll avoid this problem, and you'll also have more control over value caching (which could be what is producing the erroneous result). While getting the same result. A

Re: eclipse debugging help

2008-10-22 Thread Florijan Stamenkovic
On Oct 22, 2008, at 14:54, james o'loughlin wrote: it appears the app deadlocks. my browser hangs and eclipse's debug window opens with the stack i've attached. it does not appear that something is being computed and needs to run its course. As far as I know Eclipse's debug will auto-ope

Re: eclipse debugging help

2008-10-22 Thread Florijan Stamenkovic
James, A bit more info might be necessary to resolve this... Your app hangs? As in it deadlocks? Or as in takes a seemingly unnecessary amount of time to compute something? How did you obtain the stack below, was an exception thrown, or did you manually suspend the worker thread and copy i

Re: Having trouble with XcodeMigration

2008-10-17 Thread Florijan Stamenkovic
On Oct 17, 2008, at 11:55, Denise Howard wrote: Yes I am 100% sure. I don't have multiple hard drive partitions. Hm, bizarre... Pascal suggested a permissions problem, but I don't think that's it. If the Java process tries to access resources that it does not have privileges for a java.

Re: Having trouble with XcodeMigration

2008-10-17 Thread Florijan Stamenkovic
On Oct 16, 2008, at 23:13, [EMAIL PROTECTED] wrote: I'm finally taking the plunge to leave Xcode behind and migrate our frameworks and applications to Eclipse. I've installed WOLips, and I've carefully followed the instructions for Pascal Robert's XcodeMigration tool (great visual tutorial

[SOLVED] Re: Locking problem

2008-10-16 Thread Florijan Stamenkovic
This evil hack seems to do it, as far as I've tested it... Thanks everyone for the input, F On Oct 16, 2008, at 11:44, Florijan Stamenkovic wrote: I'll try making all my overridden EC's methods synchronize on the EODistributedObjectStore. ___

Re: Locking problem

2008-10-16 Thread Florijan Stamenkovic
ock () method. Regards Peter On 16/10/2008, at 2:20 AM, Florijan Stamenkovic wrote: OK, some more info, perhaps it will strike a chord with someone? My latest attempt for solving the threading issue was to essentially make every method in my editing context synchronized (though not t

Re: Locking problem

2008-10-15 Thread Florijan Stamenkovic
OK, some more info, perhaps it will strike a chord with someone? My latest attempt for solving the threading issue was to essentially make every method in my editing context synchronized (though not the old fashioned way, but using a java.util.concurrent.locks.Lock in ec's lock() and unlock

Re: NSCoding

2008-10-15 Thread Florijan Stamenkovic
Huh, I've never had data loss experiences, but then again I never really did use it for long term storage / across Java versions etc. Will need to keep this in mind though. I always assumed that as long as the internal data structure of a class does not change, the serialized data will rema

Re: NSCoding

2008-10-15 Thread Florijan Stamenkovic
Why not use Java's serialization? Should be simpler. F On Oct 15, 2008, at 06:12, Oliver Scheel wrote: I want to use NSCoding to archive data structures, but didn't find any examples on the net. Anyone using it? (and I don't want to write a complete coder) ;-) __

Re: Locking problem

2008-10-13 Thread Florijan Stamenkovic
So, assuming I didn't do any major screw-ups when doing this, it should work. However, what I'm currently doing with JC might produce an even "heavier" load then a web scenario. Not in terms of volumes for sure, but in terms of how rapidly calls from different threads are made to a single e

Re: Locking problem

2008-10-13 Thread Florijan Stamenkovic
Hm, yeah, to some degree. However, for any user action tens of events can be fired, of different types. During application startup this number can grow to hundreds. I am not sure what you're getting at, but trying to handle events globally would not work, in my opinion. I guess this is a pa

Re: Locking problem

2008-10-13 Thread Florijan Stamenkovic
Hey Mike, Thanks for replying. There is no practical equivalent of the RR loop on the client. While there is an RR loop during which the client asks the server for data, the client side EOF can be doing a lot of things outside of it. Because of that I kicked out lock coalescing. The relev

Locking problem

2008-10-13 Thread Florijan Stamenkovic
Hi all, Cross posting this to wonder and WO, as it seems appropriate on both lists. I tried adapting ERXEC to a JC scenario. I stripped away the factory stuff, the delegate and properties (I made it always autoLock), as well as lock coalescing. However, it does not help. I get deadlocks

Re: WonderEntity / _WonderEntity

2008-10-13 Thread Florijan Stamenkovic
Without more info, it looks as though your eogen file is not finding your prototypes entity / model. This makes it unable to detect the class types of attributes, because that information is stored in the prototype. Some questions: 1. How do you deal with prototypes (separate model, separat

Re: ERPrototypes

2008-10-11 Thread Florijan Stamenkovic
yes. On Oct 11, 2008, at 08:55, Ricardo J. Parada wrote: Hi, I'm looking into ERPrototypes. What prototype do people use for foreign keys and primary keys based on a number? Is it "id"? Thanks, Ricardo Parada ___ Do not post admin requests to

JC & ec locking & ERXEC

2008-10-10 Thread Florijan Stamenkovic
Hi all, I've been separating some data processes in a JavaClient app between threads (client side), and consequently bumped into locking issues. Standard editing context operations I have control of, but next to that there are faults firing at times on different threads, leading to excep

Re: updating WO

2008-10-04 Thread Florijan Stamenkovic
Also, if you have somewhere a copy of WOLips files (for example in an old Eclipse installation) you can just copy them to Eclipse's "plugins" folder and re-start Eclipse from the cmd line with the - clean parameter. Perhaps not the best thing to do in terms of compatibility checking, but I'v

Re: Eclipse WOLips not showing prototypes when creating a project

2008-09-28 Thread Florijan Stamenkovic
Marcus, WOLips does not contain any prototypes. You need either your own prototypes model, or entity, or Wonder stuff (the ERPrototypes framework) in the classpath of the project, or in the project itself. Here's more or less what you need to do, assuming you want to use Wonder prototypes

[Announcement] WOVaGen - WebObjects Value Generator

2008-09-25 Thread Florijan Stamenkovic
Hi all, A simple framework that might be generally useful: http://web.mac.com/flor385/eSwamp/software/index.html#wovagen The page describes basic stuff... I'd just like to add that there are some areas that require improvements: - logging (at the moment there is no logging at all in the fra

Re: www.apple.com/webobjects

2008-09-23 Thread Florijan Stamenkovic
On Sep 23, 2008, at 05:19, Jaime Magiera wrote: On Sep 22, 2008, at 6:28 PM, David den Boer wrote: But never forget that all the 'important' (IMHO) code runs on WO, and that is what matters for the long run. What exactly does that do to encourage a development base? Assuming it is true,

Re: uniqueness constraint on an a foreign key

2008-09-22 Thread Florijan Stamenkovic
On Sep 22, 2008, at 13:07, Chuck Hill wrote: Yeah, sounds like this might end up kicking me in the ass. Especially since I can't override client side class descriptions, so I would have a discrepancy between what EOs and class descriptions see as inverse relationships. Not sure I like thi

Re: Class.this.. ?

2008-09-22 Thread Florijan Stamenkovic
Oh, sorry, I missed that... In that line it is necessary. F On Sep 20, 2008, at 17:50, Ash Mishra wrote: Thanks Florijan. would it not be needed in the Delegate's last line: return MyListPage.this; ? On 20-Sep-08, at 2:46 PM, Florijan Stamenkovic wrote: On Sep 20, 2008, at 16:36

Re: Class.this.. ?

2008-09-20 Thread Florijan Stamenkovic
On Sep 20, 2008, at 16:36, Ash Mishra wrote: I understand what it's doing (i.e. accessing the woDisplayGroup and setting a value in it) but I've not seen the MyListPage.this. reference before, where the class name is followed by 'this' and than a variable of the class. Is this some speci

Re: uniqueness constraint on an a foreign key

2008-09-20 Thread Florijan Stamenkovic
On Sep 19, 2008, at 16:20, Chuck Hill wrote: I was thinking more of having A and B each have the other PK as a FK. Huh... Have you ever done this? Anyone else? Though this may irritate EOF when it tries to look up inverse relationships. You can tell EOF what to do by implementing String

Re: uniqueness constraint on an a foreign key

2008-09-19 Thread Florijan Stamenkovic
On Sep 19, 2008, at 14:56, Chuck Hill wrote: On Sep 19, 2008, at 11:52 AM, Florijan Stamenkovic wrote: On Sep 19, 2008, at 13:26, Chuck Hill wrote: If the relationship is mandatory, I'd use the PK. As in propagate PK? That does not work in this case because there can be A rows

[OT] Eclipse class search shortcut

2008-09-19 Thread Florijan Stamenkovic
Something I just discovered, if you Cmd+Shift+T in Eclipse, to search for classes, you can search only on capitals, for example if searching for "OutOfMemoryError" you can just type "OOME" in and Eclipse will do the right thing. Sweet. Thought I'd share, I guess it does not fit on David's c

Re: uniqueness constraint on an a foreign key

2008-09-19 Thread Florijan Stamenkovic
On Sep 19, 2008, at 13:26, Chuck Hill wrote: If the relationship is mandatory, I'd use the PK. As in propagate PK? That does not work in this case because there can be A rows that do not have any related B rows. Or did you mean something else? F On Sep 19, 2008, at 10:00 AM, Flo

uniqueness constraint on an a foreign key

2008-09-19 Thread Florijan Stamenkovic
Hi all, I have a relationship A <->> B. B carries the FK for A, not allowed to be null. I'd like to enforce that a single A can relate to only one B so I'm thinking of putting a uniqueness constraint on the FK. As far as I can see that will give me what I want without causing any trouble.

faulty documentation?

2008-09-17 Thread Florijan Stamenkovic
Hi all, If you check out the docs for EOCustomObject's takeValueForKey and takeStoredValueForKey you will see that there is talk of storing the value in instance variables (_key or key), but there is not talk about storing values in a value dict, which is what most likely happens in the e

Re: EOGenerator Relationships

2008-09-17 Thread Florijan Stamenkovic
On Sep 17, 2008, at 12:02, Michael Kondratov wrote: There is no setInvoiceStatus in _Invoice. Only setInvoiceStatusRelationship. See what Mike was just saying... Now, I assume that _Invoice.setInvoiceStatusRelationship gets called first and in turn calls Invoice.setInvoiceStatus . Is tha

Re: EOGenerator Relationships

2008-09-17 Thread Florijan Stamenkovic
On Sep 17, 2008, at 11:46, Mike Schrag wrote: Wonder's automatic inverse relationship stuff What's that? Mind explaining briefly, or pointing out where it is in wonder? On ERXGenericRecord: * Also, this class supports auto-updating of inverse relationships. You can * simply call eo.set

Re: EOGenerator Relationships

2008-09-17 Thread Florijan Stamenkovic
Wonder's automatic inverse relationship stuff What's that? Mind explaining briefly, or pointing out where it is in wonder? call super.setXxx As far as I can see your _Entity (http://webobjects.mdimension.com/ wolips/EOGenerator/Velocity%20EOGenerator%20Templates/_Entity.java) does not

Re: EOGenerator Relationships

2008-09-17 Thread Florijan Stamenkovic
On Sep 17, 2008, at 10:56, Michael Kondratov wrote: The object is in the EC. I've tried changing Invoice method from setInvoiceStatusRelationship (InvoiceStatus value) to setInvoiceStatus(InvoiceStatus value) Now setInvoiceStatus in Invoice does get exceuted, however I am not able to call

Re: EOGenerator Relationships

2008-09-17 Thread Florijan Stamenkovic
On Sep 17, 2008, at 06:18, David Avendasora wrote: If it doesn't complain, it means that the code calling this method is calling the _Invoice version of the method directly somehow. I believe it is possible to do this using reflection. It however should not be happening, unless you are pur

Re: Read only attributes

2008-09-09 Thread Florijan Stamenkovic
On Sep 09, 2008, at 12:57, Chuck Hill wrote: If I read you correctly, then non-saved EOs can have their read only attributes set. Which brings me to the core of the problem: do I skip read only attributes when doing automatic EO generation or not? I do not want to mess with pks and fks, bu

Re: Read only attributes

2008-09-09 Thread Florijan Stamenkovic
Chuck, Dave, Thanks for the input... On Sep 08, 2008, at 19:37, Chuck Hill wrote: I am guessing that (if EOF indeed does not accept modifications of RO attributes) the purpose of this is to preserve existing data, and in situations in which data is created outside of EOF? I think you can

Re: Read only attributes

2008-09-08 Thread Florijan Stamenkovic
attributes) the purpose of this is to preserve existing data, and in situations in which data is created outside of EOF? F Chuck On Sep 8, 2008, at 3:46 PM, Florijan Stamenkovic wrote: Hi all, I'm looking into EOAttribute.isReadOnly(). Docs point out that an attribute is read only wh

Read only attributes

2008-09-08 Thread Florijan Stamenkovic
Hi all, I'm looking into EOAttribute.isReadOnly(). Docs point out that an attribute is read only when it is derived (makes sense), but mention no other circumstance. So, anyone knows any other situation in which an attribute is read only? Thanks, F

Re: Cappuccino

2008-09-06 Thread Florijan Stamenkovic
On Sep 05, 2008, at 18:54, Chuck Hill wrote: Ross is no slouch though. Not saying he is. Just that the lack of real world experience (does Apple count as real world? :-P) gave me pause. On the other hand, you could point to the Java API that was designed by professionals with many year

Re: Cappuccino

2008-09-05 Thread Florijan Stamenkovic
Uhm, I've taken a peek at the API. Seems to have some interesting stuff in there. Very AppKit like. I wonder what Apple would have to say about that, legally. Still, 117 classes to cover everything from basic raw type encapsulation to high level GUI management??? Sounds weak and I have doub

Re: Cappuccino

2008-09-05 Thread Florijan Stamenkovic
Interesting, seems like a whole new platform. Did anyone check out the whole Objective-J thing, and the API? On Sep 05, 2008, at 11:23, Kieran Kelleher wrote: http://cappuccino.org/ ___ Do not post admin requests to the list. They will be ignored. W

Re: Inherited Relationships using Different Destinations

2008-09-05 Thread Florijan Stamenkovic
On Sep 05, 2008, at 13:56, Chuck Hill wrote: What you need, and want, IMHO, is a different relationship. This was exactly what I thought when I first dived into what Dave was saying. Then I thought, yeah, but then he would not be able to just generically call somePart.lotCode() and get th

Re: Inherited Relationships using Different Destinations

2008-09-05 Thread Florijan Stamenkovic
Yeah, Dave, this sounds kind of evil. I mean, I see what you're trying to do, but man, it sounds fishy. And you for sure lose a lot of type safety. Though I *guess* if you're careful it could work. One thing's for sure though: you have a talent for bizarre design :) F On Sep 05, 2008, at 11

Re: Inherited Relationships using Different Destinations

2008-09-05 Thread Florijan Stamenkovic
But you can override a method that returns NSArrayManufacturedBatch> with one that returns NSArray. So, if done this way you could have the relationships declared in all the Java classes. Still trying to figure out how Dave actually modeled this... Had no idea you could "override" relations

Re: clearing a toMany relationship fault in Java Client

2008-09-04 Thread Florijan Stamenkovic
I wasn't following the other thread, but off the top of my head, well, maybe you could do: eo.editingContext().refreshObject(eo); Which should cause it to get the latest stuff from the server? No? F On Sep 04, 2008, at 13:21, Ricardo Legorreta wrote: Any idea what I need to do? _

Customizing random value generation

2008-09-04 Thread Florijan Stamenkovic
Hi all, I am working on the EO data generator discussed a while ago, in between of other things. So, since "hints" that affect value generation are wired into the generation process, I need to know what they are to use them. Below is a list of hint types I have, if anyone can come up wit

Re: EOAttribute.width()

2008-09-03 Thread Florijan Stamenkovic
Done. ID: 6193252 On Sep 03, 2008, at 13:20, Chuck Hill wrote: Can you file a bug report on the documentation so that it gets fixed? ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@

EOAttribute.width()

2008-09-03 Thread Florijan Stamenkovic
Hi all, The documentation for the EOAttribute.width() says: "Returns the maximum length (in bytes) for values that are mapped to this attribute. Returns zero for numeric and date types." So, according to this the maximum length in characters (for textual attributes) would be determined by

Entity dependence analisys

2008-08-29 Thread Florijan Stamenkovic
Hi all, I made a little something to analyze dependencies between entities, and sort entities based on them. So that the non-dependent entities are at a lower index in the resulting list then the ones they are dependent on. The current implementation only deals with relationships, but th

Re: Issues Deploying from WOLips

2008-08-29 Thread Florijan Stamenkovic
This looks interesting, though the WSR are not really an issue for me. One thing though, why not isolate certain conditions (for example if frameworks should be embedded or not) into build.properties? F On Aug 29, 2008, at 11:30, Kieran Kelleher wrote: If you want fully embedded *AND* split

Re: FrontBase reverse engineering with WOLips

2008-08-29 Thread Florijan Stamenkovic
Yeah, this is definitely the right way to do it. F On Aug 29, 2008, at 11:05, Mike Schrag wrote: You can always export and import your preferences, which is 90% of the annoyance of starting from a new workspace. ___ Do not post admin requests to t

Re: FrontBase reverse engineering with WOLips

2008-08-29 Thread Florijan Stamenkovic
On Aug 29, 2008, at 09:39, Mike Schrag wrote: You can install multiple copies of Eclipse on the same machine (note that you need Eclipse 3.4 to use nightly). Yeah, this is super sweet. And most of the prefs are saved in the workspace. Makes it easier to deal with installation and upgrades.

Re: Issues Deploying from WOLips

2008-08-29 Thread Florijan Stamenkovic
If the frameworks are not embedded after you did that then most likely the relevant includes file (woproject/ ant.frameworks.wo.wolocalroot) in your project does not list out these frameworks, or they are not located in your /Library/ Frameworks/ folder. What are the file's contents? F On

Re: Automatic data generation

2008-08-28 Thread Florijan Stamenkovic
Georg, You mention testing, does your app also do data generation? And what kind of testing exactly are you referring to? F On Aug 28, 2008, at 04:26, Georg Tuparev wrote: On Aug 21, 2008, at 5:13 PM, Mike Schrag wrote: Has anyone made this already? Skimmed through the wonder API, but

Re: FrontBase and write data export/import

2008-08-25 Thread Florijan Stamenkovic
Or maybe you could use the cmd line, write a little script to automate the export process... F On Aug 23, 2008, at 14:02, Guido Neitzer wrote: I don't know how feasible that is in your situation, but if you do a select in FrontBase Manager, you can copy & paste rows to a text file (tab del

Re: FrontBase and write data export/import

2008-08-23 Thread Florijan Stamenkovic
William, I just looked into some FB documentation, and I can find no references to "WRITE DATA". I also can not find it in a the SQL reference I use. So, I think you might be on a false track here... I suggest writing to the FrontBase list, since you are not getting any answers here, that

Re: Use of finalize methods in WO

2008-08-21 Thread Florijan Stamenkovic
I don't think the non-existence is the point here, just the scary proportion. I'd say in a healthy (i.e. not so Ferenghi like) world the proportion would follow the Gaussian curve, so let's say 25% in the really good range, 25% in the really bad, 50% somewhere in the middle. Care to specu

Re: Automatic data generation

2008-08-21 Thread Florijan Stamenkovic
Hi Ray, On Aug 21, 2008, at 13:35, Ray Kiddy wrote: I think it definitely would be fun. I have done parts of this. I was once working on some app that did web template editing. It was at some company that I have forgotten the name of. We wanted to put in a smarter preview mode that would,

Re: Automatic data generation

2008-08-21 Thread Florijan Stamenkovic
} //~ if .... } //~ if (currentValue == null) } //~ for (java.util.Enumeration attributesEnumerator = ... } } On Aug 21, 2008, at 10:56 AM, Florijan Stamenkovic wrote: Not sure if this has been discussed already, but I cou

Automatic data generation

2008-08-21 Thread Florijan Stamenkovic
Not sure if this has been discussed already, but I could not find anything in the list archives, nor by quickly googling. So, I'm thinking of making a framework for automated data generation, based on a model and some runtime settings. This would, obviously, be used for testing. Specificall

Re: Help with triggers/FrontBase (was: sequential numbering across more instances)

2008-08-20 Thread Florijan Stamenkovic
On Aug 20, 2008, at 08:40, Ondřej Čada wrote: CREATE TRIGGER test_insert AFTER INSERT ON TEST REFERENCING NEW x FOR EACH ROW BEGIN update test set ordernumber=(SELECT MAX (ordernumber) FROM test)+1 where oid=x.oid AND ordernumber=-1; END Your update problem aside, SELECT MAX(column) FROM t

Re: Owns Destination problem

2008-08-19 Thread Florijan Stamenkovic
So, you create an MS. Then you create an SR and relate it to it. Then you unrelate the MS from the SR and vice-versa. What do you want to achieve by this? If it did work, your object graph would be at exactly the same state as after step 2. Or am I missing something? F On Aug 19, 2008, at

Re: Owns Destination problem

2008-08-19 Thread Florijan Stamenkovic
Hi Dave, Note these lines in the stack: at com.webobjects.eocontrol.EOCustomObject.validateForSave (EOCustomObject.java:1411) at com.webobjects.eocontrol.EOCustomObject.validateForInsert (EOCustomObject.java:1473) What exactly are you doing in your app? It looks as though your EOs are be

Re: permissions deployoment woes

2008-08-18 Thread Florijan Stamenkovic
Versions: 10.4.11, 5.3, no Wonder On Aug 18, 2008, at 13:54, Chuck Hill wrote: Does everyone have execute on the directories? Yep. wotaskd is starting up under root. Should I change that to appserver? That seems to be at least a part of the logging problem. Yes, it should run as appserve

Re: sequential numbering across more instances

2008-08-15 Thread Florijan Stamenkovic
editingContext().globalIDForObject(on) will be an EOTemporaryGlobalID until the object is saved. You can use Wonder to get a permanent key, but if the transaction is not committed, you will get gaps in the sequence (I think). Yeah, there's that. When I do this I add an if to check if the

Re: sequential numbering across more instances

2008-08-15 Thread Florijan Stamenkovic
On Aug 15, 2008, at 14:59, Chuck Hill wrote: On Aug 15, 2008, at 11:45 AM, Florijan Stamenkovic wrote: With any such value there is some probability the client will (next week or next year) want (a) to edit it, (b) in some special case, to have non-unique values. Aah, I love being

Re: BigDecimal, scale, and prototypes

2008-08-15 Thread Florijan Stamenkovic
This also accounts for the zero padding. Nice. F On Aug 15, 2008, at 14:34, Mike Schrag wrote: EOF sets the scale when the values are fetched. case FB_Decimal: { if (obj instanceof BigDecimal) { return ((BigDecimal)

Re: sequential numbering across more instances

2008-08-15 Thread Florijan Stamenkovic
With any such value there is some probability the client will (next week or next year) want (a) to edit it, (b) in some special case, to have non-unique values. Aah, I love being an in-house developer that can just stamp his foot and say no, without having to think about such a thing as

Re: BigDecimal, scale, and prototypes

2008-08-15 Thread Florijan Stamenkovic
On Aug 15, 2008, at 11:45, T Worman wrote: Florijan: I have found that setting the scale in the model did not result in properly setting the scale of the attributes in my EO's. I am using OpenBase. There could be a number of reasons for this and I didn't investigate real hard. The scal

Re: BigDecimal, scale, and prototypes

2008-08-15 Thread Florijan Stamenkovic
On Aug 15, 2008, at 12:00, David Avendasora wrote: How currency-centric of you. If you are selling widgets that are really small, or you have a very strong currency, you may want to keep track of a cost that is < .01 for calculations, even if the value presented to the customer ends up get

BigDecimal, scale, and prototypes

2008-08-15 Thread Florijan Stamenkovic
Hi all, I am using BigDecimal in combination with WO for the first time, and have some questions, perhaps someone with experience could explain. 1. Is the scale of the resulting BigDecimal based on the scale of the property as defined in the model? 2. Why does the currencyAmount wonder prot

Re: sequential numbering across more instances

2008-08-15 Thread Florijan Stamenkovic
I regret to say I have a very strong feeling against using PK's for anything but PK and relationships, ever. May I ask why? I've found them quite useful when it comes to having immutable row / EO identifiers, have not bumped into problems with this yet. Except that for some reason in FrontB

Re: sequential numbering across more instances

2008-08-15 Thread Florijan Stamenkovic
On Aug 15, 2008, at 09:55, Ondřej Čada wrote: Hi all, I've just bumped into a need to maintain a sequential numbering of database rows, which are created by more concurrent WO application instances. If you just need a unique identifier for a row, you could use the primary key value eas

Re: Client-Side Logging on Leopard

2008-08-14 Thread Florijan Stamenkovic
Don't have a solution, but I do have client and server side logging in Leop. F On Aug 14, 2008, at 10:08, David Avendasora wrote: Hi all, This is slightly off-topic, but when I run my project within Eclipse I'm having problems getting logging for _anything_ to show up in the console - w

Re: Drawing thin stroked lines don't keep stroke on window resize

2008-08-12 Thread Florijan Stamenkovic
I know this bug. I always thought that it isn't necessarily caused by bad antialiasing, but rendering of everything except for the background and overlaying it. Thereby effectively drawing over the existing rendering, and since the overlay is not entirely opaque (there are some partially tr

Re: Which WOLips???

2008-08-11 Thread Florijan Stamenkovic
OK, could be it was one of my screw ups, but I could swear when I first went to update, it only showed WOLips in the Standard Install group. When I went back to make you a nice pict of it for you, everything else was there... Ouch... I don't feel for reverting to Eclipse 3.3, though I don't

Which WOLips???

2008-08-11 Thread Florijan Stamenkovic
Hi all, I am trying to get the latest WOLips. I have Eclipse 3.4 installed. The WOLips site archives are broken, as Mike pointed out. So I tried updating from Eclipse directly. The stable build in the repository contains WOLips 3.3.x. So I turned to nightly. 3.4.x, believing that I need W

Re: [OT] FrontBase problem when copying databases

2008-08-11 Thread Florijan Stamenkovic
I asked them about the architecture independence point actually... Here's the reply they gave: "We did look into making the database and backup files binary compatible across different endian platforms a while back. We concluded that the implementation would be "very" non-trivial and introd

Re: [OT] FrontBase problem when copying databases

2008-08-10 Thread Florijan Stamenkovic
;write data" (and even though using legacy hardware to restore old backups is fun in a nerdish kind of way, I'm too lazy to do it again, so I switched :-). - hugi On 9.8.2008, at 15:13, Florijan Stamenkovic wrote: Yup, testing seems to confirm it, it is an endian issue. Thanks D

Re: [OT] FrontBase problem when copying databases

2008-08-09 Thread Florijan Stamenkovic
UTPUT ..." and restore on the other machine by running the script. Because of endian issues you cannot go between architectures using backup. David On 9-Aug-08, at 6:46 AM, Florijan Stamenkovic wrote: Hi all, I apologize for the off topic post, but neither google nor the FrontBase ma

[OT] FrontBase problem when copying databases

2008-08-09 Thread Florijan Stamenkovic
Hi all, I apologize for the off topic post, but neither google nor the FrontBase mailing list helped with this, so I figured I'd ask here, maybe somebody will be able to advise. I am trying to port database from one computer to another. I am trying to do that by exporting backups, copyin

  1   2   3   4   >