Better HN
topnewbestaskshowjobs
Log inSign up

jetzzz

278 karma · joined Oct 6, 2018 (8y ago) · 56 submissions

Submissions

comment 2y ago · link · parent

You can separate stairwell and elevator hall/apartment hallway with an open balcony like they do in some countries. This way smoke from the rest of the building can't get to the stairwell. This is called smokeproof enclosure.

comment 2y ago · link · parent

The real story here is about bad JS KeyboardEvent API. I think a lot of JS code in the wild does these incorrect checks and author's code after "fixing" the bug is still incorrect. When handling keyboard shortcuts you want an exact match, in this case you want to check that the only modifier used is Ctrl. JS API does not make that easy, you need manually check that all other modifiers are not pressed.

comment 2y ago · link · parent

> We (NL) should stay on permanent summer time.

> Reasons

> ...

Why not just have time as close to solar as possible and move working hours as needed? I have always found arguments for permanent summer time very confusing. Just move working hours as needed, why do you need to deviate the entire clock from the solar time for that?

comment 3y ago · link · parent

What I find frustrating about Microsoft Store is that it only shows you ratings and reviews from the same country you are from. For me most apps have one or zero reviews and maybe like 5 ratings.

comment 3y ago · link · parent

> I'm ESL and it's no big deal.

Not everyone would be learning English as a second language. In many parts of the world you may need to know some regional language in addition to your native one, so English would be your third, not second language.

comment 3y ago · link · parent

> AI-Generated review summary: We are making it faster and easier for customers to scan reviews for apps by using the power of AI to compile thousands of reviews into a simple summary, enabling customers to discover new content with ease.

Would be cool to have an option to actually read those reviews. If I open Firefox page in the Store app it says 420 ratings but I can only read a single review. If I press 'See all' it just shows an empty page. If I open Firefox store page[0] in the browser it says 'No one has reviewed this application yet. Be the first to add a review.' Reviews seem to be split by country or by some other criteria for no good reason.

[0] https://apps.microsoft.com/store/detail/mozilla-firefox/9NZV...

comment 3y ago · link · parent

They are promoting tightly packed structs as fast. For high-performance language I would expect native struct-of-arrays support because structs are bad for CPU cache and SIMD.

comment 3y ago · link · parent

The keyboard itself looks good but hardware vendors (including keyboard manufacturers) have a track record of making abysmal software. In fact, software should probably be their primary focus. From their FAQ it look like they want themselves to add support for every application. Will they have an SDK for other software vendors to add support to their applications? Being more open, e.g. making a github repo where anyone can contribute support for any application would be welcome.

comment 3y ago · link · parent

If you are running untrusted WASM files with wasmedge be aware that it doesn't sandbox by default. WASM can contain native code that will be executed without sandboxing. From the docs [0][1]:

> The wasmedge CLI tool will execute the WebAssembly in ahead-of-time(AOT) mode if available in the input WASM file.

> The wasmedgec can compile WebAssembly into native machine code (i.e., the AOT compiler). For the pure WebAssembly, the wasmedge tool will execute the WASM in interpreter mode. After compiling with the wasmedgec AOT compiler, the wasmedge tool can execute the WASM in AOT mode which is much faster.

They added an option (--force-interpreter) to disable running untrusted native code [2]:

> Thanks for reporting this. I think we can have a flag to disable the automatically loaded AOT sections from an unknown given universal wasm format. One possible situation is that users want to execute a wasm file with interpreter mode, however, they use a universal wasm format received from a malicious developer, and then the bad thing happens.

[0]: https://wasmedge.org/book/en/cli/wasmedge.html

[1]: https://wasmedge.org/book/en/cli/wasmedgec.html

[2]: https://github.com/WasmEdge/WasmEdge/issues/1631

comment 4y ago · link · parent

What's the purpose of having 4 linear color spaces (srgb-linear, xyz, xyz-d50, xyz-d65) for interpolation? Linear interpolation is exactly the same in any linear space. Indeed, in provided gradient examples these 4 look the same.

comment 4y ago · link · parent

Message from hackers at the driver's phone says: "Girls and guys, stop feeding the yellow, work with Wheely".

comment 4y ago · link · parent

Colors of pure wavelengths are outside of the sRGB gamut and cannot be converted to sRGB, only approximated. Color of infinite temperature, on the other hand, is inside the sRGB gamut so no complication here.

comment 4y ago · link · parent

