HNHacker News
TopNewBestAskShowJobs

shakesbeard

174 karma · joined December 5, 2011

submissionscomments
shakesbeard··on Clojure core.async and Go: A Code Comparison
Yes. The default seed is 1. You can set your own using something like this:

    rand.Seed(time.Now().UnixNano())
shakesbeard··on Clojure core.async and Go: A Code Comparison
Did they introduce a language solution for it in C#?
shakesbeard··on Hundreds march in Singapore against website licensing regime
> Really, an article on censorship from "RT" aka Russia Today? According to Wikipedia "funded by the federal budget of Russia".

What does that have to do with the story of the article? Either the story is true or not, this has nothing to do with the source.

> I want to see an article from them critical of Putin, their dear leader. I suspect that whoever wrote it would be lucky to escape alive to London. That's a bit harsher than spending $39,500 for a license.

False dichotomy. Spending $40k to blog is pretty awful and is not rebutted by something that's even more awful.

shakesbeard··on Markdown-based notepad
I wrote one for my blog, maybe it is of use for you, too.

http://bigwhoop.github.io/lyme/

shakesbeard··on SQL injection search
90% of example code for PDO uses prepared statements. 90% of example code for the mysql_* functions is ancient and full of security holes.
shakesbeard··on Show HN: A golang websocket server you can pipe to
You could use the following to get the path to your assets.

    import (
        "go/build"
        "path/filepath"
    )
    
    pkgInfo, err := build.Import("github.com/minikomi/pipesock", "", 0)
    if err != nil {
        panic(err)
    }
    webDirPath := filepath.Join(pkgInfo.Dir, "default")
shakesbeard··on 10 years later, ‘Star Wars Kid’ speaks out
Which is clearly a parody?
shakesbeard··on Collection of the best fonts for programming
Recently switched from Consolas to Bitstream Vera Sans Mono. Has been a good experience so far.

http://i.imgur.com/qNlpYvn.png

http://www.dafont.com/bitstream-vera-mono.font

shakesbeard··on Wish I was here by Zach Braff
Why not make the download or BluRay available when they get released anyways? I wouldn't care. And I would have paid $30 to get this plus the playlists/script.
shakesbeard··on Climate scientists struggle to explain warming slowdown
And yesterday:

> The summer ice melt in parts of Antarctica is at its highest level in 1,000 years, Australian and British researchers reported on Monday, adding new evidence of the impact of global warming on sensitive Antarctic glaciers and ice shelves.

http://www.reuters.com/article/2013/04/15/us-antarctica-ice-...

It's a complicated topic, I guess.

shakesbeard··on Don't Copy-Paste from Website to Terminal
But do you trust the website, email, or other source, where you copied the command? If someone can spoof this link on the official kernel website, they may as well have access to other, way more sensitive resources.
shakesbeard··on Sendgrid is down
That is hardly any proof?!
shakesbeard··on The PyCon Incident
> Would you say, "If male programmers make you uncomfortable, don't learn to program"? If you would, then that is part of the problem.

Now we're mixing scenarios. wpietri scenario was one I could not change anything because there wasn't anything to change. I don't walk into a gay bar and tell gay men to stop making jokes because they may or may not offend people. Same as I don't walk into a bad neighborhood and try to talk to shady people because I may feel offended by them dealing drugs.

What Adria did, did not help making men and women feel more comfortable working together. She made the opposite by publicly pillorying someone with the "sexism" hammer. That's a though position to be in as the receiving end.

> It's not really about one joke. It's about reinforcing a space that makes it easier to legitimize misogynist behavior through carelessness.

I don't agree at all. How do you come to that conclusion? What makes you think that someone who tells a dick joke would discriminate a woman? All those jokes about planes and towers may be childish and downright outrageous for someone that was affected by 9/11, but that does not make people suicide bombers.

> Like you said, "in a room with countless other people"--these guys were in a professional setting, and the joke really had no place there. Maybe they didn't deserve to get fired over it, but it definitely was not the right venue.

If those people made a joke like "A Mexican, a German and a French walk ..." would you post their picture to Twitter with a headline like "Those two guys behind my are xenophobes?". No, of course not. You may turn and say that those comments are not appropriate. The guy didn't deserve to get fired at all.

> But it will reinforce a space that makes being religious an easy thing to ridicule, and it will increment the fear counter for any particular person in that space, and more importantly, will legitimize the attitudes of the other non-religious people around you who might have otherwise not done their part in contributing to a hostile environment.

You know what? It is my right to ridicule you for believing stuff. Even religious ideas, because they are not different from attitudes towards anything relative (like which music sucks and which not). If you feel offended in that scenario, then say so. If I'm a jerk I'll continue making additional comments. If I'm a nice guy, I'll apologize. You'll meet all kinds of assholes in your life and you'll be offended by a lot of stuff that's going on. Making everyone shut up so no one is offended won't make anything better or solve any problems.

shakesbeard··on The PyCon Incident
> They talked with Adisa, so they probably did recognize that she was a woman.

As far as I've read they talked to each other, not her.

