Win a copy of Head First Android this week in the Android forum!

Dave Hewy

Ranch Hand
+ Follow
since Aug 21, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dave Hewy

Hi,

can you tell me if this book shows how to code an outline view?

We use a home grown language for some stuff we do, and though I have created an editor with keyword colouring, I would like to add an outline view but much googling hasn't turned up any help. For me, that would warrant buying the book on its own !

Thanks in advance.

Dave
Strictly speaking Don is right, you can only specify one class after the extends keyword.

But when you add interfaces into the mix it is possible to engage in multiple "contracts" - similar in many ways to extending several abstract classes that have abstract methods with no implementation.

I've seen many a thread of discussion on Java multiple inheritance !
13 years ago
Hi,

I've installed Java 1.6 and the browser plugins, but am having a problem authenticating against our proxy. I was previously using Java 1.4.2 and did not have this problem.

The dialog that appears asks for my user/password and states it is using Integrated Windows authenication, and I think I need to be using plain text authentication according to the people who manage our network. No matter what I enter into the dialog I just cannot get through the proxy.

I know little about security so although I have had a few google sessions I cannot find out how to resolve it - can anyone please help ?

Dave
[ September 25, 2007: Message edited by: Dave Hewy ]
14 years ago
Ok, thanks - I thought that would be the case, just wondered if anyone had any ideas !

Dave
I want to get a message from a JMS queue that has an embedded object.

The program I'm writing is a utility, therefore I do no want to have the embedded object class in the utility, instead I would like to invoke methods on it using reflection.

When I try this, I get a JMSException saying that there was an error deserializing the object, and the cause is ClassNotFoundException.

If I put the embedded object into the utility so it's in the classpath, it works fine.

Is there as way to *NOT* have the class defined in the utility ?

Thanks for any help.

Regards

Dave
I have a requirement to compare 2 XML files, say A and B, and to mark-up B to flag the differences. I think at this stage the structure will be the same, but am not certain.

So if an element has changed in B, then B would have an extra attribute added, something like changed="Y".

I need to do this programatically, has anyone had a similar experience that can point me at some info ?

TIA

Dave
Mmmm - I'm not sure what the link between languages and expressions is?

I thought most things that fit into some kind of pattern (and this does) could, or should be able to be parsed with regular expressions.

Having said that, I'm not a regex expert, hence my original post!

I can quite easily do this with Java, but I have a lot of these to parse and thought regex would probably be faster - but in reality, it probably won't make that much difference.

Thanks anyway for your replies.

Dave.
15 years ago
Yes, I would like to do this with regex if possible, before I investigate other methods.
15 years ago
Hi - I need some help to create a regular expression that will parse a line of comma separated values. The problem is that, some of the values have embedded commas that I want to ignore. Here's an example...

100,to_date('18-Jan-2001','dd-mon-yyyy'),-6,0,1,0,1,'M','Male',10,'2','M'

Look at the value starting to_date...., I don't want the embedded comma to act as a value separator.

Can anyone help with a Regex I can use on String.split to get an array of the values?

Thanks

Dave.
15 years ago
I'll answer my own question, in case anyone else finds this useful.

There is a plugin that can do just this at http://sourceforge.net/projects/cvschangelog/
Does anyone know a way of identifying files checked into CVS with a specific comment, or even a specific date, or by a specific person?

I use Eclipse (3.1.0), but as far as I can tell this feature isn't available.

Thanks for any info.

Dave
Is it possible to find out which JVM args have been specified from within the running JVM, such as -Xdebug, -Xms ...etc?

I'm using 1.4.2.

Thanks

Dave.
15 years ago
Thanks for your replies.

I know Eclipse can do this on an individual basis, but I want to do it for a complete Java class, in one go.

Looks like a home-grown solution is the only option if noone knows of anything out there that can do this.
This is a long shot, but you never know !

Does anyone know of a tool (even better, Eclipse plugin) that allows local variables to be prefixed, ie change status to xStatus?

I ask because we're trying to use Checkstyle within Eclipse to enforce our coding standards, but we have some really big classes that means this chore can take a couple of hours to prefix all our local vars.

Dave