Heroku is super simple and easy to get hosting sorted. Here are some common and/or useful commands. Pull git pull heroku master Clone heroku git:clone -a project-name Open Project/URL heroku... Read more...
Some notes and reminders for jQuery Check if Array contains something if (obj.indexOf('widgetID') != -1) { // widgetID not found in obj } Optional Variables for Function with Default Values... Read more...
Copy a database from a remote server to a local computer ssh user@server cd platform/config/web/ mysqldump -u root cust_server_prodction > dump.sql exit scp user@server:platform/config/web/dump.sql ~/ mysql -u root cust_server_prodction <... Read more...
Gattica no longer works with the Google API as it does not support OAuth2. I am therefore moving a project away from using the Gattica gem (for Google Analytics access... Read more...
Node JS and NPS Installing node.js on OS X is really simple, this is how Go to nodejs.org and click to download for your OS (e.g. Download for OS X... Read more...
Because ruby methods are named well in general, with easy to remember or guess names this sheet should stay relatively empty. These are some memory joggers… What are you? a.is_a?... Read more...
The Chartkick gem makes adding good looking charts to your Rails site really easy. It allows you to render Google Charts or HighCharts with ease. One small thing that it... Read more...
Some notes on running RSpec tests for a Rails Engine. This sets up the test database, changes directory to the engine’s directory and runs it’s tests bundle exec rake db:migrate... Read more...
Some examples of Development Workflows My current Development Workflow (using Jira, Bitbucket, Git, AWS) This process works well as part of a larger development team *---------------------------------------* | Select first open... Read more...
I’ve recently “upgraded” from Sublime Text 2 to Sublime Text 3. Here are some notes about how to get Text 3 setup for better productivity and to keep my Colour... Read more...
Connect to the instance, using the terminal ssh ubuntu@public_ip Given the instance’s public_ip (e.g. 51.82.211.212), which you can find listed in the AWS console. At this point your public key... Read more...
I’ve got another new laptop. This time it’s a Macbook Pro, so I thought I’d document what I do to set up my Mac development environment, to make it easier... Read more...
I use this post to remind me of keyboard shortcut keys, etc, for the Sublime Text 2 editor. These are just reminders for functionality that I am already somewhat familiar... Read more...
Login psql -U username postgres Show a list of Tables \dt Lists Databases \list Users \du Quit \q Changing Owner and Privileges The issues I came accross when trying to... Read more...
This is a feature list, feature comparison and brief overview for the main email marketing providers out there: Mailchimp (and Mandrill), Aweber and GetResponse. Features important to us are: Nurturing... Read more...
Creating manual model diagrams (Entity-Relationship Diagrams) for rails applications is a laborious task, especially for more complex or bigger applications. There are fortunately some tools to generate these for you... Read more...
I’ve been asked to look at a project that uses Postgres. This is what I needed to do to get it running in an Ubuntu development environment. The different/interesting bits... Read more...
This post is a work in progress. Comment if you think I should add anything. Find Search within files ack-grep -i "search string with.*regex" Find a file by filename See... Read more...
I use this as a quick reference for commands that I already know about (where I may have forgotten the exact syntax etc), so there is therefore not a lot... Read more...
I’ve got a new laptop, so I thought I’d share what I do to set up my development environment, to make it easier for me next time, and to help... Read more...
Vim is powerful, popular and helps lots of developers to be more efficient programmers. However, because Vim forces you to work in a different way to most other editors/IDE’s, it... Read more...
My employer’s repositories are all private, so when anyone outside of the organisation looks at my Github profile it looks all but empty. These logged-in and logged-out pictures illustrate the... Read more...
My first post.. but Why? I thought it’s about time that I organise and back up my notes, and while I’m at it I might as well make them available... Read more...