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

Everytime I read those kind of news from the UK, I think about the "finger" from V.

It seems we are more and more urging to build the society half of the books we read told us to avoid at all cost.


Apparently PRISM has not been a wake up call.

What do people need ? Apple coming and killing their cat ?


Even knowingly using child labor wasn't enough [0] - or people just don' know about it, so spread the word please. This is how Apple actually care about children unlike what their PR says [1].

[0] https://news.ycombinator.com/item?id=25607386

[1] https://news.ycombinator.com/item?id=28309202


> Apple is using device serial numbers for anti-spam, supported by a fully-authenticated hardware and software stack that does not allow user modificatio

Ah, perfect tracking. Let's add that to Pluton list of promises.


It's more than that. First, they will put Alexa on it, so you have it everywhere in your home.

Then, they will fill it with as many sensors as they can do give you extra information. It will protect your home against burglars, survey your kids, prevent your cat to scratch the sofa, etc.

And with the camera, microphone, lidar and so on, people will happily let the little bugger record their entire life.

This will create the most reliable database about consumers including their money, interests, brand loyalty, level of education, people they meet, life rhythm, etc. This alone will make a lot of money.

Eventually, it will play contextual ads, in your home.

And of course, each one is an entry point for the Amazon domotic ecosystem, giving even more of your life to Amazon.


> money, interests, brand loyalty, level of education, people they meet, life rhythm, etc

All of this is widely available from your browsing history and social media. And every marketing database on earth already has your income level.


This comment is a plug.

I've tried many alternative to make over the years, and eventually, doit (pydoit.org/) was the one I sticked with.

It's declarative yet dynamic, it's simple yet powerful, you get to use shell command or a custom function, and it deals with all the things you need like deps and targets, creating a dag, caching, etc.

It's the sweat spot for me.


Everybody that sold nix to me said the goal was to replace the complicated side effect mess that is our current stack with something simple and pure.

As with FP, eventually, practicality beats purity I guess.


> As with FP, eventually, practicality beats purity I guess.

Until you can take enough advantage of purity that it's practicality is higher.


Probably not worth it. Not trying to be dismissive but genuinely, it's fine to have side effects and if it saves 1000 hrs of engineering over the life cycle of a project I'd wager it's completely worth it.


The keypoint here is that nix requires a larger up front investment. But once done it will save you 1000 hrs of engineering in the long run. It's absolutely faster to start a project without nix and just start coding. But once you have many deps, multiple developers, ci, multiple environments nix becomes a no brainer.


But the big problem in the end will likely be that you have no idea how reproduce the setup from scratch again


When Bell Labs was doing cool stuff, few people knew about them.

It's only retrospectively that they are famous, because we have all those historical tech figures that went there and got blown away. Then this bubble expended, and year later, it became public, common knowledge.

It may happen the same way for the places you are talking about.


Disabling notification is like zero inbox now, it takes discipline. I'm glad I started early because if I had to do so from scratch now, it would be terrible.


I have a friend working for a company whose biggest clients are in the Emirates. One of said client is the government, and it is asking them to buy some very specific equipment, knowing fully well this equipment is only sold in Israel.

However, the Emirates cannot trade with Israel, and refuse to pay for any equipment labelled as coming from this country. Calling one of the officials, they asked for a solution. They told them to ship everything first to the UK. There, they should unpack every single object, and package them again with different country labels. Once the box has passed custom, nobody will raise the topic about the equipment origin.

And so this is what they do.


Yes. Some do it in Marseille, France.

Citizens of many countries would be in big trouble if they have a stamp from Israeli customs on their passports. Customs apparently issue a separate document not to put a stamp on the passport as a result. This enabled many tourists who are "not supposed" to go there to nonetheless go there.


Something similar happens in Turkish occupied Cyprus.

The Turkish airport in Turkish Cyprus is not recognized by Greek Cypiriot government, so if you do fly from Turkey to Cyprus, it is not considered a valid port of entry.

Thus you will get a stamp on a piece of paper, which you need to leave the country back to Turkey.

When traveling between the Turkish and Greek side of the island, the checkpoint guards will inspect your passport. As Greek Cyprus is part of the EU, EU laws require all EU Memberstates to allow free travel for any EU citizen. Likewise, due to agreements between the US, Cyprus and the EU, US citizens are too allowed free-travel. Citizens from other countries run the risk of being denied entry.


Before they started doing that, my dad was able to get a second passport just for Israel. Technically you were not allowed to have more than one passport (Ireland, 70s), but they made an exception.


They'll actually still do it for Israel and Iran I believe.


I’m not sure if they still do but you used to be able to hold two passports simultaneously. One that was ‘clean’ for countries that didn’t recognise Israel and another for Israel.


