10,505 karma · joined Feb 3, 2021 (5y ago) · 2,505 submissions
comment 5y ago · link · parent
For builds there are a few options to check out: https://github.com/jin/awesome-bazel#remote-caching-and-exec...
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
It will also be more challenging going forward to do these kinds of studies because of the ethics. It will be hard to ethically justify keeping an arm of a trial unvaccinated as a placebo in the face of a very serious and very deadly virus which we have known good vaccines. There are some interesting things like crossover trials that apparently more of the current in research vaccines are trying.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
To provision stuff _inside_ your docker container from ansible I've found packer is the easiest way to do it: https://www.packer.io/docs/provisioners/ansible-local There was apparently a tool called ansible-bender that did something similar but was abandoned. Packer makes it easy to define a container that's provisioned with a local ansible playbook.
Ultimately though I think using ansible with containers is a code smell. If you provision in a container with ansible you have to pull in an entire Python install, and that blows up your container size fast. You can do multi-stage builds and carefully extract the stuff you need but it's a real pain. IMHO minimal shell scripts that run in very tightly defined and controlled environments of the dockerfile (i.e. they don't have to be super flexible or support any and every system, just this container) are the way to go.
comment 5y ago · link · parent
comment 5y ago · link · parent
But if you do like the idea of docker dev environemnts, check out a tool like batect: https://github.com/batect/batect It's somewhat like if docker-compose had make-like commands you could define. Your whole dev environment and workflow can be defined in a simple yaml config that anyone can use.
comment 5y ago · link · parent
Massive citation needed. When I bought the first iPod touch (at the time it was a gen 1 iPhone without the GSM modem) it was because it had a real web browser and not the BS 'mobile' browsers on my Windows Mobile smartphone. I could actually visit a store's website and find their hours, check if an item was in stock, etc. There wasn't even an app store back then... IIRC multitouch was only used for zooming into photos in the photos app.
comment 5y ago · link · parent
comment 5y ago · link · parent
My only real gripe with starlark is that the import story is still a bit ugly and unweildly--you have to specify every explicit global function or variable you use, there's no * imports yet. But it's kind of a minor issue in the grand scheme of things.
comment 5y ago · link · parent
Speed rarely matters for imperative user-facing tools. You're going to be waiting for a user to type and respond far, far longer than making some system calls to write to the shell.
Ink is a more interesting and maintained library to consider though: https://github.com/vadimdemedes/ink It lets you write react-like apps that output to the terminal instead of HTML.
comment 5y ago · link · parent