Milliseconds in your DateTimes or Timestamps.
We got 'em, you want 'em.
NOTE: only MySQL 5.6.4 and above supports DATETIME's with more precision than a second. For reference see MySQL 5.6.4 Changelog
Shit needs to be PRECISE
| brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/aa049a47b218fda30f9a4a454119ae067a02cf50/Formula/postgis.rb | |
| #pg_config --pkglibdir is useful for finding your $libdir | |
| cp -a /usr/local/share/postgresql/extension/postgis* /usr/local/Cellar/[email protected]/9.6.5/share/[email protected]/extension/ | |
| cp -a /usr/local/lib/postgresql/postgis-2.3.so /usr/local/Cellar/[email protected]/9.6.5/lib/postgis-2.3 | |
| cp -a /usr/local/lib/postgresql/rtpostgis-2.3.so /usr/local/Cellar/[email protected]/9.6.5/lib/ | |
| /* | |
| Object literals or Array literals are functionally equivalent to calling | |
| Object.create() or new Array(). This means that if object literals or | |
| array literals are passed as prop values, React will consider these to be new | |
| values for each render. | |
| This is problematic mostly when dealing with Radium or inline styles. | |
| */ | |
| /* Bad */ |
| defmodule URL do | |
| def to_query(input, namespace) do | |
| Enum.map(input, fn({key, value}) -> parse("#{namespace}[#{key}]",value)end) | |
| |> Enum.join("&") | |
| end | |
| def to_query(input) do | |
| Enum.map(input, fn({key, value}) -> parse(key,value) end) | |
| |> Enum.join("&") | |
| end |
Milliseconds in your DateTimes or Timestamps.
We got 'em, you want 'em.
NOTE: only MySQL 5.6.4 and above supports DATETIME's with more precision than a second. For reference see MySQL 5.6.4 Changelog
Shit needs to be PRECISE
| Vagrant.configure(2) do |config| | |
| config.vm.box = "ubuntu/trusty64" | |
| config.vm.provision :shell, inline: <<-SHELL | |
| # function to run a command as the vagrant user | |
| as_vagrant () { | |
| sudo -i -u vagrant bash -c "$1" | |
| } | |
| sudo apt-get update -y |
| # This task will notify Sentry via their API[1] that you have deployed | |
| # a new release. It uses the release timestamp as the `version` | |
| # (like 20151113182847) and the git ref as the optional `ref` value. | |
| # | |
| # This task requires several environment variables be set (or just | |
| # hardcode the values in here if you like living on the edge): | |
| # | |
| # ENV['SENTRY_API_ENDPOINT'] : API endpoint, https://app.getsentry.com | |
| # ENV['SENTRY_ORG'] : the organization for this app | |
| # ENV['SENTRY_PROJECT'] : the project for this app |
| log/ |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)