Skip to main content

Questions tagged [elixir]

Elixir is an open-source, dynamic, compiled, general purpose functional programming language. It was designed to be fully compatible with the Erlang platform and is well suited to writing fault-tolerant, distributed applications with soft real-time guarantees and the ability for hot-code-swapping.

0 votes
1 answer
12 views

how generating executable in elixir

Even with all the correct imports and the mix file configured correctly, I can't generate the executable and it gives the following error: warning: DesafioCumbuca.main/1 is undefined or private. Did ...
wellington miguel's user avatar
0 votes
2 answers
36 views

Method/Pattern to Maintain Constant Set of Topic Strings in Elixir

I am trying to use the Phoenix Framework's PubSub module in a number of GenServers, however I would like to have a well-defined list of topics to reference instead of raw strings. Currently my code ...
Mr. Tea's user avatar
  • 76
-1 votes
1 answer
49 views

Getting SENDER_ID_MISMATCH, although I think I synchronized the service account and google.services.json files

I'm trying to convert from Legacy FCM messages to the V1 API. I'm using Elixir, so using the Pigeon OSS (v2) to provide the FCM interface, and have some improvements to that to use the Goth OSS to ...
Sinc's user avatar
  • 647
0 votes
1 answer
32 views

Is there a simple solution to my Phoenix problem rendering a response in JSON from a (Pigeon) Google FCM V1 request containing `{:token, my_token}`?

I'm sending the new FCM V1 API messages using Pigeon (v2.0.0) through Phoenix (1.7.12). Part of the new messaging includes the field {:token, my_token} in the outgoing message. When Phoenix gets the ...
Sinc's user avatar
  • 647
2 votes
1 answer
31 views

How to get rid of debug messages from libraries in Elixir script?

I have a script which uses some libraries which seem to be running Logger in debug mode. First lines of my script: #!/usr/bin/env -S ERL_FLAGS=+B elixir Mix.install([{:req, "~> 0.5.0"},{:...
TNT's user avatar
  • 3,512
0 votes
1 answer
18 views

Can't get the Phoenix.LiveComponent example to work

I'm following the official documentation on how to build a LiveComponent. I get this error which I don't understand why: I get this error when I load /cameras: [error] GenServer #PID<0.864.0> ...
martins's user avatar
  • 9,919
2 votes
1 answer
31 views

How to change the tick labels from decimals to integer in ContEx library?

Hello fellow learners. I am creating charts in my Elixir project, using a Elixir library ContEx - https://hexdocs.pm/contex/Contex.html I have a barchart. Below is the code i have used to create this ...
Sangeetha ilango's user avatar
0 votes
1 answer
21 views

Elixir error when trying to upload pdf from pdf generator

I'm trying to upload and create a download prompt for a generated pdf via the store function but I keep getting an error as if a pdf hasn't been generated but I can confirm that there is a pdf file ...
Jonathan Talbot's user avatar
0 votes
1 answer
37 views

How to set fixed value for y-axis using elixir library called contex?

Hello fellow learners. I am creating charts in my Elixir project, using a Elixir library ContEx - https://hexdocs.pm/contex/Contex.html I have created a Bar chart. In that chart, I want to set the ...
Sangeetha ilango's user avatar
0 votes
1 answer
29 views

How can I pass variables to an elixir/ecto subquery?

I have this query in ecto below: query = from(tx in Treatment, join: ax in assoc(tx, :ax_sheet), join: ev in assoc(ax, :visit), join: evr in assoc(ev, :visit_revisions), ...
Dan Rubio's user avatar
  • 4,779
0 votes
0 answers
18 views

How to debug why my elixir app is crashing in kubernetes environment

I'm trying to deploy my app in our internal Kubernetes instance. My Dockerfile is the standard one generated from mix release here is the logs of the container. 08:13:08.050 [info] Running Todo....
elixirfan2001's user avatar
0 votes
1 answer
32 views

How to use xandra (elixir package) in gleam?

I wanted to try out ScyllaDB with Gleam programming language (am beginner) but struggling with establishing connection from gleam. I wasn't able to find any cassandra drivers in gleam so using @...
Tuugii's user avatar
  • 1
0 votes
1 answer
30 views

Getting id_token with google cloud (replicate gcloud commands with curl)

I need to get id_token to access the third-party API. I have a credentials.json file with a private key, client_id, etc. I would need to replicate gcloud commands: gcloud --log-http auth activate-...
Oleg Tarasenko's user avatar
0 votes
0 answers
22 views

gigalixir page not found

I'm trying to create a database via clia, but running into "Page not found". I then created a db in the web ui, but I'm still unable to get going via cli. Any pointers? $ gigalixir pg:create ...
Geoff Langenderfer's user avatar
0 votes
1 answer
53 views

Phoenix/Elixir: How to render a list using recursion?

I have a db table for categories where a category can be a sub-category of a category in the same table. For example: category_id category_name parent_id 1 Vocabulary nil 2 Animals 1 3 Food 1 4 ...
Akanksha's user avatar
  • 188

15 30 50 per page
1
2 3 4 5
640