HNHacker News
TopNewBestAskShowJobs

spurgu

2,799 karma · joined March 9, 2012

submissionscomments
spurgu··on Pedal Me bans staff riders from wearing helmets for safety reasons
Alternatively the control could be given to insurance companies. For example you get a lower deductible in an accident if you're wearing a seatbelt (or bike helmet or whatever) compared to if you're not. Insurance companies actually calculate the risks/costs, as opposed to governments cramming something resembling moral judgement (or just blindly perceived risk reduction) as law.
spurgu··on QCAD – Open Source CAD System
Yeah, I love that practically everything has a keyboard shortcut. Makes working with it a breeze.
spurgu··on The quest for fusion energy
There's an interesting analogy about how we've been depleting our huge supplies of fossil fuels at an alarming rate, causing the population to spike out of control, with little planning ahead for when they eventually run out (the effects of which we've already started to see the effects of):

"On the far end of the overshoot spectrum are situations in which a community of living things receives a surplus of energy through some accidental event that happens only once. Imagine how the lives of field mice would be transformed if a truck full of grain overturned on the nearby freeway and spilled its load in their meadow. The mice suddenly have more energy than they can use and their population soars far beyond the meadow’s carrying capacity. As the number of mice in the meadow grows, though, the rate at which the grain is consumed also rises, until the grain begins to run short. At this point nothing the mice can do will spare them from dieoff; most of the mice will starve, and the survivors’ struggle to keep themselves fed may damage the meadow badly enough to decrease its carrying capacity over the long term. Years later, the meadow may still not support as many mice as it did the day before the truck overturned."

From John Michael Greer's book The Ecotechnic Future

spurgu··on Paginating Requests in APIs (2020)
Thanks, that's good to know (will have to perform some tests at some point). I do have a few tables (namely logs) that will have millions of rows eventually over time. But there I've also been planning on rotating them whenever that becomes a problem, so I'm not overly concerned. Or experiment with OP's solution.
spurgu··on The quest for fusion energy
We could also look at simpler ways of living. Simply not using that much energy. Politically that's a suicide move (to promote), but it can happen on a grassroots level. Housing policy for example would need to change. People should be able to build simple houses using natural methods without having to comply with complex building codes.

Upgrading living standards for poor people is (or should/would be) easy: https://www.youtube.com/watch?v=VtbjQ51NvDg

A bigger problem is making people less career-driven and settle for a simpler life, small-scale farming, permaculture etc. Photosynthesis is free and abundant!

But we're locked into this mental trap of constant growth. We just assume that the only way should be up - more energy, more people, more stuff...

spurgu··on Reasons to ditch Chrome and use Firefox
Does anyone here know how to change the keyboard shortcut to focus the URL bar on Firefox?

I'd like to map it to Cmd+D instead of Cmd+L since it's (Alt+D) been in my muscle memory since forever. It's the main reason that keeps me from switching. With Chrome I simply assign it to the menu entry File -> Open Location ... but Firefox doesn't have a menu entry for focusing the URL bar (or at least didn't have last time I checked[0]).

[0] Checked again, v100 still doesn't have a menu entry

spurgu··on Paginating Requests in APIs (2020)
This is what I do, since counts should cause minimal overhead (I've never had to deal with huge databases). But neither does the N+1 records trick which OP describes, that's clever. :)
spurgu··on Moving a macOS window by clicking anywhere on it
I've used Easy Move+Resize[0] for this and configured it to Alt+drag windows (like most Linux window managers).

[0] https://github.com/dmarcotte/easy-move-resize

spurgu··on Twitter set to accept Musk's $43B offer – sources
You can also use Tweetdeck.
spurgu··on Twitter set to accept Musk's $43B offer – sources
> the world's largest car company

Nitpick: The most valued car company. Many larger companies in terms of employees and car output. Everything else sounds right though!

spurgu··on Impressions from a first-time Mac user
> There is no other way to say this: window management is painful on macOS.

Out-of-the-box yes.

> If you open two of the same window (e.g., two Chrome windows), they appear as one in the dock. However, when you press Command (⌘)+Tab, this will only show one entry for Chrome, even though you have two windows of Chrome open.

For app switching I've set the "Move focus to next window" keyboard shortcut to Option+Tab (don't remember what the default is). This works like Cmd+Tab, except it cycles between windows of the active application (i.e. Chrome windows in the above example). It's really quick and smooth since you just move your thumb between Cmd and Option.

There is a slight difference between using Cmd+Tab though - you don't get a preview of the window you're about to switch to, so it's sometimes a bit clumsy if you have many windows open. To solve this I have three-finger swipe down set to display all windows of the focused app (called App Exposé). Don't remember whether this is default behavior. But with this you actually see all windows, which makes it even better than Cmd+Tab in this regard (which only shows icons).

The above two in combination work very well for me and window management is a breeze.

For window snapping I use BetterTouchTool[0] (paid app), but agree that if you need to get corporate IT's blessing to install apps then it's a hassle. Another app I couldn't live without: Alfred[1]. Just its clipboard history management and snippets make it awesome, but it can do so much more, like Workflows which I use a lot for various things). And iTerm2[2] is great.

So in conclusion I agree with OP - if I was forced to use a vanilla installation then I'd prefer most Linux DE's, but being able to install a couple of apps I simply love MacOS and would have a really tough time transitioning back to Linux (been a MacOS user now for almost 7 years, before that 10 years of Linux).

[0] https://folivora.ai/

[1] https://www.alfredapp.com/

[2] https://iterm2.com/

spurgu··on Show HN: Redditle.com – For those of us who add 'Reddit' to every Google search
Which subreddit the result is found on is inconsistent - it's in some titles, in others not. So it doesn't really stand out and oftentimes that's an important piece of information.

The subreddit could be listed on its own line. Perhaps something like:

<date> <subreddit> <post|comment> <points> <username>

Not sure about the usefulness of the username, but it could be helpful to distinguish whether it's a post or a comment.

spurgu··on In defense of simple architectures
I have literal dozens of these kinds (Node+Express under PM2) of small apps running around everywhere in production (almost 8 years = almost a decade ;). Using SQLite (when you need an actual DB) makes things a lot easier in this regard as well.

I've tried doing some thing in Python (my initial programming love) over the years but I keep going insane because every time I'm forced to read up on the state of ecosystem (choosing versions and package managers and whatnot) and it drives me insane. I just install Node+Express and can get to work immediately (and finish quickly).

spurgu··on Noam Chomsky: “We’re approaching the most dangerous point in human history”
What? Unless I give it to you in written, my word accounts for nothing?
spurgu··on Elon Musk to join Twitter’s board of directors
I actually started reading it a couple of days ago. :)
spurgu··on Elon Musk to join Twitter’s board of directors
Giving people a voice sure seems like a clear downside of this whole internet thing. Or does it simply mean that humanity is fucking destructive (while individual humans generally are beautiful)?
spurgu··on Elon Musk to join Twitter’s board of directors
Law of diminishing returns.

