skysight-inc/HackerNews huggingface dataset:
Great article!

One more important difference between tuple and list that's worth knowing about: syntax. Ned makes it seem like tuples have the syntax "(x, y)", but they actually have the syntax "x, y".

I find that a lot of Python programmers, even long-time ones, don't realize this important difference. It's what allows one to write code constructions like "x, y = 1, 2" or "return 1, 2".

One needs the parentheses only to "clarify" this syntax in certain cases; for example, as dict keys, the parens are necessary -- "x = {(1, 2): 2}". Although interestingly, for dict lookup, they are not -- "x[1, 2] == 2".

One way I remind myself of this rule is to realize that "x = 1," is the same as "x = (1,)", but "x = (1)" is actually the same as "x = 1". This is quite different from lists, who are syntactically defined by the "[]" brackets, and thus you require them, or a "list()" call, whenever you make lists, making it just that much more heavyweight as a data structure.
Nah, it's not that hard, not sure why you had so much trouble

Source: Have written many many Electron node modules
That's all irrelevant for a language which is supposed to be a systems programming language, however that term is defined.
It was a joke. I'm not "stooping" to anyone's level; that's not a very nice thing to say.

I was simply curious why the parent commenter had an axe to grind with Linux. Everything has its bugs.
I read a comment somewhere that since humans have been eliminating biodiversity there is no one left for them to feed on but humans. Once again, with Zika we are going to do it all wrong. Nature will find the way, you will eliminate mosquitoes and something else, potentially even deadlier will fill up the niche. We have absolutely no clue what we are doing and all intricate relationships existing out there. The knee-jerk reaction to eliminate all mosquitoes or to release GMO franken-mosquitoes will have far reaching consequences no one even sees now.
This is awesome. I hope they start releasing features about geoqueries for datastore.
That's a great analogy. Although I think it's rather more like DRM - you want a "program" to only "run" if some "key" is present, and your adversary wants to make the smallest possible change to the program to run it without the key.

It was something of a lightbulb moment for me when it finally clicked why "perfect" DRM is impossible: no matter how convoluted and obfuscated your locking mechanism is, somewhere in there it all boils down to a final if-then - "did the authentication pass?". And this can always be patched to return "yes" instead of "no", trivially bypassing the whole thing. And you can't get around it even with drastic measures like encrypting the source and providing the key on demand - the key can always be saved. The code can always be made to run, and DRM can always be short circuited.

Carrying the analogy back to biology: so they've made their organisms reliant on a new amino acid. Who's to say it won't learn to synthesize its needed building block? After all, it's all the same atoms. The key can always be saved...

Still, it seems they did attempt to provoke this, and failed. DRM doesn't have to be theoretically perfect to be effective. It's impressive stuff, engineering organisms with an incompatible genetic code - maybe not be a panacea, but it definitely helps.
I agree. I signed up for an Audible trial not realizing the extent of their appalling trash-fire DRM. In summary, you have to run their app on a device they support to be able to listen to their content. Shocking since my local library lets me check out audio books with fewer restrictions. Needless to say that in spite of their very-nice electronic pleadings, I canceled the trial promptly.
> My basic intuition is that consciousness arises as a byproduct of any sufficiently interconnected (i.e. Complex) network which processes input from the outside world.

I think you are underestimating the importance of the motor/action system for the development of consciousness. Many neuroscientists and robotic researchers think that the sensory-motor-environment-sensory loop plays an important role for consciousness. This loop allows you to unsupervised learn all sorts of laws of physics and allows you to think that your body actually is you and not just an extension of your mind and therefore also allows the development of the concept of self awareness. Some researchers might call this sensory-motor-contingencies or embodiment. I think when talking about consciousness there it is very important to take into account this loop and not only the sensory perception and building a neural representation of the world...
Small Matter of Programming
most interesting is that he compares deutsche to a smaller firm that committed similar crimes (Trinity Capital). There executives are held liable and fined. At deutsche, where SEC senior lawyers and deutsche senior lawyers have revolving doors, find the company not the execs.

that (which would help prevent moral hazard) seems to be his redline
I've been doing a lot of thinking lately about all the items in the business overhead. I've been creating extensive lists of what actually falls into this area, so that I can make sure I'm outsourcing / delegating (e.g. to freelancers) things that really don't need to be on my plate and are non-strategic. Do you have any non-technical employees, contractors, or advisors involved in your business? And, if so, are they are assisting in some of those business overhead areas?
Ok added some more technical details in the FAQ. Let me know if it is still not enough. Really appreciate your feedback. Thank you!
There is an additional technical difference: Tuples are hashable and can be used as keys in a dictionary.

