I worked for free all weekend to make my team have an ok time on Monday probably an ok decision bc I didn't know what to do with myself
"While we see a future like publishingβs pastβa time when advertisers sponsor a publication because they value its brand and readersβthe advertising world we have today would rather chase eyeballs" https://www.linuxjournal.com/content/linux-journal-ceases-publication
Honest and insightful answer to the question of "why don't more open-source projects monetize?" https://news.ycombinator.com/item?id=14446871
Tomorrow is my late Grandfathers birthday. He died two years ago at the age of 89 only just having retired from teaching.
He was in the navy, he was a scientist. He couldn't afford medical school but worked at the national laboratories on nuclear energy, the space program, and a ton of other projects.
He planned out his death, he scheduled the cremation, he was lucid until the end. That's who he was.
I loved him a great deal.
Happy Birthday Grandpa!
You know like elm or redux
That should have read frp
How do people do DRP game of Life? I did it with a tick event and that seemed like I was missing the point.
Now I have to try out elm
@nolan couldn't help myself
Really hoping that proliferation of instances will lead, in time, to divergence in modeling (at the software level) the parameters of "community" and sociality.
GNU Social/Mastodon shares features with SMTP, IRC, Usenet (surprised not to have seen that mentioned by others), with BBS networks before that, and even such antiquated systems as postal newspaper exchanges. In this history, "social media" giants are distinct only in their resort to centralization.
The organizing model is unchanged.
Hey! If you want to install Mastodon on ubuntu trusty, my ansible roles are now a bit more templatized & complete. They are also in a github repo for easy cloning & editing:
https://github.com/ceejbot/mastodon-ansible
PRs welcome, of course.
reposting here b/c people were wondering: the COMPLETE list of paths to get something into the federated timeline Show more
Some of my team will recognize some of code clips =p
Ok I think that's enough geeking out about promises.
One last example, this one just makes me happy. It sure aint the javascript I was writing months ago.
```js
const [ tags, posts ] = await Promise.join(
Promise.map(Factory.buildList('Tag', 5), tag => tag.save()),
Promise.map(Factory.buildList('Post', 10), post => post.save())
)
```
This uses `rosie` for factories, a custom object to give us the `save()` method that returns a promise and bluebirds join which is similar to `Promise.map` but it takes arguments.
Takes a scan stream from ioredis of all the keys for attribute objects. Gets them all and then keeps reading the stream. Gives you backpressure, and parallel operations. (bonus - use a redis multi object)
Here's a fun one from my favorite project.
```
import Redis from 'ioredis'
import { obj as through2 } from 'through2'
const redis = new Redis(process.env.REDISURL)
const stream = redis.scanStream({
match: 'object:*:attribute',
count: 500
})
const objects = stream.pipe(through2(async function (keys, _, callback) {
const results = await Promise.all(keys.map(key => redis.hgetall(key)))
results.map(result => this.push(result))
callback(null)
}))
```
Another favorite is the returning a promise when I'm done with a stream.
```
async function() {
const file = fs.createReadStream()
// file.pipe(something)
return new Promise(resolve => {
file.on('close', resolve)
})
}
```
This will create a stream, pipe it somewhere and resolve the parent function.