We're talking about a simple platform of people relaying updates of 140 characters with a comment section and a feed algorithm to aggregate the content to everyone with a focus on prolonging everyone's engagement time while also following guidelines on what's "politically correct". There's only so much you can do, unless you venture out into manipulating public discourse, or striving to become a nation-state (or at least its propaganda machinery) or taking over the world (with all the imaginable internet services provided by you - email, storage, encyclopedias, news etc).

At some point you should stop and think about your core business. And at some point you should realize that the law of diminishing returns applies. And at some point you should realize that it's fine to provide a stable service to a stable amount of users with a stable amount of features. Not that much R&D required.

Or, rather, this is how our society would have to work in order to stay healthy. Living on a planet with finite resources while using them up like they're not is a sure-fire way to doom. We already know enough about farming for example to make it sustainable. We just don't know how to do it in a way where we don't cut down production considerably and starving a lot of people in the process. Not a nice topic to bring up i your election speech.

But it's nice to ride the train since things seemingly move forward thanks to rising inflation (which is due to the problem in the first place) and the price of your product can go up.

Oh, I might've misunderstood you as well.

/remindme 20 years

spurgu··on Elon Musk to join Twitter’s board of directors
Love it! Thanks for sharing, I just discovered Edward Abbey.

> Abbey also left instructions on what to do with his remains: Abbey wanted his body transported in the bed of a pickup truck and wished to be buried as soon as possible. He did not want to be embalmed or placed in a coffin. Instead, he preferred to be placed inside of an old sleeping bag and requested that his friends disregard all state laws concerning burial. "I want my body to help fertilize the growth of a cactus or cliff rose or sagebrush or tree," said the message. For his funeral, Abbey stated, "No formal speeches desired, though the deceased will not interfere if someone feels the urge. But keep it all simple and brief." He requested gunfire and bagpipe music, a cheerful and raucous wake, "[a]nd a flood of beer and booze! Lots of singing, dancing, talking, hollering, laughing, and lovemaking."

