Environmental ACTION

Posted by Daniel Fri, 30 Mar 2007 19:59:02 GMT

Environmental ACTION: People don’t do what they say. Here are a couple of examples…

Al Gore won some big award for his movie on improving the environment. He testified before congress about global warming and the need for immediate action. Al Gore’s house is 10,000 square feet (is that really enough for him and his wife?). His electric bill and gas bill are both independently more than I make each month. But, he says, he lives a carbon neutral life because he gives someone a bunch of money to offset his carbon emissions. Bologna. If we want to make a difference in global warming or anything else, at least those who want to make a difference will have to make some sacrifices in order to see a difference.

On the other hand, George Bush has been one of the worst presidents for the environment. His contributions as president include starting a war centered around oil. Yet, George Bush’s house in Texas is only (only?) 4,000 square feet and uses some of the greenest forms of energy production. He has a heating system that uses deep holes in the earth (where the earth is a constant temperature in the upper 60s) to keep his home warm without electricity. He uses solar power for much of his energy needs and he has a gray water reclamation system to conserve water in addition to a system that collects water running off from the roof of his house. I have not agreed with many of Bush’s policies, but his home is actually a model to be followed.

[Suprised? Nah. It’s one of the great disconnects in “environmentalism”. Offsets are junk. A way to feel better about what you’re doing without improving anything. The whole movement used to be called “conservation”… but that requires doing with less… who the heck wants that? If you can find a truly green alternative fine. Otherwise, be prepared to do with less. You’d be surprised how joyous less can be.]
Source: Sans Auto

Posted in ,  | no comments | no trackbacks

The RADAR Architecture: RESTful Application, Dumb-Ass Recipient

Posted by Daniel Fri, 30 Mar 2007 12:51:12 GMT

The RADAR Architecture: RESTful Application, Dumb-Ass Recipient: The browser is really not much better than a 3270 (except the resolution is better when displaying porn). (Recently, folks have been trying to circumvent this simplicity by making browser-based applications more interactive using technologies such as Ajax. To my mind, this is just a stop-gap until we throw the browser away altogether—Ajax is just lipstick on a pig.) [Great article.]
Source: PragDave

Posted in , ,  | no comments | no trackbacks

Typo 4 dot 1

Posted by Daniel Tue, 27 Mar 2007 01:11:00 GMT

I started testing Typo 4.1 tonight. On my local testbed instance, things couldn't have gone more smoothly. I rake db:migrate'd, I script/server'ed, and poof it was updated. There is a

Web Service Response: => #XMLRPC::FaultException

with a trace of

NoMethodError (undefined method `to_i' for false:FalseClass):.//app/apis/movable_type_service.rb:100:in `getPostCategories' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/ lib/active_record/associations/association_proxy.rb:123:in `method_missing'

The article posted though...

There were also some deprecation warnings (boot.rb:39:Warning: require_gem is obsolete. Use gem instead.) and DEPRECATION WARNING: The inferred foreign_key name will change in Rails 2.0 to use the association name instead of its class name when they differ. When using :class_name in belongs_to, use the :foreign_key option to explicitly set the key name to avoid problems in the transition. See http://www.rubyonrails.org/deprecation for details. (called from 039_serialize_blog_attributes.rb:4)

Maybe someone with more time can look into these issues? If not, I'll get to them eventually.

Posted in ,  | 2 comments | no trackbacks

Platypus on Rails

Posted by Daniel Mon, 26 Mar 2007 02:48:00 GMT

Variations of this have been done before… but I couldn’t find a full blown example. In the meantime here’s the deal:

Dragging and dropping some files onto my Platypus script passes the file paths to a Ruby script that fires up WEBrick and runs a RoR app and then points the default browser to the right page. That’s as far as I’ve got this weekend.

Next, I’ll do what I need to process the files… and hopefully provide some nice UI in Rails… which is why I thought about doing it this way. We’ll see.

Anyway, firing up Rails was surprisingly tricky, but I knew from where to crib, so it wasn’t that bad. I chose WEBRick because it should keep the install to a minimum. If not, there’s always Mongrel.

Posted in ,  | no comments | no trackbacks

Addendum to yesterday's advice

Posted by Daniel Tue, 20 Mar 2007 01:13:00 GMT

Annoy Wendy at your own peril. (Hi Wendy! :~)

Posted in  | no comments | no trackbacks

Today's advice

Posted by Daniel Mon, 19 Mar 2007 10:20:00 GMT

  • “You are what you eat.”
  • “You get what you ask for.”
  • “If you’re not annoyed, you’re not paying attention.”

The last is becoming my personal motto these days…

Posted in  | no comments | no trackbacks

OmniTI Labs

Posted by Daniel Fri, 16 Mar 2007 00:56:00 GMT

OmniTI Labs: I’m very excited about making OmniTI Labs available and for all of us here at OmniTI to have an avenue to release tools they develop that has an absolute minimum amount of red tape. I expect this resource to flourish into an invaluable set of tools. [Nice Theo… nice. Looking forward to some great stuff!]
Source: The Scriptures of Jesus

Posted in , ,  | no comments | no trackbacks

Beautiful day... no ride (or little anyway)

Posted by Daniel Mon, 12 Mar 2007 00:44:00 GMT

Despite the amazingly warm weather, there were too many errands to run (including the accountant) for me to get out on a ride of any length. I was thinking about going early, but then realized the ridiculous clock change was moved up. Energy bill? Bah. Absolute nonsense! Anyway, I did get the mountain bike out for a brief spin, and had fun using the left over snow piles as ramps (I never thought driveway clearing would be useful this way…) but even that was only a brief interlude before more errands.

My only hope is that it starts being light out long enough for short rides when I get home at night.

Posted in  | no comments | 20 trackbacks

Edge Rails Goody: Distributed Asset Hosts

Posted by Daniel Fri, 02 Mar 2007 12:38:00 GMT

Edge Rails Goody: Distributed Asset Hosts: It turns out this problem is even worse than I previously realized. According to this page (which I found out about in the patch I’ll mention in the next paragraph), most browsers impose a limit on how many connections can be made to a single named host at any given time. And on the internet’s most popular browser, this number is a whopping two. Add to this the fact that HTTP Pipelining is disabled by default, and a resource-heavy page is a recipe for a sluggish user experience. [We knew we’d need to collapse the files at the very least.]
Source: ChadFowler.com

Posted in ,  | no comments | 1 trackback

Mike Clark's File Upload Fu

Posted by Daniel Fri, 02 Mar 2007 12:25:00 GMT

File Upload Fu: A picture might be worth a thousand words, but how many lines of code does it take to upload one to your Rails application? Sounds like a fun feature to tackle on a Friday. Let's upload some mug shots. You know, to identify the goofballs around the office. [Nice.]

Posted in  | no comments | no trackbacks

BDG for Custom Javascript Events

Posted by Daniel Thu, 01 Mar 2007 02:46:00 GMT

As promised a Busy Developer's Guide to Seth's Custom Javascript Event mixins. It's a truly simple example, but it should display the simplicity of getting this going, and to some degree how it separates concerns.

Seth: There's a typo I believe on line 29 of event_broker.js. And line 161 of event_mixins.js. Should they not refer to "listenForEvent"?

Posted in  | 2 comments | no trackbacks