East Bay Rails Presentation Video – Parts 1-5

My East Bay Rails presentation last week covered “Delivering Weather Data in Rails”, and I reviewed how weather data can be presented in a web application in the context of environmental compliance.

There are 5 short video clips and an introduction (posted above) from the presentation – the remaining videos are posted here:

https://www.youtube.com/channel/UCngCqoW8QlEIwEjLHlSWiRg

East Bay Rails Meetup – Thursday, November 20th

meetup_logo

 

I am excited about my upcoming talk for the East Bay Rails Meetup this Thursday, November 20th, in Oakland:

http://www.meetup.com/East-Bay-Rails/events/214264292/

My talk will focus around delivering weather data in Rails or more generally, how to deliver API data with your apps.

So if you are in the area, definitely stop by to say hello!

Bash Scripts for Automate Tasks

Automation is a beautiful thing, right down to our work environments – and if you are developing in a unix-based environment then that would include the command line.

First step is setting up a scripts folder in your working directory:

cd ~/src # your working directory
mkdir bash # create directory
cd bash
vi my_script.sh # create scripts!

Next step, start writing scripts – below is a simple example that I use for preparing the database in my Rails development environment:

#!/bin/bash
migration # alias, setup in my ~/.bash_profile
rake db:seed
rake db:test:prepare

Last step, give your scripts proper executable permission using the unix chmod utility then run them from the command line:

chmod 755 my_script.sh
./myscript.sh # this should run the script...

In conclusion, bash scripts can be used as macros of accomplishing a series of common tasks. If you wish to make them portable, then remember to save them into a repository so that they can be saved onto any other of your machines.