skysight-inc/HackerNews huggingface dataset:
Theres a mix of police vehicles in Chicago. They may have a few older Tahoes.. but most of the newest police vehicles are Ford Explorers. They have to have SUVs due to winter. Most of the standard sedans won't do so well in deep snow.
> `import logging ; logging.info("hello world")`

I don't think that this is doing what you think it is doing (assuming that 'import logging' is importing the Python logging package, and not relying on broken Python 2 package name resolution quirks to import a local module).

The `logging.{LEVEL}` functions always log in the root logger. The loggers that you initialize have a tree structure. There is a nice package for inspecting that here:

https://pypi.python.org/pypi/logging_tree

Several different 3rd party libraries that you might be using will all have their own loggers that are initialized at their level. By separating things out like this, you can set different log levels for different loggers. For example, you might not want Component A logging at DEBUG level, while you want Component B logging at DEBUG level. This is why one would initialize things per package like this:

import logging
logger = logging.getLogger(__name__)

That logger's log level inherits from it's parent, and the structure mirrors the structure of your package/module hierarchy, so you can set the log level for an entire package, or just an individual module. Granted, you may not require such granularity, but doing this as a standard practice does give you the flexibility.
Keep it up, man. Does it get easier? I look at what I need to do to fix my broken mind and sometimes I think I'd rather lie down in the snow than keep climbing. Do you ever get to stop climbing?
Two submissions later at HN is link titled "This is what happens when you take Ayn Rand seriously", which points to http://www.pbs.org/newshour/making-sense/column-this-is-what... . One of the examples of "what happens" is Sears.

> In 2008, Sears CEO Eddie Lampert decided to restructure the company according to Rand’s principles.
I had to reread this a couple of times to properly parse - was it a meta way of answering the question?
A Jewelry Dynasty’s Charming Feud
Then it's pretty silly to shutdown verticals as they most likely share the same source code as the rest. When you consider most SW companies try to establish as many revenue streams with as little people possible, cutting verticals is the last thing you want to do. Instead they should figure out how to share as much code as possible. But hey, it's Yahoo!
Yes, and those things are done for the exact reasons the parent comment mentioned. Even comedies like Brooklyn Nine Nine recognize this fact (one episode had a bit about a detective refusing to wear a tie). They wouldn't bother with uniforms if they had no effect.
That's a pending patent application, not (yet, anyway) an actual patent.
Because its so obvious no one cares.
I've found that there is no real standard definition of what OOP is and people get very angry when you say Go is OOP but it doesn't have inheritance. YMMV though.
There's another way of looking at it. Debt can be an investment. Compare the rates of inflation vs. the interest rates on bonds. Please let me know if I'm wrong, but... isn't the government making money with them at this point?
The Benefits of No-Tech Note Taking
This is very true. I can't count the number of times that I've had to dive into werkzeug code while trying to figure out how Flask was doing something.
But it's more than a content category. It's not like "Posts tagged with 'Entertainment'". It's more like a sub domain. entertainment.yahoo.com vs finance.yahoo.com

Edit: fashion.yahoo.com isn't real, so I changed it to entertainment.yahoo.com
>Our plan isn't really to monetize your data

>it's moreso to make intelligent recommendations...

That is exactly what monetizing data is!
Sure, but seeing older HGSTs running longer time having 0-2% failure rate and 8TB one >5%, which brings it to WD territory, is not very encouraging.
If it's your own thing, do whatever you want. But the only thing sync should be used is to exec shell scripts in node.js. sync functions are bad otherwise in any kind of production environment.
I actually like fizzbuzz and stuff like that. My most recent and best coding challenge experience was one from Cloudera. It was 2 questions and I had 70 minutes time in total. The difficulty was not something crazy. To me it felt like something you would get as a homework in Uni, but slightly more complex. I was able to finish it in 40 or so minutes and even had fun doing it, because I did not get frustrated by lack of details in the problem description.

