HN user

jetzzz

278 karma
Posts0
Comments51
View on HN
No posts found.

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.

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.

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?

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...

Flux Keyboard 3 years ago

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.

WasmEdge 4 years ago

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

State of CSS 4 years ago

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.

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.

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.

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.

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.

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.

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

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.

Just google for "форум пробив" and you will find black market for accessing any kind of information, including SMS, phone location, etc and associated services for hacking accounts (VK, Gmail, etc). You don't need to be a government, it is open for everyone.