Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)HA
hades @lemm.ee
Posts 1
Comments 83
OpenResume - Free Open-source Resume Builder and Parser
  • There are two ways to create a resume today. One option is to use a resume template, such as an office/google doc, and customize it according to your needs. The other option is to use a resume builder, an online tool that allows you to input your information and automatically generates a resume for you.

    Using a resume template requires manual formatting work, like copying and pasting text sections and adjusting spacing, which can be time-consuming and error-prone.

    Me just using LaTeX[1] with hundreds of templates[2] with no formatting problems for 18 years now...

    [1] https://en.wikipedia.org/wiki/LaTeX

    [2] https://www.overleaf.com/latex/templates/tagged/cv

  • Interactive TUI app with 100+ Python re(gex)? exercises
  • I would argue that having distinct match and search helps readability. The difference between match('((([0-9]+-[0-9]+)|([0-9]+))[,]?)+[^,]', s) and search('((([0-9]+-[0-9]+)|([0-9]+))[,]?)+[^,]', s) is clear without the need for me to parse the regular expression myself. It also helps code reuse. Consider that you have PHONE_NUMBER_REGEX defined somewhere. If you only had a method to "search" but not to "match", you would have to do something like search(f"\A{PHONE_NUMBER_REGEX}\Z", s), which is error-prone and less readable. Most likely you would end up having at least two sets of precompiled regex objects (i.e. PHONE_NUMBER_REGEX and PHONE_NUMBER_FULLMATCH_REGEX). It is also a fairly common practice in other languages' regex libraries (cf. [1,2]). Golang, which is usually very reserved in the number of ways to express the same thing, has 16 different matching methods[3].

    Regarding re.findall, I see what you mean, however I don't agree with your conclusions. I think it is a useful convenience method that improves readability in many cases. I've found these usages from my code, and I'm quite happy that this method was available[4]:

    digits = [digit_map[digit] for digit in re.findall("(?=(one|two|three|four|five|six|seven|eight|nine|[0-9]))", line)]
    [(minutes, seconds)] = re.findall(r"You have (?:(\d+)m )?(\d+)s left to wait", text)
    

    [1] https://docs.oracle.com/javase/7/docs/api/java/util/regex/Matcher.html

    [2] https://en.cppreference.com/w/cpp/regex

    [3] https://pkg.go.dev/regexp

    [4] https://github.com/search?q=repo%3Ahades%2Faoc23 findall&type=code

  • what debian 12.5 compatible music jukeboxes can handle 100k flac/orbis/ogg/m4a directories?
  • I'm not sure what a "music jukebox" is, and how it's different from a music player, but I would recommend to try mpd. It should work with your collection, although I don't have personal experience with collections of this size. Some clients might also not have been designed to work with such collections, so probably you'd have to try several.

  • Why we don't have 128-bit CPUs
  • Quantum encryption isn't something quantum computers can even do. It's not just transforming bits into other bits, it's about building entirely new security properties based on physical properties of matter.

    So, even if it is interesting for end users, they would need dedicated hardware anyway.

  • Why we don't have 128-bit CPUs
  • We used to drive bicycles when we were children. Then we started driving cars. Bicycles have two wheels, cars have four. Eight wheels seems to be the logical next step, why don't we drive eight-wheel vehicles?

  • How Python Compares Floats and Ints: When Equals Isn’t Really Equal
  • The "15 to 17" part is worded somewhat confusingly, but it's not wrong.

    The number of bits contained in a double is equivalent to ~15.95 decimal digits. If you want to store exactly a decimal number with a fixed number of significant digits, floor(15.95) = 15 digits is the most you can hope for. However, if you want to store exactly a double by writing it out as a decimal number, you need 17 digits.

  • As a long-time user hearing YouTube wants to play extra ads when I pause a video
  • I'm not necessarily disagreeing with you, but that estimate could have been wrong by a factor of 10 easily. The idea of an "average video" being 50MB, for example, is questionable: at typical bitrates of 1080p videos this would amount to about a minute-long video. I don't think that's an average video at all. It also doesn't account for many things, for example the cost of replicating new videos to the CDN.

    I also don't find the idea of YouTube not being profitable ridiculous or hilarious. YouTube definitely wasn't profitable before monetisation, and Google used to run it for prestige and data collection purposes at a financial loss. They clearly have been trying to make it more profitable, but whether or not they have crossed the break-even point in the past or are still hoping to cross it in the future is not as clear to me as it is to you.

  • Can you recommend a book for me please?
  • He did some short format writing, but The Martian was his first published novel, I think. He was a software engineer before that.

    Artemis follows the same pattern of a capable main protagonist solving problems, so it is not very different from the other books in terms of characters, but it is much better in character depth and development than The Martian.

  • Can you recommend a book for me please?
  • Just as a general advice that has only occurred to me recently: if you don't like a book, stop reading it and read another one. There are great books, and there are mediocre, and also you some might work better for you, and some worse. If you start with a book that you don't like, and power through it anyway, you might be reluctant to try another one.

    You've mentioned sci-fi, but didn't mention Robert Sheckley. If you haven't read any of his stories, drop everything and read Citizen in Space, for example.

    If you'd rather go for something more modern, fun, but also a little sad, try The Curious Incident of the Dog in the Night-Time by Mark Haddon.

    For something extremely entertaining, but also mysterious, try Everyone in My Family Has Killed Someone by Benjamin Stevenson.

    If you're into videogames and like drama, try Tomorrow, and Tomorrow, and Tomorrow by Gabrielle Zevin. That's the best book I've read in the past 5 years.

  • If you had to choose one programming language that you had to use for the rest of your life, what would it be?

    143