skysight-inc/HackerNews huggingface dataset:
I think Typescript is a fking great answer. Provided that web developers are too conservative to try radical changes (ActionScript? Silverlight? Dart?) platforms don't care to support them (Apple?) and users are too lazy to install plugins, I can not think of a better answer than Typescript.

With their Open source nature, structural typing, open-ended interfaces, etc... I really thing they have made a perfect shot to capture JavaScript patterns statically.

I haven't found big issues with declaration files mismatches , and you can always ignore them declaring a variable of type any, but it's true that DefinitelyTyped repository is a mess and should be split.
I do something similar, albeit more in fashion with the gp: I have a small-ish truecrypt container that has a "passwd" directory in which each service gets its own txt-file. The same container also holds a handful of other essentials, like a backup of my gpg keys and revocation certificates, ssh keys, emacs config, zshrc/bashrc and so on.

In each of the txt-files, I use a shorthand for the passwords. So if the actual password was "theansweris42", I'd have something like t...s42. This is enough of a reminder for myself (especially when using a more modular password system), without giving the full password away. In another, external gpg-encrypted file, I have a simple txt-file that contains both the password for that truecrypt container and the "translation" for the long form, i.e. t...s = theansweris and so on. This allows me to also use this file as a kind of dead-man switch. Should I ever die unexpectedly and somebody close would need or should have access to my accounts, they will be able to open the GPG file (because they are in it as recipients), which essentially gives them access to everything important.
This thread seems convinced that autism = intelligent and quirky. Maybe it is Rain Man, or the character on the show Parenthood or that other lawyer character (forget which show), or the prevalence of Asperger's in tech. People really don't seem to see it until it happens to them or their family.

As I've said elsewhere in this thread, when the CDC chooses to highlight (1) that 46% of these kids are average to above IQ, it says "don't worry". Why didn't the CDC choose to highlight "31% of these kids are severely impacted, unemployable, and will require lifelong care at an incredible expense to their families (financial and emotional) and taxpayers"? 46% is not even a majority, yet the CDC chose that group to mention as a highlight.

Why would the CDC make that choice?
For me, coffeescript was the answer to the question "How can I write javascript with python-esque whitespace block formating?" I suspect the author was asking something like "what can replace javascript?"
Cached oauth token validation in Reverse-proxy server
What was nonsensical about their request?
Aiming to support the parent's claim (ElDiablo66, is this what you're referring to?), here's a quote from an article [1] about the Chomsky vs. Norvig debate a couple years ago:

Chomsky critiqued the field of AI for adopting an approach reminiscent of behaviorism, except in more modern, computationally sophisticated form. Chomsky argued that the field's heavy use of statistical techniques to pick regularities in masses of data is unlikely to yield the explanatory insight that science ought to offer. For Chomsky, the "new AI" -- focused on using statistical learning techniques to better mine and predict data -- is unlikely to yield general principles about the nature of intelligent beings or about cognition.

[1] http://www.theatlantic.com/technology/archive/2012/11/noam-c...

[2] HN thread on [1]: https://news.ycombinator.com/item?id=4729068
> You can’t keep up the pace of a sprint and finish a marathon.

I used to think this too. In reality, distance runners can keep up what we'd consider a sprinting speed (10+ mph) for the duration of a marathon. Sprinting forces your body to run more efficiently.
I wonder what the author thinks of GorillaScript [1].

[1]: http://ckknight.github.io/gorillascript/
And yet your reply condones the violence and abuse of authority. Why is that?

Here's the basic rule: as a police officer, you must be polite, fair, kind, and law-abiding, even if the public you deal with is rude, nasty, entitled, somewhat drunk, and otherwise unpleasant. Period. If you can't do that, you're in the wrong profession. And if the profession permits people who can't do that, the profession has systemic issues that need to be corrected.
Signaling and NAT traversal are two interesting pieces, as outlined.

It can get even more involved if you want to use peer identity and authenticate against an IDP. WebRTC is still in draft stage and browser implementations are still writing more code.

