HNHacker News
TopNewBestAskShowJobs

abdusco

1,379 karma · joined January 7, 2019

submissionscomments
abdusco··on For your next side project, make a browser extension
Also Kiwi Browser. It's a Chromium fork with extension + adblock support, it even has a developer console.
abdusco··on Alpine.js
Can you use Preact to build on server-rendered HTML?
abdusco··on Debloating Windows 10 with one command and no internet scripts
It's verbose, sure, but it has great autocomplete support to go along with it.
abdusco··on Petrichor
Also Ludovico Einaudi, where I first encountered the word "petrichor". https://www.youtube.com/watch?v=-8xeStLTnhM
abdusco··on Apple blocks Coinbase Wallet
> almost unusable cursor movement if you let your battery drain to 0%, then plugged it back in and woke it from hibernate.

Argh. I hate it when this happens. It's infuriating that this hasn't been fixed yet.

abdusco··on Tales of the M1 GPU
GPU driver. So that one can install Windows on Apple Silicon and get accelerated graphics.
abdusco··on Ask HN: What do you like/dislike about Golang?
> pointers

Stick with pass-by-value and non-pointer receivers. Use pointers only if you have to.

abdusco··on Tesla.com/.gitignore
you forgot to

    from autopilot import *
abdusco··on Why some feces float and others sink
Add a poop knife in there too! https://www.reddit.com/r/MuseumOfReddit/comments/ke8skw/the_...
abdusco··on Go Style
If you're using JetBrains Goland, hit Ctrl+Space when you're writing the date layout in `time.Parse`, and it'll suggest you the regular YYYY, MM, dd etc. placeholders. When you pick one, it types in 2006, 01, 02 magic numbers. Here's a GIF:

https://imgur.com/FyCJZvh

That said, I hate this, all the ways it's opinionated and praised zealously for it as the best thing since sliced bread.

abdusco··on Two weeks of dealing with Google as a developer
What would happen if it looked like users could report, but you actually did nothing on the backend? Like how it works on Youtube?
abdusco··on Ask HN: What are your “scratch own itch” projects?
How does it save the data locally? Sqlite?
abdusco··on DontBuyDell.com
Oof. I was blaming myself for broking the hinge on mine (XPS 13 9350 (2016)). Didn't know this was so common.

I fixed mine by gluing it with epoxy, and filled another part that was broken off with epoxy paste (it has a consistency like playdough).

abdusco··on Nocodb: Turns Any MySQL, Postgres, SQLite into a Spreadsheet with REST APIs
Is there a similar project that's written in golang? I love datasette, and this looked promising when I tried it a couple months back. But I am spoiled by golang's staticly linked binaries. I'd love to have a library that I can embed and use it as a makeshift UI over a (sqlite) db
abdusco··on HDD Clicker – HDD Sound Simulator
open source alternative that i've been using: https://github.com/exelban/stats
abdusco··on 35M Hot Dogs: Benchmarking Caddy vs. Nginx
I use caddy mostly as a reverse proxy in front of an app. It's just one line in the caddy file:

    sub.domain.com {
      # transparent proxy + websocket support + letsencrypt TLS
      reverse_proxy 127.0.0.1:2345
    }
    
It's a fresh breath of air to have server with sensible defaults after dealing with apache and nginx (haproxy isn't much better in that regard).
abdusco··on The Next Chapter for Learning on YouTube
If only there was a way to save screen recordings in an efficient manner and host them on a fast server...
abdusco··on Quantifying GitHub Copilot’s impact on developer productivity and happiness
I liked using it. Though, most of the time, it was limited, in the sense that it could only offer completions using the code before the cursor as the context.

I found it most helpful in setting up boilerplate in when writing tests. It could offer testing some edge cases before I could think of them.

abdusco··on Google Pixel 6 still freezes when calling Emergency Services
any recommendation for an adblocker on ios that can block youtube ads?
abdusco··on Some ways to get better at debugging
> Read the stack trace / error message

Unless you're using golang. There's no stack trace by default. It's left as an exercise to to programmer to wrap and add context to errors.

abdusco··on Ask HN: Can I see your scripts?
Jetbrains IDEs have a plugin called `Shell Script` that provides code assistance and warnings. It's also compatible with shellcheck too.
abdusco··on Labstack/echo: High performance, minimalist Go web framework
> One of the greatest things about the standard library HTTP handlers is that you have an io.Writer that you can do whatever you want with.

> It looks like this library removes the flexibility of that and instead provides a worse API to the user.

You can get to the stdlib http.ResponseWriter and http.Request with Response() and Request() methods

abdusco··on Labstack/echo: High performance, minimalist Go web framework
I like that it provides a useful set of methods over raw stdlib types. If you need to integrate other libs, it's quite easy to wrap them and call ServeHTTP(w, r)
abdusco··on What does my 80 year old father do to stay healthy?
> pallbearer (n): a person helping to carry or officially escorting a coffin at a funeral.

TIL. As a non-native speaker, I've never seen it written and always heard it like "pole bearer", which kinda makes sense: horizontal poles under a coffin.

abdusco··on How to learn hard things in tech
Is there a similar resource for golang? One that goes over things you need when developing for a cloud native app, for example.

There's gobyexample.com, but it contains usually basic stuff to get started with the language.

abdusco··on Moving to zsh (2019)
I launch a bash shell, which inherits parent fish shell's env, then run the command and exit back to fish.
abdusco··on Mpv – A free, open source, and cross-platform media player
One of the best features of mpv that I miss sorely on other players, (notably PotPlayer[0] on Windows) is that it has first class scripting support.

You can write Lua/Javascript and bind it to a hotkey and run your own scripts, pass in current video, playback position, download subtitles etc.

[0]: I use mpv.net on Windows, too, but PotPlayer has better UX.

abdusco··on I deleted 78% of my Redis container and it still works
Maybe this would help in that regard: https://github.com/docker-slim/docker-slim
abdusco··on 4th Gen KDE Slimbook – Linux Ultrabook with an AMD Ryzen 7 5700U
Better get a battery replacement before you need it. It becomes really difficult to find replacement parts after a couple of years because the device is not "popular" and most sellers stop keeping stock.
abdusco··on 4th Gen KDE Slimbook – Linux Ultrabook with an AMD Ryzen 7 5700U
How is the serviceability? Can you swap ssd / battery?
← PreviousPage 6 of 13Next →