Recent submissions

Comment · 12 years ago
Comment · 12 years ago
.editorconfig supports domain specific properties: https://github.com/editorconfig/editorconfig/wiki/EditorConf.... Its encouraged that other extensions/tooling take a dependency on .editorconfig to introduce their own configuration.
Comment · 13 years ago
"mixing relevance and popularity is nothing short of impossible in Elasticsearch. Either you sort by relevance or by using a popularity attribute, you cannot mix both."

This is a false statement,

http://www.elasticsearch.org/guide/reference/query-dsl/custo...

This combined with scripts give you unlimited possibilities to alter you score based on whatever you please. The syntax is a bit wonky in the current version perhaps but awesomeness is on the way:

https://github.com/elasticsearch/elasticsearch/issues/3423

"Unfortunately Elasticsearch fuzzy matching does not work out of the box, is complex to customize, and does not provide the ability to highlight prefixes."

There are more ways to catch typo's then fuzzy and levensteins, ngrams for instance. Elasticsearch allows you to do both but yes its true you have to know your way around analyzers/tokenizers and mapping a little bit to get the best results in elasticsearch. If you use the ngrams approach highlighting also works alot better.

"This sorting configuration might seem pretty explicit, but it is in fact quite dangerous as it conflicts with the boost on fields. To better understand the problem, let’s look at the query ‘the rains’:"

Its true sorting trumps boosting, but given the assumption you cannot alter _score this whole section seems contrived.

In the instant search section they use elasticsearch's querstring query to search for `world w*` this is indeed a very slow way since it will generate a wildcard query in the background they probably should have written the query using a phrase prefix query.

Comment · 13 years ago
Self promotion: https://github.com/Mpdreamz/html5-piano

Same concept but allows you to pick chords.

I let the html5piano.com domain expire but its still up on Azure:

http://html5piano.azurewebsites.net/

Comment · 14 years ago
Magic strings can be avoided by always using a viewmodel ,using the lamda overloads on HtmlHelper (@Html.*) also T4MVC is a godsend strongly typing routes, url lookups, viewnames, filenames.

Most of these have been around since MVC 1.0.

Hope these pointers will keep you magic string free :)

Comment · 14 years ago
the difference is that CTRL+SHIFT+F works from every tab in the chrome inspector and searches globally i often just copy paste the line i want to debug from my editor in there be it a function or declaration within a function.
Comment · 14 years ago
CTRL+SHIFT+F searches through all the scripts. I use this primarily to navigate through code i.e CTRL+SHIFT+F "function showDialog("
Comment · 14 years ago
Cool, get the guys rumbling to contact me very interested in their opinions.
Comment · 14 years ago
Are you guys still using NEST?
Comment · 14 years ago
I created html5piano.com with pretty much the same end goal of using browser generated sounds versus static audiofiles but got sidetracked with implementing chords and sequencer and then moved on. Great to see it implemented using data uri's!

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton