Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hellabites
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
1.
▲
by
hellabites
8y ago
Just because I like GNU parallel: parallel -kj1 'f="{}"; [[ -f "${f/data/A}" ]] || echo $f' ::: *_data.csv
2.
▲
by
hellabites
8y ago
This is better relative to the `sed` solution as it handles the `0000` case well.
3.
▲
by
hellabites
8y ago
I didn't realize Zsh (and Bash) was capable of removing zero padding in that way. Everybody has there own style, but I would prefer to print the missing file pattern and avoid loops. If you have GNU parallel installed (works in bash)
4.
▲
by
hellabites
8y ago
Just for fun some bash: for k in $(seq -f %04.f 1 501); do f="${k}_A.csv" ! [[ -f "$f" ]] && echo $f || : done or more succinctly, for k in {0001..0501}_A.csv; do ! [[
5.
▲
by
hellabites
8y ago
My cat perpetually wants to go outside.
6.
▲
by
hellabites
9y ago
Gold had intrinsic value before electronics, but for basically the same reason: it's immutable. The bitcoin blockchain is also immutable.
7.
▲
by
hellabites
9y ago
Github flavored markdown does do tables (in a manner that's almost equivalent to org): https://github.com/adam-p/markdown-here/wiki/Markdown-Cheats...
8.
▲
by
hellabites
10y ago
Your algorithm had a bit of a typo--you want to subtract (resp. add) to calculate the odd and even parts of a function. If you don't have a nearly symmetric span of x values, you may need to do extrapolation to obtain one, which may be
9.
▲
by
hellabites
10y ago
This can be rather difficult for general data where an explicit equation isn't obvious (even though it'll work quite often as pointed out by johncolanduoni below). [I think it's neat that] for sufficiently smooth and periodic
10.
▲
by
hellabites
10y ago
Two fluids with a density difference and a velocity gradient usually have a common force acting upon them, e.g. gravity, which enforces so-said interface. Perturbations to the average interface are restored via this force, and these perturb
11.
▲
by
hellabites
10y ago
Gravity is the result of an appropriately accelerating frame (i.e. the curvature of spacetime).
12.
▲
by
hellabites
10y ago
Name seems fine to me. From the first paragraph of the wiki-page: In fluid dynamics, gravity waves are waves generated in a fluid medium or at the interface between two media when the force of gravity or buoyancy tries to restore equilibriu
13.
▲
by
hellabites
10y ago
Disappointed by the lack of 1337.
14.
▲
by
hellabites
10y ago
They claim that it has an unlimited number of write cycles.
15.
▲
by
hellabites
12y ago
Don't know why this is being downvoted. It's important for scientists to use the correct, well-established terms when discussing their research. This is most true for formal publications. Velocity is a vector quantity--it describe
16.
▲
by
hellabites
12y ago
They use the term velocity to mean speed a lot :(.
17.
▲
by
hellabites
13y ago
No, but I am very thankful for your posted workaround.