skysight-inc/HackerNews huggingface dataset:
It is not useless. Countries love money laundering when the money is coming from overseas and the crime happened not in their jurisdictions. It's free money that circulates in the economy, pays some taxes and help their exchange rate. The only reason some of these money laundering hot spots (like Hong Kong or the Emirates) started clamping down on these operations is that the USA and Europe pressured them to. Switzerland removed its secrecy because of FATCA, not because they wanted to.

This law passed because 1. The regulator do not care about small guys; 2. They don't think small guys are moving that much money and are more trouble than profit; and 3. It looks like they are doing something. It also helps employ some people and maintain big cities real-estate by fake restaurants or shops. Ever wondered how some of these joints are able to pay rent and employees with so little customers?
Creating uneven playing field between foreign and domestic businesses was one of the reasons for brexit.
The industry needs to change. Charging all movies the same is ridiculous and just totally counter to all reality about their audience. We have fast food and gourmet, why wouldn't we have that with cinema too?

I suppose I could be reluctantly convinced to part with $5 or $10 for the latest predictable comic book CGI-fest. I'll pay much more for Fincher, or anyone else I actually respect. Trying to charge the same for mass-market lowest-common-denominator marvel or transformers nonsense as something aimed for the sniff art crowd sniff just sounds unsustainable. There needs to be a free-floating price, just like any other product with different markets.
It'd be fun to see this for the whole world. It would also make it easy to compute the answers to common quiz questions involving doubly landlocked countries, countries with most borders, etc.
One time I wrote simply “bug fixes” for an app update and it got rejected because the description was too short. I changed it to something more in the lines of “bug fixes and improvements” and it got accepted. I generally like writing changelogs for users but I also wonder how many people have automatic updates on and never read them.
Show HN: Remotelane – A Simple Remote Job Board
I kinda agree with you - it will be the case even within the EU (albeit with fewer steps) that VAT for anything must be collected and remitted from the sales country to the purchasers country.

It doesn’t take much imagination to see that this could be expanded worldwide, and that as well as paying postage you must also pay the tax to the carrier to submit. This is analogous to how some countries charge arrival / passenger taxes. (UK APD, US - various ‘security’ and ‘arrivals’ fees) You usually pay this to the airline and they must pay it on your behalf.
Most people in my circle refuse to use whatsapp because of privacy concerns or just simply that they don't want to use any facebook apps.

Since there is a mix of messenger apps out there that everyone uses, SMS is always reliable, especially when you interact with many different people whose preferences you do not know.
One problem is parsing C inevitably means parsing headers, which often means parsing system headers, and they tend to be full of non-standard C weirdness (and have new things added all the time) which in practice are often understood by clang and gcc and not a lot else.
> Ah, then the post should have gone farther: every coastal state, including Alaska and Hawaii, should have been bordered by each other.

That's not how geopolitical borders work. A country's segments (e.g. states) could have borders between them, but that doesn't mean that each has border with each other.

They just all belong to the same entity (e.g. here, the US).

(And state borders != country borders).
All UK packages received in EU will go through customs office and you will pay VAT + processing fee (depends on the delivery company). This is for all packages, no minimum value exceptions. I know I will be avoiding UK e-shops due to this.
In the case of many popular apps, it's a bit more than that: they're actively fighting what they perceive as bad actors, that is people trying to use their app not as intended, using their protocol outside of the official app and so on. In this case they have nothing to gain by describing the changes in more detail in the changelog.
The problem with robotics, is the difference between a world of atoms and a world of bits.

When the plague hit, I was sucked into an effort to build a ventilator, I still have a pile of parts that were purchased for it, but the chassis fabrication never happened, so I had nothing to write code for, thankfully the need evaporated. I learned that it takes MONTHS to get motors and gear trains supplied if they don't happen to be in stock.

If you thought the 1960s world of waiting a day for your output deck to see if your program compiled and ran was bad... it's got nothing on the world of supply chains.

You can buy off the shelf components from Motion Industries, but they are out of the price range of hobbyists.
I like Derek Banas' approach. He makes introductory videos for several languages.

