News for hackers. Stuff that matters.

dradtke

Fundamentally, consumers and producers are at odds with each other in certain ways. For instance, it's best for customers if every shop was open 24x7, but absolutely horrible for the employees needed to make that happen.

Walmart is the extreme end of satisfying consumers above all else. Customers get a single, climate-controlled location to take care of nearly all their shopping, with good prices; but it comes at the expense of the employees, local community, and factory workers. Unfortunately, most customers don't know or care about those downsides because the experience is catered so heavily for them, and it's hard to get people to sacrifice material comfort for benefits that appear so abstract.

I think the idea is to improve the sustainability of a city by reducing people's need to travel by car, which uses energy, and to improve its livability by ensuring easy access to most (or all) of life's amenities.

That doesn't mean it should be impossible to travel beyond the 15-minute limit. Other forms of long-form transit, like trains and cars, will always have a place, but not everyone thinks that they should be required to simply live.

Re:US Housing Market Posts $2.3 Trillion Drop, Biggest Since 2008 on Wednesday February 22, 2023 @06:04PM (#34904329)
Unlikely, housing is only one factor, and I don't think it's the biggest one.
Declining birth rates as a whole are to blame for this, not just abortion. Plus, legalized abortion helped reduce crime rates. https://law.stanford.edu/publications/the-impact-of-legalize...
Re:Scaling Mastodon Is Impossible on Monday November 14, 2022 @10:50AM (#33595744)
True, but it's way easier to add centralization to a system that is decentralized by nature than it is to somehow decentralize something that is centralized by nature.
Re:sd – a cozy nest for your scripts on Friday September 16, 2022 @10:50AM (#32866801)
sd seems to provide a description for the command, too, which your solution wouldn't provide.
Re:Ask HN: Have You Left Kubernetes? on Monday August 01, 2022 @09:52AM (#32305938)
HCP might be what you want, but it doesn't support Nomad yet, and unfortunately it's not clear when it will. https://discuss.hashicorp.com/t/status-of-hcp-nomad/33374
To what? What level of consumption will make all these problems disappear? Going back to pre-industruial lifestyles is arguably worse for the average person than climate change is.
Re:Development Environments on Wednesday June 29, 2022 @11:28PM (#31928456)
Does an LSP-enabled editor count as an IDE then?
I love how the first bullet point is "Not made from a web browser." Great to see some non-Electron competition in the chatting space!
Re:Building GTK4 Applications Like Websites on Tuesday May 24, 2022 @08:41PM (#31499302)
Ah, yeah I didn't realize that Glade didn't work with GTK4. I'll update the post soon to clarify that, thanks for catching it!
Re:Ask HN: Share your personal site on Wednesday April 06, 2022 @06:11PM (#30938102)
Re:Dagger: a new way to build CI/CD pipelines on Thursday March 31, 2022 @02:23PM (#30870579)
One of the big points Bill Gates makes in his recent book on climate change is that once the genie is out of the bottle in terms of lifestyle, there's no going back. It's naive to expect people to willingly reduce their energy use enough to make an impact, and immoral when you consider all the people in poor villages that don't even have electricity yet.

The solution is, in a nutshell, to electrify everything, and push to make electricity clean and plentiful. Anything else is doomed to fail because we can't beat climate change by reducing our carbon footprint; we have to eliminate it entirely.

From that perspective, cloud energy usage is not a problem, since it's already electrified by nature. Now we just need to stop emitting carbon in order to make electricity (among other things).

Re:It's dire: Raspberry Pi availability tracker on Monday January 31, 2022 @04:49PM (#30154995)
Really? Every time I check (in the Chicago area), it's still out of stock. https://www.microcenter.com/product/609038/raspberry-pi-4-mo...
I'm curious about this, any links handy?
This post might be the most straightforward starting point: https://go.dev/blog/pipelines
Any discussion of COVID's origins now just makes me think of Jon Stewart on Colbert's show. https://www.youtube.com/watch?v=sSfejgwbDQ8
Re:Do-nothing scripting: the key to gradual automation (2019) on Tuesday November 02, 2021 @03:54PM (#29086575)
Braintree created a tool for doing something similar: https://medium.com/braintree-product-technology/https-medium...
Re:Plans for a new city in the American desert on Monday September 06, 2021 @12:37PM (#28435412)
Probably because America has only about a quarter of the population that India has? Also, the ideal of the American homestead or even suburban home is one that doesn't place a high value on sharing space or being close to your neighbors.
Looks pretty cool! I've recently become a fan of Overmind (https://github.com/DarthSim/overmind), which does something similar. I like the GUI of exo, though, so I may give it a shot sometime as well.
Re:OpenSUSE MicroOS on Sunday November 15, 2020 @05:16PM (#25105452)
Does anyone know any VPS providers that are planning to support this? I'm using Linode primarily because they are one of the few providers that provides openSUSE images, but they haven't said anything about supporting MicroOS yet.
Re:Serverless: slower and more expensive on Monday September 23, 2019 @10:02AM (#21049015)
Wasn't it originally called Function as a Service? That seems to be a better name for its intended use-case than serverless.
Re:Do-nothing scripting: the key to gradual automation on Monday July 22, 2019 @09:05AM (#20497595)
Anyone interested in this idea should check out https://github.com/braintree/runbook
I assume it's mostly to make it easier for people to test this out with existing stuff. Docker containers are the standard for taking a base image and adding stuff on top of it.
While working full-time? Not everyone can afford to take a week off of work just to interview at companies that may not necessarily extend you an offer.
Re:That XKCD on voting machine software security is wrong on Saturday August 11, 2018 @12:43PM (#17740386)
True, software works just dandy these days if you remove the "attack" factor, but software isn't deployed into an attack-free space the same way a plane flies through safe air.

As anyone who has ever logged into a Linux server to be greeted with the number of failed logins since the last successful one knows, _everything_ is under constant attack when it comes to digital technology. That's a large part of the problem, but the other part is that most people don't take security seriously enough. I would be more likely to trust a voting machine that isn't networked at all, with votes periodically extracted manually onto an encrypted USB drive or something, but good luck getting these manufacturers to not put wi-fi and bluetooth in everything.

I'll just end on this note: https://www.engadget.com/2017/10/10/defcon-event-reveals-eas...

Re:Ask HN: How to approach testing in Golang? on Monday December 11, 2017 @11:43AM (#15898173)
I like to use a pattern like this: given a resource defined as an interface:

    type Database interface {
        Users() ([]*User, error)
    }
I like to create an explicitly-mocked version of it like this:

    type MockDatabase struct {
        UsersStub func() ([]*User, error)
    }

    func (m MockDatabase) Users() ([]*User, error) {
        if m.UsersStub == nil {
            panic("MockDatabase.UsersStub is nil")
        }
        return (m.UsersStub)()
    }
Then you can create the resources you need, and define how they work, at the top of your test:

    func TestSomething(t *testing.T) {
        db := MockDatabase{
            UsersStub: func() ([]*User, error) {
                ...
            }
        }

        // use db here
    }
This works well as long as the things you're testing take all the resources they need as parameters.

Older »