What's the purpose of using non-random data such as time and MAC address in UUID? It increases probability of collision compared to purely random bits and if you need time or MAC it seems better to store them as separate fields - easier to perform selects, groupings, etc.

comment 4y ago · link · parent

This article mentions scientist named Mircea Corcioveci whose name doesn't appear anywhere on the internet except in this article.

comment 5y ago · link · parent

Why didn't they remove Navalny's videos from YouTube then?

comment 5y ago · link · parent

You can't return but what is preventing them to come to your new home. Snowden's girlfriend moved to Russia and I think any of his family members can visit him if they want.

comment 5y ago · link · parent

You are not inventing new way of serializing them, byte arrays are what ed25519 keys are. In fact, by using ASN.1 you are making it more complicated to use and increase attack surface as one now needs an ASN.1 library in addition to an ed25519 library.

comment 5y ago · link · parent

The comparison of H.264 and H.265 in this article doesn't make any sense. Lossy codecs can make files almost arbitrarily small at the expanse of quality. You should look at both quality and size; size alone doesn't mean anything.

Also H.264 and H.265 are just formats; there are many encoders of varying quality which can generate such files and each encoder has tons of settings. I don't know which encoder macOS uses but ffmpeg includes state-of-the-art H.264 encoder (x264). Simply reencoding video from H.264 to H.264 using ffmpeg can give you better quality/size ratio than the original file.

> H.264 codec (or MPEG-4 Part 10), once upon a time know in the scene as DIVX.

No, DivX refers to MPEG-4 Part 2 which is a completely different codec.

comment 5y ago · link · parent

> I do see weird distortions at time, but I think it’s just reflections of blood vessels in eyes, hard to tell.

Do these distortions change depending on which eye you look with? If not then they are unlikely to be caused by something in your eyes.

comment 5y ago · link · parent

This article refers to male scientist as a woman. Many Russian news websites allow you to report mistakes in their articles by selecting text and pressing Ctrl+Enter which is really convenient. I wonder why English news websites don't have anything like this.

comment 6y ago · link · parent

FYI aif is owned by government of Moscow. If you want more independent Russian media here are some of them:

https://meduza.io/ - also has an English version.

https://theins.ru/ - these are the ones who deanonymized Salisbury poisoners.

https://zona.media/ - focuses on the judicial, law enforcement and penal system. A lot of very dark and depressing news.

https://www.proekt.media/ - rare but deep investigations.

comment 6y ago · link · parent

They can use an account registered for a homeless person who has happily provided an ID in exchange for a small amount of money.

comment 6y ago · link · parent

Here is drone footage of this beast:

https://www.tiktok.com/@rusik.ibragimoff/video/6862108775214...

comment 6y ago · link · parent

Official election results give Tikhanovskaya 500k votes, Telegram poll - 1M votes, 2x more.

comment 6y ago · link · parent

And IntelliJ IDEA of course, which I think many HN visitors are using in one form or another. This still doesn't change the original point that Putin regime has been very damaging to Russia.

comment 6y ago · link · parent

I can't help but take this opportunity to say just how amazing Belarus protesters are:

* They take off their shoes to stand on the bench [1] [2].

* They remove all the garbage after them [3]. Streets after protests are cleaner than before.

[1] - https://t.me/nexta_live/8250

[2] - https://twitter.com/belteanews/status/1294022770771341312

[3] - https://twitter.com/belteanews/status/1295014755850235904

comment 6y ago · link · parent

A lot of people in this thread seem to have some false dichotomy in their mind - either you are peacefully protesting or you are rioting by burning random cars and destroying uninvolved storefronts. There is another option: peacefully protest but try to occupy administrative buildings and only use violence as a response to police violence. This is what happened in many post-USSR countries in the so called "colour revolutions", Euromaidan, etc. In particular in Euromaidan there were heavy clashes with police, but no destruction of private property (at least not deliberately by protesters). Police cars were burned, paving stone, garbage bins, etc were used for fighting/barricades, but this doesn't hurt anyone in particular the way destroyed car or store would. Meanwhile in US/Western Europe riots are for some reason seem to be directed not at government and police but at uninvolved car/store owners.

comment 6y ago · link · parent

Somehow much more democratic Taiwan and South Korea (Samsung) got there faster than dictatorship China.

comment 6y ago · link · parent

The key part here is to only post this comment under headlines for which the answer in "no".
12