Wednesday, May 2, 2012

Final week

So I haven't been a prime mover this past week since others have taken up the task of presenting/doing marketing.  I'm alright with that.  I have donated work in the form of coming up with the overall idea for the presentation, and I added the technical slide.  I also reviewed and slightly edited the paper we will be handing out.  So not big work, but I'm participating.

Since that's about all I have to say, I'd like to throw in this conversation I had with Joe:

Joe:  (In response to the classes I'll be taking next semester) Mmmraahhaaa.
Me:  wwwwwwhaaa????
Joe:  Twas my ackley impression...
Me:  That was more like an internet troll being discovered.  Ackley's is more like years of suppressed disappointment slowly bubbling up a little at a time.

As far as I know, that's what it is.  Any theories otherwise are welcome.

Wednesday, April 25, 2012

TTS Beta

I received special treatment in that I was awarded 5 of the prestigious Table Top Studio beta keys.  Using all of one key, I played around with it for a couple of hours.  If you don't know what these are talking about, I won't explain them since it is specific to the beta test.  This is what I was able to come up with:

1) Maybe an x on the top right of the components when you add them, instead of just having to make the quantity 0 to remove it.

2) Have an option to make an image in the component wizard scale to fit the red or blue outline.

3) Move up and Move down don't seem to do anything in the double click menu of the component wizard, specifically for the board. -- Oh I get it, as in layers like if there are multiple images. I thought it meant move up (-y) and down (+y). Maybe instead of up/down it could be forward/back?

4) For the Game Box, the items in it seem to have a large number of dotted lines. Why? (Especially around the labels)

5) Make the spinboxes for the quantity editable? What if I want 100 of something, then clicking 99 times might get annoying.

5.5) It seems like you send a message to the server each time I click the spinbox + or - signs. With my internet being oddly slow this makes clicking 12 times take a while. In the order of seconds per click. Might just be me though.

6) Resizable Game Box?

7) Every time I add a component, the scrollbar resets to the top.

8) What is the scale of the images used for the default stuff? So are the houses the same size as the planes?

9) If the value is $0.70 it shows up as $0.7, should keep the 0 at the end.

10) Dimensions for the components <---- Biggest thing possibly.

11) Is making custom cards possible?

12) Board costs is N/A? What does that mean - I get one for free?

13) Sum the costs in the game box.

14) An error occurred during saving, but I immediately retried and it seemed to have worked. Could be my internet.

15) Why is there a continue button on the loading window? I pushed it once, the game stopped loading.

16) Loaded components aren't in the same order that I saved it in.

17) Not sure if I like the border lines going away when I mouse over them.

18) Images in the component wizard can be taken out of any reasonable boundaries and off screen where they can never be retrieved.

19) If I zoom out of the board making wizard, insert a small image, resize the image to fit the board, then zoom back in everything gets wacky.

20) Saying that I finished making a custom board closes the wizard, maybe I didn't want to stop wizarding?

21) How do I edit a custom component that I previously "finished".

22) Items in the available images section are oddly arranged in a checkers diagonal fashion.

23) Have an option to zoom to fit the item to the current window size?

24) For the 6 sided dice, how are the faces arranged on the actual dice? So is face 1 adjacent to face 2, and face 3 is opposite face 1?

25) Why are all the components I've added to the Game Box now in the Available Images part of the wizard?

26) Can you make it so when I click something on the Show Components->Default Components menu it doesn't go away and I can keep checking things off. Instead of having to reopen the menu for each item.

27) The names for my custom components aren't staying. I gave something a name, then pressed finish and it shows up as "Untitled" in the Game Box.

28) The back button while editing a component is on top, if I press it then a new back button is on the bottom. Keep it on one side?

29) Maybe if I double click on a component in the Game Box, it opens it in the wizard to edit?

30) I moved a window such that the title bar is too high and I can no longer get to it. This also means I can't move it back down.

31) I pressed f5, in the play test env and it said I hadn't logged out. I selected continue and it reloaded fine.

32) After reloading, I joined the same view I had made with the game board and pieces on it. The game board was on top of everything this time and I had to move it down.

33) Does it make sense to be able to close the communicator? I can have it to where all I have is the list of pieces in the box. That doesn't do much good by itself.

34) Instead of having every element expanded in the Game Box, just have them stack on each other? So instead of having 5 blue stick images, I have one with a little 5 in the bottom right.

35) I can have two views with the same name.

36) Changing the zoom on a view didn't resize all of the images. The board resized, but not the pieces on it.

37) If I spam the chat box, my messages will accumulate in the entry box. Only when they are sent is the box cleared. Maybe just clear it on the client side as soon as a newline is hit?

