Hacker Newsnew | past | comments | ask | show | jobs | submit | tttp's commentslogin

we encoded the id with a base that removes most vowels (to avoid generating words, potentially offensive ones, and added a checksum to prevent copy paste mistakes

it worked quite well so far

https://dxid.tttp.eu/



"This memo provides information for the Internet community. It does not specify an Internet standard of any kind."


Note the qualifier: “not an Internet standard” (my emphasis).


And again: None of that matters. I am not talking about formalities here, I am talking about technical realities.

Whether it is formally called a standard or no doesn't change the fact that this is the document everyone points at when determining what CSV is and is supposed to look like. So it is de-facto a standard. Call it a "quasi standard" if that makes you happy.


Oh no; I agree with you completely. I just wanted to point out that the document does not disclaim being a “standard”, is just says that it is not an “Internet standard”.


My mistake, in that case, thank you :-)


We need to separate the storage format (Postgres and MySQL both have a bigint serial for primary key and it should stay that way)

for display, you have various ways to encode that number into something easier for humans, what I prefer:

- short word - no offensive words - with a checksum (so we easily spot any copy paste mistake) - not sequential - can be put in a url without extra encoding

this is our implementation of that (base32 and luhn code)

https://github.com/tttp/dxid


OP is protesting against Amazon providing infrastructure for selecting targets for the IDF to bomb. I'm not aware of Amazon providing services to Hamas, so that the OP is not protesting there isn't that surprising, nor does it imply that OP isn't protesting against Hamas attack.


Speaking about pro-palestinian activism in general, not particularly OP, who I don't know:

If one is an activist, a group commits atrocities and there's no private business related to them, then one sits and do nothing?

The people I see protesting against Israeli invasion of Gaza I failed to see protesting Hamas brutal and inhumane attacks weeks earlier. It seems to me they were silent.

I'm having a really hard time understanding the logic of this kind of activism. It seems to me ideology driven, not humanitarian.


There's nothing to protest against - the government does not support or aid Hamas, and corporations do not support or aid Hamas.

What change would the protests do?


So if it's not possible to boycott an American or Israeli business, there's nothing an activist could do to manifest his support to humanity when innocent people are slaughtered inside their houses by savages?


What support, specifically, would you like to see?

Directly after the attacks the government was overwhelmingly in support of Israel. People do not protest when what they want is already happening.


I tried something similar with a fixed alphabet that guarantees no profanity and a checksum (luhn)

https://github.com/tttp/dxid


you might want to consider an alternative with a base32 encoding with a luhn checksum

https://github.com/tttp/dxid


Hi,

It's solving a tiny problem that annoyed me for many years: find a way to have unique keys for entities that don't have an obvious one without displaying their primary key as a number.

base 10 is not the best representation here.

feedback welcome!


I'm glad that it works better for you, but I have literally none of the problems you list.

I have never in my life typed out a URL (with an id, google.com and stackoverflow.com don't count).

I don't put naked ids alone in spreadsheets. If, once a year, I do need to make a spreadsheet, I put full URLs there.

Length of these ids is comparable to that of base-10 numbers and neither are "very long".

And so on.


thanks for the feedback, you're right, the "url safe" isn't the main focus (well, shouldn't, it's just that it's the last issue I had ;)

For further context, we are working on online campaigns (petitions, sending emails to elected representative...) and everything has either ids (numbers) that we generate (a campaign, a action, a supporter...) or given externally (eg. the elected representatives or vote reference).

Most of these ids are in the 1k to 100k range, that happen to often be the same range as the number of actions taken or emails sent) and mixing these KPIs and ids on the same lists happen to be confusing for users.

It might be that we shouldn't try to put these ids in lists and summaries, but they are super convenient there sometimes and unavoidable when exporting to excel, so dxid was my solution to work around our potentially poor ux design ;)


"I have spent my own personal money to pay for the curl server and I've spent my own (spare) time on its maintanence now for over twenty years"

So some of the hosting is paid by him directly


But.... what part? All their hosting that I could find is donated. I think he's talking about past hosting, as in, he wants to get reimbursed for previous hosting costs, not current ones.


If you live in Europe, you might want to sign the European citizen initiative banning biometrics

Reclaimyourface.eu


Thank you so much for the link! :-) I am going to share it with everyone I can!


Signed. Thanks for sharing.


Thanks for this comment. While it is a no-brainer for me to support this, I initially felt that this is hopeless and very few people care. But after seeing your comment, it pushed me to also sign :-) We shouldn't give up.


I tried to sign but was unable to pass the captcha on my phone.


Tried all browsers I have. Captcha doesn't even pop up.


Are you a robot?


They need 1 million signatures, they're currently at 51197 after 3 months. This is not likely to go anywhere. I guess people just don't care enough.


It's funny how you seem to believe that people "don't care" when it's actually more likely that people simply disagree.


Do you mean to say that people are fond of surveillance and facial recognition?


A lot of people are fond of security indeed! And I can imagine many even excited about this new technology. Maybe they just don't buy into this campaign. "we don't know what companies and governments want to use it for", but obviously gvts want to enforce the law and companies want to sell more stuff so nothing mysterious there and especially nothing against LGBTQI+ in the EU for sure despite the campaign's message.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: