Sharing a Snippets Library through Dropbox

I’ve been using the Mac application Snippets and it’s been getting better with each new release. One essential feature that’s still missing is any support for syncing a library through a service other than MobileMe. I’ve even contacted them about the issue, as many have.

However, I’ve recently learned that there is a way to share the library using Dropbox – not sync it, but share it. Simply move the library itself. I had considered this option before (since it’s how I use 1Password) but there seemed to be no way to move the Snippets library.

Continue reading this post…

Published by Michael Botsko on 4/30/2011

HTML5 & CSS3 – Wireframing in the final product

I began writing a few web development articles for WebDesignerDepot.com a few months back, and the first of the series has been published this morning. Head on over to read HTML5 & CSS3: Wireframing in the final product. I’ve already turned in the next two articles and I have a few more underway.

Published by Michael Botsko on 4/26/2011

Web Development Course Updates

At the end of the current term, it will be two years since I began teaching evening web development courses for Portland Community College. I’ve taught a wide range of topics including Javascript, jQuery, HTML5, CSS2 & 3, PHP, MySQL, and WordPress. In the past few months I’ve also been involved in planning a new structure and flow of courses for Summer 2011 and beyond.

Continue reading this post…

Published by Michael Botsko on 4/22/2011

Installing MongoDB on CentOS 5

I’ve recently been exploring alternatives to SQL-based databases, primarily MongoDB.

MongoDB essentially stores records as JSON-encoded values and you interact with those records through the API rather than running any SQL. The following instructions are for getting mongodb installed on CentOS 5, along with the extension necessary for PHP support.

Continue reading this post…

Published by Michael Botsko on 4/21/2011

Using Rails-less Capistrano Multistage on Mac OS X Snow Leopard

Despite being originally developed for Ruby, Capistrano is an excellent code deployment tool that can easily be used for any language. Capistrano primarily works by executing instructions in recipes – which are basic ruby scripts. By wrapping server commands and other logic in these programs, you can automate almost every step of the deployment process.

Continue reading this post…

Published by Michael Botsko on 4/20/2011

Thoughts on the Google Chrome Browser

I’ve used Firefox since it was Phoenix, and before that I used Mozilla, and before that I used the Netscape line. Firefox 3.x began feeling slower than I liked and it seems to quickly consume memory in such a way that by the end of the day, I had to quit and restart it. I switched to Chrome for Mac for the past two months or more and am finally switching back to Firefox. Here’s why.
Continue reading this post…

Published by Michael Botsko on 2/10/2011

Using CSS3 and RGBa for Size-Friendly Wireframes

Until recently I’ve used both border and background-color CSS properties to make elements visible when laying out a new web page structure. Until I’ve added content, most block-level elements are invisible.

The problem with those methods is that a) giving an element a border will increase its width and/or height, which can affect your layout, and b) background-colors needed to be set for each element, and possibly with different colors. It all takes more code than I like and it usually looks awful.

Continue reading this post…

Published by Michael Botsko on 12/1/2010

Mac OSX Finder Droplet for Windows-friendly Zip Files

I frequently prepare course materials on a Mac which will be distributed to users on a variety of machies. Not only does the default “compress file” feature include the .DS_Store hidden files, but it also includes all of the resource fork files which, when viewed on a PC, appear as “__MACOSX”.

I really like the convenience of a toolbar droplet (which I already use for opening the terminal and tar/gz compression). I searched around for a solid zip archive droplet that would not use the ditto service (which includes the resource fork data), but couldn’t really find anything – so I wrote my own.

Download the following application and place it in your Applications folder, and drag it into your Finder toolbar. Any files or folders you drag onto it, will immediately be compressed – without any Mac-specific extras.

Download ZipDroplet

Published by Michael Botsko on 11/30/2010

PHP5 Class for Hotpads.com XML Feeds

Fresh out of the oven is a PHP 5 class for building real estate listing XML feeds for Hotpads.com. If your application needs to syndicate listing data through the Hotpads service, this class allows you to build the complete output without creating any XML yourself.

The output of this class has been validated and verified by Hotpads so you’re ready to go. Check it out on Github.

Published by Michael Botsko on 11/18/2010

Installing Memcached for PHP on CentOS 5

Memcached is a high performance cache system designed to improve the speed of web applications. A common example would be storing the results of database queries that can benefit from having a cache system in place.

Recently we had a web application that provided a long list of items formatted as an HTML ul element in response to an AJAX-style request. Our results and its formatting were the same for all users and they were also going to be called up frequently. We spent time ensuring the code and database structure were as optimized as possible before looking into a cache, but when you have a high ratio of accesses versus changes to the data, using a cache is very smart way to solve the problem.

Continue reading this post…

Published by Michael Botsko on 11/18/2010