HNHacker News
TopNewBestAskShowJobs

mtoddh

876 karma · joined March 26, 2011

http://www.neekanee.com
submissionscomments
mtoddh··on SendGrid Fires Company Evangelist After Twitter Fracas
If they didn't like being publicly outed for saying this stuff, guess what? All they had to do was shut their mouths.

Well if it makes you feel any better, I'm willing to bet that going forward more male developers will in fact be "shutting their mouths" when there's a female around.

mtoddh··on Benefits matter, or why I won't work for your Y Combinator startup
they will be taking 5 weeks off traveling the world, but they are still getting work done

That's not vacation, that's telecommuting.

mtoddh··on Teach kids to farm, not code.
This - I think a lot of the organic-eating SWPL crowd / upper middle class have a very idealized notion of "life on a farm" and growing your own food. I worked on a farm for six months as a kid and what I learned was that it was exhausting, back breaking work, and hours sweating in the sun all day.
mtoddh··on Bullying has to stop, now.
Here's an idea- start holding adults to the exact same standards we hold kids, and then watch how fast policies change:

Co-worker makes racist remarks towards you: "sticks and stones" speech

Co-worker sexually harasses you: "sticks and stones" speech

Co-worker physically assaults you: "sticks and stones" speech, with added punishment if the victim defends himself

And in each case, tell the adult victim how they should be more empathetic to the bully's lot in life.

mtoddh··on Bullying has to stop, now.
One thing I am never, ever, going to tell my kids is the stupid "sticks and stones" rhyme. That's just to make you feel better, not them.

I agree. Part of the problem is that adults tend to hold kids to a much different standard than they hold themselves. For instance, as an adult, if I'm working in a company where verbal bullying and harassment is a problem, and HR does nothing to address the situation, then I'll just give my two-week notice and move on to another company. Kids on the other hand don't have the option of giving their two-week notice and moving on to another school because of a 'hostile work environment'.

How many adults do you think would stick around at a company if they had to put up with the level of violence and harassment we subject our kids to in schools? And if the only response they got back from management and HR was a "sticks and stones" speech? Forget about it! Which highlights another difference- it's also in a company's own self interest to address these issues seriously, because if they don't, it's gonna effect their bottom line when good employees start leaving. But, what motivation do schools really have- it's not as if their "employees" (students) get to quit if they don't like the way they are being treated.

What does this teach kids? That there is no justice in the world except that which you take by violence?

My son is only two and a half right now. When he gets older my advice to him will be to first go through all of the proper channels in case bullying comes up. Give the system a chance to work, and get some documentation that you did so. And if it does work great. And if it doesn't, a right-cross to the bully's nose is what worked for me when I was a kid. Will this stop the bully from picking on people? Probably not - but it will likely make him stop picking on you. He'll move on to the next victim - one who won't fight back.

mtoddh··on Blank screen if kids yell too much
Yeah, my experience as a father has been the same. When it gets quiet, it may mean your kid is no longer playing with his toys and instead has just pulled up the floor vent to chuck his poop filled diaper into your ventilation ducts. Fun times.
mtoddh··on Two Star Programming
That's the Perl school of thought that basically finished Perl as a language for big projects.

It's a great point, and I hated Perl for this very reason. And I'm sure some of it is my defensiveness since this is how I program. But some of it is also my concern that it might signal, during an interview say, that the candidate might not really have a good grasp of pointers. For instance, given the following snippet of code, candidates that didn't really seem to grok pointers wouldn't see that the append() function could not be modifying the list in main():

  struct node {
    int val;
    struct node *next;
  };

  static void append(struct node *list, int val);

  int main(int argc, char **argv)
  {
    struct node *list = NULL;

    append(list, 4);
    ...
  }
And my preference for fixing such an implementation would be to change append to take a pointer-to-a-pointer:

  static void append(struct node **list,  int val);
with an implementation like:

  static void
  append(struct node **list, int val)
  {
    struct node **ppn, *pn;

    if ( (pn = malloc(sizeof *pn)) == NULL) {
        perror("malloc");
        exit(1);
    }

    pn->val = val;
    pn->next = NULL;

    for (ppn = list; *ppn; ppn = &(*ppn)->next)
        /* find tail */;

    *ppn = pn;
  }
and update the call in main() to append(&list, 4).

But as I said, you make a good point, and I agree that your method is the safer of the two options from a maintainability point of view.

mtoddh··on Two Star Programming
Wow. I tell you- reading through some of the responses on here, I'm feeling a lot more confident about my job security as a C programmer.
mtoddh··on Two Star Programming
If you understood pointers well enough, you would see Linus's version as more readable.

