Uploading to Google Cloud Storage using Arc and Phoenix

In this post I will demonstrate how to upload to Google Cloud Storage using Arc and Arc.Ecto in Phoenix. There are several examples on how to use Arc in combination with S3 or local file uploads but the GCS integration is a bit more unknown. I assume you have an up to date elixir installation and know your way around Phoenix and GCS. mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez mix phx.new web --no-brunch Follow instructions to configure your postgres credentials in config/dev. »

Dynamic image resizing with Google Cloud Functions

For a small project I needed dynamic image resizing, meaning I would call an image in an url, append some parameters for resizing and return a smaller image, so something like example.com/image.jpg?w=50&h=50. Now there are several open source projects capable of doing that, most notably Thumbor. However, I wanted to try something new. I recently dabbled a little with Google Cloud Functions and it seemed like a good candidate. However, I feared the initial spin-up time of the functions might be problematic. »

Upgrade js dependencies with yarn

A quick trick to upgrade the javascript dependencies in your project. Use the command $ yarn upgrade-interactive It will show you an interface to select the packages you want to upgrade. The packages listed in red would be upgraded when you would execute the $ yarn upgrade command. Yellow packages are semver incompatible, meaning that they may be incompatible with your code. Extra caution is needed when upgrading those. You can use space to select the packages, press enter to install them. »

Adding Elm to a Rails 5.1 application

Note: Webpacker update Although this tutorial will still work it has been superseded by the addition of Elm to the webpacker gem. See this commit and the entry in the README. The end result is nearly the same. Adding Elm to a Rails 5.1 application The release of Rails 5.1 (http://weblog.rubyonrails.org/2017/4/27/Rails-5-1-final/)has brought some interesting changes for frontend development. Most notably is that it comes with yarn, a tool to manage your javascript dependencies from NPM. »