skysight-inc/HackerNews huggingface dataset:
Let me attempt to improve upon Fowler's ValueObject pattern in JS, and tell you the upsides:

function Point(x, y) {
const hash = Point.__hash(x, y);
const cached = Point.__cache.get(hash);
if (cached) return cached;
const newPoint = {get x() { return x; }, get y() { return y; } };
Point.__cache.set(hash, newPoint);
return newPoint;
}
Point.__hash = function(ptx, pty) {
return `${ptx}|${pty}`;
}
Point.__cache = new WeakMap();

This does what you would expect a ValueObject (or an algebraic type or struct depending on the languages you normally use) to do in another non-JS language - it interns all equivalent objects so that simple reference equality is sufficient to determine equality - rendering the nonstandard "equals" method unneeded. This also solves all the issues with ".includes" and so forth, again, because the built in reference equality is sufficient to determine equality. This also has much better memory characteristics in a system where many equivalent objects are created, as only one copy is ever stored in memory.
The only drawback is the small overhead of the WeakMap used to cache all the references and the overhead of "hashing" at object creation time - neither of which should be noticeable in most applications, and the memory benefits should outweigh these concerns in most performance applications regardless.
Methods to circumvent this (I'll sound like ESR, but wth):

1. Own your hardware.

2. Own your data.

3. Share your algorithms.

4. Promote commercial benefits of encryption. Lift existing laws to encrypted communication, such as doctor-patient confidentiality.

5. Learn about cryptography and explain it to your techy friends. What we don't know, we fear.
During some computer archeology once I was trying to find out more about a binary running on a very old system.

I ended up e-mailing a guy who had worked on translations for a library that was statically linked into the binary. He had no idea what I was talking about but I jumped on his address because he was danish so I could speak to him natively.
When your service station or doctor screws up they lose thier certificate. When your tax helper screws up you go to jail.
If you only cut steel you should be buying a plasma cutter.
True. But don't forget how flawed Hillary was as a candidate.

All the scandals. Too uncharismatic and un-empathetic to really resonate with voters. (It would not be a stretch to compare her to Kerry in this category.) She was completely an establishment candidate at a time of great anti-establishment sentiment. And the DNC put her on the express path to the nomination, which turned off a big chunk of her own party, and thereby (I strongly suspect) reduced turnout.

With all those flaws, it's a measure of Trump's weakness that Hillary came as close as she did...
Checked, and it's not redacted.
harder problem: cutting the steak in a shape so that after it's cooked it looks like the US.
I completely agree. Humans will be humans and we will always have tribes. And that's okay. What needs to change is modern voting systems to accomadte the growing fractions of views. Such as, The Alternative Vote (Instant Run-off) [1] Also, The Cracked podcast is so fantastic!

[1] https://www.youtube.com/watch?v=3Y3jE3B8HsE
Meet Raheem, a Facebook Messenger chat bot to keep tabs on police
Yes, thanks. The cert isn't redacted. I read the update, then read the article, and forgot all about it. That probably explains it.
I do get the "proceed to www.xxx (unsafe)" under Advanced. Version 53.0.2785.143 Built on Ubuntu , running on Ubuntu 16.04 (64-bit)
I just attended a UU church's 150th anniversary yesterday and the main sermon mentioned this very topic. "We need to change how we do church" type of thing, because "young people share many of our UU beliefs but do little more than stop by for one Sunday".

To me it's not a "attract them" problem, it's a "keep them" problem.
He didn't openly molest women. Listen to the recording. He talks about the women who let him do it, which is consensual.

4 years will not destroy the planet, even China failed at that in their crazy building spree in the last decades.
contraflow bike lanes are common in paris
Are there any machine-learning approaches to superresolution which take context into account? By that I mean filling in details that can only be guessed by context.

For example, when the algorithm detects that the image is of a field of grass (but individual blades of grass not discernible), then in the superresolution output it paints in these blades.
Agreed. I have an incorporated entity for my general business/freelancing, but keep side-projects informal until they get any serious traction.
Yeah given the recent spate of ultrasonic trackers, this revelation is not a welcome one. I believe Shazam when they say they're not using the data, but all it takes is one (silent) update to their privacy policy and TOC...
great. will do
Ha! Really cool. That was a fun fact!

Make was right there under my nose I just never imagined using it for anything but compiling and building things. In that case I was forced by circumstances (was developing on a constrained ancient version of RHEL), couldn't use GNU Parallel and someone suggested `make`. The use case of obvious once a co-worker mentioned it. But it was definitely It was one of the memorable "thinking outside the box" example as they say.
I don't much like STV either; not because it isn't fair, but because it's almost impossible to do without using computers.

We need to keep computers out of elections.
Ask HN: Rejecting an offer from one of the Big 4 after I signed it
Early this year I got and signed an offer letter with Facebook London which gave me a nice SWE position starting in March after I graduated. However, in this interim year, I got another job offer from an exciting startup which I'm planning to take.

If I had a time machine I would go back a year and not sign the Facebook offer. Since I don't, does anyone here have any experience with the consequences of rejecting job offers from big software companies after signing up with them? Would I get some kind of penalty (I didn't take the signing bonus yet)? Would this bar me from having a new offer with Facebook in an hypothetical future?
We can debate all day about whether voting 3rd party under simple majority voting is taking a stand or being irresponsible (by causing a split vote and letting the worst candidate win). I think there are legitimate arguments on both sides.

The only real way to stop propping up a 2-party system is to switch to something like ranked choice voting, so good on them for doing it.
Key points in here:

- Thinking differently about Values vs. References (which you may or may not be used to depending on your language)

- Mutable "values" are dangerous (and it might be worth thinking about what constitutes a "value")

- Translating incoming low-level numbers and strings into proper "values" helps avoid errors.
That 99.99...% out of all human population rounds up to leave no-one "not stupid".
By simple exaggeration you just included yourself with the rest of us.
Like a water-jet rail gun?
The waterjet "jewel" is typically diamond, and the nozzle tungsten carbide. Both are very hard, and thus wear slowly. Though they do wear.
I see this falling flat on it's face unless the table is easily expandable. Waiting a long time for a part is a much easier to deal with problem than constantly hitting the upper limit of what your machine can cut.
I googled "safety pin" and 50% of the top results are clickbait garbage
Including three tweets in a hour just yesterday strongly condemning the NYT for simply repeating his goal of nuclearizing Japan and S Korea eg [1]

[1]https://twitter.com/realDonaldTrump/status/79783222980005068...
Yup definitely a bad idea. But a less bad idea than getting murdered by a cabbie on 2nd avenue while riding with traffic in the nonexistent bike lane.
Once you are depending on karmic justice to enforce your laws you no longer have laws.
Interesting - so they would actually use a different/clean EFI image on those?

If so, then I agree - that's by far the best way to get a Windows laptop. I'll pass on the recommendation next time someone asks me.

It does seem to be a bit more expensive, though; at least for Canadians. I'm seeing a $700 delta between what I'm seeing there and on the Dell store. Is that usual?
They've probably lost you but their business model is not shrinking, at all. Far from it.

>>> By not maximising the short-term ad-impressions (or other short-term) metric, Google increases odds of being there when people are interested in its money-maker: quality suggestions for commercial goods and services

Google is already 18 yo, they are clearly not playing the short term game.

And they are offering quality suggestions for commercial goods and services. People are arguing whether or not they collect too much data for said services, but I haven't heard anyone complain that their ads are obtrusive. Including yourself.
As a supporter of Gary Johnson, I grew frustrated with the fear of the "spoiler effect" of our current system and spent a day looking into alternative voting systems and their pros and cons.

I, too, came away with approval voting being my favored approach.

One question to ask yourself, though, is this: in an election where candidate A is loved by 55% of the population and hated by 40%, and candidate B is loved by no one, but tolerated by 80% of the population, who "should" win? It's more of a philosophical question, but depending how you answer it influences how you should choose a voting system.

