- 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
- Hmm. com.ibatis.sqlmap.client.SqlMapClient looks interesting.
- After poking around, I think I found something better. Castor appears to do XML/SQL/other(?) data binding with Java. IBM appears to have a nice set of articles.
- And Hibernate may now be able to do this as well.
- 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:
- 2-pin header: http://search.digikey.com/us/en/products/640454-2/A19423-ND/258984
- 2-pin connector: http://search.digikey.com/us/en/products/1375820-2/A99613-ND/1864915
- Tin wire crimp for connectors: http://search.digikey.com/us/en/products/1375819-1/A100453CT-ND/2233146
- 3-pin header: http://search.digikey.com/us/en/products/3-644456-3/A31113-ND/698345
- Jumpers: http://search.digikey.com/us/en/products/2-382811-1/A31697-ND/769840
- power jack: http://search.digikey.com/us/en/products/PJ-202A/CP-202A-ND/252007
- 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
Phil 4.2.12
8:00 – 5:00 CSIP
- Went to the customer site to fill out paperwork
- Proceeding somewhat blindly is a somewhat Droolsy direction. Documentation is pretty sucky.
- Thinking about how to use rules against a database. This might require the creation of Java classes that have the structure of the table. It’s possible that this could be done with reflection, which I haven’t used since TUMMS. Here’s the Java trail just in case: http://docs.oracle.com/javase/tutorial/reflect/
- Found the source for the book: http://code.google.com/p/droolsbook/
- Reindexing maven repositories…
- had to add the following to the droolsBookParent/pom.xml in the <dependencyManagement><dependecies> section
<dependency> <groupId>org.slf4j</groupId> <artifactId>jcl-over-slf4j</artifactId> <version>1.6.0</version> </dependency>
- had to add the JDK to the JRE section of Eclipse Java properties. It was overriding JAVA_HOME
- Better. Maybe even good enough. The banking example is working:
[INFO] Reactor Summary: [INFO] [INFO] Drools Book Parent ................................ SUCCESS [0.694s] [INFO] Banking Core ...................................... SUCCESS [3.705s] [INFO] Validation ........................................ SUCCESS [7.324s] [INFO] ETL with iBatis ................................... SUCCESS [12.815s] [INFO] DSL ............................................... FAILURE [4.146s] [INFO] Decision Tables ................................... SKIPPED [INFO] Ruleflow .......................................... SKIPPED [INFO] Stateful Rules .................................... SKIPPED [INFO] Complex Event Processing .......................... SKIPPED [INFO] Drools Flow ....................................... SKIPPED [INFO] Testing ........................................... SKIPPED [INFO] Integration ....................................... SKIPPED [INFO] Performance ....................................... SKIPPED [INFO] Sample Application ................................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 29.097s [INFO] Finished at: Mon Apr 02 16:58:52 EDT 2012 [INFO] Final Memory: 32M/199M
[ERROR] Failed to execute goal on project dsl: Could not resolve dependencies for project droolsbook:dsl:jar:1.1-SNAPSHOT: The following artifacts could not be resolved: droolsbook:etl_iBatis:jar:tests:1.1-SNAPSHOT, droolsbook:validation:jar:tests:1.1-SNAPSHOT: Failure to find droolsbook:etl_iBatis:jar:tests:1.1-SNAPSHOT in http://www.fgmdev.com:8081/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of corprepo has elapsed or updates are forced -> [Help 1]
Tom DeVito 3.30.2012
Start: 8:30
- Fixed an issue with the computer receiving sensor data. Sensors now stream data properly.
- Made changes to how you set data in the data dictionary so its easier.
- Planned out how to do what is remaining. Despite much progress, I am still finding myself a bit lost from the break I took to make the boards. I am confident that this won’t be a problem now
end: 6:30
Mike 3.30.2012
- Usual back ups at site
- Still no word from Tangie about deployment or COGNOS data
- No word from the EDC about connectivity to our production server
- Compiled team’s status reports for the month of March
- Continuing work on PPM PKI integration
- PPM PKI integration seems to be working and done, will need a lot testing before deploying. I’m going to wait until we have both servers at site up and running. I will move the currently deployed version of PPM to the production server then stand up our test server with this new version.
- Visibility is the next for a login overhaul.
Phil 3.30.12
8:00 – 9:30 CSIP
- More Drools JBoss Rules 5.0 Developer’s Guide, chapter 2
- Drools JBoss Rules 5.0 Developer’s Guide, chapter 3
- Starting the Banking Domain Model example
9:30 – 12:00 FP
- Developer meeting at UMBC
12:00 – 4:00 CSIP
- Building classes and interfaces for a pretty complex model. We’ll see if this can be made to work…
Dong Shin 03.30.2012
- Monthly Status – March 2012
- Bug fixes
- enhanced buttons for Project Assistant
- fixed max_allowed_packet error for VisibilityScripting – need to increase to more than 1M
- Pre-Demo(3/8) preparation
- installed and tested Project Poroflio Manager (PPM) scripts for VisibilityScripting
- list of scripts for PPM
- projects_under_budget – generates list of project that are under budget
- projects_overdue – generates list of overdue projects
- manager_under_budget – generates list of managers and projects who are underbuget
- projects_budgets – generates budget data for the project
- project_goals – generates goals data for the project
- project_financial_data – generates financial data for the project
- created Flex Applications, ProjectDataGen, for generating financial data
- same login as Project Assistand (PA)
- generates Financial Data in XML format that Visibility ingests into the upload directory
- Demo (3/13) at site
- COGNOS(?) data analysis – still waiting for more information (raw data may help)
- GWT Project Manager Application
- generated DAO objects using HibernateTools
- Login interface working
- Project List interface working
- created UI for Create/Copy/Edit project
- updated MavenGWTEclipse Tutorial document as going thru to create a new Maven/GWT project
- working on Logger for GWT
- downloaded and integrated gwt-log. Good, but not good enough for our needs
- converted Flex Logger from FGMUtils to Java classes
- GWT Java OpenGL 3.0 LWJGL integration
- lots of information from Phil
- going over codes and FLTK information
Tom DeVito 3.29.2012
Start: 8:10
- Amp class uses doubles again for the set volume parameter
- Another advantage to having the amps separate from the midi devices, is that it allows us to have sound sequences of varying volumes without effecting the total volume.
- Reviewed the circuit board one more time and saw something that might be a minor issue. I forgot the arduino ground has to attach to the ground line of the board for signals to transfer. There are plenty of holes to run this wire from, so its not a big deal. It just won’t have its own independent point. It might also not even be necessary.
- Seems that Rick has averted the problem with DNS switch for the server. We still need to get registrar account but we are good for a couple months while he figures that out.
- Made some changes to the midi class to make selecting sounds easier.
- Still working on the Controller, should be ready to test soon.
End: 6:10
Mike 3.29.2011
- Usual back ups this morning, there was a small change in the database!
- The production system was still inaccessible on 443 and no word on my help ticket
- Still no word from Tangie, sent her an email asking for updates, no reply yet
- Back at the mill working on PKI integration

You must be logged in to post a comment.