skysight-inc/HackerNews huggingface dataset:
For this kind of questions, it's better to email dang ( hn@ycombinator.com ) directly to get a faster answer, sometimes the thread like this are unnoticed.

I think it's possible. I guess it's just exchanging the order of two `if`, but in similar cases I prefer to put the faster condition first, because the other involves searching the "db"[0].

[0] Note: If they didn't change the architecture, the "db" is actually a bunch of text files.
What the Interview Process Is Like at Main Tech Companies
You should always need to approve each time your SSH key is used

Why? I don't need to retype my password for every line of shell executed.
There's one issue that can severely damage two of them: Facebook and Google's business value come completely from taking away privacy. Apple, Microsoft, and Amazon also do so of course, but they can offer strong business models that doesn't should the need arise. They won't be as profitable, but they won't die either.

At the moment Americans don't care about this issue, because they balance the lack of privacy against their fear of terrorism. But if they start to care things could turn around in a hurry for those two and we would see an interesting scramble.
Uber avoids car pick-up app restrictions in London
Systemd, docker setup for home torrent server
Also, there is a few stuff that remember me a lot to plasma-tablet from KDE
If you're running systemd you can use this:

[Unit]
Description=SSH remote forwarding to here
After=network-online.target
Requires=network-online.target

[Service]
User=autossh
ExecStart=/bin/ssh -N -o PasswordAuthentication=no -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -R 2222:localhost:22 -o TCPKeepAlive=yes -p 9196 -i /home/autossh/.ssh/autossh autossh@example.com
Restart=on-failure
RestartSec=1200

[Install]
WantedBy=multi-user.target
No wuckas? Now you're just making stuff up.
> F-Droid has signed apps.

If I'm remembering the discussion correctly [0], at the time that Moxie felt that distribution by F-Droid was entirely unsuitable because of -among other things- their insecure code signing key handling practices. Remember that Moxie's target audience is everyone, not just technical users. I elaborate on this point in a couple of my other comments in the sub-threads.

> Google is a known collaborator with three letter agencies...

People say this. I contrast it with the fact that Google now configures its US datacenters (and the links between them) as if they were sited in hostile nations such as China. Switching from the "friendly nation" configuration to the "hostile nation" configuration was a crash project after the Snowden revelations. The project was not cheap. The situation on the ground is -always- more nuanced than can be expressed in a soundbite.

> It's grossly unacceptable for security related software to require Google Play Services (spyware) on the end user's phone.

* Can you point to a reliable, credible source that has analysed Google Play Services and determined that they are spyware, by any reasonable definition?

* As I mentioned in other comments in this thread, Moxie is not opposed to either distribution in non-Google App Stores, nor is he opposed to replacing the use of GCM (AFAIK, the only part of GPS that Signal uses) with Websockets. However, any replacement must be at least as secure and functional as what it replaces. Check my other comments in the subthreads for more information.

[0] And I may not be, it's goddamn late.
Sandberg: Men still run the world – and it’s not going that well
It's just like every other new Microsoft product. They produce enough materiel to get something started -- lots of demos and howtos and samples -- all by Microsoft employees or surrogates -- and then they leave it for something else, and hope the world figures out the rest. They try to suck you in up front, and hope that you get committed enough to not leave when you discover the mess that's waiting for you behind the curtain.

I've come back to full-time Windows development after over a decade of PHP and Rails, and you could lift my experience with trying Entity Framework and lay it on top of these complaints, and not notice a difference.

I've always said this about Microsoft products: they make it really easy to get to 70% of what you want, and then make it nearly impossible to finish. There's a massive bend in the effort/results curve. With open source, it's more difficult in the early stages, but it's a steady progression to 90%, and then you have the tools to work out how to get exactly what you want, if you want to make the effort.
I grew up around Toronto and we started saying this in high school back around 2009/2010. I always assumed it was patois influenced, like ever other slang in Toronto, but I guess it's Australian.

