Phil 4.6.12

8:00 – 3:30 CSIP

  • Hibernate chapter 6
  • Chapter 7. Learning about annotations like all the other cool kids. Done. Chapter 8 on Monday.

Dong Shin 04.06.2012

  • GWTLogger
    • moved logger to separate Maven Module, deployed
    • <dependency>
      <groupId>com.fgm.gwt</groupId>
      <artifactId>gwtLogger</artifactId>
      <version>0.0.1</version>
      </dependency>
    • added timer to Server Log – allows auto retrieval of logs in specified interval
    • re-arranged UI components
    • added filters for the columns
    • writing up how-to – done
      • gwtLogger – also added to Useful GWT Info page
      • sample GWT application located @ trunk/Sandbox_folders/DONG_SANDBOX/GWTLogger
  • Converting ProjectManager to Maven project

Tom DeVito 4.5.2012

Start: 12:30

  • Continued to work on the audio controller class
  • added methods to normalize i/o data to be between 0-1
  • Added commands for changing notes and playing sounds

end: 6:30

 

#NOTE: Raspberry Pi and Cotton Candy do not use standard OpenGL.  Instead they use OpenGL ES 2.0

“For programmable hardware: OpenGL ES 2.0 is defined relative to the OpenGL 2.0 specification and emphasizes a programmable 3D graphics pipeline with the ability to create shader and program objects and the ability to write vertex and fragment shaders in the OpenGL ES Shading Language. OpenGL ES 2.0 does not support the fixed function transformation and fragment pipeline of OpenGL ES 1.x”

More info: http://www.khronos.org/opengles/

Dong Shin 04.05.2012

  • GWT Logger
    • Modified LoggerWindow class to handle both client and server logs based on the parameter passed in
    • migrated FGM javaUtils logging class – Log4Init and VisibilityLogger – to GWT Logger
    • created testing app for server logs
    • everything works!
    • started migrating the project to GWT library

Mike 4.5.2012

  • Usual server backups this morning
  • Received an updates from Bill Dolley regarding the COGNOS data pull, his update basically told me to continue waiting on Tangie who is figuring out what data need to be ingested
  • Received an email from someone working on our SSP.  Apparently it expires in 5 days and there’s a bunch of stuff that needs to be done to renew it.  I started working on the list but need more guidance on a few items.
  • Back at the Mill looking in to GWT related things
  • Creating a sanbox project modeled after the SmartGWT Showcase so I can build components and quickly test them while keeping track and being able to demo things I’ve already built

Phil 4.5.12

8:00 – 4:00 CSIP

  • Hibernate Chapter 3. Working on getting to chapter 8, which covers dynamic creation. “Chapter 8 discusses criteria queries, an interesting mechanism that lets you express the constraints on the entities you want, using a natural Java API. This lets you build Java objects to represent the data you want to find, which is easier for people who aren’t database experts to understand; lets you leverage your IDE’s code completion as a memory aid; and even gives you compile-time checking of your syntax. It also supports a form of “query by example,” where you can supply objects that are similar to the ones you’re searching for, which is particularly handy for implementing search interfaces in an application.
  • Chapter 4
    • Tried to change a query from foo = :upper(mySearchTerm) to foo like ‘%upper(mySearchTerm)%’ and failed completely. Dong suggested restrictions, but I don’t see how to do that in the hbm.xml <![CDATA[…]]> section.
  • Chapter 5
  • Chapter 6

Tom DeVito 4.4.2012

Start: 10:00

  • Working on the audio controller logic
  • I got a good response when sending a test command
  • Finally found a arduino sketch which has data transfer in it:  http://breakfastny.com/2011/06/verbalizer-open-source-toy-googles-voice-search/
  • I may have found that a bit late but now I know that bluetooth works the same way as USB once connected.  My classes should be useful for any type of connection.
  • Looked at Rasberry Pi.  Looks really cool for $35.  Seems powerful enough to handle basic graphics.

End: 5:20

Mike 4.4.2012

  • Usual server backups this morning
  • No updates from anyone at site
  • I installed wordpress on my local machine at site and reverse engineered the domain model.  The blog uses 11 tables in a pretty straightforward model.
  • Back at the mill finishing up the visibility PKI integration.  I update the LoginScreen in ManagementUtils so any application that uses it will also have auto-login.  I probably won’t deploy any of this until we have the test and production servers at site up and running.

Phil 4.4.12

8:00 – 4:30 CSIP

  • Taking a small detour into Hibernate, to see if that can create a Java Object that Drools can operate on.
    • Some relevant articles from 2008-2009, also here
    • Installing hibernate eclipse plugins from here. Well I thought I was. It appears there is a conflict with Ant. Which is funny, because the book “Harnessing Hibernate” has all their examples built with Ant. It is to laugh.
    • Hmm. Ant using Maven is kind of nice. Definitely more explicitly clear. it depends on maven-ant-tasks-2.0.6.jar that needs to reside in the Ant library. And if you add a link to that library as an external jar in the Ant preferences in Eclipse, it seems to work quite well.
    • Well, not quite. The 2.0.6 jar only points to the default .m2/repository. You need the 2.1.3 jar if you want that to work. And that took 2 hours. Grr. Somebody should update the Safari book code repository.
    • Chapter 1
    • Chapter 2
    • Chapter 3

