- snow!
- trying to figure out how to preserve datagrid sort
- PA’s project list now preserves its state, Status and Sort
- critical bug found – PM’s cannot save the data and line item view doesn’t show any data
- fixed – problem with the datagrid filter function for non-admins
- burned a CD to deploy this afternoon
Author Archives: pgfeldman
Phil 1.23.13
8:00 – 4:00 ESSO
- Backed up.
- Rebuilt query spreadsheet for Dong
- There may be a problem with PA, but it is more likely an older version. We’re adding in a test that checks the DB for the latest “Compiled” string and evaluates the date. If the local date is less than the DB date, the app throws up an “Update” dialog with instructions for FF and IE. If the date is greater, the app updates the string in the DB, otherwise things start normally.
- Javascript!
- Cool thing:
var num = 0;
outermost: // create a label for this for loop
for (var i = 0; i < 10; i + +) {
for (var j = 0; j < 10; j + +) {
if (i == 5 && j == 5) {
continue outermost; // go to the label
}
num ++;
}
}
alert( num); // 95
- Switch statements can switch on variables?
- IMPORTANT!!! –
- Function arguments in ECMAScript don’t behave in the same way as function arguments in most other languages. An ECMAScript function doesn’t care how many arguments are passed in, nor does it care about the data types of those arguments. Just because you define a function to accept two arguments doesn’t mean you can pass in only two arguments. You could pass in one or three or none, and the interpreter won’t complain. This happens because arguments in ECMAScript are represented as an array internally. The array is always passed to the function, but the function doesn’t care what (if anything) is in the array. If the array arrives with zero items, that’s fine; if it arrives with more, that’s okay too. In fact, there actually is an arguments object that can be accessed while inside a function to retrieve the values of each argument that was passed in.
- Unlike in other languages, naming your arguments in ECMAScript does not create a function signature that must be matched later on; there is no validation against named arguments. The arguments object can also be used to check the number of arguments passed into the function via the length property. The following example outputs the number of arguments passed into the function each time it is called:
function howManyArgs() {
alert( arguments.length);
}
howManyArgs(" string", 45); // 2
howManyArgs(); // 0
howManyArgs( 12); // 1
- When a variable is declared using var, it is automatically added to the most immediate context available. In a function, the most immediate one is the function’s local context; in a with statement, the most immediate is the function context. If a variable is initialized without first being declared, it gets added to the global context automatically.
- And in the “No Free Lunch Dept: Setting a variable to null effectively severs the connection between the variable and the value it previously referenced. The next time the garbage collector runs, these values will be deleted and the memory will be reclaimed. Even if you have garbage collection, it never hurts to help out.
- As in other languages, ECMAScript arrays are ordered lists of data, but unlike in other languages, they can hold any type of data in each slot. This means that it’s possible to create an array that has a string in the first position, a number in the second, an object in the third, and so on.
- Ringbuffer: ECMAScript also provides an unshift() method for arrays. As the name indicates, unshift() does the opposite of shift(): it adds any number of items to the front of an array and returns the new array length. By using unshift() in combination with pop(), it’s possible to emulate a queue in the opposite direction, where new values are added to the front of the array and values are retrieved off the back.
- Hit the wall reading about functions. I need my ride, and it’s only 21 degrees!
- Burned a disk with the new PA on it.
Dong Shin 01.23.2013
- working on PA for status issues – done
- added preferences (columns selection for Project list) saving for PA
- PA’s having some issues that we believe they were running old versions (without clearing history/cache)
- In PA, set the compile date in the tab, so screen shots tell us what version
- Add a method in Utils that test the compile date against a string in the DB, If the compile date is less than the stored string, a dialog is shown, telling how to update in IE and FF. If the date is greeater than the stored date, the date on the DB is update. If they are the same, nothing is done.
Dong Shin 01.22.2013
- deployed new PA. works better but issues with Status and others
- From the first of the month to the due date (e.g. the 10th), states may be DUE, OVERDUE, or Current. For the following, we will assume that the calendar month is May, and that the reporting month is April
- If it is May 1-10, state is OVERDUE, if any previous month’s data is incomplete (e.g. March and prior) ELSE
- If it is May 11-31, the April state is OVERDUE, if any previous month’s data is incomplete (e.g. April and prior) ELSE
- If if it May 1-10, the April state is DUE, if the data is incomplete for April and all previous months. ELSE
- If it is May 1-10, the April state is CURRENT, if the data is complete April and all previous months. ELSE
- If it is May 11-31, the April state is CURRENT, if the data is complete for all previous months
- Sorting of status needs to maintain in PA
- Need to keep preferences for users in PA
- Queries for Tangie
- Query for who has been in the tool in putting their information
- Out of all of the TST sub budgets what is the top 10 projects offenders (not meeting DOD goals)
- TST personal graph (just like the monthly brief
Phil 1.22.13
8:00 – 4:30 ESSO
- Backups
- Deployed new PA. There are some logic issues WRT Due, Overdue and Current. Wrote them all out, but Dong has them, so I can’t enter them yet.
- Printed out the Cognos query and results so that we have something to work with to produce the charts for Col. Dukes.
- Spent a bit of time discussing my travails and thoughts about JDeveloper and JavaScript
- OK, this book gets ridiculously good reviews on Amazon. Getting the Kindle edition.
- Holy crap!
- One of the most powerful and most controversial parts of the < script > element is its ability to include JavaScript files from outside domains. Much like an < img > element, the < script > element’s src attribute may be set to a full URL that exists outside the domain on which the HTML page exists, as in this example:
- <script type=”text/javascript” src=” http://www.somewhere.com/afile.js”></script>
- One of the most powerful and most controversial parts of the < script > element is its ability to include JavaScript files from outside domains. Much like an < img > element, the < script > element’s src attribute may be set to a full URL that exists outside the domain on which the HTML page exists, as in this example:
- In XHTML (and XML), CDATA sections are used to indicate areas of the document that contain free-form text not intended to be parsed.
- Aptana Studio 3? Downloaded. Interesting.
Phil 1.18.12
8:00 – 4:00 – ESSO
- Deployed Dong’s new PA, but there was a problem, so we pulled it back.
- Updated MySQL and Java, as per instruction from corporate. Don’t forget to update max-packet-size in my.ini to 100M
- Due to the inability of the ADF client to adjust the size of columns as a container resizes, I’m starting to have doubts about the choice of JDeveloper. I might not if the documentation were better (i.e. the Flex documentation with simple examples). But I’m not having good feelings about going down the Oracle path.
- I did find this page that points at JavaScript charting packages. Going to spend the rest of the day looking at that. Here’s my subset of the list that I think might work for us.
- Minimal or no dependencies
- Require general-purpose library (e.g. jQuery)
- Flot
- jqPlot
- jQuery-Visualize
- The above is designed(?) to support a book Designing with Progressive Enhancement. So there is some built-in training here.
- RAP
- Now, if we start writing without a compiler to lean on, we’re going to need something like Lint. Here’s some discussion.
Dong Shin 01.18.13
- cancelled deploy of PA due to SQL error – fixed
- updated Java 7 and XAMPP 1.7.7 of I&T and production servers
- max_allowed_packet in my.ini file under mysql should be set to 100M
- tried to update MySQL 5.2.28 by replacing the folder – didn’t work, may need to figure out the way to update
Phil 1.17.13
8:00 – 4:00 ESSO
- Meeting with Chris, Lenny, Carla and Tom(?). Started out by discussing fixes, but became a session discussing how to make the new Financial Assistant. Over the next week, the Pit Crew will put together a spreadsheet that contains everything that they need to make a new entry in a table define by a budget center. Adding a line is essentially adding a MIPR (kind of). Adding a new line, can duplicate some or all of the previous line. Adding a MIPR addendum, for example, would duplicate the entire line except for obligation, outlay, and date. This data all goes back into the existing tables in the database.
- One modification of the current bugs/requests – make it so contract information in the finding request dropdown maps only to the associated MIPR.
- Updated the servers with monitoring software and also updated their listings.
- Made sure that the VISIBILITY code works for Dimitri’s visit.
- Dimitri came by and we walked through an FP demo, most of the VISIBILITY data visualization piece, hitting a lot of tangents along the way. He thinks he might find it useful.
- And I need to update my database. visibility_scripting is out of date and there is no alerts DB.
Dong Shin 01.17.2013
- status meeting at 8
- discussion about new spreadsheet format
- few bugs/enhancements
- When contracts dialog comes up, limit the contracts to project related contracts in PA
- Remove Incomplete status in PA
- When committed == 0, auto fill current months (via script?) in PA
- fix incorrect fiscal month in PA
- Duplicating projects should have a checkbox for each of the following to appear in a dialog before the action
- Budget Center line
- Associated funding requests
- Funding Requests should have a field that points back to the source project (UID, Project ID, etc.)
- fixed the incorrect fiscal month in PA
- removed Incomplete status and associated changes(!)
- added projects to retrieve related contracts for invoices
Phil 1.16.13
8:30 – 4:30 ESSO
- Backed up (another slow login day)
- Deployed new version of PA
- Working on ADF.
- Fails to load page, which is pretty much the same problem as before: javax.el.PropertyNotFoundException
- Wow. The problem was that I changed the default java compiler from the 1.6 U24 that Jdeveloper ships with to 1.7 U11, which is the current version. Impressive how an Oracle product broke an Oracle product
- Nonetheless, progress:

- We will need to resize the grid dynamically (maybe?) here’s a discussion on that: https://forums.oracle.com/forums/thread.jspa?threadID=2357691
OH
- And it looks like we’re not free of our FGM entanglements yet. Self evaluations. Woo freaking hoo.
- Sent Lynn a note about my reimbursement as well, along with my final grades. Maybe some progress?
Dong Shin 01.16.2013
- deployed the new PA, everything seems fine
- continue working on Project Navigator
- got Edit button to behave correctly
- got Months ComboBox to behave
- cleaning up codes
Phil 1.15.12
8:00 – 10:00 ESSO
- The production server wasn’t accessible for some reason today. Tomcat was running, and if I went to 127.0.0.1 on the server, things came up just fine. Fixed by restarting the server. Weird.
- Backups
- A really useful blog with some tips and code snippets which you may undoubtedly need while coding in ADF.
10:00 – 2:30 OH
- Visit with Samir Nanavati to discuss feldman project. Nice meeting. *Terrible* traffic. It took 90 minutes to get to Tysons, and about 70 minutes to get back, for an 11:00 meeting. Oh yeah, and there was no one manning the full service booth on the toll road on the way back, so being a nice little drone, I paid by calling the posted number (FastPass). $1.00 toll, $6.00 handling charge. Then, after they took my money, they forwarded me to the toll road authority so that I could complain about the absence of a worker. I was then told that I should have run the toll. Awesome.
2:30 – 5:00 ESSO
- Tried to follow along with the ADF videos, but the components aren’t there. Well, they are kind of there, but have changed since the video was made. As a result, I made some progress, and can build things that look kind of reasonable, but they are not launchable. Don’t know why. So, I’m going to flail at something new tomorrow: ADF Hello World Tutorial
Dong Shin 01.15.2013
- continue rewriting Financial Data Navigator
- separated Monthly and Yearly view into components
- got the basic navigation, yearly view working
Phil 1.14.13
- Doctor appt this morning. The leg is totally fine.
10:00 – 3:00 ESSO
- Talked to Dong some about the Due/Overdue/Incomplete/Complete project status
- Installing new Java. Need to do this at home, too.
- To change the default Java library in JDeveloper, do the following
- Application->Default Project Properties. The “Default Project Properties” dialog opens
- Select Libraries and Classpath in the tree navigator on the left
- Click on the change button at the top right The “Edit Java SE Definition” dialog opens
- Click the “”Browse”” button after the “Java SE Executable:” field on the top right.
- Navigate to your new “java.exe” (e.g.. C:Program FilesJavajdk1.7.0_11bin)
- Note that this only changes the settings to new projects. To change the settings to an existing project, right click on the project in Application Navigator, click on “Libraries and Classpath”, and follow the steps above.
- Watching the next video. This one is on ADF faces
- Programmatic ADF. And some more code snippets.
3:00 – 5:00
- Q1 Team get together
Dong Shin 01.14.2013
- rewriting Financial Data Navigator

You must be logged in to post a comment.