Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Saturday, January 28, 2012

…with a minor in being unprepared



I’ve really wanted to throw a quick update on here for quite some time, but I think that once you read this, it should be clear why it took me until the end of week 3 to do so. 

I started out taking ECE 321 (microelectronics), ECE 372 (embedded system design) and MTH 256 (differential equations).  The ECE classes both have labs, and the math class is 5 credits, so right there I am at 15 credits.  Also, it’s application season, and while I tried to complete the Ford Family Foundation scholarship application over the break, it just didn’t happen.  I needed to apply to grad school too, and that actually required two different applications.  Throw going from complete physical lethargy to working out or running 5 days per week and you could say my plate was full.

Then I saw the email.  The one that had actually arrived a week earlier, but I had somehow missed until the end of week 1.  It was from my advisor, and in more words he basically told me to immediately change my schedule: he said that the spring session of CS 333 was completely useless, so I should drop MTH 256 and take CS 333 this term instead.  I frantically emailed the CS instructor and she told me that she would let me into the class but that I already had labs to make up.  My schedule had to be reworked to make CS 333 (Operating System Programing) fit, but fortunately everything fit.


Fast forward to the first lab of CS 333.  Everything is done in Linux, on the command line, which I have never used.  I’m completely lost, and I’m getting all kinds of raised eyebrows asking questions like “how do I copy a file?” The room we are in (intentionally) has no Internet access, so there is no way to look any of this stuff up, and if you haven’t submitted your work within 3 hours, the computer turns itself off and you fail the lab. Do that twice and you fail the course.   Hypertension, anyone?

And that was just the first lab. I nearly walked out during the second one.  Then I thought about what that would mean (not getting into grad school, having to pay back all my financial aid) and I got back to work.  But the fact remains that regardless of how much I want to learn the material, and how helpful it will be professionally, I really shouldn’t be in that class given my lack of prerequisite knowledge about Linux.  It will be interesting to see how that all goes.  And by interesting I mean difficult and stressful. 

ECE 321 is proving to be quite a challenge too.  Good thing we get to use notes sheets on the test, because there is no way in hell I would remember that the triode region of a PMOS is given by:

It’s really more of a chemistry class for people who want to manufacture transistors and ICs and stuff, which I most certainly am not interested in, but hopefully I will make it.

That’s about all the time I have right now, but basically this is the hardest term of my life.  I know superlatives aren’t to be just tossed around, but in this case the statement is demonstrably accurate.  However, as of this week I did get all my scholarship/grad school applications completed and submitted, so there's that...

Saturday, December 24, 2011

Turtles. Definitely turtles.


Today's Random Sequential Indicator is 6.5:  That's how many hours we have to go until until Christmas! As I publish this, Christmas begins less than a full-night's-sleep away. So I hope everyone has a great holiday and survives their families! Remember to take breaks :)

Now on with the blag.  I may have mentioned this, but ECE 371 (Microprocessor Design) was the highlight of the term.  The content was interesting, the assignments were fun, and the professor was awesome.  This all came as a bit of a pleasant surprise, as I really didn’t expect to enjoy assembly language programming in the least. 

Don't worry, this shouldn't make sense.
For everyone not familiar with assembly language, here’s a crash course: It’s a programming language used to talk directly to hardware, and give it extremely simple, basic instructions.  It is so simple that a program to display numbers typed by someone on a monitor would take literally thousands of lines of code to create, since each instruction really can’t contain much more than “add these two numbers together” or “check if this button has been pressed yet”.  Sounds boring on the surface, but the real power becomes evident when you are NOT waiting on a user for inputs.  When it is just hardware talking to each other, things start moving VERY fast.  As in, you could check to see if that button I mentioned earlier was pressed thousands of times in a second, and respond nearly instantly if it had been.  Or a robot could check to make sure it is standing upright a few thousand times every second, and quickly adjust its balance if it starts to fall.  I might not be making it sound like it from this explanation, but basically with a microprocessor you can control just about anything that inputs or outputs an electrical signal with incredible speed and accuracy; the applications are endless. 

