theme work

Bear with me folks, I’m trying out a new theme. I’m working with the Sugar Cane theme, which uses Thematic and apparently to make the sidebar show up, you have to actually enable the theme instead of just using a theme switcher. The photo you see up top (it’s random—reload!) comes from my Flickr collection. :)

New theme | old default theme Tetrad | older default theme Block Pastel

Posted in 3till7.net | Tagged | 1 Comment

the pain of Facebook application development

For the past few days, I’ve been trying to create a Facebook application for interacting with Github. I hoped to spend my time mainly on the Github portion, figuring out how to post wall posts on Facebook about recent Github activity, etc. However, I’ve instead argued with the various Facebook APIs. I started out using PHP with no framework but quickly switched to CakePHP after I realized things were going to get hairy. CakePHP was okay for a while until I hit the roadblock of not being able to load any page but the index… Every sub-page I tried to create produced 404 errors, which no one else seemed to have (or at least document), so I said ’screw it’ and switched to Rails.

I started out using the Facebooker API but got frustrated when I kept getting an error about not being able to convert nil to String. I don’t even know now what was causing that. I tried various ways of accessing Facebooker, via gem or plugin (though one of the developers says in this forum that he hadn’t rebuilt the gem in a while, so use the plugin), with no luck. So I switched to the older RFacebook and had troubles accessing the magical “fbsession” that every tutorial in the history of RFacebook tutorials glosses over like of course it’s available in your controller and if it’s not then you’re obviously retarded and should just write Visual Basic for the rest of your pitiful programming career. Again, screw that. Feeling hopeless at the lack of other Ruby APIs out there for Facebook, I went back to Facebooker and proceeded to get 422 Unprocessable Entity errors (?!) whenever I would submit a POST request. In my logs, I was seeing the following:

ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
  facebooker (1.0.61) [v] lib/facebooker.rb:90:in `with_application'

Lots of googling led to the aforelinked forum post wherein someone said to turn off forgery protection by commenting out the following line in app/controllers/application_controller.rb

Ruby

protect_from_forgery # See ActionController::RequestForgeryProtection for details

That doesn’t sound good, turning off forgery protection, but the forum poster said Facebook already provides it. No idea if that’s true, but by damn, I just want to POST two string values to update the database! Sheesh! Anyway, so my posts work now and things are proceeding along as I would have expected them to three days ago.

Posted in Programming | Tagged , , | 2 Comments | Current music Prime by Hearts By Darts

two new programming projects

I’ve gone on a programming project binge today, coding first in C# on a project to add an enforceable Implements attribute to class members, then in PHP to write a Github application for Facebook. I’m interested in co-developing the Facebook app, too, and have emailed a few of my programmer friends at UK to see if they’d like to participate in coding, testing, or some other part. If you’re interested, let me know and I’ll get you access to the project on Github.

Posted in Programming, Techy | Tagged , , | Leave a comment

Korean at 6 AM

What on earth am I doing awake? That’s what I get for going to bed around 11: wake up once to get a drink of water, and then I can’t get back to sleep. So I’m in the kitchen eating some leftover Korean and surfing the Internet. Classes are going well. I’ve had a couple programming assignments in my Linux kernel class. Got an A on the first, haven’t received a grade on the second, which was to add a system call to the 2.6.28 kernel.

I’ve been playing Okami on the Wii and it’s awesome. I never thought I’d find another game that feels so much like Twilight Princess and that I enjoy so much, but I have. I’ve hit a few frustrating points, mostly in the shape of timed digging games (I really hate timing puzzles) or brush techniques that are a little flaky. For those who have played before, I just got the Dragon Orb and now have to go save Rao (a.k.a. “busty babe”) from some monster because her stupid ass insisted on taking the Fox Rods.

Posted in Daily life | Tagged , | Leave a comment

textbook prices, torch juggling, and a snake breeder

I just had my first day of classes and I’m excited about the semester, but depressed about how much money I just spent on books. This semester hit a lot harder than last semester where the most I think I spent was maybe $60 on a book. Let’s run down a list of what I just paid, and mind you I have no problem with international editions or softcovers, and I buy used when possible. These prices include tax and shipping (which was no more than $5 from any seller):

  • requirements engineering book – $50.69
  • human factors engineering book – $76.95 — This bitch (the book, not the professor—I think I’m going to <3 my professor, she seems awesome) is like 700 pages and costs as much as $199 new. Even the international paperback version I bought is pretty expensive, and the seller didn’t have the highest feedback rating but I was like “screw it, I’m not paying $150 to have a slightly less shady seller”. I hate it when the choice comes down to paying way more to get the non-international version from a reputable mainstream seller, like Amazon, or some random Amazon Marketplace or individual bookseller.
  • Linux kernel books – $21.49 and $23.96

Total: $173.09

Oh, and I forgot I also have to get a membership to access the digital archives of the Human Factors and Ergonomics Society for $35 to read some course material. And let’s not discuss how much I’m borrowing in loans just to attend graduate school. All I’m saying is I’d better make some good moolah after I have my Master’s, because I’m'a owe the government a lot of money.

In other news, sorry for the lack of blogging! You haven’t missed out on much, I’ve just been working before classes started (again with the money stuff…) and hanging out with Jon on the weekends. I had some excitement yesterday, though, when turning left on a green arrow and almost getting wiped out by some ass who ran the red light at the intersection. I swerved right, he swerved left, and I smoothly pulled into the gas station I was trying to get to anyway. It all happened so quickly, I barely realized what had almost occurred until I was going to fill up my tank. The guy had the strangest expression on his face, too, which I saw as I swerved to avoid him. It was the kind of expression one might make when they’re exasperated at spilling food on their shirt or something. Not what I expect from the responsible party in a near-collision. Or is that a near miss? Whatever.

So I don’t know if they breed us engineering majors to be dull or if I just got a lucky mix in my psychology class, but there are some awesome people in there. We did the usual go-around-the-room-and-introduce-yourself thing and right off the bat, first girl, she says she used to travel with a juggling and acrobatic group and she can still juggle torches. Our prof confirmed that she didn’t mean “torch” in the British sense of the word, a.k.a. “flashlight”, but rather real, honest-to-goodness sticks of fire. The girl looked totally normal, too, just your average skinny pretty brunette-with-blonde-highlights in some academic sweatshirt. She said she used to perform at Renaissance fairs which perked up the girl next to me, with whom I had spoken previously when she first entered the room and whose name I will not forget (more on that later), who had to add that Renaissance fairs were awesome even though torch-juggler said she was embarrassed and felt dorky. Several of us declared that she was not at all dorky and that torch juggling is way awesome.

The next cool person was another girl about halfway around the room: she breeds snakes. She launched into this discussion of how she took her “pewters” to some snake expo (?!) and didn’t sell any because kids were interested in paying $10 for some corn snake instead of “$120 to get something awesome”, as she put it. Haha. The guy sitting right next to her jumps out of airplanes, is apparently certified to do it, and is going to do something with the army next semester, I believe he said. Then finally you get to the girl next to me whose neatness was milder than the others, but still a bit interesting: she trains dogs. This is the girl whose name I won’t forget because she introduced herself as Virginia and I promptly asked, thinking of Harry Potter, if she goes by “Ginny” or “Virginia”. She then started telling me about how she gets called everything from Ginny to Virg to Catherine and Elizabeth, just because people recognize it’s some old classic name and they associate “Virginia” with British royalty. I suggested calling her “Vinny” to get the Italian mobster angle in there, and I also think “Queenie” could do if we’re sticking to the royalty idea.

Posted in Class | Tagged | 1 Comment | Current music Royksopp Forever by Royksopp