HNHacker News
TopNewBestAskShowJobs

sgjohnson

2,656 karma · joined August 8, 2018

submissionscomments
sgjohnson··on What is the point of a public key fingerprint?
Essentially, the fingerprint.

Emojis take up 32 bits each. So 4 emojis would be 128 bits.

Of course, this doesn't account for all the 4 byte unicode combos that don't result in an emoji, but still.

sgjohnson··on Suspects can refuse to provide phone passcodes to police, court rules
They are allowed to crack it. They can’t order you to open it.

Same goes for a computer device. Go ahead, crack it.

sgjohnson··on Ask HN: What apps have you created for your own use?
I’ve done the same exact thing but for Latvian diacriticals (āčēģīķļņšūž).

The default behaviour of the Latvian layout in macOS is to make apostrophe a dead key, which really grinds my gears. So I made it alt+whatever letter instead. As a dev I use apostrophe way too much to be okay with typing '+space for it.

sgjohnson··on Elon Musk's luck has finally run out
Gets even more interesting when you account for the fact that assets purchased with that loaned money are also probably pledged as a collateral for more loans.
sgjohnson··on Elon Musk's luck has finally run out
> Today, it's worth $175bn in the private market.

Only theoretically.

In practice, just because someone is willing to buy a completely insignificant stake (0.2%) for $500mn doesn’t make the entire company worth $175bn.

If anything, this is probably Elon and his friends pulling off an accounting trick.

I can register a company with a share capital of $1 and issue 1000000000000 shares with a nominal value of $0.000000000001 each. Then I could sell you one of those shares for $1 and then I could tell everyone that I’m a trillionaire. Which would technically be the truth.

sgjohnson··on Elon Musk's luck has finally run out
But we do know why he cashed out a significant amount. Apparently to light it on fire.
sgjohnson··on Elon Musk's luck has finally run out
There are a lot of people that have lent him money that would like to be paid back, which would be impossible if Elon fucks everything up.

63% of his Tesla shares are pledged as a collateral. Do the math.

So no, not his own money. His creditors’ money. He doesn’t have any money. He only has Tesla stock.

The party is over. The credit card is maxed out. The interest rates are rising. Someone will have to pick up the tab.

sgjohnson··on Elon Musk's luck has finally run out
63% of his Tesla stock pledged as collateral.

Holy shit, he’s more leveraged than I ever imagined.

Assuming it’s 2:1 leverage and his shares are worth $250bn... What the fuck has he spent >$80bn on?

sgjohnson··on New York approves the first congestion toll in the US: $15 to enter Manhattan
Not because they like it.
sgjohnson··on He blew the whistle on Amazon. He's still paying the price
I’m pretty sure that most countries allow forced labour as a punishment for a crime.

In my native Latvia, a member of the EU, it’s the most commonly handed out criminal punishment. x hours of unpaid public work. Typically on a strict schedule. Or you can go to the can if you’re opposed to such “slavery”.

Oh and yes, there are also labour programs in our prisons that are probably comparable to the ones in the US. An easy sell actually, because you can either

1. fill your day by doing some work in horrible conditions for basically no pay, but you get to do something

2. rot in your cell all day long

I’m pretty sure that most people pick option 1. After all, you need a way to buy cigarettes.

Nobody calls this slavery.

We also have mandatory military service that started this year. I’m happy to call this slavery, because it’s imposed on people that haven’t done anything wrong.

But you seriously can’t compare forced labour as a punishment for a crime vs any other workplace. It’s disingenious for very obvious reasons. Why not go a step further? Why not claim that it’s a human rights violation to incarcerate people in the first place? After all, the universal declaration of human rights says that EVERYONE has the right to leave their country, re-enter it, and freely move about in their own country, and this is a “universal human right” that’s so clearly being denied to prisoners.

So forgive the international reader like myself for seeing nothing morally wrong with this state of affairs.

sgjohnson··on Apple cuts off Beeper Mini's access
> I still wouldn't expect a refund for the 1,50$ of 3 weeks this payment cycle that you didn't use.

I would. They sold a service that they clearly cannot reliably provide.

sgjohnson··on Apple cuts off Beeper Mini's access
I actually thought that Apple might not care for now and that they’d just wait and see what happens.
sgjohnson··on Apple cuts off Beeper Mini's access
That’s something that Microsoft would do in the 90s.

Apple’s MO clearly is breaking something and refusing to elaborate further.

sgjohnson··on Apple cuts off Beeper Mini's access
> from this technical investment

What technical investment? They bought an open-source project from a high-school student.

Beeper Mini is an app they would have built anyway. They simply implemented the bare minimum of iMessage functionality there. Which is a couple of days worth of work, maximum. Maybe a week. And some for testing.

I’m somewhat certain it cost them less than 5 figures. And if it did, what a great marketing campaign. I had no idea what Beeper even was before this whole fiasco.

sgjohnson··on Choose your own IP
> This means if your ISP changes your address

Yes. If your prefix is dynamic, stateless NAT66 can reduce some headaches. But that’s just about the only use case.

sgjohnson··on Choose your own IP
> If there's some traversable NAT - it will use it.

But there is no traversable NAT if you’re stuck in CGNAT hell with no IPv6 and the CGNAT subnet they gave conflicts with the one you have. Unless you NAT it again or do some other route fuckery.

NAT4444 sounds really great!

sgjohnson··on Choose your own IP
I kind of just winged it. But IPv6 is really super similar to IPv4. The key differences are:

