skysight-inc/HackerNews huggingface dataset:
If it's only 20 students, maybe just ask them to come by your office during office hours. Most of my professors would just post grades in the hallway using student IDs, but a few did it this way. It gives you a chance to connect with the students and give some personal feedback. At the graduate level this can be helpful not only for them, but also for you since these students are people you will likely work with later in industry and academia.

If you are not in your office much, then I would just offer the GPG option. Sending 20 e-mails will not take very long. Out of the 20 students, I bet only half of them get their act together and e-mail you a key, so it's really more like 10 emails that you would need to send.
Why is it so difficult for people to understand that regional borders are more often than not a human concept? You do not live in the United Bubble of America!

That having been said, wasn't there an article yesterday about how 30% of Californian pollution comes from China? Or a few weeks ago that radiation from Japan is hitting our shores? This is not what they meant with "Think locally, act globally."
The point is not just "listening to people" (which is important too). The main point is "putting yourself in your user's shoes". I.e. one has to think through various use cases from the perspective of the actual user. That's very important in any development if you care about robustness, quality, usability and even security.
CocoaPods: Repairing Our Broken Specs (Git) Repository
when there is a believable story about them getting socially hacked & they have a sea of clients they are trying not to lose...
In this case,

{k: v for k, v in zip(keys, values)}

edit:

As I mention below, this becomes useful when you want to do e.g.

{f(k): g(v) for k, v in zip(keys, values)}
> The average one percenter has a 23% effective tax rate, double the average (which is 12%).

Even assuming that there are no errors or misrepresentations in the material from the anti-taxes-on-the-rich propaganda outfit you cite, even they don't claim that. While they certainly count on people to conflate "effective income tax rate" with "effective tax rate" (or even "effective rate of taxation on income"), they carefully restrict their claim to "effective income tax rate".

Income tax isn't all of tax, or even (despite the name) the only (or, even, for most wage earners, the most significant) tax on income.
I forgot http://www.objc.io/ in my first draft... quickly added it later. Mobile patterns seems similar to pttrns and looks good to... Thanks !
Ask HN: Should we apply to YC, if we are a competitor of a YC Alum? 
Our idea is to disrupt a space, where the leader is a YC alum. Should we still apply to YC? Has anything similar happened before?
The top answer is basically saying:

1. The "Gang of Four" "Singleton" pattern, meaning stateful functionality that is statically available from anywhere, is broken. It hides dependencies and makes it impossible to uncouple the items for testing.

2. However, the idea of an application needing a single instance of an object, whether it be a configuration or renderer or what-have-you, is quite common.

3. Using "dependency injection" allows use of single instances, without the "Singleton" pattern. Which, to clarify, does not necessarily mean the more magical forms of dependency injection found in systems such as Spring, where you simply declare a variable and it is magically fulfilled later. It can also just be a parameter in the constructor of the dependent object.
In my Technical Blogging book I wrote the following on marketing:

--
Correct a Self-Sabotaging Mindset
--

Marketing is bullshit. Marketing is evil. Marketing is everything that’s wrong
with this world. Marketing is the root of all evil. Marketers should be shot.
I have heard all these statements—and plenty more like them.

If you agree with any of them, you are not alone in your dislike of marketing.
I’ve found that technical people, particularly programmers, tend to have a
strong hatred for marketing.

Antimarketing stances stem partly from bad experiences with manipulative
marketers and partly from a misunderstanding of what marketing actually
is.

Wikipedia defines marketing in this way:

"Marketing is the process used to determine what products or services may be of interest to customers and what strategy to use in sales, communications, and business development."

At its core, marketing is about connecting people to solutions. For example,
some people may have an interest in buying an environmentally friendly car.

Good marketing involves identifying this segment of the population, then
devising a strategy to let that portion of the population know about the existence
of your brand-new hybrid car and its benefits (in a style and manner
that will appeal to them).

