skysight-inc/HackerNews huggingface dataset:
In my experience, product teams and engineering managers are absolutely incompetent when it comes to this basic...product management. I understand the value of having them do what you describe but I’ve never seen it done.
I have a lot of experience writing Bash scripts and I regret It.

Now that I have decent enough mastery of python to be dangerous I realize that you will get to a point where you wish you had access to all the niceties of a decent programming language.

Any shell script over 50 lines is suspect.
Which is a prototype to the small C utils that solve the problem better, and bash again
In an embedded system (== very limited resources), wouldn't you want to avoid any interpreted language, even shell? We have some very nice languages that compile to machine code these days
Combine it with 2FA, such as TOTP or SMS.
> But for reasons which are irrelevant to modern implementations, XMLDSIG prefers to stuff the signature metadata back inside the XML document that was just signed.

Out of curiosity, what are those reasons?
Apple probably doesn’t care, but this is necessary to change the press landscape. Right now the narrative is Apple is doing things to hurt Facebook - a million people signing this will change that narrative.
If the Saudis had not been so clumsy as to draw attention to the hit squad by asking for enhanced diplomatic status for them, they might well have succeeded in their mission.
That’s not at all what I am saying, you are straw-manning.
They might, but I think this is particularly common in the US due to the mandated branded medication in many healthcare scenarios even for drugs with lapsed patents. I think most younger, educated people in the UK would refer to them by the generic names.
Yeah, but you need to test whether the result is an error or not in some way. In languages with better ADT/pattern matching support (like Haskell or Rust) you'd use case/match operator, or whatever it's called.

I've read the issue, and it seems that it's more about the lack of overloading/dependent types, e.g. their example with pow function. In c++ you'd have two overloads:

float pow(float, float)
int pow(int, int)

Whereas in python, even though you can achieve the equivalent behaviour in runtime, mypy (at least until recently) couldn't express this, so you had to define something like

def pow(base: Union[int, float], power: Union[int, float]) -> Union[int, float]

Which might be annoying on call sites when you do expect the return type to be int (but there is no way for mypy to know that with such signature).

In my case I do want to return a variant type unconditionally, so this warning doesn't really apply. It's more similar to an Optional type (just instead of None I am using a more meaningful Exception): while it's not great if your code is riddled with optional return types, sometimes you don't have other choice but using it.
You can run it through shellcheck, no?
Cool idea,

A possible growth hack is to get some interesting content loaded. Possibly follow Twitter accounts or Reddit subs, or something.

Also agreed, need a front page where I can see other interesting content
Technically speaking, their income is from selling services to the people the’ve sold physical devices.

It’s also a good way to combat the push from companies like Google to bring down the prices of devices to allow for better tracking.
FWIW, the US is also protecting the wife of a diplomat who drove on the wrong side of the road and killed a man.

https://www.npr.org/2020/01/24/799143167/u-s-wont-hand-over-...
meh, they would still have needed the weapons material, so it would have cost more to make nukes but not made the whole industry unviable.
Come to think of it, I actually do. But of course if you don't then you won't have problems with the length of the bed.
I love whenever somebody criticise apple, they mention android :)
And how do you research for the formulation of such a law? Not really trying to defend anyone here with not much info, just it seems that asking parties for information about how the soup is made so you know how to regulate the making is pretty common, no?
OpenTTD Infrastructure Migration to AWS Finished Using the Open Source Credits
Right, it was more like an early morning train but practically everyone slept. Not the best rest of my life, agreed, but it was terrific (we went on babymoon to Berlin).
If they feel entitled to murder a US person like Khashoggi (and Trump did shield them, so that is not an irrational calculation on their part), no one is safe, whatever their passport.
> how the British thought

> crystallized world views that were prevalent

