skysight-inc/HackerNews huggingface dataset:
The New York Times lies routinely.

Here's an example:

https://www.nytimes.com/2017/03/27/world/europe/aleksei-nava...

"Aleksei Navalny, Russian Opposition Leader, Receives 15-Day Sentence"

I picked this one because it generalises: the statement that Aleksei Navalny is the "Russian opposition leader" is one you can find in every mainstream media outlet: WashPo, Reuters, the Economist, the BBC, etc. But it's false. I first fact checked this statement years ago and have occasionally rechecked it since to see if things have changed, but at no point has Navalny ever held a position that could be described this way:

- He isn't coming second in any polls

- He doesn't come second in elections

- Only around a third of Russians have even heard of him

https://en.wikipedia.org/wiki/Opinion_polling_for_the_Russia...

The former communist party does better politically than Navalny.

No matter which data set you pick, Navalny is never the "leader" in it ... except western media attention, where journalists act as if there are only two politicians in Russia, Putin and this other guy.

You can find endless other examples if you start fact checking, all from supposedly reputable sources. I can't even begin to list them all because we'd never end.

I suspect your belief that the mainstream media is a bastion of truth and factual excellence is not one that will be easily shaken, so you believe whatever you want to believe. But I've given you an example, as you asked.
Interactive visualization of freebase movie dataset
Under the view I'm describing any statement like that is a kind of definition, not something that is true or false.

You can investigate whether it is consistent with other definitions. I believe that doing so is empirical work, which I think is consistent with a broad notion of science
> who says you have to run a DC if you're not on aws? did i say that, or did you project that onto me?

I didn't. In fact I even suggested that moving away from AWS wouldn't make sense even if you only needed a few racks. Less than that and it makes even less financial sense to self-host unless you've got really compelling compliance issues.

> how about hiring a smaller company that can do it for you, for half the cost?

Well...

> i know why not, because you think they're going to fuck it all up, get you fired, and you'll be homeless and ashamed. and so back to amazon you go.

I was going to say that a lot of the inertia with AWS is due to feeling like we get a good value and at that size decent support. From what I can tell I either worked for a very anomalous company or you're mostly grasping at straws. A few things though:

- No, I wouldn't worry about being fired for choosing a vendor that didn't pan out. Short of committing a felony that would reflect poorly on the company admin action wasn't even a possibility. Large companies move very, very slowly (if at all).

- No, we're not desperately looking for alternatives to AWS. There's some unhappiness with cost, but mostly that's a capex vs opex go fellate the corporate radiers kinda thing and less of an actually saving money kinda thing.

- No, you're not going to save us 75%, 50%, or likely even 30%. We had enough cruft in our AWS stuff alone that culling 10-25% (depending on the product) was relatively painless.

- No, we don't feel like we're getting ripped off. At that kind of monthly spend you get plenty of attention from Amazon. And not the used-car-salesman kind of attention.

Ultimately, at that scale, few decisions were made because they'd save money up front which seems like your main selling point. As an example from the hardware side: there's a reason why vendors like Cisco and Juniper still do very well in the enterprise environment and vendors like Ubiquiti and MikroTik don't (despite the latter offering 10GBE equipment for under $200).
I don't quite understand why browser vendors haven't developed a terse, fluid API similar to jQuery/zepto with a touch of underscore/lodash and standardized on it. Not only would this be easier to code to, but the JS runtime should have some opportunities optimizing chained function calls to the DOM.

10y after release, jQuery is an established pseudo-standard that is not going away any time soon. Even with querySelector/querySelectorAll/getElementsByTagName/getElementsByClassName, I am still using jQ as the vanillaJs API feels so clunky and verbose.
Exactly. As a person who doesn not usually write Javascript, this project looks like an involutary advertisement for jQuery.

Half of the native solutions have bugs or no IE support. All are three or more times more tendious than jQuery.

The adage in the other comments seem "but jQuery is a big dependency."

Did we already forget the left_pad npm debacle? jQuery didn't break then.
Patterns maybe, but you shouldn't think of frameworks as tools.

In the sense of tools in the real world (like hammers, etc) which are fundamental and basic to the task, used by everybody in the profession, and have staying power.

Frameworks on the other hand, are just some code some random guy (or random community) put together. Some are just awfully coded, despite their popularity. They are frequently rewritten. And they get out of fashion every few years.
Clutching demo
Actually artists do both of those things.

And some artists even specialize in sketches and concept drawings.
I can't believe this is still coming up in this thread, but reading the other comments one learns that the laws are available to read you just can't publish them because a private company has that contract.

Here's the link, read away:

http://www.lexisnexis.com/hottopics/gacode/Default.asp

