skysight-inc/HackerNews huggingface dataset:
It doesn't - it directly inherits dict.

I'm wrong, though; the optimizations Counter applies only make it faster when each `update` takes an iterable of a large number of elements. This is unlikely to happen in our case.

You can actually bypass the Counter wrapper and use its accelerator directly:

from _collections import _count_elements

def wc(path):
d = {}
with open(path, "rb") as f:
for line in f:
_count_elements(d, line.split())
return sum(d.values())

However, this uses implementation details and is as such bad code.
It's very easy to learn. Find someone willing to go camping with you for a weekend and teach you the basics. It'll really just take a few hours and you'll enjoy the rest of the time.
I'd extend that to "anything which is now in the public domain".

a photo with a hand-held iphone is good enough for a quick first pass

Not to mention far less damaging to the original since it doesn't have to be manipulated as much, and quicker too. Distortion is a problem but postprocessing can give good results.

The last time I was at a library, which seems like ages ago, there were (paid) photocopiers for those who wanted to copy a page or two. With everyone carrying high-res cameras in their pockets, I wonder if they're still around.
That's awesome, thanks for the link! Are there other non-profits that have similar services or just DAV?
This is why people use test kits and go with reputable buyers. If you use a marquis or mecke re-agent test and a good scale, you can avoid a lot of that.

And there are hundreds of thousands of people buying drugs online. There's going to be a few edge cases like that. People who take darknet LSD know to look out for nbome and other imitations.
There was a somewhat recent article about this dynamic on a forum that DC area women post on. It described a lot of type A personalities one-upping each other around how much their husbands make ($400k+ / year at the low end I think it was noted), what they paid for a baby carriage, how many vacations they go on yearly, etc. that all reminded me a lot of what kids do in high school. It was a bit embellished probably, but eating out here and there in Northern Virginia I've overheard a lot of really eye-rolling conversations of similarly shallow topics but also accompanied by a more chilling conversation of such incredible privilege that's so commonplace. I did a short count while I sat in a parking lot once and literally over 50% of the cars being driven were recent model German import luxury vehicles - I literally never saw a Mercedes Benz or even knew what BMW was by the time I was 13. For kids growing up in the suburbs here, you'd statistically expect the average household to have a $45k car.

I think a lot of the disgusting behavior is about the personality types and the values that tend to manifest among those types rather than anything intrinsic to wealth. A family member is extremely wealthy (.01%er) and from what I remember that household has never discusses business unless at a designated place and time. Perhaps this is simply an old money v. new money sort of contrast fundamentally.
wtf was this exchange?
Over 40 years ago I was in high school, had access to a computer, and did a simple programming exercise.

I created some tables of how much money my dad was spending on cigarettes, and how much he would have if he invested it instead. IIRC the interest rates I used were from 1% to 10%. The price of a pack of cigarettes was somewhere in the neighborhood of $0.30. Maybe the tables went up to $1.00 a pack but probably no higher.

Fast forward 40 years. Cigarettes are now about 30x as expensive as they were, but interest rates are somewhere near 0%. Times change!
Check my other comment where I compared L.A. to Tokyo [1]. I kind of expected it already, but the outcome still blows my mind a bit..

[1] https://news.ycombinator.com/item?id=9562430
Not to be glib, but there's only one way to learn, really.

Maintaining a fire isn't all that hard, and neither is pitching a tent, after you've done it once.

That said, I would personally recommend camping your first time with others, even if just on a meetup group or something (there's probably one in your area if you look, and if there's not, you can start one), though it's not critical.

Pitching a tent can be frustrating, but if you get to your campsite while there's still plenty of light, it's not that hard. Avoid doing it at night until you get experience, and you should be fine. As for starting a fire, take a piece of fire log and a lighter. Add small sticks and progressively larger ones. Read an article about it or two. It isn't that hard, though plenty of folks are opinionated about it -- like starting a fire with charcoals.

