Joel Ricker

Greenhorn
+ Follow
since Mar 31, 2004
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 Joel Ricker

I hope I picked the right forum -- I've been working on a client/server application and so far I've been testing on my local network. At some point I want to host it on a better server for the general public. Do I have to change to using J2EE or can I keep using the J2SE toolkit? Also does anybody have any recommendations for low cost servers that I can use to host this project?

Thanks
Joel
18 years ago
I think I understand now about UnicastRemoteObjects but I've run into some other trouble. What I am trying to do is request objects from my Server but decide on the types of objects at runtime. I've created my Server with a method that my client will call asking for a particular type of object. I want to request instances of that type of object but not have to code in a seperate method for each individual class.

For example, here is my interface for my server object:


My implementation looks something like this:




The ??? stands for the return type I'm trying to figure out. So far I have only created one controller class but want to figure this out so I can make this more dyanamic. Since I can't use the specific interface (MyControllerInterface) I've tried things that the interface inherits from such as UnicastRemoteObject, Remote, or also an interface that I created for my controllers to inherit from.

However, when I try to do a cast on the client side like this:

MyControllerInterface controller = (MyControllerInterface) myServer.createControllerInstance("MyController");

I get some sort of failure -- usually CastExceptions. Is there a way around this?

Thanks
Joel
[ July 06, 2005: Message edited by: Joel Ricker ]
18 years ago
I've gotten started with RMI using the tutorial that Sun provides. One thing I'm a little unsure of is when we inherit from different classes. Do all classes I want to use remotely inherit from UnicastRemoteObject or just the object I register with my object server with rmiregistry?

Joel
[ July 06, 2005: Message edited by: Joel Ricker ]
18 years ago
Maybe I'm missing something but can I not get a listing of files in the resource directory at runtime in my MIDlet? Right now I've got all my possible filenames hardcoded in but would like to just load them when the the MIDlet starts.

Joel
18 years ago
Originally posted by Carol Enderlin:
Looks like the problem is not ant-related by javac related, but an ant buildfile should be able to help you get around it.


Right, I understand that. Same thing if I tried to do javac */*.java (which was my first attempt before looking into ant.


If you split it up by student it could work.


I'm trying to avoid that if I can. I would like ant to glob all the directories each time and do a seperate compile on each. I may be missing some directories (if the student does not turn in their work) and this is also something I would share with other teachers as well so I'm trying to keep it easy to use.



my directory structure in case I read your tree wrong:

<basedir>/program1/student1/Something.java
<basedir>/program1/student2/Something.java
<basedir>/program2/student1/OtherThing.java
<basedir>/program2/student2/OtherThing.java


Thats correct.

On the way home I had an idea. Maybe I can use fileset to get all the directory names and then run a seperate ant script passing in each one? I'll check the documentation and see what I can come up with.

Joel
19 years ago
I teach a java class and I am trying to create an Ant build file to help me build and test the work that students submit. The tree stucture may look like this:

Program1
[student 1]
HelloWorld.java
[student 2]
HelloWorld.java
[student 3]
HelloWorld.java

So far the only thing I've been able to do is globbing up all the directories and building them all together. Java then complains that I'm compiling duplicate classes. What I'm looking for is the equivalent to going into each directory, building, then going to the next directory, building, etc.

Thanks,
Joel
19 years ago

Originally posted by Andrew Eccleston:
It's official Joel Ricker is my new favorite person on the entire planet!



Sweet! I'm someones favorite person!

Happy to help Andrew.

Joel
19 years ago

Originally posted by Gregg Bolinger:

What concerns me the most is a scenerio like this. Team A Driver 1 is in the top 10. Team A Driver 2 is not. Will Team A Driver 2 take out other cars in the top 10 to help Team A Driver 1? I know that NASCAR is concerned about this. The remaining cars not in the championship race are only racing for sponsers.



I thought that originally but read an article in the paper last week that said that it was doubtful these sorts of things would happen. The reasoning was that the sponsers wouldn't look to kindly at seeing their cars slammed into a wall simply because the driver wanted to take out a top 10 car. I don't think its going to be much of a problem. Drivers who race hard to the finish will still take home a big prize payout even if they are no longer in the running to win the whole season.

Joel
19 years ago
I think it means something like this:



Here since emp1 and emp2 are both Employee objects, they both have access to each other's salary attribute. If this sort of behavior was not allowed, then we would need to provide getter methods for all private variables if we needed to share information between objects of the same class. This way we do not expose the fact that Employee objects even have a salary attribute.

Hope this helps,
Joel
[ September 02, 2004: Message edited by: Joel Ricker ]
Well we'll need a little more information than that. My cat will not comply but that does not mean he is broken

What exactly is going wrong? What is not working? Pre-installation? Post-installation? Etc....

Joel
19 years ago
I know that Powerpoint lets you export the presentation as a website. It turns each slide into a seperate webpage and builds pretty basic navigation elements so that the person can move from page to page. You can't control it like you would a normal Powerpoint presentation but its better than nothing.

Also, I think Microsoft has a seperate player for Powerpoint presentations so that you can bundle that together with the presentation on the CD. Yep they sure do, here is a link I found: http://www.microsoft.com/downloads/details.aspx?FamilyID=7C404E8E-5513-46C4-AA4F-058A84A37DF1&displaylang=EN

Hope that helps,
Joel
19 years ago
Not long ago I purchased one of these 128 meg USB jumpdrives. I then set it up so that I can carry all of my works in progress as well as my development environment with me whereever I go. So now I can work on my programs either at home, work, or school. Heck, in the middle of Comp-USA if I want to ;P

The problem however is when I try to use it at school. When I plug in the jumpdrive, it starts up a batch file that initializes certain system variables and hunts down installations of the JDK or JRE. The section that searches for the JDK looks like this:



As you can see I use regedit to search for the JDK key in the registry and if it is found, then I can look up the proper paths for JAVA_HOME. However, at school I get the message "Registry editing has been disabled by your administrator". I can understand that but is there a way of getting to the registry in a read only mode? Or maybe some other way of detecting the presence of the JDK or JRE?
19 years ago
Living in the US, I don't think the information quite applies to me as well as the fact that mobile computing is just a tad beyond my skills right now. However, the shirt sure is cool

Joel
19 years ago
I've sent invites to Andrew and Anshul as well as requesting Suresh's email adress for their invite. After that I'll be out so anybody else it sounds like Punit will be happy to fill them for you.

Joel
19 years ago

Originally posted by fred rosenberger:
it requires an invite right now because it's still in beta.



It looks to me like they've done this less out of testing and more to avoid a "slashdot" effect. Rather than deal with an initial rush of users, they can scale up the servers based on normal use.

BTW, I have a couple of invitations I can send out. Let me know if someone here would like one.

Joel
[ September 01, 2004: Message edited by: Joel Ricker ]
19 years ago