They are suited for developers who already have some experience in another language, and they last from 45 minutes to 2 1/2 hours.

https://www.youtube.com/watch?v=U1EFgCNLDB8
They’re not, though. Just try extracting the document structure to e.g. power an accessibility system like a screen reader, and you rapidly find out that the text is an unstructured bag of characters and positions with no semantic information at all. No paragraphs, no marked headings, not even word boundaries. You have to attempt to infer from proximity and relative sizing.
ITT: non-medical people saying something medical is easy.
There's a lot of valuable, condensed knowledge here, but for those who wish to learn the language in a more interactive way I recommend Rustlings:

https://github.com/rust-lang/rustlings

I spent the last two weeks going through it and so far the experience has been great. There's a quiz at the end of most chapters.
Living in Norway I find this outrage somewhat amusing. Welcome outside of the EU. That's been standard since forever over here although it's usually the buyer that has to pay for processing.

A particularly extreme example was an old camera I bought on Ebay from Germany for like 25€. That was well under the 350 kroner limit for imports so I thought i didn't have to pay anything extra other than the relatively high 20€ shipping.
Turns out the 350 kroner limit also includes the shipping cost so not only did I have to pay ~6€ VAT but also 200kr(~20€) VAT processing fees taking my 25€ camera to 71€.

Norway has now completely done away with the 350kr limit so you always have to pay import tax (mainly to stop the flood of cheap 1€ packages from China). I haven't done many international orders since then but I believe at least Ebay now collects taxes as an intermediary.
The remaining JS API in the Chrome viewer is to support enterprise users with JS form validation.
> So then why use such numbers, when there's no expectation of accuracy?

The exact number is not important when considering the massive scale.
As far as I know the EU customs office will be collecting VAT on ALL packages from UK. At least that's the information I have on Slovak customs office.
That will work fine, because 2 is 'Copy', so it can be copied trivially (as are structs consisting only of Copy members which are marked as Copy). Roughly speaking anything with a pointer in it isn't Copy, though many objects will implement Clone, which basically just means you need to explicitly call .clone() to make a copy instead of it happening implicitly.
Most countries have exemptions for small businesses. In Ireland for example you do not have to collect VAT if your revenue is below 72k.

Presumably you should be able to afford an accountant by the time you reach that figure.

It's worth mentioning that you can't deduct VAT on your purchases if you don't collect VAT so if you have low margins that might be an issue.

Edit: The thresholds in Ireland are actually 75k for goods and 37.5k for services. The figure I remembered is out of date.
Why not just use Python to create the "things" in whenever you need to create them in the first place?

Just write the code taking idempotency in mind, and no reason to use Terraform at all.
Fair I guess; we're just arguing semantics. The point I was originally making is that:

'a: 'static is read "'a outlives 'static" [1]

T: 'static is read "T is bounded by 'static" (apparently, although I can't find a reference to it).

The syntax is the same, the meaning is different.

Maybe the 'static part of these two things is the same, but they seem to me to:

- mean different things

- use the same syntax

It is what it is I guess... just confusing as to why it was decided to use the same syntax for these things, instead of something different.

You could argue that adding new syntax makes the language more complicated; but I'm not sure. Does it make it less complicated when you overload the same syntax with multiple different contextual meanings?

Opinions probably vary.

[1] - https://doc.rust-lang.org/reference/trait-bounds.html#lifeti...
Didn't their gov plan to make UK a trade hub between CN, US, and EU?

And now not even the EU wants to trade anymore?
It bears noting that the native Nim FFI is very "thin" & easy. E.g., at least for code anticipated to be compiled by the C backend, you can just declare the C function as a Nim proc (EDITTED to look nicer on mobile):

proc csetvbuf(f: File,
buf: pointer,
mode: cint,
size: csize):
cint {.importc: "setvbuf",
header: "stdio.h".}
# ...intervening code...
discard csetvbuf(stdout, nil,
0, 16384)

