Pencil Icon

ExpressionEngine find and replace upload directory paths

October 29, 2012

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

Finds ‘home/user/public_html/uploads/dir’ and replaces with ‘/usr/httpdocs/example.com/uploads/dir’

 UPDATE exp_upload_prefs SET server_path = REPLACE(server_path, '/home/user/public_html/uploads/dir', '/usr/httpdocs/example.com/uploads/dir')
Quote Icon

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?

Pencil Icon

AnythingSlider jQuery Plugin FX Options

September 16, 2012

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.

Configuration

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

Arguments

predefined-FX

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

distance

  • in pixels

time

  • 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