Phil 12.27.12

8:00 – 12:00 ESSO

  • Backups, plus some coordination with the Pit Crew.
  • Dong’s pass has been renewed.
  • Meetings

12:00 – 4:00 FP

  • Got the power supply for the Phantom
  • Installing drivers from here
    • Following directions here
    • Which requires updating root certificates here

Yay!

  • Starting on the OpenHaptics Programmer’s Guide. And playing around with the demos a bit.

Phil 12.26.12

8:00 – 4:00 ESSO

  • Backed up the databases on site.
  • Took some training that I didn’t think I needed, but I was on the email list, soooo…
  • Sent an email to Chris and Dave to renew Dong’s pass
  • Went home on account of the weather. So I’m setting up my work environment again. Hopefully it’s not that broken.
  • Huh. My Tomcat instance seems to be missing. Downloading. Installed.
  • Getting the config files and databases from fgmdev.
  • Am now able to compile and run Vis2
  • Can’t get the “new user / no column header” bug to happen.
  • Starting on adding font size to legend and panel titles.

Phil 12.20.12

8:00 – 4:00 ESSO

  • Demo prep all day yesterday and demo this morning.
  • Add ability to change font size in panel and legend
  • Paperwork for white Cliffs. Trying to contact Athena.

Phil 12.17.12

8:00 – 12:00 ESSO

  • Updated database so alert queries are running correctly.
  • Had a bunch of really odd problems – The date calculation seems not to be running correctly, and the headers are not showing up in AdvancedQueryWidgets for new users, but only for a while. It seems to go away and work properly after adding explicit themes, but not immediately. Need more info.

12:00 – 4:00 FP

  • Finishing paper.

Phil 12.14.12

8:00 – 4:00 ESSO

  • Backups. And everything is *still* working on the production server!
  • Worked some with alerts before going off to a GAO meeting and then a meeting with Jim G. The upshot is closer integration with GAO.
  • Submitted paperwork for school reimbursement before switch to White Cliffs.

Dong Shin 12.12.2012

  • after hectic morning, got the alerts working on-site.
  • worked through alert queries to return results in xml so that data can be verified, fixed month and year hard-coded values
  • created VSSUpdates121212.sql for deployment
  • working on alerts export to Visibility

Phil 12.12.12

8:00 – ESSO

  • Didn’t blog yesterday. Basically worked with Dong on getting VSS working on the production server
  • Spent this morning breaking everything on the production server. Somehow, instead of copying folders to the “Production Webapps” backup directory, I moved them. This cause old war files to recreate obsolete versions of everything. And somehow the copied items weren’t complete so *everything* had to be rebuilt from a combination of files on the integration server and files from the Updates directory. Most. Fun. Ever.
  • Got the first pass of alerts running though, which is a win.

Phil 12.10.12

8:00 – 4:00, ESSO

  • ADF
    • Finished this tutorial. The charts are pretty nice. Hooking up data is actually amazing. I fear debugging though.
    • Looks like audio and video are built in. Next time we build an app, we’re going to do this for the help.
  • Meeting from 11:00 – 1:00
  • Ok, back from that. Let’s do some more charting!
  • It looks like I need to download Oracle DB 11. Sigh. 99 MB of data in the pipe, 99 MB of data, take one down and send it along, 98 MB of data in the pipe…
  • And it didn’t install properly. This is now getting annoying. Oh, I see, there is no 64-bit version. This is an attempted fix. Didn’t work for me though. More tomorrow.

Dong Shin 12.08.2012

  • reworking all alerts
    • modified queries to just insert into alerts table, removed XML generation
    • created a stored procedure, a query, and a script to parse alerts by users for Visibility
    • modified python scripts accordingly
    • created VSSUpdates120912.sql to deploy everything in one script

Phil 12.7.12

8:00 – 4:00 ESSO

  • Much running around yesterday, and I never got a chance to write things.
    • Backups
    • No meeting. Don had not set it up and was not there anyway.
    • Worked on getting VisibilityScripting alert scripts working, but the stored procedure that was needed didn’t store properly.
    • More ADF
    • Also, FP – in-process presentations
  • Backups
  • Got Dong’s stored procedure working
  • Ingested Lenny’s FY13 spreadsheet with minor tweaks. He’ll have everything ready for Tuesday
  • 11:00 – 1:00 meeting on Monday.
  • JDeveloper. Hooking up to data now, which is pretty cool. I have not seen how to duplicate a line like in Eclipse <CTRL-Shift-Arrow> I miss that. I am learning enough that I can stumble around and fix bugs that I cause.
  • Progress for the day:

