HNHacker News
TopNewBestAskShowJobs

stewartbutler

282 karma · joined July 14, 2009

submissionscomments
stewartbutler··on What’s Wrong with Bananas (2018)
Eh, they definitely aren't fit for major cultivation anymore, but you can still find them.

I picked up a basket (with a bunch of other varieties) from miamifruit.org a while back. They can't ship a lot of things to California, but if you live elsewhere in the lower 48 you should check them out.

stewartbutler··on YouTube CEO Susan Wojcicki is stepping down
As a stopgap, you can use a URL redirector:

    Redirect: https://www.youtube.com/shorts/*
    to: https://www.youtube.com/watch?v=$1
stewartbutler··on Utilities Want to Convert Coal Plants to Nuclear; Skeptics Abound
Note that each grid square is 1 mile by 1 mile. Long history of that, it is an interesting historical rabbit hole.

An interesting historical note is that across much of the west, each of those mile square sections was divided up into 16 pieces at 40-acres, which IIRC was the smallest unit of land you could purchase from the federal government.

You'll still find a lot of old homestead remnants across the west -- I used to climb through a few of them on a ranch I spent time at as a kid.

See:

- https://en.wikipedia.org/wiki/Section_(United_States_land_su...

- https://en.wikipedia.org/wiki/Public_Land_Survey_System

- https://en.wikipedia.org/wiki/Land_Ordinance_of_1785

stewartbutler··on Why “process substitution” is a late feature in Unix shells
Kinda-sorta related, you can pipe to a multivariable loop:

    paste <(printf "a\nb\nc\n") <(printf "1\n2\n3\n") | while 
read x y; do echo "$y -- $x"; done

Kinda silly for this example, but very useful in things like `kubectl` pipelines -- you can do something like this:

    kubectl get pods --all-namespaces | awk '{print $1 " " $2}' | grep "doesntexist" | while read x y; do kubectl delete pod $y --namespace $x --wait=false; done
This lets you list all pods in a cluster, grep a selection of them by name, and delete them in a batch, regardless of which namespace they are in, while shuffling the order of args into different flags.
stewartbutler··on Bash patterns I use weekly
I've always had trouble getting `for` loops to work predictably, so my common loop pattern is this:

    grep -l -r pattern /path/to/files | while read x; do echo $x; done
or the like.

This uses bash read to split the input line into words, then each word can be accessed in the loop with variable `$x`. Pipe friendly and doesn't use a subshell so no unexpected scoping issues. It also doesn't require futzing around with arrays or the like.

One place I do use bash for loops is when iterating over args, e.g. if you create a bash function:

    function my_func() {
        for arg; do
            echo $arg
        done
    }
This'll take a list of arguments and echo each on a separate line. Useful if you need a function that does some operation against a list of files, for example.

