Category Archives: Techy

Programming! Also Linux, web design, hardware… But mostly programming.

code reports Rake task

This will run various Ruby Gems for creating code quality reports, store them in public/ in your Rails app, and create public/reports.html with links to each report. You need Saikuro, Flog, Flay, Reek, and Roodi, since this Rake task uses them all. Save this Rake task in your lib/tasks/ directory in your Rails app, and [...]
Also posted in Programming | Tagged , , | 2 Comments

sortable arrays of symbols in Ruby

I got this error in my Rails app because I was trying to sort an array of symbols: undefined method `' for :my_symbol:Symbol. I defined the spaceship method for the Symbol class and included the Comparable module in order to have other comparison methods available for symbols. Ruby class Symbol   include Comparable   def <=>(other)   [...]
Also posted in Programming | Tagged , | Leave a comment

games and finals

I’ve been playing American McGee’s Alice recently and seeing all the environments and their beautifully detailed textures again, especially with my new video card, has made me want them as wallpaper and flooring in The Sims 2. I remember for the original Sims game, I found a huge collection of Alice walls and floors [...]
Also posted in Video games | Tagged , , , | Leave a comment

C++ shell with forks and pipes

As an assignment for my operating systems class, we were to write a shell in C or C++. I'm putting my work here under the GNU General Public License v3 in hopes that it will be helpful for someone else, presumably some future student arguing with the C language, which I find infinitely frustrating to work with sometimes.
Also posted in Programming | Tagged , | 6 Comments

bought a Wii Fit

Well, Todd left for Ireland last night, and he should’ve arrived there sometime very early this morning, at least by Eastern Standard Time. I won’t see him for eleven days now, and I’m already kind of sad and missing him. My biggest worry whenever someone dear to me travels is that they’ll get [...]
Also posted in Video games | Tagged | 4 Comments

Nintendo DS Lite

Just a short note to say that I bought a Nintendo DS Lite on Monday and have been enjoying the heck out of it since. I’ve bought two games so far: Mario and Luigi Partners in Time, and Super Princess Peach. Partners in Time has been my favorite because it’s like the [...]
Also posted in Video games | Tagged , , | 2 Comments

I beat the Amazee Dayzee!

In Paper Mario for the Nintendo 64, which I’ve been playing on my Wii, there’s this creature called an Amazee Dayzee. It’s dead tricky to beat because it has 20 Heart Points, which isn’t much, but it usually runs away as soon as it gets the chance. I’ve been trying to beat the [...]
Also posted in Video games | Tagged , | 1 Comment

my Qbee PHP script

I'm a member of the Quilting Bee and I use a very simple PHP script I wrote for displaying my quilt. I figure someone else might get some use out of it, so here it is for your coding pleasure: PHP <?php // The relative URL to the directory containing my patches $img_dir = '/wp-images/qbee/'; // The patches [...]
Also posted in Programming | Tagged , | 8 Comments | Current music Frontier Psychiatrist by The Avalanches

regular Javascript v. AJAX for dynamic content insertion

Recently for work, I’ve had cause to write functionality so that a certain chunk of a form can be inserted again, over and over, by the user. The form involves data about course equivalencies between schools, and the user might need to submit data for multiple courses a student has taken. Hence, the [...]
Also posted in Programming | Tagged , , , , | 1 Comment | Current music 11h30 by Danger

Introduction to Web Design presentation

View PDF » This is a very basic introduction on how to go about creating a web page. It was to last for about ten minutes and given to an audience of middle schoolers. See also the handout I made for them containing links to various resources.
Posted in Techy | Tagged | Leave a comment