Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,278 karma · joined Nov 23, 2012 (14y ago) · 6,746 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 3y ago · link · parent

User account associated to a phone number is a common tactic. Phone numbers serving as a proxy for identity is more and more of a thing.

People might talk about burner phones, but many localities never really had burner phones in the first place (Japan doesn't give a phone number on travel SIMs, there's "no way" to have a phone number without getting your ID checked somewhere), and other localities are tightening the grip on this.

It's not a universally nice and open solution. But it's probably one most markets will bear

comment 3y ago · link · parent

One example: in Japan cell phone operators provide a mechanism by which you can OAuth into their system, and then they will tell you whether the user is over 18 or not. This lets Line age-restrict "become friends with random people online" functionality.

comment 3y ago · link · parent

There are some people who believe that access to certain services should be age-gated. Thus follows that a web page offering the service should handle this age gating, in the same way that alcohol sellers are responsible for checking that their customers are of drinking age.

In the Real World(TM) this is a fairly uncontroversial idea. The Internet is very wild west on these things and that has lead to interesting outcomes... but really age gating porn is in line with many things in the world.

comment 3y ago · link · parent

Not to be too glib but I’m sure that these places would rather just have USD if that were an option

comment 3y ago · link · parent

I don’t contest that if the point is money the bitcoins are… probably better? The risks involved with bitcoin custody being their own can of worms. But at least fuel serves a purpose (especially in remote areas!)

comment 3y ago · link · parent

A, I imagine, very useful invention would be some sort of synthetic fuel generator that only needs water and could soak up a lot of this energy. How small can your fuel synthesis pipeline be?

This issue of power in weird places could be aided by processes that make… well, something useful.

comment 3y ago · link · parent

Every day somebody is born who hasn’t heard somebody say “triangulate the signal” on some procedural.

Meanwhile the intersection of “hasn’t heard this” and “is intentionally turning off location services on phones” is, I imagine, an extremely small cohort of the phone using population. But this would be a good sort of public poll to do!

comment 3y ago · link · parent

In the “infinite energy” argument, there is some notion of “well I can use solar energy to get this oil, which has different characteristics, even if the energy is less overall”. Not all energy sources are fungible, right? But it’s a good point

comment 3y ago · link · parent

Pedantically, there is a "limited" amount of these resources right? Like "if you drill deep enough there's always more" feels incompatible with the fact that these resources are all downstream of actual geological effects.

Or is it really actually "dig deep enough and we find stuff" has almost always been true, making this distinction without a difference?

Just can't help thinking about lakes and acquifers drying up. Even in a more "renewable" scenario, at one point there is a bottom. I just wonder if we have a good feeling for where that is .

comment 3y ago · link · parent

I thought the depsosit is for building damage, not for rent?

comment 3y ago · link · parent

No amount of personal wealth in the countryside makes it so that I can walk to the supermarket and to a couple other places. Urban life is appealing to many for reasons beyond fun, and for a lot of reasons that aren’t solvable in rural areas by purchasing power.

To your point I think there’s a lot of that which is more manageable than expected, and there are a lot of spectrums to navigate there

comment 3y ago · link · parent

Absolutely wild that you link “income goes up, children goes down” as an argument that it’s not socioeconomics!

Income is part of socioeconomics! That graph obviously does not agree with my explanation, but it’s an argument against a biological component.

comment 3y ago · link · parent

There are a bunch of surveys on people not having kids. It’s economics. Money (or lack thereof) is the thing.

One might think “well city dwellers have more money!” But a huge issue is housing. There’s a supply issue and a cost issue there that simply is a non-issue for rural populations.

Searching for some genetic reason is one thing, but “we cant make a comfortable living space for future children” is just a major point that comes up in surveys and just makes sense.

comment 3y ago · link · parent

This is me misusing the word "token". Access tokens are gotten via POST, but the one-time code is gotten via GET and, absent usage of things like the state parameter, can easily lead to malicious attacks.

comment 3y ago · link · parent

Using [0] as a reference, I'm talking about Step 3. This is, in my experience, the "normal" way that people are setting up OAuth between 2 services, with a user going through the flow.

[1] includes info on this (see "flawed CSRF protection")

[0]: https://www.digitalocean.com/community/tutorials/an-introduc...

[1] https://portswigger.net/web-security/oauth

comment 3y ago · link · parent

What I'm thinking of is more two places:

- an office (fortunately not my case)

- rented apartment that would not let me drill a hole in the wall

Good info to have though! I feel like I would definitely look at setting that up in most cases

comment 3y ago · link · parent

Oh, thank you for reminding me of the well-known endpoint, was having trouble finding it in the OAuth RFCs but I wonder if it's pulled in elsewhere.

> They can't inject a token because you don't get the token from them, just the one time code.

that's not correct in the most common flow? The most common flow involves the user agent providing the information via a GET, so they can theoretically provide a token.

