HNHacker News
TopNewBestAskShowJobs

abdusco

1,379 karma · joined January 7, 2019

submissionscomments
abdusco··on Show HN: Curl2Url
Using location hash minimizes the risk of accidental activation by automated scanners if the URL is logged somehow, as it requires using a browser for JavaScript to read it.
abdusco··on Show HN: My AI writing assistant for Chinese
You just inspired me to build my own version of it for learning German. Thank you
abdusco··on Dada, an experimental new programming language
You don't have to do this, though. You can have an entrypoint.py that simply calls `main()` without that if. You don't even need to have modules if you want to, so you can write your functions and call them right after.
abdusco··on Heinz’s sustainable ketchup cap
> fly to climate conferences in their yachts. Weird world.

Yachts that fly. Weird world, indeed :)

abdusco··on An HTML Switch Control
> Attributes with spaces require quotes around the value.

It's meant to be read/parsed as `type="checkbox"`, `switch="true"`, `checked="true"`, `class="special"`. They're different attributes, not a long `type` attribute without quotes.

abdusco··on Netflix: Piracy is difficult to compete against and growing rapidly
> I hate it when the subtitle says: "glooming musinca playing"

Different strokes for different folks. As another non-native speaker, I personally like those descriptions, because they help me label a kind of music, or an emotional outburst.

It's like knowing how to describe a pain you have. You can't just say "it hurts" to a doctor, you need to be more specific ("it's a throbbing sensation with occasional sharp piercing pain")

abdusco··on Samsung extends Android and security updates to 7 years
Good luck finding genuine replacement battery after 3-4 years. All you'll find will be fake Chinese knock-offs.

Samsung should back their word by keeping a stock of replacement parts.

abdusco··on Asus Zenbook Duo 2024
Where can I find this monitor?

I have a 13-inch 2.5K monitor and its DPI is too for its size and macOS's fractional scaling doesn't work well. So I'm looking for better options.

abdusco··on Fixing annoying blue standby lights
I personally find it easier to sleep when my pillow is cool. Silk feels cool to touch. I'd image that it would help. Not sure if it being mulberry makes any difference.
abdusco··on We are going to start charging for dedicated IPv4 in January 1st
If you're affected, you can replace dedicated IPv4 addresses with a shared one, or remove them:

    fly ips release $ip
    fly ips allocate-v4 --shared
    fly ips allocate-v6
abdusco··on Suggestions: A simple human-readable format for suggesting changes to text files
`<pre>` blocks show up too short for me. The culprit is the `overflow: auto` property. Here's a screenshot of the bug:

https://ibb.co/bdF6gMn

abdusco··on Termdbms – A TUI for viewing and editing database files
Can you navigate between tables using foreign keys?
abdusco··on Wine 9.0 RC1 – Run Windows Applications on Linux, BSD, Solaris and macOS
Does Directory Opus work on Wine? I think that's the only app that's keeping me on Windows. Nothing comes close to it in terms of the set of features when it comes to file management on Linux or MacOS.
abdusco··on Thieves return Android phone when they realize it's not an iPhone
https://xkcd.com/538/
abdusco··on After 151 years, Popular Science will no longer offer a magazine
Library Genesis has almost all releases available.
abdusco··on HandBrake 1.7.0 – The open source video transcoder
I prefer https://vidcoder.net/ on Windows, which is an alternative Handbrake UI
abdusco··on HandBrake 1.7.0 – The open source video transcoder
This calculation only works if you encode at constant bitrate.

I usually encode at constant quality. The output size heavily depends on the input video. So, I wrote a wrapper in python that parses the HandbrakeCLI output estimates the final size based on percent completed & the current output file size. Then I can stop early if I realize the file is gonna be huge / the output quality is so shitty that I have to bump the quality factor.

abdusco··on HandBrake 1.7.0 – The open source video transcoder
The only gripe that I have with HandbrakeCLI is that it cannot encode input piped into stdin. FFmpeg supports this and I was under the impression that handbrake uses FFmpeg under the hood.
abdusco··on Ask HN: What are your most used Chat GPT prompts
I'm using it to learn colloquial German expressions:

    prompt='You are to provide colloquial and idiomatic German translations of the given text. List 5 alternatives. Answer in markdown, unordered list'

    llm --model 4-turbo --system "$prompt" "$1"
abdusco··on Show HN: Generate pdf with gitbook or mdbook url
PDF probably some some feature that let's you embed machine-readable data (or the original file in its entirety)

Reminds me of how Adobe Illustrator files were also pdf files and you could view them as PDFs when you rename the extension to .pdf. (this might also apply to Photoshop .psd files)

abdusco··on Show HN: Generate pdf with gitbook or mdbook url
This is the way. Firefox may not have a CLI arg for saving PDFs, but they expose it through DevTools API and it can be automated with Playwright, Selenium (or plain http requests) etc
abdusco··on Win-Vind: Vim key binder for Windows
It has no access keys (underlined letters in menus) which forces you to use touchpad
abdusco··on Videos of Godotcon 2023
Looks really cool. Is there a way to download this for MacOS without having to go through Steam?
abdusco··on Git rebase, what can go wrong
> accidentally typed gcaa and amended someone else's commit after fixing a merge conflict

You could try reverting the first commit on the HEAD once you finish the rebase. This is of course assuming your branch and the last commit don't touch the same files.

abdusco··on Sponge cleans all teeth perfectly in just 15 seconds
:checks watch: Just a couple more minutes until Amazon clones it and sells it under Amazon Basics brand.
abdusco··on Sweden (Not Switzerland)
They're quite similar in Turkish as well: İsveç (Sweden) x İsviçre (Switzerland)
abdusco··on Things I've learned about building CLI tools in Python
Fingers crossed for vlang[0]. It's like golang with better types and more syntactic sugar. Feels like a proper upgrade from Python.

I really hope they succeed.

[0]: https://vlang.io/

abdusco··on Windows 11's default mail client will show ads starting 2024
> it's really there

Battery life, display scaling, sleep & wake up issues, trackpad gestures, sound output, GPU-accelerated video playback... Just to name a couple of problems I hope not to encounter every time I decide to give Linux another chance, but I still do.

To fix them, you need to run some arcane commands, edit some config files, compile your own kernel, ... I don't know. I'll have something that "just works". I'll keep using Linux headless on a server, where it really shines.

abdusco··on Embarrassingly Simple Text Watermarks
I like it when Excel parses and recreates a HTML table into a spreadsheet. You could possibly paste it as text and split to columns, but I doubt it would work as well.
abdusco··on How to rewrite classes using closures in JavaScript
Those are feet kgs. Like light years.
← PreviousPage 4 of 13Next →