c2nim is more helpful for larger C APIs with a lot of C structs and a wide set of entrypoints/API calls. For simple enough C code it can be used as a "starting point" to port the whole thing, but you will probably at least want to change things like a1, a2, etc. parameter names ("a" for "argument"). Nim has named arguments (like Python, f(x=2)) so such names are a bit more important. (Not that all code meant to be read by a human should not have good param names.)
Mathematical Humor and Jokes
>> There's barely any interesting development to the main character.

>> the author is not writing in the American tradition where a "character arc" is expected.

My critique is less about a "character arc" and more about any interesting development to the character. Let's take the main character, Wang.

So apparently he works in nanomaterials and he gets drawn into the story because of his scientific education and mindset. We’re told that he’s an avid amateur photographer, but this is just a plot device that gets discarded after serving its purpose. This happens again to his family; they seem completely pointless from the start. His family consist of a wife and a son, are alarmed at Wang’s strange behavior when he starts freaking out about the countdown. But they never really matter again. In all the subsequent developments, Wang never considers his family again. It's been a while since I read it, but to me Wang especially seemed more like a camera rather than a real human person with connections to his family, peers, society. He sees interesting stuff, but it doesn't read like it is happening to a human.

"Sing to me, o muse, the blandness of ...eh.. Wang".

Thank for taking the effort of writing the lines about the Illiad and the Odyssey. I've never read them, but I think I would enjoy a oral performance like they were given when the story was initially crafted.
Most (new) laws have loopholes. The solution is to close the loopholes, not abandon laws.
Never mind languages... how has the size of software evolved since 1996? Are we now delivering larger programs faster? I think we are.

This came to mind because of a quote I came across the other day, in a paper from 1980:

"Interlisp is a very large software system and large software systems are not easy to construct. Interlisp-D has on the order of 17,000 lines of Lisp code, 6,000 lines of Bcpl, and 4,000 lines of microcode."