Though the ultimate goal is to sell a car, marketing isn’t about convincing
people who are not interested in your product to buy it. It’s about exposing
the right product to the right audience. Done correctly and in an ethical
manner, it’s possible to promote without deceiving, manipulating, or forcing
people to spend their hard-earned money on goods they don’t want or need.

It’s important to understand that marketing is so much more than just
advertising. Marketing encompasses countless aspects of your product,
including what you name it before it even exists.

If you still feel that marketing is mostly evil, I encourage you to reflect on the
forms of marketing you already do, perhaps without even realizing that they’re
marketing. Ever applied for a new job? Or dated someone? While you probably
didn’t misrepresent yourself with your future employer or partner by blatantly
lying, you still wore nice clothes and tried to showcase your favorable traits.
In doing so you were marketing yourself.

In blogging, the aim of your marketing is to reach as many people who are
potentially interested in your content as possible. As we’ll see in future
chapters, you may also have related additional goals, such as promoting
yourself professionally, marketing yours and other people’s products, and so
on.

Like all tools, marketing can be used for good or in unethical, obnoxious ways.
In this book, I advocate only white-hat marketing techniques that will get
your content in front of the people who need to see it. So if you are the
stereotypical antimarketing developer, please approach the rest of the chapter
with an open mind. I promise that you won’t have to sell your soul.
So if you share something on Paper would it also show up on Facebook? I can't tell if Paper is a new platform/app or just another way of browsing Facebook.
You are right. That there isn't much out there for the "power" users.

We (HelloWallet) are much more focused on holistic financial wellness. But we are working on some very exciting investment-oriented products as we speak.

It still would be interesting to get your perspective if you want to create an account:

https://my.hellowallet.com/PublicHWWebApp.html?p=hackernews#...
> 2. Why is footnote [0] before footnote [1]?

Because Sam Altman is a hacker: http://en.m.wikipedia.org/wiki/Zero-based_numbering
I agree that 'inequality' is too simplistic a concept to adequately describe what the problem is in the US. I believe the real problem is more that the stresses a poor person must contend with to hold down even the smallest apartment, buy food, and in many cases maintain a car, are extremely high compared with middle-class people. It's that the economy is skewed in such a way that makes the whole game seem unfair to a huge fraction of the population. You're right that the basic standard of infrastructure is higher in the US, and that most people here enjoy those benefits, so there's a relative effect there.
Showing my Bitcoin address during SuperBowl
A friend is going to the SuperBowl and has some pretty decent seats. Lets hope he gets seen. how much do you think we can make?
But the whole point of the singleton pattern is to solve these exact issues. To enforce a single entry point that is 1. Lazy evaluated to ensure initialization.
2. Preferably locked to solve threaded access.
3. Instance based to ensure you are manipulating an object vs truly static variables.

I honestly think there's a huge potential difference between

CreditCardProcessor.init()
CreditCardProcessor.charge(number, amount);

and

CreditCardProcessor.getInstance().charge(number, amount);
Mentioned this link in another story, but relevant here as well: Americans are surprisingly unskilled at judging where they stand in the income distribution, and unskilled at predicting where they'll end up. 39% of Americans believe that they either are or one day will be among the top 1% [1]. Out of the people who believe they are currently in the top 1%, 95% of them are wrong.

Also, people don't realize that relative wealth/income matters. When someone else gets richer and you stay the same (or increase at a slower rate), you're worse off. The increased average wealth/income increases demand and makes things more expensive for you. When LOTS of people around you get richer, and you stay the same, well, look at what's happening with the Bay Area's housing prices.

Take the above two claims, add in a scoop of "American Dream" mentality, and it's not hard to understand how so many Americans don't find the current situation troubling.

[1]: http://www.nytimes.com/2003/01/12/opinion/the-triumph-of-hop...
>> My interviews are very practical

Cue list of the most obscure js tricks and gotchas the interviewer knows.