Edit: Also, I didn't realize this was a dupe until I responded. This discussion already took place.
What Donald Trump Teaches Us About the Fermi Paradox
This is probably good advice for a few people, especially fields that one can self-study and actually get hired.

For a multitude of others, however, there isn't much space to work around if you don't qualify for scholarships, grants, and the like - neither can such education be avoided. I'd rather nurses, doctors, and teachers to go to school - for example - and I very highly doubt you'll get similar knowledge otherwise. I'm also not sure how else folks will get practical experience - I'd not let a new nurse, with no classroom experience, draw my blood.
Voices of America
Octopus tentacle serves as inspiration for gripper
When Screen Sharing Is Essential for Team Collaboration
None of the replies really explain why you'd want a recession.

If the value of my property plummeted too far and I was stuck with a massive mortgage, the first thing I would do is stop any discretionary spending until I could figure out what the future looked like.

Imagine that happened to a lot of the middle class.

I agree that prices are too high, but I can't see anything good coming from a crash.
> a paper-record (don't know the exact English term) with all his college grades

It's usually called a 'transcript' (in British English at least)
Comments like this are why I left Australia: many Australians believe Paul Keating caused the worldwide recession of the early 90s, or the hyperinflation of the 80s, based on Keating pointing out that the recession was a necessary correction. It is a very inward looking country.
Reminds me sometime ago there was a post on HN from the author of shadowsock[1] about being prosecuted/arrested by chinese authority.

Maybe one day one could be arrested by making keyboards or phone screen. Who knows

[1] shadowsocks.org
Don’t Listen to the Buzz: Lobsters Aren’t Actually Immortal (2013)
I thought that at first, but I think he's actually using a little-used saying. It sounds better voiced, with 'one' emphasized, than it reads in text.
but that's a dangerous mindset to start solving the problem with

A far more dangerous mindset is to think that when starting the problem you are capable of planning the perfect architecture up-front. Often you don't even know what the problem is. Far better to keep things coupled and simple till you know in retrospect that you need to split them out. Same goes for global state.

This is a hard lesson to learn. Abstraction is seductive.
What infuriates me the most about it isn't that they've hidden the figures or covered it up, the data is there.

It's that no one seems to care, the press isn't covering it (why would they when they are mostly owned by high net worth individuals cough Murdoch cough or funded through them).

It's an absolute scandal and we all just collectively went oh well, "please sir, can I have some more?".
What security impact of the Haswell/early-Broadwell TSX bug? The support for all TSX instructions where really disabled by the microcode update, and we know that for sure because it crashed the world instantly (in Linux).

Now, working TSX can have a security impact, yes. At least on TSX as implemented on later Broadwell/early Skylake, memory accesses done from inside an speculative region are allowed to bypass stuff they shouldn't. Is that what you meant?
The Emacs property you are demonstrating with let is "dynamic scoping" and not "global variables" (which is leading to a weird and essentially incorrect description, even if it is difficult to notice a behavior difference between that mental model and what really happens).
Sure, that is a potential issue with the argument. But the broader argument is that you can't make crypto go away by wishing. You can't unpublish bcrypt, libsodium, OTR, Signal Protocol, and you certainly can't unpublish the maths they are based on.

All you are really doing is making it inconvenient for normal, law-abiding folk to use strong crypto. A suitably motivated attacker (think ISIS, al-Qaeda etc.) could adapt to a world without crypto using some kind of steganographic approach (three poop emojis and a Miley Cyrus gif = blow the building up!). Every approach you take could be manipulated by the bad guys to their own advantage.
"It doesn't work" is possibly too harsh, see my other answer. But in the best cases, these developments turned into extremely boring places with almost no contact between neighbours. Today, it's exclusively elderly people living there.

There are a few factors I've heard for this trend:

- There are ample green spaces between houses, but they're too small for some of the purposes parks serve, like sports, or to have barbecue without someone calling the police.

- At the same time, they don't replace gardens because you wouldn't be allowed to grow anything.

- They are, however, large enough to lower the density of the neighbourhood, to a point where retail locations are no longer comfortably reachable on foot. It's not quite obvious from looking at it, but my second example has probably 4x the people per area than the first.

- Depending on the social structures, these developments can further crime because they offer many small, unobservable spaces and getaway routes.

Some of it may also be the result of the location where these developments were build, or that they were initially occupied by a very homogenous population (young families in the 60ies -> old people now). But the trend has moved decidedly towards higher-density mixed environments.
When DevOps Disrupts DevOps – DevOps.com
Nicely done there! Gotta love that a company turning science-fiction into less fiction and more science would name their drone ships after the Culture series. Pretty sure Elon Musk is far for the only person there finding these books inspiring.
I'd default the notice invisible and show it when it hasn't been accepted, rather than vice versa as you do here. That way, in the more common case, nothing needs doing. (Maybe there's a regulatory reason that won't fly? I don't know or care much beyond the obvious about the EU cookie rule.) I'd also break out some of the inlining, just to make it read more easily, if this were destined for production.

But the functionality looks good! I mean, document.cookie can be a huge pain to deal with if you actually have to deal with it, and jQuery has a plugin for that - but this doesn't take any kind of parsing, just a cheap substring check, and the class list manipulation is equally trivial. Even animation could be handled in CSS.

Perhaps OP's use case is much more complex than it sounds, in a way that's far from obvious?
April Fool: A Neural Networks Approach to Predicting a Prom Date
#Samsung #Galaxy S8 facial recognition system can be bypassed with a photo
HA! I did the same thing.
Distraction, on Street and Sidewalk, Helps Cause Record Pedestrian Deaths
10 years here. I moved to London, where housing is pretty awful (but not quite as bad) but an attitude to tech that's comfortably between the cynicism of "tech is a scam used to separate idiots from their wallets" (Australia) and the wild enthusiasm of "Snapchat IPO" (US).
SpaceX even landed the nose cone from its historic used Falcon 9 rocket launch
dr_faustus needs Jquery :)
As a long time JavaScript developer jQuery feels like welfare. You can absolutely live without it. Living without it means you will find ways to perform better. For people who have never lived without it the world is a scary place. God forbid anybody suggest an alternative to an entitlement.
Here's my less-than-scientific floating point near-equality test I use.

bool zero(float x) ( return x*x < FLT_EPSILON; }
bool equal_float(float a, float b) {
return (zero(a) && zero(b)) || // both are zero
zero((a-b)*(a-b) / (a*a + b*b)); // or relative error squared is zero
}

This checks equality to about four decimal digits for 32 bit single precision and seven digits for 64 bit floats. Inf/NaN special values are not considered.

Critique and comments welcome.
Also not relational, but Meteor (MongoDB) with GroundDB for the client provides optimistic UI, offline persistence, and sync on reconnect. Unlike Couch / Puch, you can easily share a DB between users with authentication / authorization. Synced content can be controlled with subscriptions.
I would offer the opposite opinion where the life lessons learned in a proper university's atmosphere can have (albeit less tangible) positive career effects.

I'm frequently put in situations that draw on social skills that I honed during college, and I'm not just talking about partying. Things like student government or other organizing events help me as a technical consultant.
How to visually organize knowledge and thoughts with webjets.io
Which is obviously quite a sad footnote.
IIRC unencrypted chatroom logs were used in the investigation against banks rigging FX https://en.m.wikipedia.org/wiki/Forex_scandal
Make is kind of write only. I have this library of mine for image and graphics processing that I wrote and which I'm rolling through years. In the beginning I wrote in all this functionality I thought I needed, basically an architecture of project and it does what I need - I can make a static or dynamic library, it works on Windows, MacOS, and Linux, it has "modules" which can be overriden based on if there's a certain subdirectory within a module with OS/Platform name (basically a compile time multiplatform specialisation) and several other things.. It works and is rock solid. However, if you've asked me now what's in there and why and how... Just by glancing at that spaghetti code in there I know in general what's where, but damnit if I would be brave enough to make significant changes to it. It works though and it works great. I must also point out that I use gcc (different versions) and clang here and there on all three platforms and I change compiler/tools in the environment itself, not within Makefile.

If I would to do it again (I'm not active developer anymore though - it's more for personal use now) I would do it again with make. There's certain straightforwardness to it when writing it, and from my experience there's zero to almost none maintenance, but ymmv of course. I would probably look into CMake if I were using vastly different compiler tools (configuration-wise), but I'm not.
Note: I've changed the title in favor of something less clickbaity. I hope this title is reasonable close to the original one.
Jesus was conceived without sperm.
Ask HN: What to Expect at YC Startup School?
Our company was accepted by YC's Startup School. What to expect from the program?
AT&T gets $6.5B contract to build US-wide public safety network
> For the entire app? You'd end up with a "god object" that would make the app unmaintainable. OO gives you compartmentalization that you don't get with FP.

Well, not quite; take a look at the Elm architecture [0]. It's basically what Redux gives you, but more explicit.

The idea is, that yes, while you have a god object in the top-most component, child components don't know anything about it; they operate on their piece of state completely independently. This makes UI elements perfectly composable and reusable, since in the end, a UI element is just a pure function and nothing more.

Not to mention other nice side-effects (sorry :)) of pure UI architectures, like time-travelling debugging, sane logging and so on.