I agree - and as someone who makes his living as a C programmer, I'm sure someone could easily come up with a terse piece of Ruby code that I would view as too clever, and therefore confusing, but which the vast majority of programmers on here would look at and think, "a beginner may be confused by this, but a competent Ruby programmer would not be."

I know some of this comes down to stylistic preferences, and likely some have had bad experiences maintaining code that went overboard with this sort of thing. But I also think that if these snippets of code were being discussed in a forum with a bias towards low-level development, rather than HN, which seems biased towards web development, you'd be seeing some very different responses.

mtoddh··on Two Star Programming
That said, it's actually an excellent C interview question

This was actually one of the very first questions we used to ask during interviews at Tenable. I'm honestly kind of amazed it's now seen as some sort of tricky technique. I would think (or hope) most C programmers would see it as basic competence with pointers.

mtoddh··on Apple's Statistically Significant Impact on Crime Numbers
From the article,

The series of Apple-product thefts has been challenging the police for several years, but this is the first time they have been seen as significantly skewing the crime statistics. “If you just took away the jump in Apple, we’d be down for the year,” Mr. Bloomberg’s press secretary, Marc La Vorgna, said.

mtoddh··on US Birth Rate Hits New Low – A Nation of Singles
Interesting, my guess is this is the demographic the Obama campaign was courting with the Life of Julia [1] slide-show a while back-

http://www.barackobama.com/life-of-julia/

