HNHacker News
TopNewBestAskShowJobs

leoff

618 karma · joined January 16, 2022

meet.hn/city/de-Munich

Socials: - github.com/leoffx - linkedin.com/in/leoffx

---

submissionscomments
leoff··on Onboarding Antipatterns
your website is badly misconfigured. Going to the https://www.dcaulfield.com/onboarding-antipatterns/kudos page shows people your application source code
leoff··on Why do prime numbers make these spirals? (2019)
>all primes greater than 3 are of the form 6k+1 or 6k-1

what's the value in using this "formula"? We could also keep extending this rule, and say that all primes greater than 5 are of the form 30k±1, 30k±7, 30k±11, or 30k±13. Or go further by multiplying coefficient of X with the next primes

leoff··on Show HN: IngestAI – NoCode ChatGPT-bot creator from your knowledge base in Slack
Interesting product, but it has no pricing information anywhere.
leoff··on Data Classification: Does Python still have a need for class without dataclass?
For my general uses, pydantic and dataclasses are very similar, and I prefer pydantic over dataclass for the following reasons:

1. pydantic by default ignores extra fields - it's useful when I make an API call and want to extract and validate only certain fields from the response, while dataclasses throws errors if you don't specify all fields, and this behavior can't be disabled

2. pydantic is more customizable - I can overwrite the BaseModel if I have a custom need

3. pydantic seems to integrate better with python typing - I'm not sure how to explain this one, but it feels more natural and dynamic

I'm not sure what the performance concerns are, though

leoff··on A formula for the nth digit of 𝜋 and 𝜋^n
since this is Python, `nth_digit_of_pi(-1)` should give us the last number of Pi.
leoff··on HTML with Superpowers: An Introduction to Web Components
Kor UI is an open source UI library, if you want to check: https://kor-ui.com/introduction/welcome
leoff··on Investigation on the effect of oral breathing on cognitive activity (2021)
Anecdotal evidence, but I've noticed how Magnus Carlsen, the current best chess player, is often mouth breathing when very focused in a game. When I was a kid I often also caught myself mouth breathing when focused on a videogame, and I think this is a common tendency for people.

I wonder if this really has a negative impact, or rather a positive one.

leoff··on Pelé has died
Senna's death was sudden and a tragedy. Pelé's death is also sad, but it was foreseeable given his health condition.
leoff··on It's easier and faster to pirate an e-book, than it is to buy it
I also understand this, I just wish Amazon had a shopping cart so I could use my single use card only one time.
leoff··on It's easier and faster to pirate an e-book, than it is to buy it
Yes, this is correct.
leoff··on Ask HN: Stripe alternative (We got blocked before starting)
Even if they unblock your account, what makes you think they won't block it again in the future?
leoff··on Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
I've just created a similar setup last week: 1. Cloud function, uses Puppeteer 2. Cloud scheduler for triggering cloud function 3. Cloud storage for data persistence

Costs around 1 Euro a month, I had a similar setup for free in Heroku before.

leoff··on Hetzner continues its growth in the US with a new location
You thinking this was a positive experience only makes me more concerned about your customer support.

Let's hope I don't need another "one-time" server replacement because of your faulty servers, because I already used mine. 10 hours of downtime with angry customers on my tail sounds fun.

leoff··on Hetzner continues its growth in the US with a new location
Something similar happened to me. A server I have was very frequently randomly restarting, and I tried everything to solve it, i.e factory reset, reinstalling my services. I contacted customer support and they offered me to take it offline and perform some tests on it that could take more than 10 hours. After I insisted a lot, they offered me a one time server replacement, which magically fixed the restarting issue.
leoff··on Where Is the AI Music?
once image models are good enough, you can train them to generate spectrograms images, and convert them back to audio to listen to the generated music.
leoff··on The Secretary Problem
I've seen thousands of toilets in my life, my policy to finding a toilet in a music festival would be to choose the first one that's "good enough", no need to choose the best one.

In my point of view, this policy is more relevant if you have no prior knowledge about the subject you are evaluating. Even when choosing secretaries, how often it is that you want to find the absolute best one?

leoff··on TIFU by using Stripe as a payment processor for my small business
> When I see Stripe's apology here it will not be enough for me

I'm actually just starting a business using Stripe for handling payments, and this makes me very concerned.

Is there an alternative service one could use? Is there a way not to give these shady companies power to steal all my money?

leoff··on Brazilian Amazon lost 18 trees per second in 2021
losing all the trees would improve the climate? We have to pump these numbers up!
leoff··on Oh Shit, Git
Isn't this what a `git reset --hard` does?
leoff··on Next-generation AI models
Real programmers use punch cards for programming.
leoff··on Cool desktops don’t change
But one can think of a counter example where all the new music are very high quality and will stay around for a long time (not saying this is likely to happen). Then the statement "the shorter something has been around, the shorter it will be around" is false.
leoff··on Why championship chess sets are so expensive
At first I thought this was a parody like the Artisanal Firewood video (https://www.youtube.com/watch?v=TBb9O-aW4zI).

It seems like a lot of this process could and should be automated to improve consistency and quality.

leoff··on AirPlay and Touch Bar = Network Disaster
I actually found it nice when using the debugger in VScode. Having the buttons for play/pause, skip line, etc make life easier.
leoff··on Addressing AI’s energy cost
That's my point, you can't simply compare the energies like this.
leoff··on Addressing AI’s energy cost
Following your logic, a pencil weights 0.006kg, considering E=mc*2, this is 150,000MWh. This AI uses less energy than a pencil.
leoff··on What rr does
It is actually a geometric progression, so https://rrrr-project.org would be the next one.
leoff··on Have iPhone cameras become too smart?
An article talking about photos that has no photos in it, huh.
leoff··on Show HN: An app to quickly turn boring screenshots into beautiful images
https://twitter.com/thelifeofrishi/status/150145386705311334...

" Just submitted pika.style on HackerNews, if you have ever used this tiny app and found it useful then please help me with upvotes :)"

Guidelines: Don't solicit upvotes, comments, or submissions. Users should vote and comment when they run across something they personally find interesting—not for promotion.

leoff··on Tell HN: Zelensky is blurring -not blanking- sensitive info in a video with Musk
I can barely count how many lines the text message has, and you think a ML tool would be able to decipher it? This is an impossible task, the text information is completely lost on the blur
leoff··on A visual proof that neural nets can compute any function
Since you are nitpicking, you could well use a sinusoid activation function on the Neural Network, and reach an even smaller loss value.
← PreviousPage 3 of 4Next →