public static function oval(g:Graphics, w:Float, h:Float, cx:Float = 0, cy:Float = 0):Graphics {
var lx = cx - w * .5;
var rx = cx + w * .5;
var ty = cy - h * .5;
var by = cy + h * .5;
var magic = 0.551915024494; | //! Demo of static "inheritance" | |
| //! | |
| //! Use trait objects to get dynamic inheritance, | |
| //! but casting to a subtype is not explored here | |
| //////////////////////////////////////////////////////// | |
| // Define Base type, interface, and what is overloadable | |
| //////////////////////////////////////////////////////// | |
| /// The main type that will be extended |
http://www.oreilly.com/programming/free/files/microservices-for-java-developers.pdf
http://www.oreilly.com/programming/free/files/microservices-for-java-developers.epub
http://www.oreilly.com/programming/free/files/microservices-for-java-developers.mobi
http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.pdf
http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.epub
http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.mobi
| package main | |
| import ( | |
| "log" | |
| "os" | |
| "os/signal" | |
| "strconv" | |
| "syscall" | |
| "github.com/hashicorp/serf/serf" |
A collection of links to the excellent "Composing Software" series of medium stories by Eric Elliott.
Edit: I see that each post in the series now has index, previous and next links. However, they don't follow a linear flow through all the articles with some pointing back to previous posts effectively locking you in a loop.
Edit: This list is now maintained in the rust-anthology repo.
Configured for a Mac-like experience
Apple Magic Keyboard 2: Model A1644 (same as MLA22LL/A ?)
Mapping for Linux Mint 18 Cinnamon 64-bit
| // updated for Swift 3 | |
| import Carbon | |
| // Swift version of https://developer.apple.com/library/mac/technotes/tn2084/_index.html | |
| @IBAction func testButtonPushed(sender: AnyObject) { | |
| guard let url = NSBundle.main.url(forResource: "SendFinderMessage", withExtension: "scpt") else { | |
| return | |
| } |
The connection failed because by default psql connects over UNIX sockets using peer authentication, that requires the current UNIX user to have the same user name as psql. So you will have to create the UNIX user postgres and then login as postgres or use sudo -u postgres psql database-name for accessing the database (and psql should not ask for a password).
If you cannot or do not want to create the UNIX user, like if you just want to connect to your database for ad hoc queries, forcing a socket connection using psql --host=localhost --dbname=database-name --username=postgres (as pointed out by @meyerson answer) will solve your immediate problem.
But if you intend to force password authentication over Unix sockets instead of the peer method, try changing the following pg_hba.conf* line:
from