Archive

Archive for November, 2015

Up and running with PostgreSQL

November 26, 2015 1 comment

Up and running with PostgreSQL

1. Install

sudo apt-get install postgresql-9.3

2. Set a password to the postgres user

$ sudo -u postgres psql postgres
psql (9.3.10)
Type "help" for help.

postgres=# \password postgres
Enter new password:
Enter it again:
postgres=# \q

3. Create a new role

$ sudo -u postgres createuser -D -A -P mynewuser
Enter password for new role:
Enter it again:

4. Create a database using the new role

$ sudo -u postgres createdb -O mynewuser mynewdatabase

5. Connect to new database using new role

psql -h 127.0.0.1 -p 5432 mynewdatabase mynewuser
Password for user mynewuser:
psql (9.3.10)
SSL connection (cipher: DHE-RSA-AES256-GCM-SHA384, bits: 256)
Type "help" for help.

mynewdatabase=> \q

6. Manual for createuser command

man createuser

Source:
https://help.ubuntu.com/community/PostgreSQL
http://www.postgresql.org/docs/current/static/app-createuser.html
http://www.postgresql.org/download/linux/ubuntu/

Categories: postgresql

Websites to learn something new

November 26, 2015 Leave a comment

From learning to code, to learning a new language.

http://observer.com/2015/11/the-37-best-websites-to-learn-something-new/

Categories: Interesting

Microservices – Martin Fowler

November 21, 2015 Leave a comment


goto; talk

Other resources:
http://martinfowler.com/microservices/

Categories: Interesting Tags:

Semantic Versioning

November 21, 2015 Leave a comment

Semantic Versioning (referred to, for short, as SemVer), is a versioning system that has been on the rise over the last few years. With new plugins, addons, extensions, and libraries being built every day, having a universal way of versioning software development projects is a good thing to help us keep track of what’s going on.
more

Categories: Interesting