skysight-inc/HackerNews huggingface dataset:
Things are really not as bad as you think. Even in brand new cars you can replace the brakes, suspension, wishbones, dampers, steering column, oil pans, all filters, oil&fuel pumps, service the air conditioning unit and I am reasonably certain you could do full engine maintenance as well. Most importantly, parts for any new vehicle are publicly available, be it a Fiat 500 or a Mercedes S-Class.

On the other hand, Tesla will not sell you the parts. Tesla can at any time deactivate your vehicle if they think it's not fit for driving(as they already do in case of accidents), even remotely, and you have to bring it to their dealership to have it reactivated after it passes their tests. I can't think of any conventional car that you have to do that for, I've seen Range Rovers after horrible crashes that have been fixed and put on the road again, and no one had to ask Land Rover for permission to do that.

But even if we forget about that - the biggest cost of owning a second hand Tesla is always going to be the battery. As the value of a Tesla falls down with time, the cost of a new battery for it will remain constant, making a purchase of a second hand Tesla prohibitive. Think about it this way - a cost of 2009 MacBook might have fallen down to around ~$100, but a new battery for it will cost you ~$150. The computer got cheap with time but the parts remained the same price, making a purchase of a 7-year old laptop a bad idea, unless you can do without a battery(and obviously you can't do that in a car).

In conventional cars, if you have a 20-year old Mercedes with a dead engine, you go online and find the same engine, with fewer miles on it and in running condition, you buy it for a few hundred dollars, get it installed and you are back on the road. In a Tesla, no one is going to fit you a second-hand electric motor if your old one dies, because Tesla won't allow it.
Sweater stitch shader [video]
To see the answer to your specific question you need to look and compare these graphs:

1) https://ycharts.com/indicators/sp_500_eps (note: slowly rising, if you ignore seasonality)

2) https://ycharts.com/indicators/reports/sp_500_earnings (note: dropping fast)

TLDR earnings are going down, but earnings/shares are going up. So what is going on ? Earnings for the US economy as a whole are dropping (pretty fast even). But the metric investors use to value shares, earnings per share is going up.

That means U.S. companies are buying back shares at a faster rate than their earnings are dropping. Why ? Exactly to generate this outcome : normal valuation metrics for shares (net-present-value of future earnings per share) go up as a result of this operation. When cutting a million corners the share price of any (large cap) stock should be roughly NPV(8%, future_cashflow).

The next question to ask is ... given that this uses a LOT of debt that is currently at very low interest rates, what happens if interest payments inevitably go up (either as a result of inflation, or of the FED raising rates) ? The problem with low interest rates is that, at the moment, 1% rate rise would quadruple interest payments for the government, and double interest payments for AA corporations.
> The russian reserve funds are falling pretty rapidly

Any data to back up that claim? Looking at the national reserve fund data it does not look to be anywhere near "falling pretty rapidly" [1]

Also Russian national debt has decreased by quite a lot in recent years [2], and now is only about 25% of GDP, which is a very low figure compared to other countries.

1 - https://ru.wikipedia.org/wiki/%D0%A0%D0%B5%D0%B7%D0%B5%D1%80...

2 - https://ru.wikipedia.org/wiki/%D0%92%D0%BD%D0%B5%D1%88%D0%BD...
More importantly, multiple entrants into the electric vehicle market will drive development in new directions.

If it were only Tesla doing anything of note - with all the best will in the world - the evolution of products would ultimately stagnate as they refined their own particular flavour of electric vehicle.

A monopoly held by a young, interesting company is still a monopoly.
The Prius is ugly, the new Prius, doubly so.

I like the 1st gen volt though. It's sort of chunky-yet-handsome from certain angles, esp rear 3/4.
>That being said, Northern California is a wonderful place and housing and cost of living prices indicate that many people are willing to pay to live there.

No place is wonderful enough to pay billions of dollars in extra taxes just to live there. If you are a top engineer making $500K/yr, you're only paying ~$65K/yr in CA taxes, and you wouldn't make anywhere close to $500K in other cities. So the decision to live in CA makes perfect financial sense in that scenario. But in the case of a billionaire founder, it simply doesn't make any sense to sell shares while living as a California resident. You're essentially volunteering to pay a ~65% increase in total capital gains taxes over what they would be in a tax-free state.
What if you hire an accountancy company to do your taxes? How do you calculate that then?
Yes, hidden cameras aren't used, but there are lots of speed cameras[1].

