The Zach Chadwick

  • Archive
  • RSS

jQuery: ajaxManager3

A great little plugin that lets you decide how your ajax requests are sent. Includes support for queuing, aborting, all kinds of callbacks etc.

One hint:  If you are kicking off a subsequent request from within the success() handler of a previous request, put it in a setTimeout().  Otherwise, it won’t run.

Source: protofunc.com

    • #jquery
    • #programming
    • #javascript
  • 1 year ago
  • 1
  • Permalink
  • Share
    Tweet

Sepcot.com Blog - SVN: Merging a Branch into Trunk

This is the easiest to understand and execute little guide to merging and SVN branch back to trunk.  Since it happens so infrequently, I’m constantly having to refer back to it.

Source: sepcot.com

    • #programming
    • #svn
  • 1 year ago
  • Permalink
  • Share
    Tweet

Triumph of the Cyborg Composer

Is computer-composed music still music?  Does it have “soul?”

If I ever wanted to go back to school, I think I’d love to focus on this kind of stuff.

Source: miller-mccune.com

    • #music
    • #programming
  • 1 year ago
  • Permalink
  • Share
    Tweet

acts_as_taggable_on :weirdness

I’ve spent a large part of my day tracking down a very weird behavior in the acts_as_taggable_on plugin.  I am using it to tag articles with multiple categories. In general, it’s awesome.

The weirdness comes in with the specific tags that I am using.  For example, one article might be tagged “DHCP” as it refers to that protocol.  However, as soon as I created a “DHCPv6” tag, my Article.tagged_with("DHCP") stopped working.

I tracked it down to Line 161 which builds a list of tags like the one you are looking for, and if it’s a different length than your tag list, it returns a query condition that will always fail, thus preventing any results. Why does it do that?

The solution, was to specify :all => true in my Article.tagged_with call.

    • #programming
    • #rails
    • #ruby
  • 2 years ago
  • Permalink
  • Share
    Tweet

irb _

How have I missed this until now?  When in Ruby’s irb, you can use ‘_’ to reference the previous result of anything.


  >> 10 + 3
  => 13
  >> _ + 2
  => 15
  >> _ / 3
  => 5
  >> 

Very useful.

    • #ruby
    • #irb
    • #programming
  • 2 years ago
  • Permalink
  • Share
    Tweet

A beautifully done screencast - or katacast as they are calling them - featuring some TDD with Ruby.  It is a fairly simple example, but executed perfectly.  Having the Rachmaninov Piano Concerto #3 as the soundtrack really adds to the drama.

    • #ruby
    • #tdd
    • #video
    • #programming
  • 2 years ago
  • Permalink
  • Share
    Tweet

The Go Programming Language

I’m intrigued by by the fact that Google has created a new programming language.  I don’t quite understand what niche it is designed to excel at, but it’s fun to check out at least.

    • #programming
    • #language
    • #go
  • 2 years ago
  • Permalink
  • Share
    Tweet

About

Musician, programmer, and occasional photographer. This is my small attempt to help other people out with some of the same problems I have run into along the way.

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr