HNHacker News
TopNewBestAskShowJobs

iamsohungry

338 karma · joined October 28, 2015

submissionscomments
iamsohungry··on Python List Comprehensions Explained Visually
Are Python List Comprehensions really hard for people? I feel like my memory of learning them was I saw one in production code I was modifying, intuited what it did, pulled open a REPL and played with it for a bit, and then moved on.
iamsohungry··on Python List Comprehensions Explained Visually
> Plus double-nested (I'm not sure what you'd call it) comrpehensions seem to be backwards.

Why are you even doing this? This isn't an acceptable way to write code.

> Plus it's so verbose and horizontal, half the time if you want descriptive names you're gonna write something so verbose it doesn't even make it that much more readable.

If your list comprehension is more than 80 characters wide, it's not because list comprehensions are bad, it's because you did something too complicated. Pull it into a function and name it so people know what the hell you're doing.

iamsohungry··on College enrollment rates are dropping, especially among low-income students
We can. We don't. Yet.
iamsohungry··on How Dave Chappelle Is Creating a “No-Phone Zone” for His Chicago Shows
As a viewer of live shows, if this decreases my chance of having my view blocked by some asshole who has decided to view the whole show through a grainy 3x5in window instead of experiencing life, I'm all for it. When I go to this sort of thing, I try not to bring my phone anyway.
iamsohungry··on How Dave Chappelle Is Creating a “No-Phone Zone” for His Chicago Shows
> Ah, starting an arms race, eh. A GoPro under your shirt (poking out between the buttons) would work fine if you aren't even trying, and there are plenty of more stealthy solutions that a visit to Amazon and $10 will get you.

Eh, at least that doesn't block my view when I'm standing behind you.

iamsohungry··on How Dave Chappelle Is Creating a “No-Phone Zone” for His Chicago Shows
> At first I thought, "bummer," and although I would love to have pics from that night

Honestly, when I hear this, I think, "Why?" You want block the views of the people behind you and watch Prince on a 3x5in screen when he's physically right in front of you just so you have some grainy, poorly-lit photos of your own instead of looking at the professional photos of Prince that are available online? It harms the experience of other fans. It harms your own experience. It harms the performer's bottom line. There's literally no upside to this.

Practice some immediacy.

iamsohungry··on Why I Still Use Python for High Performance Scientific Computing
> My only question about the 2-tool combination is whether there are better combinations. Python has all the libraries and community support so any alternative would need similar. Maybe Node?

Absolutely not. Python has a much more mature set of libraries which are much better designed, better tooling, and a much more reasonable type system, and the community has only recently begun to be polluted by Web 2.0 "move fast and break things" mentality. The Node ecosystem is built on that mentality, and while outlier developers at the front line of the JS community are able to be extraordinarily productive in JS/Node, developers building user-facing programs just get bogged down in breaking changes in dependencies, buggy and poorly-designed 0.x libraries, untraceable framework code that prioritizes configuration over convention, and intractable errors caused by a broken type system (this final issue is significantly improved in ES6).

Source: Worked in Python 2.x for a few years, worked in Node for a few years, currently work in Python 3.x and Node (general design is to limit Node to compiling and testing the browser-based part of our product). JS/Node is maybe 20% of our code, 20% of our features, 50% of our dev time, and 80% of our bugs.

iamsohungry··on A letter to our daughter
> Not to mention he has never attempted to make Internet.org anything close to a monopoly.

Do you even know what Internet.org is? They're providing free access to a subset of the internet that Facebook controls, while forcing people to pay if they want to access the internet as a whole. The entire reason Internet.org exists is to create a Facebook monopoly on data access in developing countries.

Your entire comment is naive.

iamsohungry··on Leaked Documents Reveal Police Department Planted Drugs for Years, DA Complicit
It's worth noting that it's not enough for police to passively not cover for each other's crimes. It's the job of police to actively investigate crimes. When corruption is so rampant, any police department which doesn't have a well-funded internal affairs bureau with extensive prosecutorial support is not doing its job.
iamsohungry··on Detailing the CMU Tor Hidden Services Attack and Tor's Response
Do you have a source on Tor being funded by the CIA?

It's disingenuous to say that Tor reacted only after being deanonymized personally:

1. It was well known that Nick Mathewson worked for Tor long before this attack.

2. Tor added code that allowed them to detect the attack before they knew their IPs were deanonymized: that's the only way they found out their IPs were deanonymized.

iamsohungry··on Configuration Management Software Sucks (2012)
Most of the problems you're describing with bash are symptomatic of larger problems:

> The problem with bash is if you have different operating systems spread around, like CentOS 5, 6, 7 in our case, you wind up with a whole bunch of conditions figuring out what to do for specific OS versions.

This is a very poor approach to this problem in this situation. You're supporting 3 systems. It's not unreasonable to maintain 3 branches for 3 branches of the code, and with tools like `git` it's easy to backport features when it's possible without code change. This also gives you better measurement of the cost of maintaining support for legacy systems so you know when it's time to pay the cost of upgrading. And when you do upgrade, you simply stop patching the CentOS 5 branch, and you're not left with a bunch of if statements in your active codebase testing for a system that you no longer care about.

SaltStack might do better when targeting, for example, many many different Linux distros. But even then, it only solves a 99% use case, and the tools are opaque enough that fixing the 1% may take just as much time as writing more portable bash.

> There's also the non-DRYness of "a whole bunch of bash scripts." You could maybe figure out some sort of include system to avoid repetition, but it's bash... it won't be pretty.

It's really not that complicated or bad. `source` is typically all you need.

There's also a larger antipattern here, which is that if your configuration is so complicated that you're feeling pain, you're probably not curating your dependencies very well. Configuration isn't the worst way in which you're going to feel this pain: if you're letting so many dependencies into your system that you're having trouble installing them all, you're almost certainly installing a lot of bad libraries and you're going to find that you also have trouble implementing features using libraries that are poorly-designed. I'm definitely not espousing a blanket fear of NIH code, but if you don't take care on which dependencies you decide to include, you're going to end up with a lot of problems.

iamsohungry··on Configuration Management Software Sucks (2012)
Really, the best experiences I've had with this stuff is just writing plain old bash.

The problem with most of the configuration management tools is that you're inherently not trying to "configure" anything: you're either installing or upgrading stuff that's just not there, which is inherently a programatic task. Configurations for a configuration manager end up being a lot of calls out to basic bash programs anyway, except now they're written through interfaces that are only marginally different from XML, and you end up having to submit a patch to an upstream recipe to just get it to add an obscure flag. Gross. Have you forgotten that you're a programmer? Write a program, for Christ's sake!

iamsohungry··on Why Epicurus Matters Today
> Pleasure as an end in itself seems both circular and ultimately extremely dull.

If it's dull, it isn't pleasure.

iamsohungry··on Sneaky Microsoft renamed its data slurper before sticking it back in Windows 10
If you actually understood the words you were saying, you'd realize that the topic of this thread is that users are the product even though they've paid for the software.

The solution to this problem is software that is free as in freedom, not snarky comments in support of MS.

iamsohungry··on Ca-certificates: removal of SPI CA
> Let's Encrypt only issue certificates that are valid for 90 days[0] because they want you to automate renewal by having your server automatically run their script which needs root privileges

The provided script:

1. Is FOSS. You can audit it before running.

2. Is an example, not required. You can write your own script from scratch if you want, or even do it by hand (although this would be admittedly tedious to do every 90 days).

> and they use Google as the gatekeeper of who is allowed a certificate[1].

That's a drastic oversimplification. The Google Safe Browsing API lists phishing and malware sites. I can see some concern that Google might mark sites as phishing or malware for political reasons or something, but so far I know of no cases of that happening. In fact, high-profile sites that do contain a lot of malware have been left unmarked: see Pirate Bay, Kickass Torrents, MegaUploads. I definitely have concerns about censorship, but so far I see no evidence that's happening. If you have such evidence, I'd be very receptive to seeing it.

> We are still short an option that issues certificates that are valid for 1+ years

That's not something I want, or something that's good for the security of the internet.

> can be used for any purpose and doesn't pass every request to a corporation for approval.

As long as the limitation continues to be on malware, I'm fine with it, and I'm not sure why you aren't.

P.S. To be clear, I know very little about StartCom and am not defending or attacking them.

iamsohungry··on The Yale Problem Begins in High School
> If you refuse to resign, refuse to apologize, and refuse to listen, they just go pound their fists uselessly, and you can get on with your life.

Or, you can get fired. You don't have to look far for examples of this happening. I don't support radical feminism, but I'm also not ready to martyr myself over it if that can be avoided. Losing your job and social standing does nobody any good.

> > for men to control the public discourse and women be trivialized? That's not what I want. I want actual equality.

> Strawman, and you know it.

You literally said:

> > feminism isn't one set of ideas, but a diverse set of ideas

> Irrelevant. What matters is the people who have social currency and power today, and they're the toxic variety of feminist.

You literally said that all the feminists who are not the feminists you're railing against are irrelevant. If that's a strawman, it's a strawman that you said, and I can only respond to what you say.

> Today's feminist errors in assuming that unequal outcome implies unequal treatment. That's the part where feminism diverges from reality.

"Today's feminist" as you claim, a single entity, does not exist.

> It's not useful to suggest that I must either support feminism (whatever you say it means) or support male superiority.

That's not what I'm saying. I'm saying that it is equally not useful to suggest that women either give up the title and role of feminism or support female superiority.

iamsohungry··on The Yale Problem Begins in High School
The feminists you are dismissing as irrelevant have every bit as much social currency and power as the ones who are vocal, they just aren't using it as often, which is why it's so short-sighted of you do dismiss them. The public debate on this isn't going to be won by men dismissing feminism: that's just going to radicalize more feminists. And even if it could be won that way, that is that what you want: for men to control the public discourse and women be trivialized? That's not what I want. I want actual equality.

More likely, the path to reason is for reasonable feminists to hear how important this issue is from reasonable men, and start taking our side.

It's political suicide for a man to publicly stand against radical feminism. It's not political suicide for a moderate feminist to stand against radical feminism.

iamsohungry··on The Yale Problem Begins in High School
> No, feminism has turned into an anti-male movement.

If you're incapable of recognizing that feminism isn't one set of ideas, but a diverse set of ideas, you're just as bad as those who espouse the Duluth model. You accuse all feminists of declaring men guilty until proven innocent, but in doing so, you're declaring all feminists guilty even despite the fact that I've already shown some of them to be innocent. And what's more, you're alienating a lot of feminists who would be on your side.

> That idea is not consistent with my experience.

Which is why I tried to expand your experience by quoting major feminist writers. Do you not realize that your experience is limited?

> These days, every time I hear someone arguing against equal treatment, against free speech, against due process, and again diversity of opinion, that person is a self-proclaimed feminist.

Every time I see a rapist on the news that person is a self-proclaimed man. If you're going to (correctly) complain about being judged by a few poor examples of our gender, you should recognize the hypocrisy of judging all feminists by a few poor examples of their movement.

iamsohungry··on The Yale Problem Begins in High School
> They also have no sense of humor and college administrators as a group have no sense of humor or perspective, and they're chronically worried about accusations of indifference or insensitivity (which are themselves as good as convictions).

I don't think this is where I want to draw the argument. If someone makes an insensitive joke, it's true that the social justice movement often reacts disproportionately, but I'm not that worried about people's right to make insensitive jokes. I'm much more worried about the people who are sharing opinions that are perfectly reasonable and necessary to the public discourse and are being squashed. Erika Christakis presented a reasoned argument at Yale for free speech, and people were calling for her and her husband to resign. This isn't a matter of lacking a sense of humor, this is an active campaign to forcibly silence discussion.

iamsohungry··on The Yale Problem Begins in High School
When that happens, I'll be malicious and dismissive toward feminism. But that hasn't happened yet. There are more feminists who are reasonable people than there are vocal crazies.

Some things said by feminists:

* "Men weren’t really the enemy — they were fellow victims suffering from an outmoded masculine mystique that made them feel unnecessarily inadequate when there were no bears to kill." -- Betty Friedan

* "Women and men communicate differently, often on entirely different planes. But just as men have failed us, we have failed them. It has been one of our great collective female shortcomings to presume that whatever we do not perceive simply isn't there, or that whatever is not communicated in our language is not intelligible speech." ― Norah Vincent

* I can't find the reference, but I seem to remember that the first person to widely spread the idea that it's possible for men to be raped was a feminist.

Remember that the college kids at Yale are exactly that: kids. I remember a time shortly after I became an atheist where I was angry at everyone religious for wronging me. It took me a while to realize that many religious people weren't horrible people, they were just humans, who were doing the wrong thing while trying their best to do the right thing. College students who are newly finding their voices are defining the conversation here, but they're not bad people, they just haven't realized yet that the people who they're attacking are just humans, too.