But when a company sends me 2 hours on some weird platform that tells me 3 out of 10 test cases work, but doesn't tell me why or what even the input is, I just get frustrated. One of the worst coding challenges was asking me to implement the cd (change directory) functionality. But the details were so bad that I had no idea if I have to invest time or not into edge cases etc. I basically had to guess the test cases, but eventually failed the test since I ran out of time.
> For instance, if you look at a clock on a GPS satellite, moving fast relative to you, you can see it run slower than the one on your wrist.

Actually, the general relativity effects of weaker gravitational field dominate the special relativity effects of velocity[1]. So the GPS satellite clock actually runs faster, not slower.

[1] http://www.astronomy.ohio-state.edu/~pogge/Ast162/Unit5/gps....
>Seriously, you need to stop this. You are the head of the executive branch of the government, of which the FBI is directly underneath your jurisdiction. Director James Comey is directly within your chain of command.

You don't need to tell the man what he can do in his capacity as president, he knows what he can do. Identify the issue clearly and concisely, but don't try and tell him what he can and cannot do. Whether you intended that or not, that's how it comes across.

> What the FBI is asking for is a master key to be created that can decrypt any iPhone.

Not true, they're asking for a way to submit guesses electronically and removing the auto-wipe and 10 guess limit. If you are going to request help on an issue, ensure you know what you the issue is.

I wouldn't send this message in, and I'd suggest you restructure what you're writing because this is simply not effective, and if other people begin sending the same message in it's going to make everyone who opposes this issue look misinformed with a superiority complex (that is how the entire second paragraph comes across).
"Everything is wrong with it"? Name it, one by one. Otherwise it's FUD.

Why didn't you install a clean OS downloaded from the official Microsoft/Ubuntu/Debian website instead of waiting two weeks for a restore Windows restore DVD from HP with crapware pre-installed? The first thing I would do after buying a new laptop is to format it completely and start afresh.
> What about splitting the product and offering the results for free and the convenient auto-cancel as a one-time fee

As a user who agrees that I would be more comfortable if I knew they made money, I'm wondering if the "convenience" of auto-cancel is negated by having to pay for it specifically.

I don't have a better suggestion than the others in this thread though.

I'm also wondering if I would pay a subscription fee when the goal is to reduce the subscriptions, at some point I'll have reached an satisfactory state where this service will be the next to be knocked off.

Good luck to the team, and thanks for saving me ~$25/month!
>Madeleine McCann, 27, had some more pointed words for tech bros who disapprove of her. McCann has been living in a tent under the highway for about a month, ever since her van was towed, leaving her without a roof.

This name surprised me.

I assume it's a fake name for the reporter, or at least, unrelated to https://en.wikipedia.org/wiki/Disappearance_of_Madeleine_McC... .
Absurdly high taxes (my parents pay half my tax on a non-rural property twice as big about 120 miles north of me), but still, owning a home is hardly a fiscally ruinous proposition around here.

My property taxes this year were ~$4200 on an average sized lot and home, or roughly $350/month.

My last apartment cost $1050/month for a small two bedroom condo rental.
Their renaming of ElasticSearch to Elastic really irked me. If only for the simple reason that searching for questions related to them on Google is harder now.
Via an implicit call to factor, right?
I haven't built anything complex or production ready with Ionic, but I have played around with it a bit to see it's value.

I really feel like Ionic should be a bit more up front about some of the additional dependencies you may need to get it going (Android SDK and NDK are the only ones that stick out in my mind, but I remember it being a pain in the butt), but other than that, it's pretty neat.

I hacked together a quick and dirty Android app based on the Angular/Firebase TodoMVC web app; it took about 2 hours because of some of the configuration, but I got it to work on my phone.

