HNHacker News
TopNewBestAskShowJobs

Lukas_Skywalker

1,723 karma · joined August 27, 2014

Creator of code-fabrik.ch and examzone.ch
submissionscomments
Lukas_Skywalker··on React has grown beyond its original promise and it's causing more harm than good
DHH never suggested to host a static site on a Linux server. He only says that most (database-backed) applications could do without frontend frameworks like React.

The alternative to the „static site React app“ you‘re hosting on S3 would obviously be static HTML.

Lukas_Skywalker··on Blood doping and its detection
The same method is still used by long distance runners. Nowadays, they sleep in a tent (indoors) where the oxygen concentration is artificially reduced to simulate sleeping at a high altitude: https://en.m.wikipedia.org/wiki/Altitude_tent
Lukas_Skywalker··on Blood doping and its detection
Raising the amount of red blood cells gives you an advantage because the blood can carry more oxygen. This leads to a race where everyone tries to raise it as far as possible. This is quite dangerous, because the blood gets ever thicker (which leads to thrombosis, as with the cyclist Tom Simpson in 1967). Banning blood doping helps to protect the athletes as well.
Lukas_Skywalker··on Blood doping and its detection
There‘s a thing called „biological passport“ [0] where athletes are tested regularly for different biological parameters, including hemoglobin count. Any significant changes are suspicious.

[0] https://www.wada-ama.org/en/athlete-biological-passport

Lukas_Skywalker··on Blood doping and its detection
Many of them do. Distance runners often go to Kenya or St. Moritz. But yes, it‘s less effective than the illegal methods.
Lukas_Skywalker··on Lightweight JavaScript Framework Review (For Django Developers)
Writing the code is only part of the equation though - especially if you are not very fluent in SQL. I imagine it gets annoying quite quickly if you need to ask ChatGPT what different fragments of SQL do 6 months after you have generated them.
Lukas_Skywalker··on XCurl
But the comments are not the same?

bawolff says it wouldn't be a problem to just link the curl docs.

Cogito says it would, since users would just ask Daniel for help, thinking xCurl was the same as curl, despite them having different implementations. This would place a large burden on Daniel.

Lukas_Skywalker··on Nearly Cheating
They are indeed not normally distributed, but did you mean that they are not uniformly distributed?
Lukas_Skywalker··on Subtle ways Microsoft Word has changed how we use language
Noon and midnight are especially difficult for people used to the 24 hour system. Noon is neither ante nor post meridiem. And midnight is both.
Lukas_Skywalker··on Running Speeds
Those are really nice pictures. Even more so because those were probably taken during much longer and slower runs. But even there, they show incredible form.
Lukas_Skywalker··on Running Speeds
I was a coach once. There are two mistakes where most people can benefit a lot if they fix them. They are somewhat connected.

1) Foot strike to far in the front as in [1] and [2]. This mostly happens because people want to run fast, and therefore take longer steps. It is very counterproductive though. A longer steps lowers your center of gravity, and because the foot strikes the ground very far in front of the COG, you need to lift your COG before you can do the next step. This is visible in the video of the article as well. The amateurs have a much larger vertical movement of their heads and torsos than the Freeze.

2) Insufficient leg extension at the end of the ground contact as in [3] and [4]. There are two reasons for that. The first one is connected to the point above. If you keep the COG very low, you are forced to bend the hip and the knee while you move your torso over your foot. It's very hard to extend hip and knee after that, so many people just lift the leg instead of pushing all the way through. The second reason is mobility. Sitting all day shortens the hip flexor muscles (M. iliopsoas). Stretching them helps a lot.

Many of the people in the video are also starting quite fast and get considerably slower over the course of those 160m. Tiredness might be an important factor there.

[1] Bolt, foot strike: https://imgur.com/a/QOQaEX2

[2] Amateur, foot strike: https://imgur.com/a/Pmiijgx

[3] Bolt, leg extension: https://imgur.com/a/mRCq7uc

[4] Amateur, leg extension: https://imgur.com/a/cxzMkEi

Lukas_Skywalker··on The downside of AI language translation
The above translation is common, but I always thought it was not ideal. The much more common use in french for "perdre" is not "to waste", but "to lose", as in "The time you lost ...".

I think this captures the spirit even better, since the time sure is lost, but not wasted.

Lukas_Skywalker··on Using extra Firefox profiles to make my life better
I do this, exactly for the mentioned case. It's even easier than switching profiles, and you can select the container on a per tab basis.
Lukas_Skywalker··on Using Goatse to Stop App Theft
There are some public details about the program, and it's quite interesting: https://openconnect.netflix.com/en/appliances/
Lukas_Skywalker··on Plug and socket types around the world
What domestic device are you using that consumes more than 2.3kW? My vacuum cleaner with 900W is the most power hungry one I can think of. That is a pretty wide margin.
Lukas_Skywalker··on Plug and socket types around the world
You need to take Type-J from my cold dead hands. The image shows a quite important safety feature (and misses one):

