# Backend Questions/Help

**URL:** https://forum.devtalk.com/c/backend-developer-forum/backend-questions-help/23.md?page=1

[Latest](https://forum.devtalk.com/latest.md) · [Categories](https://forum.devtalk.com/categories.md) · [Tags](https://forum.devtalk.com/tags.md)

**Page:** 2

---

## [How to convert a typed definition to a typedstruct?](https://forum.devtalk.com/t/how-to-convert-a-typed-definition-to-a-typedstruct/93291)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.devtalk.com/u/Fl4m3Ph03n1x)\
**Replies:** 1\
**Last updated:** [26 January 2023 09:05 UTC](https://forum.devtalk.com/t/how-to-convert-a-typed-definition-to-a-typedstruct/93291 "2023-01-26T09:05:05Z")

</div>

Background I am moving towards defined data structures in my application, and I find that TypedStruct is quite useful. Questions However, I have recently found a little hickup. I don’t know how to convert this definitio…

---

## [In Couchbase, how do you change the datatype of an attribute from String to Array?](https://forum.devtalk.com/t/in-couchbase-how-do-you-change-the-datatype-of-an-attribute-from-string-to-array/93293)

<div class="topic-metadata">

**Author:** [@sona11](https://forum.devtalk.com/u/sona11)\
**Replies:** 0\
**Last updated:** [24 January 2023 13:12 UTC](https://forum.devtalk.com/t/in-couchbase-how-do-you-change-the-datatype-of-an-attribute-from-string-to-array/93293 "2023-01-24T13:12:03Z")

</div>

I’m having a difficulty. I want to modify an attribute’s data type from String to Array. { “id”: “trn:tarb:tradingpartner:uuid:00000464-fa72-49fe-b050-c4bf1cfd8259”, “partnerNumber”: “1098981”, “partnerName”…

---

## [Java equals() selection](https://forum.devtalk.com/t/java-equals-selection/82010)

<div class="topic-metadata">

**Author:** [@sona11](https://forum.devtalk.com/u/sona11)\
**Replies:** 3\
**Last updated:** [20 January 2023 06:29 UTC](https://forum.devtalk.com/t/java-equals-selection/82010 "2023-01-20T06:29:24Z")

</div>

In Java, if I try to do.equals() on a null string, a null pointer error is issued. I’m wondering whether I can perform the following if I’m attempting to compare if a string is equal to a constant string: MY CONSTANT ST…

---

## [Is there a way to have 2 icons when using elixir-desktop?](https://forum.devtalk.com/t/is-there-a-way-to-have-2-icons-when-using-elixir-desktop/81710)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.devtalk.com/u/Fl4m3Ph03n1x)\
**Replies:** 1\
**Last updated:** [15 November 2022 14:28 UTC](https://forum.devtalk.com/t/is-there-a-way-to-have-2-icons-when-using-elixir-desktop/81710 "2022-11-15T14:28:56Z")

</div>

Background I have a personal project that is an elixir desktop application for PC Windows. It works pretty well, but now I want to give it an icon. This is usually done in the following module: defmodule WebInterface.A…

---

## [Pytest: test fails while getting URL](https://forum.devtalk.com/t/pytest-test-fails-while-getting-url/46683)

<div class="topic-metadata">

**Author:** [@jeya](https://forum.devtalk.com/u/jeya)\
**Replies:** 12\
**Last updated:** [31 October 2022 15:10 UTC](https://forum.devtalk.com/t/pytest-test-fails-while-getting-url/46683 "2022-10-31T15:10:11Z")

</div>

Dear Geeks I am new to pytest. I am following a youtube channel. I am writing the same code. learning to test login functionality of an ecommerce application i have written testcase file. please have a look at it. whi…

---

## [Rails db:create error - PG::ConnectionBad: connection to server on socket "/tmp/.s.PGSQL.5432" failed: FATAL: database "\_development" does not exist](https://forum.devtalk.com/t/rails-db-create-error-pg-connection-to-server-on-socket-tmp-s-pgsql-5432-failed-fatal-database-development-does-not-exist/69578)

<div class="topic-metadata">

**Author:** [@AstonJ](https://forum.devtalk.com/u/AstonJ)\
**Replies:** 0\
**Last updated:** [18 August 2022 18:24 UTC](https://forum.devtalk.com/t/rails-db-create-error-pg-connection-to-server-on-socket-tmp-s-pgsql-5432-failed-fatal-database-development-does-not-exist/69578 "2022-08-18T18:24:03Z")

</div>

If when trying to create (or recreate) your dev db with rails db:create you are getting: PG::ConnectionBad: connection to server on socket “/tmp/.s.PGSQL.5432” failed: FATAL: database “\_development” does not exist T…

---

## [Ecto multiple streams in 1 transaction](https://forum.devtalk.com/t/ecto-multiple-streams-in-1-transaction/67294)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.devtalk.com/u/Fl4m3Ph03n1x)\
**Replies:** 2\
**Last updated:** [5 August 2022 11:22 UTC](https://forum.devtalk.com/t/ecto-multiple-streams-in-1-transaction/67294 "2022-08-05T11:22:22Z")

</div>

Background PS: the following situation describes an hypothetical scenario, where I own a company that sells things to customers. I have an Ecto query that is so big, that my machine cannot handle it. With billions of re…

---

## [Is there a UI for Ora2Pg?](https://forum.devtalk.com/t/is-there-a-ui-for-ora2pg/64672)

<div class="topic-metadata">

**Author:** [@Ora2pgnewbie](https://forum.devtalk.com/u/Ora2pgnewbie)\
**Replies:** 2\
**Last updated:** [21 July 2022 17:38 UTC](https://forum.devtalk.com/t/is-there-a-ui-for-ora2pg/64672 "2022-07-21T17:38:48Z")

</div>

Wanted to check if there is a UI available to use Ora2pg tool.

---

## [Elixir Witchcraft IO monad?](https://forum.devtalk.com/t/elixir-witchcraft-io-monad/62017)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.devtalk.com/u/Fl4m3Ph03n1x)\
**Replies:** 1\
**Last updated:** [20 July 2022 15:52 UTC](https://forum.devtalk.com/t/elixir-witchcraft-io-monad/62017 "2022-07-20T15:52:52Z")

</div>

Background I have recently been delving into more functional code. My objective right now is to get something similar to the IO Monad (in Haskell, Scala, etc) but in Elixir. To this extent, I understand Witchcraft shoul…

---

## [Does anyone know beginner friendly Elixir/Phoenix Open source projects?](https://forum.devtalk.com/t/does-anyone-know-beginner-friendly-elixir-phoenix-open-source-projects/63666)

<div class="topic-metadata">

**Author:** [@GermaVinsmoke](https://forum.devtalk.com/u/GermaVinsmoke)\
**Replies:** 2\
**Last updated:** [12 July 2022 07:11 UTC](https://forum.devtalk.com/t/does-anyone-know-beginner-friendly-elixir-phoenix-open-source-projects/63666 "2022-07-12T07:11:31Z")

</div>

Does anyone know beginner friendly Elixir/Phoenix Open source projects? For learning purpose :slightly\_smiling\_face:

---

## [What is better to start study GO ? Book or course?](https://forum.devtalk.com/t/what-is-better-to-start-study-go-book-or-course/59129)

<div class="topic-metadata">

**Author:** [@MarkIden](https://forum.devtalk.com/u/MarkIden)\
**Replies:** 5\
**Last updated:** [15 June 2022 05:04 UTC](https://forum.devtalk.com/t/what-is-better-to-start-study-go-book-or-course/59129 "2022-06-15T05:04:36Z")

</div>

Hi, Recommend pls your favorite learning resources in Go, with best books, podcasts etc.

---

## [Is there a specification or recommendations on implementing “one-time authentication” link?](https://forum.devtalk.com/t/is-there-a-specification-or-recommendations-on-implementing-one-time-authentication-link/51776)

<div class="topic-metadata">

**Author:** [@osbre](https://forum.devtalk.com/u/osbre)\
**Replies:** 2\
**Last updated:** [26 April 2022 02:06 UTC](https://forum.devtalk.com/t/is-there-a-specification-or-recommendations-on-implementing-one-time-authentication-link/51776 "2022-04-26T02:06:06Z")

</div>

Hello everyone I’m trying to implement a “magic link” or “one-time login link” functionality I wonder what a secure way to implement it would be. The obvious and most simple solution to me seems to be generating a lon…

---

## [How to define Macro for a new Type?](https://forum.devtalk.com/t/how-to-define-macro-for-a-new-type/47300)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.devtalk.com/u/Fl4m3Ph03n1x)\
**Replies:** 9\
**Last updated:** [6 April 2022 14:37 UTC](https://forum.devtalk.com/t/how-to-define-macro-for-a-new-type/47300 "2022-04-06T14:37:25Z")

</div>

Background So, I am playing around with a concept named “NewType” and I am taking inspiration from languages like F# and Scala. My objective, for learning purposes mostly, is to build a macro that makes creating this ab…

---

## [Is there a way to have Elixir Records without default values?](https://forum.devtalk.com/t/is-there-a-way-to-have-elixir-records-without-default-values/46210)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.devtalk.com/u/Fl4m3Ph03n1x)\
**Replies:** 2\
**Last updated:** [6 April 2022 13:38 UTC](https://forum.devtalk.com/t/is-there-a-way-to-have-elixir-records-without-default-values/46210 "2022-04-06T13:38:59Z")

</div>

Background I am trying to find a cheap and easy way to create New Types in Elixir, and Records seem to be just what I would need. Problem However, Elixir records require one to define default values. Not only that, it a…

---

## [Assistance with Schema Mix](https://forum.devtalk.com/t/assistance-with-schema-mix/48215)

<div class="topic-metadata">

**Author:** [@JimmyCarterSon](https://forum.devtalk.com/u/JimmyCarterSon)\
**Replies:** 7\
**Last updated:** [5 April 2022 10:19 UTC](https://forum.devtalk.com/t/assistance-with-schema-mix/48215 "2022-04-05T10:19:52Z")

</div>

I am confused about the Schema setup, I am setting up a new application and I want to seed files in it as well. I tried to mix to create the schema mix phx.gen.html Delish.food delish\_foods title:string ingredients:stri…

---

## [Seed Data with Elixir](https://forum.devtalk.com/t/seed-data-with-elixir/48412)

<div class="topic-metadata">

**Author:** [@JimmyCarterSon](https://forum.devtalk.com/u/JimmyCarterSon)\
**Replies:** 6\
**Last updated:** [4 April 2022 16:53 UTC](https://forum.devtalk.com/t/seed-data-with-elixir/48412 "2022-04-04T16:53:18Z")

</div>

Hello, I am working on a new application with Elixir, Dish\_out. I want to see Data I follow this tutorial with Elixir Casts. However, I am not sure if what I am doing is correct because my seed file does not work. My S…

---

## [What's the recommended approach for securing GraphQL APIs?](https://forum.devtalk.com/t/whats-the-recommended-approach-for-securing-graphql-apis/48250)

<div class="topic-metadata">

**Author:** [@conradwt](https://forum.devtalk.com/u/conradwt)\
**Replies:** 1\
**Last updated:** [4 April 2022 15:35 UTC](https://forum.devtalk.com/t/whats-the-recommended-approach-for-securing-graphql-apis/48250 "2022-04-04T15:35:09Z")

</div>

Hi, I’m building an application that will have support for both the web and mobile. At this time, I’m using PhxGenAuth for authentication on the web. However, it appears that there’s no out-of-the-box support for API a…

---

## [Troubleshooting Code: (KeyError) key :changeset not found](https://forum.devtalk.com/t/troubleshooting-code-keyerror-key-changeset-not-found/46034)

<div class="topic-metadata">

**Author:** [@JimmyCarterSon](https://forum.devtalk.com/u/JimmyCarterSon)\
**Replies:** 3\
**Last updated:** [22 March 2022 11:10 UTC](https://forum.devtalk.com/t/troubleshooting-code-keyerror-key-changeset-not-found/46034 "2022-03-22T11:10:07Z")

</div>

I am following this tutorial . I have followed carefully correcting errors as I go. The app allows you to create a blog post and add comments if you so choose. When I click show Posts, this error I am getting: \[error\] …

---

## [How to have custom enconding for struct using Jason?](https://forum.devtalk.com/t/how-to-have-custom-enconding-for-struct-using-jason/44467)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.devtalk.com/u/Fl4m3Ph03n1x)\
**Replies:** 1\
**Last updated:** [15 March 2022 08:19 UTC](https://forum.devtalk.com/t/how-to-have-custom-enconding-for-struct-using-jason/44467 "2022-03-15T08:19:56Z")

</div>

Background I am trying to encode a structure into json format using the Jason library. However, this is not working as expected. Code Let’s assume I have this struct: defmodule Test do defstruct \[:foo, :bar, :baz\] e…

---

## [Ecto issue, not sure how to do this?](https://forum.devtalk.com/t/ecto-issue-not-sure-how-to-do-this/44085)

<div class="topic-metadata">

**Author:** [@JimmyCarterSon](https://forum.devtalk.com/u/JimmyCarterSon)\
**Replies:** 3\
**Last updated:** [10 March 2022 23:54 UTC](https://forum.devtalk.com/t/ecto-issue-not-sure-how-to-do-this/44085 "2022-03-10T23:54:31Z")

</div>

Hello, I am. very new to Elixir lang I have only been doing it for about 2 weeks. I recently started following this tutorial todo list, and I am running into errors, everything was fine until timestamp 3:15 where “mix e…

---

## [Dialyzer does not catch errors on returned functions](https://forum.devtalk.com/t/dialyzer-does-not-catch-errors-on-returned-functions/40903)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.devtalk.com/u/Fl4m3Ph03n1x)\
**Replies:** 6\
**Last updated:** [22 February 2022 12:25 UTC](https://forum.devtalk.com/t/dialyzer-does-not-catch-errors-on-returned-functions/40903 "2022-02-22T12:25:37Z")

</div>

Background While playing around with dialyzer, typespecs and currying, I was able to create an example of a false positive in dialyzer. For the purposes of this MWE, I am using diallyxir (versions included) because it m…

---

## [Option type compatible with comprehensions in Elixr?](https://forum.devtalk.com/t/option-type-compatible-with-comprehensions-in-elixr/40904)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.devtalk.com/u/Fl4m3Ph03n1x)\
**Replies:** 4\
**Last updated:** [21 February 2022 11:53 UTC](https://forum.devtalk.com/t/option-type-compatible-with-comprehensions-in-elixr/40904 "2022-02-21T11:53:26Z")

</div>

Background I am trying to up my Functional Programming (FP) skills and one of the things that newcomers first learn in FP is the Option Type (aka, Maybe Monad). Option what? This construct is present in many languages, …

---

## [Dialyzer cannot recognize error in function using polymorphic types](https://forum.devtalk.com/t/dialyzer-cannot-recognize-error-in-function-using-polymorphic-types/40944)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.devtalk.com/u/Fl4m3Ph03n1x)\
**Replies:** 8\
**Last updated:** [18 February 2022 15:43 UTC](https://forum.devtalk.com/t/dialyzer-cannot-recognize-error-in-function-using-polymorphic-types/40944 "2022-02-18T15:43:40Z")

</div>

Background I am trying out polymorphic typing with dialyzer. As an example I am using the famous Option type (aka, Maybe Monad) that is now prevalent in many other languages these days. defmodule Test do @type option(…

---

## [Cannot understand warnings in Gradient](https://forum.devtalk.com/t/cannot-understand-warnings-in-gradient/39585)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.devtalk.com/u/Fl4m3Ph03n1x)\
**Replies:** 2\
**Last updated:** [7 February 2022 20:30 UTC](https://forum.devtalk.com/t/cannot-understand-warnings-in-gradient/39585 "2022-02-07T20:30:14Z")

</div>

Background I am now trying Gradual type checking, as a consequence I am giving a shot to Gradient. As I see it, this is an alternative to Dialyzer. Problems So, on my first ever code snippet, I started with a pure funct…

---

## [How to set env vars on GitHub Actions for a Windows release?](https://forum.devtalk.com/t/how-to-set-env-vars-on-github-actions-for-a-windows-release/38241)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.devtalk.com/u/Fl4m3Ph03n1x)\
**Replies:** 1\
**Last updated:** [4 February 2022 09:19 UTC](https://forum.devtalk.com/t/how-to-set-env-vars-on-github-actions-for-a-windows-release/38241 "2022-02-04T09:19:48Z")

</div>

Background I am trying to get a Github Action working with Windows and Bakeware because I am trying to create a release using it. However, I am having issues with the environment variables. Code In Bakeware’s setup pag…

---

## [Do you recommend AWS Amplify for a small scale Uber clone?](https://forum.devtalk.com/t/do-you-recommend-aws-amplify-for-a-small-scale-uber-clone/1170)

<div class="topic-metadata">

**Author:** [@pillaiindu](https://forum.devtalk.com/u/pillaiindu)\
**Replies:** 6\
**Last updated:** [21 January 2022 13:35 UTC](https://forum.devtalk.com/t/do-you-recommend-aws-amplify-for-a-small-scale-uber-clone/1170 "2022-01-21T13:35:49Z")

</div>

Cross posting from HashNode. A friend of mine is creating Uber-like app for a small company with 200 to 1000 cars. The app will operate in a single city with that number of cars. The app will work like Uber, with user r…

---

## [Keep Alive data packets configuration with Spring Webflux endpoint](https://forum.devtalk.com/t/keep-alive-data-packets-configuration-with-spring-webflux-endpoint/32980)

<div class="topic-metadata">

**Author:** [@sampu](https://forum.devtalk.com/u/sampu)\
**Replies:** 1\
**Last updated:** [5 January 2022 19:43 UTC](https://forum.devtalk.com/t/keep-alive-data-packets-configuration-with-spring-webflux-endpoint/32980 "2022-01-05T19:43:40Z")

</div>

I have a use case where a client is invoking a Rest endpoint via a load balancer, which in turn invokes a third party endpoint which is really slow to respond. The third party endpoint takes over 1 min to start sending t…

---

## [Any Elixir tutorials?](https://forum.devtalk.com/t/any-elixir-tutorials/31265)

<div class="topic-metadata">

**Author:** [@Ookma-Kyi](https://forum.devtalk.com/u/Ookma-Kyi)\
**Replies:** 6\
**Last updated:** [18 December 2021 19:47 UTC](https://forum.devtalk.com/t/any-elixir-tutorials/31265 "2021-12-18T19:47:27Z")

</div>

I am learning Elixir at the moment but am finding it difficult to learn. The issue is there aren’t any good tutorial sites out there when compared to say GoRails.

---

## [Phoenix LiveView learning resources?](https://forum.devtalk.com/t/phoenix-liveview-learning-resources/32645)

<div class="topic-metadata">

**Author:** [@bsek43](https://forum.devtalk.com/u/bsek43)\
**Replies:** 3\
**Last updated:** [16 December 2021 05:00 UTC](https://forum.devtalk.com/t/phoenix-liveview-learning-resources/32645 "2021-12-16T05:00:12Z")

</div>

Hello everyone, I’ve started learning Elixir and Phoenix few months ago and while I mostly grasped Elixir’s functional concepts and Phoenix conventions I still have huge trouble building stuff with LiveView beyond simpl…

---

## [Novice developer hoping to learn Elixir - any tips?](https://forum.devtalk.com/t/novice-developer-hoping-to-learn-elixir-any-tips/20178)

<div class="topic-metadata">

**Author:** [@TwistingTwists](https://forum.devtalk.com/u/TwistingTwists)\
**Replies:** 14\
**Last updated:** [10 October 2021 03:28 UTC](https://forum.devtalk.com/t/novice-developer-hoping-to-learn-elixir-any-tips/20178 "2021-10-10T03:28:37Z")

</div>

Hello Folks, I am a novice developer from India. Intending to learn Elixir and web apps (phoenix framework). What are things that I MUST know ? and If there are some awesome-lists , it’d be of great use. I hope this t…

[Previous page](https://forum.devtalk.com/c/backend-developer-forum/backend-questions-help/23.md)

[Next page](https://forum.devtalk.com/c/backend-developer-forum/backend-questions-help/23.md?page=2)
