Sunday, March 11, 2012

Spring break 2.

After submitting my evaluation and having lunch with some friends I got home pretty late. I did manage to get a class set up with getters/setters/docs and the ability to load and save instances of that class in a local directory.  It currently wont work, because some of the items it should save/load aren't defined.  I've informed those that should be responsible.  Until that is resolved, it is off to gui land for me tomorrow.  I think it might look weird to the other members of my group, in about 2 hours I've made more emails regarding actual content then probably the whole beginning of the semester.  In order to meet the deadlines made by Ackley, we gotta all turn on HERO programming mode.  I'm already started, and already waiting on the others.  Gui land should keep me busy though, even if definitions don't exist, I can still make widgets and controllers to get everything ready for when those items do exist.

Saturday, March 10, 2012

NOT RELATED TO 460 - But a good read anyways.

This topic isn't related to cs 460, but I wanted to share it anyways.

So I was playing a game of sc2 as usual, when a fellow started to be mean to me.  Well, this is the internet I get that all the time.  After the game was over, that person messaged me personally asking if I was retarded.  At this point I was curious.  Was he just being a dick for the sake of making me feel sad, or was he himself down?  So I decided to ask.  He said that he hates where he is from, and everything around him is failing (America).  Not wanting him to stay mad and walk away, I asked for specific examples.  He went on about the problems with politics and healthcare, and I listend patiently.  He said he was negative because of these issues, and doesn't see anything to be happy about.  I asked him if he had anything to be happy about, friends family job.  He said No.  So I started to relate to him, telling him about things that I've had to deal with recently.  My life hasn't been really hard or anything, but I have a good time seeing things from other people's points of view.  I told him about how I focused on what I wanted to change in my life:  quitting WoW and going to the Gym.  I've been much happier with myself since then.  Simple things that dragged me down.  I asked him if there were things he is happy about, and would like to change.  We talked a little longer, and I tried as hard as I could to provide the best advice I could.  He was surprised that I genuinely cared about him and appreciated it.  One of the major things I said was:  I don't want to be the best programmer ever, or be rich.  I want to try my best and to make the world better as I do it.

An interesting interaction with someone I'll probably never know.  I just hope that I've influenced them away from making bad decisions due to likely depression.  On top of that, I totally proved him wrong :)  I don't want to go about in life spreading negativity.  There is always too much of it.  I'd rather just look on the bright side.  I know that sounds lame, but it really does help in more ways than someone in a negative rut can see.

Spring break - 1

So in order to meet Ackley's request for the demo next time we meet, I have a lot of work ahead of me this spring break.  I don't have anything else really to do, except for LANFEST!!!!!  Anyways, I started today and made the custom gui widgets be able to load configurations from the config file.  I also started on the main gui panel structuring.  I had some difficulties with the layout, still getting used to that.  Also, in python if you have different modules that try to load files by relative paths it is much harder than I thought.  The current directory for each module is the same as the modules that the program entered in.  So if I have a module that handles IO to files in a local directory, then my path to that dir would be "./files" plain and simple.  If I use this module from a module in a different directory then it wouldn't work, because the directory the starting module is in doesn't have a "./files".  I was able to work around this by not using a relative path, but getting the path to the module the code is in via the symbol table.  It ended up taking me an hour to get this part.  It is a bit overly complicated, but now that I know how it should be really easy to duplicate in the future.

Thursday, March 8, 2012

Weekly update

Well, turns out I'm really bad at remembering to do things... such as post on a blog.  But anywho, this is an update for the whole week, because lets face it, I can't fake 3 good posts in a couple of days.  We plan on having a demo tomorrow that should be pretty cool, and show Dr. Ackley a lot about what the project will allow people to do in very little time.  As far as the demo is concerned, I won't be involved since it will be done through the command line and a different part of the gui.  This is good, because this week I haven't had any time to work on 460 stuff.  I've had 3 midterms and a group research project to work on.

I do have to say, as time goes on I find myself more and more happy that I'm in the group I am.  I could not stand being with some of the other students in the class, so not being with them is great.  Also, if I had been in Joe's group, I would be working many times harder on the project.  I kind of enjoy not having to worry about my project all the time.  On top of this, everyone in the group seems to be getting along really well, so all in all it just might turn out to be a good thing I ended up here.

Monday, February 27, 2012

Scan Demo

So I'm in charge of making the gui, that is a know fact.  Today I build the gui for the demo we want to have ready to present for Friday.  It will allow us to start a scan with a nessus server.  The basic information needed is the scan policy, a list of targets, name of the scan, and what server will do the scan.  Some of the information will be selectable from a list that will be given to the gui from the nessus server itself, and the other stuff (scan name) will be from the user.  I've set it up currently so that if you push the scan now button the gui controller polls all the data required and just prints it.  The functionality for actually getting the data from the nessus server and starting a scan is not something that I'll be working on, and I'm in the process of communicating this to the person who is.  Overall I'd say that in a few hours I think I did a pretty good job of making the gui.  It's fairly small and looks terrible, but dammit does it work.

Sunday, February 26, 2012

Third week start

Well the third week has started off well.  We've all gathered in the cs dept for some team programming.  We all just kind of worked on our own stuff, but with everyone but alfonso here to help with learning python it has gone very well.  I've started to get used to the Tkinter gui library, and made a less simple gui.  I haven't done much else code then that, but I have done other things not in code.  One of which is we had a problem importing each module to each other's code.  I figured it would be like java with the import gui.cGui.widgets.CLabel or something.  Chris said that with modules you have to add the location of each one into your PYTHONPATH or something.  This sounded like a huge pain in my ass, since I love making deep directory structures.  The import function is also not recursive, so every directory must be added.  I notice every time I want to make a new python module, there is also the option for a python package.  Wondering what this is, I tried it out.  Turns out it is the same as java.  You just make a package, and as long as the top level directory of the package is in the path, then you can import anything inside it as long as it is in a sub-package.  This will be much easier than adding each and every little directory.  Hopefully I can work more with this group than once per week, they are pretty cool people.

Wednesday, February 22, 2012

Second Week Wednesday

So we have now agreed that the new name is Cerno, which is latin for distinguish.  I think this is a fitting name, because the goal of the project is to take a bunch of data and discern who it should be reported to.  I have also set up the code repository using google code.  I haven't heard of much else going on other than that.  I think we are off to a slow start.  I'm doing the GUI, which means that I need some sort of code base to work with before I can really do that.  So I'll be helping Brian Dennedy with some of the Nessus api stuff, but I haven't heard anything on that.  To top it off, I got in a wreck today, complicating after school travel.  Despite the slow start, I think we are still fine as far as finishing on time, the project seems pretty lightweight.