Trifork Blog

Posts by Gianluca Ortelli

Server-side clustering of geo-points on a map using Elasticsearch – continued

March 26th, 2014 by
(http://blog.trifork.com/2014/03/26/server-side-clustering-of-geo-points-on-a-map-using-elasticsearch-continued/)

In a previous post I described a problem of data visualization and a possible solution provided by a plugin of elasticsearch. I noticed that elasticsearch might one day evolve to make the plugin unnecessary. That day seems to have come: starting from version 1.0.0, elasticsearch includes Aggregations, a new API for data mining. In this post I’ll show you how to use aggregations to reproduce the functionality of the plugin.

Read the rest of this entry »

Firefox OS at GOTO Amsterdam 2013

October 7th, 2013 by
(http://blog.trifork.com/2013/10/07/firefox-os-at-goto-amsterdam-2013/)

FirefoxOS.2I attended the GOTO Amsterdam 2013 conference at the Beurs van Berlage. A nice coincidence happened to me while being there: I attended a talk which heavily promoted Firefox OS as a platform for mobile HTML5 development. Next thing I know, I win a Firefox OS phone at a trivia organized at a completely different talk!

To give you some background, Firefox OS allows you to build mobile applications using web technology (HTML, CSS and Javascript). There are already web standards, or about-to-be standards which allow a web app to access device specific functionality. For example, reading the orientation of the phone (http://dev.w3.org/geo/api/spec-source-orientation.html). The OS exposes many of these standards, so that an app developer can code features in Javascript which would be normally implemented using native code.

Read the rest of this entry »

Server-side clustering of geo-points on a map using Elasticsearch

August 1st, 2013 by
(http://blog.trifork.com/2013/08/01/server-side-clustering-of-geo-points-on-a-map-using-elasticsearch/)

Plotting markers on a map is easy using the tooling that is readily available. However, what if you want to add a large number of markers to a map when building a search interface? The problem is that things start to clutter and it’s hard to view the results. The solution is to group results together into one marker. You can do that on the client using client-side scripting, but as the number of results grows, this might not be the best option from a performance perspective.

This blog post describes how to do server-side clustering of those markers, combining them into one marker (preferably with a counter indicating the number of grouped results). It provides a solution to the “too many markers” problem with an Elasticsearch facet.

Read the rest of this entry »

Amsterdam Clojurians – my impression

December 18th, 2012 by
(http://blog.trifork.com/2012/12/18/amsterdam-clojurians-my-impression/)

It was a while ago, but I still wanted to share this my insight from Saturday 27th October, was the first all-day conference of the Amsterdam Clojurians which took place in the offices of Backbase. As a Clojure beginner and recent attendee of the meetup, I joined as it was a great opportunity to find a concentration of passionate people and talks about the Clojure planet.

About the state of my knowledge of the language: I started to study Clojure a few months ago, I’m now reading a book, watching videos, reading articles and checking out code, plus I’m growing my little pet project. I’m grasping the concepts, but can’t yet “get in the flow” while coding because I keep bouncing into many little difficulties, especially with the tooling (masochistically, I decided to code using Emacs, without having any prior experience with that editor!). So, predictably, the conference taught me a lot and some of those experiences, I want to share with you.

Read the rest of this entry »