TommyBlue.it
  • Home
Tommaso Visconti

Tommaso Visconti

222 posts •
elixir

API Authentication with Phoenix and React - part 2

In the first part of this post I've shown how to configure the API server to let the user authenticate, return an authentication token, and request it to access protected routes. Now I'm

Tommaso Visconti Tommaso Visconti
elixir

API Authentication with Phoenix and React - part 1

Scenario: you just wrote a cool web app using React for the frontend part and Phoenix as the API server.  Then you realize everybody can poke around your stuff and you decide it’s time to restrict the access to known users, how to do it?

Tommaso Visconti Tommaso Visconti

React+Sass+Typescript with Phoenix framework using Webpack

If you’re playing with Elixir and Phoenix you’ll probably already know that Phoenix uses Brunch.io to build the assets pipeline. I initially started building my app with React / Redux + SASS

Tommaso Visconti Tommaso Visconti
container

How to access docker containers with nsenter

Since the 0.9 version, Docker is shipped with the libcontainer execution driver and the containers can be accessed with the nsenter util (e.g. you don't need to install SSH in a

Tommaso Visconti Tommaso Visconti
node

Basic setup for a Node.js-based TDD Code Kata

In the last post I suggested a minimal setup to begin with ruby-based TDD. In this post I want to show a possibile minimal setup for node.js-based TDD (node.js and npm

Tommaso Visconti Tommaso Visconti
ruby

Basic setup for a Ruby-based TDD Code Kata

In the last weeks with the guys of the Firenze Ruby Social Club we started to think about organizing some Code Katas to play with test-driven development and yesterday we met to play

Tommaso Visconti Tommaso Visconti
rails

How to logrotate rails logs

If you deploy a rails app forgetting to configure logs automatic rotation, few weeks later won't be difficult to find something like this: $ ls -lh log/production.log -rw-rw-r-- 1 www-data www-data 93,

Tommaso Visconti Tommaso Visconti
ruby

Security checks for Ruby apps

If you, like me, have a lot of ruby apps and want to check if the code is vulnerable, Codesake::Dawn could be a useful gem. This gem supports Rails, Sinatra and Padrino

Tommaso Visconti Tommaso Visconti
linux

How to avoid mysqldump --events warning

Since MySQL v.5.5.29 the mysqldump command can generate the following error: -- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly. An example of mysqldump for

Tommaso Visconti Tommaso Visconti
ghost

Generate the sitemap of a Ghost blog during deploy

Waiting for a sitemap generator inside the core of Ghost (planned as "future implementation") I decided to implement a way to generate an up-to-date sitemap.xml during deployment. As you can

Tommaso Visconti Tommaso Visconti
ghost

Deploy ghost blog with capistrano, rbenv and nvm

I just moved this blog from Jekyll to Ghost (v.0.4.2 while writing this post) and I had to find a fast way to deploy new changes to the server. I'm

Tommaso Visconti Tommaso Visconti
jekyll

Una nuova casa?

Recentemente non sono riuscito ad aggiornare molto questo blog. Spesso la causa non è stata la mancanza di contenuti, ma la non immediatezza della piattaforma. àˆ vero, con Jekyll mi sono divertito e

Tommaso Visconti Tommaso Visconti
informatica

Git: Content-addressable filesystem and Version Control System

GIT: Content-addressable filesystem and Version Control System from Tommaso Visconti

Tommaso Visconti Tommaso Visconti
informatica

Automagically create and bootstrap Chef nodes on VMware vSphere with knife esx

Recently I decided to stop bothering me with "standard" system administration and I switched to a more devops-oriented administration using Chef. After a few days I found a very useful gem,

Tommaso Visconti Tommaso Visconti
informatica

How I deploy Rails apps

In various mailing lists I read a lot of threads about deploying a Rails app. I want to contribute to the topic with this post, where I'll describe how I'm now deploying my

Tommaso Visconti Tommaso Visconti
informatica

Ruby e i linguaggi funzionali

Ho avuto il piacere di vedere questo interessante video del talk di Pat Shaughnessy al Goruko 2013, intitolato Functional Programming and Ruby in cui, appunto, Pat introduce alla programmazione funzionale e mostra come

Tommaso Visconti Tommaso Visconti
informatica

Bip: un proxy IRC per rimanere sempre connessi

Bip è un proxy IRC, ovvero un demone che rimane collegato ai server IRC anche quando tu non lo sei. Quando poi ti ricolleghi a Bip ritrovi lo storico dei messaggi dalla tua

Tommaso Visconti Tommaso Visconti
informatica

Paypal Express Checkout with Ruby on Rails and paypal-sdk-merchant

In my last work, Agrimè.it, an ecommerce built using Ruby on rails, I had to implement the cart payment using Paypal Express Checkout. Sadly, I found that was the worst time to

Tommaso Visconti Tommaso Visconti
jekyll

Come migrare da Wordpress a Jekyll ed essere felici

Sito statico? Secondo i miei piani questo questo doveva essere il primo post scritto nel nuovo sito realizzato con Jekyll. Il parto è stato un po' più lungo del previsto (giusto di 12

Tommaso Visconti Tommaso Visconti
informatica

Icinga: Could not stat() command file

Se dopo aver installato Icinga 1.6.x su una macchina Ubuntu server non siete in grado di inviare comandi al server icinga per problemi di permessi sul file /var/lib/icinga/rw/

Tommaso Visconti Tommaso Visconti
informatica

Rails Recipes review

I write code using Rails since 3 or 4 years now, but the reading of Rails Recipes, Rails 4 ed. by Chad Fowler suprised me with helpful Tips & Tricks at every page. This

Tommaso Visconti Tommaso Visconti
informatica

Passare a Vim grazie ad Emacs

Grazie Sciamp per avermi convinto a passare a Vim parlandomi di Emacs :) Lo so, sembra uno scherzo, eppure è proprio vero! Era da tanto che volevo cambiare editor passando da Textmate a qualcos'altro,

Tommaso Visconti Tommaso Visconti
jekyll

Create a contact form for Jekyll

As I promised to a reader who wrote me an email some days ago, with this post I'll explain how I built the contact form of this website using Sinatra and Sendgrid. As

Tommaso Visconti Tommaso Visconti
informatica

Wunderlist on Fedora 17

After the update to Fedora 17 (64bit), Wunderlist stopped woking with the error: ./Wunderlist: symbol lookup error: /lib64/libgdk_pixbuf-2.0.so.0: undefined symbol: g_bytes_unref It seems to have some

Tommaso Visconti Tommaso Visconti
informatica

Rubyfatt 1.0 - software di fatturazione per partite IVA

Approfittando della pausa estiva sono riuscito a lavorare un po' su Rubyfatt, il software che mi sono scritto per la gestione della mia partita IVA. Senza dilungarmi troppo, dalla versione 1.0 il

Tommaso Visconti Tommaso Visconti
TommyBlue.it © 2018
Latest Posts Ghost