skysight-inc/HackerNews huggingface dataset:
> Calling a situation in which an employer trades you money for your time and effort "slave labor" is a disgusting metaphor and an affront to actual slaves

Incorrect. Throughout history there has been many societies where people would legally sell themselves into slavery (e.g. to pay a debt, under threat of being imprisoned) and even receive a meager salary.

Yet it's still slavery; you can look up the definition in a dictionary.
Yes - distant galaxies. This was to be a follow up post that I have just not got around to writing as I have been so busy.
I did something Similar, but fully based in shell scripts with no dependencies -> https://gist.github.com/mariocesar/8e674ec40dad6b94114d2a44d...

I completely agree with OP when Ansible is overkill for must cases, and even slower than a plain smart shell script.

For my solution, simple create a bash function:

function play ()
local remote=${2}
local script=${1}
local directory=$(dirname ${script})
tar cpf - ${directory}/ | ssh -t ${remote} "
tar xpf - -C /tmp &&
cd /tmp/${dirname} &&
bash /tmp/${script} &&
rm -rf /tmp/${dirname} "
}

and later just call it like.

play provision/bootstrap.sh ubuntu@10.0.0.1

Where provision is a directory, and bootstrap.sh is the main shell script.
Nail on the head here. I'm quite a liberal/progressive person, and I have empathy for many people in rough situations, but medallion owners are so hard to empathize with. I do think of them like patent trolls.
Any AWS users have a better experience with their newer "ALB" load balancer? It doesn't specifically call out any performance benefits over the legacy "ELB", but since it's much newer, I'm curious if it happens to do better.
That's interesting. You can read it a few ways, one sounds like a company tailored to the problems of being a post-DUI offender. If the traditional systems fail you and you need a vehicle for transportation this might be a solution. The other is a company that has a captive market and squeezes them like the rest of the justice economy.
It'll never work that way because you would also have to pay people for the value they create when they push the right button.

Also, I'm pretty sure excluding negligence a company can only fire you if you do something bad or an accident happens by law.
You know Google is free right? No need to donate resources. And latency will be so horrible if you get 100 devs in every city to donate resources.
Peter Abeel ( OP link author with Igor Mordatch ) explains his groups work [1] as a guest lecturer for Berkeley's cs294-112 Deep Reinforcement Robotics.

[1] https://www.youtube.com/watch?v=f4gKhK8Q6mY&list=PLkFD6_40KJ...

This great talk starts with his work at OpenAI on neural net safety and adverserial images, then the OP research paper Emergence of Grounded Compositional Language in Multi-Agent Populations[2] concluding with his work ( with Andrew Ng ) reinforcement learning helicopter flight and stunt controllers from human pilots.

The OP multi-agents divide labour and apparent collaborative plans appear. That the goal seeking agents split up, appear to dance to and from from their goal, distracting the predators from their kin is to all appearance coordinated and clever.

Dawkin's Selfish Gene espouses alturism as an inevitability of genetic relatedness, the individual sacrifices but the genes persist in siblings.

In this work alturism emerges purely memetically.

The Nash equilibrium of cooperation jumps the local minima of selfishness in this prisoners dillemma.

Multi agent enviroments are difficult to learn with many false minima for the learners.

This work hints that the loose coupling of language, rather than direct sharing of memories or genes, is noisy enough to find more global solutions that appear complex or 'plan-like'.

Maybe these AI's should be considered as planners, yet in a bottom-up immediate-heuristic emergent way.

[2] https://arxiv.org/abs/1703.04908
Going to throw it out there... happy W10M user.

Lumia 1520 / Lumia 930.
Specialization actually isn't a bad thing. I'm the CTO of an AI company dealing with some very complex problems. I've even written an oreilly book on deep learning. I tell you this for perspective.

I can't design for crap. I don't understand the thought process and don't even want to put cycles in to trying. It's not time well spent.

