The other two sound like good reasons though
256 karma · joined January 30, 2017
The other two sound like good reasons though
So keep bazel for building and testing, but you can use earthly to run above it so every bazel build is in a fresh docker container. Example:
# All image deps
RUN apt install -y bazel gcc
build:
RUN bazel build
test:
FROM +build
RUN bazel test
release:
FROM +build
RUN bazel package
SAVE ARTIFACT AS LOCAL ./a.out a.out
SAVE IMAGE cool-app:latest
Basel build runs before the other two targets, but testing and packaging run in parallel. I do this for elixir projects -- npm install assets and mix deps.get in parallel, then copy both results into the final image.Edit: you can also inject arguments and the dependency graph will fork when needed. So for example, I can specify multiple version targets and earthly will only start running in parallel when it hits the build arg line (since subsequent run lines will have different build arguments)
$ echo [b]anana
[b]anana
$ touch banana
$ echo [b]anana
banana
You can escape the bracket and it will work: $ echo \[b]anana
[b]anana ~ $ alias true='echo alias'
~ $ true
alias
~ $ \true
~ $ 'true'
~ $ tr'u'e
~ $You should be able to change that by going to about:config, searching security.dialog_enable_delay, and double clicking. You could also try changing your preferences to tell Firefox to always save to some location
In Rust, you can configure Clippy to ban the usage of +-*/ and require explicit behavior of each calculation. For example, 10u8.checked_add(10) returns an Option<> (similar to Maybe in Haskell) so you can handle overflows. You can also use 1u8.saturating_sub(100) which will not allow wraparound but values will saturate at the max/min.
> In descriptive statistics, the mean may be confused with the median, mode or mid-range, as any of these may be called an "average" (more formally, a measure of central tendency). The mean of a set of observations is the arithmetic average of the values...
Here is the one reference to `toolkit.tabbox.switchByScrolling`: https://searchfox.org/mozilla-central/source/toolkit/content... You can see here that the second param to advanceSelectedTab is false
This param controls wrapping according to the definition: https://searchfox.org/mozilla-central/source/toolkit/content...
To confirm, we can see that the shift+tab/shift+ctrl+tab (which wraps) definition passes that param as true: https://searchfox.org/mozilla-central/source/toolkit/content...
Maybe you can file a bug to add another bool pref instead of hardcoding false?
I much prefer Firefox's awesome bar navigation when jumping around. % app will show all tabs with a title or URL containing app, * yo does the same for bookmarks containing yo, and ^ for history.
https://support.mozilla.org/en-US/kb/address-bar-keyboard-sh...
Edit: unfortunately, the % shortcut does not work with containers.
What do you mean? Busybox doesn't come with bash so it wouldn't work with bashisms.
It is archived though. The developed stopped working on it I believe
From their homepage:
> Examples include protein structure prediction (Rosetta@home), mapping the Milky Way galaxy (Milkyway@home), and tackling problems in public health and clean energy (World Community Grid).
I do see that the engine is open source though. I'll look into contributing: https://github.com/project-lovelace
It would be nice to support uploading a binary or solution (like project Euler) or a CSV of test cases next to solutions. Maybe I'll try compiling rust to c and upload the c file
echo Option -n invalid # OK
echo -n is not valid # Uh oh
printf '%s ' -n is not valid # Always okay
Generally you should use printf because of its consistency. For a simpler example of OP's: panic() { printf '%s\n' "${0}: ${*}"; exit 1; }
Is fine. I don't see the need to pass a format string to your function. Just call: panic "${download_url}: unable to download"The idea is to make an alias that runs git so that it treats your home directory as a git repository and you can directly commit them.
I would recommend bypassing that article's `config config --local status.showUntrackedFiles no` setting and setting a `~/.gitignore`. This way, git will never tinker with your home directory if you accidentally run the wrong command.
So the complete list of setup commands is:
# Only needs to be done the first time
cat >~/.gitignore<<'EOF'
*
!/.bashrc
!/.zshrc
EOF
# On subsequent runs
git clone --bare ssh://git/cfg.git "${HOME}/.cfg"
function config() {
git --git-dir="${HOME}/.cfg/" --work-tree="${HOME}" "${@}"
}
config checkout -- ~/.gitignore
config reset ~
config checkout -- ~
config submodule update --init --recursive --remote
One caveat is adding files in subdirectories (`~/. config/...`), but just requires changes in your gitignoreI took the diagram to just mean the whole guest, not just the kernel. In the qemu case, the guest has to interact with the bios and other emulated peripherals. Firecracker skips the whole bios layer so it does operate at a different layer
> Consultant in Johannesburg, South Africa
So probably closer to something that relates to him directly than posting because of the headline.