38) I've logged into multiple guest accounts for a play test, and each time I logout/log back in under a diff account my old accounts still remain in the views.

39) Due to #38, I can't remove views. How do I remove users from a view?

40) Got a NO_SESSION_CREATED error. Don't really know why. I f5'ed into another account again and immediately tried to send a message. I didn't join any views. The game pieces and views from my other sessions were there though. After getting this message all the views and game pieces are gone.

41) I was typing a lot in chat, and usually it scrolls down to the newest post when one is made. I don't remember when this started happening, but after a point it didn't scroll anymore. I was unable to recreate this.

42) For some of the input boxes, do the obvious action if I hit enter.

43) Auto join the view I create?

44) When I put in a different url while in the PTE, it says it cannot connect to the server before the new page loads.

Overall 44 items.  I was able to make a Settlers of Catan game pretty easily.  

Monday, April 23, 2012

Winding Down

As far as I can tell, I've done everything I need to for the gui.  I came up with a good idea for the presentation this week, and the .ppt is in the works.  We plan on using a video demo.

Midterm reviews are supposed to be going out this week.  I know it was meant to review for the middle of the semester, but I'm worried it will put me into depression.  My personal review wasn't good, but since then I've worked a lot harder.  Having that come back again won't be fun.

Thursday, April 19, 2012

What it could have been.

These are my thoughts on Joe's group and the Table Top Studio.

On some levels I'm happy that I'm not in the group, and on most of the levels I'm pretty sad.

From what I'm constantly hearing they are working really hard on their project.  I doubt I could have put the same amount of work into it as Joe or Stephen.  If I did, I probably would have been miserable.  That being said, I think I could have done a million times better than what I've heard Stephen L has done.  Maybe, if I had been in the group the need for Joe and Stephen to work insane hours wouldn't have happened nearly as much.

What I really miss, is the opportunity to be apart of the group.  I'm really good friends with Joe and Jan, and I know Stephen from a few classes and I really think he is a guy I want to get to know.  I don't know Brady much, but we chat every now and then at work.  I think it would have been a really good group, that could achieve many things.

From the word about the amazing super progress they've made I can't believe how I could have done any better, but I'm sure I would have done great.  If Joe would make a start up, I'd join it instantly.  That guy is going somewhere, and I want to be along for the ride.  If TTS becomes big, I'm going to be so sad that I wasn't there when it started.  To think of the opportunities I've missed, I'm sad.

This summer I'm signing on to the team though, so I will be a part of it.  Sadly though, it will be after the feverish grind and I'll be coming into it without any idea of what is going on.  Should be fun though.

Frustration Levels Rising

Grrrrr

I did pretty much all of the programmatic things I needed to do Monday.  That day I also sent out an email with some questions/issues that needed to be resolved by other group members, such as:

  • What method do I call to do ___
  • I think this functionality should be in your module because ____
You get the idea.  I still haven't gotten a response yet from anyone.  Most of this stuff is pointed towards Chris, because its pretty much me and him that own the code.  Daniel has a bunch too, but the issues are usually between me and Chris.  I just can't ever get a reply from the guy in email.

My other task this week was to debug the apscheduler issues we were having.  The schedules the gui was generating weren't working for some reason.  I went over the syntax again and saw a minor change I could make, but other than that it seemed fine.  I wanted to test the save files then and required to start the daemon.  The daemon has been the white whale for Chris for the past few months.  He's always had problems with it and is always fighting it.  I don't know the details, but he seems pretty determined to get it to work.  Recently though he said it was pretty solid, and should work.  So I ran the cernentd module on the command line with no args just to see what it would do.  I got "start|stop|restart".  Makes sense.  I tried again with the argument start, and looking at our log file saw something about shutting down the thread pools. Odd...  I tried again with stop, and got a "Are you sure the daemon is running" sort of deal.  The log file also said the threadpool had been started.  Being thoroughly wierded out, I tried the last option restart.  This threw an exception.  So when our daemon control module starts it stops, when it stops it starts, and when it restarts it dies.  I checked to make sure I had the latest update, and I did.  So I sent Chris specifically an email detailing the encounter.  I have yet to hear from him, and this was Wednesday.  I feel really bad for not working on the project much, but I keep hitting these barriers waiting for simple things from other people that are just ignored.