"yeah, no worries bro", or simply in texts as "nw".
> But if you want to learn and take your game to the next level, you'll soon ditch a lot of them.

"Next level"? Sorry, I don't believe it. All I see is more programming style, and that is no more significant for something better than some new Paris designer dress style.

Functional programming style? Not interested. Showing that P = NP? Sure, interested!
And now two VB.Net developers! Though granted I work in the financial sector...
If you think NSA is going to read the emails you send to a vendor, you either PGP the documents you're sending, or you use a different channel to contact the vendor. The big vendors make that easy, and this is exactly the reason most of them post PGP keys.

I super-duper don't care if you alert vendors before telling the public about a vulnerability. I think "responsible disclosure" is doublespeak, and I've generally supported direct- to- the- public disclosures for my whole career; I've written some articles justifying it (for instance: even if there's no patch, people can simply stop using the vulnerable software).

But giving vendors a heads-up is at least neighborly (to the vendor) and, increasingly, a sign of professionalism, and "the NSA will get my bugs" is not a good reason not to do it.
Facebook is the most agile of the companies. Two years ago it was a desktop web company, now it is all mobile. With Instagram it arguably made the best tech acquisition of this tech generation - compare that to what Yahoo spent money on. So don't see Facebook as a social app, see them as a powerhouse capable of making big moves and being able to respond to trends better than any other player. Since it has a hard time accommodating new functionality under its Facebook brand, it's perfected the art of managing multiple consumer brands.
From the article:
"Unless you know the exact name of my app, you won't find it."

His "Website constructor" app is in 3rd position when I search for "Website". Not that bad for such a generic keyword.

Also, I guess one thing with these apps is that the price range (between $12 and $20) is a quite high compared to the majority of the other apps on the store and (unfortunately?) a lot of people are not ready to buy apps >$2.

I guess that the store search algorithm depends on the conversion rate (people buying the app VS people trying it) and that conversion rate is probably pretty low, so maybe lowering the app price could lead to more sales and higher ranking.
The irony of this story neatly mirrors the inconsistencies in the UK government's recent response to a petition to "to abandon all ideas of trying to ban strong encryption": https://petition.parliament.uk/petitions/106369?reveal_respo... .

The government's response boiled down to

1) The Government is not seeking to ban or limit encryption.

2) The Government is clear we need ... to ensure that ... the police and intelligence agencies can ... access the content of communications of terrorists and criminals.

Not too surprising that around 26 of the 650 members of Parliament have degrees in science or technology.
Instagram and Whatsapp are pretty compelling features these days.
No wucking furries cunts!
It matches perfectly with the country vibe to tell you the truth... Very relaxed place in the general sense. Lived there for 2 years (Perth) and I just use it now a lot too.
Sky will push all subscribers onto IPv6 network by summer 2016
Most users say they want stability but when it comes to actually paying, unfortunately most users will only pay for features, especially new shinny ones that demo well. This is the challenge faced by software companies.
She is technically correct, but it's a very misleading technicality. Surveillance is monitoring, and the government can claim that what they actually do is mass recording of Internet traffic.
The story of Mathematics
Thanks. I was guessing that, but thanks for the confirmation and details.
Nope, very Australian, with another varient being "no f$&king wucks"
That's easy to explain I think: In german "Bank" means "bench" as well as "bank", so there's quite a bit potential for confusion.
Chill out dude. You make it sound it a lot worse than it actually is.

The MS circlejerk hate is sure strong in here.
No they're not. It's short for 'No wucken furries', but it's used in a more humorous way and not in polite company.
Anybody else here guilty of stripping the low pass filters out of their local lines at night? Sure improved throughput :)
I got my start from Starcraft Broodwars map editor. It was comprised of if then conditions and actions. Very simple system and i'll bet there are a good amount of people that were inspired by a system like it.
Monopolies and oligopolies are always bad for users. Not to mention that many of these companies are in the business of things which directly harms users: Advertisements, Cloud computing, Software-as-a-Service, etc.
The biggest hiring mistake that startups make (and 3 steps to fixing it)
A Guide to Seed Fundraising (Free 10 Day Email Course)
Jimmy Reid's Rectorial Address (1971)
> What is recommended against, if at all, is installing directly from source.

