HNHacker News
TopNewBestAskShowJobs

elliotanderson

162 karma · joined July 23, 2010

http://hnofficehours.com/profile/username/
submissionscomments
elliotanderson··on Discourse ditches CoffeeScript
There's not doubt it is readable (I'm quite a fan of the language too) - the problem is with writing it as a novice. This post highlights some of the issues with magic and whitespace:

http://meta.discourse.org/t/is-it-better-for-discourse-to-us...

elliotanderson··on New troll scam: pay us $495 or face felony charges and jail time
Similar scam happening over in Australia at the moment too:

http://www.afp.gov.au/media-centre/news/afp/2012/october/afp...

http://malwaretips.com/blogs/australian-federal-police-virus...

It's a virus that locks the computer, takes a photo of the user and demands they pay $xxx to a department of the Australian Federal Police for "detected copyright infringement" while listing some of the music files on the computer to lend credence to the claim.

elliotanderson··on Nginx now supports Websockets
As pkulak said, Nginx didn't understand the Upgrade header so you couldn't proxy http and ws connections on the same port.

To get around that you had to add either another reverse proxy that did offload ws:// connections or run them on separate ports and deal with issues like corporate firewalls.

elliotanderson··on Nginx now supports Websockets
There was two main options

1. Run nginx with something like HAProxy/Varnish infront

2. Run nginx alone with the app server on port 80/443 and the websocket server running on a special port. The app was then proxyed using the built in http_proxy, while the websocket was handled by tcp_proxy.

elliotanderson··on Nginx now supports Websockets
Websockets run on port 80 natively. It's all done through a HTTP Upgrade header to turn the connection into a websocket.

Up until this release, anyone running both HTTP and WebSockets behind nginx has had to run them on separate ports (i.e. HTTP = 80, WS = 8080) and then use TCP proxying to load balance the websocket connections. Nginx didn't natively understand the Upgrade header - but now it does so you're free to use port 80 for everything.

elliotanderson··on Nginx now supports Websockets
A few years ago I would have agreed, but I have several PHP daemons consuming messages from RabbitMQ and their uptime is in the range of months. Throw a little supervisord into the mix to keep an eye on things and you'd be surprised how far it has come.
elliotanderson··on Sorry, Geeks, Microsoft Excel is Everywhere
The start of the article infers that the London Whale Trade was caused by manual handling of data between spreadsheets.

The real reason came down to a flaw in the formula they were using. From the JP Morgan report:

    ... a decision was made to stop using the Basel II.5 model and not to rely on it 
    for purposes of reporting CIO VaR in the Firm’s first-quarter Form 10-Q. 

    Following that decision, further errors were discovered in the Basel II.5 model, 
    including, most significantly, an operational error in the calculation of the 
    relative changes in hazard rates and correlation estimates. 

    *Specifically, after subtracting the old rate from the new rate, the spreadsheet 
    divided by their sum instead of their average, as the modeler had intended.* 

    This error likely had the effect of muting volatility by a factor of two and 
    of lowering the VaR.... It also remains unclear when this error was 
    introduced in the calculation.
Source: http://www.zerohedge.com/news/2013-02-12/how-rookie-excel-er...
elliotanderson··on A Most Peculiar Test Drive
The car park is described as a 100-lot area. Zooming in the map to show a tiny little circle wouldn't have conveyed the point - instead they showed the speed data logged instead.

As for data loggin: Elon states it's only for the media test drives unless written permission is given [1]

1. https://twitter.com/elonmusk/status/301053361157988352

elliotanderson··on Next Time Your Mom Says Don't Go Out in The Rain, Spray Yourself With This
Forgive me for not being able to find the link to reference, but this very same question came up on Reddit aswell.

The company replied to the suggestion saying yes, the technology has marine uses, and coating a boat with the compound does reduce the drag - the issue being the stability of the boat is reduced in turn which means the running speed needs to be increased to compensate.

elliotanderson··on Apple’s Q1 2013: Revenue Up 17.7% to $54.5B, $13.1B In Profit
They're starting to hit the law of large numbers.

As @gruber pointed out, 3 years ago they were making $50 billion annually and they just announced they were making $54.5 billion in a _quarter_. You can't expect 20% increases every quarter when you're at the top of the market.

elliotanderson··on Show HN: The top free PSDs on dribbble in one place
Looks like it is just doing a tag search for PSD, so many of those shots don't actually contain a free PSD to download.

One option to reduce the noise might be to grep for URL's in the comment and attachment that point to downloadable files.

elliotanderson··on Show HN: The top free PSDs on dribbble in one place
It's a place for designers to show off their current work and projects by posting 400x300px shots. You can only post and comment however if you have been "drafted" (invited) by another player and those invites are pretty hard to come by - a good thing considering the quality of work that's on display. There's no member restriction on downloading any of the PSD's that the designers have posted - this site just scrapes those freebies into one location.
elliotanderson··on The impending crisis that is Windows XP and IE 8
jQuery 1.9 and 2.0 will be API compatible - just use an IE conditional include to source the right version. Only downside is if you have a tight asset pipeline that minifies _everything_ and it causes 1 extra request.
elliotanderson··on Nginx Load Balancing Basics
On a security note - your application code should only trust those headers (X-Forwarded-For, X-Real-Ip, etc) for IP lookup if you control the load balancer and strip it from incoming requests.

There is nothing to stop a malicious client adding the header themselves and if you rely on IP lookup (i.e. Dev Mode active for 127.0.0.1) for access control you can leave yourself wide open. While I can't find the article at the moment, Stack Overflow accidentally gave admin level access to the site because of this over sight.