If you think the 80% tolerated candidate should win, then approval voting is for you. If you think being loved by 55% of the population should be the winner, then IRV or another system may be better.

I personally prefer the boring, centrist 80% tolerated outcome, so I like approval.

Another thing I realized, is that a lot the research doesn't seem to take into account polls ahead of time and iterated preference making. Approval voting might be terrible if it's once-and-done, but if you have polls leading up to it, you can calibrate your "approval level" a little better.

E.g., if Hitler is running, you might say "I approve of everyone else". But if you see polls suggesting that no one is approving of Hitler, then you might raise your standards a bit and not approve of some more candidates.
Would you mind sharing the domain?
But what if the app author doesn't agree with your court choices?
...Well, just stick to the web and the more underground sections of the internet, and avoid big silos. Don't log into facebook. Don't log into google. Hell, don't even use google, if DDG works for you now.

Overall internet freedom isn't waning as much as you think. Step outside the silos, and look at the net, not just your corner.
Gold Nanoshell Cancer Therapy (2005)
This kind of behaviour is what led me to install Micro Snitch [1]. I'm sure there are Windows and Linux equivalents.

[1] https://obdev.at/products/microsnitch/index.html
Maybe, but it's been overused into meaninglessness now.
So what is the middle ground between these two absurdities? Parent said it does not matter. I am saying it is possible that it does matter.
No, "A" is upside-down, before the transformation it was the symbol for the head of a cow, called aleph (whence alpha).
Ok crazy idea but we do need to solve this OSS problem somehow.

My personal view is that governments should take the lead in paying for development of OSS (http://www.oss4gov.org/manifesto - full disclosure I run this site (badly))
You can always assume this.
That's alright. I just want to know why you say that it's handwavey. As far as I knew there was almost no dispute that CO2 had huge and well-quantified warming potential. Nor was there a debate about the origin of the CO2 in the atmosphere (from the ratio of carbon-14/13 to carbon-12, you can tell it's from fossil fuels.) Please correct me if this is mistaken, because it's not my field of expertise.
Is there a way to open devdocs with a shortcut like Dash?
I keep hearing this silly conspiracy theory, but the numbers just don't add up.

Apple makes the princely sum of $4 per accessory on MFI licensing fees. Last year, those licensing fees made up less than one fifth of one percent of their revenue, a number so tiny that it doesn't even show up as a line item in their financial reports.

It would be such a spectacularly stupid decision to jeopardise sales of the world's most profitable smartphone just to try and add squeeze a minuscule amount of extra revenue out of MFI fees, it completely beggars belief that anyone is even considering it as a possibility.

Regarding DRM, Apple is the company that forced music labels to abandon DRM on their distribution platform the moment it became clear that Apple held all the power in that relationship. What possible conceivable benefit could there be for them to sneakily try and add it back now?
I mean I keep looking around and I don't see what's so innovative. The Razer Stealth is in the 13" rMBP's weight class, but gets a third less battery life. Alienware makes big heavy gaming laptops. Surface is a good design that was poorly executed: http://www.laptopmag.com/reviews/laptops/macbook-pro-13-inch.... Somehow, the Surface Book with Performance Base gets less battery life than the 13" rMBP, despite having a battery that's 60% bigger!

You have to nail the fundamentals before you start thinking outside the box. Surface Book, for example, had an innovative form factor, but it shipped with major bugs (heating up during sleep, screen refusing to detach from the base, etc.) Shipping a neat-o feature before it's ready for prime time is pointless. E.g. OLED is a disaster for battery life right now on typical white-screen desktop workloads.
Looks pretty cool, but it seems like it would be impractical to use regularly for small things due to the hassle of purchasing, storing, and disposing of large quantities of abrasives. (I wonder if higher-pressure commercial machines consume less abrasives?)

My point of comparison is that I own a 45 watt laser cutter from Full Spectrum [1], which I'm pretty happy with. The machine is kind of expensive, but the cost of operating it is very low. Just have to keep the mirrors properly aligned and clean, and top off the water bucket and scoop out dead bugs from time to time. The main operating expense is the material, and I can get 1/4" or 1/8" birch ply for under a dollar a square foot. I can't cut metal or glass or ceramic or stone though, which is where a water jet would come in handy. Another advantage of a water jet is that you don't have to vent smoky exhaust. (Fortunately, I live in the top floor of an apartment, and if anyone notices they probably think I'm running a barbecue.)

[1] http://fslaser.com/Product/Hobby
I remember how the "walkable city" and "walkability rating" idea started popping up ~2004 [at least for my radar]. Like the idea of these shopping oasis out in the middle of nowhere vs a mix-use neighborhood vs the financial district that turns into Tumbleweed City on weekends or after 6pm.
"One problem of RCV is that especially with lots of candidates, a winner can be chosen with a relatively small number of first-place votes. This was exactly what happened in the city of Oakland, California, in 2010 when Jean Quan, who received only 24 percent of votes in the first round, ended up winning the election because she was the second and third choice of many voters. In Burlington, Vermont, after the leader in the first round did not win an election, RCV was repealed."

In Austriala the above happens all the time it is considered normal.

http://www.abc.net.au/news/federal-election-2016/guide/mpor/

Here the Labor party candidate polled second highest (with 27%) and was elected thanks to Green Preferences. The Liberal candidate lost despite polling 42% of first preference votes.
Dupplicate - discussion is here https://news.ycombinator.com/item?id=12947739
Not a lawyer or accountant either, but my understanding is that a single-person LLC is only useful if you're holding business debt: if your company goes bankrupt, your personal assets are much harder to go after. For liability, you're exactly right: you can't pass off liability to a piece of paper when you're the only person in the company.

I get flak for this whenever this discussion comes up, but personally I have a side project business, and it's a sole proprietorship. I looked into incorporation but could not find a single positive attribute to it, for my situation. My situation is: 1) I'm the only person, and 2) I have zero debt involved with the business. So for me, there just isn't any good reason to incorporate; it would only increase my costs and force me to waste a bunch of time on extra paperwork for nothing.