The styling was not the best or at least not what you would expect from a mobile application. I do know that Ionic comes with built in widgets like tabs and stuff. If you are already familiar with Angular and UI Router, it's not too difficult to use. I just had a hard time with setting up the proper dependencies.
Can you provide a link or alternative data source? I tried the typical flightaware link you would expect and did not observe what you said.

https://flightaware.com/live/flight/N007JB
Well no. It means the same situation as git vs mercurial. One may be better than the other (as you mentioned), but it really doesn't matter.

If Pandas and other high profile products are endorsing it (and may adopt it), it's going to be very hard for 99% of people to choose something else.
As someone who was raised in the bay area, the idea that these experiences meant that homelessness was at an all-time high in the city struck me as the thoughts of someone whose rose tint was fading from their glasses. One of my earliest memories is of a grizzled homeless man on Market asking me if I'd seen his spaceship anywhere, and I can't remember ever spending more than a few hours in the downtown area without seeing some sort of display of intoxication, mental disability, or both. So I looked it up, and indeed, crime and homeless rates within the city have stayed relatively consistent over the past decade, both in terms of sheltered and unsheltered homeless (crime is up slightly, but still well below what it was in the 90s). Just in case anyone was wondering.
Top PCB Design software
Not if they're classified as contractors.

(Whether the contractor classification is reasonable is a whole other ball of wax)
Some people have the same name as other people.
I'm surprised. I'd think with a van or camper or similar you can just park in any 24 hour walmart (or similar) parking lot.
It's the content that takes effort to maintain, not the code.
Ask HN: How does a submission's current rank influence voting
taking hn as an example, it seems like there is a fairly simple a/b test you can do that doesn't really harm user experience. swap the order of, say, the 5th and 6th ranked article for some people, and see if there is a noticeable effect on votes, and repeat for all positions on the front page. maybe this has been done here or somewhere else already- im curious what the results were. assuming there is an effect at all, i think its something the ranking algorithm should account for.
But why can you not choose to either keep tabs you are not currently in focus with (so you are looking at another tab than the 50 others you have open) fully running, running at some max % or freeze completely? The latter just freezing the process which will require unfreeze but as it is a user choice it depends on their browser behavior.
Why would you configure a webserver for a java process ? Just have every process include a webserver. At what address ? Well simple : any free address, then register the address you've started up on in zookeeper. Likewise, contact your dependencies by resolving them on zookeeper (this can be done using DNS if you want minimal changes. Protip: SRV records have both ip and port).

Having the webserver is useful for reasons beyond just being independant of the webserver itself, like exporting metrics. Making the logs inspectable. Getting thread dump, inspecting current state, ...
At one point, I got the impression, perhaps mistaken, that something akin to varnish was set to cache pages for 5 minutes.
This is how Craigslist has done it for more than a decade. You can "make a account" with a username/password if you want but it isn't needed.

No issues with incognito mode.
The tracking is an order of magnitude better, using the original device. Impressed.
I reboot my Nexus 5 daily and have not seen these kinds of performance issues.
Move to Redmond.
Seems a bit stale: "Conceived on 10 Apr 2014"...maybe note the year, in the title (?)
I agree. I'd even go so far as saying it's appealing to the audience's basest desire: to perpetuate an iconic enemy.

You could do the same thing by changing "Tech Worker" to "White Man," that is: pick some group he belongs to and try to blame the whole for his callous delivery.
I don't see how moving to the web server would prevent that if you were logging passed req body or query parameters since they would be posted in plaintext (hopefully) over a https connection.
Good: User interface declared as a pure function of state.

Bad: Doing that in a language without a moderately competent type system.

Would be interested in a Swift port, using plain old structs instead of tags.
Thanks, good to know I'm in the average then. I wonder if the newer Lenovo (x250 for example) have much better battery life (on Linux) than the x220.
Apple’s Stance Highlights a More Confrontational Tech Industry
I agree for the majority of cases. There still exist classes of applications where you can't rely on personal accounts on social sites for auth. Anything that runs behind your firewall for instance. In my particular case, we run some "enterprise software" on behalf of our customers, whose users regularly don't even have a work email address. Our customers are certainly not going to want users to use their own personal addresses.

