HN user

ericvsmith

162 karma
Posts0
Comments63
View on HN
No posts found.

That’s actually the Bureau of Engraving and Printing, on 14th St. SW, which is indeed worth visiting. They print the paper bills (among other things). The U.S. Mint produces the coins. I think only the Philadelphia Mint still mints coins, but it’s also worth visiting.

I think you're saying that it takes fewer characters to define a namedtuple. If you're interested in less typing, There's also dataclasses.make_dataclass:

   >>> Point = dataclasses.make_dataclass("Point", ["x", "y", "z"])
   >>> Point(1, 2, 3)
   Point(x=1, y=2, z=3)

What you're seeing here is an optimization about integers, not about pass by value. CPython only does this for small integers:

  $ python -c "print(int('3') is int('3'))"
  True
  $ python -c "print(int('300') is int('300'))"
  False
Other implementations make different choices.
MQTT turns 25 2 years ago

I’ve worked at places where subverting firewall rules like this would get you fired. I now refer to such situations where I’m forced to twiddle my thumbs while no work gets done as “letting the process work”.

This is spelled out in the PEP (I’m the author). There isn’t one “portion” (a term defined in the PEP) to own that file. And it’s also not a requirement that all portions be installed in the same directory. I’m sorry you feel this was lazy, it was a lot of work spanning multiple attempts over multiple years.

I have not used chezmoi, thanks for the pointer. From the comparison chart it looks similar to yadm. It looks like go vs. bash is the biggest difference. It’s occasionally handy to debug yadm’s bash script, although it’s been years since I had to do so. I’ll take a deeper look.

For managing config files I use yadm https://yadm.io/, which I learned of on HN.

Among other great features, it lets me tailor settings per OS (Windows, Mac, Linux) and per client. And my settings are all in git, so they’re easy to save and copy around, and they’re all in one place, not dependent on each tool to know how to save their settings on some server.

More Itertools 2 years ago

That’s not actually true. While dataclasses to most of its inspiration from attrs, there are many features of attrs that were deliberately not implemented in dataclasses, just so it could “fit” in the stdlib.

Or maybe you mean the backport of dataclasses to 3.6 that is available on PyPI? That actually came after dataclasses was added to 3.7.

Source: I wrote dataclasses.

D’oh! Of course you’re correct. I skipped over “any”, and focused on “patch”. Sorry about that.

Atomic Tourism 3 years ago

I can highly recommend the Delta-01 Minuteman launch control facility in South Dakota, near Badlands National Park. Only 6 visitors at a time, so tickets are hard to come by. But it's an eerily awesome facility. Also the nearby visitor's center and missile silo are cool. But the launch control facility is the star of the show.

Also Trinity is worth visiting, although both a pain to get to and only open 2 days a year.

Getting a 30y and paying off in 15 is a smart move. For our most recent house, that's we did set out to do, until the last refi (maybe 5 years in to the 30y) when we got a 15y and paid it off in 10 more years.

Back in the 80s and 90s ARMs were very popular in the US because interest rates were high, and the expectation was that they wouldn't stay that way forever. The rate increases had a lifetime cap, so there was a knowable upper bound.

Edit to add: also, if you knew you were going to sell (and confident you could actually sell) within a few years, the lower initial rate of an ARM made sense.

I can't say enough good things about yadm. I found a yadm bug under Cygwin years ago, and the author had a patch for me within a day. I'll grant that Cygwin is an odd platform.

I use yadm to manage dotfiles across Windows (via Cygwin), macOS, and Linux.

almost zero regen-braking

Are you sure this is related to the cold, and not just that the batteries were fully charged so that regen had nowhere to put the energy?

[Edited to add]: I say this because I see this in all types of weather: I live on the top of a hill, and if the car is fully charge there will be no regenerative braking when heading down the hill.