All these people touting incorporation seem to have several assumptions, one being that you must necessarily go into debt to start a business (not true), and the other being that surely you must have employees or partners (also not true). Just look at some guy who starts a lawn-mowing business: if he buys his own mower out-of-pocket, and does all the work himself, what the heck does he need a corporation or LLC for?
Im having a Chromium hotword flashbacks

https://bugs.chromium.org/p/chromium/issues/detail?id=500922
He recorded and released a phone conversation with an Apple representative that confirms a lot of the details of this story. Sure not everything is clear, but if I'm remembering right, the phone call confirmed that Kapeli and his family member used the same distribution account, and that the family member bought fake app reviews. Apple banned the whole account because of the fake app reviews, but they did give Kapeli recourse and offered to reinstate his app if he publicly apologized and cleared up the issue. Kapeli decided not to do that and released the private phone call with the Apple representative instead. I'm pretty sure that killed any chance of Dash getting back on the app store.
> If the mic wasn’t left on, it would take the app longer to both initialize the mic and then start buffering audio

How much longer?
IMO, The issue with this article is that it conflated a desire for immutable record types (as you'd see in a functional language) with something which requires equivalence overloading in a language which does not support them (as you'd find in a heavy OO language). I think while he presented _A_ solution to the specific issue he encountered (wanting to compare algebraic types as cohesive units in Java), it is not the _best_ general solution to the issue - in fact, it's really not the best solution in any language without built-in record types, as it can lead to costly hidden comparison times and unneeded memory growth (which most design patterns I would say should discourage this kind of hidden performance issue). This is a data structure problem which should be attacked much like how a compiler implementer would attack it - by being lazy and doing at little work as possible. Instead of making similar objects appear equivalent - make identical objects be references to the same object! Since we already decided to let records be immutable, it actually turns out quite nicely in JS, as I have written elsewhere - and I'm confident that the same cached-reference/object interning strategy could be used in Java, too.
This is silly.