That said, it does provide a platform for interesting apps.

On a related note - I am curious how many people will use WebRTC directly or wrappers like those provided by twilio and similar.
Some algorithm patents do include source code but it is not that helpful. Identical algorithms can be implemented in very different ways within and across programming languages, so there is no comparative value. There are algorithmic equivalencies in implementation that look wildly different in code.

For example, in spatial indexing you can implement some widely used algorithms as either traversing the obvious space decomposition tree or doing lookups using projections onto higher dimensionality space-filling curves. The former is "obvious" but all good implementations use the latter code design because it is much more scalable in real systems even though the algorithms are equivalent.

Most algorithm patents with code go for "matches the high-level description of the algorithm" rather than "is an optimal representation of the algorithm given current computer science". That said, in my experience people are pretty good at reconstructing an algorithm implementation from patent descriptions that do not include code, assuming they have some domain expertise (i.e. in the above example, it should not be necessary to explain the representational equivalency of literal space decomposition and projections onto space-filling curves).
"A witty saying proves nothing." - Voltaire
If a cop says that about you and you are able to walk away without issues. That should be the moment you shut up and go home. Or at least cross the street down a block away from them...
It's hard to find anything about what the license was with http://freemap.co.il/ down.

This is interesting:

https://lists.openstreetmap.org/pipermail/talk/2008-January/...

