Tom Hughes

Ranch Hand
+ Follow
since Feb 09, 2002
Merit badge: grant badges
For More
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 Tom Hughes

Cheers Nate. You know I've tried it at work and now it works for me too. Must be something wrong with my setup at home.
I notice that the image still gets corrupted when the applet scrolls on and off the web page (e.g. when I make my browser window real small & scroll around). It kind of rights itself when you click on where the applet should be. Is there a cure for this ?
thanks,
Tom
21 years ago
thanks for the suggestion, but I do that already.
Tom
21 years ago
Hi there,
I've created a little ImageViewer applet. I use simple ImagePanels that overide paintComponent and paints a picture. This works fine, except when I put it in a scroll pane. When the image scrolls, the image gets corrupted. I'm not 100% sure what is happening, I figure I need to call paint, repaint or revalidate at some point but not exactly sure.
An example is here
Please help !
thanks,
Tom
21 years ago
Nice topic. Some of your choices have now made their way onto my Christmas list !
My choices are The Great Gatsby (F. ScottFitzgerald) and 1984 (George Orwell). Two great novels that get better everytime I read them.
T.
21 years ago
Failed at the 1st and 2nd hurdles. My ISP web server is not jsp enabled. Also I can only upload files, not execute them, so I couldn't even run a java based db.
Guess I need a new ISP !!
T.
[ December 04, 2002: Message edited by: Tom Hughes ]
21 years ago
England aren't that bad my friends, one bad series does not a bad team make.
An even if all else fails, I still have sweet, sweet blind optimism to fall back on !
Looking forward to a great competition.
T.
21 years ago
thanks ! I'll give it a blast tonight and tell you how I get on.
Tom.
21 years ago
Hi there,
Seems to be no go with my ISP. Does anyone know of any ISPs that provide internet access ?
thanks,
Tom
21 years ago
I have contact them but no response as yet. There's nothing on their help page also.

Originally posted by Marilyn de Queiroz:
However, I think any database will have to be installed by your ISP.


If it was an NT server I could run MS Access without my ISP having to do anything (couldn't I?). I was hoping I could get some similar 'desktop' style db for Unix.
thanks,
Tom
21 years ago
Australia are *easily* the best team in the world - I'd be suprised if they don't win it. I'm still hoping England will win something, sometime, somewhere...
[ November 30, 2002: Message edited by: Tom Hughes ]
21 years ago
Hi there,
As a part usefull/part exploration home project I want to write some JSPs that query a database. I want to run the JSPs on the internet. My problem is that I'm not sure how to get a sql implementation working in my webspace (my ISP is BTOpenworld). I know 'heavyweight' sql implementations like Sybase and Oracle require system services installed which I cannot do. As my site is going to be simple and low volume I can use a 'lightweight' implementation.
So, does anyone know a sql implementation that will help me here ? (or some other advice). Something like MSAcess for Unix would work I think.
cheers,
Tom
21 years ago
Someone once told me that hashmap changed from using an open hashing (1.3) to a closed hashing strategy (1.4) - or maybe vice versa, my memory is a bit hazy !
Could this explain the change in performance ?
T.
21 years ago
Josh Bloch says this (see his must-read book Effective Java for more details) :
"The constant interface pattern is a poor use of interfaces. That a class uses some constants internally is an implementation detail. Implementing a constant interface causes this implementation detail to leak into the class’s exported API. It is of no consequence to the users of a class that the class implements a constant interface. In fact, it may even confuse them. Worse, it represents a commitment: if in a future release the class is modified so that it no longer needs to use the con-stants, it still must implement the interface to ensure binary compatibility. If a nonfinal class implements a constant interface, all of its subclasses will have their namespaces polluted by the constants in the interface."
he then goes on to suggest using a non-instantiable class instead. e.g :

I totally agree, on top the reasons above this way is much neater and makes more sense; how many times does the is-a (or behaves-as-a) test hold up when constant interfaces are used ? I've never seen it.
T.
[ November 13, 2002: Message edited by: Tom Hughes ]
21 years ago