Still a few kinks

5 views
Skip to first unread message

Jon Kiparsky

unread,
Apr 14, 2010, 4:21:54 PM4/14/10
to tbs-...@googlegroups.com
Okay, there is now a link from www.umbcs.org to to the applet. There are some problems left to solve, however.
- The applet is not loading properties or images
- The applet is not conveying the sudent's data to the perl script

(I know that the perl is writing to the file system, because it updates the "last visited" field in the student's data file with the current time, and I can force it to update other variables. It just isn't getting values to write)

This may be a simple problem, but I haven't spotted the cause yet. Andrew, perhaps you can take a look - I've left some notes in the TBS_Deployable script that will show you where I've been looking.

In the meantime, you can see it start up and exit normally. Follow the link above and log in as John Smith, password "tester". Not very exciting, but it's there.

The remaining task is to generate the perl script which Brian will run to add a batch of students. I'll do that this weekend.

Andrew.S...@bbh.com

unread,
Apr 14, 2010, 8:11:18 PM4/14/10
to tbs-...@googlegroups.com
Dude how were able to load the JAR onto the server.  I keep trying to, but it is not listed under the supported file types.


-----tbs-...@googlegroups.com wrote: -----

To: tbs-...@googlegroups.com
From: Jon Kiparsky <jon.ki...@gmail.com>
Sent by: tbs-...@googlegroups.com
Date: 04/14/2010 04:21PM
Subject: [tbs-group] Still a few kinks
--
You received this message because you are subscribed to the Google Groups "tbs-group" group.
To post to this group, send email to tbs-...@googlegroups.com.
To unsubscribe from this group, send email to tbs-group+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tbs-group?hl=en.


*************************** IMPORTANT NOTE*****************************-- The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman & Co., its subsidiaries and affiliates ("BBH"). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus. ********************************************************************************

Andrew.S...@bbh.com

unread,
Apr 14, 2010, 8:48:02 PM4/14/10
to tbs-...@googlegroups.com
Jon,
   After some struggling I was able to figure out how to upload a jarfile.  (Place it within a .zip, upload the .zip and then use the archive function on fatcow to unzip it to a directory).  I was also able to upload a perl script that correctly saves a tree for a user. 
  The things that still need to be worked out on the perl script:
1) connecting to the admin applet
2) loading current students into the admin applet
3) setting up folder structure for the students and classes
4) having the perl script look in this folder and return the right data
 
Jon looks like you got some work ahead of you dude.  I am actually going to work on trying to get a working demo of the last slide in my powerpoint slides on my local computer for the presentation tuesday(it may be wishful thinking).  I am also going to working on trying to setup this "ideal" convex hulls idea that we were discussing in the meeting yesterday.
 
Let me know if you have any questions on what I did to get this working.  The perl script I used was the one that is on subversion and I just altered some of the local variables ($js_loc, $jar_loc, $student_index, $dummy_index).

-----tbs-...@googlegroups.com wrote: -----

To: tbs-...@googlegroups.com
From: Jon Kiparsky <jon.ki...@gmail.com>
Sent by: tbs-...@googlegroups.com
Date: 04/14/2010 04:21PM
Subject: [tbs-group] Still a few kinks

--
You received this message because you are subscribed to the Google Groups "tbs-group" group.
To post to this group, send email to tbs-...@googlegroups.com.
To unsubscribe from this group, send email to tbs-group+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tbs-group?hl=en.

Jon Kiparsky

unread,
Apr 15, 2010, 12:41:47 AM4/15/10
to tbs-...@googlegroups.com
ftp ftp.umbcs.org

username ebolker, password you know
cd cgi-bin/TBS
put TBSRun.jar

Next time I'm in there I'll set up a TBS user for ftp, which will take you straight there.

Jon Kiparsky

unread,
Apr 15, 2010, 1:02:34 AM4/15/10
to tbs-...@googlegroups.com
I'm still not seeing organisms. I guess I'll check from the Windows boot...

Andrew.S...@bbh.com

unread,
Apr 17, 2010, 8:01:19 PM4/17/10
to tbs-...@googlegroups.com
Hey guys,
  I have now spent all nite and all day today working on the new facets of the scoring.  I started by trying to add a nice GUI representation of hull collisions.  I got pretty far, but then I found out that what I was previously using for checking if hull collided was accidentally getting correct results.
 
Apparently to use the Area object in java you need to be correctly loading the points on the hull into the Polygon object that get loaded into the Area object.  Clockwise or Counterclockwise should work.  I have been working on trying to sort the points on the hull into either one of these orders, but nothing doing so far.  I have tried using the Math package's atan2() function after reading this is how to sort points this way, but it still wasn't working correctly. 
 
If you guys get the latest code, run 'ant jarfile' and then 'ant run_admin' you will be able to see my dilemma on the first tree in the list when you click on the first collision 'Vert - Invert".
 
Anyways, now that I have lost a day and a half, I will beginning work on my servlet demos for tuesday's presentation.  So if any of you guys can figure out a way in java to sort a groups of points on a 2-dimensional plane in clockwise or counterclockwise order it would be a huge help.
 
Andrew

Andrew.S...@bbh.com

unread,
Apr 18, 2010, 9:13:52 AM4/18/10
to tbs-...@googlegroups.com
Hey guys, don't worry about this problem.  I think I may have found a solution involing a Graham-Scan algorithm.  Woke up this morning and dug into the old algorithm's book!


-----tbs-...@googlegroups.com wrote: -----

To: tbs-...@googlegroups.com
From: Andrew.S...@bbh.com
Sent by: tbs-...@googlegroups.com
Date: 04/17/2010 08:01PM
Subject: [tbs-group] Scoring

Jon Kiparsky

unread,
Apr 18, 2010, 10:54:56 AM4/18/10
to tbs-...@googlegroups.com
Sometimes that old stuff can be handy...

Andrew.S...@bbh.com

unread,
Apr 18, 2010, 11:51:09 AM4/18/10
to tbs-...@googlegroups.com
Just as I thought.  Going back to basics worked like a charm.  You guys should try running the admin applet locally to see the results. Its pretty sick. Now i'm gonna start working on servlets, but with this code I have a good feeling that I can code up "Optimal" hulls by the end of the month.

From: Jon Kiparsky <jon.ki...@gmail.com>
Sent by: tbs-...@googlegroups.com
Date: 04/18/2010 10:54AM
Subject: Re: [tbs-group] Scoring
Reply all
Reply to author
Forward
0 new messages