Saturday, October 31, 2009

Quarter end summary + pygtk

Ok, the quarter's (almost) over and here's what I've done:

-Found out about this class, signed up for it, met Jeff, figured out how it works

-Decided to make my bookcode program into something a lot bigger; redocnE

-Worked on it a lot, incorperated a bunch of other ciphers, made the launchpad page (https://launchpad.net/redocne)

-Lots of bugfixing, particularly in user-generated ciphers (the hardest one to make that I had made myself)

-finished to a reasonable degree

-decided to learn pygtk

-learned object-oriented programming (as in, I know how to use it, but havn't actually put it into practice yet. I want to though, it seems like I could do some pretty neat stuff with it.)

-started on pygtk. This is mainly what I did the past few days (another thing I did - forget to post here), and I've been able to make windows pop up, and change what happens by changing variables in the sample code. I read about how it works, with 'callbacks' and 'events' and I'm fairly sure I'll have to reread it a few times before I really get it, but I will get it eventually.

Monday, October 26, 2009

educationalization of redocnE

I talked to Jeff, and started commenting ani_cli for use in teaching ciphers. Also, for some reason, blogger didn't actually post this, and I found it on wed. in 'drafts'. I've been going through the code and putting (more) comments in it, but I'm feeling fairly unenthusiastic about writing up a thing about how to use it. Yesterday I was at home, and forgot to update, but I was finishing learning object-oreinted. I know the syntax fairly well now, and just need to put in into practice. I'm thinking I'd just go onto learning pygtk tommorow, unless you really want me to write the thing about redocnE.

Oh, yeah, and I have a question - what's the accepted way of using capitals in variable names and so on? I don't use them at all, I perfer underscores. I've seen sample code with like VariableName, though , when I'd say variable_name or variablename.

Wednesday, October 21, 2009

finally done with redocnE!

I finally found and fixed the bug with user-generated stuff! Actually, the bug was in the random-cipher generator i wrote. I never actually fixed the bug per se, I really just rewrote the function i knew was having a problem (ani_cli.usermade_gencipher()) when I realized there was a much better way to do it. I was previously using a contrived method of dictionaries to show if a letter had been used. If you want to see the old code, it's probably in one of the old bzr revisions.

Anyway, tommorow (or monday, tommorow's a half-day so I'm not sure if we have class, and i know we won't on friday) I'll learn the syntax of object oriented programming, then start on pygtk.

Monday, October 19, 2009

Found what the bug does

I found that the bug in cipher generation creates improper ciphers - some characters don't have both plain and ciphertext versions. I don't know why yet, though. Anyway, the code is here: https://launchpad.net/redocne

Thursday, October 15, 2009

found and tried to fix another bug

.. yeah, the title. In trying to fix the bug i found yesterday, I found another one, tried to fix it, and am not sure if i suceeded or not quite yet.

Wednesday, October 14, 2009

Debugging

I added a function to randomly generate a cipher, which works fine, but in testing it I found an error in the usermade function. I know how to fix the bug, but I havn't done so yet.

Thursday, October 8, 2009

redocnE debugging

I worked on debugging redocnE, testing each code and fixing errors (I had messed up the shift on the ceasar cipher decryption).

Wednesday, October 7, 2009

looked at pyGTK

I looked at the pyGTK tutorial you referred me to. It does seem like I can understand it, I found a hello world code, ran it, and played with it a bit (I figured out how to make a window that doesn't go away when you press 'x'!) and I do kinda get it. The code is written object-oriented though, so I'll need to learn that first. I think I will look at the GASP tutorial still though, just incase I like it more.

Tuesday, October 6, 2009

Launchpad &c

Today I:
Talked to Jeff about redocnE and launchpad, and registered a launchpad account. I worked on redocnE a bit, having a problem with reversing dictionaries until google saved me. I also forgot the time, and forgot to write my entry in class.