They were prevalent because they were correct. It has nothing to do with race. By the standards of history, nothing between two civilizations is as well documented as the protracted conflict (14 centuries) between the West and Islam [0]. You might argue that this perspective is biased, and you may be correct, but even critics of that perspective acknowledge that the long chain of historical events and accounts of historical events are undeniable, regardless of what you consider to be their cause.

[0] https://www.goodreads.com/book/show/37938325-sword-and-scimi...
It's still different from a targeted assassination.
I expected much much more than "millions". This is comparable with the national post in my country, a way smaller operation. Way to go Amazon!
I understand and can agree with the sentiment here in the comments but seriously he is screwed either way.

If he doesn't take it people will say he doesn't trust his product, the science etc.

If he does take it (or he and the exec team do) people will say, see just another rich guy getting his before the regular people do, taking advantage of the system. Or people will point to it as some sort of white privilege.

I think he should've taken it and accepted the "privilege" criticism to show confidence in his product, but I recognize he was going to get slammed either way.
It's the other way around. Defer is only capable of dealing with the surface level of RAII: creating and destroying something which only exists on the stack for a defined period. RAII is much more, it deals with the full lifetime of the object, including objects with dynamically defined lifetimes, and the lifetime of objects which are members of other objects. And you can implement defer with RAII very easily, with zero overhead, in C++. (there's a similar misconception which holds that features in garbage collected languages like try-with-resources, with, or using statements are a complete replacement for RAII, when they have the same problems.)
> This looks very cool.

Thanks :)

> Do you have a roadmap?

It's no written roadmap yet, currently I'm working on a UI library which is written in Mint, and these are things which the majority of people want which I'll work on next:

- Language Server

- Server Side Rendering

- Interfacing with NPM libraries

- Some new language features and cleanup of some of the existing ones

- A proper Time module

After those I think we can release 1.0 and focus on bugfixes and optimizations.
Blade takes electric flight to the stock market
Definitely an opinionated implementation.

It doesn’t make sense for generalized scripts that automate routine tasks. But for some maintenance, build, test, or deploy scripts that only ever perform a specialized job from a single location, it could be handy. I appreciate that Maciej provided it. Always easier to remove it than have to go find it yourself in the odd script you might need it.
> Not a lawyer, but is there a way to try to institute more stringent legal ethics at the bar level?

Sure, the same way you get the teachers union to help fire bad teachers or the police union to punish bad apple officers.

Which is to say: not gonna happen.
I think (but haven't tried myself) that you can nowadays even confirm your number on desktop, i.e. receive a text message on a dumbphone if need be, and then enter the confirmation code on your desktop.
This reminds me of a point my physiology instructor worked hard to hammer home in the senior year of my bio degree: do not assign agency to unconscious processes. I forget the rationale for this but find myself reflecting on it often.
This is common practice in the mining industry - create a company for the specific mining operation, funnel the profits back into the parent company, and then let the cleanup costs bankrupt the operational company when the mine runs out.

It'd be interesting to see if the tech giants could use the same approach - create a child company in Europe, funnel the profits and user data back to the parent (offshore, of course), then let the regulatory fines bankrupt the child company. Repeat at will.
Using `shellcheck --shell sh` is a good start :)

If adhering to POSIX it should run the same in bash, ash and dash.

Bash is kind of a moving target in it self, since it comes with many new features.

You have to be aware of which version you are targeting. For instance when using arrays, associative arrays, there is a diff between version 3 and 4.

Version 5 is even more competent and it's easy start digging to deep into the cookie jar and getting your hand stuck in there :)
3D Secure for those like me who didn't know the proper term, referring to an extra verification step from your bank e.g. SMS.

https://en.wikipedia.org/wiki/3-D_Secure

https://stripe.com/docs/payments/3d-secure
BASIC is 56 years old. Computers back then were not very fast, but interpretation was still viable.
tbh the first three lines are more than enough if you dont need arg parsing or special handling for interrupts. CI and the like where they are (repeated) one shots.

Notably the line you highlighted I do as SCRIPT_ROOT="$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)"

