A better Jquery bootstrap modal form

You can download the code from Github A simple jQuery extension that turns a link into a Bootstrap 3 modal form launcher. Based on graceful degradation rules. This plugin is similar to the default functionality of Bootstrap 3 for remote form modals. This plugin builds on that functioanlity to provide a better experience and encapsulates [...]

JQuery plugin with responsive hooks for Twitter Bootstrap 3

I’ve been building a small responsive web application with the newest version of Twitter Bootstrap 3. I’m a fan of the new responsive CSS utility classes that it provides. You can attach a class to your div container and it will appear or disappear depending on the size of the screen. It makes things easy [...]

Generic Repository for Entity Framework with DbContext and Code First

I’ve recently been developing a small n-tier application using Domain Driven Development. In the interests of having a separation of concerns I built a generic repository that can be passed into my services.   using System; using System.Data; using System.Linq; using System.Data.Entity; using System.Linq.Expressions;   namespace Swink.Repositories { public class Repository<TEntity, TContext> : IRepository<TEntity>, IDisposable [...]

Google Static Maps Zend View Helper

From time to time I’ve needed to add static Google maps to my website. The reason to use static maps may vary from accessibility concerns to usage on mobile devices that don’t support JavaScript. Since I’m a lazy programmer I like to create re-usable objects so that I don’t have to rewrite the code over [...]

Custom Zend DB Table Row Class with Validation and Filtering

This is a follow up post to my previous post about creating a custom Zend Db Table base class. As mentioned in the previous post the Zend Framework implementation of their database abstraction layer is an implementation of the Table Data Gateway pattern and the Row Data Gateway pattern. This implementation is well tested and provides a [...]

Custom Zend DB Table Base Class with Static Finder Methods

I’m putting it out there that I’m a fan of the Active Record Software Design Pattern.  Zend Framework uses a different design pattern for it’s database modelling called the Table Data Gateway Pattern.  In reality both are very good at doing what they’re meant to do, ie, model the tables in a database and return [...]

Setup a local Apache server with virtual hosts for PHP development on Windows

This micro-tutorial covers downloading and installing Apache HTTP server and PHP and running it locally with virtual hosts on Windows.  It’s quite straight forward for the experienced user but putting the pieces together for the beginner can sometimes be difficult.  This is a high level tutorial aimed at those newbies so that they can get [...]

Media Browser Genre Symlink Generator

I’ve been an adamant user of Media Browser for Windows Media Center 7 for a while now.  It’s a great (free!) plugin that allows you to organize and view your collection of movies and TV shows in a very cool interface.  It has a cover flow (iTunes esk) style of interface that I especially like that has [...]