Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
104 views

I have few node microservices connected to single postgres db. I also have an elixir service for realtime message passing between BE and FE. I am now enhancing realtime service with some additional ...
Abhinav Kulshreshtha's user avatar
Advice
0 votes
1 replies
58 views

I am getting this when trying to test my Elixir application: $ mix test ** (Mix) the application :sweetsql has a different value set for key DBConnection during runtime compared to compile time. ...
mljrg's user avatar
  • 4,698
0 votes
1 answer
115 views

I have this way to compare user accounts, to help prevent duplicates. When I do the compare I pass in the two accounts, and the function returns 0 -> 1.0 where 1.0 is a perfect match. There is ...
dave atwork's user avatar
0 votes
1 answer
96 views

In my project I'm compiling templates into functions with EEx.function_from_file. The process is automated with the __using__ macro, the name of the function is the basename of the file while the name ...
mszmurlo's user avatar
  • 1,349
1 vote
1 answer
155 views

I'm developing an LSP for the Elixir language. The way it works at a high level is that it spawns a VM to build the user project, and I need to find the user's elixir executable to ensure the VM that ...
i Dorgan's user avatar
0 votes
2 answers
99 views

Hi I have a elixir code which defmodule Test do def testScope do biolink = %{} biolink = biolink |> Map.put("slug","qweqw") IO.inspect(biolink) if true do ...
amar's user avatar
  • 4,354
1 vote
0 answers
87 views

I'm doing the basic getting started tutorial at the Elixir Phoenix website: https://hexdocs.pm/phoenix/request_lifecycle.html I followed the instructions for creating a basic page via: route ...
Indeche Ojukwu's user avatar
1 vote
1 answer
151 views

I'm working on my first Elixir / Phoenix project, having spent my last decade in Rails, and I find myself missing something I'm to having easy access to. Rails has a CurrentAttributes class, which ...
Chowlett's user avatar
  • 47k
0 votes
3 answers
177 views

I'm looking for a general algorithm or approach to solving this type of problem (a name or some keywords, I don't know what to Google for). I have a list of options. All of them are valid, but some ...
Lukas Knuth's user avatar
  • 25.8k
0 votes
0 answers
97 views

I'm still learning Phoenix LiveView and trying to make a simple paginated list of teams using stream/3. The first page loads and shows fine, but when I click a "load more" button to add more ...
Miles Knaebe's user avatar
2 votes
1 answer
298 views

I am currently playing around with Neovim and ElixirLS. I have two very similar Phoenix projects, but the ElixirLS integration only works for one of them and I can't figure out what is the reason, ...
Jan's user avatar
  • 85
2 votes
0 answers
45 views

