HNHacker News
TopNewBestAskShowJobs

xani_

1,252 karma · joined January 28, 2020

submissionscomments
xani_··on Gmail 2FA causes the homeless to permanently lose access 3 times a year
Or just let people to disable 2FA. That's simplest and easiest solution. Slap a red warning label if you need to.
xani_··on 4x4 ASCII Font (2016)
So 4x4 is too small for readable font
xani_··on Apache Pegasus - A horizontally scalable, high-performance key-value store
Think we have few of those too
xani_··on Apache Pegasus - A horizontally scalable, high-performance key-value store
Apache foundation is retirement home for projects so it checks out
xani_··on Why doesn't Bash’s ‘set -e’ do what I expected? (2021)
Wait till you learn about Python lmao

For simplish parallel runner https://www.gnu.org/software/parallel/ is excellent, can even automate stuff like "copy a file to remote server then run command on it" so you can make simplistic cluster computing with it

xani_··on Why doesn't Bash’s ‘set -e’ do what I expected? (2021)
Hell, Perl is at least consistent in its insanity
xani_··on Why doesn't Bash’s ‘set -e’ do what I expected? (2021)
> Because bash is thousand blades and no handle.

FTFY.

It really is absolutely terrible tool as programming language. If your script is more than "a bunch of pipes in a trench coat" just use something else. I'd unironically prefer Perl to it.

xani_··on Celsius Execs Cashed Out $40M in Crypto Before Halting Withdrawals for Customers
That's trading "some people being protected better" to "nobody is protected"
xani_··on Celsius Execs Cashed Out $40M in Crypto Before Halting Withdrawals for Customers
Legal system isn't preventing all of the the problems

Lack of legal system is allowing for all of the problems

xani_··on Granting Pardon for the Offense of Simple Possession of Marijuana
Why ? Do they teach that in school ? If not why it would be surprising to not know how it works ?
xani_··on The Art of Logging
Log structurally, have option for human readable output is probably the sane default approach here. Sometimes you just want to run an app from commandline, send a request to it and see what happens
xani_··on Show HN: Kafka 0.8.0 on Cloudflare Workers
Now someone needs to do that with QEMU and we can go back to running VMs
xani_··on SpaceX exploring mission to boost Hubble
Or Kerbal Space Program player lmao.

I definitely did that once or twice, just send a small craft with some RCS thrusters and reaction wheels then attach it to spacecraft via The Claw

xani_··on Notes against note-taking systems
"Just write it anywhere with as light structure as possible" works just fine with modern search methods

"A directory with a bunch of markdown files" is pretty portable too and there are few apps making that a bit easier.

I do divide "just a random notes" from "cheatsheets I use for stuff I use rarely enough to not remember" but that's about most organization. Just a descriptive title and working search function is enough

xani_··on FCC to remove companies from robocall database for non-compliance [pdf]
At this point I take the PDF over many "modern" webshits
xani_··on How I learned about corporate firewalls
You can just push using port 443

    -> ᛯ ssh -T -p 443 git@ssh.github.com
    Warning: Permanently added '[ssh.github.com]:443' (ED25519) to the list of known hosts.
    Hi XANi! You've successfully authenticated, but GitHub does not provide shell access.
xani_··on How I learned about corporate firewalls
And that kids is how it looks when security team just sits in their ivory tower and shits on everyone else in name of security theathre they're paid to play

> Overnight, all our builds (run on-prem) fail because npm install, pip install etc fail and we spent a long time trying to figure it out. They are still failing to this day and I have to get off the VPN every time I need to run these simple commands. IT absolutely doesn't give a flying ** about developers.

Add their cert to system store ? Won't help inside containers tho... without much fuckery

xani_··on Intel Laptop Users Should Avoid Linux 5.19.12 to Avoid Damaging the Display
The car won't shut off because that would be a dangerous thing to do in traffic.

The car will alert the driver than something is wrong and should stop as soon as it is safe.

Because stopping engine abruptly in middle of highway could be very dangerous.

A lot of cars also have so-called "limp mode" where some failures cause car to limit engine power and other stuff, basically to get to the next point the car can be stopped and towed to shop