My email address is in my profile, and I'm an insanely avid camper / hiker, so feel free to email me, and I can give you tips, checklists, etc., etc.
Ask HN: What are some video streaming sites that prevent video download?
Buy a VPS and set up your own VPN. It is much cheaper and less likely to be targeted.
To all those who have asked, yes, hive is also in use.
I'm not a C expert, but I think you can prevent your assignment from being optimized away by declaring the variable as "volatile".

Edit: -O0 to disable most optimizations is also helpful when debugging.
The article also explained how the road system is subsidized (gas tax only covering 40-75% of freeway costs if I remember correctly). That's not too different from subsidies needed for public transport. If you want to see an example for highly profitable and privately owned public transport systems for cities, just look at Japan.
People who scan rare books seem to be obsessed with pixel perfect scans, and so what happens is it doesn't get done. A 90% scan is infinitely better than no scan when the library burns down or the books are stolen.

Heck, the libraries in the article didn't even know what they had, so they don't know what was lost.
I don't disagree that there are desirable limits. I disagree that physiological addiction to nicotine is societally more harmful than gambling addiction.

I also think there are things to do other than "intervene [...] against participants with no desire for an intervention", so I think that's a bit of a red herring.
I hope that "not amenable to becoming values" is a transient state...
The "freedom" they refer to there is probably "free as in libre", not "free as in gratis" - they are allowed to provide you with that information, and if it's public-domain you can do whatever you want with it afterwards, but they are allowed to charge you for the labour of doing it.
I'm investigating this very question myself. I think it's probably something each person has to figure out for themselves. Anecdotally, the mathematician Paul Erdos took amphetamine (not coffee but same idea) every day and considered it crucial to his work.
Also, I've been trying drinking only small amounts of coffee: 10g beans + 160g water that I make myself every morning with pour over. And it's great! I can definitely feel it, but I don't get jittery/anxious/unable to focus like I used to gulping down big cups of coffee.
I personally like reading in different countries.

It sounds silly, but I really do. I toured ireland by bike with a friend of mine (so I wasn't alone) and there were a few times we split up and went off onto different paths, then would meet up later. I liked seeing things, meeting other people, and finding little used bookstores to sell of my previous book and buy another. Then I'd find a little cafe or restaurant and read a little.

I guess that's mostly just to say that you can really do whatever you enjoy normally for fun; sometimes it just feels better doing it in a different location, around a different culture. At first I thought "man, I wasted my money flying out here to read" but then I realized that I really liked it, and so, who cares? It was great.

I agree with the sibling post, also. I spent about a month in Thailand on a grand or so. We went all over the place. Chiang Mai was my favorite area, personally. Lots of culture, and lots to see all over, though.
Is there any indication that a hidden service marketplace was used to buy this?
There are quite a few tenkeylenss or 60% boards that exist for this very reason.
I can't help but to point out the irony of a post complaining about grey text, being... in grey text (referring to the downvotes)
Wow, that ball joint is pretty ingenious. Thanks for sharing.
TIL I am part of the "older generation". Kids today don't know to leave a jacket on a chair or movie theater seat to claim your territory?

Regarding the original question, the couple that arrived early should have "claimed" the two empty chairs by placing jackets or some other items on them. Failing that, they should have been alert to the "older" man who put his jacket down on it and immediately stated that the seat was already taken.
Hire some Chinese folks?
I think that is an implausible level of optimism about the ubiquity of self-driving cars.

Building for a mixed-used future, with public transit serving a lot of people's needs for the next 30-40 years, and self-driving cars potentially starting to fill in the gaps in our lifetimes, seems like a far more realistic solution than "do nothing and wait for self-driving cars".
Nice tutorial. :) It is impressive the breath of glslify coverage there is.
Contribute to READMEs
Apps That Let You Call for Free
Ask HN: What software do you use for creating estimates?
Our team bids on a lot of projects every year, ranging in the $50,000 - $1,500,000 range. We have a Google Sheet template that we capture estimates from our various designers, developers, project managers and then throw some formulas on and output our final costs. Just wondering if there is anything better out there with less room for error.
Attitude has a lot to do with getting rich. "Saving money" is one very important aspect of it.

