Detect retina assets with javascript

Just pass this little guy a DOM Element and it’ll look for an image with a _2x extension on the server.  Pretty simple.

Bash to zsh in 2 minutes

I recently switched over to zsh by recommendation of @capotej. In the process I found a pretty cool way to change shells in any UNIX environment using the command chsh (change-shell).

Using Homebrew as a package manager

$ brew install zsh

Verify your path to zsh. (my configuration is /usr/local/bin/zsh )

Now run 

$ chsh

you will be prompted to provide a password for the root user.

This will open your default editor within your terminal. Edit the line labeled “Shell” to match your path to zsh. 

# Open Directory: /Local/Default
##
Shell: /bin/zsh
Full Name: MasterControl
Office Location:
Office Phone:
Home Phone:

Save and exit the file and open a new terminal window. Also, remember to copy your PATH info from your previous shell and any configuration info and save it to ~/.zshrc.

Transition Mixin for Sass

This little snippet of code can save you some time when creating forms with transitions using css3 and sass. Just include this into your project wherever you’re calling your mixins.

I have this saved in my _forms.scss partial which I keep in the libraries section of my project. If you are unfamiliar with sass, I would suggest visiting sass-lang.com and compass-style.org and reading through the docs. Really awesome people have put a lot of time into this documentation, so use this to your benefit. 

To use this mixin, just call it into your style.scss, screen.scss, or which ever partial you are including that will be compiled into the final css. Use the scss syntax.

@include transition-input()

As you can see, transition-input takes arguments. These were specified in the original mixin using the $ which signifies a variable in sass. This allows us to pass the different attributes of the input box that we are styling.

 @include  transition-input($background-color, $border, $radius, $color, $width, $font-size)

Read More

Sending an SMS Blast with Twilio

This is for you social media game designers; adding badges and scores to new games might not be the answer you were looking for. Instead, give more attention to actual game design and what really makes games fun. Not just points for the sake of points or badges for the sake of badges. Make something real, something fun, a game that actually engages a user and gives them a reason to play

How to install the MySQL/Ruby gem on Mac OS X 10.5._

This is how you get the latest version of MySQL working with the MySQL/Ruby gem and the ruby version that comes with Mac OS X Leopard. Before running the code below install MySQL for Mac OS X 10.5 (x86) —NOT x86_64 build.After the correct build of MySQL is installed open a terminal and install the MySQL/Ruby gem with the script below…


sudo env ARCHFLAGS="-arch i386" gem install mysql -- \
--with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib \
--with-mysql-include=/usr/local/mysql/include

Interesting Sinatra talk just went down #rubykaigi and what’s up with that Sequel Web Admin? Pretty Awesome

http://www.droplink.me This is by far the easiest way to share files with friends and co-workers. #droplink

From the mouth of the man who wrote the software that helped create this mortgage meltdown http://tinyurl.com/dkx2xr

Federal Reserve to buy agency debt (Fannie Mae/Freddie Mac) on Tuesday between 10:30am and 11:00am http://tinyurl.com/bbz73w