Most of this can be solved with SAML, but it requires all of these old enterprisey stacks to convert their auth systems to be SAML compatible.

In the long term though, I think SAML and OAuth will be more prevalent than using passwords everywhere.

Are there any OAuth providers established that simply provide email addresses? I feel there's definitely room for a company to setup an OAuth provider that doesn't do anything except provide identity, rather than relying on personal information harvester companies (FB, Google, etc). The hard part would be getting onto the approved OAuth providers list of all the sites that users want access to.
Goes to show that when money is at stake for the stakeholders then things get done.

I don't think banks actually care about individual user login security too much. Credit Cards reallllly suffer from security breaches though
How do you guys run R in production? Just getting started with R based datascience and it has been a struggle to figure out how to build a production data science stack.

Do you snapshot the computed models as RData and stream them to s3, etc
In this context, 7ms refers to the size of the TrueTime uncertainty interval, which is different from the typical instantaneous clock error. TrueTime returns an interval that is guaranteed to contain the absolute idealized physical "now." So this interval represents a worst case boundary, and if a system using TrueTime is able to separate events by the current interval, for example by forcing a committer to wait it out, then it can provide a temporal order that reflects the absolute real world physical order, despite any clock uncertainty. It's a bit different to think about than how we typically work with time, but it's a powerful primitive in a globally distributed system.
It's written in Java ;)
This is now the most-upvoted story HN has ever had.
This struck me as the most important potential difference -- that the moderate-intensity rats were able to make choices about when and how to exercise, while the HIIT rats had exercise forced upon them.

It reminds me of Rat Park -- when you stress out rats by treating them poorly, all you end up measuring is the effect of misery on rat physiology.
I don't care about the authenticity/ickiness/etc. that just strikes me as a terrible interface decision, one that would make me worry they've made other terrible interface decisions where it matters -- in the product itself.

The idea of forcing the user to change a browser setting to get work done is a very "enterprisey" mindset. An old way of thinking that it's the user's fault if they can't use the software.
Which part of this quote is untrue? That it's not worded tastefully is a different matter.
Well yes, but with basic_config I'm telling the root logger in a central fashion what it's supposed to do - at least that's how I understand it. So far I've never had the urge to initialize separate child loggers for every component. Do people do that mainly so you can have fine grained control over log levels?
What would you say ... ya do here?
Here's a thread you may be interested in. I made a similar point and a pretty good discussion ensued.
They could have gone with "Elastico" or something easier to trademark. I think that's why they keep saying "Elastic Stack" instead of just "Elastic".
No, those are all Ford. First three are Transit vans, then an Explorer and a Crown Vic.
Linus Torvalds Works in His Bathrobe
It may well be that Cook's stand will soon become unworkable in the US. The US is always at war, after all, at least effectively. I wonder if Apple would just leave. It's already earning ~60% of revenue outside the US, after all. And hey, it's sitting on tons of offshore cash. Maybe it could build its own country on an unclaimed reef somewhere.
(speaking of the US here)

Property taxes have nothing to do with water/sewage/garbage/electricity.

You pay separate bills to separate providers for all of those things in a simple, fee for service arrangement.

Conversely, if you live on a property that does not, or cannot receive water/sewage/trash/etc. from a provider, you still pay full property taxes.
It's unfortunate that such a callous performance has to become the icon for his case.

Living in SF, I agree there is a problem. In fact there are two.

1) There are the schizophrenics who need some help (but nobody knows exactly what or how).

2) And there is the unfortunate reality of downtown:
- smells of piss
- no public bathrooms (because they become campsites)
- escalators break on public transportation often because people excrement on them
- trashcans get dumped out so people can find cans for recycling
- people walking across certain busy streets ignoring traffic
- various campsites especially in soma

