HNHacker News
TopNewBestAskShowJobs

akpa1

585 karma · joined March 26, 2021

Hi there!

Proprietor of https://www.akpain.net

submissionscomments
akpa1··on TrunkVer
If you have to include a date, the best thing to do while keeping builds reproducible is to use the date of the commit you're building. I quite like this approach, especially since it's fairly simple and readily available to get hold of too. Eg:

    git show --no-patch --format=%ci HEAD
or %ct if you want a Unix timestamp.
akpa1··on Show HN: Remove-bg – open-source remove background using WebGPU
You're spot on - dmesg shows it's OOMing, and pretty fast too. Turns out that it happens even if I just open the web page, yet alone start trying to remove the background of an image, so I'd guess it's something to do with loading whatever model is being used.
akpa1··on Show HN: Remove-bg – open-source remove background using WebGPU
Please don't apologise for any inconvenience! It's a cool project and I'd love to see it working, I'm just sorry I can't give any positive feedback
akpa1··on Show HN: Remove-bg – open-source remove background using WebGPU
Very cool idea, but for me it completely doesn't work. I'll open an image, the entire computer (running Linux) will briefly freeze (including stopping Spotify in its tracks) and when it comes back, the only thing that's left is a message from Firefox telling the tab has crashed.
akpa1··on Airlines are running out of 4-digit flight numbers
Do you have a link to the PDF?
akpa1··on SimSig: Railway Signalling Simulations
It's super rewarding to do, but you do need actual training and often there are big waiting lists.
akpa1··on The tiny chip that powers Montreal subway tickets
National Railcard is the name that TfL uses to refer to all of those different types of card.

https://tfl.gov.uk/fares/free-and-discounted-travel/national...

akpa1··on The tiny chip that powers Montreal subway tickets
I'm looking forwards to the day they somehow manage to link a National Railcard to a contactless bank card.
akpa1··on Repairing my mug with Kintsugi
I suppose it comes down to if you're purely in it for utility or if you're trying to repair this thing of yours precisely because it's this thing of yours. I'd be far more inclined to go to the lengths discussed in the article for a precious mug that I've used for a decade than I would for a mug I'd had for two, even if I'd still want to repair both out of thriftiness. It's a labour of love.
akpa1··on Using my new Raspberry Pi to run an existing GitHub Action
I'm not sure if ARM is supported in the Docker image, but it is definitely supported by the Gitlab runner itself[0]. I do also build images for ARM systems using mine and it works completely flawlessly.

[0]: https://docs.gitlab.com/runner/install/

akpa1··on Using my new Raspberry Pi to run an existing GitHub Action
Having recently set up a Gitlab self-hosted runner, the process seems far, far simpler - it's a case of running a Docker image on your system (or installing a binary/package), registering your runner through Gitlab settings and you're finished.

It manages running things in other Docker containers for you (or on one of many other runner options) and it worked without any modifications to my workflows. Very pleased with it.

akpa1··on I accidentally made my link shortener into a malware honeypot
Amusingly, I thought this website was broken in a myriad of weird ways - I kept getting incomplete response errors and bad SSL errors.

As it turns out, my ISP was simply doing a rubbish job at blocking the site. After a few 10s of tries it eventually managed to redirect me to their warning page and prompted me to turn off settings in my account config. Thanks Virgin Media.

akpa1··on Git tips and tricks
The FOSDEM talk that goes along with this page was top tier - I really enjoyed it and learnt a lot, plus it was super engaging in person.
akpa1··on FAA orders grounding of more than 170 Boeing 737 Max 9s
No it's not. Crews are trained for decompression events and they've happened at higher altitudes than 26,000 feet before with no airframe loss at all (for example, the Southwest 737-700 where a fan blade ruptured the window happened at 33,000 feet). It may likely have been a fatal incident but definitely not likely a crash.
akpa1··on Alphabet selling Google Domains assets to Squarespace
I believe it's 60 days that you have to wait, not 6 months.
akpa1··on Alphabet selling Google Domains assets to Squarespace
No, I said the first point was unrelated to my decision to move my domain.
akpa1··on Alphabet selling Google Domains assets to Squarespace
I have unrelated issues with Cloudflare becuase they're a single entity that controls access to far too much of the internet, in my opinion.

In this case specifically, I moved the domain away since they want you to pay extra money to use custom DNS servers.

akpa1··on Alphabet selling Google Domains assets to Squarespace
I moved a domain away from Cloudflare a month or so ago, only to be faced with this. Just my luck.
akpa1··on SpaceTraders: A multiplayer game built on a free web API
The game does model supply and demand, though, so eventually the ore supply would become depleted and the markets will start offering lower prices for your mined material. So possibly not yes!
akpa1··on Give It the Craigslist Test
For Thingybase, unless I'm mistaken, your privacy policy and ToS have "if xyz, contact us" scattered all over them, but there is no email address anywhere to be found on the site to contact you at.

Edit: oh, and the delete profile button doesn't work.

akpa1··on Htmx Is the Future
Because HTMX is built around graceful fallbacks to standard features.

For example, you can apply HTMX to a standard anchor tag and be able to tell if a request has come from HTMX on the server to tailor the response. Then, if the client supports HTMX, it'll prevent the default action and swap the content out, otherwise it'd do exactly what an anchor normally does.

The same goes for form elements.

If you're just a little bit careful about how you use HTMX, it gracefully falls back to standard behaviour very easily.

akpa1··on Laying Out a Print Book with CSS
To chip in to on this, I've been using Affinity Photo for at least 5 years and I don't remember having many problems at all. That is to say, YMMV.
akpa1··on YouTube confirms that it has removed the “sort by oldest/newest” option
It does still work, though sometimes it can be a little hit-or-miss. I'd say it does what I want about 70% of the time.
akpa1··on Ask HN: What happened to vanilla HTML/CSS/JS development?
Good idea! I'll remember that for when Neon is suitable for people other than myself to use, thanks :)
akpa1··on Ask HN: What happened to vanilla HTML/CSS/JS development?
The aim is to be just as functionally similar to QuickTemplate, though not compatible.

I like the idea of QuickTemplate a lot but the I find it lacking and annoying to use in various ways. For example, I find its syntax is annoying to write, I don't like having to re-declare the types of my variables whenever I use them and it's error reporting is near useless.

Currently, Neon is just barely at MVP. I'm dogfooding it and adding to it as I find I need things.

akpa1··on Ask HN: What happened to vanilla HTML/CSS/JS development?
HTMX is incredible, I adore it. Typically, my stack for a web app is a Golang webserver using Fiber[0], HTMX, SCSS, my own (experimental) templating engine [1] and SQLite. It's a sufficiently hype-free stack, in my opinion, and one that's been fairly well battle tested (bar the templates) and is pretty simple. It's a joy to use!

[0]: https://github.com/gofiber/fiber

[1]: https://github.com/codemicro/go-neon

akpa1··on I tracked everything I read on the internet for a year
You could probably do the client-side stuff with Tampermonkey and a little bit of JavaScript and `setTimeout`.
akpa1··on I tracked everything I read on the internet for a year
Good idea! I'll be doing that, thanks :)
akpa1··on I tracked everything I read on the internet for a year
That's pretty neat!

The PDF idea is something a few people have mentioned - I might steal it, since I've been thinking of archiving that list for a little while now, too.

I can imagine that's ended up being a pretty large repository of PDFs, though!

akpa1··on I tracked everything I read on the internet for a year
You're welcome! You might find the bookmarklet code interesting to look at, it's here if you want to: https://gist.github.com/codemicro/f7d4d4b687c3ec2e7186ef7efe...
← PreviousPage 2 of 4Next →