skysight-inc/HackerNews huggingface dataset:
If your script dies because of `set -e` the detective work is just the punishment to condition yourself to write more stable code in the future ;-)

By the way, if you are just using Bash (instead of POSIX /bin/sh) you can do even better. Some time ago I found a stacktrace function somewhere:

set -Eeuo pipefail
trap stacktrace EXIT
function stacktrace {
if [ $? != 0 ]; then
echo -e "\nThe command '$BASH_COMMAND' triggerd a stacktrace:"
for i in $(seq 1 $((${#FUNCNAME[@]} - 2))); do j=$(($i+1)); echo -e "\t${BASH_SOURCE[$i]}: ${FUNCNAME[$i]}() called in ${BASH_SOURCE[$j]}:${BASH_LINENO[$i]}"; done
fi
}
Ive found it harder than expected to simply port over a bash script to python. Mostly because the syntax for 'run command c with arguments x y is much worse than bash. And that is before you want to handle output from the command.
Oh yeah.. In VS Code, where I wanted to go to the definition, and it took me to the Typescript file.. It's just insanely frustrating.

Your right it is the absolute worst possible behavior.

I get that information when I hover over the method/class/whatever.. I am looking up the definition because I want to see how this works.
Some feedback:

1) It seems you're selling location details for businesses and other places of interest? Make it extremely clear that this is not people. Also need much more detail on the source, legality and quality of this data.

2) Remove the fish/pond/bait naming. It's not a game, and these terms and descriptions just make it harder to understand and look unprofessional. Stick with normal terms like credits/lists/locations, etc.

3) Location and geographic data is an extremely competitive field. You need to figure out exactly who you're selling to and why. It seems you're going after self-service individuals/small-businesses market. Beware that there will be lots of unscrupulous and shady characters in this segment.

4) After the above, figure out your pricing and make it clear.

5) HN is not the best place to show this. Try some of the marketing forums and chatrooms to get feedback.
It's open-source, you shouldn't need to decompile it. :)
I confess to having my confidence in the writer shaken when I read, "That’s when they’ll pour through the archives".

No, they won't. They might pore through your archives, though.

Offering a course in "Online Writing" and then making such a basic usage error did not inspire much confidence. Perhaps another pair of editorial eyes might help? For any writer (myself especially included!) editors and proofreaders are your friends. I've also misused words and had someone else point out my error, and I'm grateful to them for having taught me something.

Lesson: If you aspire to "being a writer" - online or anywhere - get editorial help where polish matters.
I really do think you (probably) need to use an IDE properly, so you can at least make a conscious choice about what you’re giving up, or use other tools that provide similar capabilities.

For example, I know a bunch of people that use print debugging, and don’t “get” visual step debugging. But most of those people haven’t used a proper debugger before.

I’m primarily a python dev using vscode. Pycharm debugger (and remote interpreter!) blow away the vscode debugger. But I can use CLI tools (ipdb) nearly as well as any visual debugger. It’s a conscious trade off that I make. Specifically, I prefer the editing experience in vscode over pycharm, but can bridge the gap in other ways.

Know your tools. Know the capability of other tools.
Maybe Nicotine rather than Alcohol would have been better for his point.

But I'd still trust Joe to drive the forklift after a cup of coffee and cigarette than a drink and a doob.
Naval is an Indian Born Self-made guy. Sure, it is hard. If it were easy, everyone would be doing it.
Whataboutism is an ad hominem fallacy when the context is US-Russia geopolitical relations. Traditionally it has been used to successfully ignore accurate observations about US/Russia, when the messenger is Russian/US respectively.

Here the concept has been extended to large multinational corporate relations.
I don't want to force anyone to do anything. I just express my opinion. And certain things are just facts like learning English will give you superior economical power.

I don't think there is any reason to protect language from criticism. Polish declination an conjugation as well as use of a lot "sz", "cz", "dz" etc. makes it hard to learn language. It's a fair criticism. If you want to do machine learning in Polish you will have a lot of issues. No one should get offended by that.

