Better HN
topnewbestaskshowjobs
Log inSign up

oftenwrong

15,025 karma · joined Apr 22, 2012 (14y ago) · 2,479 submissions

sfir6i2z@mailer.me
Submissions

comment 5y ago · link · parent

If you have minimal needs, you could use a simple ticket system like the Erlang ticket system Joe Armstrong described in 2014:

https://joearms.github.io/published/2014-06-25-minimal-viabl...

In use from 1985 to 2014 and maybe longer.

comment 5y ago · link · parent

Houses in the US are typically wired with 240v split phase, so nothing is stopping a mad lad from installing a 240v outlet in their kitchen, and running a kettle from it.

comment 5y ago · link · parent

Recursive glob:

   **
You can enable it on recent versions of bash with:

    shopt -s globstar

comment 5y ago · link · parent

Text-only version of this article: https://text.npr.org/944594193

605.

Understanding Systemd-Resolved, Split DNS, and VPN Configuration(blogs.gnome.org ↗)

3 points · by oftenwrong · 5y ago · discuss

comment 5y ago · link · parent

Java also has `var` since version 10 (2018).

comment 5y ago · link · parent

I will humbly suggest "DOBA": Duplication Over Bad Abstraction. Not nearly as good as "DRY", but it is fun to say.

I wonder how much of DRY's popularity is due to the catchy name. One can say "this needs to be DRYed up" (verb), or "this code is really DRY" (adjective), or "I appreciate the DRYness of this code" (noun). The opposite of DRY: "wet", of course. Being a homophone of an existing word that is both a noun and adjective, and that has an obvious antonym really lends itself to usage.

comment 5y ago · link · parent

Most code maintenance issues don't really appear until a relatively large amount of code and code evolution is involved. It's hard to include that in a blog post while keeping it digestible for the average reader.

In a small example, excessive duplication is not a problem, and excessive DRYness is not a problem.

Therefore, it makes some sense to me to leave out code, and just hope the reader has personal experience to draw relevant examples from.

comment 5y ago · link · parent

https://lobste.rs/ is an HN-like with a tag system and a feature for filtering tags.

https://lobste.rs/tags

comment 5y ago · link · parent

`latest` is applied to the most recent image built without an explicit tag (or one explicitly tagged as `latest`); it does not necessarily mean that image is the most "up to date" in any sense. For example, you could have a very old `latest` image, which was built before many explicitly tagged images.

Whoever came up with this heuristic probably did not really understand `latest`. To be fair, though, it is a fairly misleading and confusing "feature".

611.

Epiousios(en.wikipedia.org ↗)

1 points · by oftenwrong · 5y ago · discuss

comment 5y ago · link · parent

A great aspect of bspwm is that it is relatively unopinionated about how it is configured and controlled. You can easily invoke bspc from any language of your choosing. No need to be limited by an inexpressive configuration file. No need to write the configuration in one specific language that the developer favoured.

Another feature I appreciate is that it does not bind any keys. It is left up to the user to implement. I get to choose which keys are used, and what they do. I wish all programs I used allowed me to configure their key bindings like this.

bspwm is less of a window manager in the traditional sense, and more of a tool that can be used to build your own window manager.

comment 5y ago · link · parent

Too little abstraction is rarely a problem. It's easy to change something simple and straightforward. When a bunch of stuff depends on a bad abstraction, it's both hard to change, and hard to keep.

comment 5y ago · link · parent

It's inconceivable to me that one could write an article on this topic without mentioning Spring and Spring Boot. In many cases, it serves as a pre-built set of over-abstractions, and a great way to burden oneself by forcing all solutions to fit into an abstraction somebody else made. Like most major frameworks, it is undoubtedly convenient for throwing something together, but not conducive to making something well-crafted and maintainable. In my view, it is fine if you keep your code independent of it, but in my experience that rarely happens, and the code inevitably ends up as "a mess that works", and that can't easily be cleaned up.