I'm also an enterprise founder. I don't mind wearing a suit selling to folks who have obscene requirements with 6 month to year long sales cycles.
I don't understand B2C companies at all. I could never run one. The idea of catering to hundreds of millions of people with none of them paying you while relying on VC to scale blows my mind. I feel similar about small business.

I like the idea of a smaller number of big name customers with large requirements. I also understand how they work: They are for profit organizations trying to make money or cut costs. I see consumers (despite doing a ton of data) as a blob of irrational behavior I don't want to deal with.

I also can't do marketing. I can kind of write when needed but my main focus is on technical content or specialized pitches.

Being on HN is very similar to being a founder, you see everything and wonder how the people around you do what they do.
Don't worry about it! You hired them for a reason.

Hope that helps!
If it was 100% isolated, the heat from the sun would continually increase the internal temperature, which would probably be bad. They're looking for a steady state dyson sphere.
You don't need to make a single sphere (swarm more likely). If you arrange the shells in layers the outer layers can efficiently capture the long wavelength radiation using relatively little matter.

The question is if you could capture the energy and you had the material resources would you let it escape into the universe at 290K?
Certainly but that's like saying the cloud is just a cool sounding application of multicore processors. It is, but it leaves out the several very deep software engineering fields of machine learning, networking, and programming as well as the fields of UX/UI design, and quite possibly a whole slew of human behavioral fields.
Using Workbox and Webpack to precache with Service Worker
> And to not spend too much money it's best to buy cheap stuff, right? In fact the more is expensive stuff not only lasts longer but it also looks non-embarrassing in 5 years.

In my experience yes, it's best to buy cheap clothes. Brands know this reasoning, and so expensive clothes (and shoes) tend to be of similar quality as the cheap ones. You pay premium for the brand.

That, or I'm such a special person that I can wear down any trousers or shoes in half a year, one year tops, regardless of the price.
The API Gateway is somewhat limited in that the endpoints are tied to CloudFront. So, if you want to leverage it internally, versus connections from a user's web browser, the request leaves your VPC (and potentially goes quite a ways out) for no obvious reason. It would be nice if they decoupled API gateway from CloudFront.
5 array methods all JavaScript beginners should know
Correct. There is no way to "legacy" boot on the tablet.

So it's 32-bit UEFI or a brick.
1) Which is either where the comparison gets accurate to bandwidth without net neutrality, or breaks as a comparison with net neutrality, because then it's FIFO regardless of which service/delivery network.

2) When you say usually, do you mean globally or in the US where we're discussing net neutrality? Because there most certainly usually is a local monopoly.
> How is a payday loan not a win-win transaction

Usually because the borrower is not in a rational state of mind, and because we as humans focus more on today than tomorrow. Payday loans (like the loan sharks of old) take advantages of this in order to put borrowers in positions that a rational, future conscious person would never get into.

Economics say one thing, but it's the humans in the equation which muck up these otherwise ideal economic principals. Ultimately, economics should be there to serve people, not the other way around; payday loans are there to exploit people in need, not serve those who are in tough situations.
TBH, that's pretty much automation. From the point of view of businesses, those workers in 3rd world sweatshops are nothing more than cheap-ass protein robots that inhabit the area.
Employment is a relation of subordination, inherently unbalanced. People also happen to need money to live, making work not a voluntary transaction, unless you consider death a viable option. That is not considering other factors, such as having to feed other members of your family. It is made even more unbalanced by the amount of influence your employer can have in your life by firing you, as opposed to the influence you can have on him by quitting. Employment is coercion.

I wish HNers would get their heads out of their tech arses and face the reality. Most people do _not_ have a choice where they work. Most people cannot afford to quit. Most people don't have jobs where they can increase their skillsets. Most people do not have time to read HN while they enjoy their 10 AM pause in their comfy sofa while working from home. You are, for the most part, amongst the most privileged people in the world. Yet you continue to spew the "employment is voluntary" propanganda because you never had to face actual hardships. Worse, you push people of lower classes even further in the ground, when what you should be doing is elevating them to make a better and fairer society.
Lawsuit, most likely.
My main issue with having no script on is for website checkouts. Especially when buying flight tickets. A lot of sites will introduce new scripts in the middle of a stepper that you didn't need to complete step 1. Now you can't submit step 2 or 3 and when you allow the new scripts the page reloads and you lose all your form data.
Interestingly, in Taiwan it is common for camera stores to source cameras from Japan, alongside the official imported version. and the buyers can trade official warranty for a discount.
But he isn't wrong. Uber will raise prices after subsidy stops.
> The first one is horrible and super un-pythonic (it even violates PEP8[1]).