iamsohungry··on The Yale Problem Begins in High School
I don't think the comparison of balancing viewpoints in a classroom is really comparable to the fair and balanced media argument. In a classroom, you're dealing with a classroom full of a limited number of people who need to be able to state and defend their ideas. It's unlikely that someone in such a classroom will bring up whether the moon is made of the body of Vince Foster, but if they do, students should be able to make a reasonable decision on how to respond (in that case, it requires little response beyond polite derision).

Dismissing something as a red herring without even bringing it up in a classroom avoids a key responsibility of an educator: students need to be able to recognize red herrings and respond to them as such. Red herrings occur in the real world. The role of the educator is not to dictate accurate information, it's to teach people how to critically process information.

The news, on the other hand, does have the responsibility to dictate accurate information. As such, the only opinions that matter are the opinions of experts, and those should be subservient to data. "Fair and balanced" doesn't often matter because if there are really two sides to the issue, the "information" isn't accurate enough to be presenting to an inexpert public anyway. Debates should happen between experts based on the data, without politicization, and news should report the results.

iamsohungry··on The Yale Problem Begins in High School
> When disagreeing with a particular popular liberal thought is so taboo, the people who want to vocalize their dissent will find strange bedfellows. In this case the unabashedly misogynistic.

That's not something I'm going to do. I don't subscribe to "the enemy of my enemy is my friend" and I want nothing to do with misogyny. We're not doing ourselves any favors by associating with terrible people just because they agree with us on some issues.

iamsohungry··on Montana Standard newspaper plans to retroactively unmask anonymous commenters
This is both incompetent and dangerously irresponsible.
iamsohungry··on Submitting Emoji Character Proposals
You're entitle to your opinion, however wrong it may be.
iamsohungry··on Submitting Emoji Character Proposals
I'm sorry for mistaking your statement as an attempt to contribute to the conversation. It might have been clearer that it was a joke if it were funny.
iamsohungry··on Slack is Down
Yeah, I don't see a need to have more than one server. Even at gigantic companies, you only need single servers per team. It takes very little to restart a server:

    sudo service ircd-irc2 restart
iamsohungry··on Is Small Business Banking Next in Line for Disruption?
No. [1]

[1] https://en.wikipedia.org/wiki/Betteridge%27s_law_of_headline...

iamsohungry··on Not Even Scientists Can Easily Explain P-values
No, if the null hypothesis is right that implies that the hypothesis is wrong, but the implication relationship does not go the other direction.

Consider an experiment where your hypothesis is that cold temperatures cause the common cold. This is a good example for a thought experiment because we "know the answer" in a way (there have been a lot of experiments on this). The null hypothesis in this case is that cold temperatures are uncorrelated with incidence of the common cold.

You place people in isolation in cold areas and a control group in warm areas, and study how many get the common cold. None of the people who didn't already have colds get the common cold: because they are in isolation and the common cold is caused by rhinoviruses (which they can't get because they are in isolation), you get exactly the same results.

This disproves the hypothesis, but it does not prove the null hypothesis, that cold temperatures and the common cold are unrelated. Cold temperatures are, in fact, related to the common cold.

Try a second experiment: you place people in groups of five in cold areas and in warm areas, and discover a moderately high correlation between cold temperature and incidence of the common cold. This disproves the null hypothesis. But the simple hypothesis that cold temperature causes the common cold has also been disproven by your first experiment.

The reason for this is that the correlation between cold temperature and the common cold is a dependent correlation: given that rhinovirus is present in the system cold temperature is correlated with incidence of common cold (rhinoviruses reproduce ideally at temperatures significantly lower than human homeostatic temperature).

The null hypothesis is not just a statement that there is no independent correlation, it's a statement that there is no independent or dependent correlation. As such, the null hypothesis is an extremely broad hypothesis which is impossible to practically prove. This is why there's such a focus on finding correlations rather than finding non-correlations: you aren't going to prove the null hypothesis.

iamsohungry··on Slack is Down

    sudo service ircd-irc2 restart
I'm pretty sure SSH-ing into the server and executing that command costs less in productivity than waiting for Slack to fix their issues.
iamsohungry··on Slack is Down
Meh, I'd rather have one server, honestly. It takes two seconds to restart an IRC server.
← PreviousPage 2 of 6Next →