Second, although anecdotal: I don't drive that much in Japan (live in a part of Tokyo where cars are just a hindrance), but I make the 2+ hour drive to Shizuoka every few months. Every trip, I definitely see several people being pulled over for speeding.

Most people do seem to drive 30kph or more over the limit, though.

[1]: http://www.accessj.com/2013/05/automated-speed-cameras-in-ja...
The Jolla smartphone (https://jolla.com/phone/) is a handheld Linux computer - definitely NOT a toaster! (Here's my comment from a few weeks ago: https://news.ycombinator.com/item?id=11278620). Overlook the mediocre hardware, it's the software (OS and apps) that defines this phone; there's nothing else like it, anywhere. (It's made by the same engineers that developed the legendary Nokia N9.)

Access via SSH from your PC, or use its native terminal app. Mine is even running Emacs (natively!), plus Android applications. I haven't even mentioned 'The Other Half' - which allows for hardware expansions such as e-ink displays, keyboards, sensors, etc.

With a bluetooth keyboard - the best options are currently a Jorno (https://jornostore.com/), but soon a TextBlade (https://waytools.com/) - this is a marvellous machine. Sure, I'm telling everyone about it - this is the smartphone I always wanted; it deserves to succeed!

Incidentally, I have both a Psion 5mx and Revo. This is the first device that truly feels like a successor.

[Aside: after a long delay, the TextBlade is finally being beta-tested by users, and should be shipping soon.]
https://en.wikipedia.org/wiki/Thread_%28computing%29#1:1_.28...:
1:1 (kernel-level threading)

Threads created by the user in a 1:1 correspondence with schedulable entities in the kernel[10] are the simplest possible threading implementation. OS/2 and Win32 used this approach from the start, while on Linux the usual C library implements this approach (via the NPTL or older LinuxThreads). This approach is also used by Solaris, NetBSD, FreeBSD, OS X, and iOS.
He is on the list (11)
http://www.ebay.com.au/itm/Asus-Nexus-7-Tablet-Quad-Core-201...

I may have over-generalised. They're not manufactured any more, are they?

At the time I found that price, I was trying to filter out all the 2012 Nexus 7's (product marketers, please don't use the year to differentiate).
Exactly. To me, this experiment made it clear that the speed with which information is exchanged, new ideas are formed and behaviours adapted will increase drastically the more people are intimately connected to the internet. Not even half of the world population are connected yet. Virtual reality will remove further barriers, BCIs may completely remove them.

Looking back, the experience seems remarkably alien, but in the moment of action, you were part of a hivemind. In large rooms, only powerful ideas could propagate, no matter how meaningful they were.

I'm reminded of
https://en.wikipedia.org/wiki/Dunbar's_number
There are at least three theoretical implementations of userland threads in an Operating System:

* 1:1, where each userland thread maps directly to a kernel thread

* 1:N, where several userland threads map directly to one kernel thread

* M:N, where the kernel maintains a pool of threads and dispatches userland threads to them

History has shown that 1:1 threading has the best trade offs. It's worth more independent research if you are interested in Operating Systems.
This may be a stupid question, but why not store cards/tweets in a hashmap and add a .contains() check before adding?
Stash is supported as a first-class citizen by exactly zero tools that I've seen - even though a stash is a commit in all but name ;)
Your solution requires space to hold all items from the pool
I've read this three times now, and still can't work out the context. Am I right in understanding he's talking about GSM mobile/cellular networks?
Escort Girls – RODOS ESCORTS
I really apperciate your account. Please keep up the good work.

Fuck people who use the mitm-as-a-service that is CloudFlare.

E: Maybe you should also start criticising HN for trying to block tor. Having to get a new exit node every now and then is a bit annoying. Good that the HN owners are so incompetent.
You see, in a civilized world you would treat people by the same standards that you want to be treated.
51: Nigerian House of Representatives Calls for MTN Nigeria to Pay Over $10bn
> The first obstacle that makes the “dealing” (without replacement) hard is that the “draw” method doesn’t work. If you draw (with replacement) over and over again, ignoring cards you’ve already picked, you can simulate a deal, but you run into problems. The main one is that eventually you’re ignoring too many cards and the algorithm doesn’t finish on time (this is the coupon collector’s problem).

I don't think this is true!

First note that if you want to pick 98 values from 100, it is much simpler to instead decide which 2 to skip. Similarly when picking 75 out of 100 - better to just cross out 25. The hardest case is picking half: N/2 out of N, without replacement.

This is the Coupon Collector's problem, except we're stopping at half the coupons. We can use the analysis given in the Wikipedia page [1], except we only take the second half of the series.

This gives an expected time of

N * (H(N) - H(N/2))

where H(X) is the Xth Harmonic number.

In the asymptote this yields:

N * (γ + ln(N) - γ - ln(N/2))
= N * (ln 2)

so the expected time of the "retry on duplicates" approach is linear in N. (Of course, the worst case is infinite, if you keep redrawing the same card.)

edit: To complete the analysis, the requirement is that the answer be linear in k, the number of items selected. But we have k < N, so if we are O(N) we are also O(k) or better. So I think the argument works.

[1] https://en.wikipedia.org/wiki/Coupon_collector%27s_problem
Tesla Model 3, un australiano il primo a ordinarla
Great naming, reads like "Half-ass" in italian. Other than that, great stuff
Ask HN: What credit card do you use/recommend [India]?
SoundCloud | Berlin | Full-Time | ONSITE, VISA

Our team at SC is looking for an experienced search engineer to help us help our users discover SoundCloud's huge and unique catalog of music and audio.

Working on one of the leading music platforms on the web, this is a great opportunity to apply your skills to make a measurable difference to millions of people around the globe.
Our services tend to be written in Go and Scala; data munging happens with Elasticsearch and Spark. Familiarity with these is a plus, though frankly eagerness to learn is more important.

If you are experienced in information retrieval or a related field (such as recommendations, information extraction, question answering etc.) and passionate about developing and evaluating data-driven products, get in touch!
https://soundcloud.com/jobs/2016-02-19-search-engineer-berli...

On a personal note, I've learned a lot and had a great time here. If search isn't your thing, take a gander at https://soundcloud.com/jobs, there's a bunch of interesting open positions.
The biggest issue now is legal. GSM requires the uplink to be 45mhz apart from the downlink, which is more than the width of an ISM band.

You can run a european 900mhz GSM basestation in the US 900mhz ISM band, but the handsets that register with the tower will be out of the ISM band.
Perhaps consider revising your original comment to be less dismissive if you have changed your mind?
Question - why almost all electric cars have to be incredibly ugly? Like it's a requirement for a car to be electric almost. Nissan Leaf looks like a fridge turned sideways, BMW i3 looks like a collection of parts designed by different people which don't really match together, Vauxhall(Opel) Ampera looks like someone smashed a Prius with a hammer, Tesla's and BMW i8 look ok but these are premium cars, and now the Bolt has a back that looks like a back of one of those dummy cars they use for crash testing.

I understand there's a push for "hey, I'm different, I'm electric!" but I know quite a few people who would be in a market for a new Leaf but they won't buy it because of the looks, it's almost like it's impossible to put electric motor and batteries into a shape that looks like a conventional car.
Building machines that learn and think like people
This is really charting the mechanisation of certain jobs, replacing people with robots, rather than automation which is simply doing the job automatically through any means.

Automation is coming, but it's knowledge industries that's going to hit first, and it's going to hit them hard. If your job is taking some sort of data, understanding it, and producing some new data as a result then you should be very worried because that's exactly the use case AI is perfect for, and it's much easier to write code than it is to make a robot that cope with a burger that didn't flip perfectly.
There's something deeply contradictory in India's attitude. For imports (including setting up supermarkets in India) there are levys, laws and regulations to make it almost impossible for foreign companies. But then India is able to export its IT professionals and outsourcing across the whole world. Is this really a level playing field?

Why is no one calling this out as foul play? India seems to want one rule for when it is abroad and another when it's at home.
We also thought that using oil wouldn't harm the world.

It's all about scale.

Of course some solar panels are not going to harm the world. But what if we need, lets say, 1% of the earth covered with solar panels?

If it's hard to predict the effects it might be dangerous.
Thats not an accurate analogy at all. These researchers presumably utilized MIT resources extensively while being paid by MIT specifically to conduct research in addition to other duties. Without MIT or a similar host institution their ability to conduct research such as this would have been severely constrained.

In fairness a better title would be "MIT researchers turn Wi-Fi...", and it would definitely have been good to mention the researchers' names earlier.
Lily programming language
>Phones and tablets? Complete write off. My smartphone is basically a toaster. Android and iOS make what could be a general purpose computer into a Fisher Price experience. It's really sad to me.

I'm not sure where are you coming from with this?

With the stock roms the "Fisher Price" experience as you call it is perhaps somewhat true.

A lot of Android devices are very much rootable so once you get a modified recovery software flashed to the device.

Then you're pretty much set to do whatever you like.
I'm in Shizuoka. Possibly they are more sensitive due to overdue Tokai earthquake. I was actually living in one of the oldest buildings in my town and it was probably 50 years old. It was demolished 2 years ago.
Maybe the reason only .X‰ of programmers knows about this algorithm is that only that amount of programmers even need it?

It would be nice to see a page about obscure algorithms that would benefit most programmers instesad of just a small percentile.
Butt cheek :)
Dokan – User Mode File Systems on Windows
Where is your link from? Isn't that map based on the 2014 leaked data?
I agree that it was difficult parsing data on a post about a specific topic, Christmas.

