Writing
Notes on building software — the decisions that age well, the ones that don't, and what I learn in between.
-
Natural Dog Training Buzz
NDT Buzz is a companion news site to Natural Dog Training.News and information about Natural Dog Training is generated on the web from many different sources. Blogs, tweets and comments are...
-
Natural Dog Training
Natural Dog Training uses Wordpress to run a blog and content management system.Custom design, theme and plugin development
-
Launch Photoshop (Or Any App) From The Command Line on Mac OS X
I often find myself coding with the terminal open. Cding around a web app project I usually end up at some point launching Photoshop. Either to touch up or work on a psd, png, jpg ...etc. I fire up...
-
Programmatically Turn Off Comments in Wordpress with Filter
To turn comments off programmatically with a filter in Wordpress, you can set the post object's comment\status variable to "closed". Call the filter at some point after the post is loaded but...
-
Intercepting the Wordpress Loop with Pre_get_posts
deprecated (see http://codex.wordpress.org/Function\Reference/query\postsPost\.26\Page\Parameters) Using the "pre\get\posts" filter you can intercept the Wordpress loop and override or set...
-
Thematic Function Reference
I could not find a listing of all thematic theme functions for Wordpress online. So the following is just a recursive grep of the thematic directory. Each function needs to prepended with...
-
Very Simple Breadcrumb Navigation in Rails with Before_filter
This may not be the ideal solution. This just manages request.referers in a session variable, then looping over each unique path prints a link to the screen. It's more of a "history" than a...
-
Yield a Block within Rails Helper Method with Multiple Content_tags Using Concat
To clean up some repetitive html coding in views, pass a block of text to a helper function which will wrap it for you the same way, each and every time. For example, I have a 'help' link which...
-
Nesting Resources in Rails Routes.Rb with Namespaces
When I have a controller that takes more than one has\many argument, I think about creating a namespace. This way I may still use my forums, pages controllers w/out needing any conditional logic,...
-
Rake DB Everything, Dump, Destroy, Create, Load
I'm a big fan of the yaml\db plugin. But I don't like running rake db:data:load, only to find that my db columns mismatch my model attributes, thus aborting the data import task. To quickly...
-
Active Record Find Methods
Active Record find methods for selecting range from http://charlesmaxwood.com/notes-from-reading-activerecordbase/
-
Carrier Email Addresses for Sending SMS over Email
Just for reference, here are the carrier email addresses for sending email as an SMS. Look up the carrier for the phone in question, then send an email in this format...
-
Why are PHP5 Namespaces Defined Using a Backslash?
Why are PHP namespaces defined using a backslash? It looks ugly. Unless of course, there is a good reason for the "\"? Does this namespaced code run more efficiently on Windows? Since namespaces...
-
Very Basic Git Workflow
Very, very basic git workflow
-
Using Module Mixins to Extend Classes and Objects in Ruby
The module and class below demonstrate how to use instance methods and class methods from "module mixins". The thing to remember is scope. For instance, to use class methods within instance methods...