615.

Police say civil asset forfeiture reduces crime – new study shows they’re wrong(propublica.org ↗)

352 points · by oftenwrong · 5y ago · 124 comments

comment 5y ago · link · parent

It is just the opposite of fantasy: Wearing warm clothing indoors is a technology that exists now and is a completely viable way to reduce energy needs. Clothing is more affordable now than at any other point in history. Heating all buildings to a comfortable temperature at all times in a sustainable way is, as you said, a hard problem - one for which there is currently no solution. Switching the world over to sustainable energy sources for heating and cooling is not simpler than convincing people to adjust their thermostats and wardrobe.

comment 5y ago · link · parent

Many of the popular conclusions drawn from the NASA study are not actually supported by the study:

https://www.gardenmyths.com/garden-myth-born-plants-dont-pur...

comment 5y ago · link · parent

Foolishness in the opposite direction applies in a warm climate. It is not unusual for cooling systems to be applied excessively, forcing occupants to compensate by wearing warmer clothing.

In some places, there are laws against excessive heating and cooling.

comment 5y ago · link · parent

As I suspected before clicking, that article cites that explanation as being given by steam heating system expert Dan Holohan. He has a talk up on YouTube that I came across a few years ago. It is interesting on a number of levels, and I recommend giving it a watch: https://www.youtube.com/watch?v=TQB0KK2rxcw

comment 5y ago · link · parent

I recall reading a blog post in which a heat lamp was used to warm the hands while working at a desk.

I like to work outdoors even when it is fairly cold, and cold hands are the main limitation. It is difficult to type with gloves.

comment 5y ago · link · parent

And if you would like to read the solar-powered version of this article: https://solar.lowtechmagazine.com/2011/02/body-insulation-th...

622.

Insulation: First the body, then the home (2011)(lowtechmagazine.com ↗)

261 points · by oftenwrong · 5y ago · 305 comments

comment 5y ago · link · parent

Ontology is overrated: https://web.archive.org/web/20191117162526/http://shirky.com...

comment 5y ago · link · parent

I use vim-sleuth to auto-detect indentation settings.

https://github.com/tpope/vim-sleuth

comment 5y ago · link · parent

In some cases, even the police do not know what sharrows indicate, as demonstrated in this unfortunate killing:

https://www.massbike.org/16seconds

>The police report confuses the presence of a shared road marking (or sharrow) as a bike lane.

comment 5y ago · link · parent

Yes, I use it! I am the only person I know that does.

comment 5y ago · link · parent

Exactly. The idea that a web page should choose the font, font size, and colours is backwards. The user should be the one to choose these values. I want every page to use my favourite reading font in a size that is comfortable to me, in colours that I find easy to read. No web designer knows better than I when it comes to my own vision.

comment 5y ago · link · parent

The idea that they are conducting in-depth investigations into individual cases of unexplained transmission shows an impressive level of commitment to contact tracing and research.

>Contact tracers turned to the country’s Epidemic Investigation Support System, a digital platform introduced in South Korea amid the pandemic that allows investigators to access cellphone location information and credit card data of infected individuals in as little as 10 minutes.

(privacy nightmare, but at least it is being used for good)

>CCTV recordings showed the two never spoke, or touched any surfaces in common — door handles, cups or cutlery. From the sway of a light fixture, he could tell the air conditioning unit in the ceiling was on at the time.

>Lee and his team re-created the conditions in the restaurant — researchers sat at tables as stand-ins — and measured the airflow. The high school student and a third diner who was infected had been sitting directly along the flow of air from an air conditioner; other diners who had their back to the airflow were not infected. Through genome sequencing, the team confirmed the three patients’ virus genomic types matched.

629.

I Did the Math on My Town’s Cul-de-Sacs. Here's What I Found(strongtowns.org ↗)

72 points · by oftenwrong · 5y ago · 85 comments

1
202122
83