> As a frequent teller of jokes, I always try to match the joke to the audience. If religious people in the US faced a 1 in 6 risk of physical assault for their religion, you can bet I would be very careful about telling any joke that might make them fearful. Wouldn't you?

No, because that's not healthy at all. It's words, and they are not directed at you, but at most about something you identify yourself with. If you're offended by such words (mind, I'm not talking about personally addressed threats or repeated bullying), that's your problem. There was a time when you got killed for making harmless jokes about authorities. I want people to be able to express themselves. And when people are talking bullshit, then call 'em out for being ignorant. Laugh about them.

Also I'd like some source for that 1/6 people faces risk of physical assault for their religion. What does that even mean? The risk? From whom? Are you trying to tell me that 16% are living in fear because of their religion? In the USA?

shakesbeard··on The PyCon Incident
> That feeling of discomfort? The way your heart speeds up as you start wondering if you're safe? Women feel that a lot.

Then I get out of the bar. Or look for some nice company (maybe talk to the bar man or find a woman in the bar?). Problem solved.

> The jokes aren't what's offensive. It's when jokes sexualize a professional context in a way that makes women feel unsafe.

Feel unsafe about what? Their safety? Those guys made two harmless dick jokes while sitting in a room with countless other people. They may not even have recognized that there was a woman in front of them. Further they were making fun about a body part a woman doesn't have. So your analogy doesn't hold.

If I want to tell a blasphemous joke, do I have to take into account that someone could feel offended and fear for their safety because this joke could mean that I want to harm religious people?

shakesbeard··on 1% of CMS-Powered Sites Expose Their Database Passwords (2011)
Because your average graphics designer or blogger has no idea what Apache is, what public directories or file permissions are. They just want to run their own blog. That's why Wordpress (or PHP for that matter) is successful; it's easy to set up and get started.
shakesbeard··on How 19-year-old activist Zack Kopplin is making life hell for creationists
Yep, thanks!
shakesbeard··on How 19-year-old activist Zack Kopplin is making life hell for creationists
> To make it simple, just let the kids choose and decide for themselves...

No, that's not how it works. By that logic we also would have to teach about ghosts, dwarfs, <stroke>astronomy</stroke>astrology, or just claims made by other religions or folklore. There's a reason we teach our children sciences. They are objective, observable, testable, falsifiable, etc. We want a rational society, not despotism.

shakesbeard··on PHP needs a vision
And that's PHP's fault? It won't affect you if you start writing a PHP 5.3 (or even 5.4) app today.
shakesbeard··on PHP 5.5.0 Alpha1 Released
So PHP would be better off without adding a missing feature? I don't get your reasoning.
shakesbeard··on PHP 5.5.0 Alpha1 Released
That may be true for servers, but certainly not for developers, or rather the average PHP user. Think of all the WAMP installations used to setup a Wordpress page.
shakesbeard··on Free Flag Icons
Common practice seems to be using a half Swiss/half German flag for de_CH, and half Swiss/half French flag for fr_CH or just the Swiss flag for both languages.
shakesbeard··on PHP Annotations Are a Horrible Idea
Well, OOP in PHP seems to work rather well for thousands of large projects out in the wild - making your argument invalid.
shakesbeard··on On sexism in the tech industry - rebuttal
I'm a young, white male, aka privileged person. I've read quite a lot about feminism (and anti-racism for that matter), and struggled to get a clear picture of when my actions are appreciated. I think the most important lesson I've learned is that I must listen; because I do not have any first hand experience.
shakesbeard··on Data Breach Reveals 100k IEEE.org Members' Plaintext Passwords
But maybe that's not want you want to achieve?
shakesbeard··on Beyond Meat: Fake Meat So Good It Will Freak You Out
Are you trying to imply that consumption of animals and plants/fungi is the same? What's the point of that argument? I mean, come on, I'm vegetarian and I kill mosquitoes ...
shakesbeard··on How did we come to believe saturated fat and cholesterol are bad for us?
At my former company we had free access to beverages (sodas, water, energy drinks, ... even beer). I gained a lot of weight while working there. After I quit I stopped drinking sodas altogether, while mainly keeping my diet (vegetarian, one "big" meal per day + snacking) and level of physical activity. I lost about 18kg (40 pounds) in about 2 months. Went from 103kg to 85kg. I'm 1.84m so that's an ok weight I guess.

So that worked for me ... drinking water.

shakesbeard··on What PHP 5.5 might look like
You can set the visibility of both the properties and the getters/setters.

    class Foo {
        private $fuzz;
        
        protected $Bar {
            get { return $this->fuzz; }
            private set { $this->fuzz = $value; }
        }
    }
shakesbeard··on What PHP 5.5 might look like
The article clearly states that there are more features like a read-only keyword.

https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented

shakesbeard··on Being deaf
I don't think this is accurate. As a deaf person you see when conversations take place, and when you are excluded from them. As a remote worker you don't get this consistent reminder.

You are correct, that it might be similar when trying to do small talk, though.

PS: I work 100% remote.

← PreviousPage 2 of 3Next →