Allan & Steve are the chubby founders of LessEverything. This is their blog, hear them rant, praise, give advice and talk about Just Stuff, Less Accounting, Lovd by Less, More Honey, Less Memories, Code, Business, Design, Marketing
You might recall a previous post where I talked about a Texmate bundle put out by Yehuda Katz that allows you to grep in project in Textmate.
Well, Yehuda has updated the bundle. Enjoy!
I recently attended an Internet Professionals Society of Alabama (IPSA) meeting. Yes we have the internet in Alabama and even "horse-less buggies" known as cars. Dimitri Glazkov spoke about html5 and Google Gears. In summary, html5 blah blah, Google Gear, yippie hooray! Leopard/Vista:
Similarities:
Differences:
So no, I don’t think Apple pulled a Vista. But a few more slips and they might have.
What’s missing from Leopard:
Over all I think Leopard is awesome. Since we all work remotely, the screen sharing in the new iChat alone, is worth the upgrade. I recommend everyone upgrade. Even with these problems I think it’s worth it.
If you are getting an “invalid label” error when doing eval() on a json string, here is the solution:
You must do eval(‘(’ + jsonObj + ‘)’) to fix this. I know this seems really stupid, but http://www.json.org/js.html shows just this same example.
I wrote a function to handle this:
function jeval(str){return eval('(' + str + ')')}
and then I call jeval() instead of eval();
Have you ever wanted to use named routes in your JavaScript? So have I. Now you can.
I just released a plugin that will generate a JavaScript file with functions that give you the path to the route and functions that will call these routes using ajax.
You can find it here:
overflow: auto;on a tbody tag, then firefox will ignore any z-index on that tag or its children.
IE does not like nested forms…..(Even if they are buried inside partials.)

Mark your calendars, the first installment of RubyJax will be happening in Jacksonville on Nov. 15 at around 6:30 PM at Team Gaia’s place at the beach (map).
Here is some info:
Please note that this list of information is not complete and more information is sure to follow. But since the whole rails community, and even Japanese rubyist will be talking about RubyJax, I’m sure you’ll hear the follow ups.
RubyJax.com is not up and running yet, but it will be soon.

Peter Cooper brings us this nice little tid bit to help < 2.0 apps get ready for the big change. This script aims to examine your rails app and figure out what you need to change to before migrating to rails 2.0.
Here’s how to use it:
Erine Prabhakar just put up a short guide to RESTful url formats in Rails. Anyone just getting into RESTful Rails, and that should be all of you not currently doing RESTful Rails, might enjoy this overview.
I have found a new way of doing this that is so good I can’t believe I haven’t heard about this before. It turns out, there is a one click (command) installer for ImageMagick and RMagick and nobody is talking about it. If you go to the RMagick home page and look though the FAQ you will see the first choice is to use the installer script. Choices two and three both revolve around Ports, so we can all ignore those from now on.
Here is how to do it:
Now I know what you are thinking, “Steve, if you’re installing RMagick did you get a brand new computer?!” And the answer is sorrowfully no. But what I did have is my SECOND hard drive failure in six weeks. That means that this is my third hard drive on a computer that is less than one year old. And I am excited because I am sure I will have to reinstall all of my gems (including RMagick) and ImageMagick next month when Leopard comes out. Happy, happy, joy, joy. But at least I finally found the right way to do it!
Chris has finally started his series on Regex.
A few days ago I posted an ad to hire a few more excellent “the Guys.”
Please notice I specifically state:
Please do not apply if:
1. You are compelled to send a resume.
Amazingly people keep sending me resumes. Let me ask you all a question: If someone can’t even follow that simple instruction, how in the world would they expect me to trust them with my code?
P.S. Allan suggested I post their resumes here, but I resisted.
This is a righteous hack:
http://larrytheliquid.com/2007/03/18/validating-positive-with-infinity/
Until you realize that there is a hard limit to number size in the database. That attribute is stored in a particular number of bytes. And this hack does not take that into consideration.
So then you look in the database to see how many bytes make up the column and you start thinking that maybe this is the wrong direction? You’re not checking maximum number values anywhere else (except string lengths). So then you consider that maybe that is why rails makes an integer column 11 bytes by default, that is a really big number.
So then you start writing something like this (because you really need to make sure it is a positive number):
def validate errors.add(:price, 'must be positive') if self.price < 0 end
And then you think, maybe I should just use the hack….....
P.S. Consider your self a hard core hacker if at any time while readying this post you found yourself thinking “One man’s brilliant hack is another man’s language feature.” ;)
P.P.S. If you don’t know what the P.S. means, you should immediately start reading 2600 and go back and enjoy the original episodes of The Broken (wasn’t Kevin Rose a cute kid?)