Also, bash expansions (https://www.gnu.org/software/bash/manual/html_node/Shell-Par...) can save you a ton of time for various common operations on variables.

stewartbutler··on Ivermectin for the Treatment of Covid-19: A Systematic Review and Meta-analysis
This idiocy is killing people. Stop peddling it. Get the vaccine.
stewartbutler··on Google suggest vi for Emacs and Emacs for vi
I'm fond of "Alex Trebek" including "Did you mean: Who is Alex Trebek." Nice homage.

https://www.google.com/search?q=alex+trebek

stewartbutler··on The Google Cemetery – A list of dead Google products and why they died
Glass is still around and under active development, it just isn't a consumer product. It is in use by several enterprises, mostly factories and warehouses.

My read on it is that it was never intended to be a consumer project as soon as they launched it (which explains the lack of polish), but the high level of interest when it was announced convinced them to launch it as one just in case they had stumbled on the next big thing. When that failed to materialize, they dropped it back to a research and enterprise project as was initially intended.

stewartbutler··on Darpa invests $100M in a silicon compiler
If you have access to a laser cutter you can make a pretty decent solder stencil by folding some clear package tape (so all adhesive is on the inside) and having it cut out the hole pattern. Lay it down on the PCB, squeegee some solder paste over it like you would a real solder mask, and carefully peel the tape up.

Been a few years, but IIRC a labmate of mine got a few units of .5mm highish ball count to work using that process and a toaster oven, but it is a bitch to test.

Would maybe do for a hobby project assuming you have access the equipment (e.g. a hackerspace or something) and are willing to drop a buttload of time into trying to get it to work, but if you are working for someone it is probably more cost effective to save the manhours and get it done by someone with the right equipment.

stewartbutler··on Intel's First 10nm Cannon Lake CPU Confirmed
> Interestingly, there doesn't appear to be evidence that the CPU includes an integrated graphics processor - something that's listed in detail on the product page of the Coffee Lake-based Core i3-8109U. This could simply be down to the fact that Intel does not wish to reveal details of the onboard graphics of Cannon Lake CPUs at this time, or it's decided to cut the feature out of certain product ranges in favor of using separate graphics cards.

I wonder if they may have cut onboard graphics to increase yield by lowering the bar for a QA pass in the lower product ranges. If they are having process difficulties at 10nm, that would allow them to push some of what would normally be rejected to market.

stewartbutler··on Self-driving Uber car kills Arizona woman crossing street
Interesting question here: did Uber have authorization to operate automated in AZ? If not, and they had a human operator behind the wheel as a backup, is that human liable for manslaughter charges for not being in control of the vehicle?
stewartbutler··on Many medical devices on the market have undergone no clinical testing
And yet another: Dimethyl Sulfoxide can be used to (cheaply) treat a ton of different things, but has been blocked by the FDA for use in all but a very small number of cases (bladder pain syndrome). Amongst other things, is extremely good at reducing swelling without the use of steroids, and is often used in gel form to treat inflammation.

If you want to use it, though, you have to leave the US or have a veterinarian as a friend. An acquaintance of mine gets DMSO gel used on horses to treat inflammation from a vet and uses it to reduce swelling in his back (has had multiple major spinal surgeries).

The common conspiracy theory is that DMSO is too cheap and treats too broad a category of ailments, so drug companies are lobbying against it with the FDA any time it comes up, as it would jeopardize the revenue streams from steroidal anti-inflammatory drugs, painkillers, etc.

https://en.wikipedia.org/wiki/Dimethyl_sulfoxide#Medicine http://www.dmso.org/articles/information/muir.htm

stewartbutler··on A Student Loan Nightmare: The Teacher in the Wrong Payment Plan
"No child left behind" and similar initiatives that lead to perverted incentives that the teachers bear the brunt of. Also low pay and no respect.
stewartbutler··on Robocalls have triumphed over the Do Not Call list
If you use a standard sip port without filtering you will get a load of autocalls from people just portscanning and calling open IP addresses, probably looking to gain access to unsecured pbx boxes. I just have a single sip phone, no pbx, so they come across as calls. Nonstandard port fixes that. Probably not the most secure solution though, intended to be temporary.
stewartbutler··on Common shell script mistakes (2008)
So many edge cases. I prefer to just use perl if I am doing anything more complicated than making a wrapper for some other executable. Harder to screw up, easier to test, same expressiveness, better portability (works with all shells and with windows), plus you get regular expressions for free.

Python is a good alternative as well.

stewartbutler··on Robocalls have triumphed over the Do Not Call list
nomorobo + nonstandard sip port + voip.ms has weporked pretty well here.
stewartbutler··on ZFS lands in Debian contrib
You can build it, but it is limited to the smallest device in the vdev, so the array will appear to only have three devices of 64m available. Though you can replace all smaller disks and grow it.
stewartbutler··on ZFS lands in Debian contrib
ZFS does support different sized drives, and you can add disks to a pool easily.

It does not support different sized drives in a raidz (equivalent to an mdadm array), as far as I know, but you can mix raidz and singular drives in a pool, though that is a bit silly. It also does not support adding disks to a raidz, which is equivalent to growing a raid5 or raid6 array, which is admittedly a pain in the ass.

stewartbutler··on Seattle vigilante reuniting stolen bikes with their owners
I have the feeling that someone trying this in Atlanta would just get themselves shot. Hopefully nobody around here is inspired by this.
stewartbutler··on MacBook gets a Skylake speed boost, 8GB of memory, longer battery life
Being unable to stand looking at your computer for extended periods of time will probably do wonders for combating code bloat.
stewartbutler··on Fish Shell Design Principles
If I were using a 'real' shell, I'd probably be using Fish. However, since I pretty much live in emacs, I spent the time to configure eshell to do what I need and it works well enough, and gives me the ability to manipulate the results as text. There are a few funny edge cases and quirks to get used to, but they are few enough that it is a viable option for my purposes.
stewartbutler··on Ask HN: Are there real-world examples of moral failures of software engineers?
I would add Zynga, FanDuel, Draft Kings.

All three prey on people with addictive personality.

stewartbutler··on Google Glass is coming back
I don't think they intended to release explorer edition for consumer use at all; however, when the news hit and everyone was trying to get their hands on one they ended up trying to pivot a beta development platform into a consumer product and failed. Seems to me they have simply rolled back to their initial release plan.

It is also worth noting that Google is known to sink money into projects where the main payoff is data for another project; see Google 411, which was used as training data for their voice recognition.

stewartbutler··on Marines’ LS3 robotic mule is too loud for real-world combat
There is no technological equivalent for a dog's nose in reliability, form factor, and cost. That, and a Boston Dynamics type robot probably costs several orders of magnitude more than training a dog/trainer pair, and is much less flexible.

Amusing note: at least for ATF, all arson/explosives detection dogs are dropouts from the seeing eye dog training programs (too energetic). Source: relative was involved with the program.

stewartbutler··on In Bel-Air, someone is using 1,300 gallons of water per hour
Atlanta's situation is actually pretty interesting. Most of the water loss is caused by bad infrastructure (leaky pipes and sewers), and they have massively pissed off pretty much everyone in three states.

The city was/is using up a very significant portion of the Chattahoochee and its reserves and tributaries, causing severe issues downstream for Florida, Georgia and Alabama communities. They also injected sewage into the water, causing silting issues. Additionally, faced with shortages, the GA state legislature proposed to run a water pipeline from the other side of the state, essentially stealing more water from other GA sources further east (Savannah area, iirc).

Last I was paying attention, GA state legislature had filed a request to take more water out of the Chattahoochee, over objections from Alabama. Went to a Federal judge, who pointed out that Atlanta's use of water from Lake Lenier was actually illegal, in excess of the original authorizations put in place when it was constructed by the Army Corps of Engineers. Oops.

https://en.m.wikipedia.org/wiki/Lake_Lanier

Go look up the "Tri-state water wars", pretty crazy stuff.

stewartbutler··on Satellite Internet gets a fresh look, cash infusion
Grace Hopper explains it best: https://www.youtube.com/watch?v=JEpsKnWZrJ8

"Between here and the satellite there is a very... large... number... of nanoseconds."

stewartbutler··on TSA Master Keys
Workaround: https://www.schneier.com/blog/archives/2006/09/expensive_cam...
stewartbutler··on Who Will Suffer Most from Climate Change? (Hint: Not You)
Having not read the source material referenced by OP, the biggest concerns I have (that are not commonly addressed) are as follows:

1: increased ocean acidity due to CO2 dissolving into water. A lot of the smaller lifeforms (coral, others) rely on calcium carbonate for exoskeletons, even small changes in PH can greatly reduce their capability to extract such from the water. There will also be many more unexpected implications, so the total impact on ocean biomes is unknown.

2: global warming means more energy in the weather systems, which means greater fluctuations and more chaotic weather, not necessarily just a small increase in average temperature. Think bigger hurricanes, more severe floods and droughts, higher winds, etc.

stewartbutler··on Bcachefs – A general purpose COW filesystem
Ok, so it is a combination of L2ARC and ZIL (zfs intent log), then?

L2ARC improves read operations, ZIL improves writes.

stewartbutler··on Bcachefs – A general purpose COW filesystem
Unless he is talking about scrubbing and self-healing? In which case, the same thing still applies -- all releases do this as far as I know.

See: https://pthree.org/2012/12/11/zfs-administration-part-vi-scr...

Page 1 of 3Next →