HNHacker News
TopNewBestAskShowJobs

Lukas_Skywalker

1,723 karma · joined August 27, 2014

Creator of code-fabrik.ch and examzone.ch
submissionscomments
Lukas_Skywalker··on Intel RealSense Stereo Depth Cameras
A 10-pack
Lukas_Skywalker··on Supreme Court upholds TikTok ban, but Trump might offer lifeline
This is just a feeling, and I am still speaking for the German part only, but I think age matters less than urban/rural.

Many older people I know have no problems communicating in English when they‘re abroad.

Would be interesting to have the BFS statistics split by age group and region as well…

Lukas_Skywalker··on Supreme Court upholds TikTok ban, but Trump might offer lifeline
No, I wouldn't say it's an English-speaking country either. No one talks in English to their peers that are from the same language region.

But yes, I can mostly speak of the German-speaking part. People generally have little problems switching to English, and are used to speaking as well.

Lukas_Skywalker··on Supreme Court upholds TikTok ban, but Trump might offer lifeline
That doesn‘t match my experience.

About 40% of all Swiss inhabitants speak English at least once a week [1].

Anecdotally, I can't think of a single acquaintance younger than 50 years old that doesn't speak fluently. Everyone in Switzerland learns English at school for at least five years. Most even for seven years.

Some of my German speaking friends even talk in English to French speaking people, even when both have learned the other‘s respective language at school.

[1]: https://www.bfs.admin.ch/bfs/de/home/statistiken/bevoelkerun...

Lukas_Skywalker··on Olympians turn to OnlyFans to fund dreams due to 'broken' finance system (2024)
> What is the economic output? Entertainment as far as I can tell. For a few days every four years. That's not a good return on the time invested.

I‘d guess the vast majority of Olympians do compete in other events outside the Olympics and do provide more entertainment than just once every four years.

The Olympics don‘t pay the bills, but other events do. And many athletes are effectively employed by their countries, be it as soldiers, border guards or through some kind of sports support system.

Lukas_Skywalker··on Olympians turn to OnlyFans to fund dreams due to 'broken' finance system (2024)
„Early days“ is until 1990 in that case, which is surprisingly late. Some nations got around the ban by employing the athletes as soldiers and allowing them to prepare almost full time though.

https://en.m.wikipedia.org/wiki/Olympic_Games#Amateurism_and...

Lukas_Skywalker··on Show HN: A Marble Madness-inspired WebGL game we built for Netlify
That's quite fun! I didn't know about "Marble Madness", but it reminded me of Cuboro [1], a (hardware!) toy that consists wooden blocks and allows people to create quite complicated marble runs that look very very similar to this game.

[1]: https://de.wikipedia.org/wiki/Cuboro

Lukas_Skywalker··on Crossing the USA by Train
I often travel from Switzerland to Scandinavia or Finland by train, so a journey of about 30 to 40 hours.

There are frequent delays, especially in Germany [0], but it was always easy to get a confirmation from the railway companies, and I was always able to take a later train. I never had to pay more, and I even got quite a bit of money back if the delay was relevant. Even if I booked the tickets at different operators.

I also usually use a buffer of about 4-5 hours in the middle of the ride. This can compensate some delays, and if on time, it's nice to visit whatever city you are in.

[0] I heard that some Swedish trains are too slow for the express connections in Germany. The trains must take detours or stop every few hours to let the faster trains pass.

Lukas_Skywalker··on "Begin disabling installed extensions still using Manifest V2 in Chrome stable"
I don't know if this is what you meant, but as an alternative to profile switching, there are Multi Account Containers [1]. It allows assigning a container to each tab, and the containers are isolated from each other. If you have an MS or Google account for both work and personal, you can open them at the same time in different tabs.

[1] https://addons.mozilla.org/en-US/firefox/addon/multi-account...

Lukas_Skywalker··on What's New in Ruby on Rails 8
> Isn't that's just having a property/field on a struct/class/type/object that contains the list of tags?

I have never used the library, but it seems you get a lot more with just 2-3 lines of configuration (e.g. for a tag context named „interests“):

- The ability to find the n most or least used tags with a single method call - The ability to track which user tagged a record - The ability to find records with the same tags - Calculation of tag statistics for a tag cloud

Now, all that would certainly be possible with EF. But many libraries for Rails give developers a very simple way to configure a feature, and deliver very expressive methods to use the feature. Which is an important property imo, since it often makes obvious what the code does, even for newcomers.