(Basically it says that Ehud Shabtai was claiming ownership of the data at that point in time, it doesn't address whatever was said earlier.)
Cultural production of Ignorance.
I've skirted around alcoholism in my past, but once I recognised why I was drinking and asked myself why I was drinking I realised I could drink but as long as I didn't 'need' it.
Ferrari, Lamborghini, and RR are owned by Fiat, VW, and BMW, respectively.
Peer reviewed denialist science? Links please. (And this isn't a joke--I very much want to read this, but it looks like downvotes are easier than substantiating.)
I do tonemapping in a final compositing step of deferred rendering. Here are formulas:

http://filmicgames.com/archives/75

John Hable did a great job proselytizing virtues of linear space lighting and proper tonemapping.

http://filmicgames.com/archives/category/tonemapping

http://filmicgames.com/archives/category/gamma

There have been also SIGGRAPH course if you want to delve-in deeper:

http://renderwonk.com/publications/s2010-color-course/
No, it's not true. There are many luxury car makers who are plenty profitable. If you make a huge profit on each vehicle and you can cover your fixed/development costs then you're golden, regardless of volume. At low volume that typically means higher profit margins, but that's nothing new. Companies like Maserati, Aston Martin, and Lambourghini have sales volumes in the 1-2k per year range. Companies like Bugatti are lucky if they break 100 car sales a year.

Obviously Tesla isn't quite in the same market as those companies but that still demonstrates the point.

If you have a sub-$100k car then you generally do want higher sales volume in a fleet. If you look at, for example, Audi they have a mix of cars at a variety of price-points, which enables them to amortize development costs of shared components. That effectively raises the profit margin on their luxury margins (since the development of stuff like the frame, most of the engine, etc. is payed for by sales of the down market models).
I think you're almost there

Fructose is fructose, there's no "natural fructose" however it's one thing to eat it pure, another one in a fruit

"The problem with fructose is that the liver has only a limited ability to properly process it."

Correct, glucose can replenish muscle glycogen, fructose can't (the liver produces both types of glycogen) - http://www.ncbi.nlm.nih.gov/pubmed/3592616

"This is because the fiber provides certain nutrients"

Fibers, per definition are not digestible but are other things that may happen http://en.wikipedia.org/wiki/Dietary_Fiber

And of course glycemic index may be a problem with sugars as well.
Aside: Does anyone else find the top bar on the forbes website with the flashing headlines extremely distracting?
You are describing in a great many words how a business acquisition works. I am sure you don't mean to, but this comes off as incredibly patronizing. Do you really think JC doesn't understand this?
The neurodiverse crowd is an interesting case. Autism organizations find themselves getting criticized by them, with the stance that they "don't need fixing" - and they are correct. For those that autism is a gift, keep that gift. The people the groups are trying to help don't focus on the neurodiverse, but rather are focused on those.

If you have the ability to say "I don't need fixing" to the autism organizations, rest assured that they aren't referring to you.
People have documented this many times. It boils down to surprising features of the language.

http://johnkpaul.github.io/presentations/empirejs/javascript...

https://speakerdeck.com/felixge/javascript-the-bad-parts
tl;dr I don't like types, ergo, an altJS focused principally on adding static typing isn't good.

The author starts from the premise that static typing is bad and then concludes that typescript isn't the answe. The coffeescript article was better, this was pretty silly. I'd love to see his reviews of scala and Haskell..
> Who Maintains Type Definitions?

Hi. As a user of TypeScript in all of my projects, if I find a typing bug or a deficiency in a typing, I commit a fix to DefinitelyTyped. Or if a library isn't typed, I create a typing myself and contribute it.

> Or, what if there are type definitions, but not for the particular version of the library you need to use?

Then you don't use type definitions, and you "fall back" to untyped interactions with the library -- just like JavaScript. Or, you write those type definitions yourself, and contribute them to DefinitelyTyped. They are very open to PRs.

> How can you be sure the definitions are correct?

You usually figure that out through testing, and you either contribute fixes upstream, use casting as a hackfix, or cease to use the typing. They are never going to be perfect, but they are a hell of a lot better than nothing.

And all definitions are required to have valid code associated with them that compiles properly. Usually this is grabbed from documentation, if available. Thus, it's likely that if a typing is broken, it's in a small subtle way that won't be encountered in common use-cases.

> If you love JavaScript, warts and all, but wish it had classes, modules, interfaces and static typing then TypeScript is the answer.

I hate JavaScript. But it's all we have to work with in the browser environment, and there are many wonderful libraries available that I like to use in my projects. So, I program in it.

TypeScript makes it much easier to write large projects with multiple contributors, and it makes it much easier for new contributors to have confidence in their changes, as a whole class of JavaScript runtime errors are automatically found by the compiler through type inference/type checking. And the Visual Studio tooling is just dandy, with up-and-coming support in Eclipse and WebStorm/IntelliJ.

TypeScript is the answer for me.
Police in the U.S. are in no sense surrounded by violence. The United States in 2014 is one of the safest, least dangerous societies the universe has ever known.
What we find most appealing is the rapid initial launch framework. The growth is really just growing into our pants. It's not startup growth, rather comfortable small business growth. A million or two a year in revenue if we execute right.

The VC path is not attractive for us or for them since there's probably no exit. That doesn't mean we don't see the strong benefits of the initial huge push and mindset that accelerators foster. Make sense?
There are still problems with proof-of-stake being more manipulable and fork-prone: the incentives to converge on a single consensus are much lower. (Search for ["proof of stake" "nothing at stake"] for some related discussion.)
Knuth's MIX & MMIX are the languages of TAcO.

MMIX section is a free downloadhttp://www-cs-faculty.stanford.edu/~uno/fasc1.ps.gz

More here: http://www-cs-faculty.stanford.edu/~uno/mmix.html
Ford has had varying degrees of ownership in Mazda. For most of the 1990s and early 2000s they had controlling interest. There has been a lot of technology and design sharing. I don't follow it closely, but I think in recent years Ford as sold off a good chunk of their Mazda investment and no longer has a controlling share.
Ok, so if CoffeeScript is just JavaScript, add the parenthesis. If you need brackets to make a section of code readable or compile to "certain" JavaScript, then add them. Even the programs I work on we add parenthesis, brackets, etc for readability. Use CoffeeScript to increase productivity. Nowhere does CoffeeScript say you must use white space instead of brackets and such. Keep it simple and easy, classes are also nice; I'll be reading those are articles soon as well to gain less of a bias.
Turkey Hijacking IP addresses for popular Global DNS providers
Asserting that the reaction was predictable and in some sense understandable isn't the same as condoning it. This is the real world, and it's unavoidable that the sorts of people who are going to sign up to police the streets in the face of aggressive hobos and violent gang-bangers aren't going to be the most staid and self-controlled.
>He reports doing plenty

I'm not sure how essentially "hanging around" justifies violent treatment, solitary confinement, etc. Perhaps you could explain?
By his own account, he was ignoring police officers while interfering with their work at the scene of an accident.

You can't do that and expect to not get physically removed.
This, Facebook buying Oculus, is plain wrong. Its like we live in a world where everything that has the slightest chance of taking off or changing the world is bought out by one of the mega-corporations.
LED grow lights 85% less power usage
They also refresh the page every so on, which usually prevents reading for a normal person.
Looks more like being able to get a meta-REPL going in a running process...as could be done with LISP and Smalltalk since the 70s.
HTC admits boosting One M8 benchmarks; makes it a feature
:)

a) 2 billion