For anyone who has experience with assembly language, all I have to say is: Yes, I agree it’s a really shitty development environment, but somebody has to do it.  It makes a lot of sense to me, and for some reason I enjoy it, so it might as well be me.

The other reason 371 was awesome was who was teaching it.  (He reminds me a lot of Mr. Renner, my favorite teacher from high school).  He is a really sharp guy, he’s very helpful, he is extremely knowledgeable in his field (He wrote the book on microprocessor design… No, really, he did.), he really enjoys his work, and he has a great sense of humor.  Which brings me to the reason I decided to write this post.   Many of the following quotes were simply too good not so share, and they have all been reconstructed from my notes as accurately as possible, so I hope you enjoy. 

·             “So, what happens when you supply a logic high to the Intel PXA270 reset port? Well, it turns on.  With the miracle of electronics and all that stuff.”
·             “I’ve been up here waving my hands around for quite a while, is there anything that anyone doesn’t understand, or should I continue?”
·             “Don’t try to keep all of this information in your head.  Unless your head works better than mine”
·             “I always complete the projects I assign just to make sure there are no problems, and this next project was a little tricky.  But, all I had to do was change one setting then my LED started blinking and I threw my arms up and started running around the house.  These things are still exciting even after all these years”
·             “What is 100 times 10?”  *Silence* “Now, don’t everyone take your shoes off all at once here…” (‘To take your shoes off’ is a bit of slang he invented meaning ‘to get down to business’)
·             “What do you do when you get your first job, and your boss gives you your first real design project, and it’s impossible?  You freak out, jump around, throw your clothes everywhere—but you can only do all that for five minutes.  Then you check to see if anyone else already figured it out.” 
·             The previous quote was A reference to his ‘5 minute rule’: “When given an impossible task, you get 5 minutes to freak out, but then after your 5 minutes are up, you have to get to work.”
·             “This ‘Talker Board’ is great: You can make it say anything you want—unless it’s X-rated.  Unless you bring headphones, then you really can make it say anything.   Ok, since I am being recorded that’s as far as we’ll go with that…”
·             “Why do you want your product to be able to be assembled by a robot? Well, because you don’t have to buy them coffee every day.”
·             “What do you do while you are waiting for your device to be fabricated? That’s easy—you just sleep under your desk until it’s done.”
·             “What do you have to add to asynchronous memory to make it synchronous? Oh, I don’t know… Turtles or something, I think…”

Remember, all of these were actual quotes from an EXTREMELY technical and detail-oriented class, which in many cases made them even funnier.  As an added bonus, he also teaches 372 and 373, meaning I will get to take his class every term this year! So expect more awesome quotes from him in the future!

Wednesday, November 9, 2011

Formula 409, Surprise Programming, and Exploding Integrals

This will make sense later
What an interesting couple weeks it's been.  Especially if you consider being repeatedly broadsided by the unexpected and moderately toxic to be interesting.  Because if you do, it’s been absolutely fascinating.

Exploding Integrals
I guess I will start with the most recent development...  When I started writing this, I was on the bus, on the way home from my second midterm in the calc class from Hell.  Unsurprisingly, the midterm was also a beast: The test itself was only 2 pages long, but as anyone who has taken calculus knows, integrals have a tendency to really blow up in your face once you start opening then up.  Even if you haven't taken calculus, you've probably stumbled into a classroom where someone just got done teaching a math class and seen that and every whiteboard and in the entire room is completely full of equations and math problems.  Well, there's a very good chance that it was a calc class, and that all of the writing on the boards was actually just one problem.   The test itself was only 2 pages long, but I filled up 7 and a half additional pages.  You know it's a bad sign when the professor comes to class with a stack of tests in one hand and an unopened ream of paper in the other.  