Nonsense. There is a recommendation to leave /usr/{bin,include,lib,share} to the package manager, but the /usr/local prefix is specifically for locally managed installs.

./configure --prefix=/usr/local

Support for arbitrary prefix (such as $HOME) installs has always been possible, so you don't even need root to install from source:

./configure --prefix="${HOME}"

Also, the recommendation to keep /usr managed by the package manager is just that - a recommendation. It's probably a very good idea to use the package manager for those files, but it isn't a requirement. As you, the owner of the computer, still have ultimate control[1], you can install whatever you want wherever you want. It may not be a great idea unless you really know what you're doing, but freedom necessarily includes the freedom to shoot yourself in the foot.

[1] as opposed to MS asserting control by limiting how software can be installed, and the forced updates that change anything, uninstalling without your permission, and reset configuration options
Without good patent reform they can pretty much stymie any true threat. Then when the threat is mitigated they can snap up the technology increasing their buffer.
Yes, you can tell the difference in search because one has a solid background and one has the blue Skype symbol in the background.

wish I was kidding
This is roughly the same process Google uses, too.

Hopefully they avoided the couple of years where Google forgot to have that form submit to a working email address:

https://www.google.com/search?q=higgins-prod-lost-hard-landi...

While we're on the topic, now is a great time to print some backup codes and lock them in your safe. Sometimes it is easier to wait until you return home to recover from a lost / wiped smartphone.
I use IntelliJ too, and I use static typing and @CompileStatic all the time. I'm not complaining, just being nitpicky. I don't see the point coding Java style with Groovy. And that is in my opinion Groovy's biggest strength, that a Groovy and Java class can work great together. A class written in Groovy works just like a Java class in Java and a class written in Java works like a Groovy class in Groovy :-)
And I'm a big fan of using Groovy when working with JDBC.
> In this case MS is the manufacturer

Or, more likely, Microsoft provided the OEM with one of the many components used in the product.

Microsoft, of course, has no control over what the OEM does with it, and doesn't know unless it goes out and buys the product.

Where things get interesting is when Microsoft ships an update directly to the user. This is something the OEM has no control over.....
Stone the crows, the kid's a flamin' galah.
पूनम पांडे शादी से पहले  हो गई प्रेग्नेंट
So basically: Thanks, Saddam?
Adblock Plus blocked from attending online ad industry’s big annual conference
Bank and bench have the same origin: proto germanic *bankiz meaning bench. The first european banks were actually just people sitting on benches in Italy doing the business. Thus banks took on the name bank. In some languages like Dutch or German the word for bench and bank are the same: bank/Bank
>responsive just means a loop over the contents to move them to the right places when WM_SIZE message is received.

So you're suggesting I should handroll my own layout manager? That sounds several orders of magnitude more complicated.
Exactly. The Right to Tinker needs to be fundamental, especially with consumer/hobbyist machines (as opposed to corporate/enterprise ones). Mechanisms to secure and lock-down need to be opt-in (although it can and should be made very easy to use and seamless), and not the default, or the computer is just going to turn into a glorified TV, and not what it can be: an incredibly powerful tool.
You're wrong and you confuse two different things.

So called "magic" methods, which are called by Python in various circumstances, are surrounded by double underscores. One of such methods is __init__, which works as an initializer for newly created objects.

The other thing is that all methods, unless otherwise specified, take a pointer to the current object as a first argument. So when defining an initializer that takes no arguments from the user you write:

def __init__(self): # etc.

I think only __init__ and __name__ are widely used in Python, all the other such methods are very special purpose and very rarely used outside of deep library code.

