skysight-inc/HackerNews huggingface dataset:
I was curious about this Greenwald quote, which does not really match my perception of recent media coverage, so I went and looked up the date[0]: the article in which the quote appears was published in July. Greenwald's context here is mostly (or entirely? I'm not sure when the interview itself was conducted) based on the primary process, which certainly seemed strongly anti-Trump, to the extent that many outlets even refused to believe what the polls were telling them [1].

[0] http://www.slate.com/articles/news_and_politics/interrogatio...

[1] http://fivethirtyeight.com/features/how-i-acted-like-a-pundi...
Creating a Responsive Nav with Pure CSS
Just for kicks, I used OSRM and added a large time penalty for taking left-hand turns.

Here's the kind of route you get:

http://imgur.com/VW63fq1

In reality, the metric probably needs to be a lot more complex than what I hacked together here. It's actually more like "don't turn left across traffic, left turns are ok onto one-way streets, etc", my metric was simply based on turn angle, and there are a bunch of scenarios where that falls down.

The rule probably works well in travelling salesman-like scenarios - you want to optimize the route to deliver multiple packages.

Having played with adjusting these kinds of metrics quite a bit, it's never as easy as you want :-(
IODB Storage Engine (for Blockchain Applications)
http://itoolset.com/nsfw
The OSSL outlook is that both the OS and the hardware were designed by untrustworthy, paranoid, schizophrenics who wanted OSSL crash and burn. I wouldn't expect intelligence, sanity, rhyme, or reason.
I never saw that before. Thanks.
Yes, perhaps I am.
>The other half of rock & roll has got to be hillbilly. And that's a derogatory term, but it ought not to be. That's a term that includes the Delmore Bros., Stanley Bros., Roscoe Holcomb, Git Tanner and the Skillet Lickers... groups like that. Moonshine gone berserk. Fast cars on dirt roads. That's the kind of combination that makes up rock & roll, and it can't be cooked up in a science laboratory or a studio.

Considering that most of the rock & roll I listen to comes from Britain, I have no idea what he considers rock & roll to be. It's certainly not american folk music.
But in most GC languages there is nothing you can do without allocating. Creating an object is already allocating it on the heap, printing a string will also allocate.
> I was surprised to learn that Android in 2016 doesn't even natively come with an equivalent of JavascriptCore. You have the pleasure of somehow getting V8 to run and then serialize/deserialize all your native objects manually in order to talk to it if you want javascript outside the browser.

That's a little bit like saying that Chez Panisse doesn't even deliver sewage to your table, and that if you want to pour it over your food you need to bring your own chamber pot with you.

Java is not a great language to program in, but if there's any language it is clearly better than, then that language is JavaScript. Why would one want to program an Android app in JavaScript rather than in Java?

There's only one reason to use JavaScript: because one is deploying in a browser, and JavaScript is the only language supported by the vast, vast majority of browsers. In every other way, it's a misbegotten mistake of a language.
I know I might be shooting myself in the foot here by posting this.

I got so annoyed by Facebook's banal trending news suggestions that I wrote a script to flag every trending news item as offensive (on the premise that it is the flag most likely to have lasting effect). I never see trending news on Facebook anymore after running that for a while.
That's probably why they hand out samples. Never thought about it beyond the individual product being sampled.
Python biggest use case is a scripting language - you don't want to bother with dependency management and all that stuff when you're writing scripts.

When you have a more complicated project it's fine to rely on repo packages (Python does as well for eg. web frameworks like Django aren't in the core). In fact python std lib is hugely inconsistent stylistically as a result of needing to keep it stable over the releases as people expect it to be backcompatible and package versions are tied to language versions. If it had proper versioned dependencies doing breaking refactoring over the years would be really easy and non-intrusive.
This is a stupid, stupid idea. Cities that cross borders are a problem wherever they are, because of the administrative difficulties involved: you can't have a single, consistent set of rules and laws spanning the whole city, you don't have a single government managing it, etc.

