skysight-inc/HackerNews huggingface dataset:
Have you actually thought about your comment? Why would a bunch of teslas in an urban environment need a battery swap? Why wouldn't everyone just keep their car plugged in at home? Urban driving rarely exceeds distances of even 30 miles in a single trip, unless you are a taxi or courier.

Are you saying that 500(or however many) teslas would all be rolling into the same charge station from 200+ miles away within the same 30 minute(or whatever) window?

And what happens in the rare, almost zero-probability chance that there are no batteries there for you to take in the 90 seconds? You wait 30 minutes for your car to be charged.
Are there any plans to merge that back into the main R implementation? And if not, what are the reasons for keeping a separate fork? backwards compatibility?
Raspberry-Pi-Powered, Android-Controlled Remote Garage Door Opener
The vulnerabilities mentioned seem to apply to large scale public websites. If a company serves a website for internal use then it unlikely to be a direct target. Could any of the vulnerabilities expose company data to large scale government data collection? It seems unlikely in the US but what about other authoritarian countries who have full control over their networks?
That's impressive. Being a bit skeptical about Glass as a casually wearable device, I just realized how many there are specialized use cases in which a small video transmitter on one's forehead can be indispensable.

It could be a person learning to parachute jump, or defusing a bomb—cases where one has to deal with uncertainty in critical situation.

(There are a lot of evil ways to use this, but that could be said about any useful technology, I think.)

I only wish Glass was more of a general purpose platform and worry that there seem to be no competition.
Some English speakers claim they are uninterested in Coq for similar reasons. I guess if you want to ignore a good tool because of a bad name, go ahead. But it seems to be throwing the baby out with the bathwater.
> As far as I know, the only way to access elements of the dictionary is through functions. I fear these methods are deprecated in future versions in favor of the square brackets [] notation.

I presume ``(.__getitem__ obj key)`` would work, or at least ``(obj.__getitem__ key)``.

``dict.get(key)`` is not deprecated. It's quite different to ``obj[key]`` (i.e. ``dict.__get__(obj, key)``) and is very useful:

>>> help(dict.get)
Help on method_descriptor:

get(...)
D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.
No, this is more like you are friends with your conservative Republican boss on facebook, but you are also a member of an abortion rights activist group.

You've never disclosed that activity to Facebook, but they harvested your data via one of those sleazy commercial personal information brokers and added it to your 'shadow profile' without your knowledge.

Then one day your boss downloads his data using that feature, and he suddenly sees that you are unreal37@abortionrights.org and your phone number there.

He then calls you to tell you that not only are you fired, but your wedding to his daughter is canceled.

This is a truly egregious bug (although I think it is probably true that few of the potential 6 million victims have actually had their info leak in this way).
I don't really have an opinion either way, having never tried TDD, but I do write distributed systems and don't see why you can't use post-facto testing to get the same results. I am interested in your reasoning. (Re: Proof, http://pdos.csail.mit.edu/6.824/schedule.html doesn't feature the word 'test' which though circumstantial sort of downplays the weight of an inextricable link such as that you are supposing.)
My favorite story about cables is Neal Stephenson's piece in Wired: http://www.wired.com/wired/archive/4.12/ffglass_pr.html