BTW: Being "ugly" or not is not the best characteristic you can base your opinion of a language on.
Perhaps I didn't state that well. I'll try again.

I know what good OO looks like. I can apply SOLID and a lot of other techniques to make my class graph "correct". When I'm done, I have a well-decomposed mostly-isomorphic view of the problem domain (usually along with a lot of "helper" stuff thrown in.)

If you know how good OO looks, and you look at your classes and they don't look that way? You can learn a lot by continuing to clean them up.

Same goes for FP. But currying, partial application, and composition allows for a huge amount of code reduction (and corresponding better problem understanding) than OO. So as you "clean up" your functional code, you're learning much better refactoring skills than you ever would with OO.

It's not surprising. OO is mainly concerned with where things go. Learn you some OO and you know where to put stuff. FP is mainly concerned with what things do. Learn you some FP and you'll learn how to make the computer do more with less code. Less code generally means less bugs and easier maintenance, but we can save that for another day. The point of my original post is that F# can let you learn both ways -- and move from OO to FP in an incremental, self-directed fashion. That's pretty cool.
On the server side, right?
I am using npm scripts for everything too. Check out my article "tiny npm package": http://g14n.info/2015/12/tiny-npm-package/

Checkout my postversion hook!

By the way, even if JSON does not support comments, sometimes I add a "#TODO:fooscript" prop in the scripts, and add comments as well.

Another interesting trick is that a script can call other npm scripts.

Also another nice feature is that command in node_modules/.bin folder are added to PATH.

Yes, npm scripts rock!
"No problem"?
> Unless the idea is to make it more of an "elite language".

When I think of VB, and how being easy and discoverable produced enormous amount of crap in software world, I almost support this idea.
"Hacker" News is getting more and more fun. Always the same 20+ people commenting, idiotic downvotes, uninformed comments.

Here is another chance for downvoting for the WP-admin types.
Define quitting smoking.

Vaping hasn't helped me quit nicotine addiction, but I haven't breathed cigarette smoke in years.
GoKid: free productivity app for kids carpools. Helps reduce traffic and emissions
Death years of these guys: Maxwell (1879), Darwin (1882), Newton (1727), Mendeleev (1907). So it seems he was right. We have been just applying the science of the giants for the past 122 years.
Nuclear, the clean energy future?
Now some WP-admin will quote the HN guidelines and feel proud.
Pragmatic Python GIL in 3 Minutes
I thought about building a new router myself, but I decided against it.

Two reasons: i could not hit the price point of a off-the-shelf-solution and I was worried about energy efficiency.

However I switched from consumer gear to a more professional stuff, using Unifi APs as wireless APs and a n EdgeRouter X as router - the four available gigabit-ports are enough to support the network.
Two years? I was just wondering if that article was two years old..

What about Samsung, Foxconn, Baidu, Tencent, Alibaba, JD.com

How dominant are the frightful 5 outside of North America and Western Europe today?
I could be interesting to compare that to the Android/iOS/HTML5 equivalent.

Basically this XAML does 3 things:

- declare 2 states:
narrowState for windows smaller than 640px
widestate for windows wider >= 641px

- set the layout stacking strategy of a container to Vertical when in narrowState

- set a top margin of a button to 4px when in narrowState (not sure this is relevant for this sample)
Yes, in the authorized_keys
Well, missing data can happen from problems in several different levels:

1) site changes caused the items that were scraped to be incomplete (missing fields) -- for this, one approach is to use an Item Validation Pipeline in Scrapy, perhaps using a JSON schema or something similar, logging errors or rejecting an item if it doesn't pass the validation.

2) site changes caused the scraping the items itself to fail: one solution is to store the sources and monitor the spider errors -- and when there are errors, you can rescrape from the stored sources (it can get a bit expensive store sources for big crawlers). Scrapy doesn't have a complete solution for this out-of-the-box, you have to build your own. You could use the HTTP cache mechanism and build a custom cache policy: http://doc.scrapy.org/en/latest/topics/downloader-middleware...