You still can in the US. [0] This exact use case is listed as one of the reasons the US Department of State will issue a second passport book.

[0] https://travel.state.gov/content/travel/en/passports/have-pa...


Israel stopped stamping passports years ago, as I understand it. They give you a separate piece of paper/plastic instead.

There may well be other combinations of countries that justify a person having multiple passports.


Last time I checked (4-5 years ago) this was true for international airports but not all land crossings.


Differs by country, but certainly true some places. Norway for example allows you to apply for a second passport, and the need for a "clean" one is one of the valid reasons you can give.


I meant citizens of the other countries that don't have diplomatic relations trying to go to Israel. They only have one passport and would be in trouble if they visited as their passport would be stamped, thus the scheme of a separate document. Meanwhile, the government buys things from Israel that transit via some nearby country to "simplify imports" through "creative incoterms" and naming and all.


I was annoyed by this - I wanted the stamp as a souvenir. The first time I went to Israel I got the "stamp on a sticker" thing, but the second time I just asked and they explained the reasoning, I affirmed my intent, and they stamped it.

That passport is since expired (it only had 3 years on it, at time of stamping), and my new passport book will get me wherever I happen to go. The souvenir sits safely in my safe.


Aren't you required to turn in your expired passport to get a new one, or report it as lost.


When renewing, the US returns the original passport with holes punched through it.


Yep, my old passport has a hole punch, and that's part of it's charm.


This is also what used to happen when a citizen of the US (and anyone else who requested it) entered Cuba. Cuban immigration would take a little piece of paper, place it in the passport, and then stamp the piece of paper.

If the traveller happened to remove that piece of paper once the returned from Cuba, so be it.


Cuba does the same thing for American tourists who might run afoul of America's export/trade ban.


As a non-aware, are you talking mostly about citizens of Middle East countries?


Citizens of middle eastern countries that are hostile to Israel would care the most, but other international travelers also benefit from avoiding the Israel passport stamp to avoid unnecessary difficulties if they need to visit those middle eastern countries in future.


Tell your friend to tread carefully with requests like this.

My yearly "Business Conduct Training" (required by my employer) explicitly lists things like this as against company policy, a fireable offence, not to mention potentially illegal (circumventing embargoes, trade restrictions or sanctions).


Americans have extra rules to follow, so they simply can't do work like this and they are done by other companies who are either not subject to such rules, or exist in countries that won't enforce those rules.


My "Standards of Business Conduct" training says exactly the same thing.


He should be careful, but presumably it depends upon which way the trade is going.

I don't believe Israel had any issue with Emirates. It was Emirates blocking Israel (side note: this seems to have changed recently).

So, as long as you cover yourself with Emirates, you can execute that trade and not get hung up.

If, however, Israel were the one embargoing the export, you would get yourself in really deep shit.


In the US at least, running afoul of Export/Import controls and laws guarantees a stay at Club Fed.


European here: Is Club Fed slang for prison?


Yes, apologies and thanks for asking for clarification. It's slang for Federal Prison, but for white collar crimes (less austere accommodations).


It's a play on Club Med (which is more of a European thing, Med being short for Mediterranean, and here Fed short for Federal, as in Federal crime/prison).

I had never heard the term before today, but did appreciate its cleverness.


Same here - for $VERY_LARGE_COMPANY.


> the Emirates cannot trade with Israel

This is no longer true. The UAE normalised relations with Israel, almost two years ago[0]. There are even Israeli VCs, like Entree Capital, funding startups in the UAE.

[0] https://en.wikipedia.org/wiki/Israel%E2%80%93United_Arab_Emi...


Somewhat odd, considering that NSO group sold their services to the UAE


I know some storys with relabeling some products in Switzerland to. A country would not deal with the EU. So stuff came to Switzerland, got a new label and got shipped.

International trading is a kind of funny place. I know a women who works on a company who make also things for large gas pipes (process industrie). She said, long before the war started, funny thing happened with a lot of involved companys.


> She said, long before the war started, funny thing happened with a lot of involved companys.

Are you able to give any examples?


Got new banc accounts, changed owner, etc.

Most prominent example: Germany Launches €10 Billion Bailout for Gazprom’s Local Unit

https://news.ycombinator.com/item?id=31773314


Isn’t that all long after it started though?


Yes and now. Maybe this was a bad example. The start here was short after the war started, true.

Since I also don't know any names by myself, I can't tell much more.

But it was the only example in the media.

Also interessting is, but I never read why somewhere, Rheinmetall Defense for ex., they made year for year the same amount of money (10 years back). Until two years before the war, they made much more and one year before the war, more much more money again.

Also I know a guy who workes there sometimes. He said they had all hands full of work ti produce munition at least a year before the war started.