(I was actually looking at doing a 300 nautical mile repeaterless fiber system in the ~1999-2001 period. It looks like if you lay during an economic downturn when there's plenty of spare capacity in cableships and surplus cable, it's not actually that expensive. The problem is short cables tend to be in shallow water where there are lots of "issues", so you need armored or buried cable, which is much more expensive.
Note that the downloadable chapter is draft of September, 2005, 2010, so a new edition may be less imminent than title implies.
The previews were all flat but I seem to recall that it was a temporary thing: https://github.com/twitter/bootstrap/pull/6342#issuecomment-...
I just noticed their HTTPS termination point is hosted on Amazon EC2, so the only thing required for extracting the private key or logging the data is a contact at Amazon. No reason to involve DuckDuckGo at all. Since Amazon EC2 hosts are virtual machines, you can just read the machine's RAM and disk from the physical machine it's running on.

eta: I don't believe Amazon would agree to do that, or that there is a law allowing anyone to require them to do that.
It's progressive, going from just anti-shark/power carrying sheath in the deep ocean to light steel cable armor a ways out to trenched as it approaches the shore itself. They splice the cable together according to a specific plan based on a survey (first desktop, then underwater) to account for underwater terrain and risks.
This is going to take a long time to change for the better. My Chinese friends who don't cheat because they actually want to learn stuff definitely complain a lot about the rampant cheating. If you want to get into and finish Uni completely legit, you have to work way, way harder than everyone else :\ And you will end up doing worse than people who cheated and got away with it, just have to suck it up.

There's a lot of inertia to solving it, and it's very hard to do across the board. For Uni entrance, there's ~10 million+ people taking the exam every year - that prevents a lot of non-exam based solutions to "who do we let into Uni?"

I do not envy the position of the people in charge of all of this :(
ECHELON is more relevant for this. (https://en.wikipedia.org/wiki/ECHELON) See especially the controversy section, which shows that the US was using the system for industrial espionage.
Ask HN: Looking to work with someone on anything
I live in Tel Aviv and I'm looking for someone who lives in the area to work with on _ANYTHING_.

Some more details: I have a full time job, and you probably do as well. I don't have any ideas, but I'd love to brainstorm and come up with an idea. Ideally it'll be something challenging and interesting and totally out of our comfort zone. The goal here is to learn and do something just for fun. If it goes well: great! If it doesn't: great!

This is really a call to everyone, whether you live in the TLV area or not. However my connectivity from work is highly limited, and so it might just be easier if you do live here so we're at least time-zone aligned.

I can dedicate about 10 hours a week, maybe more, and I'm open to working on anything.

Contact info is in my bio here.
The first one is eight tokens, of which at least three are necessary: 100, for, and i; let's say four. The second one is 13 tokens. That means it has more than twice as much noise to distract you from the signal, and to get right when you write the code. As a result, variations like these require more attention to notice when you're reading the code:

for i = 0; i < 100; i++ { }
for i := 1; i < 100; i++ { }
for i := 0; j < 100; i++ { }
for i := 0; i <= 100; i++ { }
for i := 0; i++; i < 100 { }

The first has no counterpart in Python (where the 8-token version comes from) since Python always has that bug. The others are:

for i in range(1, 100):
i=0; while j < 100: i += 1; ...
for i in range(101):
raise TypeError

In short, every bit of extraneous information you put into your code distracts you from the relevant information, and that extraneous information is something else you can get wrong. Golang does a lot better at this than C does, but it could do better still.

In some cases, where Golang is noisier than Python or Ruby, it's because the extra redundancy is there to catch errors or encourage you to handle failures properly. This is not one of those cases.
For those who haven't read the article yet, when they say "fight", they mean actual physical fighting:

> By late afternoon, the invigilators were trapped as students pelted the windows with rocks. Outside, more than 2000 people had gathered, smashing cars and chanting: ''We want fairness. There is no fairness if you do not let us cheat.''

Cheating in China goes way beyond cheating to get into school. Two years ago, the Journal of Zhejiang University-Science became the first Chinese journal to use text analysis software to spot plagiarism.

They found that 31% of their papers were plagiarized. 40% for computer science and life science papers. [1] [2]

[1] http://www.npr.org/2011/08/03/138937778/plagiarism-plague-hi...

[2] http://www.nature.com/nature/journal/v467/n7312/full/467153d...
Ask HN: How many people would want to check-in/check-out in public transit?
I have been thinking about if it's a feasible to have an app in which users check's in when they get into a bus. They give the bus stop information when they check-in and when the check-out. This can be used to predict bus timings and generate close enough real-time approximation. I'm not sure if this is already done, but if enough people check-in and check-out u can also determine the amount of people in a bus and determine which bus to maybe miss because of too much crowd.

In US public transit is probably not used as much as in other countries, so it might not be so useful in bay area as such. What do people think?
Zooming is really buggy for me in Sketch. Sometimes I just fly around the canvas, and I haven't figured out a good way to recenter like double clicking the hand tool in illustrator.
Revolution Analytics[1] is also claiming a lot of speed improvements. Is there a sense yet of how pqR compares? Some of their speed up comes from linking Intel's Math Kernel Library. Does this duplicate the "helper thread" approach pqR uses or would they complement each other?

[1] I'm not familiar with them other than their website. My impression is that they are real, but the website feels just "slick" enough to make me uncertain. Are they considered reputable?
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
void delete_nodes(struct node n) {
if (n.next)
delete_nodes(n->next);
free(n.next);
}

like that?
Is the pqR version of that manual available online?
China would be fucking stupid to hand Snowden over to US authorities. Just like the US encourages dissenters to take refuge in the US, China should do the same. If you don't agree with your government and want to air their dirty laundry, we will give you amnesty. This would be good for the world as a whole.
Does go have a generic iterator interface? When I looked through the docs range seemed the closest, but all the examples seemed tied to array or an array of the keys of a dictionary.

For example Python has a iterator protocol and language support, and Java has Iterator/Iterable with language support.
This isn't just a problem with Chinese students in China. A large for-pay cheating operation which catered exclusively to Chinese students was just uncovered in New Zealand, too.

http://www.stuff.co.nz/national/education/8662224/Chinese-ch...
You would not need this to point that out. America's righteousness is bullshit as has been shown by Chomsky for decades. America does not give two fucks as long as its public believes it.
Most drivers (at least in Australia) will be courteous in this way. Where it breaks down is that the point of merging tends to move backwards, eventually to a point where drivers are merging quite early, sometimes to the point where arriving vehicles don't even know a merge is occuring. What then happens is drivers push ahead and attempt to start a new merge close to the barrier/traffic cones again. However no one wants to merge twice and see these restarts as skipping the line.

The OPs main point of leaving larger gaps might solve this, but generally gaps will fill and you are then back to gridlock.
Hi, It would be really helpful if you individuals can spend $10 each. It will help us raise funds for the endeavor.
A shame "rubberneckers" were mentioned (even if in passing); it always bothers me when "rubberneckers" are blamed for a slowdown, despite that it may simply be the long-term wave slow-down after the incident (as also discussed in the article). The reason it bothers me, especially when it's mentioned in a traffic report, is it gives everyone a little easy road rage "blame the bad driver" excuse when everyone just needs to chill out and realize this will only cause a few minutes delay at worst.

It's also futile to try to "train" everyone to overcome these little wave effects. All you're going to do is give some people an excuse to rage at others about their "inefficient" driving. Just keep your distance, follow the rules of the road, and put on some good music/audiobook/podcast/etc. You will get there eventually, and one day better self-driving cars or mass transit will make this frustration moot.

(Note that even if self-driving cars aren't specifically programmed to solve the wave effect, it won't matter because you'll be too busy watching TV or reading to give a damn. I'm all for efficiency, but having commuted by car for years, it's not about these little things anyways, it's the sheer time spent that is the worst thing (and damaging on a personal level), and traffic accidents truly do block traffic anyways.)
Stop supporting the surveillance machine with: 1) Your money, 2) Your data
If we keep giving to those companies who collaborate with the NSA...

a) Our money (by buing their products & services)