This preserves the cwd of the invoker (for relative files etc) wholst giving you access to your asset files etc.
Look up "shadow profile".
Show HN: Polotno Studio – Canva-like design editor, without signups or ads
It's an interesting discussion.

Of course I don't think blandifying ads is the way to go. Making ads attractive is a cultural phenomenon.

An implicit suggestion of fame, class, social status is fine. It's part of the game. It's an implicit suggestion in the end.

But everything has a limit. What might be acceptable in an adult ad might not be so acceptable for a teenager or a kids ad.

More worrying is propaganda, which is misleading/false in non-obvious ways and not explicitly an ad.
One could imagine a specific primitive operation in the language that lets you adjust the low bits of a pointer without casting it to an integer and back.
Looks cool. How did you get feedback from Jason Fried? Just cold-emailed him? Or was he helping in some way?
Ask HN: Why do you feet smell and your nose runs?
I have a shell alias for

mv ~/Library/Developer/Xcode/DerivedData ~ && rm -rf ~/DerivedData &

And I use it constantly. This approach is fast because it does the actual rm in the background so I can relaunch Xcode right away.
Yep, they're still working on that.
>"In 2019, Mozilla called on Apple to increase user privacy by automatically resetting the Identifier for Advertisers (IDFA) on iPhones."

Can anyone provide more context on this event? Is it not odd that Mozilla would call on Apple to "increase user privacy" when one of Mozilla's main(most important?) partners is Google which is the very antithesis of user privacy?

Then further down the post states"
>"That’s where you come in: We need a massive outpouring of support for Apple’s decision to help strengthen its resolve to protect consumer privacy."

While I applaud these efforts I'm curious how does Mozilla reconcile taking hundreds of millions of dollars from Google while taking this principled stance on Apple? This seems to be a bit of cognitive dissonance.
When the Saudi King visited Indonesia, the locals where forced to cover non-muslim religious monuments along the path his entourage drove.
And 15 to murder (the completely innocent) Ahmed Bouchiki in Norway 1973: https://en.wikipedia.org/wiki/Lillehammer_affair
Is COVID19 a New Type of Bio-Energetic Disease State?
Thank you for sharing your experience and for the lengthy reply, it was really enlightening!
Yeah, there were some bugs in the frontend and I think one in the backend. But there were zero bugs in the optimization pipeline, which is where typically the most subtle bucks lurk.

For more details, see https://www.cs.utah.edu/~regehr/papers/pldi11-preprint.pdf
The definition of "worth" in that context is also contingent on factors that have nothing to do with the quality or social value of the skill that salary supposedly represents.

Can you create an exaggerated perception of your skill in others? To what degree does your skill have latent demand vs effective demand? To what degree has your skill been monopsonized? To what degree does your skill apply to solving problems that are currently externalized?

Some simple examples: An amazing social worker could change the lives of dozens if not hundreds of people, however, since those people are broke & homeless, her target demographic is unable to compensate her for what she does (latent demand), and her salary is very meagre and state subsidized. An expert in environmental restoration could save a strip mining conglomerate millions of dollars while improving the health of hundreds of thousands of people in communities downriver, however because that conglomerate chooses to externalize those costs onto those communities, that environmental expert also ends up recieving a meagre state subsidized salary.
Extended lifespan is the megatrend that changes everything in the 21st-century
WSL 2's file system is running in a VM with limitations.

I have ~200gb of files sitting on a non-SSD that contain things like videos and a bunch of other files that I don't want to put in WSL. I'd really like to be able to use tools like find, grep and friends to interact with those files.

With painfully slow access to Windows mounted drives this makes using those tools not possible in practice. No one wants to wait 15 seconds to grep through a directory where the same operation finishes in 1 second in native Linux.