I'm not really concerned with PEP. I'm concerned with if the idea being expressed is cleaner then the original. My first iteration was cleaner then the original comprehension (despite the comprehension being PEP8). It also let me see what I was really doing and I was able to turn my map and filter into a much nicer list comprehension.

Also, pointing out lambdas instead of defs is silly. It was done for an example. Most of the time you'll be operating on data structures with built in functions or supporting functions you will have written making it cleaner to use the map and filter paradigms.

money = sum(user.get_payed_balance() for user in users if
user.has_paid_bills() and
user.is_still_subscribed())

bs

clients = sum(map(User.get_payed_balance,
filter(User.is_still_subscribed,
filter(User.has_paied_bills, users))))

I much prefer the filters to the list comprehension in this case. I'll think "User's money for user in users if user has paid their bill and subscribed". I'm going to think "Sum the get_payed_balance for every user who is_still_subscribed and who has_paid_bills" for the functional implementation. If I had complex tuple arraignments then (like the OP's post) then I agree LCs will be the better way forward. If you're dealing with objects or functional-fitting problems I prefer map and filter.

> But perhaps even more important, it doesn't even work since a map-function can only take one argument (not two).

The concept still stands. Just use `from itertools import starmap`. Starmap is like map that calls the * operator on arguments.

>>> a = lambda a, b: 10
>>> list(map(a, ((1, 2), (3, 4))))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: <lambda>() missing 1 required positional argument: 'b'
>>> list(starmap(a, ((1, 2), (3, 4))))
[10, 10]

> Using functional programming paradigms like this often advised against in Python.

I'm not concerned with if it's "Advised against". I'm concerned with a) will someone be able to understand this better then the implementation that currently exists) and b) will I be able to come back in 10 years and tell what this is doing if need be.

You should check out this talk [1] before going around trying to use PEP8's inconsequential clauses to call something "horrible" code.

[1] - https://www.youtube.com/watch?v=wf-BqAjZb8M
> But I got rich starting a high-frequency alt-coin hedge fund because I created value in the sense that I found a way to enrich myself.

Here's the crux of the problem. You created value in terms of market economy. That doesn't mean you created any value in terms of human society, or how people generally understand this world.

Hell, in your particular example it's quite easy to argue that alt-coins (if proof-of-work-based) generate lots of negative value (by wasting ungodly amounts of energy), and whether or not HFT is helpful to the stability of the economy is debatable.
The probability of a collision can be estimated using the "Birthday Paradox" equation: http://planetmath.org/approximatingthebirthdayproblem

Say you can tolerate a 1 in 1 Billion probability of collision:

With completely random 128-bit UUIDs, you would need slightly over 800 Trillion Rows to have a 1 in 1 Billion chance of a collision. Equation: sqrt(2(2^128)ln(1/(1-1/1000000000)))

Adapting the UUID to contain the first 8 bytes as the number of milliseconds since the 1970 epoch would mean 64 bits of random data. You would need to insert over 192,000 rows IN A GIVEN MILLISECOND to have a 1 in 1 Billion chance of collision. Equation: sqrt(2(2^64)ln(1/(1-1/1000000000)))
What's the opposite of Occam's razor?
This is an important thing to bear in mind - it's happening now, we are being spied upon, soft-censored, self-censored, and opinion-corraled. Facebook's news feed is a far more sinister mechanism for social control than any Pravda, since it is transparently tailored to each user. And it's proprietary. So we're robbed of a primary weapon against propaganda: the ability to collectively discuss it.