xani_··on Intel Laptop Users Should Avoid Linux 5.19.12 to Avoid Damaging the Display
LEDs are current driven, not voltage driven. It's still weird as most controllers have the current set via resistor (either the value of inline resistor used for current measurement, or separate one), why wouldn't you set that to the max one for the panel ?

edit: https://www.diodes.com/assets/Datasheets/AP3019A.pdf example of simple one. The value of the single resistor decides the max current.

xani_··on Intel Laptop Users Should Avoid Linux 5.19.12 to Avoid Damaging the Display
They've been sold to Lenovo, it's just a matter of time
xani_··on Intel Laptop Users Should Avoid Linux 5.19.12 to Avoid Damaging the Display
I'd definitely want to pay on quality on some stuff, the problem is that it is very hard to spot that quality and not just product being more expensive because of a bunch of features I don't need, or just plainly on brand name.

The other problem is that niche high quality stuff also would not benefit from economies of scale as much, and at some point buying 4 of the cheap might get you thru longer than one of the "reliable" one

The top-end electronics are maybe a bad example as (at least till now, it seems to slow down at last) the performance is also a big factor, so buying $700 laptop you will want to replace anyway in few years is sensible over "will never break" $4000 one that will just go out of date.

But on like, just about everything else ? Reliability and repairability please, I will pay extra.

xani_··on Intel Laptop Users Should Avoid Linux 5.19.12 to Avoid Damaging the Display
First example: LED used as flash in phones.

The simplest hardware design is just running it at say 10% max in flashlight mode but allowing for short bursts of overdrive for flashing. The LED is big enough to handle short bursts, but not thermally cooled well enough to work at full power all the time. So you rely on firmware/software to do its job instead of having specialised hardware controller that's only job would be to make sure LED isn't on on 100% for more than say half a sec.

You control software so you don't GAF, but people putting custom one have to take same amount of care

Second example: You're an engineer and need to drive a backlight. You can

* slap a constant-current controller (buck or two of parts) so 100% is a maximum safe level all while regulating it at >90% efficiency * slap a high value resistor costing $0.01 so 100% is maximum level is safe but you lose a lot of power in the resistor * slap a low value resistor then just drive it at 20% duty cycle and waste less heat in resistor all while still costing $0.01

They just most likely picked 3rd. Or picked 1st and misengineered the limits I guess...

xani_··on Intel Laptop Users Should Avoid Linux 5.19.12 to Avoid Damaging the Display
Sooo they put too weak drivers/too strong amplifier and are trying to blame users on it ?
xani_··on The deception of “buying” digital movies
That's even more corporation favoured. It's much easier to stomach the price as corporation than author...
xani_··on The deception of “buying” digital movies
That's a fair compromise. Original author owns the rights to a given piece of art in whole and trademark from title, so they can profit off their work and make next title without being mistaken for someone else.

Everyone else is free to do with IP, do remixes etc. and if they make something with original IP that is better than originals, so be it ,competition actually working.

xani_··on Potential Issues of Using a USB Powerbank as a UPS (2021)
I remember some article of someone trying it, only to discover their power bank cut power for few milliseconds when you disconnected the external power supply, resetting the device...
xani_··on Potential Issues of Using a USB Powerbank as a UPS (2021)
It's not EEs, it's beancounters, EE's are just paid to please them. Just like developers really
xani_··on Potential Issues of Using a USB Powerbank as a UPS (2021)
> Hard to believe USB-PD upses aren't a common products.

Insanely easy to believe. The role of UPS is to prevent data loss when power fails. If something is powered by USB-C it almost always already have its own battery preventing from that.

The only devices that are not are stuff like say, raspberry Pi

Also, there literally are devices like that, just aimed more at stuff like camping, so much bigger battery, usually an inverter on board and solar input.

> Hopefully USB will give us standards for power banks someday so you can get certified ones with a defined form factor and behavior.

If it will be like USB-PD then it will be insanely overcomplicated and nobody will be able to get it right.

xani_··on Ask HN: How to find what I am really good at?
That's kinda irrelevant tho ? You can practice with purpose yet still practice it badly.

You can also practice with purpose and get to a peak of your ability.

xani_··on Ask HN: How to find what I am really good at?
...people find running fun ?
← PreviousPage 4 of 19Next →