See the new site: https://postgresisenough.dev
| async function main() { | |
| var btn = document.getElementById("my-button"); | |
| // eventStream here is a native JS async iterator | |
| var eventStream = onEvent(btn)("click"); | |
| // this is the key thing: we can use a `for-await..of` loop | |
| // to consume the async-iterator | |
| for await (let evt of eventStream) { | |
| console.log("click!"); |
| # app deps | |
| sudo yum install git | |
| # erlang deps | |
| sudo yum groupinstall "Development Tools" | |
| sudo yum install ncurses-devel openssl-devel | |
| # erlang | |
| wget http://www.erlang.org/download/otp_src_19.2.tar.gz | |
| tar -zxvf otp_src_19.2.tar.gz |
$ ssh remote-host "epmd -names"
epmd: up and running on port 4369 with data:
name some_node at port 58769
Note the running on port for epmd itself and the port of the node you're interested in debugging. Reconnect to the remote host with these ports forwarded:
$ ssh -L 4369:localhost:4369 -L 58769:localhost:58769 remote-host
This is a post by Joel Spolsky. The original post is linked at the bottom.
This is such a common question here and elsewhere that I will attempt to write the world's most canonical answer to this question. Hopefully in the future when someone on answers.onstartups asks how to split up the ownership of their new company, you can simply point to this answer.
The most important principle: Fairness, and the perception of fairness, is much more valuable than owning a large stake. Almost everything that can go wrong in a startup will go wrong, and one of the biggest things that can go wrong is huge, angry, shouting matches between the founders as to who worked harder, who owns more, whose idea was it anyway, etc. That is why I would always rather split a new company 50-50 with a friend than insist on owning 60% because "it was my idea," or because "I was more experienced" or anything else. Why? Because if I split the company 60-40, the company is going to fail when we argue ourselves to death. And if you ju
| JSCLASS_PATH = 'build/min'; | |
| require('./' + JSCLASS_PATH + '/loader'); | |
| JS.require('JS.Deferrable'); | |
| Promise = new JS.Class({ | |
| include: JS.Deferrable, | |
| initialize: function(value) { | |
| if (value !== undefined) this.succeed(value); |