Blog » Page 5

Pages:  «  <  [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ]  >  »

Get the next MySQL auto_increment id using ActiveRecord

May 22, 2008

I see this come up on the Rails list from time to time, so I figured I'd document it here as a blog entry. To get the next auto_increment id from a MySQL table using ActiveRecord: @next = ActiveRecord :: Base . connection . execute ( " SELECT auto_increment FROM information_schema.tables WHERE table_name='foo' " ). fetch_hash ['...

1 Comment

Zend Framework, Model Validation?

May 8, 2008

Today while reading what little traffic arrives to the Zend Framework list, some poor user posted this: How would you go about displaying a custom error message when a sub form fails validation? i.e. I've overloaded the subform's isValid() method to add some custom validation thats reliant on a combination of all the fields in the subform, if this fails I'd like to pass a...

2 Comments

Linux Today pages are now 100% Ads

May 7, 2008

digg_url = 'http://digg.com/linux_unix/Linux_Today_pages_are_now_100_Ads'; Just when I thought Linux Today couldn't get any worse , it did: There now appears to be zero content living among all the ads. It quite hilarious. At this point I've unsubscribed from their RSS feed and will be getting my Linux news elsewhere. Thanks for nothing.

1 Comment

gem install rails

Updated: May 7, 2008October 17, 2005

The discussion about RubyGems being part of the standard distro is alive and well. The gem server seems slow. A workaround: wget -c http://gems.rubyforge.org/gems/rails-0.13.1. gem http://gems.rubyforge.org/gems/rake-0.6.2.gem http://gems.rubyforge.org/gems/activesupport-1.1.1. gem http://gems.rubyforge.org/gems/activerecord-1.11. 1.gem http://gems.rubyforge.org/ge...

RailsDB 0.2

Updated: May 7, 2008January 20, 2008

I've just released a new version of RailsDB. I've made improvements to table management, error handling, and database connections. Check it out .

Oracle's Silly Sequence Cache

Updated: May 7, 2008April 9, 2008

The more I use Oracle the more I appreciate the lightweight nature of MySQL and even PostgreSQL for that matter. Right tool for the right job I guess :) My latest Oracle issue seemed fairly odd at first. The issue was that I needed sequential numbers from my sequence, but Oracle was giving them to me in what seemed to be blocks of 20 at a time. Instead of 1.. 2.. 3.. 4, it...

1 Comment

Zend Framework, "Web 2.0 Framework" My Ass!

Updated: May 7, 2008April 27, 2008

Motivation digg_url = 'http://digg.com/programming/Web_2_0_Framework_My_Ass'; I am writing this to inform web developers of my experience with Zend Framework so they can choose wisely when shopping for a MVC "framework" to use with their next "big project". I feel Zend Framework is a lost cause and a complete waste of time to learn and to use. I hope to help other ...

18 Comments

Zend Framework, What Database Abstraction Layer?

May 7, 2008

Today while reading what little traffic arrives to the Zend Framework list, some poor user posted this : I’ve just gotten access to a clients NetworkSolutions hosting account and tried uploading an application to it only to find out that despite having php 5.2.4 it doesn’t have pdo_mysql or mysqli extension installed. Is there any hope of changing the adapter to some...

Nine Inch Nails - The Slip, Sucks

May 5, 2008

Digg.com informed me NIN had decided to give away, as in "gratis", their latest album, "The Slip". W00h00, right? Wrong. Down in the comments section on Digg, someone noted how it's very likely Lars Ulrich is going to be pissed about the album being free of charge. But after listening to the album twice today, I assure you this, much like all NIN albums, is complete crap. ...

5 Comments

Linux Today pages are 99% Ads

May 1, 2008

Has anyone noticed lately how the LinuxToday.com pages are simply covered with ads? It's practically unbearable: Maybe 1% of this screen shot (the part I drew a red circle around) is part of the actual news article I went there to read. The rest of the page, the ads, is useless crap. For a site that doesn't even write most of it's own content, it's insulting. ...

Pages:  «  <  [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ]  >  »