HNHacker News
TopNewBestAskShowJobs

muaddirac

294 karma · joined September 18, 2013

submissionscomments
muaddirac··on HMAC in Go, Python, Ruby, PHP, and Node.js
Wanted to add that as of 3.3, Python has a nice constant-time compare built in: https://docs.python.org/3/library/hmac.html#hmac.compare_dig...
muaddirac··on Please stop calling databases CP or AP
Jepson seems to do a lot of what you want in Bender: https://github.com/aphyr/jepsen and https://aphyr.com/tags/jepsen
muaddirac··on Facebook PathPicker
Some of this is reminiscent of xiki: http://xiki.org/
muaddirac··on Why you should have a programming blog
I've been writing a blog locally that I haven't published since I don't feel I have an article that's really polished yet - but my plan was to publish in the blog format and also do a good job of categorizing my articles and indexing them, sort of like this: http://www.gwern.net/index
muaddirac··on How the Languages in Game of Thrones, Defiance, and Thor Were Created
I always think that people dislike the sound of German because of its media representation. When it's only ever spoken like the political leaders in Triumph of the Will, it's understandably unpleasant. But I find spoken German quite beautiful (so much so I studied it throughout college).

A good example of nicely spoken German is "Die Bombe die Nicht Tickt" (a reading of a short story by a German band whose name eludes me). Also the main character in Goodbye Lenin.

muaddirac··on Nim Programming Language 0.11.0 released
I have to agree - the only whitespace-related errors I've ever come across are "IndentationErrors" - which are pretty easy to resolve.
muaddirac··on Steam Removes Paid Mods Feature
I have no interest in the issue and have barely skimmed some comments on it, but from what I understand a lot of the problem is the high chance mods will conflict or just not work at all - a game can update at any time and break mods. Paying for something that has no real support is hard to swallow for some people.

In some ways it seems similar to the jailbreak community, and there are paid apps and tweaks there - but it does come at the cost of greatly reduced performance, stability, and security.

muaddirac··on Why I Regretted Hiring the “Perfect” Employee
This article is a confusing combination of things I agree with (it's better to hire employees with a good attitude) and things I just can't get behind (an employee who values his or herself over the company is bad and must be avoided).

Obviously the ideal scenario for a company is hard working, undemanding employees who get along. But it should be the company's job to create an environment for this to happen - listen to complaints and try to resolve them, don't fire someone just because they value themselves.

Oh, and sometimes people will have experienced bad managers. The problem isn't always with them.

muaddirac··on Google Fi Patent
I recently saw a charming example of this (for a physical patent):

http://youtu.be/vCLyPMSrdko

muaddirac··on A $14 “ergo” keyboard from surplus parts
I'm a little late to jump in but I've been watching this project with interest over the past couple of years:

https://geekhack.org/index.php?topic=41422.25

It's not complete yet, but most of the pieces are there.

muaddirac··on Homeless Millennials Are Transforming Hobo Culture
I also found the statements in the leading and final quotes almost absurdly contradictory. "Fuck you, I didn't choose this, but I love it."

Living in a city with a lot of visible homelessness and panhandling, I constantly struggle with what the right thing to do is. It seems like the only way to be sure you're helping is to only ever hand out food, or actually offer someone a place to stay. I used to hand out money when I had some on hand, but on reflection it seems irresponsible - what if that $5 is what ends their life by allowing them to OD or buy unsafe drugs? It could just as easily save their life by providing food or shelter, but by my reasoning it makes more sense to cut out the middleman.

Throwing into the mix that some people are choosing this lifestyle for reasons of "freedom" from society (while simultaneously depending heavily upon its existence and the generosity of others) just confuses the matter more for me.

If anyone has a good moral framework for this I'd be interested in hearing it.

muaddirac··on A $14 “ergo” keyboard from surplus parts
Massdrop.com often has a pre-built option for their ergodox sales. (You do pay a premium for that service, though)
muaddirac··on Dockerception: Docker building dockers – keeping them small
I really like the idea here, but haven't thought of a good way to do it with languages like Python/Ruby/Javascript.

Is there any good way to bundle up, say, a Flask app on Gunicorn into a single, minimal-dependency executable? Or a Rails app? I haven't found any satisfactory solutions. There are projects that will compile python down, but that doesn't seem to cover the WSGI server part (gunicorn, etc).

muaddirac··on No bullshit guide to math and physics
To my eyes it's a quick overview of some linear algebra basics, the only complex thing possibly being notation (but I would assume and hope the book builds up to it while also building intuition).
muaddirac··on Can we stop calling it currying?
To answer your question, I don't think it matters what it's called, just that you learn what it means (just like any word).

As an aside, what you're describing isn't strictly currying. The key insight of currying is that a function of multiple arguments can be decomposed in to a series of function applications where each function takes only one argument - this is related to but not the same as partial application.

muaddirac··on Shift Labs (YC W15) Makes Medical Devices for Healthcare’s Future
What are your testing methodologies like? Startups aren't what come to mind when I think of rock-solid engineering - but as a medical hardware company I'd expect a thorough and rigorous testing practice. What sort of automated or manual testing do you do? Is there any formal verification of the software?
muaddirac··on We Tried Building a Remote Team and It Sucked
I see this more as a technology issue - no one has sufficiently solved the "remote creativity" problem of allowing people to communicate as seamlessly as they can in a room with a whiteboard. (Or someone has, and I don't know about it, and StatusPage doesn't either)
muaddirac··on Neurons Gone Wild
What you're describing is known as Applied Kinesiology[1] and is not supported by evidence[2]. The Hawkins scale of consciousness is equally unsupported.

[1] http://en.wikipedia.org/wiki/Applied_kinesiology

[2] http://www.quackwatch.com/01QuackeryRelatedTopics/Tests/ak.h...

muaddirac··on The Other Mile-High Club
The forum linked in the first paragraph of the article?

http://www.flyertalk.com/forum/mileage-run-discussion/165403...

muaddirac··on Limitations of the GET method in HTTP
Also from that RFC:

> Naturally, it is not possible to ensure that the server does not generate side-effects as a result of performing a GET request; in fact, some dynamic resources consider that a feature. The important distinction here is that the user did not request the side-effects, so therefore cannot be held accountable for them.

I guess my point is that idempotence is the aspect that matters to clients - you can have side-effects if you really want, so long as the request can be safely repeated.

muaddirac··on Limitations of the GET method in HTTP
> As a rule, HTTP GET requests should not modify server state. This rule is useful because it lets intermediaries infer something about the request just by looking at the HTTP method.

As long as we're picking nits, it doesn't really matter if a GET request modifies server state so long as the state after N requests is the same as the state after 1 request (idempotence).

muaddirac··on Category theory for beginners
I think if I were attempting to make it more accessible for beginners, I would start with a concrete example of a category (like Set) and introduce the concepts in what is, for most people (programmers in particular) familiar territory, and then attempt to show how abstracting those concepts is useful and applicable in other situations.
muaddirac··on The Reading Level of the State of Union Address Is in Decline
I was wondering the same, and had to go back to the article to check that they don't address it. (They don't)
muaddirac··on Waze: Google’s New Spying Tool
I'm an avid waze user due to a long and traffic-dependent commute. It's hard to get worked up about the concerns raised in this article simply because I view where I'm driving essentially as public information (as almost all of my commute is on public property), and because the data collected is so clearly necessary for providing the features the app advertises.

