Monthly Archives: January 2011

Phil 1.7.2011

8:00 – 4:30 VISIBILITY

  • Pinged Katie G about a T09 demo
  • Worked on getting some + demo data with Anne.
  • Writing up some grist for VISIBILITY4 development effort. Got through intro, framework, formbuilder, and scripting.
  • Ingested some data for Brian to demo
  • Came back from the ride knowing how to put all the pieces together, so here it is:
  • That’s a java app, using the DJ framework, talking through a servlet, interacting with the host OS, all using object serialization :-). I can now have a nice weekend.

Dong Shin 01.07.2011

  • PPM changes
    • thinking of using tables’ comments field for editable/non-editable indicator
    • ALTER TABLE tablename COMMENT = 'editble';
    • fixed itemRenderer issue by setting icon at set data method, not at creationComplete method
    • changed all the tables to have InnoDB engine
    • backed up database to project_portfolio
    • set editable tables by ALTER TABLE <table name> COMMENT = ‘editable’;
      • budget_center_names (budget_centers)
      • budget_center_number (budget_centers)
      • capabilities (budget_centers)
      • expenditure_centers (budget_centers)
      • funding_transaction_names (budget_centers)
      • funding_transaction_numbers (budget_centers)
      • funding_transaction_types (budget_centers)
      • investment_portfolios (budget_centers)
      • users
    • setting relationiships for foreign keys in the database
      • projects and users done.
      • budget_centers related tables done (budget_center_names, budget_center_number, capabilities, expenditure_centers, funding_transaction_names, funding_transaction_numbers, funding_transaction_types, investment_portfolios)
    • added warning dialog – cancel closes the panel
    • added dataToolTips for the datagrid

Tom.DeVito 1.06.11

  • Ground off the epoxy so that I can start reattaching the strain gauges.
  • After much searching, I found this site http://www.educypedia.be/electronics/composemijfet.htm.  This seems like a really good reference site for electronics.
  • I am going to read the article on FETs As Voltage Controlled Resistors and JFETs as variable resistors tonight and post what I learned here either tonight or tomorrow morning.  These have a more in depth explanation then http://graffiti.virgin.net/ljmayes.mal/comp/vcr.htm has.
  • Because I will probably need to buy a couple components to make a VCR, I am going to hold off on going to the electronics store for the speaker until i know what else I need.  I hope to know what that is tonight after reading through those articles more thoroughly.
  • Some thing to note Vds = voltage drain to source and Vgs = voltage gate to source.

Christine 01.06.2011

  • Setting up development environment in Windows. Had to put a halt on the setup b/c I am having major windows issues and am looking into getting an alternate box until I can get these resolved.
  • In the meantime, I am going to start looking into the creation of the Maven parser for the Visibility project

Dong Shin 01.6.2011

  • PPM Enhancement
    • DB Mgmt
      • added icons for editable/non-editable tables in the tables list
      • added Record numbers text
      • Begin, Prev, Next, End buttons working
      • mx:Label for AdvancedDataGridItemRenderer is too slow for large sets of data?, tried to extend AdvancedDataGridItemRenderer. no success. changed Label to Text component, it’s a lot faster now
      • added toolTips
      • added Key information on the DataGrid column header

Mike 1.5.2011

  • Created a fake data dictionary and filled it with data similar to that in the report Allen gave me for the forecasting report
  • Created a sample application with a single report in it modeled after the paper report Allen gave me
  • Attempted to deploy the sample to fgmdev but ran it to some difficulties
    • I first just created a directory structure in the webapps directory and pasted the required file (this worked locally but not on the server)
    • the logs said the directory was successfully deployed but got a 404
    • Tried creating a war with the same file, this also worked locally but not on the server
    • the logs again said everything was deployed fine but still getting a 404

Phil 1.6.2011

7:30 – 4:30 VISIBILITY

  • Working on a simple “echo” Java GUI in SWT
  • Eclipse Labs on Google code: http://code.google.com/a/eclipselabs.org/hosting/
  • Talking to the servlet in the GUI. Switching from echo to implementing exec() in the servlet and getting the response into the GUI. For something that takes a while, like a maven build, I’ll need to do something to show progress. Also will need to handle error messages as separate entities in the message wrapper?
    • Cleaning up ExecShell() to make it work with the GUI.
    • Spent a good deal of time trying to figure out when to inform the client that the command was finished executing. Wound up looking for elements of the command prompt for now (this assumes “C:”). It’s working now. I expect I should be able to roll it in to the servlet tomorrow.
      • As an aside, it should be possible to send back intermediate data to the client, as long as the client sends a “send more output” request to the server with the same session id until the server is done.

Christine 01.05.2011

  • continued with Maven/Flex Air issue on Windows. One of the suggestions found regarding the error was that the user has never run an Adobe Air app on the machine before. This most definitely was the case for me (being my Win install was new). After installation the Air app, I re-ran AirFileImageAppMaven. That was a success, except I need to reproduce the error since Phil was unable to get it to run on his machine.
  • Sent Phil an email with findings and asking about his development environment (which version of Eclipse is used, etc). Will be setting up my development Win environment to match so that I can build/install in Windows (rather than using the build from my Mac) to see if I can reproduce the error.

