Author Archives: pgfeldman

Phil 2.23.11

7:30 -5:30 VISIBILITY

  • Server Meeting today at 11:15. Don’t see how I can make that
  • Over at site starting at 1:30
  • Setting up rJava: http://www.mumuen.com/2010/10/running-r-in-java-with-jrirjava.html
  • Got the rtest code in the rJava examples directory compiling. It turns out that the CRAN directory has an old version. Sheesh. Updated the maven repo with the version 9 jars. Added R_HOME to the path. Restarting all to register changes… No joy.
  • Following the directions here: http://mithil-tech.blogspot.com/2009/11/r-and-java-jri-via-eclipse.html
    • That worked!
  • Next will be to get R to run in Tomcat: Here’s where I’ll start: http://wiki.cvrgrid.org/index.php/RJava/jri_Setup
  • Useful r packages so far (google “CRAN xx’ for detailed info on the package):
    • sqldf – allows SQL manipulation of tables
    • reshape – for manipulation of data types
    • gwidgets – support for interactive graphics
    • HH
    • rJava – java interaction
    • RServe – R as a webserver

Dong Shin 02.22.2011

  • FGMDEV backups working….
  • PPM
    • rearranging components to support Active Project search…
    • Project filtering query…..
      SELECT p.begin_year, (p.end_year+MAX(a.duration)) as end_year, p.uid
      FROM budget_centers c, projects p, appropriations a
      WHERE c.project_id = p.uid AND c.appropriation = a.type
      GROUP BY p.uid

Tom.Devito (2-17-2011) – (2-21-2011)

2-17-2011

  • Got to a point with the audio amplifier controller which I cannot pass without testing my assumptions on the chips operation.
  • Chips came in but no adapter boards to mount them on yet
  • Resumed work on the OpenGL articulated hand.
  • Got one finger working, mirrored it to make sure all my assumptions were true.

2-18-2011

  • Still no adapters for chips continued to work on the articulated hand.
  • Added Camera function.  Had a lot of problems getting this working.  Almost all of these problems had to do with me putting things in the wrong place.
  • Noticed that there are some flaws with the current method of rotation.  Found this site http://stackoverflow.com/questions/2758501/rotating-in-opengl-relative-to-the-viewport which explains that you need to use quaternions to make it so you can spin the object without its coordinates flipping.  There is some example classes in java on this site.  Will look for a c++ class or transcribe this once I get the hand drawn.
  • Experimented a bit more with various OpenGL functions as  prepared to move the current work out of the sandbox.

2-21-2011

  • Moved out of the sandbox.  Set the stage, made a finger class with parameter(x,y,z,length)
  • Had many many problems getting this to behave properly mostly due to forgetting to initialize variables and other simple things eventually got it to draw right.
  • Was having a problem with the animation that it was jumping all over the place.  Thought this might be a real-time issue since the animation method was no longer in the top level glut program.  Read a bit of the chapter on real-time then I realized yet again  forgot to initialize yet another important variable….
  • All the animation I did so far was 2D.  I experimented with animating in 3d since the thumb is going to need this.
  • Random Thought:  It may be good to put a force based joy-stick on the thumb to help give it a greater degree of freedom then can be achieved with strain gauges alone.  The thumb has a great amount of 3-dimensional freedom that is essential to being able to pick up small objects.  I think this would work best if the surface is flat and it disables the extra freedom when you press in so that the thumb does not move around when you try to grab something.

Phil 2.22.11

9:00 – 6:00VISIBILITY

  • Had a talk with John W last Friday about the increase in hours charged 4 hrs/week to 10 hrs week for catwalk. Told him that I basically couldn’t do the level of support that I had been doing for 45min/day and that I wouldn’t be coming by unless he tells me that there is a problem.
  • Going to try to talk to R through Java today.
  • Found a cool audio synthsizer library for the next hand – https://ccrma.stanford.edu/software/stk/
  • So that I can find this the next time: Webstart, Servlet, IDE, findme!
  • Interviews!
  • Got RServe installed. Going to take a look at interfacing that way.

Mike 2.21.2011

  • Came in this morning and the internet was out.  Ended up calling Comcast with Kristi and they helped us sort it out
  • More progress on saving and loading of dynamic objects
    • Have custom serialization working to minimize the amount of data sent back and forth while sending dynamic objects
    • Have a simple UI for querying for all available types
    • It can then request all object of a specific type and display them
    • Attempted to delete object but ran in to some problems, still sorting it out

Dong Shin 02.21.2011

  • FGMDEV Backup – noticed deletion not working properly, modified the script. check tomorrow…
  • PPM
    • Added DataRequestsEmailsWindow, RequestEmailTextHBox to support multiple request email generation from DataRequestPanel
    • continue working on Excel export….

Dong Shin 02.18.2011

  • FGMDEV backup is working… yeah!
  • PPM Changes
    • set dataProviders manually so that filtering doesn’t flicker between all list and filtered list in DataRequestFormWindow
    • filtering added to Users in DataRequestFormWindow
    • Status filtering ComboBox and Description filtering textbox added to DataRequestPanel. This work together as a filtering set.

Phil 2.17.11