I think Chris bit off more than he could chew.  He's doing pretty much the whole back-end, which deals with managing the daemon, reports, and all the command line stuff as well as the reporting framework.  Last I talked to him he said he was going to reword the reporting framework to get rid of some hardcodings and such.  I haven't seen his code, but from what I hear going on he hacked it up for demo purposes and now we're dealing with the consequences.  I wouldn't mind helping, but it would mean he would have to stop ignoring me first.  I'm sure he's not doing it on purpose, he's just too bogged down to pay any attention.  I don't think this has anything to do with alfonso, I think that if we would have egged him on to do more things, we'd have multiple areas that we would be having problems with.

Brian_D is working on non code stuff.  It seems like he is being rather productive too.  That's good.  We came up with a pseudo marketing plan as well.  Just trying to get posts on I.T. related blogs and posting on the nessus forums about it.  I think that is all we should really do, this isn't a product with a large target audience.

I don't know what Daniel is up to, but I'm sure hes busy with something.  From what I've known from him he is always taking really hard classes, so I can understand if he's booked.

Alfonso is probably doing nothing.

Monday, April 16, 2012

Starting Early

So this week I'm trying something different.  Instead of starting my goals on wednesday leaving two nights to finish them, I've started much earlier in the week.  I haven't had a problem yet, but for some reason I it just seemed easier to start now.  What I'm doing is just small gui stuff here and there, such as a status bar so when the gui loads stuff from the nessus server it will say that it is loading, instead of just pausing.  Also, if you try to select a server in the listbox, and for some reason the connection fails the listbox item turns red and the status text tells you that it can't connect.  Then I made some graphical changes to the launchpad again, its starting to look like it did when I first made it.  Odd.

What I still need to do is have the gui respond to validation checking.  This means when something is set, I ask the ScanEvent if it was actually valid and then reflect this in the gui.  Then I need to talk to Chris about the daemon controls.  Apparently something funny is happening when you try to start a daemon using the gui controls.  It seems like the current process dies and the daemon starts.  This means the gui will die if you start a daemon through it.  He said he wanted me to spawn a new process to start the daemon, but this sounds like something for the daemon controller to do.

Thursday, April 12, 2012

Prepare for code review!

Thats what I've been doing since I got home at like 3pm.  I went through all of my code, which is the majority in the project.  Since I own the majority, I felt the most pressured to do well tomorrow.  I'm usually proud of the quality of my code, but since I didn't know python well from the start I have some concern that something will be found.  For the most part I expect it to be, "oh you could have named this better".  If that is the worst of my fears, then I think I'll be fine.  Most of what I did today was commenting with the sphinx scheme, which is very close to javadoc.  I did the usual if its not private comment it scheme.  About 90% of my code is in private methods, since most of it is gui boilerplate.  So for the "private" methods, I prefixed them with "_" so I know.  This seems to be the standard in python.

The biggest area of concern for me was the ScanEventEditor.  It is probably the largest single module with about 850 lines of code.  Humongous, I know...  Anyways, my problem with that is python likes to have everything in a single module.  That combined with the small scope of the project I initially decided to keep the controller logic for the editor in the same file as the view stuff.  Terrible.  Well, think about it this way - If I was to make it more MVC modular, I'd put the controller logic in a different class than the view logic.  In python's way of doing things, this would mean I'd have 2 classes in the same module (file).  What would that really get me?  I'd still have to deal with it all in the same file.  The only difference would be at some point in the code I'd add a line "def class <name>".  Thats pretty much it.  What I did do to mitigate any negative feedback about this part is I organized the file layout better.  All the controller code is in the same place, labeled with what parts it controls.  All of the gui creation stuff is in a different part labeled as well.  This way it is almost identical to being in different classes, except I don't have to add inter class communications between them.  Win Win.

The last person I'd like to be tomorrow is Alfonso.  Maybe at some point ackley will get bored looking at gui boilerplate, and ask to see some of Alfonso's code.  Haha!  Good luck trying to find some.

I always think my code could be better.  We'll find out tomorrow if I'm the only one.

Wednesday, April 11, 2012

Finally

After being sick and having my computers crap out, I've gotten my laptop back up and running with the newest version of Ubuntu.  It took me a few hours to configure everything again for python devel, but now I'm in a better position before.  Finally being able to program in this environment and feeling better I went right back to programming.  I've completed 4/6 tasks (not including code cleanup) and I'm certain the last 2 won't take long.

One of the tasks I did today was regarding the Launchpad's looks.  The main argument was that Chris wanted a simpler version that didn't use my terrible microsoft paint graphis, and I wanted something more than just a few buttons.  Well, the deciding argument was won by Chris when we all agreed that neither of us are artistic, so we might as well just stick to what we can do, basic buttons.  Now the window is much smaller for the launchpad, and resizes to fit the other elements.  There are 4 buttons, edit/new/reports and daemon controls.  These are all tightly packed in the 150 x 150 window.