This becomes a real nuisance with my backup script that rsyncs things from WSL 2's file system + Windows mounted drive onto an external drive. It takes rsync over 5 minutes (!) just to figure out what it needs to send over the wire because statting hundreds of thousands of files on a Windows mounted drive is ridiculously slow. With WSL 1 it used to take about 5 seconds to run rsync with that backup script to transfer a very small diff of files. I'm not exaggerating here either. It's literally 5 minutes vs 5 seconds and I'm sure native Linux would probably be 2-3 seconds.
Fraud prevention? What exactly are you paying the Apple cut for?
Hari Selden had a pretty developed concept what people can know about an algorithm that anticipates their behavior.
Orlando Letelier, by the Chilean government, a car bomb in broad daylight in Washington, DC.
Kubernetes Is Deprecating Docker Support–Now What?
Small Rust utils are better than C equivalents. Ripgrep is lot faster than grep, despite slower regex engine.
I want to get maximum return for minimal work. I don't work during meetings, for example. My camera is off and I'm painting miniatures. I can pay attention to speech and do that, but coding uses a similar part of the brain than speech, so I cannot pay attention to both.

People complain about red tape and useless corporation time wasters, and I get you, it's draining. But you can learn to use those hours for your own stuff. Vacuuming the house while the all staff meeting is going on in your ears, or hell, you are attending but not listening. Just have a friend in the company who can brief you.

This all changes when you are an expensive contractor, where you can bill 8 hours when the job only took 4. Still, you have to be attentive and present so that you represent value. Clients pay for the illusion of professionalism, but you do the same work their devs do, just with fewer meetings and for 3 times the wage.

Anyway, what do I mean by all this? You should ask yourself what you want. I comfy seat at a corp with a 9-5 that is really just 2-5 hours of effort, or more money for more effort and more agency by being able to say no to meetings and work when you want to work. That works is called consulting. They have their pros and cons.
Not really, you are not going to be able to walk out of a pharmacy with 100 boxes of paracetamol filling half a shopping trolley in the UK.
Secure Web Gateway Market Report by MarketsandMarkets
In what metric?

People choose metrices when they are describing themselves. So, if they think they are above average in certain metrices, they are probably right because they picked those metrices to value themsevles... and they chose to improve themselves in metrices that they value, based on their own value system.

When other people judge, they judge others based on the value system they judge themselves by.

So, it's others who are wrong. People have pretty good understanding of themselves.
OK, bear with me here. So, a US company can create a huge market for itself in the EU, but a EU company can't?

Seems that language and regulations are not the barriers here.

Even US companies aren't that "unified", they're hailing from a specific state (often California) and have nothing to do with the other 49. You could easily swap "California" with "Germany".

Looks to me like access to capital and risk aversion are the biggest problems. Always have been.

The UK is by far the best place for a startup in Europe, and I'd wager that will stay the same even after Brexit, as long as every other country has this obsession with saving cash and not investing in risky business, or any business at all.

Localization is easy, getting millions for a startup is hard. And God forbid you fail, you will very likely never get any funding from anyone in the EU and will have to move to the US. Such a waste of entrepreneurs.
Seeing how long the story of poison/undef is dragging out for LLVM, I'd say it's more of a years-long process than an hours-long one. ;) But still, the most important part is that there's a discussion at all, and the desire to properly solve this problem.
I think its almost hilarious that something calling itself a "safe script template" doesn't even spend a couple of lines dealing with the possibility of race conditions (e.g. a locking process so that if, as is almost inevitable, my script gets put in a cronjob, it doesn't run when already running).

The four lines the script wastes on setup_colors() - something that has nothing to do with "safety" - could easily be used for a basic locking process.
> Do you think phtrivier's account of things is mistaken?

Well, he only points to a specific rhetorical device used in politics. What really matters are the incentives, interests, values, trade offs, tactics, available opportunities, risks,... that prompt a leader to use that device.

