PHPNews

Codemotion Rome 2015: A practical introduction to Golang

Written by Simone Carletti - Published on Simone Carletti
Aggregated on Saturday March 28, 2015 - Permalink

Here's the slides from the 15-minute talk Practical introduction to Golang I gave on March 26th at Codemotion Rome . They also include the link to my Github gomotion2015 repository containing the code from the live coding session.

Continue reading »


Failure to push to Heroku with Ruby on Rails and SQLite3 native extension

Written by Simone Carletti - Published on Simone Carletti
Aggregated on Friday January 1, 2016 - Permalink

Every once in a while I read questions on StackOverflow like this one where the developer is unable to deploy a Rails application to Heroku due to some error related to the sqlite3 library. The error, in general, looks like the following one remote: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. remote: remote: /tmp/build_1933bfd…

Continue reading »


Using cURL with HTTP/2 on Mac OS X

Written by Simone Carletti - Published on Simone Carletti
Aggregated on Sunday January 24, 2016 - Permalink

cURL is one of the most powerful tool for testing HTTP requests and responses. Most developers use curl to interact with HTTP APIs or to test a website. Starting from version 7.43.0 cURL (and libcurl ) supports HTTP/2 . You can perform a request using the HTTP/2 protocol passing the --http2 flag: ➜ curl -I --http2 https://www.cloudflare.com/ HTTP/2.0 200 server:cloudflare-nginx…

Continue reading »


Things you want to know about Let's Encrypt

Written by Simone Carletti - Published on Simone Carletti
Aggregated on Monday February 1, 2016 - Permalink

Let's Encrypt is a new certificate authority that entered the internet scene at the end of 2015 . Let's Encrypt is not simply another certificate authority , if for no other reason than the certificates are free, whereas the vast majority of existing certificate authorities sell SSL/TLS certificates for a price that depends on the certificate type . However, Let's Encrypt is not only …

Continue reading »


Running PHP with Caddy server on Mac OSX

Written by Simone Carletti - Published on Simone Carletti
Aggregated on Friday May 20, 2016 - Permalink

A few days ago I had to work on a small PHP script. Several years ago I used to be a PHP developer , but these days I'm using different programming languages and I had to setup my Mac OS from scratch. Since I wanted a simple and portable solution with a very low impact on my machine, I decided to use Caddy server and try to run PHP with Caddy instead of installing the traditional web …

Continue reading »


Redirecting a domain with HTTPS using Amazon S3 and CloudFront

Written by Simone Carletti - Published on Simone Carletti
Aggregated on Monday August 1, 2016 - Permalink

Table of Contents Initial considerations Configuring the Amazon S3 static site with redirect Installing the SSL certificate Configuring the Amazon CloudFront HTTPS redirect Pointing the DNS record to CloudFront endpoint Final considerations Common Errors Certificate errors Resolution errors Redirect errors This …

Continue reading »