Monthly Archives: June 2011

Dong Shin 06.15.2011

  • rebuilt workspace for Flash Builder 4.5 – kept giving warnings about previous version
  • built and deployed MavenAssist – 1.9.2.12
    • http://mavenassist.sourceforge.net/updates
    • installed in Flash Builder 4.5! – couldn’t install before
    • contains flexmojos:flexbuilder bug fix – set Bypass flexmojos:flexbuilder flag in Configuration
    • add these to enable M2_REPO variable within <configuration/> in flexmojos’ <plugin/> tag
      • <enableM2e>true</enableM2e>
      • <useM2Repo>true</useM2Repo>
    • seems MavenAssist don’t work with the M2REPO settings…

Phil 6.15.11

8:00 – 4:00 VISIBILITY

  • Testing flexMojosStandin – not working yet
    • Copied over the <libraryPath> children from the working version in CVS. No change
    • Changed <actionScriptProperties version=”3″> to <actionScriptProperties version=”3″>. No change
    • Changed <libraryPath defaultLinkType=”3″> to <libraryPath defaultLinkType=”0″>. Compiles now!
  • Not that I have a solution, looking for the minimum change that converts a flexmojos-generated file to a working one.
    • Changed <libraryPath defaultLinkType=”3″> to <libraryPath defaultLinkType=”0″>.
  • Added all the changes back into MavenAssist and added a checkbox to enable disable the flexMojos bypass.
  • No progress on our problem server today – now we have different groups saying that it’s someone else’s job to open the port

Phil 6.14.11

8:00 – 4:30 VISIBILITY

  • Forgot to bring the cat in off the deck.
    • Back now. Cat was happily sleeping in a patch of sun, with his chin on a paving stone. He was not all that interested in coming in.
  • Can build FGMUtils45 with maven, but not with FlexBuilder. Trying Mike’s test of rebooting. Nope. It looks like flexmojos is screwing up again. I’m going to try putting the flexMojosStandin() method back in, probably with a checkbox to enable, since this seems to pop up a lot.
  • Phone screen with Tim Lotz.
  • Indoc at 1:30.
  • Added a checkbox to Maven assist that allows you to bypass flexbuilder:flexmojos and use the internal .actionscriptproperties code. We’ll see if that helps with the current problem.

Tom De Vito 6.13.2011

start: 10:30

Communications Testing:

  • The Arduino’s Serial.available() alone will only recieve 1 bit.  It needs to be set equal to some number to receive more.
  • The Structure finally passed and casted correctly once I got the array to load properly
  • The original test structure had chars as its data members.  This worked with no problem.
  • The Arduino uses 16 bit integers while visual C++ defaults to 32 bit integers.  In order to pass structures with integer data members you have to make sure that you pass 16 bit ints.

#include <stdint.h>

int16_t var;

  • PC now can send properly and the arduino can recieve properly
  • Set up Arduino to PC communication.  Not working properly yet.

end: 6:30

