HNHacker News
TopNewBestAskShowJobs

axiak

473 karma · joined June 26, 2010

A high interest in statistics, I really enjoy making computers behave "fluently" by using ML, NLP and other weak AI.

http://mike.axiak.net/

http://www.github.com/axiak/

http://stackoverflow.com/users/310493/mike-axiak/

submissionscomments
axiak··on The New England Patriots’ prevention of fumbles is nearly impossible
Belichick specifically said he was not talking about atmospheric temperature conditions, but the conditions of the ball. Presumably whatever rubbing of the ball was necessary for preparation heated the air in the ball. He must have explained this in the most obtuse way possible to reduce the chance people call him a cheater for heating the air in the ball.
axiak··on Popular Myths about C++, Part 1
Not that this is necessarily any cleaner, but in C++14 one would write:

    return "mailto"s + ":"s + name + "@"s + domain;
and it would compile fine. (s being a literal for std::string)
axiak··on Show HN: Give 7 billion people a physical address
More people in India have a cell phone than have access to a toilet.
axiak··on Canada’s anti-spam legislation starts July 1
Sure, there are limits to foreign jurisdiction. IANAL, but if you have customers in Canada and you also send email to Canada you may have to care about CASL. Even if the message originates from a US server.
axiak··on Canada’s anti-spam legislation starts July 1
CASL applies to any electronic message either sent from or accessed in Canada [1].

1: http://www.canadianadvertisinglaw.com/anti-spam-law/

axiak··on Akamai release source to their custom secure_malloc for OpenSSL
No, this is incorrect. Just because the original code is GPL, doesn't automatically make it legal for any modifications to be released to the public as GPL without the copyright owner's consent. (In this case, the company owns the copyright.)
axiak··on Why it's a bad idea to put a CNAME record on your root domain
A lot of DNS providers provide "ANAME" records. Which are essentially services which do the lookup and update A records in a cron.
axiak··on Python “lists” are not lists. A history
A list is called a list in python for the same reason the term dictionary is used -- these are the high level concepts for abstract types. The specific implementation details aren't too important, as often times you just want "the fastest in general" which python does fairly well given the constraints.

As an example, a dictionary is implemented by a hash map, but after investigation, CPython may very well decide that any dictionary smaller than N is implemented as a constant table lookup. It wouldn't be renamed to TableLookupToHashMap. That would be silly.

axiak··on Scala – 1 Star – Would Not Program Again
IMHO, libraries like this should always have an easy "out", where the default is strongly typed, but the user of the library can explicitly escape the known behavior if need be.

As a (albeit poor example), I once inherited a click tracking system that uses Java Jersey. The standard response object has a .redirect(URI uri) method. Unfortunately, many "URI"s we receive from the world are not actually value, and the java URI object refuses to build URI objects from the string. Fortunately, one can simply call .setHeader(String, String) and be done with it.

axiak··on Petition to Repeal the DMCA
Not necessarily. Read the 21st amendment. It mostly repeals the 18th and clarifies that laws can be made to regulate alcohol use. The petition is to control alcohol under the Controlled Substances Act.
axiak··on Scikit-learn: machine learning in Python
Once you use scikit-learn to figure out what you want to do on a reasonable data set, you can use Mahout (http://mahout.apache.org/) to translate the algorithm to hadoop pretty easily.
axiak··on CodeHS Wants To Teach Every American High Schooler How To Code
Great idea! Have you guys thought of creating a foundation to make it easy for people to donate to? To e.g. sponsor a school or something?
axiak··on Why hasn't PyPy been merged into the Python trunk?
Watch this for a great presentation discussing this: http://www.youtube.com/watch?v=l_HBRhcgeuQ

Not that they haven't gotten better. My point is that CPython has a different set of goals which makes it great for a reference implementation.

axiak··on Why hasn't PyPy been merged into the Python trunk?
Yes.
axiak··on Guido van Rossum's Performance tips for Python
Of course it depends on who's using your code. In java, if you have an api that other people are using, then you must use getters and setters. In python there is no such restriction.
axiak··on Guido van Rossum's Performance tips for Python
I don't know how much experience you have with python.. but you don't need getters/setters in order to gain flexibility. You can always redefine how assignment/accessing works for any property later.
axiak··on Why hasn't PyPy been merged into the Python trunk?
To me, what makes CPython special is that it's a language interpreter that's incredibly easy to get into and hack due to its simplicity. Pypy, while probably a good standard for server use, will never have that quality to it. IMHO it would be a shame if python loses this aspect of the ecosystem.
axiak··on PJSON: pretty, colorful json output formatting for terminal
Why all of that complicated setup? Why not just support pip install pjson? :)
axiak··on Show HN: Easily Customizable Toggle Buttons - jQuery Plugin
This looks great! One minor suggestion: make the toggle button non selectable for dragging. http://jsfiddle.net/SWqw3/ show's a basic way of doing this.
axiak··on Office 2013: Microsoft's bid to win the future
For new stuff, prezi is an awesome platform for teaching presentations: http://prezi.com/2hk390sfkqjh/the-astronomy-masterclass/
axiak··on Xip.io - a magic domain name that provides wildcard DNS for any IP address
It depends on what you're working on. If you're developing a SaaS application where an individual instance should be providing group features based on the hostname, suddenly host names becomes a development detail. Though I agree that in most web applications this isn't the case.
axiak··on HBO Says No, for Now, to Fans Who Want a Web-Only Option
Maybe they don't have TVs/cable?
axiak··on Google will start warning Chinese users about problematic search terms
It's possible google stores the finite list of bad queries in JS and has the user's browser do the comparison client-side.
axiak··on App Engine releases full-text search
IMHO an s-expression api would be awesome, but I think any public facing input would have to allow the "conventional" format. I guess App Engine doesn't want to force app developers to make that conversion.
axiak··on App Engine releases full-text search
Huh? Presence of parentheses != s expressions. For starters, the expression "foo" AND "bar" is valid, but not an s expression.
axiak··on First Python 2.7 interpreter to use multiple cores
This is the first of what hopes to be many releases of pypy using STM for multithreaded safety. Up until this release Armin had a special API for creating and running transactions. Now he has wrapped python's threading module to use STM, see http://morepypy.blogspot.com/2012/05/stm-update-back-to-thre... for more information.

Note that this is independent of CPython development.

axiak··on Announcing Better SSL for your Heroku App
Most importantly -- any IE on Windows XP.
axiak··on Whitelist Your Routes, "match" is Evil
So I don't think yummyfajitas was trolling, but he obviously likes Django. Like him, I like Django as well, but I happen to think that a healthy criticism of any popular framework is worthwhile. I think it's telling that AFAIK all more recent python frameworks bake in method dispatching to the url dispatcher.
axiak··on Whitelist Your Routes, "match" is Evil
request.REQUEST? Admittedly, people don't use it that much, but it's definitely there.
axiak··on Whitelist Your Routes, "match" is Evil
I think the fact that Django's url mapper doesn't make it easy to dispatch based on the method means that Django wouldn't score to highly against this particular issue. It's easy to put

    if request.method not in ('POST', 'PUT', 'DELETE', 'PATCH'):
        ...
at the top of every method (or use a decorator), but it'd definitely be nice if this were part of the url dispatcher.
← PreviousPage 2 of 5Next →