Here's[1] a guy who "earned" more than $100,000,000 but was forced to declare bankruptcy. Sadly, there's a large group of his contemporaries[2] that "earned" a lot of money but have very little to show for it. E.g. Mike Tyson "earned" an estimated $400,000,000 over his career but went bankrupt.

[1] http://www.npr.org/2015/01/27/381724445/how-do-some-highly-p...
[2] http://en.wikipedia.org/wiki/Personal_finances_of_profession...
Fake Diplomas, Real Cash: Pakistani Company Axact Reaps Millions
I think that the moralistic desire to control citizens (as we see with alcohol and drugs) is a pretty different thing, with pretty different effects, than we see with harm reduction strategies (as with cigarettes).

I definitely agree with you that the society-benefit line is mostly a sham. With cigarette and alcohol taxes, the general goal is to discourage consumption. But many US states actively promote gambling, so I think it's a very different thing.
I agree with you - but I've done that myself and still had my seat taken before, even with my stuff on the table, it only got moved to the corner! I only went to the bathroom and back. I told him to get up, he refused, and I only got it back after insisted he give me 10 minutes to finish my work - and then I gave it back to him (he was with his friends so he didn't want to be humiliated). My description of modern "etiquette" was descriptive, not prescriptive.

P.S. I specified older generation because the parent specified "older man".
What is Superadobe?
It's one of my favourite comments ever.
This. I'm not good at making comments on HN but I really agree with this
For those of us uninformed, why is RPM a better format than deb?
RubyInstaller 2.2.2 released
"You never get anything for nothing." [citation needed]
I do it in case Gmail ever goes kaput. I actually use Google Apps so I am basically using Gmail.
> Any increase in productivity will be compensated for by an exact opposite later.

But mammals work that way, we have a sleep and wake cycle because in our average state we would be luggage. Similarly, many engineers have a few fruitful hours a day together with meetings and administrative things where sleepiness and passivity are better than awareness that could lead to aggressiveness and impatience.

My own experience is that colleagues that strategically drink lots of caffeine are good on new development projects. I would be more cautious on other roles as caffeine inhibits peripheral thinking. For example, on caffeine, you may too quickly discard causes in a core analysis or overlook a compatibility issue in a change. You may also make mistakes in new development but mistaken progress is on average better than over caution in new development.
The People’s Republic learns to drive (2007)
Why the fuck would this be downvoted? You people sometimes...

Edit: further contributing to the discussion, more anonymous downvotes. Great.
I think you're making the assumption that the President is the movement. That is simply inaccurate. The President, or any politician for that matter, is a vessel through which objectives are carried out.

I will happily claim that the Progressives are socialists. The standing President is part of that clan within the Democratic party.
From a work perspective:

http://www.hanselman.com/blog/30TipsForSuccessfulCommunicati...
Nice! I'd like to see the technique combined with this one:

https://jakevdp.github.io/blog/2012/10/07/xkcd-style-plots-i...
I'm totally a ChuckMcM fan. Thoughtful, experienced, witty. I always look for his comments in threads I'm interested in and have yet to be disappointed.
In addition to the other comments, I'd say generation of enough clean/green energy to meet our growing needs.
> I wouldn't give a newcomer emacs (or vi) but I would give them the concept of paredit.

This is exactly what I was suggesting
The problem with buses IMO is the planning - most of the time planners take the cheap way out and just let them use the same road resources as cars. IMO a good local transport is completely separate from the roads used by cars, such that congestion on the car road network doesn't affect the second system - i.e. you always get a real alternative. Having one lane for buses, taxis and ambulances would be a pretty good solution, but that's usually not how it works out. Also, you have to look at the whole system in terms of how much surface space it needs - in any reasonably dense city you soon start to need to go either underground or stilted. Railways have a much narrower footprint due to their efficiency - so if you can make them reliable (which is clearly doable, see Japan and Switzerland as examples), it's just a more space saving solution, thus you need to tunnel / stilt less.
Sure, but real professional gamers are few and far between. It would be a stretch to claim that their fairly unique peripheral needs are the reason why wireless keyboards are scarce in general. No — I think it's exactly the scare-quote professional gamers who scoff at things like wireless keyboards and keep them from becoming popular.

