The RETURNING Keyword in PostgreSQL
RETURNING
keyword in PostgreSQL gives an opportunity to return from the insert or update statement the values of any columns after the insert or update was run. I mentioned this in passing in a few of my talks that touch on PostgreSQL recently, and it often gets twitter comment so here’s a quick example of the RETURNING
keyword in PostgreSQL. The newest releases of PostgreSQL are excellent and I’m seeing many teams considering moving their traditional MySQL setups over – this is just one of the extra goodies that you get when you use PostgreSQL! Let’s look at an example. Continue reading Switching To Reveal.js for Presentations
Vagrant and Ansible for Dev Machines
Use Ngrok Dashboard from VM
This is a config setting but it can’t be supplied on the command line, instead create a file called ~/.ngrok2/ngrok.yml
and add the following line:
web_addr: 0.0.0.0:4040
This will enable you to then reach the web interface at [VM IP or hostname]:4040
.
Joind.In Needs Help
Connect to RabbitMQ from PHP over AMQPS
Zap to Schedule Adding Todo List Items
Vagrant Box With This Name Already Exists
A VirtualBox machine with the name 'ubuntu-xenial-16.04-cloudimg' already exists.
Please use another name or delete the machine with the existing name, and try again.
There’s a stackoverflow question about this and a good answer (not the accepted one, the highest-voted one) which helped me a bit but it still wasn’t completely clear to me how to fix my problem and I had to dig about a bit. Continue reading
Using OS X From The Keyboard
I collected all my tools, my own notes and scribbled cheatsheets and put them into this gist so that I could refer to them later; I also intend to keep updating this as a reference. Continue reading