Also, there is also a lot of forms that makes Polish difficult to use for native speakers like "wyszedłem" (I, as a man, went out) the correct spelling vs. "wyszłem" an incorrect spelling that seems to be easier to use for many people.

Therefore, a lot of language protection is focused on excluding people. You don't know how to use language correctly so you are inferior. It's very common sentiment among Polish people. We even have a special body to say what should be considered correct - Polish Language Council. French have Académie française.

Even in English, especially in academia, people like to have this snobbish attitude that you should not mix British and American forms in a single text. This is certainly not intended to protect anyone, but to exclude people less proficient in English.

I think the most stark example of excluding people based on language I saw myself was in Belgium in Dutch speaking Flanders. If I'm not mistaken they have a law that explicitly forbids teaching bachelor degrees in anything but Dutch. This excludes a lot of French speaking Walloons from participating in Flemish universities. Some of them end up in Netherlands where attitude to language is less protectionists and a lot of bachelor programs are in English.

On the other hand, in Wallonia you may come across people who will pretend to not speak English. They will understand you, but they will be hostile. It's their part of country, their rules, but I'm not afraid to call it rude.

Again, people deserve protection. For example, you should be able to conduct your business with your government in the language that you speak. But there is no need to be protective of languages themselves and often this protectionism is a weapon on its own.
I would argue its too early to tell that things are going bad, the Cannabis Act was put in place on October 17th which is only 6 months ago.

Moreover, most retail stores in Ontario were given very short notice (~2-4 months) to build the stores and open up on April 1st couple weeks ago. I would say in a year or two, we would have likely forgotten about all this and will be having normal and regular deliveries via Canada Post like any other product.

https://www.thestar.com/news/cannabis/2019/03/18/will-ontari...
> It takes about three minutes of listening to him talk on the subject to understand that his singular life's mission is to figure out what is necessary to prevent totalitarianism ever again

I spent some time listening to him, and that wasn't my impression. It struck me as a mixture of contrarianism, attention seeking behaviour and latent transphobia.
How much did I like/hate my engineering job The last 4 years? (872 days of data)
Co-sleeping is strongly advised against in many countries. Don't do it. If you really subscribe to all that attachment parenting stuff, get one of those cots you can put next to your own bed with one side of the cot open towards you.