One of the things I worked on that I was not able to get working was the problem that if you resize the window below a certain point, the frames inside stop getting smaller.  This is expected, but you couldn't see the chopped off parts.  The big problem with this is you can't add scrollbars to frames in this gui library.  You can however add them to a "canvas", which at the time this first came up I didn't really understand.  My first approach was to just make a canvas, and put it between the window and the main frame.  Then add the scrollbars to that.  Running this everything showed up fine, but the scrollbars didn't act like anything was there.  I fiddled and googled around and found that canvas's don't init like the other widgets, and you have to call a update_idletasks method on the parent window in order for the sizing to work right.  This fixed it to the point to where the scrollbars knew what size things were, and how much scrolling could be done, but no scrolling actually happened when you moved them.  After searching some more, I didn't find anything that helped but it dawned on me that maybe the canvas was scrolling correctly, but the fact that the contents are all in Frames is the problem.  Since Frames don't scroll, then putting Frames into a canvas won't make them scroll.  I guess the whole deal is off then.  Maybe I can limit how small the window can be made?  That seems to be the only other valid option.

Tuesday, April 10, 2012

blaaaarggggg

is a sufficient term to describe how I've been feeling this week.  I recently went to Florida to visit family.  I didn't sleep the night before the flight in hopes of sleeping during the flight.  That didn't happen.  Then I had poor sleep both nights I was there, and my first night back here I woke up a few times to tango with the toilet.  I'm feeling better today, I still have a lingering cough.  The physical toll it took on my body is more than I excpected though.  I went to work/school for the first time this week, and after walking from the various parking lots to where I needed to go, I spent at least 10 minutes catching my breath.  After getting home in the afternoon, I took a nap.  I then had lunch, and took another nap.  I pulled myself out of bed finally a few hours later to get some homework done.  For the project, other than code cleanup there are a few improvements I've been tasked with.  All of them are pretty small, and I've gotten a few done today.  I fixed the padding in a tab, and redid how I set up the variables and frames for that tab as well.  This also goes with the code cleanliness.

I'm not really worried about the code review.  My code is pretty straight and simple, it pretty much just makes gui widgets.  The names are probably fine, but I'll look over that.  Other than that, there is no public, static, or final modifiers so stylistic things like that aren't going to be considered.  At most it will be the basics of programming:  naming, short succinct methods, modularity, and documentation.  I always incorporate these elements to what I do, except for documentation in this case.  Since I was new to python, I didn't know the standards of commenting (JavaDocs in Java for example) so I didn't do much commenting in the begginning.  Most of my methods are "private" but I guess I should explicitly say so.  A good amount of the "public" ones I have docs for, but I need to go back and make sure they are high quality.

Wednesday, April 4, 2012

Computer Problems Continued

Nothing has yet to improve relative to the situation of my computers.  I'm currently in the process of a full re-install of my laptop, and my desktop still misbehaves.  Luckily, most of the gui has been finished and all that really remains is making it look good.  I still haven't gotten much feedback about this, but the feature freeze is this week and we have all of next week to make it look better.  I sure hope my desktop starts working as it should, and I can get my laptop back up and running.  Otherwise I'm going to be SOL on the remainder of this project.

Tuesday, April 3, 2012

Computer Problems

So I've been re-installing Ubuntu on my laptop for the past couple of weeks since it had an intermittent hard-drive-likes-to-go-into-read-only-mode-every-once-and-a-while problem.  This just happen to occur during a system update, so as you could probably tell it won't boot anymore.  So I just decided to update the OS to a newer Ubuntu version and fix this in the process.  The first install worked fine and all my stuff was still there, but nothing would run.  It would just say that it couldn't run any of the binary files.  I then realized I had accidentally gotten the 32 bit version where as the previous was 64.  No problem, I went and downloaded the correct version and after installing that one it now has Kernel Panics.  I always thought those were such a silly thing.  I could just imagine the Kernel just sitting there with its knees shaking having a nervous breakdown.  Doesn't seem as bad as what it really means.  I'm trying to re-install it to see if it somehow fixes it.

