- playing with Phil’s WebIDE projects
- struggling to get the Runtime.getTuntim().exec() to work in OS X environment
- initiated it with ‘sh -i’, tried bash, csh,…. none is better than the others
- found that Windows code waits for ‘C:’ prompt
- Mac’s doesn’t return any prompt, gets stuck at BufferedReader.readLine()
- put a Timer in there and experimented with it, couldn’t return control to continue the code execution, but this may be the way to go
- will experiment on the Linux box here at the office.
Category Archives: Projects
Phil 3.24.11
8:00 – 5:30 VISIBILITY
- Got my new leather mouse to match my leather mousepad. Need a leather computer and keyboard 🙂
- Doing more upgrades on the R install on fgmdev. Here’s hoping nothing breaks. Pretty much everything is out of date.
- Well, I got 25 errors, but didn’t break anything.
- Talked to Dong about the problems that he’s having with Runtime.exec() on the Mac
- Having Tom install the VISIBILITY suite on one of FGM VA’s servers
- Initial work on adding in MANOVA and MANCOVA
- Walked through table issues with Mike.
- Webinar on cloud computing at 2:00: http://event.on24.com/r.htm?e=292186&s=1&k=69E5FCD268EA18FC4E0A060B96973886
Tom.DeVito 3-23.2011
Arduino Audio:
- Some commands need two bytes of data sent from the computer to the arduino. For these commands I added a serial.read() after they happen to get the second byte.
- Mostly done with the sketch for audio control. Only a couple more functions to code.
- Once I get this working I will try to read the strain gauge amplifier with the arduino.
Dong Shin 03.23.2011
- updated pom’s in WebIDEInterfaceSandbox and WebIDEServerSandbox and deployed
- additional repositories for WebIDE projects
<repository>
<id>jspresso</id>
<name>Jspresso</name>
</repository>
<repository>
<id>google-maven-snapshot-repository</id>
<name>Google Maven Snapshot Repository</name>
</repository>
Phil 3.23.11
8:00 – 6:00 VISIBILITY
- Write status report for the last 7 hours of CATWALK
- Write reqs for the applet version of the scripting system. Started here: http://www.fgmdev.com/blogs/?page_id=5220
- Making sure that the coefficient order matches the group order
- Commented my WebInterfaceIDE Server and Client code and walked Dong through it
- Phone call with Brian and Bill on server migration
- Finished fixing bugs, trying to port to fgmdev. Getting Java null exception errors back. Going to make a console panel for sending raw queries and getting responses. Done. It turns out that I was using an old version of Rserve (0.4-7) that came with the Debian apt-get system. The version that I was developing against is version 0.6-3. I installed that using install.packages(“Rserve”). Fortunately that compiled and loaded properly (unlike HH). The new version is here: fgmdev:/usr/local/lib/R/site-library/Rserve. That’s the one that needs to be started.
- added rserve_start to the .bashrc file for root.
Tom.DeVito 3.22.2011
Arduino Audio:
- Got the SOMO working. Had to move the 3.3volt power leads closer to the SOMO on the breadboard and put in 2.2k resistors on the serial lines.
- Tried out the new speakers. Its a bit quiet using the built-in SOMO amplifier.
- Working on combining code from SOMO demo program and my volume controller so I can use the amp.
- Only using the functions I need for the SOMO to keep it optimal.
- Eliminated some of the delays that are only there for direct user interaction.
- Shortened delay in command send to 100uS down from 200uS
- Have not tried reading the force signal amplifiers yet. Should be pretty straight forward. Will try it once I get audio working well.
- Tried to get the add-on for Visual Studio to work but I cannot find the add-on folder in any of the places it should be. Oh well, the arduino software is okay I guess.
Other notes:
- Yet another idea of mine, being worked on by someone else: http://www.macotakara.jp/blog/index.php?ID=11085
- It is a bit better then my idea because mine would have required head mounting.
- Oh well eventually I will think of something unique…. Haven’t seen anyone doing my math app yet (keyword yet…).
Phil 3.22.11
7:30 – 5:00 VISIBILITY
- trying to get the fgmdev version of R matching the dev version
- everything but vcd and HH are in the debian distribution
- installed and loaded vcd from within R
- HH failed. It needs a newer version of multcomp. Grr. Re-rigged the code so that it’s not needed.
- Adding running totals of coefficients to ANCOVA – done
- Checked up on PPM, which is running fine, but not being used. Helped write up more justification with Bill. Noticed that Matt H. was poking around in some of the + data.
- Reworked the creation of tables so that they can have columns with different numbers of items in them. Did this by inserting the special ‘NA’ symbol into the list after the last element up to the length of the longest element.
Tom.DeVito 3-21-2011
- Finally got I2c to work. Not sure if it was just addressed wrong all this time or if I fixed it when rewiring. The address used was 0x2c. I am pretty sure I tried this before which is why I think it was the wiring.
- SOMO won’t work right now. Wanted to test the speaker but somethings wrong.
- Wired one speaker so its good to go when i figure out why the somo isn’t working.
- The first time in order to got it working, there was a problem with the serial lines not having a resistor on them. Pretty sure it should be 2.2k on each line.
Phil 3.21.11
7:30 – 5:30
- Hey! It’s Spring! Boy, is it wet.
- Tried to connect Outlook to the FGM webmail, just to see if that could work. So far, it just seems to kill Outlook.
- Adding image size arguments to evaltoJpeg() – done
- Adding a “Save Chart” option – done
- Deleted and reloaded R on fgmdev. I have a script for removing and installing components, since install.packages() seems to break the installation. Did a quick test by running library(multcomp), which did not complain. Will try Rserve later.
- Adding running totals of coefficients to ANCOVA
- Making sure that the coefficient order matches the group order
- Adding handling of NA in tables and/or dataframes
- Need to figure out how to get multcomp working on debian – done. Next is HH
Phil 3.17.11
7:30 – 7:00 VISIBILITY
- Testing code today
- Need to add image size arguments to evaltoJpeg()
- Need to add running totals of coefficients to ANCOVA
- Need to make sure that the coeeficient order matches the group order
- Need to add handling of NA in tables and/or dataframes
Phil 3.16.11
8:00 – 6:30 VISIBILITY
- CRAN is down, which is messing up my testing – it’s back up again. Test tomorrow.
- Need to write up a progress report for Larry
- Spent the rest of the day putting together complex contrasts, which required reworking the RTestBase class, which then requred fixes of the Student T and ANOVA classes. Hopefully, I can get all of this working on fgmdev, I was having some trouble with library(HH) before CRAN went down.
Dong Shin 03.16.2011
- PPM
- cleaned up Server’s pom.xml so that it deploys correctly
- Financial Status Data
- Cumulative totals for Initiate/Commit, Obligation, Outlay, and PM Actual Outlay added
- Available Balance = Remaining / Total Amount * 100
- Initiate Commit % = Total Initiate/Commit / Total Amount * 100
- Data updates recalculates the summary
Tom.DeVito 3-15-11
Eliminating the need for i2c-usb module:
- Switched the rheostat(AD5243) circuit to use the Arduino power source instead of the usb module
- Added commands to the Arduino sketch to control the rheostat
- Learned how to use the wire library to transmit data to rheostat. One trick with the library is that the read/write bit is handled by the arduino so the first byte needs the right most bit removed. After that data bytes can be sent in standard 8 -bit format.
- Two main benefits of doing this:
- Only one com port to worry about. When you have more then one, it can get complicated when switching machines because you’ll have to keep track of more randomly assigned ports. There are ways to use port enumerators which scan the registry but this seems like it may be unreliable at times. The other way to alleviate the problem is to add custom drivers but at this point that seems like more work then its worth.
- The other benefit is that, you can send 16-bit string commands to the Arduino to trigger the command pattern. This simplifies the implementation in the actual control system.
- Pretty sure the sketch will work but I have not tested it yet.
Dong Shin 03.15.2011
- PPM
- clean up some Maven stuff
- trying to figure out a way to generate and package html and swf files together from Maven
- FGMDEV’s nexus was down, could not restart? cleaned up the logs and looks ok….
-
export MAVEN_OPTS=-Xmx512m to avoid Java Heap space error
Phil 3.15.11
7:30 – 6:00 VISIBILITY
- Caught up with Dong a bit on the Financial Status part that we were working on before the email fire drill
- We also discussed generating VISIBILITY reports based on financial data. I’ll be showing him how the Scripting system works so he can start mining the PPM data.
- Scatterplots and coefficients and CONOVA, oh my!
- And I need to tie into the VISIBILITY remote object so I can start working with those tables…
- CMM meeting. They like what they see, but don’t want to pay for it.
- More privac crap

You must be logged in to post a comment.