I don't think this has to be an either-or issue. Helping the homeless is not an opposite of keeping downtown clean. I seem to notice people giving up on the latter though because they assume that the only way to do so is to blame the former, which is a no-no.
Exactly my point. Adding additional information can't possibly make it less obvious.
This startup can help make your phone battery last a week
I also hate the stupid security questions used to identify you which they always claim "add security". In almost all cases they decrease security.

Where did you spend your honeymoon?
What was the name of your first pet?
What is the name of the street where you grew up?

For any given person, a LOT of people know the answer to these kind of questions.

Also, I hate it when people use date of birth to verify identity. Medical people love doing this. Um, just check the person's Facebook and see when everyone wishes them a happy birthday, then go access their medical records?
The T-Shirt History of Mozilla (2008)
It's not the exclusive criteria, just a part of the process that I've generally found to be associated with people who excel. We are still going to have them interview with some type of subject matter expert related to the position but all jobs are not created equal.

Positions for things like security, as another commenter mentioned, are very much experience driven. Java is another simply because it has a very high learning curve to become really adept with it. It's doable, but I'd extend the expected ramp up time to longer than 2 weeks.

There's nuance to everything. I didn't mean it to come across as if that was the only factor in hiring.
> I refuse to learn Java

So you willfully ignorant but will continue to spout off opinions anyway?
The best exercise for the brain is the kind you won't give up doing after a month or two.
Unfortunately, I was stupid and didn't think to screenshot it. I did see it there for a while, though; it was a SFO -> LAX flight plan. I know FlightAware has a process by which you can remove flights if you can prove you've got a right to do so (e.g. Owner of aircraft)
So you had 100 interns and 99 of them were from Princeton??
The numerical passcode is likely his ATM pin, or a code from his bank/PayPal or some such. I hope the government can simply subpoena his bank/PayPal etc and this will end at that.
When Bullying Interrupts Education: How Two Bullied Kids Prioritized Learning
Blog post queue for Stack Overflow topics
I'm not saying I disagree, but how would you verify identity over the phone?
>It doesn't force a data model / DB onto me - I can just plug in whatever I have (unlike Django

When starting with Django the data model is quite inflexible and difficult to work with. Especially the primary key issues.
I like this approach. How do you handle routes? Do you just initialize a wrapper app that is composed of your own application, wrap your views in Flask views objects and then call `add_url_rule` on them in the wrapper setup code?

If I understand this correctly, how do you define something like a redirect or abort within your own views?
Bro. Yahoo has been a publicly traded company since 1996. What did you think?
Speaking of tablets, apart from BQ Aquaris M10 with Ubuntu, there is also Samsung Galaxy 2 with Replicant [http://www.replicant.us], which is fully free software.
Correct. I'm working with a flask app now and the tendency was to have a few files with thousands of lines of code - this encapsulates about 25-30 api endpoints along with all the necessary imports, etc at the top. Including sql and the usual suspects.

I think flask is great, like sinatra, for small apps. But I would never consider it for 'big' apps that represented more than half a dozen api endpoints and some sort of in-depth feature set.

Above that size, unless it's super simple, you'll pay the price in tech debt. While our api has worked up until this point, we're gonna scrap it for a Rails api-only app because we need convention + orm + other things to scale not just the app, but the team. There probably is a way to do this in flask, but 95% of our team are Rails guys, so it just makes more sense to go with q company wide maintainable system vs. what's there now.

For small/single devs working on small projects, flask (and sinatra) are great.
> why don't you want to know when it's fixed?

Knowing when it is fixed/closed is very much different than getting emails about every single comment going on about that issue.

Starring issues (as in Google Code Project Hosting) meant "I want to see this getting fixed" and subscribing issues on GitHub does not show anything like that. If I am not mistaken, you only see a list of people “participating” to an issue, you don’t get to see list of people getting emails about that issue.