News for hackers. Stuff that matters.

mikeholler

Perhaps we should be trying to make the machines perform correctly, instead of saying that creating fabrications is OK for anyone or anything.
Re:Python's new t-strings on Monday April 21, 2025 @10:01AM (#43752117)
A potential concern is how close this looks to the pattern they're trying to override.

    db.execute(f"QUERY WHERE name = {name}")
versus

    db.execute(t"QUERY WHERE name = {name}")
Re:Kotlin Multiplatform Is Stable and Production-Ready on Thursday November 02, 2023 @09:47AM (#38113453)
Using it in production for an SDK. It's working very well!
Re:Wet-Bulb Temperature on Monday August 28, 2023 @11:29AM (#37295689)
Yes. Thank you. His book Aurora does a much better job at steering us towards action while still showing consequences of environmental disaster and I highly recommend it.
Re:Documentation as Code for Cloud Using PlantUML on Sunday July 30, 2023 @04:37PM (#36935695)
One of the coolest things about plantuml is the generated PNG actually contains the source code for the image as metadata. If someone gives you an image, they don't also need to send you the source because you can extract it using the plantuml CLI.
It's not a brave face. The science tells us that we're on a better and improving track. It's not without hope. A decade ago we thought we were on track for 6C by the end of the century.

That said, it's still going to be worse than we all want it to be. Like many things, the truth lies in the middle and all we can do is push hard on the margins.

Re:Maintain a Clean Architecture in Python with Dependency Rules on Thursday December 15, 2022 @10:01AM (#34000534)
Thanks, that looks like exactly what I was looking for.
Re:Maintain a Clean Architecture in Python with Dependency Rules on Thursday December 15, 2022 @09:36AM (#34000092)
Is there anything similar to this for Java/Kotlin/Gradle?
Re:The dictatorship of the articulate on Thursday September 01, 2022 @11:26AM (#32677750)
You're absolutely right. The "move fast and break things" position in society is just not good. It's fine if you're doing rapid prototyping on a product that can be easily discarded cheaply and at low cost to everyone involved. It's another thing entirely to move fast and break things without considering the people who will be affected, and asking what they think about it, especially for things that are not easily or cheaply reverted.
Re:Thinking with pen and paper on Friday August 05, 2022 @10:52AM (#32356982)
I started bullet journaling with pen and paper and it has changed my life. Intentionality -- that's exactly right. When I write I feel intentional.

I've also dove into the world of nice paper and fountain pens. I've always had hand cramps when writing, whether using a cheap Bic or a Pilot G7. With fountain pens, that's all gone, and writing is effortless. You can get started with this cheaply by getting a platinum preppy fine or extra-fine pen ($4), and a bottle of ink ($10). You want a fine or extra-fine nib, because anything else will feather and bleed on cheap paper, but fine or extra-fine works just fine on cheap paper.

Your pen can be converted into an "eye dropper" pen with a little bit of silicon grease and a small rubber gasket, and you'll rarely need to refill it.

Re:What makes collapse inevitable and imminent on Wednesday May 04, 2022 @11:17AM (#31261680)
This is how I started getting into it, not really believing in my actions but doing something because I felt it was principally, morally right. Through CCL and their science-based approach and reliance on external studies, I've learned that we are on a trend that is far better than most people think. Sure, it's not good. But it's not devastating.

Renewable energy is on the rise like never before. Electric cars are being pushed harder and harder each year. More of our elective representatives support climate initiatives each year. The conservative climate caucus is a brand new thing that is happening. Other countries are introducing carbon pricing with border taxes that will hurt the US economically unless we introduce our own.

It can be hard to do work and not expect to see payoff, but if you take the long view instead of the short view, statistics about support and momentum are actually on our side.

Re:What makes collapse inevitable and imminent on Wednesday May 04, 2022 @10:53AM (#31261315)
This "we are doomed" attitude is unhelpful towards positive change. It forces us towards selfishness and away from empathy and mutual-support. In some ways, it is a self-fulfilling perception of the world. It is an excuse for personal inaction.

I was deeply depressed with this attitude a year ago, and I wouldn't wish it on anyone. What helped, was helping. Specifically volunteering and volunteerism. Realizing that the world doesn't revolve around my experience, and that I can make a positive affect on people's lives.

If you're worried about climate change (like I was, like I am), join a cause to address it like Citizens' Climate Lobby, the Environmental Voter Project, or something local. If you're worried about food insecurity, help at a food bank, at your local urban farming project. If you do this, you'll quickly realize that we are not alone in our feelings, and through that togetherness we are powerful.

Re:I Spent Hundreds of Hours Working in VR on Wednesday January 19, 2022 @09:45PM (#30003779)
I know what I'm missing, and have experienced it. I see this as an environmentally friendly way to do something I love literally whenever I want, and it's wayyyyy cheaper to boot. And the racing quality (competition) is better than any real-world thing too. The skill ranges are so tight in online races, especially iRacing.

The feelings you had with nausea is common for people, and it's possible to get over it if you are methodical. Lots of people I knew couldn't do more than 1 minute when they started, and slowly worked up to it. Trick is to stop the moment your stomach feels unsettled, and try it every day. Don't push though it.

Re:I Spent Hundreds of Hours Working in VR on Wednesday January 19, 2022 @09:43PM (#30003766)
Assetto Corsa's complete edition often goes on sales for ~$5 and can be modded like crazy, and also has reasonable controller support. Wheel and pedals will always be better though.
Re:I Spent Hundreds of Hours Working in VR on Wednesday January 19, 2022 @09:48AM (#29994236)
One of my biggest hobbies is sim racing, and I can tell you that putting on the VR headset is akin to putting on a helmet and setting off on the track. The sweatiness and discomfort is nothing more than a real driver would experience, and turning a wheel feels real without hand tracking.

What you're experiencing with disorientation does tend to go away for most people if they're careful about it. And for me, I literally can't remember the last time I've felt disoriented in VR. Even considering that I've had shunts that have caused me to roll 20 times or more.

I agree, there is waste involved (as with anything), but as a comparison to racing it's much more friendly for the world than burning fuel. I'm in full agreement that Facebook on our faces sounds terrible, and concerns me, but VR can be a very good thing.

Re:Cost of Attrition on Friday January 14, 2022 @02:06PM (#29938772)
Most CPU fans are little.
Re:Convert Markdown to a Mind Map on Friday April 10, 2020 @09:36AM (#22832834)
This was my first thought as well. I use graphviz quite a lot for these sorts of diagrams, and I really like it. Their site, reference materials, etc. need updating though.
Re:Applying Mypy to real-world projects on Tuesday February 11, 2020 @04:29PM (#22303082)
This is a good read. I did not know about typing.cast and was just putting # type: ignore on things.

So far, we've had a pretty positive experience with mypy and it's helped prevent a few bugs. Do be prepared to find weird edges you can cut yourself on along the way, but all-in-all I think it's a positive value add.

Re:Browsh for text-based internet browsing (2018) on Tuesday November 12, 2019 @12:30PM (#21515991)
My favorite use for links (I use links not lynx, but they're basically the same tools from an efficiency standpoint) is on an airplane where I have terrible internet connection.

Browsh is not killing _true_ CLI-based text-only browsers any time soon. It's an interesting piece of work, but it's incredibly arrogant to tout it as a lynx/links killer.

Re:The Showdown at the Window Seat on Monday September 23, 2019 @09:31AM (#21048731)
When I read any article like this I always go back to Louis CK's "Everything's Amazing and Nobody's Happy" bit. Like, c'mon people, can't you just let someone happily experience the miracle of flight while you watch your downloaded Netflix shows? Is that so hard?

If you're trying to sleep and the light bothers you, bring something to cover your eyes with. If you can't sleep with something on your face, maybe practice a bit before you fly.

I personally have a _very_ hard time sleeping on moving objects of any kind. I have to be at my wits' end of sleep deprivation to be able to do this. I would not think of suggesting a bus driver stop so I can get my winks -- it's _my_ problem, and I'll deal with it as such.

The sense of entitlement in this article is huge, and this is also one of the most first-world problems ever.

Almost every airline except the budget airlines (Frontier, Spirit, Southwest) make it possible to book a window seat at no extra cost. If it's this much of a problem to you, you should get a window seat yourself to grant yourself that control.

Wow, this is great. Thank you!
Yes! This is it. Thank you!
I've been telling friends and family this for years. It's by far my favorite thing to see in a new city in a region I've never been before. It's sort of like a modern anthropological exhibit in more ways than any other single city structure.

There was a photography coffee table book I loved, where the artist took pictures of an entire family around their table, which had all of the food they ate for a week on it.

I've since forgotten the name of the book (if anyone knows it please tell me -- search isn't turning up much), but grocery stores feel like as close as a regular tourist can get to those personal scenes.

I think this is a bikeshedding criticism more than something that requires serious concern. Asciidoctor simply supports more out-of-the-box and officially than reStructuredText. Preferring reStructuredText to Asciidoctor this way is like comparing Python to Ruby for syntax alone. Function is just as important.

In Asciidoctor, I can:

* Use GraphViz (and other diagram) docs to describe architectural components.

* Actually test my example code, using named, delineating comments in my test suite and including the code between those comments as an example in my file.

* Support for WARNING, NOTE, etc. callout "admonitions"

* Auto-numbered list blocks with "."

Some of these may be possible with reStructuredText, and can definitely be supported with third party plugins, but all of this is first-party and amazing.

Note: IntelliJ's Asciidoctor plugin is incredible and it live renders mathematical equations AND graphing support in addition to everything else.