However, most comments will be in reply to a post which usually has a central theme.
On the other hand, you need the original names in order to reference back to the paper.
But Mike, what good would Polymorph do in this scenario?
These EV cars are not subsidized? I expect some discounts on these petrol-less cars.
Yes, the project he talks about is OSMOCom, Open Source Mobile Communications. http://osmocom.org/ will give you a little more context. I'm assuming this would allow you to route data over these types of networks given the proper hardware in your own environment.
That's a lot of hacking to display Flash on iPad :)
Or like diesel VWs...
There is entire high-lever scientific computing framework built using a SIMD wrapper: https://github.com/jfalcou/nt2.

Though I must note in this case the SIMD wrapper has significant problems. Due certain design decisions the wrapper performs suboptimally on mixed float-integer code on AVX for example.
Thanks a lot for your detailed explanation! I added a link to your post on the page.
New UK newspaper with no website or app
Artificial intelligence steals money from banking customers
I believe it would be easy to modify it to have only k chosen indexes in memory, and for k significantly smaller than n and n an order of 2 to 64 it would still be much faster than iterating through all n (which is the first algorithm presented here:

https://en.wikipedia.org/wiki/Reservoir_sampling )
Great,the only concerns I could think of were legal, around ownership of frequency ranges abd interference.
I think the other replies to you are mistaken. This algorithm meets the requirements of running in linear time, once you apply the inverting trick when the sample size exceeds half of the pool size. See my top-level comment.
What about it is specifically "for developers"?
I am surprised given the audience oh HN that no one seems to consider the technical aspect of this leak. This is yet another failure to protect corporate data. It is obvious that this law firm worked with criminals, but I am sure they also had legitimate clients whose private information is now exposed. Of all the companies, a law firm contains secret that are protected by law (attorney-client privilege) and for very good reasons.

The number and magnitude of data leaks is ever increasing and now reached alarming rates. Irrespective of tax dodging considerations, I do not think that IT professionals as an industry should cheer at this type of leak. The trust from businesses in IT to do its job is at rock bottom, and where it is not, it should be.
The difficulty of getting people to read about Lahore
Thank you for that. This is quite interesting, I thought there were quite strict guidelines about who was allowed to broadcast on 2/3G frequencies? Or is this bandwidth not as controlled as others?
>the box will enable mothers to keep the baby in the same room with them, because it is so easy to carry, "which is good for bonding"
Yes, it seems pretty common to spend $35k on a vehicle, and of course people buying $35k sedans are in the Model 3 market, but I don't think that includes even new small economy car buyers.

It would be difficult to spend $30k on a new standard-engine Mazda 3. Mine was $18k brand new. The top standard-engine trim is around $25k. That other $10-17k is another $165-285/month over 5 years at 0% interest, and that is not an insignificant amount of money to many/most people.

If you can't save that much monthly in gas, and all you want is a boring, basic, reliable car, it's not worth it (yet). Tax incentives help, but Tesla is going to hit the 200,000 vehicle limit well before filling even all the Model 3 pre-orders.
You are taking the quote too literally.

> First they ignore you

Tesla Roadster

> then they laugh at you

http://www.spike.com/video-clips/c3neux/top-gear-reviews-the...

> then they fight you

Tesla Model S + EV clones

> then you win.

Tesla Model 3
JavaScript: Desktop Applications with NWJS
Most interesting, thanks for commenting. This phrase caught my eye...

"My entire management chain agrees that the cost of entry is lower to influencing and driving development in FreeBSD vs other kernels [...]"

Is that simply a reflection of the smaller size of the FreeBSD project or does it stem from the 'tight core' model where the kernel and base system are co-developed?
JavaScript: Composition  Inheritance
I think you aren't allowed to mutate the deck.
Ha! My favorite Telco story was when I was hired to come in and do performance improvements on an enterprise application. Day 1 I figured out what the problem was, and I could have the solution in place by the end of the day.

The manager who was in charge of the application thought that a quick solution would make him look bad. I was explicitly ordered to sit on my thumbs for six weeks.

The thing is, once you know the solution every other action is senseless. There are people who are perfectly happy being a billable body for a living. I'm not one of them.
Decidability actually is optional; some folks experimenting with dependent type systems are bullish on giving up decidability (allowing type checking to fail to terminate in some cases). Typechecking is already 2^(2^PROGSIZE) for, say, ML. That could easily - in theory - lead to impracticably long compilation times. Yet in practice, it doesn't. So why not go whole hog?
Is Rusts concept of ownership any different from C++ unique_ptrs?
Installment plans are recent trend isn't it. I see previously it was 2 year contracts for 199 etc. emi are common in India as well. Apple could have done the same in India.
The algorithm accesses each element in the input only once, and in order.

It's like reading a big file. Just call read() repeatedly, and discard old data each time you call read() again.
Well, it's good that the problem solvers of the world are not as optimistic and wish to solve the problems.

Otherwise we'd all be like "good, in a thousand years everything's going to be ok, 'cos science".
MARQUEZ TAKES VICTORY AFTER a DRAMATIC RACE-DAY IN ARGENTINA
Lemurs spotted sunbathing at Twycross Zoo
Tesla Model 3 orders surpass $10B
If you want affordable, build dense, urban cities; not NY style rows after rows of 2 story building, separated by roads, but USSR style large 4-6-9 story blocks, build from concrete (longevity, privacy) with no eventually moldy drywalls, closed for through traffic, with parking garages, public places, playgrounds etc. American university campuses can be good models for residential neighborhoods.
Interesting point, what would "Tor cleans up" mean?
I believe you will have to do both as you progress in your career.
Great write-up. If I could nitpick a bit I would say...

I am on the fence with ORMs. Yes, they make 80% of cases possible, remaining 19% difficult and last 1% sometime impossible.

Having Slick (Scala) and JOOQ (Java) makes code much more transparent, explicit and easy to maintain. Debugging nasty stateful session bugs (oh JPA) can be nightmare.
"The nicer way to do this is to have two lists. Put all of your cards into the first list. Choose a number between 1 and the length of list 1, then remove that element from the list and add it to the end of list 2. Repeat until list 1 is empty. It's linear-time (with a linked list), and there's no chance of duplicates."

I have to add my $0.02. This is correct, your algorithm will give correct result with no chance of duplicates. However in some context this absolutely must not be done - I've worked in a company which made online gambling games and the auditing requirement was 1-to-1 correspondence of number drawn from RNG and the card player sees. For example Ace of spades must always be 49, whether it was drawn as first or last card from the deck.
Care to share a source for "TOR traffic is malicious (94%)"?

What does malicious percentage of traffic in this case mean? Malicious sessions? IPs used? Packets? Users?