I'm blurry-eyed, but it seems that trying to determine if an array of
strings contains a certain string is harder than it should be. Am I
overlooking something? If not, how should one compare to arrays of
strings?
--
Josh Paul
[EMAIL PROTECTED]
twitter: joshpaul
linkedin: joshpaul
2008/5/8 Joshua Paul [EMAIL PROTECTED]:
I'm blurry-eyed, but it seems that trying to determine if an array of
strings contains a certain string is harder than it should be. Am I
overlooking something? If not, how should one compare to arrays of strings?
NSArray? if so, you have
The Void class came into being to support Reflection. So that you
could look for methods whose return type was void.
--
Galen Rhodes
[EMAIL PROTECTED]
http://www.photoyoda.com
http://www.myspace.com/woexpert
On May 7, 2008, at 10:07 PM, Chuck Hill wrote:
On May 7, 2008, at 7:01 PM,
Hi!
Yap. containsObject compares objects using equals(), so it should
work for Strings. If you are not finding the string with this, it's
because it's not on the array. :) Maybe you need to trim() some white
spaces?
Yours
Miguel Arroz
On 2008/05/08, at 09:23, Daniele Corti wrote:
That and make sure you aren't using contains(Object element) as that
is not the same as containsObject(Object object). This bit me a
couple times before I quit making that mistake - usually in the wee
hours of the morning.
Dave
On May 8, 2008, at 8:00 AM, Miguel Arroz wrote:
Yap.
That and make sure you aren't using contains(Object element) as
that is not the same as containsObject(Object object). This bit me
a couple times before I quit making that mistake - usually in the
wee hours of the morning.
In Wonder, these are the same, btw ...
ms
Thanks all...
it was a matter of upper/lowercase.
On May 8, 2008, at 6:10 AM, David Avendasora wrote:
That and make sure you aren't using contains(Object element) as
that is not the same as containsObject(Object object). This bit me
a couple times before I quit making that mistake -
2008/5/8 Joshua Paul [EMAIL PROTECTED]:
Thanks all...
it was a matter of upper/lowercase.
Well, can you insert a toLowerString() while creating the array? if not, you
must iterate over the array and check each element after use toLowerCase().
for exaple:
NSArray first, second
for(int i =
And I thought you have solved the probelms ;-) That is the reason why
I had to switch WO development to Mac a couple of months ago, too.
Though I am a real Mac user since 10 years, I never developed with WO
on a Mac (and never really used Project Builder for WO) ;-)
Strange, but true.
OK,
Don't know about the looking up part... AFAIK return types are not
a part of the method signature in Java, also indicated by Class API,
whose getMethod... stuff does not ask for the return type as a
parameter...
Think that Void class it has more to do with the Metod class'
Besides the question below, I came up with another scenario today...
While it is true that performance should not be an issue with the
records in the inheritance tree, what about relationships? I will
have potentially thousands of records that have two mandatory
relationships to the leaf
Hello Group,
Can anyone advise me best methodologies/ any open source frameworks that
help me implement connection pooling in one of my WebObjects 5.2.4 +
Java 1.4.2.* + Oracle 9i application.
Also advise pros n cons of Connection Pooling.
Thanks in advance.
--
Thank You
Shravan Kumar. M
Ken,
Yeah, I was just thinking about that (see my post from a minute
ago)... Comments on potential performance issues?
F
On May 08, 2008, at 10:04, Ken Anderson wrote:
If you're only going to fetch on the leaf entities, I would favor
horizontal just from an organizational point of view.
Don't know about the looking up part... AFAIK return types are not
a part of the method signature in Java, also indicated by Class API,
whose getMethod... stuff does not ask for the return type as a
parameter...
Well, it's technically part of the method signature, but it is not
required
Well, yea, you can look for methods with a Void return type. You
can use Class.getMethods() and then use the Method.getReturnType() on
each method returned to find them. Also, as of 1.5 you can get the
generic return type too.
--
Galen Rhodes
[EMAIL PROTECTED]
http://www.photoyoda.com
Hi!
Ahhh, the morning... don't work in the morning. Really. Nothing
good will come out from it.
Yours
Miguel Arroz
On 2008/05/08, at 14:10, David Avendasora wrote:
That and make sure you aren't using contains(Object element) as
that is not the same as containsObject(Object object).
Yes, Void.class == void.class.
http://www.unix.org.ua/orelly/java/fclass/ch12_69.htm
--
Galen Rhodes
[EMAIL PROTECTED]
http://www.photoyoda.com
http://www.myspace.com/woexpert
On May 8, 2008, at 10:21 AM, Mike Schrag wrote:
Don't know about the looking up part... AFAIK return types are
It's actually, according to the site I gave, Void.TYPE == void.class.
--
Galen Rhodes
[EMAIL PROTECTED]
http://www.photoyoda.com
http://www.myspace.com/woexpert
On May 8, 2008, at 10:21 AM, Mike Schrag wrote:
Don't know about the looking up part... AFAIK return types are
not a part of
Hi Gino -
If you are looking at the UK then I think you need royal mail PAF
data. We use Postzon data for geocoding postal codes, but IIRC PAF
data converts postcodes to addresses.
SImon
ps. be warned - it's *very* expensive !!
On 7 May 2008, at 14:41, Gino Pacitti wrote:
Hi All
Just
If you're only going to fetch on the leaf entities, I would favor
horizontal just from an organizational point of view. Remember
though, if you have relationships to the root entity (like the inverse
of a to-many relationship that all subentities have), you're still
going to have extra
There are a number of issues with prefetching relationships that
relate back to an abstract entity. I haven't tried this in a VERY
long time, so if I were you, I'd experiment with this before moving
ahead with a concrete plan.
Bottom line, if you don't need other people to access these
Yep .. You win the blue ribbon ... void.class == Void.TYPE. That's
crazy and magical :)
On May 8, 2008, at 10:28 AM, Galen Rhodes wrote:
It's actually, according to the site I gave, Void.TYPE == void.class.
--
Galen Rhodes
[EMAIL PROTECTED]
http://www.photoyoda.com
Yea! I win!
Oh... wait... was that sarcasm?
Sorry I hate to leave a mystery unsolved.
--
Galen Rhodes
[EMAIL PROTECTED]
http://www.photoyoda.com
http://www.myspace.com/woexpert
On May 8, 2008, at 10:33 AM, Mike Schrag wrote:
Yep .. You win the blue ribbon ... void.class == Void.TYPE.
There are a number of issues with prefetching relationships that
relate back to an abstract entity. I haven't tried this in a VERY
long time, so if I were you, I'd experiment with this before moving
ahead with a concrete plan.
Bottom line, if you don't need other people to access these
There are a number of issues with prefetching relationships that
relate back to an abstract entity. I haven't tried this in a VERY
long time, so if I were you, I'd experiment with this before moving
ahead with a concrete plan.
Bottom line, if you don't need other people to access these
15 entities with 30 max records per entity = max 450 records. ..
even with 100 attributes this is probably trivial data size, so I
would not go out of my way to avoid Single Table inheritance for the
sake of avoiding a lot of null fields in the database.
If it was me, for such a
Project Wonder has connection pooling see
ERXObjectStoreCoordinatorPool
On May 8, 2008, at 10:14 AM, Shravan Kumar.M wrote:
Hello Group,
Can anyone advise me best methodologies/ any open source frameworks
that help me implement connection pooling in one of my WebObjects
5.2.4 +
OK - I'm thinking it's time for me to look at WOnder... :)
On May 8, 2008, at 10:43 AM, Mike Schrag wrote:
There are a number of issues with prefetching relationships that
relate back to an abstract entity. I haven't tried this in a VERY
long time, so if I were you, I'd experiment with
On May 08, 2008, at 10:28, Ken Anderson wrote:
There are a number of issues with prefetching relationships that
relate back to an abstract entity.
Yay... Is this true also of single-table inheritance?
I haven't tried this in a VERY long time, so if I were you, I'd
experiment with this
Hello:
I created a test application in WebObject where the I need to create ' CORBA
object for connection registration and wanted to deploy the webobject
application in 'all' server configuration in JBoss 4.2.2 (my application works
fine in 'default' configuration), but I can’t run the
There are a number of issues with prefetching relationships that
relate back to an abstract entity.
Yay... Is this true also of single-table inheritance?
Yes.
Just to get it straight, you keep the not-null constraints in the
model, but skip them in the db? Can't find docs on this...
Yes.
On May 08, 2008, at 10:47, Kieran Kelleher wrote:
15 entities with 30 max records per entity = max 450
records. .. even with 100 attributes this is probably trivial
data size, so I would not go out of my way to avoid Single Table
inheritance for the sake of avoiding a lot of null
On May 08, 2008, at 11:27, Mike Schrag wrote:
All that matters is that you have some restricting qualifier that
specifies how to differentiate the two entities (the value doesn't
matter, but you do need some attribute that specifies which one is
a SubEntity1 and which one is a
Still smells like a hack. :-)
On May 8, 2008, at 7:33 AM, Mike Schrag wrote:
Yep .. You win the blue ribbon ... void.class == Void.TYPE. That's
crazy and magical :)
On May 8, 2008, at 10:28 AM, Galen Rhodes wrote:
It's actually, according to the site I gave, Void.TYPE == void.class.
On May 8, 2008, at 7:46 AM, Ken Anderson wrote:
OK - I'm thinking it's time for me to look at WOnder... :)
M, might be a few years overdue on that one. ;-)
On May 8, 2008, at 10:43 AM, Mike Schrag wrote:
There are a number of issues with prefetching relationships that
relate back
Are you calling me a hack? Ouch!
--
Galen Rhodes
[EMAIL PROTECTED]
http://www.photoyoda.com
http://www.myspace.com/woexpert
On May 8, 2008, at 11:42 AM, Chuck Hill wrote:
Still smells like a hack. :-)
On May 8, 2008, at 7:33 AM, Mike Schrag wrote:
Yep .. You win the blue ribbon ...
Oh, and BTW if this is Java Client you need to set the restricting
qualifier (or type) on both the client AND the server, AND surround
the setter with a check for null first, otherwise it causes all sorts
of weird unrelated errors when you try to delete an instance of the
subclass. This
ROFL!
On May 8, 2008, at 8:59 AM, Galen Rhodes wrote:
Are you calling me a hack? Ouch!
--
Galen Rhodes
[EMAIL PROTECTED]
http://www.photoyoda.com
http://www.myspace.com/woexpert
On May 8, 2008, at 11:42 AM, Chuck Hill wrote:
Still smells like a hack. :-)
On May 8, 2008, at 7:33 AM,
I did get that... Apple's docs explain it clearly... What I don't
get is why they use the integers 2 and 9 in a three entity setup
(abstract root + 2 concrete) as qualifier values...
Totally arbitrary. I would assume they chose 2 and 9 to make it
explicitly appear arbitrary.
ms
On May 8, 2008, at 8:27 AM, Mike Schrag wrote:
Just to get it straight, you keep the not-null constraints in the
model, but skip them in the db? Can't find docs on this...
Yes. Welcome to the awesome docs on inheritance in EOF. They don't
document a LOT of stuff. Just try to understand
On May 8, 2008, at 7:14 AM, Florijan Stamenkovic wrote:
Besides the question below, I came up with another scenario today...
While it is true that performance should not be an issue with the
records in the inheritance tree, what about relationships? I will
have potentially thousands of
On May 8, 2008, at 10:08 AM, David Avendasora wrote:
How will it work for Wonder's Partial Entities that are part of a
Vertical Inheritance structure on a full moon with Pluto in the
third house?
Yes.
Chuck
On May 8, 2008, at 12:51 PM, Chuck Hill wrote:
On May 8, 2008, at 7:14 AM,
On May 08, 2008, at 12:51, Chuck Hill wrote:
Besides the question below, I came up with another scenario
today... While it is true that performance should not be an issue
with the records in the inheritance tree, what about
relationships? I will have potentially thousands of records that
How will it work for Wonder's Partial Entities that are part of a
Vertical Inheritance structure on a full moon with Pluto in the
third house?
Yes.
I totally disagree with that! Totally!
- hugi
// Hugi Thordarson
// http://hugi.karlmenn.is/
On May 8, 2008, at 11:29 AM, Florijan Stamenkovic wrote:
On May 08, 2008, at 10:47, Kieran Kelleher wrote:
15 entities with 30 max records per entity = max 450
records. .. even with 100 attributes this is probably trivial
data size, so I would not go out of my way to avoid Single
How will it work for Wonder's Partial Entities that are part of a
Vertical Inheritance structure on a full moon with Pluto in the third
house?
On May 8, 2008, at 12:51 PM, Chuck Hill wrote:
On May 8, 2008, at 7:14 AM, Florijan Stamenkovic wrote:
Besides the question below, I came up with
On May 8, 2008, at 10:26 AM, Hugi Þórðarson wrote:
How will it work for Wonder's Partial Entities that are part of
a Vertical Inheritance structure on a full moon with Pluto in the
third house?
Yes.
I totally disagree with that! Totally!
Well, of course it is all different in the
Where to begin
If anyone here has used Confluence, you'll be familiar with its
content macros. I love them, and I've been working on integrating them
in my WO projects. I'm interested in knowing if someone has actually
implemented something like these macros in WO, because I'm having
But. What I keep thinking is: Hugi, you're doing this the wrong
way. A Macro is nothing but a component, arguments are just bindings
- and you're reinventing WO-inline syntax in a bad way.
My first thought .. I don't see the point? If you're talking about
supporting this in dynamic content,
Kieran,
Thanks for the explanation. I understand what you mean now... It
definitely sounds good, though I have still to figure out exactly how
I would apply this to my situation. Since among the inheritance types
EOF provides single-table seems most applicable to my situation, I
might
Whoops, I forgot to mention that. Yes, the whole point is to support
dynamic content. It's a content management system, and none-
programmers are using the syntax to do stuff only WO programmers would
be able to do otherwise. Like write {km:currentdate} into the content
of a web page (a
For clarification, some code.
http://svn.karlmenn.is/Hugi/trunk/src/is/karlmenn/hugi/Application.java
user/pw : temp/temp
The method handlemacros( WORequest, WOResponse ) is the meat.
- hugi
// Hugi Thordarson
// http://hugi.karlmenn.is/
On 8.5.2008, at 19:11, Hugi Þórðarson wrote:
Hello folks,
I searched the archives, read the doc (http://wiki.objectstyle.org/confluence/display/WOL/Deploy+a+WO+Application
), and tried both methods of building. The framework it uses it in the
correct location. I did permissions 777 everywhere just to be sure.
I'm not even getting a
On May 8, 2008, at 10:05 AM, Jaime Magiera wrote:
I searched the archives, read the doc (http://wiki.objectstyle.org/confluence/display/WOL/Deploy+a+WO+Application
), and tried both methods of building. The framework it uses it in
the correct location. I did permissions 777 everywhere just to
On May 8, 2008, at 4:28 PM, Art Isbell wrote:
Try launching your app from a shell prompt
Thank you very much. Forgot about launching from the shell.
Interestingly, the jar seems to be in the right place, but the app
cannot find it...
node2:/Library/WebObjects/Applications root#
On May 8, 2008, at 1:45 PM, Jaime Magiera wrote:
On May 8, 2008, at 4:28 PM, Art Isbell wrote:
Try launching your app from a shell prompt
Thank you very much. Forgot about launching from the shell.
Interestingly, the jar seems to be in the right place, but the app
cannot find
On May 8, 2008, at 4:48 PM, Chuck Hill wrote:
Is Application in a package? If so, # ApplicationClass need to
indicate that. Look in the project for build.properties:
principalClass=
Got it. Thanks Chuck. I got the simple test app running and am now
trying to get ThoughtConduit
That classpath _looks_ correct. Try the Wonder list, this is a Wonder
issue. I'd guess that your Application.java (and the main() method in
particular) are referencing a class in JavaFoundation before
referencing anything in ERExtensions. What is in main()? What is
Application's super
I'm trying to actively use project wonder. Despite having used
WebObjects for several projects, this is laborious. I've tried to
follow the quickstart documentation at wikibooks, but there are a lot
of places I'm left scratching my head. For example, the documentation
on how to produce
Or you're using the 5.4 Wonder build with WO 5.3 ...
On May 8, 2008, at 7:47 PM, Chuck Hill wrote:
That classpath _looks_ correct. Try the Wonder list, this is a
Wonder issue. I'd guess that your Application.java (and the main()
method in particular) are referencing a class in
David Teran recommends studying the javadocs. However, the only
javadocs I've found appear to be outdated. The link http://webobjects.mdimension.com/wonder/api
does not work once you try to click on a class doc (The requested
URL /wonder/api/er/ajax/AjaxGMarker.html was not found on this
On 8-May-08, at 4:58 PM, Randy Wigginton wrote:
I'm trying to actively use project wonder. Despite having used
WebObjects for several projects, this is laborious.
It's as big as WebObjects, don't expect to understand or use it all
at once. The usual advice is to pick something that you
Are you looking for a substring of a string in an array? Or are you
looking for the whole string? I have written a routine to find the
substring of a string in an array, if that would help.
Don
On May 8, 2008, at 9:39 AM, Daniele Corti wrote:
2008/5/8 Joshua Paul [EMAIL PROTECTED]:
Hugi,
We use our own markup system, Magex, for instructors to be able to design
their own online grammar exercises. The markup is layered on top of and is
complementary to HTML markup so that ordinary humans can edit documents in
Dreamweaver (or GoLive), save, upload, preview, and publish for
64 matches
Mail list logo