("Interlisp-D: Overview and Status", at http://www.softwarepreservation.net/projects/LISP/interlisp-... )
You can just scroll to the bottom. That's where all the downvoted comments go.
Building a SQL Database Audit System Using Kafka, MongoDB and Maxwell's Daemon
Ah, Fate of Atlantis. As a kid, I used to bike to our local library to play it on the library computers - they had a surprisingly decent game selection.

It was either this or another Indy game where you could win any fight by pressing a specific key (causing Indy to instantly knock out the opponent.) I remember learning this trick from a random kid play the game at the same library.

I sometimes wonder if the streaming era has killed that kind of "serendipitous discovery" which was an important part of some of the more important childhood memories.
Magnitsky sanctions, or something that forms part of the road to a much broader application of them.

The US (and indeed UK and EU) has the power to squash tax havens. The big countries are not hostage to the little ones, things are the way they are because of who it benefits.
It is bugfixes or performance improvements about things that exist, though.
Sama says Move faster. Slowness anywhere justifies slowness everywhere
People should care about textbooks. I think it's misguided to think that real scientific value lies only in original research.
I have to say -- I'm rather amazed to see folks downvoting this comment. Make of that what you will but I think that speaks for itself.
In the same vein as "Do your own homework, OP." or am I misreading?
Small businesses are usually LLC. This will most likely target C-Corps than anything else. But yes, this will make life hard for anyone running a remote C-Corp and does not have enough revenue to be "legitimate". This also will inflate costs for small businesses running legitimate operations: Rent will go up, Harder to recruit people and Less profit or no profit. I lived near a place like this. It was impossible to run a profitable coffee-shop or restaurant because there was lots of competition, little customers and sky-high rent costs. It seemed like 90% of the activity right there was simply fake or driven by the money laundering economy.
Encrypted Backup Shootout
technically yes, but it'll change the semantics in a not useful way. Because if you leave off the & on self then the method won't borrow self (take it by reference) but consume it (take it by value by 'moving' it), so you can't use it any more after calling clone(), which basically makes the method a no-op instead of copying the struct.
You stopped reading and formed an incredibly offensive and demeaning opinion of them, validated by something that doesn't exist?
Amazon search is failing us
Red wine contains resveratrol that have anti-aging effect on mice. To get effective dose of resveratrol, you would have to drink unhealthy amount of wine, which beats the purpose. You may google David Sinclair talks, he talks about resveratrol, NMN and metformin.
I bought Microsoft Windows. It has no actual glass windows in it. Is it reasonable to demand the OS not be sold so to avoid confusion and false advertising?
Thanks for pointing that out, it's an important detail.

I worked on a VAT system for an online store but I never looked into the regulation so my knowledge is limited!
Are these services legal?
I think it’s time we consider that George Lucas is a mostly mediocre filmmaker who peaked in 1976.

How Spielberg let Lucas talk him into the fourth Indiana Jones movie is beyond me.
I believe lunchclub.ai is solving for it (raised from a16z) - very tech focused though.
It was normal in the UK as well for the receiver to pay import duty and VAT on purchases from outside the UK/EU. The scale of imports meant you could get quite lucky with whether or not you’d actually end up doing so.
This change is particularly insane. If you are an overseas business that sells goods that cost £135 or below (per consignment) you have to register for VAT in the UK. If you sell goods that cost more than £135 you don't however because the VAT will be collected as import VAT at the border. Basically this is all about shifting the administrative burden of collecting VAT from HMRC and customs and excise onto exporters. The only bright spot is that online marketplaces rather than sellers will be responsible for collecting VAT, so if you're selling on Etsy, eBay, Amazon etc. you don't have to worry. If you're selling directly though you do.
[1]https://www.gov.uk/government/publications/changes-to-vat-tr...
What confuses me is... why do you think the meaning is different? There is no meaning overload. It's a single meaning.

T: 'static would happily typecheck with &'a str if 'a: 'static.

T: 'static typechecks:

- OwnedValue

- OwnedValueWithReferences<'a> where 'a: 'static

- &'a ReferencedValue where 'a: 'static /// &'static ReferencedValue

- Foo<&'a Bar> where 'a: 'static /// Foo<&'static Bar>

...and more.

See the example here: https://play.rust-lang.org/?version=stable&mode=debug&editio...

Notice how bar2 has a &'a str where 'a: 'static and it can be happily passed to bar.

Of course in T: 'static you're subtyping a type and in 'a: 'static you're subtyping a lifetime (which implicitly subtypes the type that it's applied on)... but the ": 'static" part means exactly the same: "the left part of this bound can live up to the end of the application". Whether it's a lifetime, a borrowed type or an owned type does not matter.

> It is what it is I guess... just confusing as to why it was decided to use the same syntax for these things, instead of something different.

Because they are the same.

We could of course separate them into 'noref, 'yesrefbutstatic, 'staticref, etc. But then we'd have a needlessly restrictive std:.thread::spawn that would accept only Owned, or only Owned<'static> or only &'static Referenced. The implications are the same, hence they're the same. We wouldn't gain anything and we'd be needlessly restricted.

A simpler way to put it: owned values have an implicit 'static lifetime.
MHTML is a neat format, it's unfortunate it never got much steam. I think it could have been more popular if web browsers had defaulted to it when saving pages, rather than this weird html + _files/ directory (which on Windows is mysteriously linked so that when you delete one, you delete the other - no idea how they do that!).

What I've read of EPUB is also pretty disappointing. Seeing as it's a compiled format, once again, instead of going the zipfile + bunch of html inside + specific layout, we could have had a subset of html in .mhtml.gz with, like, metadata in a <script type="application/json" id="x-epub-metadata">. And then, guess what, web browsers could have been able to read it natively…
Biting my nails. It's been a stress response since I was a child and I'm sick of it.

Also, tunnel vision. If work becomes stressful, I find myself only able to focus on work, even outside of work hours. I have made it my goal to be more mindful of my stress levels, but also to make sure I don't forget about my responsibilities in my life.
I don't understand this. I'm in the UK and when I order items from the USA the shipping party has to declare the category of good and value to customs. Customs then invoice me for the VAT, any duties and an inspection fee (usually £12 / $ 16 US).

