Usage is pretty simple these days thanks for huge efforts made by the very talented engineers working on React Native.
When a new user signs up to your website, you may want to generate an initial profile picture for them using their initials.
Sometimes you want to cut off all socket connections for a user in your application.
A specific scenario: You deactivate a user, and while you protect your APIs from deactivated users, that socket…
Here’s a quick tip for those times when you’re querying Ecto data in iex.
You’re running a query in your terminal using iex -S mix, and the data you’re getting back is truncated at the end.
iex -S mix
%MyApp.Accounts.User…
Everyone has been in this situation at least once.
You’re relaxing, enjoying a nice afternoon working on a feature and suddenly you start seeing a bunch of traffic China doing all sorts of interesting things…
Here’s a quick snippet for you guys. Sometimes you need to know if a URL is valid or not.
A simple way to do this is by using the URI.parse/1 function.
defmodule MyApp.Helpers.UrlValidator do def valid_url(url) do case…
Versioning your API is very important as it allows you to scope implementations to a specific number in case you want to change the way things are done later down the line.
Sending out emails using Mandrill is great for both sides of your team. Your designers/marketing team can build out an email using Mailchimp’s great UI designer. You can send out emails by just replacing merge_vars.