skysight-inc/HackerNews huggingface dataset:
First of all, thanks for your post. I don't think your code is wrong or bad in any way.

> The thing is, you're not only complicating your code by introducing monoids, you're unnecessarily restricting yourself.

Strictly speaking? I agree. All we need for this problem is semigroups. We never explicitly need a "monoid." But I'm not sure offering the "mempty" case is really over-complicating the code, it just bloats the rhetoric a wee bit.

But I think what you're referring to is the conceptual overhead of Monoids? I'll get to that in a sec.

> The only thing you need is higher-order functions to be sufficiently general:

> code follows

For "sufficiently" general code, it certainly seems to be less general than a piece of code relying on monoid or semigroup operators. You've hardwired yourself to strings and arrays.

F# actually is doing a natural transformation for you from (Maybe~>Maybe String) implicitly in there, so you're really relying on the fact that F#'s got some monoid logic baked in.

> And you can use other patterns instead of "every n-th entry" by using generators other than `every`.

Right, the essence of fizzbuzz is in the list of partial applications of every onto a list of prime factors and strings. Everything else is repetitive joining logic. Which is why appealing to a pattern that captures nearly all that logic seems like a good idea, no?

> This approach can make joining O(n) as opposed to O(n^2) (naive concatenation) or O(n*log(n)) (ropes) worst case and is more general.

