There's a bug in pgAdmin3 query editor which sets client_min_messages
to NOTICE regardless of the setting in the options dialog.
Run this statement once in each query editor window using DEBUG logging
SET client_min_messages to 'DEBUG1';
package mine | |
import ( | |
"fmt" | |
_ "github.com/bmizerany/pq" | |
"database/sql" | |
"testing" | |
) | |
Promise = require('bluebird') | |
i = 0 | |
printAsync = (cb) -> | |
setTimeout -> | |
console.log i++ | |
cb() | |
, Math.floor((Math.random()*10)+1) # random 1..10 | |
print = (action) -> |
Promise = require("bluebird") | |
coffee = require("gulp-coffee") | |
dest = require("gulp").dest | |
less = require("gulp-less") | |
uglify = require("gulp-uglify") | |
exports.imports = | |
S: "./simple.coffee" | |
exports.project = (pm) -> |
module.exports = function(gee) { | |
return { | |
scripts: { | |
src: "src/**/*.js", | |
pipe: function() { return [jshint(), concat(), uglify(), dest('dist/all.js')] } | |
} | |
}; | |
}; | |
// to watch? simple, add -w flag |
At Crush + Lovely, we use Railsmachine's Moonshine to automate the configuration of our servers. When writing our deployment recipes, VMWare Fusion's ability to take snapshots and rollback to these snapshots is a huge timesaver because it takes just seconds to roll a server image to it's original state.
When you're just configuring a single server, having a static IP address for your server image isn't too important, but when you're configuring multi-server setups, it can be useful to duplicate a number of server images and give each a static IP address so you can consistently deploy to them. While not documented well at all, it turns out that this is relatively easy to accomplish in four simple steps.
Let's say you have a guest machine with the name ubuntu-lucid-lynx-base
Get scope of current file | |
``` | |
atom.workspace.getActiveEditor().getGrammar().scopeName | |
``` |
- name: install i3 and custom utils | |
become: yes | |
apt: pkg={{item}} | |
with_items: | |
- hsetroot | |
- i3 | |
- rofi | |
- xsel | |
- rxvt-unicode-256color |
import {readable, writable} from 'svelte/store'; | |
// could be its own module | |
const util = { | |
_root: null, | |
// similar to createSelector but instead returns a reactive variable | |
createGetter(store, fn, initialData) { | |
return readable(initialData, set => { | |
store.subscribe(state => set(fn(state, this._root))); |