> Your GPS location and driving routes. Of course, some of this is needed to deliver the services described, however it does not need to be stored indefinitely. Waze’s privacy policy states that this information will be used to “create a detailed location history of all the journeys you have made”. The question, of course, is “for whom, exactly?”.

It's for you, and for the Waze community at large. When you drive, your most recent routes are saved and you are allowed to edit some area around your route for some amount of time after. This allows you to update the map both for yourselves an others (new road closure near your house? Mark it on the map), which will affect Waze's routing when giving you directions. Tracking where you've been ensures you only edit areas you're legitimately familiar with.

> To spam you with marketing and advertising materials when using Waze; specifically location-specific advertisements using your GPS history.

These are pretty unobtrusive, and I don't really disagree with them in principal. There are already location-specific ads along my route in the form of billboards and signs.

> To email you marketing and advertising materials

I've never gotten an email from Waze, but I could easily block it if I did. I would only be concerned if they were giving out my email to other third-party advertisers that would be difficult to block.

> To conduct surveys and questionnaires (possibly for others, using your data)

I've seen these a couple of times, they're easy to ignore and dismiss. They only show up when you're stopped somewhere. And they're pretty benign, like "Have you seen one of these brands on the map recently?" (referring to little fast food icons which I find rather helpful)

But the biggest thing to note here is that you can turn off Waze at any time, and if you don't trust it to not use GPS when sleeping, then you can enforce that at the OS level.

muaddirac··on Docker 1.5: IPv6 support, read-only containers, stats, and more
> Open Image Spec

I'm wondering if this will eventually merge with the ACI that Rocket implements.

muaddirac··on Node v0.12.0 (Stable)
As a casual node user, I'd love to better understand how this release compares to io.js. Are they diverging more? Is node playing catch-up?
muaddirac··on Science’s Biggest Fail
I agree with you say but I just want to emphasize how much that is NOT what Adams says in his book.

In the book, he dismisses science because it's just looking at things and our eyes can deceive us (he uses the example of thinking the earth was flat).

At the same time, he calls for expanding our "perception" of the world. But the many, many ways in which science/technology have legitimately expanded our perception of the universe are dismissed by him, because it's all "just looking at things." A readout of a signal from a radio telescope is just looking at things with our fallible eyes. A measurement of the voltage of a battery is just looking at a readout of a voltmeter.

That is what is supremely frustrating with his view of science.

muaddirac··on Science’s Biggest Fail
He has some odd ideas about science.

The end of his book "The Dilbert Future" calls for "new ways of looking at existing things." And then claims that all of science is just "looking at things" which, he points out, is pretty unreliable, and that we need to improve our ability to perceive the universe in order to move forward in science. Of note is that he doesn't consider technologies which enhance our perception to be actually doing that (microscopes, telescopes, and other types of sensors are just more forms of "seeing" to him, and are lacking).

He then rather poorly explains double slit experiment and suggests that the arrow of time might just be a figment of your imagination, as well as the motion of objects in general, and gravity.

He skirts around the idea that looking at existing ideas in new ways can be important (who would deny that?) but then devolves into useless examples, claiming that instead of gravity "existing", everything in the universe could just be expanding at just the right rate to create the illusion of gravity. He questions causal relationships and posits something no better than leibniz's monads.

I've derailed a bit here, but man, that book irked me.

muaddirac··on Authentication Cheat Sheet
> I've had my auto-generated, 20-char digit/char/symbol PW from keepass get rejected for such things.

Huge pet peeve of mine. Really? "(uJgP6h9=8Uc6x?}#B6Q" isn't enough for you?

muaddirac··on On Mechanical Keyboards
It is very expensive. I built mine from the ErgoDox kit on massdrop which saves a bit of money, but it's still expensive.

But in comparison to other ergonomically-focused keyboards, it's actually on the cheap side. I justified the purchase as an investment in my long-term health, and I think when looking at ergo keyboards you sort of have to look at it that way - you're paying for comfort, yes, but for comfort that will prevent injury.

← PreviousPage 2 of 4Next →