ExpressionEngine find and replace upload directory paths

MySQL query to replace those pesky server path settings in EE:

  1. Find 'home/user/public_html/uploads/dir'
  2. Replace with '/usr/httpdocs/'
UPDATE exp_upload_prefs SET server_path = REPLACE(server_path, '/home/user/public_html/uploads/dir', '/usr/httpdocs/')

'Will Rails become the new PHP?' comment

After 13 years of professional development I'm probably qualified to say that > 80% of the companies and people do not care about technology beyond the "does it compile?" level.

It's also a "mainstream" problem. Most developers just do it for the money, most managers are incompetent handling "brain workers". Over time bad habits will slaughter every language, framework, platform to some ugly legacy unless you fight against it every single day.

  1. If you can use a technology, you can abuse it. It's simple.
  2. Most technical problems start as a HR problem.

— Comment by Roland re: Will Rails Become the New PHP?

AnythingSlider jQuery Plugin FX Options

AnythingSlider is a versatile jQuery plugin that allows you to, well, slide anything. I found the predefined effects docs a little lacking so I pulled them from the code itself.


1 $('#slider').anythingSlider({
2   // options config
3   }
4 }).anythingSliderFx({
5    // 'selector': ['predefined-FX', 'distance', 'time', 'easing']
6   '#slider > li': ['fade', '', 500, 'easeInOutCirc']
7 });



  • top
  • bottom
  • left
  • right
  • fade
  • expand
  • grow
  • listLR
  • listRL


  • in pixels


  • in milliseconds

easing animation

  • def
  • jswing
  • easeInQuad
  • easeOutQuad
  • easeInOutQuad
  • easeInCubic
  • easeOutCubic
  • easeInOutCubic
  • easeInQuart
  • easeOutQuart
  • easeInOutQuart
  • easeInSine
  • easeOutSine
  • easeInOutSine
  • easeInExpo
  • easeOutExpo
  • easeInOutExpo
  • easeInQuint
  • easeOutQuint
  • easeInOutQuint
  • easeInCirc
  • easeOutCirc
  • easeInOutCirc
  • easeInElastic
  • easeOutElastic
  • easeInOutElastic
  • easeInBack
  • easeOutBack
  • easeInOutBack
  • easeInBounce
  • easeOutBounce
  • easeInOutBounce

Edsger W. Dijkstra Quotation

Programming, when stripped of all its circumstantial irrelevancies, boils down to no more and no less than very effective thinking so as to avoid unmastered complexity, to very vigorous separation of your many different concerns.
Edsger W. Dijkstra, taken from Richard Hickey's Simple Made Easy presentation

Bootstrap Carousel Pagination

Here's a quick-and-dirty way to add pagination to the Twitter Bootstrap jQuery Carousel plugin.

View the Demo (JS Fiddle)

Bootstrap Carousel screenshot