I do not see how it's more general unless you demand non-associativity which—while fair to do in an interview question—is quite unheard of in the programming world. In terms of runtime performance, rope concatenation is constant and a full retrieval is O(n + log n), not O(n log n), so I'm not sure what you're getting here. But it's worth noting this code (like a lot of F# code) tends to pin onto exactly one data structure and can't simply imply the data structure from calling types.

> Works for all monoids, too, without mentioning the word.

There's an implicit value judgement here: that not naming this pattern is better. You mentioned it above with the "you complicate your code by introducing monoids." I'm curious why the default mode is that I need to defend naming a pattern that obviously saves code here, and captures more use cases. I don't mean this to be a contentious discussion, I just want to know why you think it's inherently bad.
My fear for a tech union is whether it will deny someone like me the kind of opportunity I was very fortunate to enjoy roughly 10-20 years ago. At lot of us here got our starts under scrappy circumstances and with lots of hustling. I am very cautious not to support any move that will amount to pulling up the ladder behind me.

You mentioned AMA in another comment; will our tech union require eight years of university and one year of residency at IniTech to "practice programming"? Will it require a minimum hourly wage? At what rate? My first programming job at 17 wasn't super well paid, but better than working at the gas station. Will there be an ethics committee that might get high-jacked by activists and "disbar" programmers working for sites with objectionable content? Or the NSA or ICE? And if it can't do any of those things, what teeth will it actually have?
From working with planners in Ireland a lot of the problems are down to classic poor planning, questionable zoning (if you can call it zoning), incompetent local government, and the penchant for low rise building in Ireland.
In Ireland nothing is ever backed up by decent independent analysis and well executed social and market research. It's a Gombeen nation where politics centres around winks, nods, and how many funerals you go to in your constituency. There are very few intellectually honest players that are anything more than centrist leaves that blow which ever way the wind is going.
I could write volumes, but I just don't have the energy for the place anymore, it's just a nonsense country that believe it's own bullshit. I was born and raised there and I left because I was getting sick of the delusion of the high tax, high bullshit economy.

This video sums up so many things that made me leave, and the things that I miss, the line "sometimes were too tough on ourselves, most of the time we're not tough enough" is bang on.
https://vimeo.com/56336219
Depends on your application. Run the programs you want to run on this and open powertop. It can also be informative to run them under strace and see whether their mainloops spin or wait; any well-written program sleeps until it has real work to do.
That and looking at the device.
Not Secure: <reason0>, <reason1>, <reasonN>
Sorry, but can you please share any recipes for mixing WSL and Docker, or you just meant that you use one or another on project-to-project basis (not together)?

I know I can do basic commands (even building images with `docker -H 127.0.0.1 build -t foo .` works), but I failed to find any way to share WSL filesystem with the containers (`docker run -v $(pwd):/foo ...`).
Corporations have a lot of power over countries right now, but does the world you live in ignore everything countries can do to companies who ignore their laws? They can attempt to block everything Google while they build their own local services, ala China. Google is also a US company and while their software might be hard to prevent getting into the EU, they can start leveling sanctions against physical US goods if the US won't do anything to reign Google in. I dont think any of this is likely to happen, but political entities on the scale of the US, China, the EU, etc have options to bend companies to their will
presumably lyft shuttle could start running a route anywhere in the country tomorrow, given sufficient demand.

maybe other bus operators are better, but denver metro's RTD takes months to make minor route timing changes. i expect new routes take even longer.
DOTA (and the aformentioned eSports games) are not games, but competitions (aka, sport).

EVE is a role playing game - you play the role _you_ want to play! You live a life in EVE, as though you might live a life in the real world. You choose to trust people and make friends, may be get betrayed, or do the betraying yourself.

You fight an enemy because he/she is trying to steal your stuff, or take over an area that you want to keep owning.

Even though eSports games have more action, it's not the same kind of thing, and there's less thrill because losses in eSports are temporary. There's always a next game. Losses in EVE feels real, because they _are_ real!
I haven't played in years, but last I did there was a huge range in engagement levels to have "fun".

With one or two friends, I'd say one could have a blast pirating for a couple years. It's one of the higher doing_fun_things:total_time_playing ratios I've found in a multiplayer game.

The balance is really well done. Two specialized smaller ships > one general larger ship. And coordinating on voicecoms after you've got the normal sequence of actions down doesn't sound that different than a sci-fi series.

"Jumping. Two contacts. Found them on the belt 5. Miners, no escort. In position to warp disrupt. Popping bubble and web. Tackled. Jump, jump, jump." (Plan comes together, fireworks ensue)

And in general, most people keep it in perspective. Hence "it's just internet spaceships" jokes.
I think that big miners wouldn't have such a big problem if the exchanges get shut down - as long as they export bitcoins and import dollars or other currencies, buying those in foreign cryptoexchanges, the government should be happy.

What the government probably doesn't like is the other way around, when normal people buy BTC with yuan and then sell them abroad, exporting capitals.
We certainly will invest heavily into one DE (upon successful campaign that decision will be made) but we will also work with all interested parties and devote some resources to get other up (it is the same in case someone is trying to bring up other OS or DE, we will try to help such effort as much as we can). The point is to give to community working Free phone and finally disrupt the status quo.
GPU's are still used in mining. But the majority of large-scale miners use ASIC chips to mine coins. ASIC chips are just more efficient and powerful. They are designed only for mining.
> Soylent, What already existed: SlimFast

When you're talking about meal replacement the actual ingredients matter a lot. Slimfast has 4x the sugar of Soylent and only half the fat.

Consuming ~2000cal of Slimfast would mean ingesting 180g sugar! That can not serve as a replacement for 100% of your meals.

Then there's the issue of artificial sweeteners, missing nutrients in Slimfast, etc.
Credit and existing credit records would still be easily available.

The only change would be that you need to present photo ID in person to open new credit lines... which doesn't seem that unreasonable really.
Ask HN: Is it possible to be an amateur freelancer programmer?
I have been programming daily for one year, i don't know what is my skill level (how can i know it?)
I feel i got a lot to learn for be better, but at the same time i am able to do anything coding, i might just matter of time.
Do you need to be really good programming in order to get a job or work as freelancer?
Sadly, they can't obey the Threw Laws...
That's great to hear, I'll follow up via email.

Great product.
The concept of Soylent being used at every meals makes me think of enteral nutrition (Isosource or Osmolyte) given in hospital to sick individuals as a primary source of nutrition, usually through an NG or a PEG tube.

Soylent took this concept, took the NG/PEG tubes out of the equation and sold it to those who are alive and well.
I should give up on this, but I keep hearing this argument about tax collection. You can make an argument that fixed dollar amount taxes (almost like property taxes) drive direct demand for the currency. I need to pay $100, so I need to get that $100 -- if it costs me all my horses and gold to get it, then I have to buy it. You can even argue historically (in a manner analogous to the "Mises Regression Theorem") that some of the value of fiat currency derives from this historical usage.

But all modern taxes (really, even, over time, property taxes) are driven by the underlying value, not by a fixed amount, and thus create no actual demand for the currency. If the government requires that I pay 10% of my income, and my income is 10 cows, it does not matter what the price of cows in dollars is -- I owe the dollar equivalent of a cow. If dollars are expensive, then I trade one cow for a few dollars and pay that, if dollars are cheap, I trade one cow for a lot of dollars and pay that.

There is no net demand created by this, and I don't know why people keep claiming that.

The other side, the "actual use", is definitely a real thing -- price discovery is very difficult when there is no real commerce, and until a complete supply chain can be priced in the currency, it's going to be hard for there to be any stabilizing pressure.
this argument would make more sense to me if Lyft Shuttle were actually a bus. But, it's a car. How many SF homeless smoke crack in Lyft Shuttle? How many women are assaulted on Lyft Shuttle every day?

So, not a bus, no second hand crack smoke, and you don't get jizzed on. Call it an innovation if "invention" doesn't sound right to you but it's really different from public transportation.
Show HN: Public Prometheus Performance Metrics of Cloud Providers
I don't think that was good advice for your situation, it was more like an observation. The person who wrote it probably didn't even study math.

It really depends on your interests. If you like math, sure, go for it. You can have a good career in IT. But if you're not absolutely sure, I wouldn't do it. I switched my major from CS to math, failed, and switched back to CS. I don't regret it, but pure math was a bit too much for me. But there are lots of people who graduate in math. So it really depends on what you like.
Thanks, I will give it a try!
"Oh, Elon! I thought you were so manly!"
Vetting a package is as easy as reading through its PKGBUILD. Here's a sample one: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pacau...

makepkg pulls source files and possibly patches, and then compiles them and installs them according to the instructions. It makes life simple.
How will you tell the difference?
>All biometric security mechanisms are bad

They are though, if bad == insecure. Customs can make you unlock with fingerprint or face. If you can't lock yourself out, it's not secure.
while 'pdf' isn't a full mime type, you seem to forget whom we're dealing with here, not the brightest crayon in the box Equifax.
Huh. I can have fun at work without telling dick jokes.
Arch has my heart. It taught me everything I know about the various pieces under the hood that come together to make a desktop experience. I've tried many distributions over the years and Arch came out on top for me.
That might be useful if you want floating point math, but most shell scripts can just use the integer math in shell:

$ x=10
$ echo $((x - 1))
9

Though if I need to do a floating point calculation at the shell, I start python or R, which both have their own interactive shells (with the same readline interface, which I like).
That graph shows the exact opposite. From near-parity with the output figures in 1947-1972, wage/compensation struggle to stay about half that in 2005-2014. In other words, the workers are not benefiting in proportion to productivity.
I'm kind of surprised that Patreon hasn't made a spinoff platform to compete with YouTube for all the YouTubers flocking to their donation service.
If this is an example of scratching one's own itch, Justin Kan needs new hobbies. Consider how much you have to interact with lawyers in order to want to automate them.

"I’ve raised money. I’ve done a merger. I’ve been sued. And yet every time, bills would pile up and I had no clear idea what I was paying for. In Silicon Valley, we want everything to be transparent."

From the sound of the story, their competition is not the Bar, but DoNotPay (mentioned in article), which tells me they're not automating lawyering so much as mechanizing Nolo Press.
One reason would be ApplePay. At least in Europe most payment terminals have their NFC sensors on their side, so you're supposed to hold your phone flat with the side of a box, so the selfie camera just points to the wall on your left. In that position, there is no way that the camera of your iPhone could see your face.

Compare this to Touch ID, where you hold your phone to that box with your finger on the sensor and half a second later you've paid - very convenient.

I would take a guess that Apple has not yet tested any iPhone X with a European payment terminals and will get a lot of angry emails once people try that combination.
Is unnecessary taxation all taxation? By your argument every company should just find whatever the lowest tax area of the world is and set up their headquarters there, no one will be able to stop them!

Also, if you believe in freedom, why don't you believe that countries have the freedom to stop these massive corporations from extracting wealth from their society and returning nothing? Why does only the corporations freedom matter?
First of all, China is an authoritarian government, not a communist government. Second of all, China is doing this because they are suffering from [hidden] massive outflow, and need to clamp down on that. The Chinese economy is slowly collapsing from all the malinvestments, and the rich folks are trying to get their money out. Look at the richest man in China, Wang Jianlin, unable to leave China

https://www.bloomberg.com/news/articles/2017-08-28/wanda-bon...
GitFund: Tackling the Problem of Funding in Open Source
Hold on, I thought crypto-currencies were using encryption to ensure that no one can create more currencies like a fiat currency.

But we can just clone the currency, let's create bitcoin cash! Or let's agree to change the algorithm!

Hold on, I thought crypto-currencies were meant to be immune from government interference.

Wait, China cracking down on bitcoin makes its value plunge!

There is only one way to learn discipline when investing, the hard way, loosing one's own money. Hopefully people haven't bet too much on this.
Thanks! Yes certainly, the notation looks outdated. Even the names and terminology are so ingrained in western classical. Lately I've been using numbers 0-11 for the intervals, instead of the traditional 1-7 with a confusing system of #'s and b's. 0-11 uses more numbers, but at least I can just subtract two different notes to find the interval between them.
Maybe the hack occurred on an api reporting server? The examples look like logs of api requests to something that generates PDF versions of credit reports, like an API a bank might use to access credit reports.

When you get your report it goes through a process of "generating" the report which you then download as a PDF. This could be logs from that generation service.

If the hackers got unrestricted access they may have found the API's logs and just copied them along with the PDFs?
I have a question for more hardware-knowledgeable people than me:

We know it's possible to implement logic gates in Game of Life. So would it be possible to re-purpose a VHDL compiler to emit schemas for GoL-gates or GoL-transistors?

In this case, wouldn't programming a Tetris game in VHDL output a much smaller automata (avoiding the need to use huge OTCA metapixels, except maybe for display)?
The laws that are ruining the Internet
Hate to be that guy but this is certainly going to be a flop.
what a lazy and pessimistic article. evil shit.
Visual Studio for Mac also exists, but it is another different product (basically a rebranded MonoDevelop with some additional features)
The reason distributed/decentralized things fail isn't because of the BS reasons this article gives. In my opinion it is about
- Usability: open source UI and UX sucks for the most part... build an amazing UI and user experience and users will come.

- Do NOT expect people to download and setup software and run nodes... Can you build it in the universal piece of software that everybody has today.. AKA browser ? I think whoever nails these challenges will win.

- I think somebody (maybe me) should build such a 'universal browser' that allows all of these decentralized things to happen. I was thinking Brave would be that browser.. but I'm not sure..
> I must be completely out of touch, because I could not make heads or tails of nearly any word in this article.

Me too! What I struggle with most is trying to grasp where human motives fit into the game structure. Each aspect of the game must be a parallel or metaphor for real life situations that engage and appeal to intrinsic elements of human nature. But it's described almost in reverse, as if the names, the battles, the political structures are what matter. No, what truly matters is why each a player voluntarily spends vast amounts of time seated motionless in front of a screen. That's what's truly interesting (and I guess can probably only be really grasped by playing).
Again, you seem to not have read the article, because it's not about having your private data leaked. Her article is about how we've voluntarily given private companies our private data with no control of how it is used, and that this information is used to power algorithms that affect our lives in ways we can't predict.
The grasshopper flight that flipped sideways then exploded was blown up by the flight termination system. The rest of them are just pressurized tanks of propellant rupturing in the presence of fire and/or red-hot metal.
What a lazy and cynical article. Evil shit.
In Angela Merkel, German Women Find Symbol, but Not Savior
Global EV Outlook 2017 [pdf]
I'm running linux-lts on my kaby lake i7-7700k and it works fine. I haven't used linux-lts in the past, but I opted to do a ZFS on root install so I wanted it to be more stable.
Can I use a composite object or dict for the type?

So all you need to do is to create the null object and the add and sub function on the type? And I can use an implementation of that type as the state for something?

How can I guarantee the order? Would I need to use something like a blockchain or is a distributed database enough, as long as only I need the data and trust myself? In a cluster would it make sense to use etcd

I think, even better would be a commutative monoid, that doesn't depend on the order. It should be possible to scale the global state in a distributed system very concurrent, because of the commutativity.

I would have to store a log (easiest part) and the current state. To sync state between the nodes in a distributed system, they would have to send update messages to each other. They're able to batch process multiple messages to improve throughput.
I apologize for the rabbit hole. But I must ask:
the "democratic public" of North Korea? or just "mob rule" in general?
the "authoritarian power brokers" of the US? or Russia (i.e. Ukraine, Odessa, etc...)?, China (i.e. India, Tibet, Myanmar vs. Rohingyas, etc...)?

The line has to be drawn somewhere. The UN has proven to be quite useless.

Edit - Link Added: http://www.independent.ie/world-news/china-endorses-myanmars...
Yeah, they aren't balloon tanks (which absolutely require pressurization), but they do keep them pressurized as it improves their structural stability.
Delphi was more of a VB competitor, Borland did have a database product called Paradox which was closer to Access.
LaCroix Fizzy Water Is Everyone’s Favorite. Nobody Knows What’s in It
Hi, the author here.

Would really like to learn other cases of how sales are changing with the advent of machine learning.

If you have any questions or critiques I would love to hear them.
> There's a certain trend, on Twitter especially, of people racing to prove they're either more woke or smarter than the teams of people behind things that are yet to even be released.

This has been a trend of a vocal minority on the internet for as long as I've been connected to it. Remember "No wireless. Less space than a nomad. Lame"?
When we built our house we put the actual metal roof several inches above the roof. The actual roof decking NEVER gets hotter than the ambient air temperature (115F max here in Texas). Solar panels or any form of shade structure (including trees) accomplish the same thing.

http://tinyhousemansion.com

Shingles or metal directly on a roof heats the house substantially but is cheaper (costs less in labor). That is why we still do it. (Just like dark roofs look "nice" so we still do that too).
I've drafted this petition in response to the Equifax data breach. I feel that account access should be regulated in certain industries. This petition outlines why that is important and how legislators might go about doing that.

With that said, I am not a lawyer and I am not a security expert. As such, I would love feedback from people who are more familiar with the issue than I am. If you have something to add, please raise an issue or open a pull request.
I'm using LastPass on Android, and I have it set to require both my fingerprint and my LastPass password.
> However there was some talk that it might have caused a nuclear explosion on Jupiter as Galileo had 2 two radioisotope thermoelectric generators. This explision then could have started a chain reaction as jupiters contains high amounts of tritium and deuterium.

This is just about as likely as CERN generating a Earth-eating black hole. RTGs can't generate a nuclear explosion.
Oh God I just spend 5 mins trying to figure out why they are zooming a picture on scroll, I thought it was bug in the site.
In a world where AI actually replaces or augments white collar professions, how does liability play out? Will the ability to sue for or defend against malfeasance depend upon an opaque box of algorithmic litigation?