How to: Arduino Pomodoro Timer – part 1/2

Schematics and code to create your own Pomodoro timer on a breadboard using Arduino Those who follow me on Twitter probably saw pictures and quick videos of my digital Pomodoro timer prototype. I used the case of a regular, mechanical timer and built a little Arduino on a breadboard (like, really barebones using a microcontroller) to fit inside it. This is how it looks like: This was my first hardware prototype ever and I’m quite proud of it! A big thank you to my awesome husband for helping me whenever I got stuck. In this first part I will show the schematics to create…
View Post

Configuring SSH server access for Ansible

This post is a practical guide on how to configure your SSH server access to use Ansible in the simplest and most efficient way. This practical guide will show how to setup SSH keys for a server/VPS so you can use Ansible from your local machine in a very straightforward way. This is what we want to achieve, in order to make things simple and efficient – no need for extra parameters when running Ansible: Make sure you have a SSH keypair for the current user* Make sure you have a user in the server, with the same username as your current user…
View Post

Configuring a multistage environment with Ansible and Vagrant

Ansible is a powerful and clean tool for automation. This post covers the configuration of a multistaging environment, consisting of one local development environment controlled by Vagrant, and one or more remote servers (staging, production etc) that will be controlled directly by Ansible, reusing a pre-existent development environment provisioning. These instructions cover the server and control machine configuration needed to run Ansible in a multistage environment, using Vagrant for controlling a local dev VM and one or more (production, staging) remote servers that will be controlled via Ansible. This way you can reuse most part of your Vagrant provisioning to create a powerful…
View Post

Silex and Localization (i18n/L10n): TranslationServiceProvider

I’ve been using Silex* in a large variety of projects in the last year, and I always find something new to make my life easier. Last week, I was dealing with internationalization / localization (i18n / L10n) – a quite relevant topic when talking about web projects aiming a high audience. This post shows how to make an easy structure who automatically loads language files written in YAML, using the TranslationServiceProvider. Although the post is focused on Silex, I believe it’s also compliant with Symfony 2. If you wanna go directly to the code, there’s a GitHub repo with the…
View Post

Getting started with Silex – the php micro framework based on Symfony 2

This post aims to show the basics, and how to get started with the php micro framework Silex– which, by the way, is my favorite php framework nowadays. It’s based on Symfony 2, but focused on smaller applications. It has a really comprehensive and intelligent schema for url rewriting (so-called “Routes”) that brings to PHP one of the great things you can find in Django. It’s concise, extensible – using Pimple and Composer for dependency management – and secure. Oh, almost forgot: it’s practical, easy to learn and super versatile – according to my own experience with the framework so…
View Post