Tuesday, March 27, 2012

Editor Enhancements

So the big goal for me for the next demo is to add new features to the ScanEventEditor.  Well, not really new features, but common ones.  A "Save" menu item for one thing, and the ability for the editor to know when something has actually changed.  Ackley said it himself, that in order to determine this it is non-trivial if you didn't build the gui right.  Well, it took me all of 5 minutes to implement the "save" menu item, and it is starting to look like the "hasChanged" feature is going to be pretty easy.  I've already done most of the work.  One thing I really like about the gui library in python is for almost all of the input widgets you can set up special variables that when the input changes the variable changes.  You can also add a method that will be called when the variable changes.  So all I have to do is add a method for each one and check the current value with a previous one.  Done deal.  Some days I hate python (most of them) some I like it.

I know there were more features he wanted implemented, but I don't remember what they were.  I don't think the other ones were all too scary, the "hasChanged" feature was the hardest.  I asked my group for a list of things that he wanted changed (Brian D usually takes notes) but I haven't heard anything from them for the past few days.

Before we all left after the client meeting last Friday I told everyone that I would be not working on the project for the whole weekend, as I had 2 take home midterms and a bunch of other stuff to take care of.  Well, they decided to schedule a group programming session that I had no choice but to miss.  So much for trying to make meetings more.  I feel as one of the good programmers in the group I should be kept in the loop a little more.

Monday, March 26, 2012

After Big Demo

Well the big demo is over, and we met if not exceeded his expectations for that meeting.  I'm happy that we were able to do it, but it came down to the wire on a few things.  I think from here on out the project should be much easier than it was for the last few weeks.

I haven't done much in the past 3 days, I've been working on other classes including 2 take home midterms and another group project.  This week I need to get the gui in better working shape with some added features common to most guis.  This includes a save button (not just save as) and some things to track if a save is actually needed.  This will be the most challenging, but I already have a plan of attack on this.

Thursday, March 22, 2012

Before Demo

Well, I'm sitting here at 8:40pm waiting on responses from pretty much everyone on the team about the status of the demo we need to get working tonight.  I've upheld my part of the bargain.  The Gui can fully configure a ScanEvent and save/load it back up.  I don't know how the rest of the system is going though.  I've asked the group multiple times, but I've only heard from Daniel Chee.  He helped me on the gui a lot.   I think this lack of communication is going to really hurt us in the long run.  Chris is supposed to make sure it is working before tomorrow, but I haven't heard from him all day.  On a scale from 1 to worried, I'm worried.

Before the Big Deadline

Well, I came back from Spring Break a little late, I missed all classes/meetings on monday.  We (UNM SC2 Team) were driving back from texas and we arrive home at about 5-6pm.  Next time I talked to my group, it seemed like not much had occurred while I was gone.  I was hoping that the project would be mostly done, in terms of what is asked of us but it does not seem like it is the case.  The demo is supposed to happen tomorrow, and I don't really know what needs to be finished up.  Before I left it seemed like I just had to tighten up some stuff about configuring to a ScanEvent and back in the Editor.  I talked to everyone yesterday and it still seems to be the case.  I'm not too confident though.  I'd feel better if I was doing everything, but I know I can't.  I'm going to try and keep in communication with everyone, so I can help out if needed in a heartbeat.

To make the tension worse, I was in the middle of a system update with my laptop - which I use for development - when the file system went into read only mode.  The only thing I can really do is restart it from there.  This usually isn't a problem, but it didn't finish configuring the update, so when I went to restart it goes through the BIOS, but then immediatly shuts off again.  This started last night, but I just got it back up and running by updating the OS.  I kept all of my files, so I should be good to go again.  Surely didn't help the tension with the deadline tomorrow.

Wednesday, March 14, 2012

Spring break 5 - FINAL

Well today was the last day of my Spring Break binge on programming.  We had a group meeting today where I finished up the functional parts of the gui.  It doesn't look great but it works.  We can worry about how it looks after the demo.  All the parts that remain is pretty much the email section of the gui (Daniel Chee's realm) and that isn't something that was on my plate.  So really I'm set until I get back.  Hopefully it all goes well, and when I get back we're all having tea on the beach-side.

One of the issues we had to get over was for the Scheduling part of the program we're using a python version of cron that takes a dictionary and does its stuff.  Generating the dict was a bit tricky, but nothing I couldn't handle with some list comprehensions.  The issue though was how to get the dict into a string and back.  Now we could write a parser and all that stuff, but who wants to do that?  Well, Brian D came up with the idea of when you type the name of a dict variable in the interpreter it prints the dict out in a string.  If we could somehow get this string, could that be how we save it?  Well, we can't exactly just put the variable in the code and hope somehow it turns into a string.  Thinking about this I realized that using the str() method should do the same thing, because how else does the interpreter do it?  That worked.  Now all we had to do was convert the string back into a dict.  With our experience in 357, we were curious if there was an eval() method.  There is.  Turns out if "d" is a dict, then eval(str(d)) == d.  Sweet.  Done deal right there.

I think in these past 5 days I've solidified my role in the group as a valuable member.  Not only have I produced a lot of code that works great, (maybe not the best style, but I'm short on time) I also stayed in communication, helped others, and organized a meeting.  Now I get to go play video games for 3 days.

I feel like the last panel in this comic:

http://www.amazingsuperpowers.com/2011/04/high-pitched-noise/

Tuesday, March 13, 2012

Spring Break 4

4th Day of Spring Break and the gui is coming along nicely.  With Daniel adding his elements to the last tab of the ScanEvent Editor, that pretty much wraps it up for building the gui part.  Now all that is needed is taking the data from the gui and configuring the ScanEvent and vice versa.  This shouldn't be too bad.  I have tomorrow left before I go to Austin Texas for the rest of Spring break.  I want to get my group in as good of a position as I can, so that they can continue where I left off and when I get back the I expect the requirements for the demo the following week to be pretty much done.

I hate to say it, but me and Tkinter (the gui library we chose) are finally getting along.  Turns out the grid manager in that is a lot like the GridBag manager, so my experience with Java guis has translated over nicely.  The gui is pretty good so far, everything resizes appropriately and you can load/save/create ScanEvents.  Most of the gui elements don't configure to the loaded ScanEvent, but that is all I need to do really.  We really need to come up with a coloring scheme, and get some graphics for the gui.  Until then, I'll keep using our horrible defualts:

Ugly, but effective
It won't be hard to change the color scheme, I've set up a configuration file that all the gui widgets get the BG color, foreground color, and things like that from.  I might have to add more, but overall it will be an easy change.

Monday, March 12, 2012

Spring Break 3

Today was the first REAL day of programming.  I've been at it since 11am, and it is now 7:30pm.  I made the functional layout of the gui, and finished the launchpad (starting window).  I also put the effort into figuring out how to make the widgets resize.  You can also save/load a ScanEvent from a file using the built in file choosing windows.  I also had to use some lame internet code and fix it up to be a TabPane widget, like in Java.  Overall a very productive day.  Just for evidence in the future:

Suddenly, commits.

Chris seems to be working on the project at lot as well, I've been sending emails to the whole group, and only really heard from him:

I still get his email notices as to when he's not available....