We already have a LOT of problems here in the US where metro areas are comprised of multiple cities, and worse, cross state boundaries.

Ask anyone who lives in one state, and drives to the other state to go to work every day, how they like doing their taxes: it's a nightmare of forms every year because there's multiple taxing authorities they have to answer to.

Or look at public transit that crosses state boundaries, such as that used between New York City and New Jersey. It's a mess, because there's no single government that the transit agency has to answer to and is accountable to. Funding is always a problem because again, there's no single government that controls it, and no single electorate that government is accountable to.

Even a metro area within a state, but composed of multiple cities can have problems. In the Phoenix metro area, there's confusion at traffic lights because all the cities have leading left turn arrows, except for Scottsdale which has lagging turns. This has caused many accidents because drivers get used to one or the other and then drive across one street and suddenly the standards change.

There was an interesting college project back in the 70s called "The 38 States" (google it) where a class decided the current US state borders were badly drawn and led to too much inefficiency, so they came up with a new map of the US with idealized borders, taking into account local cultures and locations of metro areas. One of the prime factors in how they drew the new state borders was to make sure that no metro area spanned two states, and instead the borders were drawn, whenever possible, in rural areas between cities. This guy's idea flies entirely in the face of this.

The governments in Oregon and Washington already complain a lot about people living in Vancouver (WA), where there's no income tax, and then doing all their shopping in Portland, where there's no sales tax. Doing this over a national border, between two countries as economically disparate as the USA and Mexico, is a recipe for disaster.

Plus, as dogma1138 says, we already have places much like this on the border. El Paso/Cuidad Juarez is a prime example. It isn't a panacea, and last I heard, Juarez had a huge problem with brutal gang violence.
Every data structure in C++ has an allocator override. If you want to use a bump pointer allocator, you can use a bump pointer allocator. In fact, this is a very common optimization in game software during time-critical frame rendering. Allocate a large chunk of memory to act as a flywheel, then use a bump allocator against this chunk of memory while performing data-heavy crunching, then reset the bump pointer at the end of the render cycle. All memory is freed at once, without the use of a more intrusive garbage collector.

As they say, C++ gives you enough rope to hang yourself. It's pretty unapologetic about not being a language meant for everyone. But, sometimes, one needs to drop down to a lower level language to boost performance. I like to apply the Pareto Principle: 80% in a higher level language, and 20% in a language like C or C++.
Ask HN: What is your go to tech stack for web apps?
Yes, Downandout, because as president He single-handedly did that. You do realize his political opposition LOVES that stuff, right?
Found this 1968 song from an Israeli singer a couple of weeks ago, whose title says it all: "The Hippies Of Today Are The Assholes of Tomorrow" (https://www.youtube.com/watch?v=joZU1fMFCAo).
From Java to Go, and Back Again
>You can open Android Studio, create a new project and "Go!". It'll work

I tried this after their 1.0 release and it crashed. Mileage varies from person to person
Unified UI is a terrible idea: the idea boils down to this: instead of having several UIs that serve the interface they operate on well, have one UI that serves all the interfaces poorly.
This is the advantage of C++ for me. Deterministic behaviour.
Uh no, barely works for even the most basic tasks
Why would Russia tap Turkey's telecom?
Why would Russia tap Syria's telecom?
Why would Russia tap Lebanon's telecom?

I've offered up motive for why they would be looking to un-do taps that are already there, but haven't heard any competing explanation to why Russia would tap commercial undersea cables.

The American military does not use commercial undersea cables for their trans-continental communications, by the way. So, if the RV Yantar is not near commercial cables, they could be near secret military cables, or Anti-Submarine Warfare equipment set up by the Americans, Israelis, Greeks - who knows.

I'm trying to point out that latching onto the idea that they're loitering above and tapping/sabotaging underwater commercial cables is only one of many things they could be doing. Since we don't even know the location of those cables, it's extremely speculative to say they're loitering above them to begin with.
Ask HN: What's your most memorable 'how come I didn't know that?' moment?
Seems like a good fit given that people are maintaining fake friendships and fake amazing lives on their timelines. [edit] yes I am bitter from past experience.
Building a Shop with Sub-Second Page Loads: Lessons Learned
Very true. Having done both professionally however, I can say Android is on another level with frustration and tooling problems. Yes, I've become biased, and yes, I will remain much less enthusiastic to take on an Android project. I appreciate both platforms, but man, iOS allows me to sleep a bit better at night.
You have to understand that this is a cultural difference between Sweden and the US, and Canada is more like Sweden but far from the same. In Sweden, the culture of things like the best possible healthcare and education is not a "premium" thing like it is in the US, over here it is seen as a basic human right to have access to the best possible healthcare and education no matter what your financial status is.

Thanks to this culture, ideas like making a profit off of peoples health issues is frowned upon and therefore medicine for example is not even close to as expensive as it is in the US. It's the same with the 16 months parental leave, it's considered a basic human right to be able to spend more time with your newborn if you want to, without impacting your finanical status as much.

Of course there is always something better available if you've got the dollar for it, but the Swedish healthcare is generally very good. I've had an uncle done heart surgery, a friend with brain tumour and both are healthy as horses now and they didn't have to spend any money.

I should also mention that the Swedish people is generally very healthy thanks to our laws and EU directives surrounding food and medicine standards. Overall the quality of food is better here than in the US, due to new chemicals has to be proven that they are not harmful to your health, while in the US new chemicals has to be proven that they are harmful to your health before it can get banned (so all new chemicals are banned by default, and allowed when proven otherwise). Additionally, antibiotics and other harmful medical treatment for livestock is banned in Sweden, so the resistance towards antibiotics is generally lower here as well. The reason I mention this is because it goes hand-in-hand with our government-funded healthcare. We invest a lot in making the people healtier overall.

This is a cultural difference, and the reason I stress that so much is because I don't want you to mistake this for a socialistic country, like so many do, because Sweden is very liberal overall.
Do you mean establishment leaning rather than left-leaning, that's what I heard from trump and bernie people.
C++ Variadic templates from the ground up
Does anybody actually use Ubuntu in production? I've forsaken it on the desktop (I got sick of my system breaking every 6 months, and having out of date packages), as have many others, but it's still quite popular there. On the server, though?
Just as an example of these restrictions I bought a Lenovo desktop from an auction, and the darned thing required a proprietary power supply. After reading forums etc, I heard that they were selling a 450 watt power supply for around $285, where you could buy an non-proprietary power supply with a better build for $40. Luckily I was able to get a 24 pin to 14 pin adapter for a couple of dollars from Hong Kong.

As far as I know it is the same with current HP desktops as well. Don't buy Lenovo/HP.
That is quite low, if you were to optimize it a bit you could net a decent amount of money I presume.
Raising Barriers: A New Age of Walls
TodoMVC (Rust and Emscripten)
What am I missing here? Yes, China is considered Authoritarian because they are a one-party-state...
Ubuntu is an extremely commonly used server OS, if that's the question.
> Streaming is definitely more convenient, but since Netflix's streaming selection is atrocious, it's not worth my time or money.

Which was exactly my point. It's a flaw of Netflix that it's streaming collection isn't as good as it's DVD collection.
Top 15 Most Popular Marketing Automation Products
When you have multiple claims against you and you describe in detail taking actions that you've denied, it's no longer "joking" (Honestly, who jokes about stuff like that?) At that point it's called corroborating evidence.

Thinking logically and taking all contextual evidence into account can be hard, but it's worth the effort instead of rationalizing things away while simultaneously debasing yourself. Based on your profile, you don't really seem to care, so I won't bother anymore.
Wild Sheep Chase and The Wind-Up Bird Chronicle are also quite good. His tone can vary a lot from book to book, from absurdity (Wild Sheep Chase) to straight up nostalgic, umm, romance(?) (Norwegian Wood).
I'd encourage you to investigate the link between Clapton and American folk music. I could post links, but I'd just be doing what I'm encouraging you to do - research this a bit.
In a world where prestigious private schools are amassing huge endowments, I think the "for profit" versus "private" distinction is a thin one. For profit schools fail not because of their corporate structure, but because their lack of prestige and reputation limits them to catering mainly to a student body that is marginal to begin with.

If Harvard, Stanford, etc., converted to corporations and started paying dividends out of its giant endowment, I doubt the best students would suddenly start turning down their offers.
Many phones don't support SD cards. I still have my old travel book of CDs — it's dozens & dozens of them.

(as an aside, why am I getting hit with 'you're submitting too fast' recently? I'm really not submitting that many comments!)
Ridiculous email disclaimers
No, it is not an unfair comparison. Those systems were not hand crafted. They were implemented via first-order logic theorem provers. FOL theorem proving is Turing complete and extremely expressive.

This not a me vs you camp. Just a scientific statement.
Well, as we can see from southern Tucson, that city has become progressively worse as more non citizens have taken it over. The malls and "safe places" have moved farther north as the people keep coming. It is not safe to walk around the border without a gun. So how will creating a new city help anything? Are you trusting that if non citizens weren't categorized as illegals that they would follow more laws?
> It's more like the ability to plug your phone into a monitor and carry on working.

Do I really need a phone to do this ? As long as I can reach the same data I don't really care if I'm on the same device where I started working on it.

In fact the software I want to use when I am in front of a monitor is much different than the one I have on my phone, and I am not talking only about user interface, but also features.

Cpu power is getting cheaper and in smaller form factors.
I suspect that instead of connecting our phones to the display devices, those devices will be powerful enough that we won't need any integration. And if I really want something portable, I will be able to "add a cpu" with an external stick (like Intel Compute Stick, but cheaper e/o smaller).
> There's no doubt he did this, but ... do songs count as literature?

Anything with text is potentially literature. The rest is up to the snobbery of the judges.
The Era of Women
I don't know what is your personal assessment of an authoritarian state but in my book, a country with a single party (or where the single party decides who can be elected or not), and where the head of state is or was the head of the single party is an authoritarian regime.
I just recently wrote my own memory allocator for my own String. Now my String is at least 2x faster then the next fastest alternative (I have tried many alternatives for C++ strings including std::string of course). String allocation can be made very fast with thread local memory pools (and you just need a basic GC to free up memory if there are a lot of strings allocated in one thread but destroyed on another one).
"How else do you think they managed to convince so many people to be communists?"

Once they had momentum? With rifles.
UBI goes to everyone and affects everyone. Who's the "everyone else"?
And if I really want something portable, I will be able to "add a cpu" with an external stick

I'd say it's even more likely that anything computationally expensive won't be done in the same room with you to begin with 10 years from now, but will be done by an anonymous compute node in a datacenter that you're leasing for the 5 seconds you're using it.
> Ceph can make it possible but for fast disk I/O, it's tough to beat the local SAS bus.

Personal anecdote - we have everything on-prem using a pretty standard vSphere setup, I've got a couple PostgreSQL databases that aren't even that heavily used (I mean, they top out around 20-40 tx/sec) backed by a hybrid Tegile array. Randomly throughout the day my IOWAIT starts spiking because even over 8Gb fiber channel our storage latency starts spiking because everything else is on the same storage (well over 200 full VM's), or sometimes I need to run a table scan over a 40GB table for a one-off query and the storage bottlenecks the crap out of us because only our small active set is cached on the SSD's.

You can run databases on remote storage, people obviously do it, but there's a reason why even on AWS the best practice is to use your instance disks instead of EBS volumes if you care about performance. Noisy neighbors suck.
Then Russia is a democracy. Agree? Because, you know, there are many more parties than in the US.

Oh wait, they say Russia is a dictatorship. Oh yeah, in fact in Russia you have international observers during elections, in the US not. In Russia you have 4 parties in the Duma, in the US just two. In Russia you have a pletora of parties in the elections, in the US just two.

I am seriously angry they didn't add the biggest dictatorship in the world, the American Empire!
The author's "internal_ptr" template seems exactly equivalent to Objective-C (and I assume Swift)'s weak references.

And that's great! Automatic reference counting is my single favourite thing about Obj-C. Once you get the hang of using weak refs for parent objects, ARC is very easy to use, with consistent speed, low memory usage, and immediate deallocation of dead objects.

I'd go as far as to say that Objective-C is a big reason why iOS has historically been faster and smoother than Android. It's not the world's fastest language, but there are no big GC pauses and it doesn't waste a lot of memory.

So I bet this is a good memory management style for C++ too.
In the time since Dylan started signing black people went from having very limited rights to winning a presidential elections. Obviously, there are many more factors than Dylan at play, and establishing causality, or the lack of thereof, is impossible. But, in my opinion, saying that society has not changed would be a big mistake.
Making Emails Not-So-Scary Looking
I wish I had a reaction as emotional as yours, but I still understand your sentiment. They're quirky, yet so relatable. Ultimately, Haruki literature resonates with the loneliness felt in the cold, detached 21st-century society.
I always thought it's mostly used on the server. It's my go to dist on Digital Ocean for instance.
The western media has been fed a story that Russian diplomats' families have been recalled. No proof of that yet. No leaked emails, memos, letters, boarding passes of families, people moving out of their apartments, motorcades of diplomatic people rushing to the airports... nothing.

Who benefits from putting that story out there?

Why would you believe that story?
that was exactly my point :)
>Musk / Tesla created the demand for these vehicles.

I guess that depends on where you decide to "start". I'd argue that Ford created the everyday demand for these vehicles, and Tesla built off of that.

>Why do R&D for a new type of engine when the one you already have is good enough and people buy them?

Is that really how you think the majors work? That they aren't innovating?

Sure, they are restricted in some fashion because they have an obligation to shareholders to produce value. But these people aren't stupid. They also don't care whehter they are selling you an ICE or an EV, as long as they are selling you.
You mean extract into a separate stylesheet file?

Wouldn't that lead to https://en.wikipedia.org/wiki/Flash_of_unstyled_content issues?

Maybe some memoization could help if there are performance issues with regenerating `document.styleSheets`...
No. Those that want work are searching, getting interviews, etc.
Those that need work are easier to count because you're counting situations.
The government has enough surveillance on us to accurately count it to a pretty small error margin.
Can you please explain you are learning a SPECIFIC track or a random one ?

How would the existing agent fare on a brand new track ?
The Physicist Who Sees Crime Networks
Thanks for the SFW version. Nice to see that uMatrix is doing it's job quite well and as expected.

FWIW, Spotify doesn't seem to get recognized properly. I am definitely logged in and it should show up when all my browser protections are disabled. HN showed up when I disabled everything, but not Spoitfy.
He was a big fan: https://www.youtube.com/watch?v=aXt0_LxP6ug
Why?

Why was Microsoft's attempt pathetic?
Not sure what about systemd you're interested in, but I was hoping for improvements in boot time regressions since the switch from upstart. Searching bugs it sounds like it might have instead gotten worse in 16.10.

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1626436
You can implement allocators which are very fast, much faster than generic malloc and free. Then people that do care about this level of performance can write their own ones, optimised specifically for the platform they are using and problems they encounter.
What are people using cyclical graphs for? Most of my daily work is in a sad language which has GC and structurally prohibits cyclical references[1], so what am I missing out on?

[1] unless you cheat...
Except that's not what happened. There was a lot of speculation that it would, but then he appointed a bunch of politicians to the cabinet, as is tradition.