HNHacker News
TopNewBestAskShowJobs

asymptotic

409 karma · joined March 21, 2011

https://asim.ihsan.io/ https://github.com/asimihsan

[ my public key: https://keybase.io/asim; my proof: https://keybase.io/asim/sigs/ghOttQMhTUWDaeBj1z7Ebq-7KDe5wAATYO8RQ1QGUBs ]

submissionscomments
asymptotic··on Amazon Web Services are down
If the Reddit web server admins took availability seriously they would have chosen to deploy across more than one region. Do you disagree? Why do you disagree? I'm being honest, no snark involved in my questions.
asymptotic··on Amazon Web Services are down
Amazon's EC2 SLA is extremely clear - a given region has an availability of 99.95%. If you're running a website and you haven't deployed across across more than one region then, by definition, your website will have 99.95% availailbility. If you want a higher level of availability use more than one region.

Amazon's EBS SLA is less clear, but they state that they expect an annual failure rate of 0.1-0.5%, compared to commodity hard-drive failure rates of 4%. Hence, if you wanted a higher level of data availability you'd use more than one EBS volume in different regions.

These outages are affecting North America, and not Europe and Asia Pacific. That's it. Why is this even news? Were you expecting 100% availability?

asymptotic··on Pipeable Ruby - forget about grep / sed / awk / wc ...
One could consider PyLine to be the Python equivalent to Pipeable Ruby:

http://code.activestate.com/recipes/437932-pyline-a-grep-lik...

Or funcpy:

http://www.pixelbeat.org/scripts/funcpy

asymptotic··on Snooping: It's not a crime, it's a feature
I take my comment back, I apologise. I've just realised that the Apple App Store does not clearly tell users what permissions a given application requires.

Go to any application on the Android Market, e.g.

https://market.android.com/details?id=com.groceryking&fe...

and then click on "Permissions". Before installing anything on an Android you can immediately and clearly tell what it's going to do. Do I want my shopping list application to be able to directly make phone calls? I don't think so, hence I won't install this app.

Does this exist on the Apple App Store? Honest question, I've never used it.

asymptotic··on Hacking The Status Game
Was it just me or did anyone else think of "Outliers" by Malcolm Gladwell? The author of this article implicitly assumes that all the participants of the game come from similar cultural backgrounds.

Read: http://bokardo.com/archives/what-malcolm-gladwells-book-outl...

Some cultures, e.g. Colombian or South Korean, are more geared towards respecting authority than other cultures, e.g. New Yorkers. A collision of two such disparate cultures can result in disasters such as Flight 052:

https://secure.wikimedia.org/wikipedia/en/wiki/Avianca_Fligh...

More details about the Power Distance Index (PDI): http://www.maximizingutility.com/2009/06/culture-clash-power...

asymptotic··on Snooping: It's not a crime, it's a feature
I can only speak for Android, but no you cannot deny the application access to certain aspects of the hardware. You must instead refuse to use the application as a whole.

On the plus side, Android is very clear about what parts of your phone the application is requesting access to when you install it.

asymptotic··on Snooping: It's not a crime, it's a feature
FTA:

"Of course, the use of your microphone with these apps is well understood by users, because that's the main purpose of the app.

The new apps are often sneakier about it. The vast majority of people who use the Color app, for example, have no idea that their microphones are being activated to gather sounds.

Welcome to the future."

With all due respect those users are morons. Color is, rightly, proud of their "snooping" technology. People who use Color will probably know it records audio through the microphone.

The proper question is: to what extent may people be permitted to degrade their privacy? For example, if both parties in a two-way call agreed to have the call recorded for advertising purposes, and to have ads interjected once every two minutes into the media stream, in exchange for the call being free, should that be allowed?

The Libertarian in me says yes. But sometimes people need to be protected from their own stupidity. Or do they? Hmm.

asymptotic··on Teaching women how to ship code
[Insert comment scolding the sexist comment but which is, in itself, subtly even more sexist.]
asymptotic··on Reproducible Research
In a nutshell:

"An article about computational science in a scientific publication is not the scholarship itself, it is merely advertising of the scholarship. The actual scholarship is the complete software development environment and the complete set of instructions which generated the figures." -- D. Donoho

As an example, at university I wrote a paper on network coding and referenced the Microsoft Avalanche project (http://research.microsoft.com/en-us/projects/avalanche/). What always puzzled me was that they never published source code to back up their claims to fame. Why? Maybe I'm being naive, but to me the openness of the scientific community implies that you must provide other researchers the opportunity to reproduce your results.

If this were a paper on chemistry you'd describe the volumes, concentrations, and proportions of all substances used. So why don't computational science papers offer source code and instructions on setting up the build environment? What am I missing?

asymptotic··on Comet: An active distributed key-value store
The name is rather unfortunate, but the project is quite interesting. I had no idea Vuze, which used to be Azureus, had re-packaged itself as an abstracted DHT provider.

I'm disappointed the author chose to tightly couple their implementation to Vuze. What if an operator wanted to use the system on a private network of machines? Why not implement the functionality using a Kademlia library instead?

Finally, I'm extremely disappointed at the lack of openness in this paper, and indeed in all papers on Systems We Make. The lack of reproducibility in computational sciences is a current problem and I'd like to see more researchers attempt to be more open about sharing not only their code but also their setup. i.e.

http://www.reproducibleresearch.org/

"An article about computational science in a scientific publication is not the scholarship itself, it is merely advertising of the scholarship. The actual scholarship is the complete software development environment and the complete set of instructions which generated the figures." --D. Donoho

Although I agree that a research paper, if it included all the minutae required to reproduce the results on a new system, would be far to verbose, it's time researcers woke up and realised what the "scientific" part of "scientific research" means. In my mind, the bare minimum of detail would be:

- all the source code and build environment tools on a easy-to-access repository, e.g. GitHub. - all raw data numbers available in CSV files. - all source code used to generate pictorial graphs as the source code to R scripts, or your favourite stats package.

This isn't rocket science. If you need more help figuring this out consider reading:

http://reproducibleresearch.net/index.php/How_to

asymptotic··on Good resources for learning HTML5 Websockets
I'm sorry you were downvoted. However, at the end of the bug information there's a link to Mozilla's official documentation on WebSockets:

https://developer.mozilla.org/en/WebSockets

There is a large, clear warning at the top:

"Warning: Among other things, a key reason WebSockets is currently disabled by default is the discovery of a security issue in the protocol's design. Using WebSockets in a production environment is not recommended at this time."

Mozilla's warning is based on the research report by Google into the WebSocket protocol. Here is the thread that started this off:

http://www.ietf.org/mail-archive/web/hybi/current/msg04744.h...

"The Upgrade-based handshake is vulnerable to attack in network configurations involving transparent (or intercepting) proxies. The core issue is that some number of transparent proxies do not understand the HTTP Upgrade mechanism and therefore don't understand that the remaining bytes sent by the attacker on the socket are not HTTP."

Thank you for pointing this out!

asymptotic··on Zero to Hero Series - Erlang on Amazon Web Services - Part 1
I've also finished Part 2: http://www.asimihsan.com/articles/zero_to_hero_erlang_on_aws...

This series is taking me far longer than I anticipated; I haven't even started talking about Erlang or OTP yet because of having to set up all the preamble with respect to using Amazon Web Services.

I think I have about four or five parts left to this series. Any and all comments are welcome!

asymptotic··on Programming is not a craft
Due to the sheer volume of responses to this article the author posted a rebuttal to many complaints here:

On craftsmanship http://dannorth.net/2011/01/15/on-craftsmanship/

His rebuttal is, as the author admits, better edited and more pithy. Some key parts are:

"If I gave the impression that I wanted the cheapest or quickest cobbled-together solution then I certainly didn’t mean to. I want the best value software, something that’s fit for purpose in this specific context, to solve this specific need."

...

"I used the metaphor of negative space to illustrate that the point of programming isn’t the software - it’s the information flow or utility that the software enables. Programming is not fine art."

...

"People want software because they want to solve a problem, not because they like the notion of software. Some software practitioners risk losing sight of that. That’s all."

...

"Some people self-identify as 'rock stars' or 'software' 'craftsmen' in an unfortunate attempt to differentiate themselves from regular jobbing professionals, whom they regard as less talented or valuable than themselves. I don’t have much time for these people."

asymptotic··on Ask HN: what can you learn at university that you can't self-teach?
I studied Electrical Engineering at university. I have an enduring memory of sitting outside at a restaurant, on a beautiful day, with my roommate, who was a political science major. At one point he started pulling out his notes and an essay and wanted my thoughts, and we spent the next hour discussing various minutae of the Israeli-Palestinian conflict.

Another memory that vividly stands out is being at a friend's house party one evening. One guy, a arts major from Argentina, for some reason made what seemed like the best tasting beer in the world in a red bucket, and we talked for a while about how he managed to make it. Afterwards he displayed an unusual, tenacious, and passionate interest in alternating-current (AC) and as I started breaking down the basic physics and EE behind it a larger and larger group of people gathered around to pester me with questions.

I love computers man but not everything is online. That's why you should go to university. Like jeffepp said, I state without qualification that my undergrad was the best time of my life.

asymptotic··on Details on the TCP "Split Handshake" Attack [pdf]
Almost a dupe of: http://news.ycombinator.com/item?id=2441553
asymptotic··on Hacker 'handshake' hole found in common firewalls
This article is based on a report release by NSS Labs titled "Network Firewall 2011 Comparative Test Results", released Q2 2011. Unfortunately the report costs USD3,500.

For more details about the attack consider reading:

The TCP Split Handshake Attack: Practical Effects on Modern Network Equipment (BreakPoint Systems, 2010) http://nmap.org/misc/split-handshake.pdf

asymptotic··on IBM Open Sources Maqetta; WYSIWYG HTML5 UI authoring
The site in inaccessible.

http://www.downforeveryoneorjustme.com/www.maqetta.org

How could IBM screw up a web hosting solution? And how does that reflect on the quality of this web UI tool?

asymptotic··on Spawnfest: a 48 hour programming contest featuring Erlang
I got a bit excited and registered straight away, but then I realised that I have no idea where you guys are physically based. Is this a competition that requires physical presence, and if so where is this competition being held?
asymptotic··on Ask HN: Snap v Nitrogen v Lift v Compojure
RE: Nitrogen. I've started using an Erlang RESTful HTTP toolkit called Webmachine (http://webmachine.basho.com/) paired with an Erlang-based distributed key-value store called Riak (http://wiki.basho.com/) and I am very pleased with the ease of using these libraries. However, I can't offer you a comparison with other functional languages as I only have experience with Erlang.

I'm starting an extended and thorough series of technical articles regarding deploying Webmachine and Riak on Amazon Web Services on my personal website. Over the next week feel free to follow the articles and see what you think of Webmachine/Riak!

asymptotic··on Perfect timing: a bug that only shows up in the first 250ms of a day
Time-based bugs are a nightmare to debug but in my opinion the far more insidious side to them is that, even once you've found the bug, there's an easy workaround - just reboot the box! Papering over problems is asking for disaster, as the US armed forces found out:

Patriot Missile Software Problem http://sydney.edu.au/engineering/it/~alum/patriot_bug.html

"Ironically, Israeli forces had noticed the anomaly in the Patriot’s range gate’s predictions in early February 1991, and informed the U.S. Army of the problem. They told the Army that the Patriots suffered a 20% targeting inaccuracy after continuous operation for 8 hours.

Army officials presumed that Patriot users were not running the systems for longer than 8 hours at a time. They suggested if they would be running for continuous periods, they were rebooted regularly (which took around 1 minute and would reset the system clock to zero)."

This is where I part company with the author, when he says:

"If a particular failure happens twice a year in thousands or even millions of runs in that period, you’d be excused if you attributed that to 'the alignment of the planets' and simply went on your merry way."

No. No a thousand times. Whenever you find a problem, any problem, you owe it to yourself to dig until you find the actual cause. If you don't find the cause, I guarantee the cause isn't magically going to become "cosmic rays", and rest assured the problem will come back to haunt you when it combines with other "random" issues in a cataclysmic failure; fate is funny that way.

asymptotic··on Convert JSON to a Unix-friendly line-based format
Hahahah he uses a Unicode snowman as his example delimeter!

$ echo '{"abc/def": 123}' | jsonpipe -s '☃' ☃ {} ☃abc/def 123

I'm ready to face the day with a smile on my face.

asymptotic··on Modern Microprocessors: A 90 Minute Guide
Readability works on the page: https://www.readability.com/bookmarklets
asymptotic··on Hacker News in real-time
I like this a lot, thanks for posting this. However, I can't seem to access the actual articles by clicking on a post - is this just my browser or does this not happen? How does one go to the actual articles?

And it would be helpful if each post had the title of each parent article associated with them.

asymptotic··on The Unreasonable Effectiveness of Mathematics in the Natural Sciences
Chapter 6 of "The Mind of God" by Paul Davies also addresses this topic (http://www.amazon.com/Mind-God-Scientific-Basis-Rational/dp/...). I read the book a long time ago but IIRC this was a particularly interesting chapter, as was Chapter 4 (Mathematics and Reality).

However, Davies book addresses a set of finer questions than the Wikipedia article. Rather than directly asking "Why can mathmatics be used to model nature?" the more probing question is "Why is there order of any sort to model in nature?". Indeed, in the preface of the book is this gem:

"If we do discover a complete theory, it should in time be understandable in broad principle by everyone, not just a few scientists. Then we shall all, philosophers, scientists, and just ordinary people, be able to take part in the discussion fo why it is that we and the universe exist. If we find the answer to that, it would be the ultimate triumph of human reason - for then we would truly know the mind of God."

-- Stephen Hawking, concluding passage of "A Brief History of Time".

A remarkable book, I recommend it.

asymptotic··on Wkhtmltopdf - Shell utility to convert html to PDF using webkit.
This is fantastic, thank you so much for posting this. I felt like pointing out another headless Webkit project, PhantomJS (http://www.phantomjs.org/), which can also perform HTML to PDF conversion.

edit: I've just run a comparison between wkhtmltopdf and PhantomJS and wkhtmltopdf is far superior. wkhtmltopdf produces correct output and bookmarks but has a slightly lower quality, where PhantomJS's output was not correct and without bookmarks but at a slightly higher quality. From my perspective correctness beats quality.

asymptotic··on 500 Startups plans a fund that’s all about designers
You've missed the point the article. FTA:

"Enrique Allen, the firm’s designer and the founder of its accelerator program, announced The Designer Fund today at 500 Startups’ first Demo Day. He noted that many successful startups including YouTube, Tumblr, Android, and Flickr were founded by designers. That’s not surprising, he said, since designers have a deep understanding of people’s real problems and are paid really well to make what people really want, compared to many startups that fail because they make what people don’t want...

Hence the creation of The Designer Fund. The goal is to invest in startups that are founded by designers..."

This isn't about designers being co-founders; this is about designers being founders. Do you still agree? To be perfectly frank, I do.

asymptotic··on Show HN: Webchat with API in just ~60 lines of NodeJS
You're welcome! I'm always glad to help.

http://lmgtfy.com/?q=node.js+chat+site%3Aycombinator.com

asymptotic··on Show HN: Webchat with API in just ~60 lines of NodeJS
Remember twitch.me (node.js realtime chat)? http://news.ycombinator.com/item?id=1840914

Chat.io, new HTML5 / Node.JS-powered social group, launches http://news.ycombinator.com/item?id=2343840

Show HN: Node.js console chat http://news.ycombinator.com/item?id=2391389

The node.js chat server that was posted earlier http://news.ycombinator.com/item?id=980838

Show HN: Meet the new Ajax IM (with Node.js) http://news.ycombinator.com/item?id=1127654

NodeChat http://news.ycombinator.com/item?id=1866401

Ragechat: http://news.ycombinator.com/item?id=1889883

Using node.js, <blah blah>, to make a real time chat app http://news.ycombinator.com/item?id=2306423

Chat system with WebSocket and node.js http://news.ycombinator.com/item?id=1020577

Hey man, doing anything constructive with your free time is a rare and admirable trait. But really, another Node.js chat application? Really?

asymptotic··on The EFF SSL Observatory
The slidedecks from two presentations are far more interesting and enlightening than the original post, which instead refers to a new batch of available data.

From DEFCON18, titled "An Observatory for the SSLiverse": https://www.eff.org/files/DefconSSLiverse.pdf

From the 27th Chaos Communication Congress, titled "Is the SSLiverse a Safe Place?" https://www.eff.org/files/ccc2010.pdf

The methodology is to nmap all IPs for open port 443s from a tiny three-machine cluster, and if the port is open launch a simple Python client that initiates an SSL handshake but stops before sending its own key. They then dump absolutely everything the server tells them into a MySQL database.

The purpose isn't just to pressure CAs; for me an enlightening and disturbing fact is just how many trusted CA certs there are. They observed 1,482 CA certificates from _651 organisations_ trusted by Windows and Firefox! 651!

There are examples of CAs signing "192.168.1.2" and "localhost", two CA certificates signed with 508-bit RSA keys, etc. Quite interesting.

asymptotic··on Finally, an android experience that rivals the iPone.
I don't want to come across too harshly, but I've looked through the site for about ten minutes and couldn't figure out what this is. This app is a replacement for the default Android home screen? Or does it replace lots of other UI elements on the Android phone?

FWIW many phone already come with non-default Android UIs, for example my craptacular Motorola CLIQ. Also, I have to agree with samuel1604 - if all the site offers are direct download links from servers in China I wouldn't touch this app with a pole. Sorry. To be blunt I wouldn't trust any application on my phone with that much power. Taking a look at the permissions required on their Android Market listing their app has permission to access and modify absolutely everything on the phone!

What's strange is that their app listing in the Android market is actually far more enticing (https://market.android.com/details?id=com.jb.gosms&featu...). Why didn't they invest more attention in their front page? At least a little two or three minute video showing what the app offers...

← PreviousPage 3 of 4Next →