Latest Tweet
- Dropped container of polynesian sauce on floor, fully-open side down. NOTHING CAME OUT. Chick-fil-A, champion of viscous sauces. 2 days ago
- More updates...
Categories
Tags
academia alcohol animals boyfriend cooking databases email forwards family Flickr food friends health Javascript Lexington Linux list Mario math movies music news OS X Perl PHP politics programming quizzes Rails rants reading Ruby screenshots shopping Sims sports themes tutorials Twilight is ridiculous vehicles video games videos weather Web development work zombies again-
Recent Comments
-
Random Quote
Do not go where the path may lead, go instead where there is no path and leave a trail.
— Ralph Waldo Emerson Syndication
All posts RSS feed
Tag Archives: Ruby
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 [...]
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 C-sharp, programming, work 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 [...]
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)
[...]
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 [...]
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 [...]
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.
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 [...]
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 [...]
convenient file searching with Ruby, grep, and file