elliotanderson··on Multiple vulnerabilities in parameter parsing in Action Pack
At this stage with the vulnerability publicly and widely reported - demonstrating an attack vector that involves seemingly harmless code is perfectly acceptable. Not everyone understands the magic involved and it would be able to spot exploitable code.
elliotanderson··on Ask HN: Can anyone really learn iOS in 8 weeks?
Check out the Stanford University iOS classes on iTunes University - very good video resources stepping through all the basic building blocks. Also finding decent open source components on GitHub and alike then manually copying the code is helpful to build up a muscle memory of the API's used
elliotanderson··on Kickstarter backers ready class action lawsuit against Code Hero dev
From Dustin Deckard (the class suit organiser) -

"Alex Peake seems to have run out of money ($170k) after spending it recklessly, and doesn't plan on continuing with this project.

There are well over 1000 backers out there who pledged for physical rewards. And, tragically, 6 backers who pledged at the $1k level who thought their money would be well spent on an educational tool for schools."

elliotanderson··on Apple loses $34.9 billion in market cap
Apple's share price has not had any correlation to its fundamentals for the last few years. If you were to compare its P/E ratio to that of other tech companies out there (Amazon's is 3628) it would technically be undervalued even at its current price.

That said, most of the volatility comes from all the prop trading firms trying to turn a profit. AAPL is considered a bullish stock amongst fund managers and is often used to hedge against other riskier positions in the market. Often times big dips in Apples stock can be attributed to profit taking (especially around this time as we finish up for the year and get nearer to the end of an American financial quarter – gotta look good on the books to the get Christmas bonus) and margin calls on bad trading days. You’ll notice a dip in the afternoon of any bad trading day as prop firms start getting margin calls on their failing positions and have to sell to cover their losses.

elliotanderson··on 3D Systems sues Formlabs, Kickstarter
Shame the patent numbers were not included in the press release.

A comment below mentioned the patent being possibly related to creating support structures (additional 3D printing to support overhanging sections of a model), and a quick search on Google patents brought up these:

http://www.google.com/patents/US6558606

http://www.google.com/patents/US6797351

And from the looks of it, 3D System has quite the arsenal of patents at their disposal - see for yourself: http://www.google.com/?output=search&tbm=pts&sclient...

elliotanderson··on 3D Systems sues Formlabs, Kickstarter
The Formlabs project is unlike the other projects you have mentioned.

Most hobbyist level 3D printers rely on extrusion (also known as fused deposition modeling) - heating up a spool of soft plastic (such as PLA) and extruding it out of a print head similar to how a desktop printer works. The Formlabs project is using a technique called stereolithography (1) where each layer is created by printing a layer of material (again, similar to a desktop printer) that is then cured by a laser (usually ultraviolet). It's a technique that allows for higher resolution objects to be created

1. http://en.wikipedia.org/wiki/Fused_deposition_modeling 2. http://en.wikipedia.org/wiki/Stereolithography

elliotanderson··on 3D Systems sues Formlabs, Kickstarter
I am a little naive as to American legal process, but does Kickstarter enjoy any safe harbor provisions as a fund raising website? They are not the ones producing the 3D printer technology in question, only facilitating its funding. If they are being sued for such service, wouldn't that also make Amazon Payments culpable?
elliotanderson··on More than 1MM Facebook accounts exposed
Would Facebook ever consider having the option of two factor authentication (something similar, if not compatible with Google Authentication/TOTP/MOTP apps)?
elliotanderson··on More than 1MM Facebook accounts exposed
At least in terms of malware detection, Chrome utilises a bloom filter in the first instance to identify the probability of a URL being malicious before making remote calls. If it is found to be positive, only then does it submit it to Google for more precise verification.

1. http://blog.alexyakunin.com/2010/03/nice-bloom-filter-applic...

elliotanderson··on The Pirate Bay in the cloud
Only if they get to them within 8 hours, per the TorrentFreak article - after which they shut down and require an encryption key to restart. Add in any level of geographic distribution and it would take more than 8 hours to find, subpoena and confiscate rendering that technique useless.
elliotanderson··on Why Zend Framework (over framework X)?
And will leverage Symfony2 Components as well [1]. Great to see the different camps working towards interoperability.

1. http://www.thenerdary.net/post/30859565484/laravel-4

elliotanderson··on Why Symfony (over framework X)?
Unfortunate timing indeed.

To be fair, the final RC's for Symfony2 and ZF2 were announced last week on the 28th and 29th respectively, both with a note stating the final release would be this week. Today was the last chance to release without half the world packing up for the weekend or breaking their promise.

elliotanderson··on How we keep GitHub fast
They use HAProxy for load balancing which doesn't natively support SSL termination (yet...). There's probably an extra layer in there to handle that (pound/nginx maybe?) which would bump up the latency.
elliotanderson··on PHP is much better than what you think
Read the Symfony source, it's a template for how good PHP should be written.
elliotanderson··on CSS3PS: Convert Photoshop layers to CSS3
CSSHat is a commercial self contained plugin CSS3PS is a free plugin that relies on a web service for processing
elliotanderson··on The Pirate Bay evades ISP blockade with IPv6, can do it 18 septillion more times
They could do that, but ISP's prefer to not fill up their routing table with lots of null routes.

IPv6 addresses and subnet masks are 4 times the size of IPv4's - shifting IP's between a number of different ranges would start to make any network engineer cringe - especially if they start blocking at the /64 level (i.e. smallest allocation possible at the moment - 18,446,744,073,709,551,616 addresses)

← PreviousPage 2 of 3Next →