grid[(1,1)] = True
I wonder if that just selects for people who can work longer without losing productivity / sanity. That doesn't strike me as normal.
Another Good Reason Not to Get Married, Courtesy of the IRS
There's also the official SSH client that is a NaCl version of OpenSSH, I've been toying with it since it seems kind of superior to PuTTY on Windows.
Your manager sounds like he is focused on the appropriate metrics and is earning his keep.
I think labeling literally all human market makers as "crooked" is probably excessive...
Yes it's use it or lose it, and worse if you close a year 20% under budget they'll cut the next year's one by 40% because if you did it once surely you can repeat it again.
I kind of do a variant of this. I buy used paper books and then send them to bookscan.us for scanning. Et voila: non-DRMed ebook. Oftentimes, the price of this activity, ignoring the time element, is lower than the price of the DRMed ebook.
You're essentially paying for your own training. That's awesome.
Are you sure they wouldn't be? If you're a knowledge worker, your value is in your brain. If it makes you happier on the job, lowers turnover, and helps keep you refreshed ...side project away!
Chrome Web Store will continue to exist for ChromeOS.

The Google Play store is also coming to ChromeOS.
If you have a sufficiently large network, for a sufficiently long time, someone, somewhere, will fuck up an ACL.
This is true only to a certain extent. Mutual funds have been getting squeezed and the impact, though not immense, trickles down to millions of middle class investors.
True, and I'll bet they don't feel especially guilty about it.
No. The opposite is true. Vanguard, one of the largest and beyond a doubt the most trustworthy mutual fund complex, is on the record repeatedly as saying HFTs have lowered their cost of trading.

