skysight-inc/HackerNews huggingface dataset:
Ask HN: Best Practices for Bringing Devices Through US Customs?
Apparently a lot of folks entering the United States are being asked by Customs and Border Protection officials for the passwords to unlock their phones and laptops.

If you say yes, and you have the usual apps on your device, then CBP can suck down all your encrypted data in a matter of minutes - search history, contacts, photos, purchases, documents, social media posts, etc. - and store it in their U.S. government database, where they can keep it forever, and inspect it at their leisure.

If you say no, your devices can be seized, and you can be detained. Legal or not, this outcome will, at minimum, ruin your day.

Various workarounds have been proposed to keep the data on your devices private when entering the United States. These include traveling with -

No devices.
Temporary devices.
Wiped-clean devices (keep data in cloud).
Dead-battery devices.

Privacy experts argue in favor of doing this, and security experts argue against it, saying it looks more suspicious.

Arguments for workarounds:
https://medium.freecodecamp.com/ill-never-bring-my-phone-on-an-international-flight-again-neither-should-you-e9289cde0e5f#.wgurjewri

Arguments against workarounds:
https://medium.com/@thegrugq/stop-fabricating-travel-security-advice-35259bf0e869#.o43h5lbiz

What's HN's opinion on the best practices in this situation?
Probably v3.2.2 was lower hanging fruit for most projects. Instead of having to make code changes.
How to become haunted by path dependence
Cannibalism–the Ultimate Taboo–Is Surprisingly Common
But as my example pointed out, expressiveness is often the difference between being able to understand something and not. Expressiveness permits better abstractions, better composition and better libraries, allowing cheaper and faster software. Something business users will appreciate.
Depends on the threat you're facing.

If you're worried about NATO or former Warsaw Pact aggressors, no, men with rifles are not a deterrent.

If you're worried about a neighboring region's warlords sending people to steal your food, kill the men, rape the women and conscript the children, yes, men with rifles can convince them that their activities will be more fruitful somewhere else.

For a threat like Russia or the USA, your only recourse is to ally with one or the other.
The MySpace argument is tired and stale and not even that insightful. MySpace made several mistakes as a company that had nothing to do with their premise (connecting people, the same as Facebook). It just turned out that Facebook had better execution in the long run.
If I understand what you're saying, I don't think reading speeds are anywhere near consistent enough to plan out such a thing.
I think you still don't understand. When people star a repository in github they don't expect to get subscribed to a mailing list. If you want to send them emails, ask them explicitly to subscribe to a mailing list.

I think you don't have bad intentions. A "thank you" email looks like a nice detail, but I would consider it borderline spam. I'd probably ignore the first one, but if I ever get a second one I'd hit the "mark as spam" button in gmail.
> There is a legal distinction between accidentally hitting a pedestrian with your car and intentionally doing so.

The difference is between manslaughter and homicide. We take age, sanity, and intent into account, but hitting someone with your car is illegal no matter your mental state.

Likewise, tax fraud (intentional) is punished differently than tax negligence (unintentional). In either case, the action is illegal, and due taxes must be paid.
In my opinion, the tough part is that you need to truly understand each feature. Not just one use case.

Although, once you do, you can really get to work composing the features in interesting ways to get really useful effects. Like implicits + higher-kinded types to get ad hoc polymorphism. Or subtyping + pattern matching to achieve incredibly self-descriptive business logic. I would certainly agree that Scala appeals to people who like to be able to experiment and engage with more theoretical concepts while getting things done.

But let's not pretend that most languages don't have this issue. Programming with major Ruby and Python libraries tends to eventually require you to learn what's going on under the hood in the same way. I would argue that once you start digging under the surface, Scala is much more elegantly designed than those languages.

Go is about the only language that seems to say, "forget theory, we're simply about getting things done". Not my thing, but I understand the appeal!
Personally, they both make sense to me. I've always seen a slider option but I'm sure it's more work to implement. State could be an easy way to search on a bigger scope.