The E.U. is very much a representative body. Every 4 years, there are European elections and every European citizen does have a vote in those elections. And it's perfectly possible to start a so-called europarty. [1] The European Pirate Party - part of the Greens-European Free Alliance, is an example. [2]

[1] https://en.wikipedia.org/wiki/European_political_party
[2] https://en.wikipedia.org/wiki/European_Pirate_Party

Moreover, a party could be nationally in the opposition, but be part of a political group holding a large chunk of seats in the E.U. parliament. Plus, as a party, you could be for and against particular policies at the same time.

The problem with phtrivier's account is that it surmises that politics must consistently operate from a particular, usually unmentioned or implied, moral high ground. The reality of democracy - and by extension any form of cooperation between individuals, groups, parties and nations - is that it can only function if one is willing to compromise and show pragmatism in which battles to pick, or where to draw lines in the sand.

The very real consequences of confusing rhetoric with pragmatism - and, ultimately, failing to display the latter - are clear in the second and third order effects as a result of Brexit on economic, political, geostrategic and social interests held by both the U.K. and the E.U.
> CO2 from ancient sources doesn't have some special provenance, this is magical thinking.

Chemically, it is the same. The difference between CO2 bound in coal or oil to the CO2 bound in a tree is that the former would very probably remain bound for millions of years while the carbon bound in a tree will, with an overwhelming probability, will be released back in the atmosphere when the tree dies and its organic matter decomposes. And this will also happen if you bury the tree in the ground. It might not happen if you make charcoal from the tree and place the coal thousands of meters under the ground, where no oxygen is present. But this process is itself so energy-intensive, and therefore carbon-intensive, that it will not reach a net reduction of carbon.

Yes, in the case of a tree, it is theoretically possible that a vanishingly small fraction of the carbon it contains gets fossilized. But, there are at least two major problems.

Fossilization is very, very, very rare, and it is very, very, very slow. Told plainly, it normally does not happen.

The first is that you would have to plant so many trees that you would retain, as an extremely small fraction of the biomass of the tree, the amount of carbon released by your flight in geological deposits. This would take millions of trees and also millions of years, and is clearly infeasible. Nobody is even promising that, and suggesting that by planting a tree you could bury carbon permamently is just self-deception by people who buy such schemes.

And by that account, carbon-offsetting is just a scam. You pay money to extract the carbon you released by taking the plane from the atmosphere, but you can't permanently extract the carbon you released, at least not at a price that anyone is actually going to pay. It is a scam.

> Coal is just carbon that is in the ground. Grow a tree, convert most of it back to carbon, and bury it.

There is another factor which I find at times even more shocking. You suggested trees as a means to bind carbon. In fact, the fossil fuel from your plane flight is from oil and this is in large parts formed from marine sediments, also formed over geological times. What can be formed from trees is coal. Now, much of the large coal deposites we used today were formed in the carboniferous geologicial period, which was 358 million years ago:

https://en.wikipedia.org/wiki/Carboniferous

Now, the thing is that the geological conditions in which these coal deposits were formed do not exist any more:

https://en.wikipedia.org/wiki/Carboniferous#Rocks_and_coal

Basically, trees use lignin. At this time, lignin was something new on our Earth and there were no fungi which could decompose lignin, so the biomass of the trees could not decompose. Only later, lignin-eating fungi evolved.

That means that these coal deposits can never be re-created, even over a time of millions of years.
The reasons for lack of market understanding are many from laziness to do research as it is a time-taking affair
Your home is a hotspot for Covid-19, studies say
Note that all of the optimizations I used in the main part (not the warm-up) of my post are still performed even with "-fwrapv -fno-strict-aliasing". So this does not avoid the issues I am talking about.
Thats not a good reason why the new one is an improvement, that the old one could have had it but we had to make a whole new one instead.
You can see test cases: https://github.com/mattermost/xml-roundtrip-validator/blob/m...

Though they mention something called xml directive. I don't think such a thing exists.
That would be really good if true.