In the meantime, I've switched developing to my desktop which was for gaming only before.  Sadly, it is a Windows machine, so most third party things don't exist.  For the gui, there wasn't anything I needed other than python itself so this wasn't a problem.  Now though, to integrate the Daemon controls to the launchpad I need to install the third party daemon library.  I got the easy_install program that installs python packages, and ran "easy_install daemon".  Eclipse still didn't recognize the package, so I checked to see if it was in my PYTHONPATH variable.  Turns out that var didn't exist.  So in order to create it I had to add a new system variable.  I didn't remember the location of the python home on the file system, so I decided to open up the windows explorer and find out.  I open it up.... nothing shows up in the screen.  I then start to hear some funny noises repeat from my computer.  A few moments later the application crashes and the start menu and all that disappears.  After a few moments all that comes back though.  Great, now this computer is having problems as well.  Good thing all the code and stuff is on SVN.

This has spurred new energy into the restore my laptop project.  It is currently installing again and hopefully should be up tonight.  Good thing most of the heavy lifting in the project is done.  If all goes to hell I can still do stuff on the C.S. machines, but I don't have the ability to install these third party applications there in a timely fashion.  Lets hope it doesn't come to that.

EDIT:

Despite this, I've still managed to accomplish 2 of the features that Ackley suggested:

* The save menu item is disabled when there are no changes to save

* Navigation options allow you to go back and forth from the launchpad.

On the last item, I'm really happy that I've had experience with making Guis of this style before.  In order to make this happen, all I had to do was add a 3 line method to the controller.  The add and remove functions for all of the windows were already implemented, I just had to make it go back as well.  I could see how not building the gui in such a modular way would make things like this nontrivial.  My gui's may not be pretty, but they sure as hell work right.

Thursday, March 29, 2012

Night before Gui Demo

I've dubbed it the Gui demo, because most of the requested items are Gui related.  There are background things that need to be implemented for the Gui stuff to work, and that is what I'm currently waiting on.  Unless I get feedback from my group members, I'm pretty much done with my part.  I'm at the point now with python/Tkinter that adding or changing things goes by really quickyl, due to my knowledge of how it all works and the methods I used to set up things before.  I have only programmed for 2 hours so far today, and I finished the last half of the items I needed for the demo.  I do have an idea on how to improve the Launchpad though, so I'll probably go and do that real quick.  Today I added these enhancements:

  • Completed change notification elements
  • Title bar tells you what file you're working with
  • Reporting manager lets you switch to other reports
  • Improved the New menu command
  • Fixed the layout of the Scheduling tab.

That's it so far.  I'm waiting on method to be implemented that I've created hooks for in my code, so all I'll have to do is call their stuff.

EDIT:

I did what I wanted to do with the launchpad.  It is the rest of the team's fault for letting me design it.  :)

The gui's scheme is gray, black, and white.
 I've asked them a few times for feedback on how to make the gui look better, but I didn't get any.  So I'm just going to do what I want.

For evidence reasons, this is the commit log of the past week:

Commit log of the past week

Wednesday, March 28, 2012

Gui Enhancement

Well the big ticked item for this weeks demo is just Gui enhancements.  It is best summed by this email sent to the group about what we should be doing:

Chris: Report Framework, Scheduler Check/reload, Daemon start/stop/restart, slides for Friday's presentation.

Daniel: Email Item Report selection

BrianK: GUI launchpad, Reporting pane, GUI Polish, Change Detection and Save option, daysBack slider 1-10 + inf, gui option to start/stop/restart daemon.
Reporting window needs (Ad-Hoc Reporting):
Browse button for .nessus file
List box with available report list
Text box for description
Text box for example output
Save-To box/browse button to choose where the report will be saved

BrianD: setuptools/distutils

Alfonso: setuptools/distutils

 I guess I know what I'm doing for the rest of the week.  I started yesterday, but I did the most of it today.  All I really have left is Gui Polish, and the rest of the Reporting Pane.  The Reporting pane will allow you to pick already created reports and push it through a reporting module to process it and save the output.  This way you can do the last half of what the Daemon does without setting up a ScanEvent.  The other things, including Save, Change Detection, Scans To Keep slider (1-10+inf), and the gui options to start/stop the Daemon were really simple and I did almost all of them in an hour.

As for GUI Polish, I'm pretty much screwed.  I'm not good at making GUI's look good, just making good GUIs.  I'll have to look to feedback from the rest of the group for that one.  As far as functionality goes I've added scrollbars and resizing stuff all around, but the GUI itself isn't aesthetically pleasing.  I don't really think there should be much done other than redoing the layout of the Scheduling tab, which is just a bunch of stuff thrown in without any concern whatsoever for looks.  The other tabs are pretty simple and well laid out.  Other than that all I can think of is some padding and changing of colors/borders.  All of these are pretty low on my list of things to do right now.

This awesome coding session brought to you by the awesome song:

http://www.youtube.com/watch?v=hmf34m42JyI

Heads up, this is best listened to loudly.

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....