HNHacker News
TopNewBestAskShowJobs

xani_

1,252 karma · joined January 28, 2020

submissionscomments
xani_··on Analysis of Apple Watch running data
Reminds me how Sports Tracker (and really most apps) got wonky every time my phone battery got below 15% and got into aggressive power savings (and no amount of convincing would convince Android to fuck off).

Kinda smells like something similar, some aggressive power savings cutting on GPS accuracy or how much app is allowed to run in background.

xani_··on How to survive a lightning strike (2014)
>The old SAS Survival Handbook (by John Wiseman) contains the advice that if you feel any “tingle” in a thunderstorm, get on the ground, preferably hitting the ground with your hands/arms first. I wonder how much it’s based on anything that helps in real life.

Well, hitting the ground with your face first would be unpleasant

> (Stretching out arms sounds strange, don’t you want to minimize your reach of contact points with the ground, considering how many V/m there will be if lightning strikes close to you?)

I'm guessing it's to basically try to be as flat as possible, covering head would make you be overall higher off the ground

Most of the advice I've seen pretty much goes by "just try to be least conductive target around"

xani_··on Tradition is Smarter (2018)
Tradition was a mean to preserve knowledge over decades, I don't think it's relevant now where we can actually do that directly and also attach the research about whether it works, how it works, and how to employ a given technique directly.

Nowadays it's just a convenient method to make people do something without questioning it or asking why.

xani_··on Someday aliens will land and all will be fine until we explain our calendar
Uh, they will nuke us the moment they get on facebook
xani_··on Homemade Heat Pump Manifesto (2009)
We had 2 in our office closet datacenter and they definitely needed more maintenance than what I remember our coal burning furnace did
xani_··on Ask HN: Books on designing disk-optimized data structures?
Pedantic and wrong, good fucking luck saturating whole SSD from single thread on anything else than pure benchmark code
xani_··on Schedule cronjob for the first Monday of every month, the funky way
"What do you mean we need some NVIDIA cards to run our job scheduler ?"
xani_··on Target Venus not Mars for first crewed mission to another planet, experts say
So, go to moon. No real need to go to another planet just to irradiate some astronauts and in case shit hits the fan they have chance of surviving
xani_··on 58 bytes of CSS to look great nearly everywhere
That line spacing is obnoxiously big tho
xani_··on Target Venus not Mars for first crewed mission to another planet, experts say
> Going to Venus would allow us to simulate a mars free return trip, but in only 1 year (which would mean for a mars-class ship, a minimum safety factor of 3 (really, six) for fuel, water, air, food, medical supplies etc), instead of a 3 year mission with only a safety factor of 2.

Simulate what ? Sitting in place ? We can do that on earth orbit. Engines running for long time ? No need for people aboard for that.

xani_··on Packing a backpack (2014)
I mean, I get limiting it if you only need it rarely and multitool with some bits can get you thru a lot, but nothing ? I guess it is choosing to be useless at life on purpose...
xani_··on Packing a backpack (2014)
That strategy assumes you're not a total moron and follow it unquestionably for everything
xani_··on Audio Optocouplers
https://www.vishay.com/docs/83708/appnote50.pdf

Page 9 if anyone is interested.

TL;DR to get good specs out of it is complex, just use ausio isolation transformer

xani_··on Audio Optocouplers
You mean audiophool circles
xani_··on Audio Optocouplers
Do you remember numbers ? I'd guess somewhere in 0.5-1% THD range for simple single opamp servo ? I was kinda mildly interested into doing it for sensors altho just microprocessor blasting serial via optocoupler onto other side seems like easier solution...

Their application note (page 9) details circuits most audio people would just look at it and go "screw it, i will just buy audio transformer like rest of us"

https://www.vishay.com/docs/83708/appnote50.pdf

I don't doubt they achieved the claimed values but the circuit to do it had 4 precision opamps (bipolar one have 7) and a bunch of other components so I'm not surprised he didn't want to bother

xani_··on Ask HN: Books on designing disk-optimized data structures?
It does but it's always easier if you allocate/deallocate big blocks. Especially if you just put sub-block-size data on disk
xani_··on Schedule cronjob for the first Monday of every month, the funky way
At that point you might as well put a code interpreter in your scheduler that just gets current date and returns next data of event, because whole code to cover that would take more code than cron itself.
xani_··on Ask HN: Books on designing disk-optimized data structures?
Shouldn't matter as long as you do direct IO for benchmarking
xani_··on Ask HN: Books on designing disk-optimized data structures?
Someone did test exactly that:

https://panthema.net/2019/0322-nvme-batched-block-access-spe...

From my experience as long as you can do that access multithreaded you won't really be penalized for random reads. Single threaded access I've seen as much as read performance halved (used fio for testing), but that didn't translate into multithreaded benchmarks

xani_··on Ask HN: Books on designing disk-optimized data structures?
If you're writing on SATA SSD, yes.

If you're writing on NVMe, well, there is a good chance that if you're not at the high end (big site, a lot of things to do), you can just ignore that as the IOPS will be "good enough"

Like, single relatively shitty NVMe can still sustain ~700MB/s of random(4k block) writes. Use good ones, and use more than one and you quickly hit CPU barrier before you hit NVMe performance.

You still want to keep it kinda grouped together but that's mostly for the wear levelling reasons

xani_··on Linux on the laptop works so damn well that it’s boring
Well, author threw a dice and won.

Work Sony Vaio also worked perfectly. But seen quite a few people with other that had problems.

xani_··on Linux on the laptop works so damn well that it’s boring
> Wayland asked for explicit permission to allow OBS to record the game window, something that X would not do.

Was that "permission for OBS to record" or "permission for OBS to record that specific window" ? Coz I can see the second one being pretty annoying...

> While playing full-screen if I pressed the "super" key on my keyboard the game window would instantly shrink and tile with the rest while still rendering the game in real time.

That worked with composing on X like 10 years ago. Well, aside from the fact that there was no Steam/Proton on Linux back then

> But I was playing on a System76 desktop, so it was built from the beginning to work well with Linux.

Huh, my colleague had to do a bit of fuckery to get it working, altho a lot of that was due to 3rd party dock being... weird.

It still randomly makes jet noises when idle... probably user error tho

xani_··on Linux on the laptop works so damn well that it’s boring
Config files are far preferable to some random database dug somewhere in registry of DE blob of stuff. Because you can make a simple program that just "does the right thing" for user then include it in distro
xani_··on Linux on the laptop works so damn well that it’s boring
Well the distro push to use wayland isn't helping the case.
xani_··on Audio Optocouplers
Did you put one of the diodes in the feedback loop to linearize them ?
xani_··on Audio Optocouplers
Unironically diode-to-photoresistor optocouplers are used in some compressors and filters to get that soft analoguey sound (as they are plain slow to react to signal). Which is kinda a supply problem as material they were made with was banned for toxicity
xani_··on Homemade Heat Pump Manifesto (2009)
Sounds like fucked up install - why on earth it would get colder when it activates ?
xani_··on Homemade Heat Pump Manifesto (2009)
And technically also can be used for very efficient AC in summer
xani_··on Homemade Heat Pump Manifesto (2009)
If you already have water-water heat pump I'd imagine it would be a heat exchanger away from recovering at least some
xani_··on Homemade Heat Pump Manifesto (2009)
My family house was expanded so it had a thick wall like that between kitchen and the new part of the house. It was so thick it barely got wifi thru
← PreviousPage 9 of 19Next →