b) Zuck lying about anything?

c) The hordes of FB employees who have quit over previous privacy violations
Here's a reply to another thread.

https://news.ycombinator.com/item?id=7496786

TIL one of the buzzwords that makes people really lose grasp of reality is VR.
I've witnessed two horrific wrecks and been a witness for the cops one of those times. There's a time and a place for projecting your importance as an individual, but assisting someone else in an accident is not one such time. Do what you can until the authorities arrive and be helpful and respectful, and for fuck's sake, follow directions.

Obviously the cops should have handled the situation better, but the mature response would be to walk away.
Maybe more background to add to the story:

Originally, the source code of Waze clients was released under GPL, which AFAIR it was as branded as a part of the community-based map app.

But the company chose to not release the source code after v3.0. This is quoted from one of my emails.

In reply to your inquiry "Hi, where can we get the latest waze code?":

Thank you for your feedback.

You can find source code for the old versions (up to 2.4) on our wiki - waze.com/wiki

Version 3.0 and higher are no longer under GPL, and at the moment we are still considering if and how we will share the code for these versions.

Best regards,

I guess Waze either 1) has obtained the agreements of all open-source contributors, or 2) has completely rewritten all related source code.
Don't forget that the glycemic index of food is impacted by what else is eaten.

For example, a candy bar had a lot if simple sugars in it, but also a lot of fat, which slows gastric emptying and results in a much lower than expected glycemic index.
Ok, that's terrifying. It needs to blink and should bee smiling.

I understand that it's a lot easier to acquire a static mesh than one that's rigged for animation.
I believe there will be a day when converting CoffeeScript to just native JavaScript won't be very difficult, but until that time, it's useful as a way to have neat syntax features without having to wait for browsers to support it. Indeed, many of the features CoffeeScript introduced into the JS developer's mindset are or will be present in the upcoming ECMAScript specifications. We can only assume this trend will continue.
Audis are just cosmetically enhanced Volkswagens.
Probably because the paywall doesn't show for everyone or it's somewhat random, perhaps even based on hits?

If that's the case then seriously, that crap needs to stop. Paste at will.
He seems not to have written one for ClojureScript :)
Norvig's rebuttal is an excellent read.
Michelangelo and Melissa, the mass hysteria computer viruses
http://community.igniterealtime.org/blogs/ignite/2013/11/28/... I have used this in the past.
Learning about design / web design principles
Hi Everyone :)

I recently started a web design module in uni and actually i find it quite interesting. I guess i've been more interested in the backend stuff so far and haven't even thought much about designing properly.

So far i'm reading Arnheim, Rudolf and starting to discover Gestalt too.

My question is, what other books, websites and journals would be a good read to really understand good design elements? There are so many blogs out there i've gotten lost a few times!
Thanks :)
I disagree. As a police officer, you must be fair and law-abiding. Why must they be kind and polite?
> If you're pushing messages to a message broker, you can trivially regulate delivery on most of them by checking queue depth and throwing errors or reducing the delivery rate if they grow beyond a certain threshold.