However...

>Everything that could go wrong has gone wrong and I don't think there's a way for us to stop it

I think that's going too far. I can think of far worse scenarios. We have GNU/Linux. We have Free encryption software, and BitTorrent. We have a social backlash against Facebook, people that recognize the problems and are organizing to combat it, a dim vision of a decentralized future that many software projects are struggling towards (IPFS et al). And none of these things are illegal. Yet.
The title is significantly more ambitious than the content. I think "Go: I have found my Blub" would be more accurate.
Actually, I was far from being philosophical. Even physics has nothing to do with this. Thinking otherwise would be reductionist. In fact, the notion of (a person's) identity depends on the social context (including law). There is even a process by which a person can have their identity changed.
> would or could be a better steward of resources than a corporation?

Because as an abstract entity, a corporation doesn't give a damn about the society beyond ensuring it has market opportunities to exploit. A state, on the other hand, will redirect those resources towards social good.

At least that's how it happens in the ideal world. Our world is a bit more messy, but the base argument retains some merit.
This is pretty cool. I just wish these recent "improvements" to the archive.org site weren't also associated with a massive decrease in accessibility and usability.

The switch to a javascript-rendered site frontend has made using the wayback machine pretty much inaccessible to all but the most modern and bloated of browsers. Emails to support about keeping the old site going at an alternate URL or fixing fall-back rendering/operation for no-JS have been met with silence.

I guess I'm just not in the demographic archive.org is targeting now despite being a heavy user for more than a decade. It's not the backend guy's fault but it does mean lots of us won't benefit from any backend improvements.
It is, in the same sense that computing is just a cool sounding application of microelectronics and math.
I don't see any resemblance between the fonts.
Of course you should not stop using it if you prefer it. It was implied here that only uber rides were cheaper because of VC money. Which is not the case. Same applies for Lyft.
I believe originally it wasn't sql, and they added SQL by using the sqlite parsing engine for SQL. They are a massive contributor to the sqlite project. It is in no way supposed to be compatible with sqlite
I suppose you could derive a key like that, but then is it still a "natural" key? What's the benefit over just having a completely arbitrary key?

I'd argue for a surrogate key in this case because I wouldn't want someone to be parsing my id, and having to worry about changes and backwards compatibility.

E.g., the key might be 2360108 where 236 is company number. Then as we grow eventually you get an id like 10910249, which is ambiguous (company 109 grew to over 10,000 or company 1091?)

I deliberately choose a short prefix for illustration, but this could be an issue with any scheme (you'll never perfectly predict all the future requirements), which using surrogate keys completely avoids.
Actually Mozart know about copying as he do scores. And publishing is one of those public goods thing that is key to most of the things we treAsured and talked about here.

E=mc2 is a fish, it cannot be consumed and used by you only.
Calculus Revisited: Single Variable Calculus
> I'm not a member of an alien civilization

Entirely off topic, but I love how IANAL style disclaimers found their way to astrophysics discussions. IANAMOAAC anyone? I like it.

(Note: I really like it, this is not snarky sarcasm)
There's a fun iOS game called GlyphQuest that works something like this -- there's a hexagonal grid of elements, and a monster. Connecting enough "like" elements (and, later on, combinations of elements) causes attacks on the monsters. Cute graphics, some nice leveling up mechanisms, well done.
what are everyone's thoughts on building containers for running one time binaries? like building a container to run jq or awk or something like that.

i've seen this pattern before and it didnt make me feel very good. it reeks of unnecessary complexity.
This is one of the situations where the difference between scripting and "real" development becomes obvious.

Yes, it makes you zzzZZZz. If you don't care for errors anyway. However, when developing a large reliable software project you need to think through the possible error cases and handle them appropriately. Even if that just means logging them correctly and exiting so the error can be easily tracked down later (for example: was it expected/unexpected? What where the parts of the context that can't easily be collected by a runtime?).

And in a large project, it's not that bad. How many places are there where you setup the database connection, an OpenGL context, a network connection, etc? Just build the abstractions appropriate for your project once. Simply crashing backwards through the function calls with a generic exception and a stacktrace is not always good enough.
I'm pretty sure people dying of cancer suddenly stop caring about philosophical questions about resource allocation. This is an unequivocally good thing - like that other expensive miracle drug, Harvoni.
Unless the price spikes and one ends like that guy in Edmonton owing over $1100.
Hm, you're right. I hadn't realized inflation was so low last year.

I stand corrected, but I think the (corrected) statement holds true. Maybe not for this particular case, but if you get a raise that's less than inflation (or no raise at all), you're taking a pay cut and have every right to be upset.
Some keywords need to return help topics instead. If you search "virus scanner", Apple should tell users their device really doesn't need one
Show HN: Music Genre Classification App in Django
8 Keys to Business Success – Values-Based Leadership
Just hire Homepolish if you want an interior designer to help you remodel your space. Best kept secret in the startup world. https://homepolish.com/
Yes but it is avoidable if you use a Lisp. Every part of the code can be compacted into a smaller form. I know when I write in Clojure it's always the most concise code I've ever written, with minimal effort too.
"Man inadvertently discovers reason for monads and strong typing while writing Medium post"
I was that kid in the 80s that played with robotics toys. (My favorite was the Armatron from Radio Shack). When I grew up, I was somewhat disappointed to see that the biggest opportunity in robotics was to make robotics toys to inspire the next generation. These days I make robots that solve real business problems. However, there is an obvious and tempting market for selling them as entertainment/education robots instead. But I'm deliberately trying to make real robots that solve real problems. Sometimes, though, I feel that people are more interested in "useless" robots.
Weight Training Is the Best Exercise for Bone Strength
yeah. antimatter, dude.
Yeah, it can certainly be inlined or optimized away with various compiler options. However, as you might surmise, debugging without stack frames becomes rather difficult as functions corresponding to source code disappear into a goo of assembly.

The example with slightly different options (as mentioned in another comment) gives what you're looking for: https://godbolt.org/g/GlkEQK
> A state, on the other hand, will redirect those resources towards social good.

A state is also an abstract entity. Composed of people with a range of incentives based on their positions. Elected representatives offer us a fine view into what economists call "The Agency Problem" [0][1]

Pournelle's "Iron Law of Bureaucracy" states that in any bureaucratic organization there will be two kinds of people:

First, there will be those who are devoted to the goals of the organization. Examples are dedicated classroom teachers in an educational bureaucracy, many of the engineers and launch technicians and scientists at NASA, even some agricultural scientists, and advisors in the former Soviet Union collective farming administration.

Secondly, there will be those dedicated to the organization itself. Examples are many of the administrators in the education system, many professors of education, many teachers union officials, much of the NASA headquarters staff, etc.

The Iron Law states that in every case the second group will gain and keep control of the organization. It will write the rules, and control promotions within the organization.

In both cases, the "state" is less benign than what one might suppose. But, because we are all (mostly) taught by agents of the state from childhood - this is never really brought to our attention during our early indoctrination process.

[0]: http://www.investopedia.com/terms/a/agencyproblem.asp

[1]: https://en.wikipedia.org/wiki/Principal%E2%80%93agent_proble...
I was once asked to come up with a table lookup method for popcount on the spot and could not come up with a solution.

Oh, Hacker News.

If someone can't solve a problem like this off the top of their head, does it not act as a strong signal that they are a beginner and you should probably look elsewhere for quality information?
Ask HN: How do you manage to be highly motivated 365 days a year without stop?
I would be interested to know what methods do you apply in order to keep being highly motivated over an entire year.

How can you motivate yourself to keep working very hard after you accomplish a milestone?

I am always trying to do more jobs once and to accept all the requests in order to be overhelmed with work so that I can keep being extremely high motivated. Aren't there better ways to achieve this?
Seems quite a stretch to include the store's return policy in the identity of the "product".