I didn't write serious or hardcore because I was responding to the language in the parent post. And I mentioned SMB because it's a game that really tests your reflexes.
The Perils of Function Scoping
Last I used NOD32 (~2 years ago), a username and password were required to activate as well as download updates.
Well, I don't know about the "older generation", but I grew up being taught all throughout life to not leave any of my belongings anywhere unless I want them to get stolen.

Whenever I'm out somewhere with someone else and they set anything down on a table (jacket, hat, notes, wallet, anything) and get up to use the restroom, they say, "Make sure no one takes anything." I say the same.

I'm not sure if this is just a generational thing that follows from "stranger danger" or what.
I think there's a big difference between moralistic approaches and harm-reduction approaches. Honestly, I couldn't give a shit if people gamble. I just care about the harm of addiction.

So as far as I'm concerned, gambling should be legal, as I don't want addicts to ever worry about coming forward. And if somebody wants to be the office bookie as long as he pays out every dollar he takes in, hey, have fun. But the moment somebody has a profit incentive to hook people and keep them hooked, I think we've created a very dangerous situation.

This part, though, I take issue with: "Basically addicts will find a way to gamble whether it's banned, discouraged, organized, or legalized." That's somewhat true for addicts not in recovery. But I think it ignores people in recovery, those getting started on recovery, and those with addictive potential who aren't yet addicts. For those people, availability all matters a lot.

We've managed to reduce smoking a great deal without black-market tobacco farmers springing up. There's no reason we can't do something similar with other addictive products.
> Still think it was 'cosmic rays' on SKS's machines?

Just FYI, this kind of stuff seems to have been done before, with vulnerable keys found:

https://eprint.iacr.org/2012/064.pdf (2012),

https://factorable.net/