7:30 – 4:00 VISIBILITY

  • Meeting with Trish Christie and Leia(?).
    • add “… for the monthly status report deliverable which is due (month) 10th”  to the generated email.
    • Add the ability to sort and filter”Create New Request” panel and “Saved Requests” (project, status, personnel roles. etc)
    • Time that a project should be included in a report request is from the first budget year to the last budget year plus the appropriation period
    • For creating (or adding to?) a request, it may be necessary to look at projects that will become active up to some period in the future, so that as projects become active, they will be included in requests
  • Went over meeting action items with Dong.
  • Based on a conversation with April, I’m looking at developing a Flex GUI interface to R, running on the server and accessed through rJava.
  • Talked to Brian about moving my client schedule from morning to afternoon

Tom.DeVito 2.16.2011

Adding audio control to RCS System:

  • Moved comportsetup to the audio executive class because the com port should only be initialized once.
  • Changed the parameters of the SoundController constructor to have id, PointMass, and string.  The id is the i2c address, PointMass is the instance which corresponds to the finger, and the string is the name.
  • Ran into an error where it said SoundController couldn’t be instanced because it was abstract.  Realized I didn’t have postProcess() in my class.
  • Defined states and commands.

Testing the Hand:

  • Calibrated the amplifiers
  • Tested the code with Phil.  A few minor bugs were identified and fixed.

Dong Shin 02.17.2011

  • FGMDEV backup working….. check again tomorrow.
  • PPM
    • creating queries for project export…. would like to put all the calculation on queries.
    • got feedback on Data Request
      • moved Users and Project to DataRequestFrom
      • added color-coded status for the Requests
      • added CheckBox filters to show selected/saved users and projects

Phil 2.16.2011

7:30 – 5:30 VISIBILITY

  • Working on setting up a meeting with Christie and Trish to go over Dong’s proposal
  • Showed Dong how to set up the Web Application with server in Eclipse. He thinks that he might be able to make it work with Maven
  • Endless ANOVA
  • Worked a bit on the hand with Tom. Everything seems to be working. Yipee!

Mike 2.16.2011

More progress on the dynamic object hibernate database thing.  Now transferring meta information to and from Flex along with the dynamic objects.

Found a weird bug with internet explorer while trying to download .docx, .pptx, or any other new microsoft office files.  Internet explorer automatically renames a file such as myDocument.docx to myDocument.zip, but it’s not the site zipping up your file and sending it to you to save space.  It’s Internet Explorer RENAMING THE FILE BECAUSE IT’S RETARDED.  It then tries to open your document as a zip file and confuses the hell out of the people using our SCT blog.  Dong and I overwrote the mime type definitions on our apache server to resolve the problem.  Details here.

Tom 2.15.2011

Adding sound control to the RCS:

This post regards adding control of the TDA8551T audio amplifier to the RCS System.

  • To set the volume of the TDA8551T you have to send pulses high and low signals as relative to the float signal to raise and lower the volume.
  • Mute and operational mode is controlled by a second trinary switch.  The difference is that this one works on constant signal as opposed to pulses.  High signal puts the device in standby, float signal mutes, and low signal set it to operating mode.
  • Although I think that mute will be needed to silence the amplifier, if the lowest step is silent it would eliminate the need for the second switch to be computer controlled.  This would allow 1 AD5248 to control two amplifiers.  If it is needed we will need a second usb to i2c adapter for the fifth finger because there are only 4 address combination for the AD5248.
  • Most supporting methods are written with the exception of the one that converts collision to steps.  Need to work on an audio executive class as well as the core preProcess and decisionProcess methods.

NOTES:

Collision can be extracted from the corresponding PointMass object which can be found in the data dictionary.

After reviewing the phidgetsExec, it has become obvious why I would want a separate executive for audio.

Dong Shin 02.16.2011

  • FGMDEV backup still not working
    • tweaked the script to use /exchange/backups directory…
  • PPM
    • server code is out of sync, saved all the changes, rechecked in and out.
    • working on Project export
    • Security error when trying to save Excel file…
      • Error: Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press.
      • for security reason, FileReference.save() must be initiated from a user interaction… Arrrgh!
      • Added Alert to confirm save
    • Changed EdgeUtils.ExportUtils to have an option of saving files with and without header
  • Eclipse and Tomcat server configuration using Maven for Dynamic Web Project
    1. set up your Tomcat server instance within Eclipse IDE
    2. generate Eclipse project settings from the pom.xml you created, the packaging type must be war to use this feature.
      • mvn eclipse:eclipse -Dwtpversion=1.5
    3. web.xml may need some changes as Eclipse complains about the order of elements within <webapp/>. Follow this order….
      1. icon
      2. display-name
      3. description
      4. distributable
      5. context-param
      6. filter
      7. filter-mapping
      8. listener
      9. servlet
      10. servlet-mapping
      11. session-config
      12. mime-mapping
      13. welcome-file-list
      14. error-page
      15. taglib
      16. resource-env-ref
      17. resource-ref
      18. security-constraint
      19. login-config
      20. security-role
      21. env-entry
      22. ejb-ref
      23. ejb-local-ref
    4. add the project to the server by right clicking the Tomcat server in Servers view and selecting Add and Remove in the context menu.
      • got weird errors, “Validation Message” that points to nowhere… no effect on building projects, though.
    5. set a break point, stop and start the server in Debug… now you can debug your Java/Server code!