Is this changing for the US as well?
Translating your product into 30 different languages is pretty expensive, as is finding local representatives who know their markets and can advertise efficiently. Americans are much more culturally alike to one another than they are willing to admit.

And from the standpoint of e-commerce, shipping charges across Europe are expensive compared to the US. We do not have any common, reasonably priced service similar to US Post. Sending a package to Spain will cost me more than twice as much than sending it within borders of my own country, and the delivery will take several days.
https://verapdf.org/
Hosting Your Projects on Vercel
Olive oil is a fat. There is 120 calories for 1 tablespoon. Sure it’s healthy fat, but it still has a lot of calories. Butter actually has less calories per tablespoon than olive oil.
A lot of people here would like this level of detail, actually. But general apps are intended for the general population, which is why big orgs go for the minimum watered down version. It's more work and overhead if they confuse their users.
> More abstractly, deleting a day of memories is still pretty close to a form of death

Not only is it not for a living being, but it's definitely not for a non-living device.
OTP-Java
https://www.reddit.com/r/java/comments/ko8wa1/i_just_publish...
I am working as a works council member. I have access to anonymized salary information.

Problem is - I can easily deanonymize at least 15 - 25% of all people working at our company. It isn't easy. Also in Germany we have a law in place that allows to query your employer for average salary data in some specific cases (there have to be at least 6 comparable coworkers of the other gender).

Bu I agree - I would love for a more transparent approach. Even if this can come with it's own problems.
>But that code isn't portable for a different endian machine.

But it is. That's the whole point, to not bother with weird endian conversion macros.
Two months ago I woke up with tight fingers/hands, feeling really weird in my arms as well, that gradually pulsed between discomfort/numbness/pain in the arm/forearm/hand/fingers.

It scared the shit out of me, and when I looked at the mirror I was all twisted with a shoulder forward and pushed up, the other shoulder was lowered, and my back was bent forward and tilted to the side of the downward shoulder.

I couldn't lift my left arm without pain because my shoulder blade was coming outwards.

It was a fucking mess. I was baffled how did I get into that? Did I develop some neurological problem? Did I hurt myself during sleep and damaged something? Nah...

...it was all because of years of poor posture and sitting for hours in front of the PC.

So I'm committed to unlearn the bad sitting/posture habits that I've acquired for more than a decade. It's not just about standing desks/ergonomic chairs, we need to move regularly, rest in different positions other than sitting, and develop the strength required to keep a good posture.
Is there a list somewhere or how do you know most countries have this?

I've never heard of it and would be very interested in taking advantage.
Misunderstanding tailwindcss/typography costs me 2 hours
> But that code isn't portable for a different endian machine.

Except it is. On x86, which is little endian, compilers are smart enough to convert it to a mov.

> These functions will either swap, or not, depending on the endianness of the target machine

So will the above. Here's the MIPS little endian version:

read_int32(unsigned char*):
lwl $2,3($4)
j $31
lwr $2,0($4)

This doesn't swap. The MIPS big endian version:

read_int32(unsigned char*):
lbu $3,1($4)
lbu $2,2($4)
sll $5,$3,8
lbu $6,0($4)
sll $3,$2,16
lbu $2,3($4)
or $3,$5,$3
or $3,$3,$6
sll $2,$2,24
j $31
or $2,$3,$2

This swaps and ors. What part of this do you not consider portable between different-endian machines?
This is an interesting asymmetry.

I was able to buy from German Amazon with a shipping charge around 4 Eur to Czechia. But a package from Czechia to Hamburg cost me 12 Eur.
Ask HN: home filing
What directory structure do you use for keeping your (life, personal, work) files in order? It's a new year and I'm thinking I need to do some reorganisation. Help!
You can maintain a file with the current/next changelog in your vcs and pull from that. Works with automation, but is still curated.
Stocks in Motion – 2020 in 60 Seconds
A benefit if it being in public domain is a variety of new editions to teach from.

Cheap paperbacks containing just the story and which cost just above the cost of its paper and ink. Slightly fancier versions with introductions by literary scholars. Thick annotated editions with every allusion and reference explained with lengthy footnotes.