(these two are mentioned and linked to from https://blog.hboeck.de/archives/872-About-the-supposed-facto...)

And (off-topic) if you are wondering why some of your recent comments are being downvoted so much, it's probably because of the tone (saying things such as "good job repeating my research" when work of the same kind with results of the same kind had been done before (see above.))

Still an interesting result and curious re. SKS servers (not) checking subkeys etc...

also https://news.ycombinator.com/item?id=9562170
I agree with your comments in the second sentence of your second paragraph.

However, you're moving the goalposts. You said: "So [RMS] thinks emails can't be spied on [because he said 'One consequence of <my internet browsing> method is that most of the survellance methods used on the Internet can't see me.'". My comment illuminated the reasoning behind RMS's use of the word "most" and addressed your misunderstanding of the same.
so what can you make up from the decoded gsm traffic? All I see are non meaningful "paging" or some technical terms.
Well, it's not like anyone's here to bitch at us for being off-topic anymore.. ?

Any ideas, then?
Jak & Daxter the whole engine was lisp based.

As for the arguments that you can't interface with others because they don't know lisp and there aren't lots of libraries that's true of every language at some point in their lifecycle. There might be other reasons that's never happened for lisp or it might just be that no one has successfully made a concerted effort to get it there?

Maybe one of the LLVM based lisps would help a transition or at least let people try lisp on part of their C/C++ code base
The Alcatel C1 is MT6572-based so should be easily rootable and unlockable.
there are trail cams that do this and more...what am i missing?
I use Tree Style Tab for this, although I hate the actual tree functionality - it just happens to be the only reasonable vertical tab solution I've found. Unfortunately, it seems to get a little bit laggy with more than a couple hundred tabs.
No they weren't. There was zero C/C++. Source Me. I worked on them
it was a wtf, literally!
Letchworth is a Garden City. Brasilia is a "towers in a park" type Modernist city. You're interested in "towers in a park."

Historically, cities like Brasilia were designed around the logic of the car. For example, most roadway intersections feature over and underpasses, cars are completely segregated from pedestrians. By most accounts, it doesn't work so well.
Ironically, Chrome on Android handles this better than Chrome on the desktop. I have 15 tabs open on desktop Chrome right now, and it's getting a bit cramped. My Note 4? 33.
I'd even say in US politics there is no left at all, there is only right: liberal right, conservative right and extremist right.
They neglect to mention the benefit of independence. Many people, assuming they can do it without significant expense, like the idea of not being reliant on a grid. Also, while they're redistributing subsidies, how about redistributing the fossil fuel subsidies towards solar and wind.
Been using these for a long time but never realized that there's a technical term. Closure and callback functions are the terms that I know of about returning functions from and passing functions to other functions.
Oh, so this is why it suddenly popped up again in my twitter feed...

I'll say here what I posted there a moment ago: Seven years after making a fool of myself on Hacker News, I wonder if my epitaph will be "Yes, I won the Putnam".
It's realism about the fact that you aren't going to drop in public transport everywhere in the US in anything less than several decades anyhow, in the face of the realistic opposition you're going to encounter to such a plan. It's fundamentally a hard sell you're trying to make for a lot of people, to give up the freedom to go anywhere they want whenever they want in exchange for going where the public transportation is going when the public transportation is going there. In a dense city like NY that may not be much of a tradeoff, but in huge swathes of the US that's an attempt to sell an incredible shrinkage of personal power to feed the moral goals that are, statistically speaking, not even necessarily particularly shared by the people being asked to give up their cars.

Quite a lot of people don't live in the big cities, after all.

On the other hand, when you can either own a car for all the money the public transport people are generally complaining about, or you can use a self-driving car service that still takes you anywhere you want, anytime you want, for less than you could own a car for, you've got a much easier sell.

If self-driving cars don't happen, well, frankly, give up your public transportation dreams. Self-driving car transport networks the only realistic path forward. Perhaps there are alternate universes where everything worked out peachy, but that doesn't provide you any help moving forward here.
This mini-essay tour of finance, Keynesian economics and other tangents by lionhearted: https://news.ycombinator.com/item?id=843170
Odd that none of your parent comments mentioned designers, yet you felt they were being criticized.

Why does looking like this (rms's website) equate to unusable? It is unfancy, unadorned, a bit unorganized, yet it is highly usable. The default unstyled look of the Internet was "designed" to be highly readable: paragraph blocks, list items, contrasting and underlined links, line separators, etc.

You've already been corrected on your derogatory use of hipster and why reading mode is just a kludge. What I wanted to point out was that the "CSS hasn't loaded" moment is a symptom of a broken Internet. The layers added to the Internet fail, they fail noticeably, they fail ungracefully, and people are annoyed by the failure.

It's not about designers vs. hipsters vs. raw HTML, it should really be about adding layers to the Internet in a way that isn't so broken and/or breakable. The fact that you can't zoom some websites on mobile means someone is breaking the Internet (either the page creators or the mobile browser devs). The fact that your browser can refresh a page with unsubmitted input and lose your work means someone is breaking the Internet (again, it's a conspiracy of page creators/designers and browser devs).

No, the real problem is when people invent new layers and extensions that aren't robust and don't support all the functionally of the old layers, but everybody adopts them because new and shiny and they allow some new features. Since you bring up designers, I will say that all too often the designers are the ones pushing these new extensions, without enough consideration for usability and compatibility.
Nobody has suggested this yet, but a co-working space is a great option.

If your company doesn't already have servers you can work from (ie. a VPN), then just buy yourself a $5 dollar server and run OpenVPN on it (and then work from the co-working space).

Also, never work alone and rather sit amongst the other workers. Talk and chat like you would in an office.

On the days when you need quiet and focus, you work from home.

Good luck.