joebeeson

programming, knick-knacks, minutiae

  • Projects
  • About
Archive for

June 2011

Joe Beeson

web monkey. code junkie. developer.

TwitterLinkedInYoutube
Joe Beeson's profile »

Developers

  • Some flot, some jet
  • Coding Horror
  • Mark Story
  • Jonathan Snook
  • Debuggable

Code

  • CakePHP
  • Lithium

Work

  • House Party
  • Weaver Multimedia

Tags

  • cakephp (15)
  • minutiae (8)
  • css (2)
  • lithium (1)
  • php (1)

Archive

2012 (3)
February (3)
2011 (21)
September (7)
August (2)
July (2)
June (10)
Subscribe via RSS
June 29, 2011

Introducing the Filterable behavior

  • Edit
  • Delete
  • Tags
  • Autopost

I'm sure you've been there before. Cleaning up data in every conceivable way that the user could muddle it up just so you can get the information saved or updated. Trimming whitespace, stripping HTML, parsing formatting languages, etc. The problem is that, while necessary, this sucks.

Read the rest of this post »

Filed under  //

  • cakephp
  • 1 response
  • Like
  • Comment
June 29, 2011

Relieve your database with this quick tip

  • Edit
  • Delete
  • Tags
  • Autopost

Here's a quick little tidbit which while may be obvious to more seasoned coders, will really help out your database and make your model code more robust.

Read the rest of this post »

Filed under  //

  • cakephp
  • 0 responses
  • Like
  • Comment
June 25, 2011
  • Edit
  • Delete
  • Tags
  • Autopost

Nxvon

- Cyanide & Happiness #2322

Filed under  //

  • minutiae
  • 0 responses
  • Like
  • Comment
June 24, 2011

Logging all database queries

  • Edit
  • Delete
  • Tags
  • Autopost

Ever find yourself in a situation where CakePHP executes a handful of database queries but the controller immediately redirects you, effectively throwing away the log of everything that happened during that request? What about trying to see "behind the scenes" of an AJAX request? Well, here's a little tidbit to help sneak a peak under the hood..

Read the rest of this post »

Filed under  //

  • cakephp
  • 0 responses
  • Like
  • Comment
June 23, 2011

Forcing a maximum pagination limit

  • Edit
  • Delete
  • Tags
  • Autopost

You know what's a really fun and easy way to bog down someone's server? Make a request against a controller for hundreds of thousands of records. Here's how to keep that from happening in your applications.

Read the rest of this post »

Filed under  //

  • cakephp
  • 0 responses
  • Like
  • Comment
June 23, 2011

Recursive model associations

  • Edit
  • Delete
  • Tags
  • Autopost

While usually pretty rare there are times when you want to define an association for a model that relates back to itself; parent record, children records, etc. Here's an example of how to get this up and running in your own model.

Read the rest of this post »

Filed under  //

  • cakephp
  • 1 response
  • Like
  • Comment
June 23, 2011

Heavy is spy!

  • Edit
  • Delete
  • Tags
  • Autopost

Filed under  //

  • minutiae
  • 0 responses
  • Like
  • Comment