Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jsjohnst
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
37 ms
·
421.
▲
by
jsjohnst
4y ago
`curl` is a command `curl | awk …` is a “shell one-liner” (albeit very basic) Throw in some $(()), ${var:##}, etc and it’s a great example of a “bash one-liner”
422.
▲
by
jsjohnst
4y ago
> We both disagree with you. What would that definition be? A “bash one-liner” as in common use is a chain of commands using any combination of pipes, subshells, variables, tests, loops, etc. The distinction between a “bash one-liner” an
423.
▲
by
jsjohnst
4y ago
I had decided to back away, so thank you for pointing that out! There’s not just Bash syntax in mine, but rather advanced Bash that many terminal users wouldn’t recognize, so I was confused wth GP was on about until you pointed out he was p
424.
▲
by
jsjohnst
4y ago
> The other "bash" one-liner references a bunch of tools that are not part of bash or even a POSIX environment. You do understand that there is a commonly accepted definition of a bash one-liner and that the one I shared fits t
425.
▲
by
jsjohnst
4y ago
> have pretty much always been air to ground That’s not been true for over 5 years, getting closer to a decade. I’d be happy to show wifi speed/GPS location pairs for United Airlines flights over the past decade, including many tran
426.
▲
by
jsjohnst
4y ago
To be very clear, I don’t use this, but I confirmed it does work and generates the same codes as the linked article. Requires Bash (3+) and doesn’t work as written in Zsh. https://gist.github.com/jsjohnst/95f34bc1f6ab46
427.
▲
by
jsjohnst
4y ago
It’s not “fluff”, it’s overhead. The real work there is done in about 4 lines (which could be compacted to two and still be somewhat readable). The rest as someone else already said, imports, helper functions (there’s no technical need for
428.
▲
by
jsjohnst
4y ago
I meant specifically chaining generic commands, not a purpose built tool.
429.
▲
by
jsjohnst
4y ago
It can be done as a bash one liner, so yeah, definitely doable in minimal lines of Python code. More than 50% of this file is “overhead” even.
430.
▲
by
jsjohnst
4y ago
> 10 Megabyte Corvus hard drive my friend was installing for a business would NEVER be filled... do you have any idea how much typing that is? I’ve seen a single PDF which is the internal developer guide to a certain ARM based processor
431.
▲
by
jsjohnst
4y ago
> continuous pressure wave pounding on my chest until the rocket was above the clouds You either have the worlds most sensitive chest or your memory of the experience is comparable to your memory of the date it occurred, a tad bit distor
432.
▲
by
jsjohnst
4y ago
Exactly, the last shuttle launch (STS-135) was 11 years ago last July. I know as I was there. :) STS-121 was 5 years before that. ;)
433.
▲
by
jsjohnst
4y ago
> Drinking another brand that tastes identical to Coke in blind tests is like tickling yourself. What other brand tastes like Coke? I guarantee I can blind taste identify most (all?) the common US brands of cola.
434.
▲
by
jsjohnst
4y ago
> Let's say I use the exact recipe for Coca Cola Coca Cola recipe isn’t copyrighted or trademarked. They went the third route “trade secret” and interestingly enough, the exact recipe they use is still secret, despite all the years
435.
▲
by
jsjohnst
4y ago
> watch syncs wifi networks with your phone All Apple devices which use the same iCloud account sync wifi network configurations. This has been a feature I think for around 10 years or more. (not to downplay the novelty of just now disco
436.
▲
by
jsjohnst
4y ago
I really wish this story included which half block area it was strongest.
437.
▲
by
jsjohnst
4y ago
> An on-line UPS like those used in datacenters or music studios is probably enough. Only if you don’t have mains power anywhere near the recording device. You don’t need to be plugged into mains power to have it be present in a recordin
438.
▲
by
jsjohnst
4y ago
I don’t see how this can be used to “authenticate” a video. If I’m already editing the video anyway, could you filter the original hum out and replace it with the correct frequency for the time you wanted to fake? There’s got to be a margin
439.
▲
by
jsjohnst
4y ago
> My phone feels like it may catch fire Sounds like a design defect of your phone. Might consider getting something which isn’t a fire safety hazard just by visiting a random website.
440.
▲
by
jsjohnst
4y ago
About 20 years ago they closed my account without explanation freezing several thousand in funds, so yeah, definitely not new. In the aftermath I learned I was very much not alone and it was a common thing.
441.
▲
by
jsjohnst
4y ago
Trains aren’t traveling at 400-700 mph ground speed. At best they might be doing 225mph. The rate you pass by towers is thus lower. Trains also have trees, hills, buildings, earth curvature, etc obstructing how many towers your phone can se
442.
▲
by
jsjohnst
4y ago
This really should be a top level comment, as it’s spot on imho.
443.
▲
by
jsjohnst
4y ago
> I’ve always felt that my eye handles high dynamic range scenes much better than cameras. Depending on what you mean by “eye handles”, yes, you have far more dynamic range than most cameras. The reason I caveat is that just like how mod
444.
▲
by
jsjohnst
4y ago
You sure of those numbers? While this [0] compares liquid ammonia to pressurized hydrogen rather than liquid hydrogen, I doubt the energy density would drop that much to give up the advantage of hydrogen over ammonia. [0] https:/&
445.
▲
by
jsjohnst
4y ago
> In a laptop form factor? Yes, in commercial form available at online retailers even. In fact, they’ve been available for many years dating back across multiple prior versions of the rPi.
446.
▲
by
jsjohnst
4y ago
Your examples are very illustrative, but I would argue that both phrases suffer from being too generic. I wish that there wasn’t such a push for “one word” CTAs. Examples of alternatives I’d advocate for depending on context: “Create an acc
447.
▲
by
jsjohnst
4y ago
> yet every toolset comes with Metric and SAE sets I’ve mostly only seen that really with jumbo cheap quality “Father’s Day gift” type tool sets. If you are buying good quality tools, SAE and Metric are most often sold separately in my e
448.
▲
by
jsjohnst
4y ago
> It's not like Americans don't occasionally need metric bolts. It’s becoming a lot more common than not in fact. Automobile industry for example is pretty heavy on using metric bolts / screws. It’s not a recent thing eith
449.
▲
by
jsjohnst
4y ago
> Two 3090s plus a 64 core Threadripper pro will get you beyond 1000 watts alone. Don’t forget power for the 512gb of ram (200 watts), the motherboard, the fans and hard drives and accessories Yes, PEAK instantaneous wattage could easi
450.
▲
by
jsjohnst
4y ago
> But as noted elsewhere, 15 A is a max for short periods, the practical limit for continuous use is more like 1200-1400 W which definitely seems like it might be plausible soon. Per NEC in the US, the wire used in a circuit has to be ra
More ›