> FP is great for problems up to a certain complexity. After that it falls apart.

I disagree completely. FP, and moreover pure FP, is especially well suited for complex problems. Pure functions are testable (if you haven't heard of QuickCheck / generative testing, you've missed out) and as I said above, composable.

If anything, I've never seen a big OO program made out of truly reusable components. Because classes and methods are often impure, before calling a method one must make sure that the correct environment is set up in the right way (if you've ever forgotten calling initSubsystem() before subsytemDoSomething() you know what I mean).

One can rip out a pure function from one codebase and reuse it, as-is, no modification necessary, in another one without any problems. How often does this happen in a big OO project?

> Is "instance" adding an interface to TileMap/HexMap so that either can be passed in as a parameter that requires a RectIterable? Can other interfaces be added that way to TileMap/HexMap?

Yes, and yes. In Java, when you have a class like this:

class A implements B, C {
...
}

in some library, you can't add D to the list of implemented interfaces.

In Haskell, you can:

instance D A where
...

Haskell assumes an "open world" - i.e. everybody can add instances to a data type even after it has been defined already.

I can't give you a complete overview of the differences between ad-hoc and parametric polymorphism, but there are plenty of resources online if you are interested.

> In my editor, can I say something like myTileMap.iterateRect after doing this, or do I need to know that iterateRect exists and remember exactly what it's called?