Nice one.
Bootstrap has made my life monumentally easier for developing internal apps, yet I still feel like something isn't perfect. When developing mobile pages, I feel that the responsive interface is still not mobile-friendly enough for CRUD apps.

I've played with RatchetUI (Which has Bootstrap members on the team), Semantic-UI, and Foundation, but the more-widespread adoption of Bootstrap keeps dragging me back in.

I guess it can't be all things to all people. I just wish there was a more widely-adopted mobile-first framework.
This is just elitist bullshit.

Living on minimal wage is quite different in Detroit and San Francisco. I think author has debt for next 100 years thanks to elite college and $1M house.
To quote either pragmatic programmer or the gang of four (I can't remember which), singletons make sense when, if the singleton doesn't exist, it doesn't change behavior through the application. So for example, setting up a logging singleton probably makes a lot more sense than adding a logging dependency through every class in your code.

But conversely, if the behavior you are putting in your singleton actually has effects, and can be deemed a dependency on the code that uses it, then it makes sense to make that blatant by passing the reference into each of the dependent modules, if only for unit testing, clarity and mockability.
This is really exciting: using salt water in an aquaponics system to produce fish and biofuel in the deserts.
I'm saying that having a porcelain throne while someone else has a solid gold one is better than pooping in the sewer even if the rich man does the same thing.
In case anyone is wondering, Google uses Blueshield of CA to process their insurance claims but internally pay with their own funds. Google ultimately has the final say on how claims will be paid (although they rarely deviate from Blueshield's plan configurations). A rare hybrid approach...
Power law distribution. A small percentage of the content gets a large proportion of views and attention, because it's the best content that everyone wants to see. This particular article is probably something like the top 1% of the top 1% of all the internet content about programming.
Bootstrap 3.1.0 released
Really? I haven't seen someone wear a bluetooth headset in public in years.
Secret – Share anonymously with your friends. Speak freely
CloudFlare DNS is simple, fast and flexible
Interesting philosophical points.

To me personally, testing for 'truthy' and 'falsy' values, or relying on exceptions rather than checking values in advance, feels like sloppy and imprecise programming.

A string being empty or not, or an array having items or not, or a boolean being true or false, are all qualitatively totally different things to me -- and just because Python can treat them the same, doesn't mean a programmer should take advantage of that fact. Sometimes it's possible to over-simplify things in a way that obfuscates instead of clarifying.

When I read:

if name and pets and owners

I have no intuitive idea of what that means, of what's going on in the program. When I read

if name != '' and len(pets) > 0 and owners != {}

I understand it exactly.

But by this point, I've come to understand that, for a lot of people, it seems to be the opposite. It seems to be more of a philosophical difference, not right/wrong.
Module update for EasyPHP DevServer 14.1 : PhpMyAdmin 4.1.6
Module update for the WAMP Server EasyPHP DevServer 14.1 : PhpMyAdmin 4.1.6 (bugfix version). The module is available here : http://www.easyphp.org/modules.php
The irreplaceable benefit of ivies, and especially Harvard, is getting an easy entry into established old-boy networks.

It sucks for individuals who don't get the opportunity to get this ticket to OBNs plus a good education, but for society as a whole, it's good that not everyone gets to go to Harvard. Universities should be part of their communities, not ivory towers. Students should come out of them willing to help their communities, not move to NY or SF and cash out quick. For an individual that's great. For society, it's mixed: sometimes the individual cashes out because they
ve found a cure for cancer or a better way to grow food, but sometimes, because they played Soros with a country's currency.
The definition of "effective tax rate" is what they actually paid.
With New Anonymous Social App Secret, the Merit Is in the Message
I'd disagree, as

dict(zip(keys, value))

is more concise, doesn't introduce extra variables, and doesn't repeat itself, and explicitly names a dict rather than using a symbol.
http://www.youtube.com/watch?v=3WOpb8PrrSc

and

http://www.youtube.com/blogs/mobilitywod

starting with 10 minute squat test: http://www.youtube.com/watch?v=7XwKnk16Zbs

You're welcome :) Life changing.
Racing hasn't been about the raw ability of bleeding-edge automobiles for a really long time. Most racing leagues are designed to create enough parity between the different cars to keep driver ability involved as a big factor.
Lore has it that in the golden days of IBM, Casual Friday meant you could work with your suit jacket unbuttoned.

While we're calling out our favorites, I'll nominate Prolog. I know nothing about Prolog but that entry makes me laugh every time. "His goal is to create a language with the intelligence of a two year old. He proves he has reached his goal by showing a Prolog session that says "No." to every query."
It's more like extrapolation from a known set of data points. PayPal has a certain history. You can look up what's gone down in the past, and based on that, the accusations fall right in line with the sorts of things PayPal has historically done. At this point it seems far more likely that PayPal did in fact do what it's accused of than that it didn't.

If PayPal is in fact telling the truth (and that's a big if), then the question becomes where did the hacker get the last 4 of the CC from? GoDaddy has confirmed the hacker had a large amount of info, including presumably the last 4 of the CC when he called them, so somewhere in this whole thing someone gave that data away.
I think your getting downvoted because people insert extraneous details all of the time, and it's not a big deal. Telling people what they can and can't say, however is rude.
Software Engineer (iOS) medtech
Thats specifically only income tax. At under $117k, people are paying 12-13% in social security; at the high end it approaches 0% thanks to the hard ceiling. Its kind of disingenuous to compare taxation on high earners vs average but ignore regressive taxes.
I don't see how you screwed up. You simply encountered laws of nature :)
One issue to be thought of is if he tells how he hacked the accounts, it would become difficult for him to hack some other accounts in the future. But I have found out that he has a habit of giving out advice to people. I have done some searching and found out (hopefully) who he is.

A simple google search for the email swiped@live.com revealed this link http://mydomaintest.com/index.php?query=getgamesfree.net with owner douglas

A password reset on that account shows the following accounts listed. do * * * @gmail.com do * * * @aim.com

A password reset on aim.com for user name douglas(just guessing) also revealed the email d * * * *8@froze.org

Searching for the name douglas parmele and 5167, brenda gave a result http://welfare.im/dox/index.php?name=communist

There is a reference of froze.us in the dox.

Here you get his hackerforums.net profile http://www.hackforums.net/member.php?action=profile&uid=1399...

search for his posts and you see most of them are selling novelty twitter and other accounts

http://www.hackforums.net/search.php?action=results&sid=953a...

Here he gives out advice on securing accounts. http://www.hackforums.net/showthread.php?tid=3610513

You have to have an account on hackforums.net to view those links.
As an implementor of Hy (a homoiconic lisp frontend to Python) I've found certain Python idioms to be rather infuriating of late.

In particular:

>>> 0 == False
True

Which makes the idiom of testing truthiness quite annoying in parsing code such as:

def is_digit_char(s):
""" Return a parsed integer from 's'."""
try:
return int(s)
except (ValueError, TypeError):
return None

Which is harmless enough except that as a predicate it sucks because parsing "0" will return False in a context where I'd rather know whether I parsed an integer or not... which leads to non-idiomatic code.

This is mainly because True/False are essentially aliases for 1/0 and as such won't identify so:

>>> 0 is False
False
>>> 0 is 0
True

So it's important to remember another Tim Peters-ism: Although practicality beats purity. As read in the Zen of Python it seems he's referring to special cases which this might be.

As a shameless aside, you should see what we're working on in Hy. There will likely come a point where we'll be able to do kibit-style suggestions of idiomatic transformations to your Python code.

Update: I ran into this while trying to write token parsers for a parser-combinator lib in Hy.
Its pretty much how 'sitting' worked before the advent & ubiquity of chairs
$21.6 million in counterfeit NFL goods seized ahead of Super Bowl
Think low tech, you don't need or want computer software. In class, ask every student to submit a 'handle' (which can be any identifier they want), and a 'grade offset', which is just a random number in the range of grades (say 0-100 for numeric grades). Then you publish an email/webpage/office door posting with a list of handles and corresponding ((grade - offset) mod 101). Figuring out the range of letter grades is a little harder on specifics, but still straightforward. This also allows students an explicit opportunity to not opt in and arrange other methods instead.
>"If enough people in a functioning democracy think that it is a good idea for those who are getting more, to pay more, then it would become law"

This is how western democracies currently function, though it does not imply that the results are moral or even good.

>"Those people who would have to pay then could either take their wealth and attempt to leave with it (with all the consequences for both parties that might entail), or they can pay the share they are designated, and attempt to make more money with their wealth/connections/etc."

This statement basically says 'take it or leave it', which I suppose is fine, but does not mean that the state which implements high tax rates will achieve its desired results, and this does not speak to the morality of the average voter either.

You seem to ignore my point, which is that people who vote for higher tax rates and increased redistribution of wealth are not actually doing very much to solve any real problem. Voting to raise taxes on the rich demonstrates little personal responsibility, as the voter does not pay to solve the problem, and does not even try to convince others of their moral responsibilities.
Hope is not good enough for me. Just make it happen. :D
Thanks for this write up. I didn't know about enumerate. I never thought of swapping variables as in example 4 either.

I noticed one small mistake in section 9:

d[keys] = values[i]

Should be:

d[key] = values[i]
Brokers-Is Disruptive Change Killing You?
PayPal Angling for Mobile Payment Partnership with Apple
Sorry, I meant after.
>Move to Europe!

If you are starting a technology company you may want to rethink that idea.
Also, we sometimes won't ask questions or talk to potential consumers for FEAR that our "great" idea will be negated.

The excitement of building something, using new technology, solving a problem (whether it exists or not) is exciting. Then you might start seeing dollar signs, or fame, or respect among peers, etc, in your mind. Nobody wants to INVITE someone to shut down those thoughts or feelings.... but we must.

I have a few ideas on my list that I think are really good. But I haven't started building them yet because I know I have to talk to a few people in certain industries first to confirm the ideas are good. They just sit there though. For some of these ideas, I'd rather they continue being a pipe dream instead of talking to someone and possibly have them shot down.

Or maybe I'm really not normal.
In a nutshell, generational GCs works by scanning live data. Thus, anything not scanned is garbage. While the application is running, it also allocates new data.

If you allocate an object somewhere --after-- that area has been scanned, the GC will treat that area as garbage, and then you will have memory corruption, leading to segfaults and other nice things.

While parallel mark/sweep is certainly doable (Java does this) it's not easy to get right.
I always find it interesting when the argument of why people are poor comes up. Usually it looks like this...

"People are poor because they make bad life decisions" - usually comes from the right of the political spectrum

"People are poor because the system is stacked against them, it's not their fault" - usually from the left of the political spectrum.

Like most arguments, the truth is likely somewhere in the middle.
How very Randian of you. I don't imagine that you'd have much luck convincing the hedge fund manager to donate to anything unless they themselves think it is important. And it is very hard to convince them that others have it bad when they have it so good.

Asking the parent to contribute their hard-earned money also seems sort of disingenuous. How do you know they are not doing so? Even if they did, if they are unable to contribute enough (for any number of reasons), it likely will not effect the issue in a large enough fashion.

A Democratic decision is not 'coercion'. If the public decides something is important enough to them to pass a law/change the tax code they are not coercing the rich to pay more. The wealthy could just leave (with all that would entail for both parties) and no longer make their money off/with said public... Or they could stay.
Playing With Toys and Saving Lives
I'm pretty sure the "-" vs "None" meant that there wasn't a truthy alternative to None. More accurate would have been "N/A" vs "None". Not clear on the __nonzero__/__bool__ stuff...