This is probably an effect from Ruby itself, where the standard library is quite expansive and has many often-used patterns built in. For example, calculating an arrays maximum value is just

    arr = [1,2,3,4]
    arr.max
Meanwhile, in JS:

    arr = [1,2,3,4]
    let max = arr[0];
    for (let i = 1; i < arr.length; i++) {
        if (arr[i] > max) max = arr[i];
    }
And to address the README of the above library: I think it is a bit confusing because it starts with a comparison with another library, expecting readers to already know how tagging worked there.
Lukas_Skywalker··on What's New in Ruby on Rails 8
Regarding Hotwire Native: I tried Strada a few months ago, but I never got it to work. Hotwire Native was running within 10 minutes on each platform. The docs are miles ahead of the Strada docs imo.
Lukas_Skywalker··on What's New in Ruby on Rails 8
Does „removing TypeScript from Rails without notice“ refer to the conversion of Turbo from TS to JS from a year ago?

They changed the implementation of an optional library. The interface of the library didn‘t change at all. Only how it was implemented.

Lukas_Skywalker··on What's New in Ruby on Rails 8
I have already upgraded to Rails 8 and am currently writing a guide on how to use Propshaft (because I was unable to find important infos). It‘s far from ready, but I plan to include a wizard that allows you to select your needs and it spits out the combination of jsbuild/cssbuild/importmaps/dartsass that you need.

In short: if your application only needs distribution-ready JS and CSS (from libraries like Bootstrap, Splide or Lightbox2) you only need importmaps-rails. If you use SASS, you need dartsass-rails. And if you need to compile TS (with esbuild or webpack) you need jsbundling-rails.

Especially the first case got a lot easier with Propshaft.

Lukas_Skywalker··on What's New in Ruby on Rails 8
I use Node at one of my employers, and Rails at the other.

It is much easier to switch between them than I first expected. I can quite easily use the idiomatic patterns in either framework. But there are obviously very large differences in the two stacks. The most important that come to mind:

- Rails is much more "batteries included". No need to decide what ORM, queue, mailer, remote storage, etc you want to use for the new project. You just use the built in solution. And you place the files in a pre-defined location. That makes it really easy to onboard new people, because they are familiar with the file structure. On the other hand, for Node projects, you can mix and match your components, and use simpler structures for side projects, and more complex structures (including tools like Nx) for more complicated projects.

- The Rails ORM is much more powerful than the Node counterparts. I think it helps, that the ORM is built into Rails, so everyone contributes to the same product. For Node, it feels as if there are many ORMs that are 70% done, but don't cover important cases. One of them is fast but a bit buggy, one is slow but has the ability to deal with schema migrations, one is old and works well but does not support TypeScript.

- Documentation of Node frameworks, for example NestJS, seems to be updated quicker than the Rails counterparts. For Rails, especially when Turbo was released, there was a kind of vacuum regarding the documentation. The docs for Turbo did explain the basics, but it was very very difficult to get it working with the official docs. Once blog posts started to pop up, it became much easier. Projects like Nest seem to have much more detailed documentation for their components.

All in all, I do prefer Rails tbh. The DRY principle that the framework follows makes sure that you don't have to edit 8 files when adding a new database column. This makes development much faster and in my opinion less error prone.

Lukas_Skywalker··on Patent troll Sable pays up, dedicates all its patents to the public
There's a picture of the "Dedication to the Public and Royalty Free License Agreement between Sable and Cloudflare" at the end of the article. [1]

Not a lawyer, but it seems to be part of the court ruling. Maybe CF didn't see a chance to get their costs back and made a deal so Sable needed to only pay a part, but also release the patents?

[1] https://cf-assets.www.cloudflare.com/slt3lc6tev37/4rpPZkNJBZ...

Lukas_Skywalker··on Apple Watch Series 10
The Whoop band has an elegant solution. They provide you with a small (~30x30mm) power bank that you can slide onto the band to charge. The band stays on your wrist. When done, you just slide off the power bank and charge it again.
Lukas_Skywalker··on How America's universities became debt factories
In Switzerland, it‘s only about 15%. The others most often do an apprenticeship: https://www.swissinfo.ch/eng/politics/apprenticeship-system/...

It‘s a pretty efficient (and quite unique) system. People learn to do their job at a normal company and attend school for usually two days a week. And they can still switch to the university track later without starting from the beginning.