3) site changed the navigation structure, and the pages to be scraped from were never reached: this is the worst one, it's similar to the previous one, but it's one that you want to detect earlier -- saving the sources doesn't help much, since it happens at an early time during the crawl, so you want to be monitoring it.

One good practice is to split the crawl in two: one spider does the navigation and push the links of the pages to be scraped into a queue or something, and another spider reads the URLs from that and just scrape the data.
Although I think it's great that Microsoft is moving to oss and cross platform dev, I can't help but still believe that moving from the .net ecosystem to others like go and ruby was the best move I could have made for my sanity and overall developer happiness.

I love C# as a language, but the development story is still extremely disappointing. I want Microsoft to stop trying to hold my hand -resulting in cookie cutter applications- and give me the freedom that I experience writing applications in a language like Go. If Microsoft wants a larger set of the developer mind share they need to stop playing catchup (integrating bower and gulp? Who really cares.) and start creating more great tooling I can run from the command line.
If it's like smoking, but safe, then who cares if less quit?

The projected amount of damage done by means of people hurt by not quitting ecigs needs to be higher than the projected amount of damage done by means of people not switching to ecigs for this to be alarming.
Using the same tool, I can see that my website loads in 440ms in the Netherlands. The homepage is 140kb, makes 6 requests, leverages caching and http/2 thanks to nginx etc.

Which is great and everything, but for a reader in Texas, that becomes 1.2s thanks to the fact that my site is hosted in London.

As you point out, AMP pages which weigh in at 4MB can be loaded in a seemingly underwhelming time: ~800ms. However, I think the important takeaway from this is that the pages load in ~800ms in two different continents.

The articles I publish on my blog use AMP-HTML. I don't include media or ads at all, just text and fonts. These pages fully load in 200ms.

I conclude that the free CDN offered by Google is, frankly, a very attractive feature.
Similar to other Erlang implementations like Pheonix I guess http://www.akitaonrails.com/2015/10/29/phoenix-experiment-ho...
I'm getting the edgerouter for my home network, looking forward to see what it can do.
Having taught myself javascript in the mid-late 1990s and brought down a few servers by simple mistakes (Not always my own) I swore myself off the language and haven't looked back. Now I am looking to jump back in to do some app development and js seems the easiest way currently.

I have looked at https://www.youtube.com/watch?v=hQVTIJBZook JavaScript the good parts 2009.

There seems to be much better handle on JS so I also would be interested in "Best Practice" for modern JavaScript development.
A list of every tool we use to run our startup and stay productive
The modem I had fixed this by requiring a 1 second gap after +++ where no bytes were sent before dropping into command mode.
In my backpacking days in the eighties, I was at one point offered a bartending job at a local cinema premiere.

It sort of didn't really fit my plans for that particular evening, so I turned it down. What I did instead, I don' remember.

A report did reach me later. It had been a great event. The star of the movie didn't care that much for red carpet, and had been hanging out in the bar, downing a few beers, and having a chat with the guys behind the counter.

Superb move. I had turned down the world premiere of Crocodile Dundee, Sydney 1986.
That was what i actually was thinking about. We have a security system that takes HD video on our three entrances.

Couldn't this be a HUGE tool for smaller restaurants and figure out how many repeat customers they have and if they start losing or gaining them?
They are saying e-cigarettes are not contributing to people quitting regular cigarettes. People who vape also smoke.
So the UK government is trying to amass a toolset that wold be the stuff of wet dreams for the Stasi - but they're absolutely not going to use them for the very thing they are designed to do - even though we know they're already doing the things they say they're absolutely never going to do with he tools they say they don't have but they actually do have.

Hmmmmm. Okey dokey asshats.

What puzzles me though is this: These things aren't designed and built by politicians. They're designed and built by highly skilled people with above average intelligence. And the UK security services don't pay that much money. So who are these idealogical geniuses who are ready and willing to arm a government with tools they should not possess?