(I'm a parent of a two month old in the Netherlands.)
This is borderline paranoid IMHO
Doesn't 6 times the mass get ~6 times the gravity, if we're talking about a rocky planet of comparable density?

If I weigh 600 Kg on a super-sized version of earth, it doesn't matter what amount of water or atmosphere is present. It's not habitable, even if it's a temperate 30 degrees celsius, with refreshing sun showers and a briney primordial soup.
Amazon affiliate link.
I will bite and counter that resistors are needed to prevent wasting energy. Current limiting resistors are used in many different places like low power electronics (these are always very high resistance) and drivers for electric motors (a powered electric motor blocked at rest is the same as a short circuit).
How Marcus Aurelius Thrived as One of the World’s Great Leaders
If my kids ask me for advice about buying a house, taking a job, doing a degree, etc, I'll refer them to bogleheads.org without hesitation.
I'm aware the world doesn't care but I simply don't have to time among other projects and my actual job to write a ground up chat application plus federated protocol from the ground up. The "just write it yourself" attitude is frankly insulting to the end user who can't code at all.
But there is selection. Most "normal" programmers can't even _exit_ Vim, let alone use it with any degree of proficiency.
Boost C++ 1.7 Release Notes
http://www.actualized.org
Indeed you can't. You also can't construct a diode or a transistor.

There are two parallel arguments here. One is yours. The other is whether or not it's possible to construct a resistor with memory at all.

It clearly isn't if you all you have is copper wire. But copper wire is only fundamental in the 19th century pre-semiconductor sense.

None of the practical memristor models assume that. They all rely on junction effects, spin effects, and other exotica.
I made some progress with an assembler version but it's just gruelling, hard work.
It’s kind of a cause and effect thing that designers use. Of course, from calculus, you are right. But for instance in practice, you charge a capacitor with voltage as the outcome. You don’t look at the voltage, and then differentiate it to infer the current. Indeed, you get into trouble if you think you can put an independent voltage source across a capacitor. With an inductor, you build up the flux by applying a voltage. In both cases, the fundamental idea is the electric or magnetic field stored energy in the component, which the component acquires by accumulation, i.e. integration.
(Sunnyvale, CA Fry's is the new location. Market is in its 45th year!)
But how does those results compare to capacitor?
It would share all the same limitations as any other forking server, plus extra overhead for any spawned child processes. Basically the same as using CGI scripts, and probably not much worse any Apached hosted PHP based website, tbh. Probably wouldn't be worth implementing HTTP/2 since it would increase the complexity with no real benefit.
Or you could use differentially private data collection.
It’s possible that MS only uses it for bug fixes. But it’s also known that MS shares data with the NSA and other government agencies. It’d be very unlikely that the NSA would say, “yes, we want your data, but not Visual Studio data. That’s private. :)”
Thanks for clarifying something I failed to explain. The relative ease with which I can change the size of most of the elements in Emacs is the reason I didn't switch to, for example, Textmate or to Sublime Text when those editors appeared on my radar.
Emacs, terminal emulators, Plan 9 port, Chrome and apps based on Electron are the only apps on the Mac I have been able to figure out how to change the size of most of the elements of.

"most of": The size of the menu-bar and pop-up menus is fixed in all of those apps when they are running on a Mac, but Apple made the text in them large and legible enough to suit me.

Setting the scaling to a fractional value in System Preferences doesn't count because the result is too blurry. I never obtained a monitor with a horizontal resolution of at least 2560, which is the minimum needed to set the scaling to 2 in System Preferences.
Google collects far more data than Microsoft does. They have zero problem processing it all.

It’s not like it’s human sifting through it by hand.
Patreon only really works for people with an audience so enchanted with the creator that they would follow them anywhere.
What's the problem with writing something obvious? Honest question. I don't see why that should matter. (I mean, sure, you don't want to write 1000 words about how you should blink your eyes so they don't dry out.) Try to think of one person you know that wouldn't already know what you're writing. Even if it's obvious, it's not literally something everyone in the world already knows or shares your perspective on.
I lost all my messages with my girlfriend (of course).

Can anyone clarify: if I use their "server key backup" and set a passphrase, I am now two passwords away from giving the next hacker read access to all my messages, is that right?
that's the same functionality, but the results are not as good.

I put in: fat obese porcine

I get:
wild-type
hyperactive
amnesic
misshapen
narcissistic
slimy
cancerous
motile
putrid
gravid
> Wait a minute, there is tracking involved in a code editor?

I recall a recent thread here on HN where I learned that the Windows Calculator was sending data ("telemetry") back to the mothership.

Nowadays I think I'd be more surprised if a Microsoft product were released that didn't phone home.
It's called a fallacy for good reason.
Correlating device type & OS version, IP address and time of access is a pretty good way to connect the dots between “anonymised” IDs. If the same IDs always show up in quick succession from the same IP and device type/version chances are it’s the same person just checking multiple apps on their phone. Time of access and IP address can be used to infer where the person lives (to a certain degree or accuracy), when they are working, etc.
How's it cluttered? You can simply hide everything. besides that, the default configuration only shows the main editor and two tool panels (left and bottom), the same as VS Code.
An AM/FM radio won’t become semi-obsolete and in need of a software update after 5 years.
Explain, please. Net inflation 1800-1914 was zero.

(The gold rushes produced inflation, for the same reason that the Fed printing money does.)
That automatic renegotiation is useful for poorer countries though. If a country exports a lot more than it imports then the valuation of their currency increases, meaning that buying from that country becomes more expensive (because you buy with their currency and there's more demand for the currency). This enables poorer countries to step in and offer to export similar goods for cheaper. It also means that poorer countries, where their imports exceed their exports will get more investments, because their currency is worth less.

A simplified example of the above:

Let's say that Germany kept the Deutsche Mark (DM) and Italy kept the Lira. Let's assume in this case that Germany's exports exceed their imports (trade surplus) and Italy's imports exceed exports (trade deficit).

In the case of Germany, because their exports exceed imports, the value of the DM would go up, because there's more demand for the DM. This would make goods from Germany more expensive (your dollars can buy fewer DMs) and it would slightly diminish the exports of Germany. Due to the DM being more expensive it also means that foreign investment in Germany is more expensive, because your dollars can buy you fewer DMs.

In the case of Italy, because their imports exceed their exports, the value of the Lira would fall, because there's less demand for it. This means that goods from Italy become cheaper (your dollars can buy more Lira) and it would increase Italy's exports. Due to the Lira being less expensive it's cheaper for foreign investors to invest on Italy, because you dollars can buy you more Lira.

When both of these countries adopt the euro, you will have to add up their exports and their imports to find out whether there's a trade surplus or deficit. Let's say that when you add them up and compare you find that you have neither a trade surplus or deficit. This means that goods exported by Germany won't increase in price and the goods exported by Italy won't decrease in price. This is advantageous to Germany and disadvantageous to Italy. It also means that Italy won't gain an advantage in attracting foreign investments compared to Germany either (based on the currency).

In reality, the topic is much more complex, but different currencies seem to have a balancing effect on exports, imports, and foreign investments. Strong exporters in the eurozone benefit from the countries that import a lot.
That's a gross oversimplification of the history and structural problems of the Italian Republic.

1. "just because it had Cristiana in the name" that was not the only reason... It was more of a complex clientelism-based system (e.g. I hire people in public industries/companies so that they'll vote for me, and stuff like that)

2. "You have the possibility to counter mafia's power" Man, you don't seem to understand what mafia is. Mafia is not just crime: it's an organization that seeks to replace local power structures in all but name. People that (knowingly) vote for mafia associates are already disenchanted with the idea of elected representatives.

3. Berlusconi was still mostly "clean" by 1994. Sure, he had been a P2 member, but who wasn't? He was divorced, and so what? (So were lots of christian democrats and right-wing politicians before him). The nasty stuff only began to surface years later.

4. "The only top priority was about homosexual rights" Come on, that's right-wing propaganda plain and simple. Stuff like liberalization and reforms of the school and the jobs market were also in the agenda of the last three/four governments not endorsed by Berlusconi. By the way, ethical themes are about the only thing a political party shouldn't negotiate upon to get votes (IMO).
Personally I would consider caffeine more impairing than nicotine but I don't think either are a big concern as far as impairment goes. Impairment on those substances is probably best handled in law with the same general, hand-wavey subsections as drinking too much water or eating too much Taco Bell.
There are a few positions where non-competes are understandable. It is easier to carve out strict guidelines for having a none-compete than it is to exempt low-wage workers or have a comprehensive list of things that qualify for a non-compete.

So instead, make non-compete clauses really unattractive for your average employee. This would include things like paying the average wage over the last year, including any bonuses (or paying the average bonuses or prorating them another way), continuing to pay benefits such as health insurance contributions so the employee doesn't pay more, and things like that. I'd even be willing to put a penalty so the company would have to pay a bit more if their pay rate doesn't meet the industry standard in the area.
What sort of "life advice" do you want?

I think for starters is to realize there is a lot of contradicting life advice. Then the other thing is wether people follow the advice they give others.

There is a Carl Jung quote:

> Only the paradox comes anywhere near to comprehending the fullness of life.

Personally for me, understanding life is understanding the pros/cons of every scenario.

The pros and cons of short term thinking.

The pros and cons of long term thinking.

The trade offs between both. There are trade offs in everything we do. Understanding them, and accepting them is important.
Le Monde Diplomatique is a monthly newspaper that focuses on international reporting. I find their reporting very good, although they are outspoken about their leftist position (just as the Economist is outspoken liberal).

https://mondediplo.com/about
aptness? appropriateness? apropos [0]?

[0] https://en.oxforddictionaries.com/definition/apropos
SWIM always has very pleasant claymation visuals with K, as opposed to the usual soul-shredding ego death from LSD.

However prolonged use can cause bladder damage and (for the extreme mainliners) k-holes seem correlated to suicidal ideation, so as always tread carefully.
Great-grandparent OP was most accurate in that this crowd cares most about privacy regardless of what it is used for, and that it would have little utility outside of this crowd, but your dismissive response is as if you've been in a coma for 10 years.

As grandparent OP said, in recent years this has moved waaaaay beyond theory territory and been shown time and time again that <Corporate Sector> + NSA + FBI + CIA + intelligence agencies around the world all employ different ways of collecting analytical data broadcast over the internet.

NSA just taps the servers without telling anyone.

FBI sends National Security Letters containing gag orders preventing companies from telling you that the federal government is now a data sharing partner.

CIA just pays companies for it.

FISA court issues secret rulings justifying the legality of it all.

Whether that bothers you or not is up to you. Most people don't care. I usually don't. I wouldn't say "logic dictates this won't happen" when it is pretty much only the multi-national multi-billion dollar companies subject to this kind of tampering, and most incentivized to monetize the analytics by allowing these and unknown third parties in.

To avoid the security exhaustion, some people would simply prefer their text editor not be "smart", which is a euphemism for internet connected.
> I don't totally get the appeal as a party drug

it's just not a party drug. Best appreciated in a dark quiet room with someone taking care of the body you leave behind.
Bandwidth Alliance – Cloud providers partner to reduce data transfer fees
1. That depends on the developer

2. Dev's who use VIM/Emacs are probably already living in their computer so you can't really say if they are good because of the editor they use or the other way round

3. What do you mean by "productive"? Closing more tickets in a sprint? In the end not only individual efficiency is important but also the future of a project. With test you document stuff and ensure at least the tested things won't break (if it's mandatory the tests are executed on every build).

4. Of course tools matter. In our company there is people who still use eclipse and sometimes they just need their time to fix the IDE. My team exclusively uses intellij and I can't remember the last time we had to deal with such a mess.
It would be super nice if there was a package offering "native" shell experience in python. Say

from pyshell import sh, ShellError

def func(a,b)
output, retcode = sh("df -k | awk '{print $5}'")
if retcode == 0:
return output
else:
raise ShellError(output,retcode)
Then walk away if you don't like the deal. You don't need the nanny government. Nobody obliges you to work for X.
> [flagged] Tell HN: GitHub deleted anti-censorship activist repositories

Why was this thread flagged?
A misleading thread title?
“70 of the most interesting people in the world”

Then you get to check the list and it’s random professionals who are mostly unknown outside of their respective professional field.

Sure, that’s not boasting.
We're now in the age of careless public expenditure (a weird form of UBI that actually is an unemployment benefit, early retirements, and so on) and tax cuts that only benefit the upper class.

Or so I've heard, since the government has yet to find the money to do any of these things. Meanwhile, the weak economic growth we were having until last year is gone.
You'd be surprised what you can get if you ask. Have you ever even tried?
Absolutely this, I've worked on a project that was 450 assemblies and about 5 million lines codes split over a few thousands source files.

Without an IDE that can jump between those assemblies and source files it's an absolute nightmare.
Pipeline thinking: This is the pipe-and-filter architectural style. Well documented in the industry.

For pipe-and-filter system management use case, I tend to think that Powershell is the peak of the shell evolution currently, but that is probably my limited insight. When I learnt shell scripting, zsh was the best available :) but I preferred the ksh.
Precisely! Albeit I am a bit surprised our infosec team seemingly haven't cracked down or made a stance just yet on Kite and other telemetry software for developers. That day will come soon I am sure :)