I am assuming this is a Windows thing. Regex seems to treat \r\n as 2 characters but String treats them as one trying to strip whitespace off the front of a string iex(17)> regex = ~r/^\s+/ ~r/^\s+/ iex(18)> junk = "\r\n\r\nabc" "\r\n\r\nabc" iex(19)> Regex.run(regex, junk, return: :index) [{0, 4}] iex(20)> String.slice(junk, 4..-1//1) "c" iex(21)> String.graphemes(juk) ["\r\n", "\r\n", "a", "b", "c"] iex(22)> Am I reading this correctly (absolute elixir noob). What the correct way to fix it...| Elixir Programming Language Forum
@sorentwo or anyone really I may need some help with Oban. My set up: oban 2.19.4 oban_pro 1.6.2 oban_web 2.11.1 Since couple of days, some jobs are getting stuck in “scheduled”. I think this is related to amount of jobs scheduled in particular queue. I have currently 3.5k jobs “scheduled” and most of their scheduled_at time has already passed, but they have not executed. In fact, they did not move from “scheduled” to “available”, and when I click “Run now” in Oban Web, th...| Elixir Programming Language Forum
Today’s a PragProg bonus day! Condition: Simply post on the forum today! Once you have met this condition, feel free to get your bonus entry 🙂| Elixir Programming Language Forum
Phoenix: Test smarter, not harder - Fredrik Teschke | Code BEAM Europe 2024 Comments welcome! View the code-sync tag for more Code Sync talks!| Elixir Programming Language Forum
In Ecto programming, could this be described as an anti-pattern? # Database operation Repo.some_operation(...) rescue error -> Logger.error("Failed to do X: #{inspect(error)}") {:error, "Generic message"} # ← System failure as business error It seems like the answer is yes. I’m in the process of ripping out a bunch of this in a codebase. FYI, the Dialyzer unmatched_return was the hint that I had a problem with my error handling. I’m a believer now. ▶ EDIT: Here's ChatGPT o3-pro's a...| Elixir Programming Language Forum
After its inclusion in Elixir, we will have two modules: Stream.Data and ExUnit.Properties. The library name (stream_data) will be fully gone by then. 🙂| Elixir Programming Language Forum