Putting Desert Solitaire on my reading list.

spurgu··on Kerouac and Buddhism
> Over the 21 years since then, I’ve asked many American Buddhist monks and professors of Buddhist studies how they were first introduced to Buddhism, and several gave me the same answer: Jack Kerouac.

Kerouac lead me too to multiple years of meditation practice. And I learned about On the Road in turn from Jim Morrison.

> Both books are about freedom. Both depict a way of living free from 20-year mortgages, nine-to-five jobs, conventional relationships, and family responsibilities. They present the liberating idea that you can do whatever you want with your life—what you want to do, not just what you are supposed to do.

This has been somewhat of a guiding principle for me I now realize. After reading On the Road in my late teens I might've spent maybe 25% of my years since doing a 9-5. Other things have influenced me as well obviously, but Kerouac has been a strong one, I've read all of his books I could get a hold of.

spurgu··on “This shouldn’t happen”: Inside the virus-hunting nonprofit EcoHealth Alliance
He might mean the extremely selective reporting not being good reporting?
spurgu··on Alcohol-related deaths spiked during the pandemic, a study shows
It's been working wonders for me (for over two years now) and so many other people, both in pain relief as well as alcohol withdrawal.

That article doesn't really say much. What's the relevant part of it that leads you to believe it's "snake oil"?

Edit: Plus if you're in the situation described in the OP you don't really worry about "dry mouth" or "dizziness" or other minor side effects (I've personally only experienced nausea when combined with nicotine).

spurgu··on Alcohol-related deaths spiked during the pandemic, a study shows
Tell him to try kratom if he hasn't.
spurgu··on Alcohol-related deaths spiked during the pandemic, a study shows
I'd say it's mainly that those who have been heavily advocating all of the lockdown measures throughout the pandemic have behaved more or less like there were no side effects and we should do them for the greater good (basically virtue signaling). The other isle has advocated that maybe we shouldn't cause that kind of turmoil in society just to spare a few years of lifespan of the elderly (which is a harsh take but doesn't make it untrue).

And just thinking about stupid concepts like outdoor masking makes me want to crack open a bottle of vodka.

spurgu··on Why Big Nations Lose Small Wars (Paper, 1975) [pdf]
The US as well (massively) if this leads to a shift off the petrodollar.
spurgu··on Finland starts much-delayed nuclear plant, brings respite to power market
Just because we haven't discovered giant planet-eating space aliens yet doesn't mean they don't exist.
spurgu··on EU to mandate public salary information for all job postings [pdf]
Agreed. I'd be happy to see a range, any range, rather than vagueness.
spurgu··on Poll: Do you prefer the office or work from home?
> I agree I think the best of both worlds would be some sort of schedule, maybe ~1-ish day a week on average.

Yeah this would be fine/nice as well.

If nothing else there's at least been a strong step towards the potential of WFH with all of this, even though it hasn't lead to ideal outcomes.

spurgu··on Poll: Do you prefer the office or work from home?
> It's a motivational thing for me.

I've always loved working from home (and was doing it for almost a year before the pandemic started), I'm quite self-driven, but I do recognize that it can be difficult to get back into the groove once you've been out of it for a while - meeting colleagues in person would help with that aspect.

Ideally, if my colleagues weren't some 3000 km away, I wouldn't mind going to the office once a week or something.

spurgu··on Delta CEO wants U.S. to put unruly passengers on 'no-fly' list
Yeah that's a good point.
spurgu··on Delta CEO wants U.S. to put unruly passengers on 'no-fly' list
Here's my take on it:

1. People getting rowdy on planes recently is probably due to masking requirements

2. Airplanes have very efficient ventilation

3. Omicron is harmless to most people

4. Most people are vaccinated and protected against serious disease (Delta being the threat here, which has almost disappeared completely)

Simply remove the mask mandates and the problem will go away by itself (or at least return to normal).

← PreviousPage 11 of 34Next →