b) Our data (so they can make money off of it AND surveil us)

...then we'll literally continue to get what we paid for:

If we keep buying Microsoft, Apple, Yahoo, Google, Skype, Facebook etc. products/services, then we actively support the mass surveillance apparatus.

And: The only thing that can make companies change their behavior is: Their bottom line.

Every single one of us has a very real responsibility here.

Think about it.
Late merging makes better use of available road bandwidth. That's not anecdotal, that's simple math.
The Guy Who Used To Protect Your Facebook Data Now Works For The NSA
I think what would have worked better is normalizing the interpreted to 1.0 and then having the pqR results set against that. That'd make the graph far less noisy and much easier to interpret for making the case of pqR being faster. Right now there's much more information there than needs to be for that with every different version of both being represented.
You should check out this subreddit
http://www.reddit.com/r/CollaborateCode/

There are a couple of open projects out there and more to follow.
This. Thousand times this! No other words needed really.
Selecting to enforce more strictly the law in a particular area is unfair and not the way to go when you have such high cheating levels reported in the whole country. To walk the path of the "Rule of Law" they have to make the rules stricter for all.
My heuristic when trying to help get rid of a traffic jam is this:

> Maintain a higher minimum speed (and the same or higher average speed) than the car in front of you.

The only reason why traffic jams ever disappear is that people are doing this. Most of the time I guess the true root cause is that incoming traffic is dissipating, though.
I remember some sort of experiment in Colorado in which state police formed a line of cars at intervals forcing everyone to drive the same speed, and thus was able to eliminate the daily blockages in that experiment.
Does the NSA offer stock options plan? :)
Indeed, just like it's OK for top officials to leak about what a terrific success the drone program is and how it doesn't kill any civilians (NB: anyone killed by a drone is considered a "combatant" by definition in the official language[0])

[0] http://www.nytimes.com/2012/05/29/world/obamas-leadership-in...
Thanks for the link. I was kind of excited about the change, too. :/
Wow. You realize that this world where people care enough about school to put in that much effort is /completely foreign/ to me, right?

Personally, I think the school system I came from, where nobody cares is in bigger trouble than the system where cheating is endemic.
This is going to effect innovation and education in China very badly. If there elite University students are getting there by cheating, then it means there elites aren't really elite: just better at being dishonest.
Again, I advertise I'm not sharing data and everyone buys up into it without verifying. I have asked friends at Facebook about sharing data with NSA, their response is FB is very transparent and someone would have seen it. So it's very possible they share data and their employees don't know.
I hate to use this phrase, trust but verify
How would the unreal37 email get linked to your Facebook profile? I'm not understanding that part of it.
Data in the cloud might be safe from disk failures, but not safe from acquisitions.
Ask HN: Is Twitter being a useful tool to anyone here?
I could never really use twitter much. I am just trying to find out if I am in minority or majority.
This SyntaxErrors for me.