> the Emirates cannot trade with Israel

Is "cannot" really accurate? Isn't it more like they voluntarily chose not to do so?


There is this human convention about "can/cannot" that assumes the reader is able to figure out the nuance of it.

If I say, "I can't walk it the street naked", I'm expecting you to understand the underlying causes. I'm not expecting that I have to explain to you that, yes, nothing prevent me physically to walk in the street naked, but indeed, I chose every day not to do it because I don't want to pay the social and/or legal price for it.

In the same way, given that tensions in the Middle East are pretty famous and that political issues between Muslim & Jews have implications in international trades, I'm making the assumption readers understand what "cannot" means here.


My point is that the UAE is a sovereign country. The only law that prevented trade with Israel was the one they made themselves. There wasn't any legal price for repealing it.


Indeed, and again, I'm expecting you to understand that they are making this choice because they don't want to pay the consequences of it. And that "cannot" is a short way to state that.

Now, from reading your comments, I'm going to assume you are in good faith, and you simply can't see what consequences they can face.

Although we can't know for sure such things without being an expert in middle-east politics, one can understand that if two groups of people have been at odds with each others for a long time, suddenly doing business with the opposite party is going to have political consequences.

E.G: assuming you are American. If you are a republican group, you can get financed by a left-leaning institution, but this will have political consequences.


> they are making this choice because they don't way to pay the consequences of it. And that "cannot" is a short way to state that.

I don't think that's a short way of saying the same thing though, for the kind of consequences you mean at least. Imagine if I were a vegan for ethical reasons. It'd be fine for me to say "I don't eat meat", but a lie to say "I can't eat meat", since I'd be perfectly capable of doing so, and be fine if I did, and just not want to anyway. Contrast this with if I had alpha-gal syndrome and someone me offered me a steak. In that case, I could truthfully say "I can't eat that".


Being neuro-atypical, I understand the desire to be "technically correct, the best kind of correct". It would be so much better if we used each word for their exact meaning.

But that's not how most human communication work. When people say "I cannot come tomorrow", they usually don't mean they can't. If you gave them one billion dollars to come, chances are they would.

This is a fairly common convention, and most people in the English language are using this approximation and assumption.

You can chose to ignore it of course.

I consider I've done my part in this conversation, and wish you a nice day.


> But that's not how most human communication work.

It's not even how it can work. See the Malicious Genie problem for a memorable demonstration of the fundamental problem. Chasing "precision" beyond what's necessary tends to harm communication, not aid it. Norms and context are super-important.


So then since relations have been normalized, no there would not be significant consequences to them engaging in trade, so it would be mean that yes they can trade.

Using the definition that you gave, yes they would be able to trade, because many of those bad consequences of trading have gone away.


Someone with alpha-gal can absolutely eat meat. Nothing is stopping them from chewing and swallowing meat.

It would be a terrible idea, with drastic consequences. But they absolutely can.


Sure. What I was trying to distinguish was between something that would cause real harm for reasons outside of your control, versus something that goes against some principles you made up for yourself but with no other consequences.


When Gaddafi was overthrown, they sodomized him with a bayonet before shooting him. There are serious consequences to having your populace hate you.


> Contrast this with if I had alpha-gal syndrome and someone me offered me a steak. In that case, I could truthfully say "I can't eat that".

If the person said: "eat this steak and I'll give you a billion dollars or don't, and I'll kill everyone on this planet in the most painful way imaginable, including you", I doubt your response would be "I can't eat that".


  political issues between Muslim & Jews
There are no political issues between muslim and jews. You maybe meant : - there are political issues between the jewish state and it's muslim majority neighbours - there is a conflict between jews and muslims in Palestine and Israel


> there is a conflict between jews and muslims in Palestine and Israel

There's a conflict between the settlers/gentrifiers (and their police State, military industrial complex, and security apparatus) and the rest of the population. From what i hear there is still an anti-nationalist/anti-colonization/anti-war jewish movement in Israel, what remains of a once-strong internationalist socialist/anarchist jewish movement.


Used to. Israel and UAE normalized relations in 2020 and signed a free trade deal this spring.


That's what I thought too, not sure why OP said "Emirates cannot trade with Israel", maybe its an old anecdote.


Old anecdote, and I'm French, so I'm probably using the incorrect tense to tell the story.


Yeah makes sense. I love the politics like this where everyone is firmly in solidarity but everyone is making deals out the back door. Like Europeans at war with Russia but buying gas, Americans hating China but spending all their money on stuff made there, Communist leaders hating America but sending their kids to school there.


Cuba getting stuff from America, pro-life manifestants getting abortions, USSR smuggling US computers, KKK members surfing Ebony adult sites.

