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:
I am excited about my upcoming talk for the East Bay Rails Meetup this Thursday, November 20th, in Oakland:
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!
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
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:
migration # alias, setup in my ~/.bash_profile
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.
Posted in bash, unix
Tagged bash, unix