>>> from types import *
>>> mycode = "a = int(raw_input()); print a * 2; return a"
>>> myfunc = FunctionType(compile(mycode,"<string>","exec"), globals())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 1
SyntaxError: 'return' outside function
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 1
SyntaxError: 'return' outside function
What were they living on 20 years ago? Wasn't it less?

And yet magically a higher population growth rate was sustainable.

At India scale numbers are meaningless and highly subjective.
This reads like an article from the onion. I had to double check just to make sure it wasn't.
You can find all the people you want to oppose these kinds of laws but, as they say, money talks.

In a lot of political districts, the local auto dealer contributes more in taxes to the state/district/municipality than any group of citizens does. When these dealers call their congressman, the call gets answered.
Thanks for the response! WebCite looks pretty good. I'll try using that.
I looked at Common Crawl, but it doesn't seem to archive the content of most pages. Am I misunderstanding how it works?
I don't get why this is a big deal.
Of course we're spying, every country does it.

That we were spying on this fiber-optic cable should be classified info, I don't understand why Snowden revealed this crucial piece... now, this leak has just invalidated all the work (and taxpayer dollars that I'm paying) that it took to wiretap that cable. This submarine cost us Americans billions to build... knowledge is power in the 20th century, and we just lost some military power. I supported Snowden at first, but I'm not sure about him anymore.
Yes, pretty much 7 days/wk, coding a startup.
A video being popular now does not indicate that it was popular in 2008.

Don't get me wrong, I know Obama talked about the topic. I just think that very, very few people voted on the basis of what he said.

That also applies to the 44% figure. Yes, they care. But come voting time, will they vote on the basis of the NSA or on the economy? I'd place a large wager that it'll be the latter.
Has been for me, for advocacy for a charitable cause.
I can't speak for the op, but I would think that writing linked lists is something that pretty much anyone working in performance constrained environments does. No one solution is perfect for all situations, so you end up writing one that is tweaked for your use case. It's not like they're hard to write, so why wouldnt you roll your own?
As a current undergrad from India who chose to seek an education abroad, I probably have a unique perspective on this.

1) Yes, most Indians who graduate from their colleges often are lacking quite horrifically in their knowledge as compared to a similar non-Indian counterpart, primarily because the culture within the educational system is largely based around acquiring short term knowledge and then never looking back.

While in the Canadian system, I found it quite pleasant that everything is gradually built from what you learn in your first year, the Indian system is modularized and disparate, with large parts of what they learn forgotten in their earlier undergraduate years.

2) There is a vast variation between the quality of universities in India, however even the IITs are definitely not the same thing anymore. My father who went to IIT gave me the impression that it was definitely a centre for higher learning, where the students actually seriously thought critically about what they were studying, whereas now (through the descriptions of most of my friends and colleagues), they have been reduced to places where one no longer has such a luxury, as their marks matter more than the actual knowledge they accumulate; this wouldn't be much of a problem if the courses actually aligned with real world problems, however the courses deal are largely tangential to real hard work that one might see in academia or industry.

3) In contrast to this, American (Or Canadian) universities offer a much more comprehensive education, and while definitely relying more on the initiative of the particular student, they generally encourage independent critical thinking, and don't place much emphasis on a number received from a three hour exam. This I think is the crucial difference between graduates of these universities and graduates from Indian universities, those who actually go on to do something important would have had a much harder time in an Indian university than a non-Indian one.

I should also probably state for completeness that I am not pursuing and Engineering degree, and I am a physics major, however I don't believe that makes much of what I have said irrelevant.
I usually try to avoid hitting the brake as much as possible in order to maintain the most uniform speed I can. This is due to a selfish, lazy motivation, because I don't want to rapidly alternate between gas and brake.

I think there is also a psychological component to seeing bright red brake lights. I want to say it creates a reactive, and often overly reactive response. I imagine lifting a foot off the gas pedal often creates sufficient deceleration without the alarm caused by hitting the brake pedal but many people don't drive this way. Maybe we should have two shades, or colors, or a full gradient to indicate level of braking? What if a brake light could indicate current speed?
If this was jeopardy, the question would be: "What is the combination of a child-centric culture and a one child policy."
This is really interesting. Can you expound on this?

What is your personal opinion of the probability of Snowden being an asset to the Chinese?

Clearly the USG has their best minds on the permutations of probability here. What is the likelihood that Snowden is not making these strategically sound moves on his own?

What is the likelihood that Snowden IS, in fact, masterfully playing this situation.
I think it's easy to call everybody rubber-neckers, but in reality when you pass a big mess of police lights or anybody stopped on the side of the road, I consider it a bit of a courtesy and safety to slow it down a little and, if possible, merge into a lane so you don't do a "fly by" at full speed with somebody standing at the side of the road.