Tom DeVito 4.3.2012

Start: 10:00

  • Changed how items are published to the dictionary to make things more memory efficient
  • Step up a new PC test environment which we may be able to drop in the simulations to once ready
  • Tried sending some commands to see how the controller was working.   This doesn’t seem to be working right yet.
  • Did an echo test for the command and it seems to be coming back corrupted.
  • Found that I did not specify the int type for the command class.  This is important because windows defaults to 32-bit while the arduino defaults to 16-bit.  The problem seems to be resolved now that they are both 16-bit.
  • Check the response class for similar problems.
  • Sent a command and received a response from the audio controller class.  The next step make it play a sound on command.

End: 6:00

Dong Shin 04.03.2012

  • finished up GWT Logger for client
    • uses same approach as Flex Logger
      • Logger logger = Logger.getLogger()
      • logger.warn (“message”), etc
    • event driven so logger window gets updates in real time.
    • SmartGWT GUI wrapper for Logger classes
      • SmartGWT DataSource wrapper – allows lots of buil-in filtering/sort capabilities
      • Record wrapper  for display
    • color coded levels
    • ComboBox filter for Level
  • started on Server Logger

Mike 4.3.2012

  • Usual backups at site
  • No news at site
  • Finished my financial disclosure and submitted it
  • Had some thoughts about maven and looked up stuff:
    • Maven now has the ability to encrypt passwords inside the settings file so you can safely distribute the settings.xml file
    • Maven also allows the use of environment variables in the settings file.  So for example you could set the repository to be <localRepository>${env.M2_REPO}</localRepository> which would make sharing your settings file much simpler
    • Combining these you should be able to check your entire maven install, settings and all, in to subversion and use it to distribute changes to things like repositories, servers, passwords, etc.
  • Working on PKI integration of visibility
  • While doing that I got tired of closing, deleting, reopening and scrolling around the tomcat log files.  I figured there must be program designed for monitoring log files more efficiently and there is: BareTail (Windows).  It’s like the unix ‘tail -f’ command but you can add color coding rules and monitor multiple files among other things.

Phil 4.3.12

8:00 – 1:30, 3:30 -6:00  CSIP

  • Ok ,now that we have working(?) code, I have something to walk through while reading the book.
  • The Drools team suggests that you use the joda DateTime library. It looks pretty nice, too – http://joda-time.sourceforge.net/. They also have a bunch of other interesting libraries at http://joda.sourceforge.net/
  • Setting a global value in a rule
    • Java
      // Import the class
      import droolsbook.bank.service.BankingInquiryService;
      
      // create the session
      static StatelessKnowledgeSession session;
      
      // create rule engine
      KnowledgeBaseConfiguration configuration = KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
      KnowledgeBase knowledgeBase = KnowledgeBaseFactory.newKnowledgeBase(configuration);
      
      // declare our global
      BankingInquiryService inquiryService = new BankingInquiryServiceImpl();
      
      // make a session
      session = knowledgeBase.newStatelessKnowledgeSession();
      
      // add the global to the session
      session.setGlobal("inquiryService", inquiryService);
    • Drools rule (.drl file)
      // import
      import droolsbook.bank.service.*;
      
      // declare
      global BankingInquiryService inquiryService;
      
      // use the global in a rule (note the surrounding eval(), which can evaluate any code that returns a TRUE or FALSE).
      rule "accountNumberUnique"
          when
              $account : Account(eval(!inquiryService.isAccountNumberUnique($account)))
          then
              error(kcontext, $account);
      end
  • Chapter 4
  • Nice data visualization using webGL

Tom DeVito 4.2.2012

Start: 10:00

  • Continued troubleshooting the Audio Controller class
  • Compiled a partial list of required parts
  • Made some changes to the Controller base class.  I think I finally got all the old code out.

Parts:

  1. 2-pin header:  http://search.digikey.com/us/en/products/640454-2/A19423-ND/258984
  2. 2-pin connector:  http://search.digikey.com/us/en/products/1375820-2/A99613-ND/1864915
  3. Tin wire crimp for connectors: http://search.digikey.com/us/en/products/1375819-1/A100453CT-ND/2233146
  4. 3-pin header:  http://search.digikey.com/us/en/products/3-644456-3/A31113-ND/698345
  5. Jumpers: http://search.digikey.com/us/en/products/2-382811-1/A31697-ND/769840
  6. power jack:  http://search.digikey.com/us/en/products/PJ-202A/CP-202A-ND/252007
  7. I will double check other components tomorrow to make sure we have enough resistors and capacitors before ordering

End: 6:00

Mike 4.2.2012

  • Usual backups at site
  • Typed up our March status report at site and submitted it to Jim from TASC
  • Dug up some paper work and started entering my financial disclosure information, need more info across the board
  • Back at the mill tracking down more financial info
  • Working on integrating visibility in to the pki auto login stuff