Shlrm.org Blag

Coding!

Building ruby 1.9 on Fedora 13

by David Kowis on Jun.19, 2010, under Ruby, fedora

Was harder than it should’ve been. I got annoyed.

You need to install openssl-devel, zlib-devel, bison, gcc, make, patch, tar, and maybe gcc-c++ (although I don’t think this one is needed).

Go get the latest ruby 1.9 source, as of this writing 1.9-p378, and extract it somewhere. Then go get the patches on this bug, at the specific comment. You will need to apply at least the openssl-build-fix patch, since fedora uses openssl 1.0 and it’s not yet into ruby 1.9. Then follow your typical ./cofnigure, make, and make install stuff. I installed mine into a prefix of /opt/ruby so that it wouldn’t affect any fedora ruby stuff that it might want. I then added ruby’s path to the end of my user’s PATH variable.

That’ll get you a working ruby 1.9 in Fedora.

Leave a Comment :, more...

vim syntax hilighting for ruby/rails

by David Kowis on May.18, 2010, under Ruby, W00t!

http://www.vim.org/scripts/script.php?script_id=1567

Woot.

EDIT:

Man, this guy has all sorts of good stuff: http://www.vim.org/account/profile.php?user_id=9012

cucumber, rails, ruby, git-vim integration. VIM FTW!

Leave a Comment :, , more...

Grails-maven integration fix

by David Kowis on Apr.13, 2010, under Coding!, Groovy, Java

Well, not really a fix. More like an enhancement.

Currently the only available grails-maven-archetype will generate a grails 1.2.0 project. There have been several fixes applied to Grails 1.2.2 and I wanted to take advantage of these. I have commented on the issue requesting a grails 1.2.1 archetype, but I updated it all the way to Grails 1.2.2 (The attachment is at the top of the bug, and the comments don’t reference the attachment at all, silly Jira.)

Maybe this will help someone else out there find this information and continue to build their project using maven and grails :)

Leave a Comment :, more...

Semantic Web

by David Kowis on Feb.03, 2010, under Coding!, Gripes, Java

At work I’m dealing with this “Semantic Web” concept thingy. “Web 3.0″ it is called. Frankly I don’t see the point in it yet. The goal is to have the internet also contain data to ensure that computers can find relations in the data and such, not just pages with links that people can browse. One of our projects involves taking unstructured data and mining entities and relationships from it. I’ve picked up a book, the only book, on programming software to (ab)use the semantic web. So far, I am unimpressed. The source code in the book does not match the source code that you can download from the books website. And, the two different packages on the books website (one is just Chapter 2′s code, the other is all the code for the whole book) also had different code, and the “all encompassing” one was even missing the right files needed to run the code!

So yeah, unimpressed.

Leave a Comment :, , more...

Groovy Threading and Java Threading

by David Kowis on Nov.30, 2009, under Coding!, Groovy

I must be doing something wrong regarding my groovy code. I was talking to a friend and fiddling with a tower of hanoi solver code. Just burns in CPU basically. Now I hacked it up in groovy, after he talked about it, just because. Well I came up with a groovy-ish solution that should do the same thing his java code did. However, the Java code actually ran like 8 threads, whereas my groovy code only ran about 3. Based entirely on CPU usage in linux. On the same box. I don’t understand… The code follows. (continue reading…)

Leave a Comment :, , more...

Archives

Hacker’s Diet

The Hacker's Diet Online