- 128-bit addresses, expressed in hexadecimal. A single character is 4 bits (making every 4 bits a nibble boundary, making allocations really easy)

- All subnets are /64 (if you really want to have a different size subnet, you can, but it’s against the standard, and anything other than /64 will break SLAAC. There is one exception to the standard—point to point links are allowed to have a /127)

- The concept of a network address or a broadcast address within the subnet doesn’t exist. ff02::1 is the all-nodes link-local multicast address (serves the same purpose as a broadcast address in v4).

- ARP is gone. A very similar protocol, ND takes its place

- The preferred way to assign addresses to endpoint devices is SLAAC. Which is basically the router telling the endpoints to self-assign. Ridiculously small chance of a collision, and in case a collision happens, just run the rng again. It’s 64 bits after all. You can use DHCPv6 instead or in tandem with SLAAC if you need more granularity.

- You don’t need to use NAT. Which means you have to set up a firewall on the router correctly. Default-deny, while still allowing ALL ICMP traffic through, as ICMP is kinda vital for IPv6 because it’s used to communicate error conditions.

I’m sure I’ve missed something, but these are all the differences I can recall from the top of my head.

sgjohnson··on Choose your own IP
Tailscale supports IPv6. But their IPv6 support is useless to you if your ISP doesn’t support IPv6.

This is a needed feature if you have no IPv6 AND are stuck in CGNAT hell.

And I’m an IPv6 evangelist.

sgjohnson··on He blew the whistle on Amazon. He's still paying the price
Yes, but murder is illegal, but outsourcing manufacturing to a Chinese company is perfectly legal.

If Foxconn kills someone, a US company that hired Foxconn shouldn’t be responsible.

It’s not even Amazon exploiting these employees. It’s Foxconn.

If it was Amazon doing the exploitation, I’d absolutely agree with you.

sgjohnson··on He blew the whistle on Amazon. He's still paying the price
And how would that help the working conditions in China?

You’d just shift the manufacturing to a less hostile environment, where the government doesn’t intentionally make it hard to do auditing on modern slavery. Like India.

I just don’t see how it would help the Chinese labour situation at all.

sgjohnson··on He blew the whistle on Amazon. He's still paying the price
> this needs to come through politics and government.

There's nothing western politicians can do to fix working conditions in China.

Embargo them? The working conditions in China won't get any better, and you'll simply put a lot of Chinese out of work by doing that.

Higher tariffs? That's just a tax on importing goods for China. While it helps the domestic manufacturing sector, it still does nothing to fix the working conditions in China.

Consumers suddenly start caring? The same as the "higher tariffs" scenario.

Any other ideas?

sgjohnson··on He blew the whistle on Amazon. He's still paying the price
Except this has nothing to do with the west. The west is not responsible for working conditions in China in any way, shape or form. It's strictly a Chinese problem.
sgjohnson··on He blew the whistle on Amazon. He's still paying the price
He is right though. The companies are accountable to the shareholders, and the shareholders (usually) don't care.

Companies are not sentient beings, they are made up of people. People that don't care.

Personally, I'm a consumer and I don't care either. I know where my t-shirts are made and I have a vague understanding under what conditions they are made.

This is not a problem that has to be fixed in the west. It's a problem that has to be fixed in China. But China doesn't want to fix it, because fixing it would make them less competitive globally.

Consumers WANT cheap goods. China OFFERS cheap goods. Companies offer the consumers exactly what they want. Simple as.

You really cannot blame only the companies without blaming the consumers too. And if you care, you can stop buying things manufactured in China.

sgjohnson··on He blew the whistle on Amazon. He's still paying the price
The US constitution actually allows slavery/involuntary servitude as a punishment for a crime, as per the 13th amendment:

> Neither slavery nor involuntary servitude, except as a punishment for crime whereof the party shall have been duly convicted, shall exist within the United States, or any place subject to their jurisdiction.

So it makes little sense to compare prison labour programs to "any other workplace".

sgjohnson··on He blew the whistle on Amazon. He's still paying the price
Slavery is de-facto legal in China and their justice system is rotten to the core. Is this really news to anyone?

I would be surprised if this had ended differently.

sgjohnson··on Show HN: How did your computer reach my server?
IPv6 support would be great for this. I run my own AS (AS200676) and one of my prefixes is actually announced at my home. I'm really curious as to what would the auto-generated green text say about that route.

I announce only IPv6, because I don't currently have access to any v4 blocks, they are expensive and I have little need for one.

sgjohnson··on DNS Exfiltration Tool
You could also use AAAA records to exfil data. Whole 128 bits at a time.

Of course there are far more practical ways of going about it.

sgjohnson··on Senate bill aims to stop Uncle Sam using facial recognition at airports
Patriot Act expired in December 2020. It was not reauthorized by Congress. Trump threatening a veto might have influenced it though.
sgjohnson··on Show HN: Fanfiction and Smut AI Generator
Very interesting, but I’m not very fond of the fact that providing an email is required.
sgjohnson··on AirJet makes a MacBook Air perform like a MacBook Pro
> So dumb and annoying that we have to cripple so many potential applications just so

My brother in christ, have you heard of the patent system in general?

Try starting a new phone or laptop company. Your step 1 will be to acquire a patent war chest, so if someone sues you for patent infringement (and they will), you can sue them right back for the same.

In this world, if that company is for sale, someone much bigger is going to buy it, and make their technology their own exclusive. Be it Apple or Samsung or whatever. Getting hands on this tech _so your competitors don’t_ would also be a valid reason for acqusition.

← PreviousPage 11 of 34Next →