I can only speak for Haskell here. It's a static language, so things like autocompletion, show type at cursor, jump to definition etc are not a problem. The tooling could be a whole lot better, no doubt, but it's not bad. The REPL helps a lot, too.

[0] https://guide.elm-lang.org/architecture/
> More urban sprawl isn't really a solution because traffic will never cope.

I'm suggesting that new business centres be created so that people can live in cheaper areas, and still be close to their jobs. This should reduce traffic since fewer people will need to commute.

But I am not a City Planner. I have no idea what is feasible or not. But there must be lots of industries that don't need to be in the CDB.
Not realtime as in real-time system, but as in representing wall-clock changes.
This Robotic Tentacle Can Easily Grasp Smooth Objects
> twiddling in the DOM for an Angular app means you are doing something wrong

...except in defining a directive.
a neural network learns from your and your
a neural network learns from your and your -- typo
Isn't that, in essence, a trailer park?
Similar experience as a college grad in a field where everyone is expected to have a Ph. D. After a while people just started adding a "Dr." to my name.
Raspberry Pi 3D-printable accessories
If you look at other degrees, it is quite possible to get hired right out of college.

Unfortunately, the job might just be management at the local box store. They tend to not care so much about what your degree is in so long as you have one. Nurses generally have no trouble finding work either.

"College education these days looks more like a luxury good, not a job prerequisite". This very much depends on the field. I've seen administrative assistant positions that require a college degree, especially if it is at a large company. Sometimes it is just a legal requirement: A school superintendent in indiana needs to have a teaching license. The school business manager doesn't need that - merely a 4 year degree in business, though a masters degree is more normal.

You just have to expand the industry you are looking at to find it: obviously, there are lots of exceptions.
#if defined(PLATFORM)

I would recommend against that as well.

I have a directory structure where there's a module/hello.c (stub or generic, platform independent code) and then there's module/platform/hello.c which my Makefile selects over the generic one based on the platform. Primary issue is that there's some code duplication, and it's hard to keep .h files general across platforms all the time (not possible all the time), but in general it does make life a lot easier - especially if platform number grows over time or certain are removed.
Martin Fowler's “Branch by Abstraction” (2014)
Interesting. Could you elaborate on what you have in mind?
A close family friend recently had plans to visit my sister who lives in the US. She's a Canadian citizen and moved to Canada from Iran when she was four years old. Anyway, she's been to the US numerous times, but was denied entry two weeks ago, with no reason given, despite the ban not being in force.
Considering the general problem: there has to be a better way to control landlords. Allow them to earn a reasonable living but keep a cap on house and rental prices whilst preventing speculators from inflating prices too. Controls that would keep a lockstep between median wages and house prices without having to rely on a price crash coming and giving a few lower income people a chance.

Is the problem lack of political will to fix this sort of error (capitalism beating socialism)? Or maybe that solutions are applied but are ineffective?
Before uni (15+ years ago) I made a tetrahedron Sierpinski Gasket - it was very fun but crashed the graphics cards of the day with few divisions.
[].slice.call on the result of querySelectorAll turns that NodeMap (NodeList? I forget) into a proper array, on which all of the language's sequence manipulatory methods work
as they should. I don't know why that method doesn't just return an array to begin with, but this is how you get one from it.
backplane with integrated crossbar switch = Rückenebene mit integrierten Querstangenschalter