The reason the state parameter is important is because without it, a malicious actor can make a link that goes directly to your system's "oauth step finalized" step, but with their credentials. (Pedantic attack: service has slack push notifications integration, through OAuth. Attacker creates link like https : //service/connect-slack-finalize?token=token-to-attackers-slack that victim clicks on. Without using state, the service will just take the token and stick it into some slack integration. now attacker's slack is getting messages for the victim's account on the service. Cookies mean that the victim's thing is accepted immediately).

comment 3y ago · link · parent

One thing I could imagine here is a signature flow happening from the sender side where they sign the nonce + the token, to avoid forgery. I don't know what the signature validation looks like in that model though (if you request a public key from the provider, are you requesting that at every request flow? If you're not, now you're adding a request to every normal, non-malicious validation flow)

> Maybe you need to implement some uncommon signature verification. It could be anything.

So my feeling on this is that at the very least OAuth tends to be "well it's going to look like this, but there might be some tweaks".

I have set up OAuth verification with multiple services in the past. The social aspects and the business aspects have always been more complicated, but at least "it's OAuth" (much like "it's REST" for APIs) establishes a core understanding very quickly.

I'm open to saying that we should add more standard stuff to the flow, if it's optional then people who use oauth libraries will end up with a lot of this stuff by default. But I think the status quo is pretty nice, all things considered.

comment 3y ago · link · parent

In all honesty, though, "I have to look at the provider's documentation to determine like 4 URLs to add to a configuration" is not that wild of a thing? How much friction is too much friction?

> How do you validate tokens? (Either on the resource-server end, or on the client-end to know if trying to talk to a resource-server is a waste of time, or to know if your post-redirect-uri is getting spoofed):

At the beginning of the "standard" OAuth flow you can pass in client state. So you generate a signed nonce. Remember, you are starting this flow, so you mix in some user data (avoids CSRF problems), and you are pointing to some HTTPS site.

This is not 100% perfect compared to "remote server has some signing" but it does allow purely local verification of tokens when they are first received, as you can stick stuff into the "state" request parameter (as anyone should be anyways to avoid trickery).

comment 3y ago · link · parent

It's very hard to disassociate everything from placebo effects, and I had a CO2 monitor in my bedroom plugged in for a while.

It trained me to open windows to create circulation, but unfortunately some of the reduced airflow was unsolvable short of me like... installing more ventilation into my room.

I am glad I am aware of CO2 stuff (and definitely feel like I've reduced headaches and the like from being more mindful) but sometimes you will be informed of a bad CO2 environment but be totally incapable of doing anything about it and that really sucks.

comment 3y ago · link · parent

What quality bar does Dark not clear?

American shows do of course get wild budgets and can do some crazy stuff, but there’s good international tv

comment 3y ago · link · parent

I really wish that screenshoting was easier. Not hitting print screen but like… when I take screenshots, I want to automatically make a little journal entry, easily annotate with arrows that “look good”, and have subsequent screenshots also get bundled in. Bonus points for a pdf export that applies nice defaults to look good. Same as how a Word 201x document default just looks way better than Google docs.

“Help me bundle a bunch of pictures in a low friction way that looks nice” is still an untapped market IMO. Google is theoretically some UI skins and nicer defaults away from doing this through Google Docs. A shock to me that Evernote could never figure out how to get Skitch working as a part of this

comment 3y ago · link · parent

There's probably a point here that they offer free credits and other ways for people to get "free bandwidth". So this is a way to avoid less friendly strategies to get pre-payments on this stuff, at least without going through a sales team.

I enjoy being able to sign up and just try a thing without interacting with a sales team, but... I mean. This is a video CDN, not a newspaper subscription. I definitely know what I would do (but I am not a successful business)

comment 3y ago · link · parent

I have never tried anything complicated, but the home improvement store close to me, I can bring a thing of wood and they will make cuts to them along certain dimensions for like 10 cents a cut. I don't know if that's an offering in the US but to be honest from an ecological and logistical standpoint "let's have people be sent bespoke planks of wood" feels like a thing with a good amount of externalities compared to "you go to Home Depot and ask for cuts there"

comment 3y ago · link · parent

Is the new one at least... kind of solid? I gotta say having my Kallax weigh less sounds nice if it doesn't fall apart

comment 3y ago · link · parent

A cell tower could be used to triangulate your position, but we're talking about an iOS app not being run by your phone company. This is why we have security features in iOS, at least in theory!

If you do not have location sharing enabled, how could a company running an app know about you? I can think of things like

- the cell phone company is selling your location info to the company, that has your phone number via SMS

- Guessing based on EXIF data from previous posts and previous location service usage ("you're probably where you always are")

Is there something else I'm missing? The point here is we are talking about an app on your phone (not some Apple service or the phone company) knowing where you are

comment 3y ago · link · parent

I think Ruby's equivalent would be something like rbenv (which is just a big shell script!). Java similiarly ends up often being installed through package managers or other bespoke system installers that would at the very least need to bundle a runtime.

To your point, One could write something like rye in Python, and then use PyOxidizer to package it up. I imagine a part of this is "Rust is fun", which is totally a legitimate reason to work it. And of course Rust comes with a very good distribution story (Go might have been another good answer for some people).

1
596061
225