Where did you get your claim from? I can source mine, if you really need me to.
Peter Thiel didn't kill Gawker. Gawker killed Gawker.
An aside to your comment (but not a direct response to you since you're just relating a too common situation): Hard work is not the polar opposite of working efficiently.
Next step, end-of-life...
SingularDTV: using Ethereum for DRM on sci-fi TV show about the Singularity
"No, you weren't using "modern eyes intentionally in context". You wrote "I'd have wondered less about whether it could work in constrained environments", and your description comes across as unintentional. That's what I'm referring to."

You're putting a lot of weight into words I wrote casually. The intended meaning was that I hadn't investigated what a good, useful-today implementation of LISP could do in what would be a highly-constrained system today. Particularly, on cheap microcontrollers used in embedded systems. I have seen LISP's like femtolisp that use around 1K for implementation with good performance. So, original LISP being able to run on a 704 implied quite a lot to me.

On other hand, BASIC and Pascal are low-level, static 3GL's. They're easy to compile efficiently into efficient code even without much optimization. I pulled it off for BASIC without knowing much about compilers. I'm sure it took talent to get the mix of functionality and efficiency in stuff like TurboPascal or some of the Altair apps. It's not telling me much about how a dynamic LISP will work on those platforms, though, given its execution style is so different. Especially if I code in a way that doesn't penalize readability or maintenance for efficiency.

Fortunately, there's a pile of papers I can go through if I want to determine an optimal way to do that. Many of which are from 70's-80's. The 704 result just tells me embedded impact could happen if I kept it efficient. Micropython work is also impressive. I hope the point of my reply is more clear now.
Approaching companies for Acquisition
Our startup is failing after 3 years of crazy effort. We have built a whole range of tools from work-space chat solution, contact/file sharing app, full fledged chat app (similar to Whatsapp/Fb messenger), dating app (similar to Tinder), and uber-like app for meeting people. We are unable to justify our growth, with the amount of time and money spent on the company and so, we have decided to shut it down, or sell it.

We have a lot of good technical components that can be utilized in a lot of companies. How do we approach, or let all the big players know that we are available? We do not have a lot of good contacts that are SVP level, I was wondering if there are any decent strategies to make something work?
I've done a fair bit of exchange work, and the stories I've heard suggest I'm not far from the mark.
Building PokemonGo in Pure HTML, JavaScript and CSS
The code that uses arrays instead of objects is worse to support because you don't know what those arrays contain and cannot type-hint them. Functions that return arrays usually don't document their structure. And even if they do, the documentation might be outdated. So you either have to spend a lot of time tracing where do those arrays come from and where they go to or risk breaking something.

This approach works well only with tiny applications written by a single person. Once the app grows larger it will get hard to support.

ORM have their disadvantages but you have to learn them thoroughly including how they are made internally. They are not some magic tools that "just work". But in a large application you have to use objects and therefore ORM.

ORMs usually have some form of SQL-like syntax, for example Doctrine has DQL.
here is a more recent and in depth exploration of the hacker, with a similar title but a solid footing in philosophy and history -- https://en.wikipedia.org/wiki/A_Hacker_Manifesto
When I taught Python, the way I explained was that a tuple is basically one value, shrinkwrapped. It's one value so that you can put anywhere that expects a value (such as a return value or a key of a dictionary). Also it's one value so you cannot change it.

The way you look at a statement like (a,b) = (2,3) is that this is a normal assignment, where you imagine there are one value flowing in the equal sign, from right to left. But it happens to contain two values within its wrap.
k8s is still way easier to run than mesos & marathon with all the accompanying service that make it usable.
> Most importantly, as a user, don't install programs which can't be trusted because sandboxing is no magic bullet and will never be.

Perfect is the enemy of good! It's better than the alternative and that's all that matters.
Is Bandcamp the Holy Grail of Online Record Stores?
Right, but didn't the bank still have to pay the money?
> Why though?

Cuba has 1/4 of the population of the Caribbean in one relatively small location.

Look at their network map [1] and you see they already cover major locations in South America, and has good coverage of the US, but Central America, Mexico and the Caribbean is a blan spot.

Looking at their worldwide location, my guess is that they pick their POPs largely based on whether they see a potential for cutting latency for their customers based on a mix of population size and the local transit situation.

In the US, it's relatively sparse. Probably because you don't gain much by increasing the number, as you can solve most latency issues within the US by buying more expensive transit from established backbone providers or peering directly with major ISPs at a relatively low number of peering points.

So lots of POPs == either high population or shitty latency over the regular network coupled with poor peering opportunities or other ways of cutting latency without putting actual servers in a rack. Or both.

Cuba is interesting - as someone has pointed out elsewhere in this thread, the plane traffic between the US and Cuba is quite substantial despite the travel limitations, because of the large Cuban exile community.

If Cuba liberalises network connections, chances are that despite the small current number of Cuban internet users, it would explode quickly, and that there would be a lot of US based businesses that might look to Cloudflare if Cloudflare could cut their latency.

Given the size of the Cuban population, it wouldn't take a large proportion of the population to make it the best contender for a first POP in the Caribbean.

My guess is that Cloudflare is looking to add a lot more POPs over the next few years anyway (EDIT: Supported by finding an announced from when they set up a POP in Kuala Lumpur: In September 2015 that was their 45th POP; today their map shows 83; if they add POPs at the same rate or faster until 2017, they'll be past running out of locations more suitable than a liberalised Cuba), and if you look at the empty spots on the map, and mark those areas with high population density and poor peering situation, I'd not at all be surprised if Cuba start looking quite good in the "if just they fix these couple of issues" (from the point of view of putting a POP in - I'm not trying to trivialise their problems) category.

[1] https://www.cloudflare.com/network-map/
> It's a further slap in the face to MariaDB Foundation, which now sees the MariaDB trademark associated with a proprietary product.

Definite trademark confusion time.
This isn't an ACL setting. You have to specifically ask an ASA to bind SNMP to the external interface.
A first strike with conventional weapons is an interesting possibility. If you could wipe out the command and control layer swiftly enough maybe immediate retaliation could be avoided. Use ballistic weapons to deliver GPS guided conventional bombs once the radar systems are down. Of course all that would depend on having the ability to locate and sink the missile subs.
One dumped its fuel on Canada, an interesting read:

https://en.wikipedia.org/wiki/Kosmos_954
The point of EXTRABACON isn't to break into networks protected by an ASA; it's to persist onto that network by infecting the firewall after you manage somehow to bypass it. It's of a kind with exploits for other firewalls through management interfaces that can't be reached on the public interface.
Japanese writing system basics
This sort of thing makes it hard for me to respect Elon Musk. He is, personally, doing great things, but I wonder if his overall effect on the world is negative in the long term because he's promoting some views that I find very harmful. So many people around him, who admire him, yet he feels like a one man team.
I don't think any of those are portable. base64 isn't available on OpenBSD, for example. md5sum isn't available on OS X, and while almost every system has a similar hash utility the names and output format vary. And it goes without saying that none of those are defined by POSIX.

Here's what I've been using in my portable shell scripts to generate randoms strings

od -An -N8 -tx1 -v /dev/urandom 2>>/dev/null | tr -cd '0123456789abcdef'

That's worked reliably on all the Linux, *BSD, Solaris, AIX, OS X, and Minix systems I've tried.

od is defined by POSIX and available everywhere, even most annoying embedded Linux environments that don't care about providing the basic POSIX shell utilities.

2>>/dev/null because, until I reported the bug, NetBSD's /bin/sh aborted when redirecting to /dev/null when noclobber was enabled. All my shell scripts start with

set -e # strict errors
set -u # don't expand unbound variables
set -f # disable pathname expansion
set -C # noclobber

I also always put

export LC_ALL=C

at the top of my scripts. That might be prudent for others to do, as well. While it would be idiotic for od to be locale aware, some tr implementations too clever for their own good might interpret the input stream and the translation specifiers in terms of the current locale. That could lead to less output than expected.
Which is what itertools does I believe https://bluss.github.io/rust-itertools/doc/itertools/struct....
We can't all be Iron Man unfortunately ;)
> so while I couldn't offer the best salary, or the best benefits - I could offer a better work/life balance

That is a valuable recruiting reminder right there. For some reason, it is easy to forget that hiring is a marketing problem. It requires critical thinking about positioning and presentation. I want to poke my eyes out when I hear complaints from fellow business owners and managers saying they can't find qualified candidates. Usually they're recruiting practices suck. And it's not always about starting salary either.
Why shall they remain nameless? I, for one, am interested in hearing who has historically screwed over employees like this.
Four months is plenty of time to repackage a chrome app into electron or something.
> Back in June, Steve Burke described what he called his Olympics “nightmare.” “We wake up someday and the ratings are down 20 percent,” the chief executive officer of NBCUniversal said at a conference. “If that happens, my prediction would be that millennials had been in a Facebook bubble or a Snapchat bubble and the Olympics have come, and they didn’t know it.”

I'm 49 (Gen X), but ... this was basically me. I literally had no idea the Olympics had actually started until occasional posts about it showed up on Tumblr. Nor did I realise it was in Rio until then.

The media hegemony broke as absolutely soon as we could escape them.
> Some of them don't like being at home with their families

I've noticed this as well. The people who worked the longest hours did so because they didn't like going home.
> Uh, fallout is only deadly for a few weeks or so even after thousands of nuclear weapons are used on a country.

The amount of fallout and types of products generated in a nuclear blast are mostly determined by the altitude the bomb detonates at.

If you let it blast a few thousand feet in the air, before it hits the ground, then you are correct. This is typical strategy because it doesn't destroy the ground and the air blast has an absolutely devastating effect on man made structures.

However, if you let the bomb get all the way down to the dirt or even slightly below it before you detonate, then much of that radiation is absorbed by all that matter and spread out over a large distance. You can also design the bomb case so that it transmits this radiation rather than absorbing it further increasing the fallout and it's intensity.
Well to be precise, the earth I am talking about scorching would include the Northeast US as well, which relies on the Great Lakes even more than Canada.

The Northeast US also buys a lot of power from Canada, so you'll be drinking radioactive water in the dark while the fallout drifts over. Having fun yet?

Oh by the way since the lights are out, you might have to deal with riots in cities like Baltimore...lots of Americans in the 99% who will use unrest to their advantage

Anywho, this is all sci-fi...most of Canada is barren and not worth invading. It's not clear what invading it would even get you.
When I used to write python "x = 1," bit me way more than it should have. And I don't see why you wouldn't want to be explicit about your tuple construction every time..
You get that it's Clinton, not Trump, with the established history of starting and encouraging wars?

Not that I'd vote for either of them, but it bothers me when people claim that a Trump presidency would be any more dangerous in this regard then if Clinton were elected.
The article mentions this.

Also you can write this as `grid[1, 1] = True`
Small world- I was looking into this earlier today.

From DigitalOcean's site:

"Although swap is generally recommended for systems utilizing traditional spinning hard drives, using swap with SSDs can cause issues with hardware degradation over time. Due to this consideration, we do not recommend enabling swap on DigitalOcean or any other provider that utilizes SSD storage. Doing so can impact the reliability of the underlying hardware for you and your neighbors.

If you need to improve the performance of your server, we recommend upgrading your Droplet. This will lead to better results in general and will decrease the likelihood of contributing to hardware issues that can affect your service."
Given that Canada is mostly barren, air power isn't that useful. If you'd like to bomb Nunavut, go nuts.
Ground bursts do produce a lot more fallout than air bursts, but that's been taken into account. The worst fallout would probably be downwind of the ICBM silos both because of the number and the size of the weapons used and the fact that they'd be ground bursts. Downwind of the ICBM silos, one might have to stay in a fallout shelter for 4 weeks or even a little longer.

Fallout can be even higher IIRC within a few miles of the explosion, but implicit in the concept of the fallout shelter (as opposed to the much more expensive blast shelter) is the assumption that the shelter will be outside of the range in which the explosion is immediately deadly to humans (through blast, through heat / infrared radiation and through "prompt" radiation).

Note that even before the START treaties, the Soviets only ever had enough weapons to cause immediate death to humans over approximately 5% of the area of the United States. Consequently, many suburban and rural American could and can realistically expect to survive the immediate effects of the explosions with fallout being the main danger in the weeks immediately after the attack. After a few weeks, starvation starts to become the main danger although note that as of a 1985 survey, the US had enough food stored (mainly on farms, mostly wheat, corn, grain sorghums, and soybeans) to keep 200 million Americans from starving for 6 years.

This information comes from Cresson Kearny's Nuclear War Survival Skills, revised 1986 or 1987, which is available for free in PDF form on the internet. Kearny was employed by the American civil-defense establishment.