How to join strings in Elixir?

If you just want to join some arbitrary list: “StringA” <> ” ” <> “StringB” or just use string interpolation: “#{a} #{b}” If your list size is arbitrary: Enum.join([“StringA”, “StringB”], ” “) … all of the solutions above will return “StringA StringB”

How can I schedule code to run every few hours in Elixir or Phoenix framework?

There is a simple alternative that does not require any external dependencies: defmodule MyApp.Periodically do use GenServer def start_link(_opts) do GenServer.start_link(__MODULE__, %{}) end def init(state) do schedule_work() # Schedule work to be performed at some point {:ok, state} end def handle_info(:work, state) do # Do the work you desire here schedule_work() # Reschedule once more … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)