I feel like you would have to ask yourself how most people use these features: perhaps someone is searching for the city they live in and are willing to commute "30 miles." They certainly wouldn't want to search the entire state of Texas. Is that the major use-case for users of your site? Forgive me if I'm using an incorrect logic here as I have never done user interface testing but this seems like the sort of thing to think about when designing features.

Honestly though I love the simplicity in design of your site, but the way your job-tile elements are created they're just begging to be clicked on to expand them for more detail.
Corporate bonds are not a slam dunk win over investing in dual class shares of an IPO.

What kind of corporate bonds specifically? Is it Super safe AAA rated?[1] Or high-yield (aka "junk bonds")?[2]

If an investor wants big returns like he's hoping for Snap's IPO, buying safe AAA bonds isn't going to match that. E.g. Microsoft's 10-year bond only pays 3.34%.[3] That low interest rate barely above Treasury bills is the "price you pay" for safety. If you want to take more risk with a "BB-" corporate bond from Frontier Communications[4], that will pay 11%. That still won't match the potential upside of high flying stocks and the investor has to factor in Frontier's increased potential for defaulting on that debt. (Frontier wouldn't have to pay 11% if all lenders were confident the company would pay it back.) It's not just the bankruptcies to worry about; lots of corporations default on their debts.[5][6]

It's perfectly rational for some investors to calculate a risk-vs-reward and conclude that investing in shares with reduced voting power is better putting money into low-grade corporate bonds.

[1] http://www.marketwatch.com/story/exxon-mobils-downgrade-leav...

[2] https://en.wikipedia.org/wiki/High-yield_debt

[3] https://www.ft.com/content/7d0a5618-e70d-11e6-967b-c88452263...

[4] http://quicktake.morningstar.com/stocknet/bonds.aspx?symbol=...

[5] http://www.zerohedge.com/news/2016-07-14/global-corporate-de...

[6] http://www.marketwatch.com/story/company-defaults-headed-for...
An important primer for anyone curious about how this could play out: https://en.wikipedia.org/wiki/IBM_and_the_Holocaust
I was going to start my comment the same. $100 a month for bus, this is crazy expensive!

You guys had me double check. Where I live (750K city in Europe), you get an unlimited pass for 27€/month. It's your fares that are just unbelievable.
Of course everyone that knows more facts on both sides of the story and draws a different conclusion is a victim of cargo cult.

Sadly, no one is willing to state the facts on the other side because they will be labeled as, cargo cult victim, if not worse. And we might lose our critical thinking skills along the way.

The media environment is partly to blame. They are chasing shiny objects that generate clicks, while leaving fact-based reporting in the backseat. There was an actual harassment case against Tesla filed in court last week by a current employee. How many stories have we seen on that?
Ask HN: Why not edit all code in 'diff' view?
70% of coding is maintenance. Often you are replacing logic that might still be relevant, but requires a tweak. Why not show a live diff as you work? This keeps you in context without forcing you to comment out or write 'parallel' code.
I have to wonder how useful this unlimited data plan will be in 10-15 years when you're still driving the vehicle. What are the chances Chevy is going to even have an option to upgrade the radio when the one built into the car is obsolete?
My son is now a conscript (Finland has roughly 21 000 at any one time, plus 12 000 professionals in service) and having seen the troops, it looks like the black skins are just as happy or unhappy there as the white skins, if not happier. The conscript army is a melting pot where everyone's former life becomes not very relevant; whether you come from a rich family or poor, whether you have high school education or not, you start with the same kit and stand in the same line taking the same orders. Often shit, but it's the same shit for everyone.

I believe there is some racism as there is everywhere, but overall I think the armed forces are a place where someone who came as a refugee in on more even terms with others than anywhere else before that.
ESPN drops false play buttons on Facebook, maintains them on Twitter
Can't wait to say "Eat that gmail" (for annoyingly logging me into every other google property).
When the US had conscription (at least in ww2) it supposedly had the effect of creating a "we're all in this together" mentality. I wonder if, in addition to the threat of a perceived expansionist Russia, the influx of new immigrants has anything to do with this. A year of servitude might may assist in integrating new swedes. Or in part help the indigenous swedes see the new arrivals as somehow more Swedish for having served?
How a Money-Losing Snap Could Be Worth $24B
Show HN: Node Bot – Node.js Home Monitoring Bot
The challenge / risk that 13-25 range have zero spending power. Advertiser dollars are best spent targeting the users who are going to make the purchase.
Thanks man, I wish it was that easy... also thats a pretty cool site that you sent me! and i read an interesting article about SaaS from there... https://medium.com/@cliffordoravec/the-epic-guide-to-bootstr...
You're summarizing the debate between "originalism" and "pragmatism" theories of judicial interpretation. The former looks at what people supposedly intended and confines the meaning of the text to that. It's the weapon of choice of conservative justices (because of course, the Founding Fathers couldn't intend to give marriage equality). The latter looks at what the text does, in today's context. It's the approach preferred by progressives because it accounts for how the effects of a text can change with time (and society).

In general I would agree with you, you oughta look at what a legislation does in practice. But here, because there is a sense of urgency (sending a gay refugee back to Somalia, for instance, is akin to signing their death warrant) and because the executive order hasn't been around for a while, I think it's ok to refer to what the administration intended the order to do. Because we don't have a lot of field evidence. As we see concrete evidence for the effects of a legislation, I think you're right and the weight of what it was theoretically intended should decrease pretty quickly (and it usually does).

The administration also didn't present to the court any sort of evidence supporting the claim that it would prevent terrorism.
Brightify | iOS Developer | Brno, Czechia | ONSITE, FULLTIME; http://www.brightify.org/
If you're interested, don't be shy and send us an email to info@brightify.org
They're great, but they seem to force me to change my workflow to work around them.

If a FF PM is reading this: being able to register a domain for a container type would be a killer feature.
It is training. Traditionally the 18 year olds were all trained 8-15 months and then return to civil life immediately.

Now they want those who do the training to stay as employed soldiers afterwards - but traditionally Sweden had only a conscript army, no standing army in peacetime apart from those employed in the organization to do the training.

This makes sense as we don't have wars, don't have large foreign bases to staff etc.
I don't do public transit and, when I do, don't usually talk to people on it.

I was specifically referring to meeting people in social situations. Parties, bars, etc.
Dalton Caldwell’s Whale AMA [video]
> * Spring startup config (this is basically coding in another XML-based language)

The alternative of manually wiring up beans or giving up and using shitty singleton patterns is pretty awful (remember this was preannotation days).

A pretty sexy annotation DI these days is Dagger2 but alas you seem to hate annotations.

> * JSPs (again, programming in a new XML-based language)

That is not an XML language unless you are talking about JSPX or JSF. It is a crappy templating language. Lots of languages have those (like PHP had Smarty or Pear...). I totally agree JSP and the future JSF was a horrible addition to Java.

> * Maven Config (IMO incredibly painful-to-use XML-based language)

A config that your IDE instantly knows how to properly setup and allows for massively powerful inheritance (see super poms).
If you import a Maven project with Eclipse or IntelliJ it just works.

Now I admit Maven is verbose and has lots of baggage but it has some serious pros and a lot of those pros are actually because it uses XML (like Eclipse can automatically adjust your Maven file without changing formatting). I have scripts that I have written in many languages (bash, python, etc) that can read Maven POM files thanks to XML. You can't do this with Gradle.

> * Hibernate config, mapping files

Yep that sucked but you hate annotations... so I guess you propose programmatically doing the mappings?

I despite hibernate anyway.

> * Tomcat config (basically a pre-cursor to Spring in some sense)

Oh like Apache config is any better. I mean seriously Apache has made up weird SGML config.

> Java is not a dynamic language, sorry. The JVM bytecode is fairly dynamic, but the language certainly isn't.

It is a dynamic language. You can instantiate classes by string names and manipulate their bytecode on the fly. You can call methods dynamically as well. Yeah it doesn't have the ease of metaprogramming like Ruby or Python but its its there through libraries (CGLIB).

Honestly I'm not sure what you mean by dynamic (please cite something) but I guess you mean interpreted and even that is sort of wrong as well (bytecode is interpreted by the JVM).

> Also, I think Java would have been better off never introducing annotations

Annotations also allow for preprocessing aka light weight macros. A full macro system probably would have been better. I look forward to your blog post (in all honesty).
I don't think a website has access to your autocomplete unless you select one of them.
> Can the Broadwell use the 128MB EDRRAM from the iGPU as a L4 cache if the iGPU is not used? Would that actually make such a difference?

That's exactly what it does, and it gives you a "free"* ~20% increase in memory operations performance (which tends to be a ~20% increase in general performance).

* not actually free because you paid for those 128MB EDRRAM...
It seems like lots of gamers I talk to who play lots of AAA games seem to think graphics and getting out of the uncanny valley, but IMO it's just getting worse. The people in games like Uncharted are so plastic and gross looking.
How does he sell the advertising? Product placement in the photos?

(I'm not interested in advertising. I'm just curious.) I'm surprised by Target: Why not rotate their product lines and improve selection rather than just advertise to teens? Most of them would probably go to Walmart where it's cheaper.
Instacart Raising Massive New Funding Round
Moreover, beyond a certain scale, it becomes really hard to simulate.
My point was that we have enterprises who are using it and helping to shape it. There are parts that are simply under-developed and there are parts that are downright embarrassing, no denial.

I do expect that many of the docs/articles/blogs written about 1.6, 1.7, 1.8 are going to focus on hardening, security, etc. I just hope it isn't selinux style: "how do I turn it off" :)
Then you have dangling cables and need both hands.
The hype for neural networks is deserved. Some major contributions to the field resulted in increases in accuracy for fields like NLP, computer vision, structured data, machine translation, style transfer, etc.

XGBoost did not change much from the "Greedy function approximation: A gradient boosting machine." paper, but uses a few tricks to be much much faster, allowing for better tuning.

XGBoost is popular for structured data competitions on Kaggle. Even there: The winner is often an ensemble of XGBoost and Keras. And some structured data competitions are won by neural nets alone: http://blog.kaggle.com/2012/11/01/deep-learning-how-i-did-it... and https://www.kaggle.com/c/higgs-boson/discussion/10425 (Neural nets won the Higgs Boson Detection Challenge, where XGBoost was introduced)

I'd say Tensorflow/Keras can handle a wider variety of problems, with the same, or improved accuracy, than tree-based methods can. NN's do well on structured problems (the domain of tree-based methods), but also own computer vision and, increasingly, NLP. I agree on the pitfalls of applying neural nets vs. forests.

It is true that tree-based methods are academically a bit out of vogue: The exciting stuff is happening in the neural network space. You have more chance of getting published with deep learning (this used to be the other way around).
The amount it's valued at seriously blows my mind. Like this is an app that's main features are sending 10 second videos and images.
It should be noted that Tokyo's subways do not operate between midnight and 5am. Having 4-5 hours of downtime every night dramatically reduces the complexity of infrastructure upkeep and cleanliness, and taxis pick up the slack for the night shift and bar/club crowd.

There are myriad reasons why Tokyo's metro outpaces (for one example) NYC in reliability and sanitation, but not having a 24/7 schedule is a big one.
Stuff like this has been around forever. I once drove a 2007 BMW 7 series which let me unlock/lock my car from my phone. I also got weather data etc. on my dash.

Now it is finally making it to normal cars. My 2014 Passat has it as well. However, I didn't activate it since it is tracking my location.

On the other hand, stuff like Onstar can save lives.

http://www.mercurynews.com/2014/10/14/san-jose-mount-hamilto...
The only use case I currently still use Finder for is previewing Pictures. But admittedly, my needs aren't that advanced.

The most mainstream missing feature is probably a search functionality (see the card [1] on the feature requests list). I don't miss it because I use the command line.

[1]: https://trello.com/c/ZtBmsZtA/98-file-search
I don't follow your argument. This car example seems to qualify under your definition of thought crime.
For me it was just the point where I got really tired of the formula, having played most of the previous games.
What state is the job in? Is it possible that $12/hr is actually under the minimum wage?
Not exactly what you are looking for but in terms of having a fit population Sweden is doing (comparatively) well:

http://www.worldobesity.org/resources/world-map-obesity/?map...
Just had the same issue. You can select it, but can't see that you've selected it. Probably some weird CSS interaction.
I just got back from a trip and each time I went through a checkpoint I had the factory reset menu on screen so if asked to unlock I would have just stalled by asking why they needed to see my device while the wipe was in progress.
> lose a whole lot more in foreign occupation

I don't think that's the case in modern times. Unless you believe Russia (that's what we are talking about here, right?) would enslave swedes or subject them to genocide this argument doesn't work.
Horripilation refers to hair bristling, or more colloquially, goose bumps. So beasts with... goose bumps?
Only very slightly related:

When I was a teenager I made music under the name shark^^bait

The ^^ is what made it stand out from others.

The issue is there is no efficient way to search for that phrase with the special characters.

I have no idea if I can still find the absolutely god awful music I made back then.

Using the phrase match in google just searches for sharkbait which doesn't help at all.

It doesn't help that years later a little movie called Finding Nemo came out.
Sorry for the incorrect information; I'd edit the comment w/ more ~s, but the window has passed.

My recollection was apparently wrong and from headlines that Ben Smith wrote.
I totally agree with your first statement.

But I think it is complete BS to say that Scala isn't good for "making software". The two most successful projects of my career were relied heavily on Scala to deliver robust product on aggressive timescales, with teams largely composed of first-time Scala users.

You can read one of the stories here: http://artsy.github.io/blog/2016/08/09/the-tech-behind-live-...

I'm not going to tell you that it's an easy language to master. But I do believe it is a fantastic language for making software.
So everyone says the cloud is the future. I get it. But is this the truth, or what all the tech giants want people to believe? Don your foil hats for a moment and listen to me.

All the original internet companies run their own hardware. They rent out excess production capacity to us peons in the form of cloud services.

These companies that all run their own hardware exclusively are telling everyone that it's stupid to run your own hardware... Why are we listening?

Look to the newer tech giants as a prequel of what's to come. Netflix for example, is completely at the mercy of Amazon. They might as well be "Netflix brought to you by Amazon". Their edge is in software alone, nothing that causes a huge barrier to entry like custom hardware. This makes them much easier to dethrone. Hilariously, they rent all their hardware from a direct competitor who has access to all their software secrets. Does anyone else see something wrong with this?

The cloud as a money saving venture is and always has been a damn lie.

It's the same tactic as when automotive companies paid off local governments to destroy Americas public transport many years ago. All the big tech companies have their hands in the cookie jar besides Facebook, who remains mostly silent but runs their own hardware as well.

The major tech companies have every incentive to make you think running your own servers is nigh impossible. Don't drink the fucking koolaid. If the industry continues to consolidate rapidly AmaGooSoft will be the ONLY places you can have web servers in ten years
Adblock Users Welcome
Author here. There are individuals in the infosec industry who agree with you. They've stated on many occasions that the problem isn't gadgets, but rather that programming practices in general need to change. This might have something to do with the fact that no one told Apache about this weakness until nearly a year after it was presented at an infosec conference.

While gadgets may not be the root weakness, the gadgets certainly help. We may never be able to have perfect security. Hopefully the systemic paradigm shift infosec professionals are advocating will come some day. But until that day arrives, we can make people so much safer, with minimal effort, by simply disabling these gadgets.

Almost no one uses them. Out of all the projects I found, I was only able to identify one or two that were legitimately using the gadgets in question.
This will be extremely helpful next time I have to use a Haskell library that decides to implement everything as infix operators named "~<$>" and ".~=" and stuff.