Anyone who followed the election just a little bit saw plenty of that.

Here is another one that didn't take me more than one search either.

http://www.nydailynews.com/news/election/republican-women-su...

If anything it proves exactly what I said.
Sfsdfdsfsdf
dsfdsfsdf
Yes, this, so much. Thank you. It was absolutely "weaponized disinformation," and Stephen Bannon is a homegrown USA adherent of it, and now he's Trump's right hand man in the White House.

People who should know better STILL believe that the reason Clinton lost is that she really is "corrupt." "She is corrupt because of the email leak." The emails I read seemed extremely banal ("Should we be bad and get a latte?"), even inspiring in some cases (Chelsea communicating about the Haiti earthquake response). I never saw anything concrete that made sense to me come out of that, and I spent a good amount of time looking into it, including reading through the text of emails which had been cherry-picked as being supposedly "damning." Getting together with "elite" people is not in and of itself proof of corruption: how could she do her work as First Lady, Secretary of State, and Senator, without that?

Ranting about "corruption" is one of the tricks of demagogues. Just read this Wikipedia article and tell me that is not a spot on description of what we are witnessing: https://en.wikipedia.org/wiki/Demagogue

It is so, so very tragic. People have still not realized what has happened. People are calming down when they should be panicking. The implications of this episode, just for our prospects of surviving Climate Change, are tragic.
He didn't call all Mexicans rapists.

Right, only (an apparently large portion of) Mexican immigrants:

When Trump declared himself a Republican candidate for president last month, he warned that the U.S. is becoming a "dumping ground" for the world's problems.

"When Mexico sends its people, they're not sending their best," he said. "They're sending people that have lots of problems...they're bringing drugs, they're bringing crime. They're rapists. And some, I assume, are good people."
I googled "kardashian" and 90% of the top results are clickbait garbage
> There are ethnic russians who speak russian living as the majority group in a region called novorussia less than 150 years ago. None of that is false. Why not conduct a plebiscite there? These people will shit on India for kashmir or Israel for Palestine, but will turn a blind eye towards other areas. Propoganda it is too.

I can speak about Kashmir and why plebiscite will not be a fair thing to do. Kashmiris now consists of Muslim majority as a result of systematic culling. This was not the case in 1970. With external support, an Ethnic cleansing of Kashmiri Hindus was carried out for decade and Media kept silent. In fact Indian Government itself was the culprit. In its policy of minority appeasement, they completely ignored mass culling of Hindu population.
I'm happy to see that he was able to make it open source and under GPL3. I wonder if the developer will be responding to issues and pull requests, since those are open for this repo.
TXR Lisp:

This is the TXR Lisp interactive listener of TXR 157.
Use the :quit command or type Ctrl-D on empty line to exit.
1> (defstruct point nil
x y
(:method equal (me) (list me.x me.y)))
#<struct-type point>
2> (equal (new point x 0 y 0) (new point x 1 y 1))
nil
3> (equal (new point x 0 y 0) (new point x 0 y 0))
t
4> (hash-equal (new point x 0 y 0))
536869888
5> (hash-equal (new point x 0 y 0))
536869888
6> (hash-equal (list 0 0))
536869888

See what I did there? When designing this object system, I realized that rather than a binary equal method which takes this object and that, what we need is a unary equal method. When an object must be compared or hashed for equality under the equal function, and it has the equal method, then that method is called to retrieve a representative object. That object is then used in place of the original object. The method just has to return something which supports equal directly.

This feature is called equality substitution.

Doc link: http://www.nongnu.org/txr/txr-manpage.html#N-00790C76
Show HN: Build Your Own React Native / Firebase Social App
Quicker to read and easier to understand, actually.
A react web video player component
A web video player built for the HTML5 world using React library.

Github: https://github.com/video-react/video-react
Demo site: https://video-react.github.io/
the fact some models crawl even after you explicitly block ICMP makes me think clever backdoor?