Smoke Signals

Wednesday, March 30, 2005

Thinking about created a rails recipes site

I think it would be cool to start a rails recipes site kind of like ZopeLabs but for rails. I remember when learning Zope I used that place a lot and posted a lot of cool things I found.

If I could find a good host (maybe my workplace) I would do it.

Tuesday, March 29, 2005

Sometimes I wonder...

Sometimes I wonder why I don't go out and do these things I find funny. Then I realize I just lived it in my head so there is no reason to actually do it.

Thursday, March 24, 2005

Backpack Bet

I bet it is going to be a document/file manager of sorts. Maybe with tag-based sharing or viewing between users... What do you think?

Wednesday, March 23, 2005

Backpack Betting pool

I am trying to start a betting pool on what we think Backpack is going to be over in #rubyonrails IRC. So far no takers. I am sure the fellas at 37 Signals Have something slick up their sleeves. I don't mean from a nasty cold either... I will post my guess after I hear a few suggestions.

Monday, March 21, 2005

I’ve been workin on the railroad

Ok, on part v0.1.2 of my working with rails series I am going to talk about the other scattered but important parts of rails that you will need to know. Unless you are one of those people who just follows instructions and doesn’t care about the why. If so, exit stage right…

Once you get past your todo list or recipe app, you may want to create a “real” application of sorts. For me, it is a CMS. So I ventured out on this journey also wanting to learn how to solve some common scenarios in rails. During this trek I came across some things that have been a bit difficult to understand to say the least. Now I have been able to find explanations of some of these rails/ruby “idiosyncrasies” in addition to figuring them out by sheer brute force. I will be documenting them as I move along and find more:

What’s with all the <% ?

Ok, when you tear apart your scaffolding-generated views you will find some funny looking tags. A bit php, a bit classic asp or inline code for _insertYourLangHere_ . They look like this: <% something %> and <%= something_else %>. With a bit of digging I found out it is called ERB AKA Embeded Ruby. So, if you want to know more about the ERB go do some digging of your own. Now, some of you who have been paying attention may have noticed they are a bit different. Notice the = sign on the last tag. Well, it turns out it isn’t just for shits and giggles. I found that out by getting a bit pissed when my @session wasn’t spitting anything out. The equal sign means it is going to render/output something in your HTML. The tag without the = means it is just a loop or something else and does not need to output into your HTML. Wow, all those gray hairs I produced for that.

Stay tuned for more…

Friday, March 18, 2005

A good testimonial to doing Test Driven Development

I have a book on it, I know how to do it, but I haven't done it yet. I know I need to start because once I become accustomed to it, I will probably do it all the time on projects. Either way, here is a good example of the why in TDD Hard to find bugs Episode #23221

Wednesday, March 16, 2005

My First XMLHTTPRequest appish thing

What I wanted to do was create a dynamic list that can be used on my Rails CMS. Basically I wanted it to have top-level items and when clicked would use XMLHTTPRequest to call a script on the server that would return all the items sub-items and created a nested unordered list. That way only the data you wanted to see would be called when clicked and you could stylize it using css so it can look like a menu system or a folder tree. Well, it took about 2 hours and here it is in its pre-refactored uglyness: Dynamic List

Special thanks to Nick Chapman for pointing me in the right direction for doing html entities in javascript and using his XHTMLHTTPRequest code :)

Tuesday, March 08, 2005

UCFC Cage Fighting

I am currenty looking for some VC and people with television series experience. I am going to start a new sport UCFC Cage Fighting. UCFC stands for Ultimate Chimp Fighting Championships. Man Vs. Chimp. After the chimp incident nearby my hometown, I realized this could be a goldmine.

Wednesday, March 02, 2005

I am going to write a new framework

Sometime this month I will be writing a new framework. It will be called "Ale's" Getting Rolling With Ale's. I will drink 12 bottles of Young's fine beverages and start coding at about 1AM.