Dong Shin 12.06.2012

  • forgot to include ‘DELIMITER $$’ for stored procedures this morning, will try again tomorrow
  • stored procedure to separate service project mgrs in the alerts table – need more tweaks to work with VSS
    • DELIMITER $$DROP PROCEDURE IF EXISTS explode_table $$
      CREATE PROCEDURE explode_table(bound VARCHAR(255))BEGIN

      DECLARE uid INT DEFAULT 0;
      DECLARE user TEXT;
      DECLARE occurance INT DEFAULT 0;
      DECLARE i INT DEFAULT 0;
      DECLARE splitted_user TEXT;
      DECLARE portfolio_admins TEXT;
      DECLARE portfolio_mgrs TEXT;
      DECLARE service_finance_pocs TEXT;
      DECLARE program TEXT;
      DECLARE MIPR TEXT;
      DECLARE alert TEXT;
      DECLARE status TEXT;
      DECLARE timestamp TIMESTAMP;
      DECLARE done INT DEFAULT 0;
      DECLARE cur1 CURSOR FOR SELECT alerts.uid, alerts.service_project_mgrs,
      alerts.portfolio_admins, alerts.portfolio_mgrs,
      alerts.service_finance_pocs, alerts.program,
      alerts.MIPR, alerts.alert, alerts.status, alerts.timestamp
      FROM alerts
      WHERE alerts.service_project_mgrs != ”;
      DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = 1;

      DROP TEMPORARY TABLE IF EXISTS table2;
      CREATE TEMPORARY TABLE table2(
      `uid` INT NOT NULL,
      `user` VARCHAR(255) NOT NULL,
      `portfolio_admins` VARCHAR(255),
      `portfolio_mgrs` VARCHAR(255),
      `service_finance_pocs` VARCHAR(255),
      `program` VARCHAR(255),
      `MIPR` VARCHAR(255),
      `alert` VARCHAR(255),
      `status` VARCHAR(255),
      `timestamp` TIMESTAMP
      ) ENGINE=Memory;

      OPEN cur1;
      read_loop: LOOP
      FETCH cur1 INTO uid, user, portfolio_admins, portfolio_mgrs, service_finance_pocs, program, MIPR, alert, status, timestamp;
      IF done THEN
      LEAVE read_loop;
      END IF;

      SET occurance = (SELECT LENGTH(user)
      – LENGTH(REPLACE(user, bound, ”))
      +1);
      SET i=1;
      WHILE i <= occurance DO
      SET splitted_user = (SELECT REPLACE(SUBSTRING(SUBSTRING_INDEX(user, bound, i),
      LENGTH(SUBSTRING_INDEX(user, bound, i – 1)) + 1), ‘,’, ”));

      INSERT INTO table2 VALUES (uid, splitted_user, portfolio_admins, portfolio_mgrs, service_finance_pocs,
      program, MIPR, alert, status, timestamp);
      SET i = i + 1;

      END WHILE;
      END LOOP;

      SELECT * FROM table2;
      CLOSE cur1;
      END; $$

Dong Shin 12.05.2012

  • working on FACTS Outlay updates
    • create a script – UpdateFACTSOutlayData.py
    • query to construct update query
      • SELECT MID(requisition_id, LENGTH(requisition_id) – 5, 6) as req_id,
        appropriation_year,
        SUBSTR(expensed_date, 1, LOCATE(‘/’, expensed_date)-1) as month,
        expensed_date,
        SUM(expensed_amount),
        CONCAT(‘UPDATE  project_portfolio.obligations_outlays as o,  project_portfolio.projects AS p,project_portfolio.budget_centers AS c SET ‘,
        IF (SUBSTR(expensed_date, 1, LOCATE(‘/’, expensed_date)-1) = 1, ‘month_4’,
        IF (SUBSTR(expensed_date, 1, LOCATE(‘/’, expensed_date)-1) = 2, ‘month_5’,
        IF (SUBSTR(expensed_date, 1, LOCATE(‘/’, expensed_date)-1) = 3, ‘month_6’,
        IF (SUBSTR(expensed_date, 1, LOCATE(‘/’, expensed_date)-1) = 4, ‘month_7’,
        IF (SUBSTR(expensed_date, 1, LOCATE(‘/’, expensed_date)-1) = 5, ‘month_8’,
        IF (SUBSTR(expensed_date, 1, LOCATE(‘/’, expensed_date)-1) = 6, ‘month_9’,
        IF (SUBSTR(expensed_date, 1, LOCATE(‘/’, expensed_date)-1) = 7, ‘month_1-‘,
        IF (SUBSTR(expensed_date, 1, LOCATE(‘/’, expensed_date)-1) = 8, ‘month_11’,
        IF (SUBSTR(expensed_date, 1, LOCATE(‘/’, expensed_date)-1) = 9, ‘month_12’,
        IF (SUBSTR(expensed_date, 1, LOCATE(‘/’, expensed_date)-1) = 10, ‘month_1’,
        IF (SUBSTR(expensed_date, 1, LOCATE(‘/’, expensed_date)-1) = 11, ‘month_2’,
        IF (SUBSTR(expensed_date, 1, LOCATE(‘/’, expensed_date)-1) = 12, ‘month_3’, ‘unknown’))))))))))))
        , ‘=’, SUM(expensed_amount),
        ‘ WHERE o.type = ‘Outlay $ (Reported in FACTS)’ AND o.year + o.year_count = ‘, appropriation_year + 1, ‘ AND o.year_count = 1 ‘,
        ‘ AND p.uid = o.project_id AND p.uid = c.project_id AND c.uid = o.funding_id ‘,
        ‘ AND c.funding_transaction_number = ”, MID(requisition_id, LENGTH(requisition_id) – 5, 6), ”’) as sqlstring
        FROM `visibility_dev2`.`facts_outlay_update_test`
        WHERE LENGTH(requisition_id) > 6 AND
        (SUBSTR(expensed_date, 1, LOCATE(‘/’, expensed_date)-1)  > 0 AND SUBSTR(expensed_date, 1, LOCATE(‘/’, expensed_date)-1)  < 13)
        GROUP BY month, requisition_id