HNHacker News
TopNewBestAskShowJobs

layoutIfNeeded

698 karma · joined March 20, 2019

submissionscomments
layoutIfNeeded··on Apple asks staff to return to office 3 days a week starting in early September
>45 minutes means an hour and a half of your life every day that you don't get paid for and have to just throw away.

Wasted??? Listening to motivational podcasts while sitting in a traffic jam for 45 minutes is not wasted time! /s

layoutIfNeeded··on History of the Nautilus loudspeaker
>My library is 280GB currently, and storage is cheap

That’s around ¾ the amount of music I carry on my iPhone :-)

layoutIfNeeded··on Sodium rutin extends lifespan and health span in mice by 10%
[citation needed]
layoutIfNeeded··on Japanese bookstore simulator translated into English after 24 years
It’s an American thing. I think it’s best to just let it slide…
layoutIfNeeded··on Why Don't Americans Use Bidets?
>Induction doesn't work for all pans, and require a 240v line run to your stove top

And most induction tops draw so much current that you need at least 2 phases, but optimally 3 phases installed.

layoutIfNeeded··on Yamaha MOTOROiD
https://www.youtube.com/watch?v=ylhsbfQTPDQ
layoutIfNeeded··on Microsoft president: Orwell’s 1984 could happen in 2024
[insert that Upton Sinclair quote here]
layoutIfNeeded··on Have you ever hurt yourself from your own code?
Ah yes, off-by-one errors when filling a PCM buffer can be loud. Speaking from experience, it’s similarly loud when you accidentally fill an integer PCM buffer with floating point data.

My story: I physically broke an indoor bike trainer by writing a mobile app.

I was fed up with the rent-seeking subscription-based app that the vendor provided for the machine, and wanted to write a simple app to be able to change the training parameters over Bluetooth. It worked via a standard BLE fitness machine protocol, so I’ve spent a few hours creating a prototype iOS app for interacting with it via the CoreBluetooth framework, based on the free docs from Bluetooth.org.

Everything worked wonderfully, up until the point of adding a slider to the UI for changing the “hardness” parameter of the current session. You see, changing the hardness parameter adjusted an electromagnetic braking mechanism inside the machine, and the slider I’ve put on the UI was set to its “continuous” mode, which meant that it was generating a steady stream of change events while dragging, basically at the framerate of the phone (60 fps). The designers of the machine probably didn’t anticipate that someone would be flooding it with 60 “set hardness” commands per second, and the actuator doing the adjustment simply broke from the overload after a few seconds of me dragging the slider…

I’m not sure exactly which part broke, but there was a loud crack from inside, and the braking power could no longer be adjusted at all. I could have disassembled the machine, but it wasn’t even mine (it was lent to me by my brother-in-law to try it out), and was still under warranty, so I gave it back and told that it spontaneously broke :^)

layoutIfNeeded··on Writing Pythonic Rust
>Rust's ownership rules guarantee correctness in the case of parallel access while GCs do not

That’s a dangerous misconception. The Rust ownership model only guarantees that the program is free of data races. That’s a necessary but not sufficient condition of program correctness.

layoutIfNeeded··on How Intuitive Are Macs Really?
But they are the best for productivity.
layoutIfNeeded··on Teach Yourself Demoscene in 14 Days
Ummm… you mean “demo”, right? “Demoscene” means the community making the demos.
layoutIfNeeded··on Tim Cook’s Fortnite trial testimony was unexpectedly revealing
Has it occured to you that maybe those other OSes and devices are shit precisely because they give unfettered access to developers/scammers/adtech on their platform?
layoutIfNeeded··on NNCP: Lossless Data Compression with Neural Networks (2019)
No.
layoutIfNeeded··on AirPods Max and AirPods Pro Don't Support Apple Music Lossless, Apple Confirms
Debunked https://web.archive.org/web/20200310055211/https://people.xi...
layoutIfNeeded··on AirPods Max don't support Apple Music's lossless songs, Apple says
Over Bluetooth? Lol! No.
layoutIfNeeded··on AirPods Max don't support Apple Music's lossless songs, Apple says
It will be called: WirePods™
layoutIfNeeded··on Apple Music Announces Spatial Audio and Lossless Audio
Huh, what a weird thread!

I thought most people would be listening to their own curated collection of mostly Bandcamp stuff, plus a bunch of exclusive vinyl and cassette releases. I didn’t realize that older folks (i.e. over 35) are still using services like Spotify and Apple Music!

layoutIfNeeded··on The ClickHouse Community
Hehe, my first open source “project” was a comment box written in PHP, circa 2004 at the age of 13… It used a single txt file for storing the comments, so I’m afraid it wasn’t webscale™, but I didn’t know better at the time :]
layoutIfNeeded··on The ClickHouse Community
This is how you do the script thing:

<img src="kitten.jpg" onerror="alert('meow!')">

:^)

Edit: meh, stupid CSP…

layoutIfNeeded··on The ClickHouse Community
<!--<div style="position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: red;">Fix your website</div>-->

(Yep it worked)

layoutIfNeeded··on Audacity: Actions we propose to take on PR 835
If you XOR the four octets into a single byte then it’s definitely irreversible :^) (and also pretty useless for telemetry purposes)
layoutIfNeeded··on Peak non-creepy dating pool
>It fails to recognize that procreation is just one function of sex.

On evolutionary timescales, anything that doesn’t help procreation will die out. Simple as that.

layoutIfNeeded··on The True Size of Africa (2015)
>I'd argue its not precise to consider Americans dumb, just inexperienced outside our bubble.

Indeed!

Funny, because others replying to my comment seemed to be similarly inexperienced outside their well-educated Silicon Valley / Ivy League bubble… :^)

layoutIfNeeded··on The True Size of Africa (2015)
A candidate and a president (who’s a Yale and Harvard alumnus):

“ One of the most famous blunders made by former U.S. President George W. Bush was, “Africa is a nation that suffers from terrible disease.” President Bush, like many others, misconstrued the fact that Africa is not a country, but a continent.”

https://sites.uab.edu/humanrights/2018/11/23/africa-not-a-co...

But surely, it must be a coincidence! :)

layoutIfNeeded··on The True Size of Africa (2015)
https://time.com/12990/africa-is-not-a-country/

https://www.theatlantic.com/international/archive/2013/08/co...

layoutIfNeeded··on The True Size of Africa (2015)
I think a lot of Americans think that Africa is a country.
layoutIfNeeded··on Things you can’t do in Rust (and what to do instead)
Every generation must go through these cycles. Visual programming, no-code solutions, thin clients, thick clients, static typing, duck typing, functional programming, etc.

Time is a flat circle.

layoutIfNeeded··on FBI Has Gained Access to Sci-Hub Founder's Apple Account, Email Claims
Ok, then: the US constitution only applies on US soil.
layoutIfNeeded··on JWT should not be your default for sessions
Then there’s no point in using JWT. You may as well use an UUID to hit auth0’s endpoint on each request. You really don’t get the article? Did you read it?
layoutIfNeeded··on Study finds alarming levels of ‘forever chemicals’ in US mothers’ breast milk
Any kind of food wrapping paper or food box.
← PreviousPage 5 of 34Next →