Programming how-to posts

how-to posts and tips related to programming
Αυτή η σελίδα είναι διαθέσιμη και στα ελληνικά.
Mongoid - Inheritance: change embedded document's type via nested attributes
How to change the type of an embedded document via nested attributes.

How to write better emails
Tips for writing effective emails avoiding misunderstandings with examples from the software development world.

How to remove duplicate lines from files preserving their order
How to remove duplicate lines of a file in Linux without sorting or changing their order (awk one-liner explained).

How to manage nested objects in Elasticsearch documents
How to add, update and delete nested objects in Elasticsearch documents using the Update API and painless scripts.

Elasticsearch bucket aggregations and faceted navigation - facets
A step by step tutorial for using Elasticsearch bucket aggregations to implement faceted navigation a.k.a. facets.

Change brightness with the function keys on iMac running Ubuntu or Debian

In this post I will describe the steps I had to follow to be able to change the brightness on my iMac using the related keyboard function keys.


How to add a custom HTTP header in Rails
Set custom HTTP headers in responses of a Ruby on Rails application.

Creating a bash completion script
A tutorial for adding tab completion to your scripts using the Bash Programmable Completion functionality.

How to create a favicon from an image
Quickly create a favicon with imagemagick from an image (png, jpg etc)

Rails radio buttons and required boolean attributes
How to deal with required boolean attributes and radio buttons in Ruby on Rails.


Displaying posts 1 - 10 out of a total of 11.