Monday, November 2, 2009

Koalas are Cool

or so I say...
Upgraded two laptops to Ubuntu 9.10-AMD64 Karmic Koala last nite while watching the original V-miniseries on SyFy. So far, so good. Interface looks cool. Got some sort of bug with 'npviewer' that everyone seems to be getting if they use firefox. hmmmm... Seems like I remember that being a problem at first in 9.04 too. Main thing I did with this one though is that instead of doing a "fresh" install, I did an upgrade from the package manager. Oh, I downloaded and baked the iso using BitTorrent, but still, I wanted to try something different. Everything seems to have transfered hot gravy like so it's all good.

We'll see!

need to study some more php.

Monday, October 19, 2009

Ten Days!

Just look at that beautiful countdown going in my sidebar! 10 days!
Saw an email in my inbox that said "Windows 7 is Almost Here!" My first thought was "BATTLESTATIONS!"

then I lol'd.

My Dad likes it so far though, he says it's what Vista should have been. idk.

Been reading up on PHP and Apache. Having fun, but still believe rails is a better way to make dynamic content. Will reserve final judgment till after I get some things built in PHP.

that is all

Thursday, October 1, 2009

Ruby Foo and the Art of Application Development

Hmmmm,
I'm thinking about what it takes to write really good programs. I'm thinking about this a lot lately, because I want to earn a living writing really good, useful, soul searching programs. So let's talk about cucumber. I discovered cucumber about 10 months ago, right when it was starting to become usable. The team I was working with used cucumber for writing stories in their development cycle. The whole BDD/TDD development process was new (and still is new) to me at the time, but I was having fun, and it seemed to me that this cucumber thing was great fun. I had no idea what it really did.

I suppose you should be making fun of me, it's not after all, very reasonable to use a tool you understand nothing about, but I am a jump then look kinda guy when it comes to some things, and learning is one of them (sometimes). I did what any reasonable person does after discovering something shiny and nifty, I bought a book about it.

Actually, what I bought was a promise for a book, at a special discount. The simply named The Rspec Book is a great lil' book. It's not released yet, but it's in 'beta' mode. That means I get regular updates when Dave, or Aslak, or whoever updates the book. I got it round about version 4, it's on version 10 and set to release in it's final version in December of this year. I'll get a hard copy of the book once it's officially released too. Personally, I think that this is a great way to do publishing. Since this book was first announced/released, there have been several changes to the methodology of running cucumber and rspec. There have been minor syntax changes, new habits for namespacing, etc. The book remains current. I mean, it is seriously Agile (must be Italian)! It's easy to read if you are a n00b or if you are a wannabe (like me), and the support the guys give with the Rspec and Cucumber groups online is outstanding.

The book takes you on a journey through the methodology of Acceptance test driven planning, Domain Driven Design, and Test Driven Development. This triad forms the basis for Behavior Driven Development (BDD), a system by which good software 'emerges' from the process by writing the code that answers the questions users ask.

I'll leave you with that for now.
I :heart: you guys.

G. Brandon Hoyt

Thursday, April 16, 2009

So it's April, and you Know what that Means!

Counting down the release of Jaunty Jackalope, Ubuntu 9.04!
hehehe!

so, i'm writing a few apps right now, right, mostly focused on one webapp (top secret at this time), but also dabbling in something i've always wanted to do, write a cli to take some of the mystery out of sshing into a client computer. so far, so good. I might even push it to github, just for giggles. I don't think it's really useful, but it has been fun to say the least.

so far I've written the menu and a validation block for the menu. hey it's a start. now I've got to store data in a file that the compy can read. Me being a rails guy, you'd think I'd use a database, but this is a highschool type of project, and I'll solve it using a highschool type solution, text values using csv's!
awexome!
It's Pascal all over again!
l8tz

Wednesday, January 28, 2009

ReTread Random Reconstituted Rhubarbs!



yes,
it's a video of what happens when we who do BASIC have a lil free time between when we meet our helpers and we get done preppin' our stizzzuff for the helpers to make.


i vote Happy Medium!

Monday, September 8, 2008

Beware your editor!

So,
I have a new jorb! Doing Ruby on Rails work even! I quash bugs and recently had a little editor snafu that I didn't catch right away. You probably already know this, but don't make my mistakes.

