Readit News logoReadit News
dfinninger commented on “There are people who can see and others who cannot even look”   worldhistory.substack.com... · Posted by u/crescit_eundo
mlinhares · 10 months ago
It is incredibly surprising to be told to smile when taking official photos in the US. I just couldn't understand the first time it happened at the DMV, the person kept saying "smile" and i'm like, wtf, why would i smile, this is an official photo for my driver's license.
dfinninger · 10 months ago
That’s interesting. I’ve been told every time (so far) to keep a “neutral face”. I smiled once and the guy let out a heavy sigh and made me take the photo again (Redwood City, CA DMV).
dfinninger commented on Switching from Pyenv to Uv   bluesock.org/~willkg/blog... · Posted by u/harryvederci
tetha · a year ago
Not at a laptop to try this right now, but shouldn't this be possible with the shebang? Something along the lines of:

    #!/home/tetha/Tools/uv run

dfinninger · a year ago
Yes it is, I just converted my work scripts over this afternoon.

    #!/usr/bin/env uv run

dfinninger commented on Clouds vanish during a solar eclipse   sciencealert.com/clouds-v... · Posted by u/Brajeshwar
dylan604 · 2 years ago
In Texas, when you stand under a tree for shade, the tree just looks at you and says "what, you think it's any cooler over here?". Then, it just gives you that face your mom would give you when you've clearly done something foolish.
dfinninger · 2 years ago
The heat keeps going at night too. Waking up at 6:30am for a run and it’s 80F outside at 95% humidity… brutal.
dfinninger commented on JEP draft: String Templates (Final)   openjdk.org/jeps/8323333... · Posted by u/ludovicianul
bruce343434 · 2 years ago
I think having multiple processors is very smart exactly due to the outlined reason - making sure the interpolated result is safe for the system that will consume that string, be it a query language or json or something else.

f"" vs STR."" is really a quite minimal difference, and I think worth it. Having the "." operator here mean "interpolate RHS using LHS" seems a nice balance between terseness and explicitness.

As for "\{" being a divergent choice, frankly who cares.

dfinninger · 2 years ago
“\{“ reminds me of Swift’s “\(“. So I wouldn’t think it’s even that divergent. And Java devs are already used to backslashes peppering strings (me included).

https://developer.apple.com/documentation/swift/stringinterp...

dfinninger commented on Ask HN: What's the stack for your "home-cooked meal" apps?    · Posted by u/joshspankit
dfinninger · 2 years ago
Django+Postgres.

So far I haven’t needed anything fancy like Htmx, but interested in looking into it in the future.

I’ve tried playing with things like Elixir or Go, but I know Python and am instantly productive in it. If I want to do something to play with a new stack, I will. But I want something done, then Python is the fastest way for me to get something useable.

dfinninger commented on Some Useful Bash Aliases (2022)   chuck.is/alias/... · Posted by u/todsacerdoti
jerpint · 2 years ago
Don’t forget a bunch of useful git aliases

alias gcm=git commit -m

alias gaugcm = git add -u && gcm

dfinninger · 2 years ago
My favorite:

alias gfp=“git commit --amend --no-edit && git push --force-with-lease”

For those “whoops, for got to add $x file” moments or typos

dfinninger commented on Texas power plants have no responsibility to provide electricity in emergencies   kut.org/energy-environmen... · Posted by u/_dp9d
salawat · 2 years ago
The not interconnected with neighbors was an intentional decision driven by previous degradations of QoS way back in the 50's/60's era when they were intercinnected with the coastal grids.

It's downright shocking the difference in frequency between power losses I experienced on the regular in Texas vs. what my out of state family experience. I started keeping track of it a couple years ago. My family can have dozens of sporadic outages in a span of time with 100% uptime for me in TX. Smaller, less interconnected networks can be a godsend. Hell, it's a lesson that's immortalized in our interstate highway system.

...Then again, I suppose that there's the case to be made that more frequent outages keep your response teams sharp. There is a drop off among Operations people whereby knowledge tends to end up getting forgotten when too much time passes between completion of repeated periodic tasks.

dfinninger · 2 years ago
Which is interesting because, anecdotally, I’ve had the exact opposite experience. I’ve lived in Dallas and Austin for a collective 27 years. And the number of outages I’ve had bewilders friends and family that are out of state. Since I’ve moved out of Texas a few years ago I haven’t had a single power outage.

In my family while growing up we kept flashlights and candles handy, and us kids were (very lightly) drilled on where to find them when the power went out. And again, this was in the middle of the metro, not out in any rural parts.

dfinninger commented on datetime.utcnow() is now deprecated   blog.miguelgrinberg.com/p... · Posted by u/Brajeshwar
gymbeaux · 2 years ago
What most people don’t seem to realize is that there aren’t only language changes to contend with, but framework changes as well. This line is further blurred in language-framework pairs like C# and .NET, where (as a web dev) you’re pretty much always going to be using .NET if you’re using C#, whether you realize it or not. In these cases, framework revisions are what getcha, not language changes. Microsoft does a good job of maintaining backwards compatibility as C# the language changes, but framework upgrades (eg .NET Core 3.1 to .NET 5) will absolutely cause headache via runtime exceptions, etc.

So yeah Python ain’t that bad. I can’t speak to frameworks like Django, though.

dfinninger · 2 years ago
Django was actually fine. They had the same codebase running on Python 2 and three, so you could update whenever. Since Django includes so many batteries, I didn’t have any trouble porting that over.

However, early versions of Python 3 were slower than Python 2, and also some breaking changes were getting rolled back (e.g. PEP-414, which was targeting Python 3.3), which contributed to a lot of library authors dragging their feet in upgrading their support.

So, yes, it was libraries causing the most headaches, but there was a sense at the time of wondering when the upgrade would become “real”. Depreciating py2 took 11 years after the release of 3.0.

dfinninger commented on Toyota EV with a Manual Transmission   arstechnica.com/cars/2023... · Posted by u/ngcc_hk
lm28469 · 2 years ago
> I now drive a Bolt EUV with one pedal driving, meaning that if I lift up on the accelerator pedal, it starts regenerative braking.

So it behaves like an ICE cars ? Or am I missing something

dfinninger · 2 years ago
In a one-pedal-driving scenario the neutral position is when the gas pedal is slightly depressed.

By default, with no feet on pedals, the EV will decelerate. An ICE car will coast when nothing is depressed.

dfinninger commented on GnuCash Tutorial and Concepts Guide   gnucash.org/viewdoc.phtml... · Posted by u/thunderbong
Loic · 2 years ago
If some people have some recommendations, my wife is asking me for an app to basically input our family expenses. It should be fast, painless and very simple. Open the app, select the date (default today), select the category, the shop, amount and payment method. Done. Both of us should be able to input the data (so web based).

At the start, nothing more in the app. She would be happy to do the data analysis using her laptop.

I was thinking about a stupid CRUD app with an SQLite database, but I do not want to reinvent the wheel.

If some of you have ideas, we do not need banking integration.

dfinninger · 2 years ago
I highly recommend YNAB. It pulled my financial life together a decade ago. Synced apps on the phone and web. It also introduced me to envelope budgeting, which I found to be super useful.

If you want to do investment tracking, I don’t think it’s the best for that.

u/dfinninger

KarmaCake day481April 30, 2013View Original