Archive for category Web Development

Capistrano to pull changes not clone for every deploy!

This is just a quick post for a reminder and maybe to help the odd person out there. But basically I noticed my Capistrano doing a git clone each time I did a deploy.. this is annoying for a few reasons..

Everytime I would make a change, even a small change like a sentence in a README file, and ran a cap deploy, Capistrano would do a git clone each time.

Now.. let’s say your in development or staging and you do 4 or 5 deploys a day.. and let’s also say that your codebase is 20MB. This means that doing about 80-100MB of bandwidth per day. Not to mention how much slower your deploys become or the fact that you’ll be paying for extra bandwidth charges to whomever you host your private repos with.

The simple fix :)

simply add the following lines to your recipe :

set :deploy_via, :remote_cache
set :git_shallow_clone, 1

That’s just a fancy way of saying to use a cache and run a git fetch/pull to that instead of an entire git clone each deploy.

This should save time and bandwidth.. YAY!

Tags: ,

Firefox addons I can’t live without

I’m not a big fan of bloating up my browser with all kinds of different add-ons that are rarely used and that take my screen real-estate (by pushing down the viewable area from toolbars..err) but the following firefox add-ons are essential to my day to day web development:

FireBug + FireCookie + CodeBurner

Firebug is a great tool in itself and chances are your using it or have at least heard of it. If you haven’t, I wont explain much here other then to say that if you were only to install one plugin from this page.. this is it.

But that’s not all… Firebug becomes even more powerful with FireCookie and CodeBurner. 

FireCookie is great for the times when you need quick cookie information.

CodeBurner makes valuable reference material for HTML and CSS available right in your browser. This tool is freaking awesome when trying to figure out which HTML elements, HTML attributes, CSS Properties CSS Selectors or CSS at-rules will work in the myriad of different browsers out there today.


https://addons.mozilla.org/en-US/firefox/addon/1843/
— Firebug

https://addons.mozilla.org/en-US/firefox/addon/6683/
— FireCookie
https://addons.mozilla.org/en-US/firefox/addon/10273/ — CodeBurner

Web Developer Toolbar

Need I say more. Contains almost everything you would ever need while laying out and developing your website or web application.

https://addons.mozilla.org/en-US/firefox/addon/60/


Live HTTP Headers

View HTTP headers of a page while browsing… this is very useful when doing more advance things like debugging your web application development. It’s also a helpful learning tool to see how things are working under the covers of the HTTP Protocol.

https://addons.mozilla.org/en-US/firefox/addon/3829/

ColorZilla

Building a color scheme for your design often requires finding inspiration and color schemes in other websites that fit your vision. Colorzilla helps by providing you with color code data in a very fast and unobtrusive way.

https://addons.mozilla.org/en-US/firefox/addon/271/


Please let me know in the comments if there are any other great add-ons that I could add to the list. I’m sure I have everything I would ever need for web development but as we know this industry moves fast and there’s always new tools for doing old and new things…

Cheers

Who I am

I'm passionate Ruby on Rails developer and drummer from Ontario, Canada. I run a small web development company but am now focusing my efforts on a new web application startup company in the Real-estate market.

I love to turn my ideas into real things...when I'm not creating things behind the computer screen, I can be found creating things behind my drumkit while irritating the neighbors at the same time!

I'm a Partner and Developer at The Bauhub. Having a great time! If your a developer, designer, writer etc.. you NEED to check this out.

Hire Me

I'm Currently seeking, contract or full-time, ruby on rails development work. Telecommute only. I live about 2 hours north of Toronto, Ontario.

Contact me


Testimonials

Kirk has spent the last 7 years building on web applications in both Ruby on Rails and the .NET space. His terrific energy, work ethic and creative problem solving make Kirk an invaluable core member within The Bauhub's programming team.
Scott Morrison
CEO
TheBauhub.com


Kirk is a very organized and passionate developer, who never let tasks slip through the cracks and always providing feedback
Micheal Parkikh & Andrew Flachner
Owners
DuoDater.com


FreshBooks