Mike 1.5.2011

Looked in to incorporating KapLab’s Kap Inspect.  It’s a runtime debug tool which lets you look at all existing UIComponents, their current properties, styles, and other items.  Unfortunately it’s written with heavy dependence on Flex 3 and you can’t use it in Flex 4 without making some changes to Flex builder and your sdk directories.  The source is available but very large and I don’t want to spend a week trying to get some cool debug tool to work.

So it turns out Kap Inspect is based on another open source project with a much looser license: FlexSpy.  It has a few less features than Kap Inspect, but works in Flex 4 without any changes and still allows access to styles and properties so I added it to our framework as another debug window.  We may need to hide it when moving to production.

Enter Monkey Patching.  It is apparently possible to inject code in to any existing class by recreating the file in your project, placing it at the same package location, and changing anything inside the file you want.  Your class will the override the Flex library class and any class that extends will inherit your class, not the original one.  Doug Mccune came up with a way to override mx.core.FlexSprite (the base class of all flex components) and add a dictionary which keeps references whenever addEventListener is called.  This allows a debug window to view all event listeners on any component.  So I put together FlexSpy and the monkey patched Flex Sprite to get a very useful new debug window.

Dong Shin 01.05.2011

  • PPM Changes
    • continue working on DBMgmtPanel
      • list of tables in the PPM database
      • retrieve 35 records at a time
      • search currently displayed data added
      • delete working
      • update working
    • more table restructuring investigation
      • ALTER TABLE children ADD CONSTRAINT fk_parent_keyfield FOREIGN KEY (parent_keyfield) REFERENCES parent (keyfield) ON DELETE NO ACTION ON UPDATE CASCADE
      • parent_keyfield must be indexed!!!

Phil 1.5.2011

7:30 – 4:30 VISIBILITY

  • Rode the motorcycle in today – brr.
  • Working on making the binary communication classes useful.
  • Good link on how to hook up the eclipse debugger to a servlet running in tomcat: http://wikijava.org/wiki/Debugging_a_servlet_with_tomcat_and_Eclipse_tutorial
    • If you’re using the launcher in windows, add the following argument to your tomcat->config->java tab:
      • -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
  • Sending wrapped serialized objects. The “toString” method for printing works as well.
  • Starting the client IDE. I’m thinking SWT, since we’ll probably raid Eclipse for components.
  • Connected to the Eclipse CVS repo

Mike 1.3.2011

Working on a run-time config menu for advanced data grids, this menu will need to include:

  • A hierarchical display of columns and a way to edit them since some columns will have multiple sub-columns and why stop there
  • A way to ‘roll-up’ data based on one or more columns, this will give the appearance of rows having children rows even though the data will be flat

Started working on the first bullet with a tree / datagrid hybrid:

  • Have a tree / datagrid list with existing columns in it and editable headerText fields
  • Had a list of available columns and was planning on dragging / dropping from it but after lots of messing around it is apparently not easy to drag and drop from a list of flat data to a list of hierachical data
  • decided to simply go with DropDownList and add/remove buttons

Did a quick example of Java to Java AMF as well as did some reading on Deep Linking in flex.

Phil 1.4.2011

7:30 – 4:00 VISIBILITY

  • Deployed the new PPM to rave reviews! Well, not really. But no one complained either 🙂
  • Lots of activity on VISIBILITY logs today
  • Had to bounce the fgmdev tomcat server. There was a service available problem.
  • Working on Data xfer
    • Binary data wasn’t getting to the servlet as a parameter. Testing Ascii data using POST. Yep, that works.
    • Found a better example for binary communication: http://www.j-nine.com/pubs/applet2servlet/Applet2Servlet.html
    • Binary is now working. Need to expand it out to a workable library.
    • Added logging to the doGet() method, so you can go to the servlet html and see what it’s doing

Dong Shin 01.04.2010

  • PPM Changes
    • fixed Save Confirmation – set flag to false before Query execution so that it forces state to saved
    • unable to duplicate Project Names disappearing from Create Project Panel….
    • dump current database schema and data to ProjPortfolioMgr server – webapp/scripts/project_portfolio_01042011.sql
    • copied project_portfolio database to project_portfolio_01042011
    • working on DBMgmtUtils….
  • forcing foreign key updates
    • ALTER TABLE table1 ADD
      CONSTRAINT fk_keyfield
      FOREIGN KEY(keyfield)
      REFERENCES table2(keyfield)
      ON DELETE REJECT
      ON UPDATE CASCADE

Christine 01.03.2011

  • Continued reading up on Eclipse plugins; went through exercises in the book and a few online (for later editions of Eclipse) to familiarize myself with plugins
  • Began working on Maven/Flex issue on Windows side