The socket is recessed into the wall, and only the frontmost part of the plug is conducting. That means that while you are plugging it in, there is never any metal exposed. Contact can only be made when the plug is already quite far in the socket.

The second feature would be to mount the socket upside down, so the center hole (the ground contact) is on the top. Metal objects falling down on the plug are prevented from making contact with the two current-carrying contacts and usually bounce right off the center contact.

Lukas_Skywalker··on Htmx is part of the GitHub Accelerator
Rails does this with Turbo Frames [1]. When clicking a link that is contained in a <turbo-frame> element, the frame is automatically replaced if the response contains a frame with the same ID.

1: https://turbo.hotwired.dev/handbook/frames

Lukas_Skywalker··on Ode to the M1
Money is only part of the equation. It's pretty wasteful to have to toss a computer because one component failed, when that specific component would be replaceable in other brands.
Lukas_Skywalker··on Driving is more expensive than you think (2020)
You are very correct about the maintenance. The fourth power law [1] states that trucks are about 10'000 times as destructive as cars, and cars in turn are 160'000 times(!) as distructive as bicycles.

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

Lukas_Skywalker··on Tell HN: Digikey has 1822 Pi4 8GB and 3793 1GB in stock
Note that the second link is a Raspberry Pi 2, not a Pi 4. Digikey lists it when searching for "Raspberry Pi 4" because it has 4 cores.
Lukas_Skywalker··on Important Coding Habits
The thing I like about my standing desk is that I am unable to stay in the same position for more than 10 minutes. I always shift my weight, move my arms, walk a few steps to the left or right. I am forced to have breaks much more often than when I am sitting.
Lukas_Skywalker··on British F-35Bs to bring vertical landing abilities to highways
Boeing did a similar thing during WW2, and drew an entire city above a factory in Seattle. The article has some impressive pictures: https://99percentinvisible.org/article/prop-town-fake-roofto...
Lukas_Skywalker··on Amateurs obsess over tools, pros over mastery
> Van Halen bought the body and maple neck (which was a factory reject) for $130 [...]. Van Halen was able to purchase the factory second body at a discount price of $50 due to a knot in the wood. The $80 neck had jumbo fret wire, and its truss rod was adjustable at the heel.

That seems to be pretty cheap. I agree he didn't do it to save money though.

Lukas_Skywalker··on Against Alcohol (2022)
> Motorcycles are 20 times as deadly as cars to the rider - but I don't believe the government has any role in shutting them down.

This is not entirely the same situation, since alcohol abuse also affects the abusers family. The article mentions that as well.

Lukas_Skywalker··on Winning By a Hair
It‘s more likely about 2.6%, since elite riders would ride 40k in about 45‘ in reality (Tour de France riders have an average speed of up to 54kph during time trials).
Lukas_Skywalker··on Finally getting two's complement
That is exactly the 9‘s complement. The digits add up to 9.
Lukas_Skywalker··on U.S. pedestrian deaths reach a 40-year high
In the parts of Europe I lived in (France, Switzerland, Sweden) there is one additional important thing: there is usually at most one parking space per apartment. This makes everything already a lot denser.
Lukas_Skywalker··on Finally getting two's complement
It depends on the numbers. But you don't have to borrow from the next digit the whole time and keep track of that.
Lukas_Skywalker··on Finally getting two's complement
The complements are also really useful for subtracting numbers. Not only in the binary system, but also in the decimal system. They allow you to subtract by adding numbers.

Let's say you need to calculate

     8467
    -4583
The ten's complement of 4583 is 5417 (the complement is the remainder to the next power of ten, in that case to 10000). A cool property of the ten's complement in the decimal system is that the subtraction above can be rewritten as

      8467
     +5417
    -10000
Which results in

     13884
    -10000
    ------
      3884
This is much easier to calculate than the direct subtraction. It exploits the fact that calculating -x is equal to +(10000 - x) - 10000.

The same works for binary and the two's complement, where it is even easier, because calculating the two's complement is equal to inverting all digits and adding 1. It works for any number system by using the complement of the system's base.

Lukas_Skywalker··on Debris found came from missing Titan sub, says friend of passengers
This is consistent with this video of a trip. Comms were lost, and the pilot even jettisoned some of the ballast in order to resurface. They continued the descent later though.

https://m.youtube.com/watch?v=RAncVNaw5N0

← PreviousPage 4 of 9Next →