News for hackers. Stuff that matters.

oxplot

Holy wow — mine's 7 years old and I thought it was crazy.

I still have the pacman logs from the first package installed. It has traveled to three different machines, three filesystems (ext4, btrfs, xfs), two boot loaders (grub, efi) and two desktop envs (gnome2, mate+compiz).

I really can't imagine using anything else. AUR along with simplicity of the package source format and cleanliness of everything in general, makes this the perfect OS for a pragmalist like myself.

One avenue which doesn't require a lot of people/companies to participate, is carbon capture. Not only can it reduce the net emission, but it can even reverse the trend. One example is SpaceX which has plans to produce some of its methane fuel for starship by carbon capture using solar.
Re:Lessons Learnt Moving a GTK Application from Go to Ada on Friday March 11, 2022 @09:50AM (#30640577)
My Archlinux installer [1] uses fyne and I found it to be quite easy and straightforward to use. My use case is quite trivial though so not sure how that scales.

[1]: https://github.com/oxplot/raspberrypi-archlinux-installer

Re:Lessons Learnt Moving a GTK Application from Go to Ada on Friday March 11, 2022 @09:46AM (#30640527)
There seems to be a POC that attempts to load dynamically linked libraries on linux (and elsewhere on windows) without CGO: https://github.com/golang/go/issues/18296#issuecomment-46847...
Re:Ask HN: Any weird tips for weight loss? on Thursday March 10, 2022 @04:39AM (#30625049)
I have read countless counter points to that (and some supporting it). Doesn't look that clear cut.
Re:Ask HN: Any weird tips for weight loss? on Thursday March 10, 2022 @04:03AM (#30624792)
Weird ha? Get stressed:

- Get a full on 80 hr/week job

- Swim in cold water

- Do HIIT - e.g. run like a lion is chasing you for a minute every day

- Watch horror films

- Drink coffee

- Have sex

Re:A new speed milestone for Chrome on Tuesday March 08, 2022 @05:49AM (#30598536)
If you improve CPU performance, you can compress memory with the leftover cycles. This is what I do on my RPi which allows me to run quite a few memory hungry processes at the cost of some CPU (which is fine, because those processes are mostly idle).
Hmm, no mention of GNU Parallel — that's my go-to replacement for xargs. It has numerous options to treat input as blocks of text, lines, etc and can even run in a distributed fashion over SSH.
Re:Ask HN: How did you overcome perfectionism? on Monday March 07, 2022 @09:43PM (#30595860)
Deadlines: perfectionism isn't an issue in itself, spending eternity achieving it, is. Pick a milestone (e.g. MVP of feature X) and a due date. Once you hit that milestone promptly, pick another and repeat.

On a different note, perfectionism can be a symptom of procrastination. It requires much less will power to fine tune an existing thing, than it is to start something new or work through early steps. If this is the case, then apply the usual anti-procrastination techniques: vow to put X minutes a day into a project in order to make it a habit and get the ball rolling; identify obstacles that are creating friction; re-think the design and simplify; breakdown the task to make it less intimidating; etc.

Re:My lizard brain is no match for infinite scroll on Sunday March 06, 2022 @08:34PM (#30583196)
The key to curb bad habits is to create friction, and doing so well in advance. When you're exhausted and you're out of will, you're not gonna take much action to avoid quick pleasures. As it pertains to websites and app, here are a bunch of techniques for creating friction:

- iOS and Android both have screen time features to show you a banner when you've used an app for longer than a set time. This is a good soft block to start with.

- Auto logout after a set time. Having to login is one extra step that may deter you from accessing a website. This can be done with browser extensions.

- Auto delete apps after a set time (this is possible with MDMs). Again, having to install an app would be a big hurdle next time you want to sit back and scroll through clips.

- Throttle speed of a website - this one's a little brittle as you can quickly switch to a faster network, usually your mobile connection.

> Here’s a paraphrased conversation I’m having way to often, costing me way too much time, keeping me from doing things that are way more important.

Then don't have it! Set things up such that only after someone pays, you get notified.

Re:$1 Microcontrollers (2017) on Sunday March 06, 2022 @12:06PM (#30578974)
> If you deploy a hobby project in your life, you must maintain it. Forever.

Perhaps your definition of hobby is different to mine, but hobby projects are exactly the kind you can abandon in a heartbeat. No long term customers, no guarantees, no obligations. In fact, we hear about countless HW and SW projects being abandoned left and right, right here on HN on regular basis.

> For that time cost, I want to work on a product that could go into production and pay for its own maintenance.

Hobby and high volume production aren't necessarily mutually exclusive.

I wanted to build a custom board to use USB-C power in my projects. Except the cost of a dozen boards assembled was quite high. So I made a thousand or so to subsidize the cost of development and production for myself. The chip I used went out stock (global chip shortage related) but until it did, my "hobby" project paid for itself and actually made me a small profit as well.

Re:$1 Microcontrollers (2017) on Sunday March 06, 2022 @11:53AM (#30578856)
Be careful spending time writing software/firmware for chips that may disappear tomorrow. Cost of the chip itself isn't everything, in fact it's one of the least important things if you're looking at long term cost. This is especially relevant in the current chip shortage climate which has made this point quite salient.

Whether it's a hobby project or a high volume production project, you don't want hundreds of hours of your time spent developing for it to go down the drain. In case of a hobby project, it probably means the one or two units you made are all that you're ever going to make. In case of a product you built in high volumes, it means a large gap in sales and lost revenue while you re-do the firmware for a new chip.

Re:Building a web app with no framework on Saturday March 05, 2022 @08:27PM (#30574022)
Every time I decide to build a site, frameworks just get in my way and piss me off with their shortsighted design decisions.

Just finished putting https://subzo.com.au up with pure Golang, vanilla jacascript and CSS. Works well with SEO, it’s fast, easy to debug and understand and doesn’t require me to touch node!

Re:Go’s major versioning sucks – From a fanboy on Saturday March 05, 2022 @04:53AM (#30566065)
> That only works if v2 of the library is crazy enough to keep all of the v1 apis around as well. Otherwise, when I switch version the old import path stops working.

Gradual upgrade, as in you can update a single file to use the next major version. Not sure what you’re on about.

> hundreds of files which needlessly got changed

If you have hundreds of files and upgrading to a new major version all at once, you’re creating the exact risk that Go is trying to mitigate.

Re:Go’s major versioning sucks – From a fanboy on Friday March 04, 2022 @11:52PM (#30564386)
Fan boy? maybe. Informed? doesn't look like it:

> this is redundant because the local go.mod file already has the semantic version of all dependencies tracked

The whole point of having full version path in each file is to allow gradual upgrade to a new major version/a completely different package. Listen to Russ Cox go over this many times.

> Users of packages aren’t alerted about new major versions

Fair point.

> For the client to update, it’s not a simple path change in go.mod

It's a simple command:

gofmt -w -r '"github.com/logrusorgru/aurora" -> "github.com/logrusorgru/aurora/v3"' ./

> Maintainers should be able to increment the major version via Git tags.

Go is not tied to git or any other single SCM system. They can however be pragmatic about this.

> I get why these rules exist, and I think they are great for large open projects

You either don't, or you think that smaller/trivial project's requirements somehow take priority over larger ones. There are plenty of toy/application specific/scripting programming languages built to be used to write a few hundred lines or glue things together. Go specifically and repeatedly states that it's aimed at large, distributed and long term projects with lots of changes over time and many contributors. You know that going in. So you're criticizing (poorly I might add) the very notions that this language is built upon! This is like criticizing an industrial kitchen equipment for not having pretty colors and curvy shapes to match your home decor.

Re:The new White House memo on zero trust is a strong signal on Wednesday March 02, 2022 @11:58PM (#30537321)
Ah, I thought the name was familiar. They have a good zero trust reverse proxy that I deployed on k8s a few years back.

https://www.pomerium.com/guides/kubernetes.html

Re:Heat people, not spaces (2015) on Sunday February 27, 2022 @07:07AM (#30487590)
> Do you have a link to a fridge like that so I can imagine the concept better?

Large camping fridges are as close as I have seen, but I'm sure someone's thought of one for domestic use.

As for practicality in the kitchen, I can imagine a design where you have multiple medium sized fridge drawers. Once pulled out, you can open their top lid and access the content. This way, you don't have one deep container, but rather, multiple shallower containers. For efficiency, a single compressor can feed all of them.

EDIT: actually I've seen freezer drawers - you just need to dial the cooling down a bit.

Another idea: Vertically long rectangular compartments that can be pulled out individually. Essentially a whole bunch of vertical drawers of different sizes, with meshed walls to allow air to pass through them.

Another silly idea: a horizontally mounted ferris wheel

Re:Heat people, not spaces (2015) on Sunday February 27, 2022 @06:54AM (#30487451)
Fridges with top doors tend to lose lot less cool air when opened than the regular front door ones.
Re:Heat people, not spaces (2015) on Sunday February 27, 2022 @05:41AM (#30487062)
I suffer from hyperventilation syndrome and anything that brings my attention to my breathing (including wearing a mask) sets it off. I feel suffocated wearing a mask. I can get out of breath, have tachycardia, dizziness, chest pain if I wear it for a long time. And yet I wear my mask everywhere I'm asked to.

There is a big difference between feeling suffocated in your own home where no one else is involved vs. among people you could potentially be putting at risk.

Re:Heat people, not spaces (2015) on Sunday February 27, 2022 @04:25AM (#30486686)
> People wear a sweater all the time

I never do because I feel suffocated.

> see a doctor

Thanks for the unsolicited advice. I in fact have and have been told not to wear clothing that makes me feel suffocated.

> the burden of wearing a sweater is just incredible in some of these comments

Your lack of sympathy is equally incredible

Re:Heat people, not spaces (2015) on Saturday February 26, 2022 @10:37PM (#30485158)
Heat properly insulated spaces. I don’t want to walk around with piles of movement limiting and suffocating clothing inside my own living room. The problem is not what you heat up, it’s how well you insulate it from losing its heat. In Australia where I live, insulation is non-existent in the average home/apartment. Even simple things like tinted windows (for hot days), double pane windows and floating floor is missing. On the top of that, you have archaic HVAC systems that cool and heat from one vent and have useless thermostat feedback loops. A $30 hand rolled thermostats I put together for my fairly expensive apartment unit is infinitely superior to what came with the unit.
Re:Avoiding the top Nginx configuration mistakes on Wednesday February 23, 2022 @12:51AM (#30438098)
Traefik has been my go-to reverse proxy for quite a while now. The main advantages is its docker/k8s and native ACME support. You can configure services, config, routes, etc. via docker labels. When running under compose, this makes it very clean and convenient to maintain config. It also has plenty of useful middlewares and has a prometheus exporter for its internal stats.
Re:No Privacy: Cloning the AirTag on Tuesday February 22, 2022 @08:17AM (#30427520)
The good news is that when a practical fix is found to exclude non-Apple authorized tags from the network, it'll take a firmware update to deploy it, without any interventions.
Re:No Privacy: Cloning the AirTag on Tuesday February 22, 2022 @08:14AM (#30427495)
Re:Ask HN: Can we ban Twitter links, please? on Tuesday February 22, 2022 @06:26AM (#30426556)
> Twitter Threads are the absolute worst!

It really depends on what corner of Twitter you live in. I follow a dozen or so people and see nothing but high quality content.

Re:Ask HN: Can we ban Twitter links, please? on Tuesday February 22, 2022 @06:25AM (#30426547)
> some very clever and interesting people

Clever people value their time. When twitter reaches a large audience and has the lowest friction for sharing content, then that's what they use.

Re:Ask HN: Can we ban Twitter links, please? on Tuesday February 22, 2022 @06:22AM (#30426529)
First of all, absolutely not.

- Twitter hosts some of the highest quality content that get into the nitty gritty of some topic, exactly because it's so low friction to post to Twitter. Those of you saying "just put it on a blog" are either oblivious to how much more effort that is, or have already spent a lot of time making blogging low friction for your needs. That's not the rule however.

- There are countless posts with a mixed quality here from NY Times and other subscription based sites that show a pay wall when opened. Do you propose banning those too?

- If someone really cares to find out what's there to see, they'll sign up. If not, they move on and the post doesn't get any upvotes. Works itself out. As others have mentioned, script it out of your view if it really bothers you that much.

Older »