Lukas_Skywalker··on Gnome Files: A detailed UI examination
I often try to open a new Terminal window in my current folder like that. Which often is impossible for the same reason. So I navigate up, until I find a folder that is not full, open the Terminal there, and ‚cd‘ down to the folder i wanted…
Lukas_Skywalker··on Transformers for Ruby
Also:

- Chartkick, a charting library for Ruby

- Ahoy, a Rails analytics library

- Searchkick, a Rails search library

There are over 370 repos in his Github profile...

Lukas_Skywalker··on How Olympic Timing Works
The hecto- prefix isn't commonly used for durations, but it's often used for barometric pressures as in hPa (Hectopascal), or areas such as ha (Hectare), at least in Europe. And it is an official SI prefix.
Lukas_Skywalker··on How Olympic Timing Works
Interestingly, it isn't really Omega, Longines, Tissot, Blancpain, Certina and the like that do the timing, but a small-ish company named "Swiss Timing", which is part of Swatch Group, as are the above mentioned companies [0]. It doesn't sell watches though, so marketing that name doesn't make much sense.

The brands that are displayed are part of the same group, and do indeed sell watches, and therefore are printed on the equipment.

They were the result of a merger when the Swiss watchmakers got afraid of growing sales of Japanese watches, especially Seiko [1].

[0]: https://www.swatchgroup.com/en/companies-brands/electronic-s...

[1]: https://codefabrik-static-various.s3.eu-central-1.amazonaws.... (PDF, 304kB)

Lukas_Skywalker··on Instagram Saved 90% of Computing Power and Improved Video Quality
> On YouTube the average bitrate for a 1080 video is 8Mbps which is 1Mb of transmitted data every second.

1Mb -> 1MB

Lukas_Skywalker··on How long does Apple support Mac firmware?
Slightly related to this is a software called OpenCore Legacy Patcher [1]. It allows people to install newer macOS versions on older hardware. I don't know if the firmware updates are included though, maybe they aren't. I recently installed High Sierra on a MacBook Pro from 2011, and it works flawlessly.

[1] https://dortania.github.io/OpenCore-Legacy-Patcher/

Lukas_Skywalker··on Apple Maps on the web launches in beta
Firefox on Ubuntu works on my machine, but only using your link, and it displays "[App.AppleMaps.Title]" as the tabs title. The POIs seem to be correct in Switzerland.
Lukas_Skywalker··on USPS shared customer postal addresses with Meta, LinkedIn and Snap
Caching across sites is a privacy risk in itself, because scripts can measure the time required to load a resource and therefore detect if a visitor has visited another site with the same resource before. That‘s why modern browsers no longer cache across sites.

https://news.ycombinator.com/item?id=24894135

Lukas_Skywalker··on Control Linux based distros using hand gestures using OpenCV, GTK, Mediapipe
Are you by chance interested in a command named after the four-letter word, which, when invoked, automatically fixes typos in the last run command and reruns it: https://github.com/nvbn/thefuck
Lukas_Skywalker··on Why Top Athletes Don't Look Like Fitness Influencers (Usually)
The physiological property that is used as a proxy for cardiovascular fitness is usually the bodys maximum oxygen consumption.

Strength training apparently has only very very little effect on that. [1] [2] [3]

Generally, to increase the maximum oxygen consumption, one has to exercise at about 90% of the maximum heart rate. This usually doesn't happen during strength training.

[1] https://eurapa.biomedcentral.com/articles/10.1007/s11556-013...

[2] https://pubmed.ncbi.nlm.nih.gov/7453510/

[3] http://www.saskathletics.ca/images/pdfs/concurrent%20enduran...

Lukas_Skywalker··on Swiss satellite antennas make a comeback as solar powerhouses
A bit of a tangent, but I think the dishes they are using here were once part of Onyx, a rather large communication interception system [0].

It got famous in 2006 when it intercepted proof of CIA black sites (mentioned in the Wikipedia article as well). Until then, the Swiss public didn't really know the scope of the system.

[0] https://en.wikipedia.org/wiki/Onyx_(interception_system)

Lukas_Skywalker··on Only walking for exercise?
When trailrunning, my worst injuries happened on flat and groomed paths, when I was not expecting potholes. When the trail is rough, I concentrate more and nothing happens, even if it is (at first sight) much riskier.
Lukas_Skywalker··on Show HN: Dropflow, a CSS layout engine for node or <canvas>
Prawn really is great. I use it to generate invoices and for exporting a billing overview in client projects. And it’s quite fast as well, since it generates the PDF directly without the need to spin up a browser.
← PreviousPage 3 of 9Next →