I'm not sure what you mean. Are you talking about regulating messages going from clients to the broker? I was thinking about regulating messages from the broker to the workers. I haven't seen a broker which will let you regulate the flow on a per-consumer basis like that.

> I much prefer having the app adding itself - having the load balancer control delivery means it needs to probe for liveness, and the config needs to be updated whenever you bring resources up/down. If the endpoint can register itself, then that's one less hassle.

It's one less hassle in the control plane, and one more in the worker. I would prefer to have this stuff in the control plane rather than the worker, since it's not something directly concerned with the work being done. Separation of concerns and all that.

> With an MQ, it will stop pulling messages if it's not functioning. If it's functioning enough to keep pulling messages despite failing a health check, your app is broken

Yes. Exactly. I would like the system to do something sane in the face of broken workers.

> why was it not doing sufficient checks itself to know that it is not working? Why is there not a monitor on the same physical server with the capability to kill the offending process?

That's quite a bit more work than just taking it out of the pool. And killing the server isn't necessarily the right answer - if the instance is locking up because it's going a full garbage collection, for instance, the best thing is probably to let it finish and then put it back in the pool.

> What is the difference between monitoring for 500 errors and monitoring for errors from an MQ?

500 errors are thrown straight into the client's face. The client itself can log that something went wrong. The closest analogue with an MQ would be for the broker to log when a consumer rejects a message. Can you configure them to do that? I honestly don't know. You'll struggle to have the logs tell a story which makes as much sense, though, because the MQ doesn't have the context that exists in the sending app.

Don't get me wrong, i don't think message queues are worthless. There are problems for which they are indisputably the right solution. But i think people should be aware of the operational challenges in using them. I have seen a lot of naive enthusiasm for queues which doesn't seem to take this into account.
So would the Strangecoin value be algorithmically controlled in any way to keep it at a constant 'fiat value' exchange rate? i.e. when the 'fait value' goes down, the % of Strangecoin confiscated during a transaction increases? (Fiat value tracked through distributed exchanges' data feeds).
This is actually pretty cool. I would love to see examples like this used in high school gen-chem courses. It would probably help to keep the students' interest in what could be either an incredibly dull or exciting subject, chemistry.
It does, but it uses a very strict match. You'll notice that the first submission uses a trailing slash whereas this one does not.
This is taking censorship to a whole new level. Whats next? Are they gonna hijack the IPs for Google, Facebook, Tor exits, and everything else?
Well, it's not actually expected to be available until 2016 or 2017.
It would be nice if instead of simply saying "Well, this is rubbish" you could actually suggest alternatives that are of more value. Criticism is easy, producing excellent written work is rather more difficult.

So can you suggest better alternatives?
This is a clever solution to this problem, and there are instances where this could be helpful.

However, if you happen to be attached to FCP, and have basic rhythm, you can perform a more controlled version of this process in either FCP7 or FCPX using MultiClip/Multicam Editing.

http://youtu.be/kmFmyXWaQHM?t=3m27s

Using keyboard commands, in real time you can cut between up to 16 different video clips. I basically play my keyboard like a drumset, and the result is video that is synced to the audio, and allows more artistic choice over the content selection.
Even better, though, is not having software patents at all.

This works very well in European Union, although this is an ongoing fight between lobbyists and civil rights defenders (such as FFII and EDRi).

(Note that there are lots of European software patents already filed, but those not legally enforcible right now.)
Confirmed. With few exceptions like 9-Patch or SVG, ImageMagick is our workhorse.
My experience in trying to raise funding for a business model similar to yours had me asking the same questions. If you're not shooting for the moon in terms of business size, VCs (and thus accelerators) are just not interested. They claim that it takes just as much time to “administer” a large investment as a small one, and thus they are only interested in the companies that are swinging for the fences. There seems to be a financing gap for “mid-size” companies, ones that fall between small local businesses and companies seeking to be the next Google. There's probably a big opportunity in this niche.