mtoddh··on Ask HN: Considering relocation to Europe, options for recruiters/job hunting?
In a past blog entry (http://blog.neekanee.com/2012/11/working-overseas-finding-jo...), I wrote about two companies that hire internationally: Secunia and Booking.com. There's also a couple of companies in Berlin that state in their job postings their willingness to sponsor work permits (even for non-EU citizens)- http://www.neekanee.com/jobs-in-berlin-de?q=permit
mtoddh··on E17 is out
Enlightenment has been around for quite a while now, and back in the day I used to think it looked so stunning. For a sense of perspective, here's what it used to look like back when it started as a hack of FVWM:

http://www.cactii.net/~bb/linuxreal/grab.jpg

Looks very dated now, but even in it's earliest days I thought looked so much cooler than FVWM. It's kind of amazing how far we've come in terms of visual aesthetics...

mtoddh··on I am Facebook friends with Ryan Lanza
This. I think the author really highlighted this well at the end of the article:

"Social media purports to connect us but it often does the exact opposite. The barrier, the anonymity, the lack of accountability; all encourage the worst in people."

mtoddh··on Ask HN: Why don't you work less?
but taking 3 or 6 months off per year should be doable in this profession due to the nature of the work and very high earnings.

It would be doable money-wise but I would think it would be hard to find a company willing to go along with this arrangement- although if people know otherwise I'd love to hear which companies offer this level of flexibility. In the past, others have suggested using the time between jobs for this - but (in the US at least) you'd still need to pay into COBRA if you wanted your health insurance to continue during that time. Also, having worked through the dot-com period at the beginning of the last decade, I'm always a little cautious about assuming that it will be easy to land the next gig.

mtoddh··on Obama's Secret Weapon In The South is 129 Million Years Old
A lot of people don't believe that Americans of today should be liable for the actions of Americans then.

It seems like there's two lines of discussion around this topic. One, as you've pointed out, is whether people should be liable for the actions of past Americans (ie, whether something like affirmative action should exist in the first place). The second is whether affirmative action is the best way to remedy the mistakes of the past. It seems (to me) like a lot of people disagree more on the second point.

mtoddh··on Obama's Secret Weapon In The South is 129 Million Years Old
Just recognize that (I'm going to go out on a limb here and assume) that, because you are a middle class white man, probably 90% of the reason you oppose "affirmative action" is because it negatively impacts your own demographic group.

Arguments for or against AA aside, this line of reasoning, where you invalidate somebody's argument based on what demographic group they belong to (white middle class males in this case), really seems like a simple ad hominem argument. You're no longer addressing what is said - only who is saying it.

mtoddh··on Columbia cybersecurity firm gets boost from Silicon Valley
An interesting tidbit from the article:

"Accel decided to pump $50 million into Tenable, a staggering amount even by venture capital standards and the biggest investment that Accel has ever made in a North American company...Its investment in Tenable was five times more than its original Facebook stake."

mtoddh··on Coursera course on game development using Python (first homework due tomorrow)
There's the Game Institute (http://www.gameinstitute.com) but they're not free...
mtoddh··on International Obfuscated C Code Contest Winners
+1 for this book - I rarely see it mentioned when it comes to C books. Reminds me of van der Linden's C book in that it uses non-traditional examples to illustrate concepts.
mtoddh··on Let's stop telling programming newbies to learn Vim (or Emacs)
One of the first reasons I ever heard for learning either vi or emacs was that they were the only editors that were basically prevalent everywhere, regardless what flavor of unix you found yourself on. Not so much because of how powerful they were.
mtoddh··on Why the First Laptop Had Such a Hard Time Catching On
For years, senior people did not type their own email, or even read it on a screen.

Reading this I can't help but think of the old "hello world" computer program humor [1] predicated on the idea that the higher the you went up the corporate hierarchy the less computer savvy that person would be:

    New Manager
    ===================

    10 PRINT "HELLO WORLD"
    20 END

    Middle Manager
    ===================

    mail -s "Hello, world." bob@b12
    Bob, could you please write me a program that prints "Hello, world."?
    I need it by tomorrow.
    ^D

    Senior Manager
    ===================

    % zmail jim
    I need a "Hello, world." program by this afternoon.

    Chief Executive
    ===================

    % letter
    letter: Command not found.
    % mail
    To: ^X ^F ^C
    % help mail
    help: Command not found.

    % damn!
    !: Event unrecognized
    % logout
[1] http://www.infiltec.com/j-h-wrld.htm
mtoddh··on On sexism in the tech industry - rebuttal
But how does working for Apple and writing Modenizr qualify him to speak about sexism?

It doesn't - it sounds like an appeal to authority. My guess is that had the roles been reversed, with Faruk as a male arguing how he didn't see sexism, and Laura as a female arguing otherwise, that the whole "but Faruk worked for Apple and wrote Modenizr" line wouldn't give his viewpoints on sexism more credence with the parent poster.

mtoddh··on On sexism in the tech industry - rebuttal
It was always referred to as a hobby and one that wasn't looked upon very highly.

I never see this point come up much but I can tell you that when I was growing up "geek" was a pejorative term and the guys who were into computers were largely social outcasts. I can remember in high school the kinds of guys who sat on IRC chatting with their little "cyber friends" being made fun of. And I don't think they ever got much of a chance to "exclude" girls since my bet is most of them never had much luck getting one to talk to them in the first place. I don't doubt that sexism helps fuel the gender gap we see in tech, but sometimes it seems like people forget that the original demographic in this industry was by and large made up of socially awkward males who pursued their hobby despite being looked down upon and excluded by others, not because of the heaps of encouragement they were receiving.

mtoddh··on Lone packet cripples telco networks
We accessed [an operator's] systems through their x25 network which they never knew was running

I remember a presentation on x25 security from not too long ago that articulated this very point: "Everybody “forgot” about their X.25 direct links":

http://dl.packetstormsecurity.net/hitb05/BT-Raoul-Chiesa-X25...

Personally I had thought all of the public x.25 networks like Sprintnet/Telenet, Datapac, etc. had been shut down at the beginning of the last decade. I'm guessing these must be private networks still running x.25. It would be interesting to hear from anyone not in the US or Canada if their x25 networks are still up - can you still dial into a PAD? Here in the US you used to be able to dial into a 1-800 number and login with phones/phones (or something like that) to get a directory of local dialups in your area which you could then call locally (so you wouldn't get hit with long distance charges).

mtoddh··on The Sudden, Mysterious Exit Of A Quora Cofounder Has Silicon Valley Baffled
So in this scenario, does it also mean that the shares are now worth less too? As in they are now worth $3/share ($10M/3,000,000) whereas before they were worth $10?
mtoddh··on Myths about Hash Tables
As to the first point, I remember this being described well in an older Phrack article [1] written by Solar Designer with regards to port scan detection:

In scanlogd, I'm using a hash table to lookup source addresses. This works very well for the typical case as long as the hash table is large enough (since the number of addresses we keep is limited anyway). The average lookup time is better than that of a binary search. However, an attacker can choose her addresses (most likely spoofed) to cause hash collisions, effectively replacing the hash table lookup with a linear search. Depending on how many entries we keep, this might make scanlogd not be able to pick new packets up in time.

[1] http://www.phrack.org/issues.html?issue=53&id=13#article

mtoddh··on The CD is 30 years old today
Funny, I still remember buying my first CD as a kid, Motley Crue's Girls, Girls, Girls (ouch!). The packaging back then was different and they'd put the CDs in long boxes whereas now you just buy it in the jewel case. I remember how cool it was getting a boombox that had a tape deck and a CD player and being able to make better mixtapes.
mtoddh··on Job search site Indeed.com acquired by Recruit Co. Ltd
Wow, I'm surprised to hear this- Fred Wilson had described them as one of the most successful companies in their portfolio [1].

[1] http://www.avc.com/a_vc/2012/03/indeed-a-hiring-powerhouse.h...

← PreviousPage 2 of 5Next →