We'll see how I did on that test.  After speaking with some students after class, I seem to have missed the last problem (which was worth 12% of the grade) and if that's true, I automatically have a B (assuming I didn't miss anything else anywhere else.)  And remember, on the last test I got all of the answers right and I got a C.  So that’s awesome. 

Surprise Programming
My microprocessors midterm was an entirely different story; I was pretty prepared for it because it’s an awesome class and I really don’t mind doing the reading or homework, so it actually gets done.  Furthermore, we had a big project due this Thursday (the day of the test), which actually made for excellent review.  Anyway, Tuesday morning I woke up and really didn’t feel like going in, especially since we were just reviewing for the midterm, which I had been studying for all weekend.  I decided to do the right thing and go in; even though it was my only class that day, a little more review wasn’t going to hurt.

When I strolled into class, I noticed a few odd things… It was very quiet, the class was unusually full of people, and, oh yeah—EVERYONE WAS TAKING THE MIDTERM.  Because guess what? The midterm wasn’t on Thursday—it was on Tuesday.  I sat down and took a look at my notes.  Yep, there it is, right on the first page, underlined and in large letters: “MIDTERM: TUES NOV 8”. So really I have no clue what happened, but at the time I had larger things to worry about.  Like finishing the midterm with an hour less than everyone else in the room.   The professor allowed anyone who wanted to come to arrive an hour early to the midterm—an opportunity that anyone would be crazy to turn down, or forget about.

I’m really glad that the professor for that class taught us the 5-minute rule before I found myself in this situation.  If you haven’t heard of it, the 5-minute rule is a commonly-used tactic in engineering.  Here’s how it works:  Lets say your boss gives you an impossible deadline. Or you show up an hour late into a midterm you didn’t know was happening.  First, you totally freak out. Flip tables, yell, throw in some of self-pity or rage; just go crazy. It’s your five minutes and you can spend it how you like.  But after the five minutes is up, you have to start working.  You can start small, but you have to start.  

And even though I’m making a big deal out of this, I do think I did pretty well.  It was very shocking to walk in on it in progress, but I was pretty prepared.  Not to mention it was an open-book/open-notes test, and ultimately not very hard, especially if you had some programming under your belt, which I did.  As an added bonus, I looked like a total badass, strolling into class an hour late like a boss, “Pshh I don’t need the extra time for this bullshit test.”

Formula 409
This is a hard one to start, because drinking stories are just generally not something you should generally post online under your own name.  But I really think that the explanation that comes at the end of it is more vindicating than it is embarrassing, and ultimately, I am just proud of the story.  So much for my chances of going into politics…

We went over to a friend’s house for Halloween this year—They love Halloween, so they always throw a big party.   They also have a large home, so since there was drinking involved, the events were likely to go late, and drunk people were likely to be on the road, a few of the guests (ourselves included) decided to just stay the night.   We played charades, had a great time, and drank a little more than we would have if one of us had to drive home that night.  Or rather, I did.  I quite frankly don’t remember so much about the night.  What I do remember, though, is that the amount of drinking I did was certainly not capable of making me as violently ill as it actually did.  One moment, I was totally fine.  I was a bit toasty, yes, but certainly not drunk.  The next, I was experiencing their beautiful bathroom from a whole new level.  Then I woke up in bed the next morning totally fine.  No headache, no hangover, not even that tired.

I was so embarrassed.  I’ve only been sick from drinking two or three other times in my entire life, and I am pretty sure all of them were in college, so they don’t even count.  Everyone who had planned on staying decided to take off.  I’m sure no one would tell me this because they are all too nice, but I think I pretty much killed the party.  I couldn’t remember anything from after I started feeling ill.  And all of this at someone’s house, whom – despite the fact that we have become very good friends and love spending time together—we have really only known for the last 6 months or less.  

Fast forward to last weekend.  We are at Life of Riley’s, watching the Ducks with some friends.  Not the hosts of the party, but friends that were there nonetheless.  We order a round of beers and my friend mentions that I must be feeling better.  He says something about 409 that I don’t quite catch, and I stop him.  A few other people have mentioned 409 lately, and every time it was in relation to that Halloween party.  And he explains everything…

Apparently, towards the end of the night someone spilled a drink on the carpet.  Anyway, it was promptly spotted and cleaned up using 409. No big deal.  But my cup was right next to the spill, so while the area was being liberally doused with 409 to keep wine from staining the carpet, my glass was accumulating a good deal of the spray.  Someone offered to get me another glass and I said not to worry about it, that a little cleaner wasn’t going to hurt, and I finished my drink before they could react.   Knowing me, I probably made a joke about it strengthening my immune system.  Then shortly after, I ducked into the bathroom and ended the party.   Of course I don’t remember ANY of this.  Everything in this paragraph is pieced together from what I have learned from the other guests.

So in the end, it was good to learn that I was merely poisoned by toxic cleaners, rather than being an out-of-control drunk who vomits in the homes of new friends.  And I got an awesome story out of it. 


Like I said, an interesting couple of weeks.

Tuesday, October 18, 2011

Fall 2011: Classes So Far


Microprocessors
Professor Rating: Awesome
Course Content:  Very interesting
Difficulty: Pretty Easy

This is my favorite class this term.  The professor (who also happens to be my advisor) is an excellent lecturer, and knows the material inside and out. He literally wrote the book on this subject, and it shows.  He has a way of explaining extremely complex things in very easy-to-understand ways, which is a good skill to have generally, but is absolutely required for engineers.  He really reminds me of Mr. Renner from Sisters High School: his lectures are about 50% course content and 50% wisdom about the world/industry.  Not to mention he is hilarious.   
Added Bonus: learning machine code makes you feel like you can decode the matrix.

Calculus 2
Professor Rating: Awful
Course Content:  Pretty interesting, and highly relevant to other courses I am in.
Difficulty:  Harder than it needs to be.

How to summarize this class in one sentence …  Don’t read professor reviews when you can’t transfer out of the class?  Don’t give the head of the department a teaching position?  Check your examples for glaring errors before teaching them to the class?  Put more than 10 minutes per week into planning your lectures?   That’s all good advice, but none of it has been followed so far in this class.   I don’t really know how else to put this, but this professor simply shouldn’t be teaching.  She is arrogant, absent-minded, antagonistic, argumentative—and those are just the words that start with A’s...  And I especially enjoyed being singled out and chided in front of the class for using a calculator on a quiz, after being explicitly allowed and encouraged to do so.  (“I just didn’t think you would use your calculator for ALL of it…”)
Added Bonus:  She grades notoriously hard and hates giving partial credit.

Circuit Analysis
Professor Rating: Strangely out of place
Course Content: Dense and Uninteresting
Difficulty:  Hard

This class would likely be easier had I completed the prerequisites—one of which being Calc 2—but even if it were easier, it would probably still be incredibly dense and dry: it’s all formula memorization.  The professor is clearly very well-versed in her field, and I don’t doubt her education at all, but she has a strange, oddly whimsical approach to circuit analysis.  This is a science; there are right and wrong answers, and there are correct and incorrect ways of applying an equation, yet she has this do-what-you-feel, everyone-is-different, lecture style that is totally inconsistent with the material itself.  It’s like she should be teaching interpretive dance or scrapbooking, but instead we are talking about arranging op-amps and resistors.  Very odd. 
Added Bonus:  All students are blackmailed into purchasing a bullshit software license in order to do the homework and therefore pass the class.
  

Wednesday, July 27, 2011

The Grades Arrive

First of all, I just wasted a considerable amount of time at ragemaker.net

Second, I just got some extremely good news about my progress so far this term, which I will summarize with the following image I just made. 


Despite how that may come off, my intent is not to gloat.  I'm just extremely happy.  This is really good news for me, as it means it is very likely I will be able to start my grad program on schedule.

I would have been happy with a lot less.  Particularly on the midterm.   The assignments are one thing;  I am fortunate enough to have very knowledgeable friends willing to spend a lot of their time helping me learn and assisting me with the assignments.  Not to mention, I get a week or two to do each one, and I get to use a compiler that tells me when I do things wrong.  So really, I have a fighting chance.

The midterm was different.  It was 4 hours long, 4 pages of handwritten code and I had no friends to help me and no computer to check my work.   I absolutely hate coding by hand.  It's really easy to omit something or use the wrong character somewhere in the line:
     while (*title) sum += *title++; 
and not notice.  Furthermore, half of the test was based around recursion (definition: re·cur·sion (noun): see recursion.) which is a method I have no prior experience with, even on the assignments.  So I basically had to learn it on the test.  I used every minute of the 4 hour period. I was the last person to turn in a test and leave the room. I couldn't think for the rest of the day.

But whatever I'm doing, it's working, and I am so relieved.  I just have to keep doing it for 3 more weeks. Then I will only be taking one class, and I should be able to relax a bit...  Note the operative word in that previous sentence and keep your fingers crossed for me.

Monday, July 18, 2011

Protip: At PSU, "to frown upon" means "to require"

Dear CS163 prerequisites:  In your face!!
Dear PSU add/drop policy: Please die in a fire.
Dear friends and family:  I'm still alive, despite your fruitless attempts to contact me. 

That's an attempt to summarize what I am sure could easily spiral completely out of control and span multiple pages into something that can be read without needing a break halfway through.  I tried to keep it short but that seemed too short.  So here's a slightly longer explanation:

School is kicking my ass this term.  My advisor (who also happens to be the department head, and thus essentially decides if I get into the masters program) told me to take an advanced-level programming class this term, for a language I have no experience with.  He said I would have to work a bit harder than the other students, but that I should be ok.   When I emailed the course instructor to explain my situation and ask what material I should review she told me (in slightly more words) to drop the course, that reviewing the material from the previous courses is not a replacement for taking them, and that PSU “would frown upon” what I am trying to do.  Which is funny, except for the part where—for all intents and purposes—PSU instructed me to do that.

To make matters even more awesome, when I started to figure out what my options were it quickly became clear that actually I didn’t have any.  This is because the course add/drop policies at PSU are completely asinine.  Classes can only be dropped with in the first two weeks.  
•                First week: 100% tuition refund, no “W” recorded on transcript
•                Second week: Whopping 0% refund, completely with lovely “W” on transcript
•                Third week: Census.  Financial aid adjusted to reflect current course load.

It should be noted that the first lecture of the course in question was on a Friday, so I had exactly 10 hours to drop the class if I wanted my money back.  Unsurprisingly, I missed that deadline.  Also, had I dropped a class, I would have become ineligible for financial aid, and had to pay my summer aid back immediately.

So actually, when I said I had no options, I lied a little. I did have two options: 

Option 1: Attempt the class
•    Con: Potentially end up with an F on my transcript. 
•    Con: If I fail, I will be about a year behind academically.
•    Con: Making up 20 weeks of prerequisite material while in an accelerated programming class might be deadly.
•    Pro:  Keep financial aid, aka I get to eat and I can pay rent.
•    Pro: If I pass, I am still on track to start grad school in a year.
Option 2: Drop it
•    Pro: W on transcript is likely better than F
•    Pro: More time to focus on other classes
•    Con: I will be about a year behind academically guaranteed.
•    Con: No eating or rent paying


I know, pretty awesome set of choices, right?  I decided to go with option 1, because it involves eating.

So I have been incredibly busy.  My ass has been saved multiple times by the fact that the professor teaching the course (aside from being less than helpful with that first email I sent) records all her lectures and posts videos online along with all the lecture materials, from all her previous classes.  Also I have incredible friends that have been helping me figure all this stuff out.  And I think I am actually going to make it.  The class is only 8 weeks long.  I only have 3 or 4 weeks left.  And so far, I have completed both assignments and feel like I actually have a shot on the midterm this Friday. 

Anyway I have homework to do (imagine that!) but at least now those first two lines should make more sense.