fleshyorgans

tryin’ not to be a linux fanboy

fleshyorgans Two Cats

Entries from July 2007

Best Zombie Ever

July 30th, 2007 · No Comments


[Read more →]

Tags: stuff

Weird Nautilus Problem

July 25th, 2007 · No Comments

This morning my Ubuntu developed an odd issue. Not sure if it was file corruption or what. Nautilus developed an issue where it would open an initial folder, such as my home folder, then hang forever (with no error messages and no logging) trying to move to any other folder.
Reboots, reinstallation of nautilus, removal of […]

[Read more →]

Tags: stuff

How I got ruby 1.8.5 on a Red Hat 7.3 box

July 24th, 2007 · No Comments

For anyone else who needs to do this:
Compiling Ruby 1.8.5 on an ancient redhat box is difficult. It’s not as simple as just make/make install… it doesn’t work right out of the box. My solution was to statically link ruby during compilation.

Grab the source
Extract
Do “./configure”
Edit ext/Setup (a text file), and uncomment everything except for

openssl (unless […]

[Read more →]

Tags: stuff

Ruby Braces vs. Do/End blocks

July 23rd, 2007 · 1 Comment

When parentheses are important:
So, braces have higher precedence over do/end blocks. According to Pickaxe, when calling a method with no parentheses, the braces will be applied to the last method parameter, do will be applied to the invocation.
A Very Contrived Example:

def string_to_integer
  if block_given?
    yield.to_i
  else
    0
  end
end
a = [1,2,3]

A) a.inject string_to_integer { ‘5′ } do |i,sum| i + sum […]

[Read more →]

Tags: stuff

No Smoking Balloons Food (Monday Picture)

July 23rd, 2007 · No Comments

I think it means do not smoke the food that balloons eat. I think we can all agree with that.

[Read more →]

Tags: stuff