Please tell me how to connect using a proxy user, and is such a connection supported? For example, user like “proxy_user[actual_user]” ConnOpts = [ {host, Host}, {port, Port}, {user, “proxy_user[...
Aleksey Samotokin's user avatar
0 votes
0 answers
53 views

I have an image of text, created this way: image_of_text = Image.Text.simple_text!( "This is some text with an [icon] surrounded by square brackets", [ width: 500, height: 100, font_size:...
Cody Jennings's user avatar
3 votes
0 answers
226 views

I can't figure out how to resolve this problem. I tried everything, but it does not work: iex(2)> HTTPoison.get("google.com") {:error, %HTTPoison.Error{reason: :nxdomain, id: nil}} Even ...
ale.'s user avatar
  • 31
0 votes
1 answer
75 views

When I run mix test, the supervision tree declared in Application.ex attempts to start, which in turn attempts to start AMQP connections, but because the AMQP broker is unavailable in the test ...
Stephan Meijer's user avatar
0 votes
0 answers
53 views

I am trying to integrate monitor video.js in my Phoenix app. https://www.mux.com/docs/guides/monitor-video-js#2-initialize-mux-data I followed the mux docs from the above link. I did set up all things ...
bala15's user avatar
  • 31
-1 votes
2 answers
96 views

Title How to Integrate Phoenix LiveView with DataTables.js Without DOM Conflicts? Versions Phoenix: 1.5.7 LiveView: 0.15.7 DataTables.js: 1.11.4 Problem I’m using Phoenix LiveView to render a ...
Thomas's user avatar
  • 3,042
0 votes
1 answer
41 views

I am using pow package for auth. I am trying to logged in user after confirms email instead of redirecting login page. This is controller callback method def before_respond(PowEmailConfirmation....
Aashish Chakravarty's user avatar
1 vote
0 answers
85 views

I have umbrella app where i have two repos in witch one needs some data from second and that's why.And app here is just poc to check if it has any sense... I am facing an issue with product cache ...
IvonaK's user avatar
  • 346
1 vote
1 answer
137 views

I have some dropdown menus in the side nav. When I click on a dropdown menu item, the dropdown menu collapses. It is a bit annoying for the user. My app is built on phoenix framework. I also used ...
Mostafiz Ur Rahman's user avatar
2 votes
1 answer
105 views

I've recently been shocked by formatter's suggestion to remove structs from some places, like: {:keep_state, touch(%Data{data | booking: booking})} formatter suggests following replacement: {:...
mynameisdaniil's user avatar
0 votes
1 answer
137 views

I'm pretty new to Elixir, Phoenix and Ecto (much more comfortable with Rails), and I'm finding it hard to wrap my head around changesets and validations, especially when it comes to associated objects....
Chowlett's user avatar
  • 47k
1 vote
1 answer
518 views

Elixir's mix build tool gives error running the command: ...> mix new tutorials ...\code> size_object: matchstate term not allowed I first installed Erlang then Elixir (choco install elixir) ...
Ravi Mishra's user avatar
0 votes
0 answers
152 views

I'm trying to implement a grouping of rows by a logical ID (edit history). But I cannot find anywhere in the docs where autoincrement is listed as a parameter except for the primary key field ...
Jason's user avatar
  • 3,225
1 vote
1 answer
75 views

Here, José Valim explicitly wrote that it isn't persistent. But the official documentation here (5th para.) says otherwise, it seems. I'm confused because I don't know how to check it myself yet. Can ...
al.hram's user avatar
  • 11
0 votes
0 answers
59 views

Hello does anybody know if embedded live views created via: <%= live_render(@socket, EmbeddedLiveViewModule, id: "embedded") %> can be run inside conditional flow like this: <div :...
Alan Guzek's user avatar
0 votes
2 answers
142 views

The image below is an app that I am working on and attempting to add a feature to. https://imgur.com/a/f1dEP0E Quick description of problem. In the video below when I click the Hardware heading each ...
William's user avatar
  • 4,590
1 vote
1 answer
75 views

For my elixir project I have a following subscription in my lib/graphql_user_web/schema/subscriptions/user.ex: defmodule GraphqlUserWeb.Schema.Subscriptions.User do use Absinthe.Schema.Notation ...
jl118's user avatar
  • 341
0 votes
2 answers
54 views

Background I am trying to write some code to exemplify the power of behaviours in Elixir. As a result, I am trying to implement this diagram: Basically, I have a Car module, which depends on a ...
Flame_Phoenix's user avatar
2 votes
3 answers
378 views

Does someone know, what is the limitation in Ecto that the insert all is not made to be working with changesets? Usually I need to create change sets for all entries and then map them to normal map(at ...
Tano's user avatar
  • 1,387
1 vote
1 answer
164 views

I am trying to go through the tutorial app for Phoenix/Liveview. Here are the versions used: {:phoenix, "~> 1.7.14"}, {:phoenix_live_view, "~> 1.0.0-rc.1", override: true}, ...
tokosh's user avatar
  • 1,836
0 votes
1 answer
72 views

I have this elixir code using ExAws to fetch metrics from Cloudwatch. defp fetch_and_save_metrics do end_time = DateTime.utc_now() start_time = DateTime.add(end_time, -5 * 60, :second) opts = [ ...
7evam's user avatar
  • 177
0 votes
2 answers
74 views

I’m currently learning Elixir (only been at it for about 2 weeks), and I’ve been working on a problem from Codewars where I need to: 1-Split a string into substrings separated by vowels (aeiou). 2-...
Mohamed Aziz Ouerghi's user avatar
0 votes
1 answer
166 views

I am learning elixir & I am struggling a bit with how to set up separate processes for data access & API routing while allowing them to communicate in a way that allows either process to fail ...
August Guenther's user avatar
1 vote
1 answer
77 views

I have a python code for generating rsa signatures and I am trying to write this code in elixir. python code: import sys import base64 import datetime import json from Crypto.PublicKey import RSA from ...
Marsel.V's user avatar
  • 1,053
0 votes
1 answer
180 views

I make use of multiple css files in the website that I'm building, but I notice that live reload works only when I modify the app.css file, while I would like for it to also work with the other css ...
Stefanos Anagnostou's user avatar
0 votes
1 answer
167 views

I'm getting an error in my Phoenix/Elixir application when searching for records where a DateTime field is null. Here's the error: ** (ArgumentError) comparison with nil is forbidden as it is unsafe. ...
Edward Gizbreht's user avatar
1 vote
0 answers
50 views

I am trying to build a simple search screen using Phoenix/LiveView. The screen is very simple: search bar + filters on the right-hand side. The filters are just multiple choice checkboxes. A checkbox ...
Wannabe's user avatar
  • 11
0 votes
1 answer
205 views

I am trying to use the cloudflare workers model, specifically the “llama-3.2-11b-vision-instruct”, but I am getting the following error: AiError: AiError: AiError: Tensor error: failed to build tensor ...
Cristofer BackEnd's user avatar
0 votes
1 answer
67 views

I’m working on a project in Elixir that runs in a container deployed on AWS ECS. I’m trying to use environment variables to define the execution environment (ENVIRONMENT) and access them within my ...
backin's user avatar
  • 21
0 votes
1 answer
59 views

I have a users resource in my router with an extra endpoint for friends like so: resources "/users", UserController, except: [:create, :delete] do get "/friends", UserController, ...
Alex Moreira's user avatar
0 votes
1 answer
116 views

I've followed the Phoenix LiveView file upload code here https://hexdocs.pm/phoenix_live_view/1.0.0-rc.7/uploads.html and so far everything works just fine with no errors, the only thing I noticed is ...
jwesonga's user avatar
  • 4,393
0 votes
1 answer
87 views

I recently updated my operating system, and now I'm facing this error when running my server. Previously, everything was working fine. Here's the error message: (Mix) Could not start application main: ...
ch wajeeh's user avatar
1 vote
1 answer
88 views

I have the following code in my simple LiveView form. defmodule TodoappWeb.UserRegistrationLive do alias Todoapp.Accounts use TodoappWeb, :live_view alias Todoapp.User @impl true def render(...
jwesonga's user avatar
  • 4,393
0 votes
1 answer
147 views

Our codebase contains existing functions to cast values into specific datatypes. I'm trying to leverage these functions to cast an input value of unknown target type into one of three datatypes (...
Ian Mac's user avatar
  • 33
0 votes
1 answer
141 views

I've a phoenix liveview app to try Liveview native which I want to connect to from my ipad. I'm on linux so I allowed the access to the port 4000 with ufw, but the connection still failed in my ipad (...
SevB's user avatar
  • 29
-1 votes
2 answers
212 views

How can I define my Plug/Phoenix routes so that I have a single set of URLs, but show different content depending on what kind of user is logged in? Eg, a user should visit /home and see a list of ...
markson edwardson's user avatar
0 votes
1 answer
53 views

Background I am trying to do an integration test for a simple terminal application that I am writting. This application is basically a Supervisor, which supervises other smaller libraries. The ...
Flame_Phoenix's user avatar
1 vote
3 answers
181 views

I have a list nested inside another with a depth of 3. [ [[1, 2, 3], [4, 5, 6]], [[1, 2, 3], [4, 5, 6]] ] After using List.flatten/1 my result is [1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6] I want to ...
ahmed-el-awad's user avatar
0 votes
0 answers
68 views

defmodule Im.Dsl.Entities.ReceiveCmd do def cmd(), do: %Spark.Dsl.Entity{ name: :rcv, describe: "Receive command.", target: Im.Commands.Receive, ... ...
kdmnk's user avatar
  • 5

1
2 3 4 5
193