Tag Archives: Ruby

convenient file searching with Ruby, grep, and file

For my Linux kernel class, I often know that some struct exists somewhere, or remember seeing a macro defined in some file and it might be useful, but I can't remember where I saw something. I also end up trying to track down all the places a particular function is called, and don't want [...]
Posted in Programming | Also tagged | Leave a comment

first graduate classes

My first day of graduate classes were Thursday, and I must say having gone through them has made me feel better about this semester overall. Before Thursday, I had been stressing out because this is my first semester of graduate school and I plan on working 20 hours/week. Full-time for graduate students is [...]
Posted in Class | Also tagged , , | 1 Comment

C# and Visual Studio

Yarr, so work at HP has been good; I’m enjoying my time there. I’ve worked from home a few times, which has been nice: there’s nothing quite like coding in your pajamas and getting paid for it. I’ve mainly been writing PL/SQL queries and programming in C#. I was apprehensive about [...]
Posted in Programming | Also tagged , , | 3 Comments | Current music What Else Is There? by Röyksopp

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 [...]
Posted in Programming | Also 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)   [...]
Posted in Programming | Also tagged | Leave a comment

graduate school, Rails, and the squealing loo

Pfhew, excitement! First things first, I applied to UK’s graduate school yesterday. Yes, I know, I’m crazy! I’m going to get my Master’s in computer science because I enjoy having $22,000 in debt already from student loans and I think my life would be more complete if I added another $10,000 or [...]
Posted in Daily life, Funny | Also tagged , , , , | 4 Comments

why shoes?

I went to a Ruby Users Group meeting the other day and there was a presentation on Shoes, described as “a very informal graphics and windowing toolkit.” It’s written by Why the Lucky Stiff, who does a lot of Ruby and Ruby on Rails work. I’m interested in the toolkit so I was [...]
Posted in Daily life | Also tagged | 1 Comment

chmodding and Ruby

Recently, I switched from a Powerbook to a Macbook, and to copy my files from one to the other, I used a pen drive. Since my pen drive has a FAT file system, it treats everything as being executable. This, however, is not the case on a UNIX-like file system like OS X. In order to save myself the hassle of manually chmodding thousands of files, I wrote this Ruby script.
Posted in Linux, OS X, Programming | Also tagged , , | 2 Comments

database project and dead week

My database project is past the “omigosh are we going to get it done in time??” stage and into the “what neat feature can I add next?” stage, which is a big relief. If you guys want to play with it, I have it here on 3till7.net. We’re doing a demo of it [...]
Posted in Class | Also tagged , | Leave a comment

Paper Mario and Ruby programming

So I’m obviously not doing NaBloPoMo since I haven’t posted anything in about a week, but I do have kind of an excuse: I’ve been doing homework and saving Princess Peach, or trying to. I’ve got a calculus test tomorrow and I’ve been working like mad on my databases project, which is coming [...]
Posted in Class, Daily life | Also tagged , , | Leave a comment