Dong Shin 06.13.2011

  • installed Flash Builder 4.5 – needed SN from 4.0 to upgrade
  • SENSIAC Briefing (?) at 1:30 tomorrow!
  • PPM Changes
    • Grouped Funding Request data in Financial Status by encapsulating the UNION query into a SELECT statement and group it by uid and contract id – (SELECT * FROM (the UNION query) AS t1 ORDER BY uid, contractUid
    • Financial Status shows the one amount data from a funding request
    • disabled editing of amount data where amount is not set
    • double click to edit Contracts in Contracts Panel
    • double click to edit/view Appropriations in Appropriations Panel

Phil 6.13.11

8:00 – 4:30 VISIBILITY

  • 1:30 kickoff(?) meeting tomorrow.
  • Installing Flashbuilder 4.5
    • Installed, but when I tried to point my FB4 Eclipse to the new SDK, I got compile errors that Eclipse couldn’t find the player.
    • Looked around for help on installing FB4.5 as a plugin, and found this: (http://joeygutierrez.wordpress.com/2011/05/04/flash-builder-4-5-plugin/). It turns out that in the installation folder, under ‘utilities’, is the ‘Adobe Flash Builder 4.5 Plug-in Utility.exe’
    • Tried running the plug in utility, but it choked on my 64-bit version of eclipse, which amusingly enough FB4 had no problem with. Going to go download the latest Eclipse 32-bit version now…
    • Well, that appeared to work. Now we just have to put all the plugins together again.
  • FGMUtils chokes on DataGridColumn, trying out FGMFlexUtils45.
    • Which doesn’t have a pom file. WTF? Waiting for Mike.
  • Deployed Visibility3, Visibility Scripting on Jeff’s server
  • Added the accounts Brian asked for

Tom De Vito 6.10.2011

Fixing Communication:

  • Realized that the reason the ComMgr was not working was because I was trying to set properties which were DWORD with char*.
  • DWORD is a unsigned long
  • Set up a char[256] buffer on both the ComMgr side and the Arduino side to receive communications waiting to be decoded by type(command, response, state)
  • Made a struct to char array method

Dong Shin 06.10.2011

  • PPM Changes – Trish’s review changes
    • Removed Location from Contracts in Funding Request
    • Corrected typo on OISR-PMO and OISR-TF to ISR-PMO and ISR-TF in Funding Request
    • Performance Location column in Funding Request is now editable and stored in Contracts table
    • changed FY Budget in Financial Status to total of the FY selected – not FY and the appropriation
    • added comments to roles table to describe columns
    • retrieve comments SQL – SHOW FULL COLUMNS FROM roles
    • tooltip added to the User Roles Management to show comments of the column to describe the actions

Tom De Vito 6.9.2011

Copying structs by bytes:

  • At first I had it so that I was setting pointers for each struct and then casting the pointers into a char*.   Putting a & in front of the struct name returns the address of the struct eliminating the need for the extra pointers.  ex: char* test = (char*) originalData
  • Another thing that was wrong was that I was getting the size by measuring the length of the character array.  This worked fine when I was using unsigned chars as data members but when I changed it to int things broke.  The proper way to do it seems to be sizeof(structName).  This has worked consistently no matter what the data types were including non-primitive string type.  (NOTE:  to use string with printf, the c_str() method needs to be called to format it properly.)
  • sizeof(somePtr) seems to always return 4 bytes which I assume is the size of the memory address.  This may be why we were having trouble with sizeof because we were taking the size of a char*, if we were looking for a sizeof(char[]) it would have probably worked.  I tried to find the sizeof the contents of the pointer and it also said 4 bytes.  This might have been because the address it was pointing to was type int.  Either way it wasn’t giving the full size of the allocation which was 12 as found by sizeof(struct) which makes sense considering it had 3 ints in it.

ComMgr:

  • It seems I can put the memory address into a void pointer so that send data won’t have to worry about what type it is.  The size will also have to be passed in because its hard to get the size from the pointer.
  • The type needs to be identified so the arduino will know what to do with the data.
  • Just noticed WriteFile is taking the address of the object and the next parameter is the size.  So I guess you can pass anything you want into it as long as you know the size.
  • Have it working with the objectPtr and the size but its still only working with one byte.

Arduino

  • Phil recommended that there be 4 states for the arduino:  Ready, Reading, Converting, and Writing.  We may need a 5th for executing once it has to actually do stuff but for communications this should do.  He also suggested putting 4 leds and indicators of each state so we don’t have to depend on the console to tell us during the debugging phase.
  • Had to change the write method on the arduino side to print for whatever reason.  Have to look into why this suddenly stopped working tomorrow.

Dong Shin 06.09.2011

  • PPM Changes
    • fixed data request not deleting properly for more than one data
    • fixed  refresh of the data request not clearing data provider when no data returned
    • fixed select all and delete not working properly….
    • disable Select All checkbox when no data present in Financial Data Request
    • change DoubleClick on the Financial Data DataGrid to ItemDoubleClick
  • tried to find some Flex/ActionScript code metrics tools; Flex PMD looks good, but could not install? following command works (just the number of lines in the file).
    • find . -name ‘*.as’ -or -name ‘*.mxml’ | xargs wc -l
    • 37403 lines for PPM client
  • RichCodeAnalyserRichCodeAnalyser Screenshot

Phil 6.9.11

8:00 – 6:30 VISIBILITY

  • I-95 was a mess today. Took back roads in.
  • Cleaning up and documenting SqlInfoObject – done
  • Cleaning up and documenting QueryResponseObject – done
  • Cleaning up and documenting QueryObject – done
  • Cleaning up and documenting InsertObject – done
  • Cleaning up and documenting CreateTableObject – done
  • Meeting with Trish to go over the new PPM at 2:00
    • Role Management
      • The actions need some more description
      • Didn’t see the “can only see data I’m connected to ” option
    • Funding Request
      • Change OISR-PMO and OISR-TF to ISR-PMO and ISR-TF
      • Don’t need the “Location” column under contracts, but the Performance Location needs to be editable
    • Funding Status Data
      • The FY XX budget value isn’t calculating correctly – it should be the same as the FY XX value from the Project Editor
      • Each value in the “Amount” column comes from a single funding request. The “Remaining To Distribute” subtracts that particular amount from the total FY XX budget for that project. The Direct Cites and Reimbursables are on lines that have no Amount. In other words, there is an amount, then up to a few lines for that particular funding request, then another amount, and so on.
    • I have screenshots of all the above.

Kristi 06.08.2011

HUMBLE CORRECTION… Not close to done with manual!

I am coming across lots of changes – due to the update Dong recently performed…

Back to documentation manual with formatting, revisions, updates, changes, etc.

Keeping busy… lots to do… life is good.

Dong Shin 06.08.2011

  • re-ran the update query and found some missing updates….
    • order of updates are important because foreign key constraint may fail!
  • reworked User Management to retrieve roles data from the database, instead of using static data
    • uploaded the latest PPM to FGMDEV for deploy – /exchange/PPM060811

    Phil 6.8.11

    7:30 – 4:30 VISIBILITY

    • Heat warnings today. Think I’ll go for my ride early
    • Cleaning up and documenting InfoObjectEvent – done
    • Testing new PPM
    • Deployed PPM on the new server. All seems to be running well.
    • WRT our ‘problem’ server, I was able to talk to the lead technical person. It turns out that there is a proxy which is taking the packets and dumping them, because no one ever put our server in the plan. So the original request, not the firewall addendum was correct in the first place. Sigh. Anyway, it’s being worked.