That's just humanity at this point.

We are full of contradictions.


Sure. My point is just that the UAE could have done that whenever they wanted; nobody was ever forcing them to not trade with Israel.


I'm not sure that, at least historically, that would be looked upon amicably by their neighbouring countries or populations. That has changed over time though which has allowed this to happen.


I read that as shorthand for "Emirates-based entities cannot..."


> However, the Emirates cannot trade with Israel,

that's a ruse used only internally to foment hatred against "the Jews"

https://foreignpolicy.com/2016/08/25/the-uae-spends-big-on-i...


It is possible to disagree with a state and it’s policies while being fine with its people. I’d put quite a few countries in this category.

I’m pretty confident that’s not what the UAE are doing, and don’t support them.


Why go all the way to the UK to do the swap, though?


Unlike in the US, where it is expressly against federal law to remove origin marks, and sure to attract enthusiastic prosecution, the UK has no law – Act of Parliament or secondary legislation – which generally requires products to be origin marked. The exception to this is food which is required to be origin marked under EU Regulation 1169/2011. Origin marking for all products other than food is voluntary. So that is why.


Don't know. Maybe they have a platform here.


I really like ULID for this problem (e.g: https://github.com/ahawker/ulid)

- similar characteristics to UUID: same number of bytes, equivalent collision resistance, hard to guess, etc.

- start with a date, is monotonic, and is lexicographically sortable: not only it has great locality but sorting is super easy and most code get it right by default.

- can be created from an existing date or uuid, and exported to a uuid, so there is a migration path.

- you get the creation date for free, which is always nice. As a bonus, you can now use the uuid as a base for dispatching, bracketing, sharding, etc.


> you get the creation date for free, which is always nice

Leaking information is not “always nice”. For example using that as an id for a medical record would give you specific information for the date of diagnosis or treatment.


Sure. And a extra $100000 in your bank account isn't "always nice". It may get you flagged by the IRS and you may have more chance to now be inspected.

They are always exceptions.

"always nice" is a matter of speaking.

There are very few things that are always true, and I assume reader know that.


While I don't disagree with this statement, it also seems to make sense to me that you were corrected. Words mean things and if you use a word in a way that someone disagrees with, there you go.

Probably just don't take the correction so personally. I think quite often it is the case that a person "corrects" in this manner (remember: this is a public online forum) because they want the thing they say to be visible alongside the thing they responded to.

Not you, but instead the next reader, will read what you wrote and then build their medical/finance/legal application thinking that the availability of additional metadata can't possibly have any downsides. But (perhaps) now that reader will read the response and not make said mistake.


> "always nice" is a matter of speaking.

Incorrectly. It's a matter of speaking incorrectly.


You remind me of the TV bits in the movie "the invention of lying".

They can't lie, so they are perfectly correct.


I think I'm supposed to feel insulted, but clear communication is very important, so thank you for suggesting that I communicate clearly.

I suggest you also pursue clear communication, in which words are used to communicate what they mean.


Also a fan of this format though I wish it was native to postgres so we dont have to convert to UUID for storage (maybe a custom type would do it).

For reference here is my plpgsql implementation: https://gist.github.com/Sytten/8fa334e8a5de5d49924c794811a80...


isn't UUID v7 basically ULID? So you can just use UUID v7 for same effect


UUIDv7 is still a draft, but seems relatively uncontroversial so will likely be accepted. Still a lot of libraries and systems with uuid support are hesitant to add v7 support until it got gets finalised, so for now ULID has more widespread support.

They're basically the same, except uuidv7 has a few bits less randomness for UUID fields like version and variant, so I'm sure in 5-10 years the answer will be just use v7, but for the time being, for those use cases I'd stick to ULID.


We evaluated ULID but we wanted something that is future proof for our decentralised secret sharing system. So we implemented UUIDv7 in TypeScript called `IdSortable` https://github.com/MatrixAI/js-id

It allows strict monotonic IDs when you provide it the previously generated ID. The resulting data structure is a Uint8Array making it easy to put into binary structures. Can also be used as a key inside any POJO record.


Same here. I am really, really hopeful there is a drop in replacement for ULIDs if they ever get abandoned.


I expect the new UUID formats (https://datatracker.ietf.org/doc/html/draft-peabody-dispatch...) to fill that need once they get standardized and made available in standard libraries or popular packages.


Especially UUID7, it it becomes standard, ULID won't be necessary anymore, unless you want a shorted text representation.

But ULID exists right now, UUID7 is still in the making.


The last draft expired without any consensus so I dont have high hopes for this one. We will see.


It's not a very complicated algorithm, they can't get abandoned, you can always recode it, and use it.


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

Search: