GroupManager in scalesmall works

This is a major step in the scalesmall experiment. Members of scalesmall can now share what key ranges they are serving. The code is not scalesmall specific specific:

http://dbeck.github.io/Scalesmall-W11-W13-Group-Manager-Implementation/

Custom Types in Ecto

I use a custom Ecto type to manage data conversion.

http://learningelixir.joekain.com/custom-types-in-ecto/

SqlDust v0.1.1 supports using Ecto models

SqlDust just got a level up! As of version 0.1.1, it is possible to compose queries based on Ecto models:

import Ecto.SqlDust

City
  |> select("id, name, country.name, local_weather.temp_lo")
  |> where("local_weather.wdate = '2015-09-12'")
  |> to_sql

SELECT
  "c".id,
  "c".name,
  "country".name,
  "local_weather".temp_lo,
  "local_weather".temp_hi
FROM cities "c"
LEFT JOIN countries "country" ON "country".id = "c".country_id
LEFT JOIN weather "local_weather" ON "local_weather".city_id = "c".id
WHERE ("local_weather".wdate = '2015-09-12')

https://github.com/archan937/sql_dust#composable-queries-using-ecto-models

Phoenix is Rails 5

“Rails 5.0 is approaching, bringing with it niceties for websockets, backend-only API servers, and revamping the command layer. Version 4.0 brought turbolinks, russian-doll caching, the queue API, and a host of improvements. All of these, except maybe turbolinks, were great new features but did not fundamentally alter the way applications are built in Rails…”

Phoenix is Rails 5 by Ken Miller

Connecting machines in a local network using Elixir nodes

Distribution out-of-box is one of the great features any Elixir application can have due to how Erlang VM operates, and it is one of the reasons the language is gaining popularity.

I wrote a blog post showing the basics of how connect 2 machines in a local network.

1,000 followers // Elixir Carnival

The @elixirstatus Twitter account just passed 1,000 followers. Seeing both ElixirStatus and the Elixir community as a whole grow in numbers without losing its original appeal makes me tremendously happy.

I wrote a blog post this weekend in anticipation of this: Elixir Carnival

How to get Elixir syntax highlighting in github markdown files

Being an elixir newbie, I wanted to go about exploring the language through different experiments and make notes of my learnings along the way using github markdown files as they support syntax highlighting for different programming languages. I wasn’t sure how to highlight elixir syntax in a markdown file. I wrote a post(please find the link below) on how did people from the elixir community help me figure this out.

http://boddhisattvadedicates.blogspot.in/2016/02/how-to-get-elixir-syntax-highlighting-in-github-markdown.html

Setting Up @droneio CI for Elixir and Phoenix on a tight budget

http://ruby2elixir.github.io/posts/2016/02-04-setting-up-drone.io-ci-for-elixir-and-phoenix.html

Tutorial how to setup open-source Continuous Integration with Drone.io for a semi-complex “real life” umbrella project with 2 Phoenix apps.

Happy coding and happy testing!

Writing a Blog Engine in Phoenix and Elixir: Part 7, Adding Comments Support

After a long delay, I finally published the next part in the “Writing a Blog Engine in Phoenix and Elixir” series. This time, we start building the framework for adding comments to our posts!

https://medium.com/@diamondgfx/writing-a-blog-engine-in-phoenix-and-elixir-part-7-adding-comments-support-7dfc17dd474e

Magical SqlDust: Writing complex SQL has never been so easy

Just released my first Elixir Hex package called SqlDust (after just one week of Elixir programming). Easily generate complex SQL queries.

https://github.com/archan937/sql_dust

Stateless vs stateful web apps

The technical requirements and implications of running stateful web apps, and how Phoenix can you with it.

http://blog.plataformatec.com.br/2016/02/stateless-vs-stateful-web-apps

prepare_changes and counter cache

How not to use callbacks when you think you absolutely need them.

https://medium.com/@kaisersly/prepare-changes-and-counter-cache-abd93b8a20a#.jgrm5oay7

Omise Client Library for Elixir

A library for interacting with Omise Payment Gateway https://github.com/teerawat1992/omise

Real time currency converter

My first elixir library! A realtime currency converter https://github.com/paulodiniz/xe

First ElixirRuhr Meetup on 11th Feb 2016

Starting our first meet up on 11th Feb 2016. Talks by @rrrene and @ConstantinRack. Details at: elixir.ruhr

How to contribute to Elixir

Some notes I took on contributing back to the language

Fragments in Ecto

I work with the fragment function in Ecto to add custom SQL to a query.

http://learningelixir.joekain.com/fragments-in-ecto/

Elixir Best Practices: When to Use Structs, String-keyed Maps, and Atom-keyed Maps

Some simple rules for what to use when, and why.

https://engineering.appcues.com/2016/02/02/too-many-dicts.html

(ERRATUM) Filtering from params in Phoenix

My solution didn’t work with default values. I added an erratum to my article :

https://medium.com/@kaisersly/filtering-from-params-in-phoenix-27b85b6b1354#.ohvrfm8wk

Elixir Best Practices - Working with Deeply Nested Maps

Easier than you think

Previous page Next page