Usually, when it comes to text editing I use Geany on Linux. It's a nifty little design, and it's pretty simple to add snippets and what not. Sometimes though, when I'm tired and not thinking straight, I'll use good ol gedit. Hey, it comes with Ubuntu, does some pretty good syntax highlighting, and I don't think it's bad, it just does some default actions I don't like. The dang thing automagically backs up whatever file you are using! That's not a bad thing when you are doing something in say the /etc/ or /boot/ directory, but when you are using git to manage source code on a rails application, and you accidentally gedit your config/database.yml file, you can quite easily add commit and push your automagickally generated config/database.yml~ file containing your topsekrit mysql passwd for all your team to see!

I know I did!
what a n00b/dweeb...

one day i has 1337 sk1lz.
GB Hoyt

Wednesday, August 13, 2008

To Cut a Precious Rock

Howdy!
Recently several security vulnerabilities discovered in ruby reared their ugly head, and a fix was in order. Now if you are an Ubuntu user like myself you quickly discover that while Hardy Heron was shipped with the latest and greatest patch for ruby in its day, it often lags seriously when it comes to security updates. The best solution, I think, in such a case is to go ahead, bite the bullet and compile ruby (or any other software for that matter) from scratch. I call this the best solution because after some brief searching for a package version of 1.8.7, I had an adventure.

What you need to understand is that when I say I had and adventure, what I mean is that something went horribly wrong. It started with fireworks. The wonderful night blissfully waxed, and I sat enjoying the latest issue of Linux Pro magazine, reading some useful article about Totem (mainly useful for putting me to sleep) and gradually feeling the weight of my eyelids increase, when all of a sudden, BANG!!! Blah, some neighborhood kiddie decided 12:37 was a great time to light firecrackers. Startled me awake enough to make me want to hack something. In this case, I ran headlong into the ruby prollum. Previous attempts at compiling ruby from source were only marginally successful. I utterly failed when it came to compiling a useful ruby, especially when it came to be generating something useful for rails, and let's face it. When it comes to making money with your Ruby programming knowledge, rails is going to be your best bet. In my effort to grace my lappy named (aptly I might add) "PortableFun" with some excellent ruby versionings, I discovered that Google is a fickle friend. I'll never trust it the same again. In short, I discovered This "Nerd's Only" site when googling the phrase upgrading ubuntu 8.04 ruby 1.8.7 or some esoteric combination thereof. I followed instructions, and still, my tired brain musta did something very bad, or I didn't have the switch flipped to "More Magic" or something, because I wound up updating about half of my core packages to the 8.10 version of ubuntu!

Yeah for fail! Now I not only didn't have ruby 1.8.7, i didn't even have a working os. I took this as a sign that sleep was more important than ruby at this point. The next day I reinstalled my os, reinstalled all the important packages I thought I needed to make things work, and got back to fixin' the ruby problem. With much trepidation, I ventured back to the backstabber, Google, and tried another link. Throwing caution to the wind, I discovered a wonder place full of joy called Tag Ubuntu, and they seemed to understand my problem. Compiling ruby is a matter of knowing what all you need to enable. The source code comes with many wonderful libraries, and options, but it's so flexible it won't do crap unless you specifically ask it to look for that crap in place x in your filesystem. I followed these instructions:

$ tar zxvf ruby-1.8.7-XXX.tar.gz
$ cd ruby-1.8.7-XXX
$ ./configure --prefix=/usr/local --with-openssl-dir=/usr --with-readline-dir=/usr --with-zlib-dir=/usr --enable-shared --enable-pthread --enable-install-doc
$ make
$ sudo make install

You are responsible for finding the tarball, usually the latest and greatest is available at The Main Ruby Site and untarring it wherever you want to compile the code. That little snippet was pretty much word for word from the ubuntu blog, but I did add the last three ./configure tags cause I find them useful.

Once I had ruby 1.8.7 installed, I got the latest issue of rubygems and installed it and then had a lot of fun installing a lot of gems.

hopefully someone can use this meandering thought page to get themselves up and running on ruby 1.8.7

I loves me the rails!
GB Hoyt