exmqttc - Your trusty MQTT client

exmqttc is my wrapper library for the emqttc Erlang MQTT library that sprinkles on some callback magic and nice Elixir API - it could also serve as a nice example of how to used travis.ci for hex.pm release automation, test integration and so on.

https://hex.pm/packages/exmqttc

Ex Manga Downloadr - Part 7: Properly dealing with large Collections

If you read my small post about using Flow I stumbled upon a performance problem, but José Valim showed me the correct way with Task.async_stream and I just posted about it here

A basic OpenTracing demo in Elixir with Otter

I made a quick example showing how to get started with OpenTracing and Elixir. It uses the wonderful Otter library for Erlang. The example code has a mix.exs file and shows off a couple of cool features like tagging spans and adding logs.

https://gist.github.com/yonkeltron/ceb500d5f3a19c1a9ce1bed4e6298817

BetterParams for Phoenix

BetterParams is a simple Elixir Plug that lets you pattern match on Request params in controllers using Atom keys instead of String ones.

# web/controllers/some_controller.ex

def show(conn, %{id: id}) do
  # do something
end

Yep, that’s it. I wrote it because of my OCD. 😛

Ex Manga Downloadr - Part 6: The Rise of FLOW

I just posted a new blog post on how I moved my pet project code from using a custom Task.Supervisor, Poolboy and custom GenServer to control batches into the new GenStage-based Flow library. The results are quite good but not as good as I expected. If anyone have any insights, let me know.

Testing Absinthe with ExUnit

I was playing about with Absinthe and wanted to write some tests for it, I wrote up how I went about it. Testing Absinthe with ExUnit.

Build a Home Weather Display with Nerves and GrovePi

Learn how easy it is to use Elixir to build a Home Weather Display with Nerves and GrovePi: https://axelclark.com/home-weather-display-project/

Upgrading to Phoenix 1.3

In the latest episode we take an existing Phoenix app and upgrade it to 1.3: https://elixircasts.io/upgrading-to-phoenix-1.3

Connect to Running Elixir Applications with IEx Remote Shell

Read about how to use the –remsh option in IEX to connect to running Elixir applications from the command line.

EctoAutoslugField adds Ecto 2.1 version support

EctoAutoslugField is a utility library that helps you to generate slugs from your Ecto schemas.

Check it out: https://github.com/sobolevn/ecto_autoslug_field

Tutorial: Deploying Elixir applications with Docker and Digital Ocean

The deploy guide I wish existed when I first got into Elixir and Phoenix. https://subvisual.co/blog/posts/137-tutorial-deploying-elixir-applications-with-docker-and-digital-ocean

Sobelow, the Phoenix vulnerability scanner - v0.3.6

Changes include:

  • Checks for Denial of Service
  • Checks for known-vulnerable packages
  • Bug fixes and improvements

Install with mix archive.install hex sobelow

https://github.com/nccgroup/sobelow

Stateful WebSockets with Elixir’s GenStage

I had a go at using GenStage in conjunction with Phoenix channels, as the backend for an incremental search solution. I wrote up how I did this, and why I took this approach.

https://medium.com/mint-digital/stateful-websockets-with-elixirs-genstage-a29eab420c0d

Optimal order for adding lists

Optimal order for adding lists in Elixir #myelixirstatus http://minhajuddin.com/2017/06/08/optimal-order-for-adding-lists-in-elixir/

Understanding Pattern Matching

From Zero to Hero in Elixir #6

Let’s understand Pattern Matching with many examples including matching Lists, Nested Lists and Maps.

https://youtu.be/79WCxJ9TM1o

Learn Word Lists in 1 minute

Let’s master the art of Word Lists in 1 minute!

https://youtu.be/Kpu00n-mXy4

http://elixir-lang.moscow/events/5

We are hosting our 5th #elixirlangmoscow meetup. Will be talking about: ets, neural networks and philosophy. Register here: http://elixir-lang.moscow

Sobelow, the Phoenix vulnerability scanner - v0.3.2

The latest updates make it easier to scan umbrella applications, and introduce an exit flag for better integration with your CI pipeline.

Bug fixes and updates result in additional vectors being flagged.

Install with mix archive.install hex sobelow

Check out the docs: https://github.com/nccgroup/sobelow

Mango Ecommerce Demo Site in Phoenix

As an update to my Phoenix Inside Out book, I am happy to announce that a demo site is now available at http://mango.shankardevy.com

This is exactly the same commerce site that you will learn to build when you read my book Phoenix Inside Out apart from learning to build a mini-Phoenix framework and learning Practical Ecto.

Looking forward to your comments!

BTW, I’m extending the pre-order discount until 22nd June. So if you haven’t ordered your copy, order it now.

WebSockex 0.2.0

WebSockex 0.2.0 Released!

This release has some major API changes where callbacks are changed or removed without deprecation.

The affected callbacks are:

  • init/2 - Removed in favor of handle_connect/2.
  • handle_disconnect/2 - The first argument is now a map.
  • handle_connect_failure/2 - Removed with functionality rolled into handle_disconnect/2.

Checkout the v0.2.0 Changelog or the v0.1.3..v0.2.0 diff for more info.

Previous page Next page