chunk_id
large_stringlengths
11
11
question_id
large_stringlengths
8
8
language
large_stringclasses
1 value
chunk_index
int64
0
7
chunk_text
large_stringlengths
113
2.53k
sparse_text
large_stringlengths
128
4.15k
dense_vector
listlengths
3.58k
3.58k
sparse_indices
listlengths
12
238
sparse_values
listlengths
12
238
export_source
large_stringclasses
1 value
41571484_c1
41571484
elixir
1
replace HTTPoison through new HTTP client. My goal is, to write codes easy to scale and maintain. I read the wonderful article about mock from José, he suggests to use protocol and pass the dependency as the parameter to function. That is the point, why I use he protocol over behaviour. In addition, how to force the p...
replace HTTPoison through new HTTP client. My goal is, to write codes easy to scale and maintain. I read the wonderful article about mock from José, he suggests to use protocol and pass the dependency as the parameter to function. That is the point, why I use he protocol over behaviour. In addition, how to force the p...
[ 0.00159454345703125, 0.007171630859375, 0.0029449462890625, 0.020263671875, -0.014404296875, -0.007781982421875, -0.006622314453125, 0.021240234375, 0.01806640625, -0.007110595703125, -0.0078125, 0.00457763671875, -0.007110595703125, 0.01483154296875, 0.0150146484375, -0.00430297851562...
[ 91995, 135913, 31, 40514, 8305, 3525, 23282, 69236, 33022, 18151, 23468, 105994, 76104, 12301, 58867, 5582, 8698, 92, 17151, 42459, 4527, 91363, 27875, 42548, 27771, 237, 171859, 32354, 15400, 764, 645, 224833, 3642, 37772, 80934, 30646, 17311,...
[ 0.2247314453125, 0.2705078125, 0.14599609375, 0.27490234375, 0.051239013671875, 0.10137939453125, 0.2015380859375, 0.1427001953125, 0.080078125, 0.16650390625, 0.0980224609375, 0.1279296875, 0.112548828125, 0.009918212890625, 0.054962158203125, 0.00042724609375, 0.175537109375, 0.1...
embed
53040336_c0
53040336
elixir
0
Title: Elixir Guardian custom header verification instead of Authorization Problem title: Elixir Guardian custom header verification instead of Authorization Tags: authorization, elixir, http-headers, guardian Problem: Elixir Guardian custom header verification instead of Authorization I have two tokens coming to my En...
Elixir Guardian custom header verification instead of Authorization Elixir Guardian custom header verification instead of Authorization authorization elixir http-headers guardian Elixir Guardian Authorization App-token Guardian.Plug.VerifyHeader Bearer Elixir Guardian custom header verification instead of Authorization...
[ 0.00933837890625, 0.021240234375, 0.0091552734375, 0.018798828125, 0.004608154296875, -0.02587890625, -0.01458740234375, -0.000751495361328125, -0.00323486328125, -0.0228271484375, 0.02392578125, 0.0216064453125, -0.012451171875, 0.00408935546875, -0.01519775390625, -0.0223388671875, ...
[ 25318, 38308, 81589, 114122, 10336, 56, 493, 41274, 64457, 61804, 47691, 42179, 15296, 1621, 31251, 1314, 158031, 19, 5659, 6448, 35159, 15896, 40383, 13025, 38970, 113132, 6626, 47, 84694, 38162, 18878, 38496, 55300, 46132, 22799, 15700, 10536...
[ 0.109619140625, 0.2242431640625, 0.277587890625, 0.2130126953125, 0.1910400390625, 0.1419677734375, 0.204833984375, 0.1729736328125, 0.12939453125, 0.14013671875, 0.147216796875, 0.10504150390625, 0.07037353515625, 0.08001708984375, 0.1468505859375, 0.042266845703125, 0.168212890625,...
embed
63511042_c0
63511042
elixir
0
Title: How do I change strings recursively adding a number to the string and adding each one to a list Problem title: How do I change strings recursively adding a number to the string and adding each one to a list Tags: recursion, elixir, append Problem: How do I change strings recursively adding a number to the string...
How do I change strings recursively adding a number to the string and adding each one to a list How do I change strings recursively adding a number to the string and adding each one to a list recursion elixir append How string1 string2 How do I change strings recursively adding a number to the string and adding each on...
[ -0.00872802734375, -0.01068115234375, -0.01611328125, 0.034423828125, -0.002166748046875, 0.0211181640625, 0.00872802734375, 0.01483154296875, 0.0263671875, 0.000843048095703125, 0.0135498046875, -0.025390625, -0.0184326171875, 0.02587890625, 0.01239013671875, -0.013427734375, 0.0052...
[ 11249, 54, 87, 15549, 79315, 7, 195625, 5844, 154107, 14012, 47, 12638, 5303, 1632, 1830, 15296, 38308, 114689, 71, 418, 304, 136, 20697, 13452, 15190, 8, 420, 32354, 91693, 41170, 997, 3564, 118055, 24189, 653, 11737, 29954, 53299, 831, ...
[ 0.07586669921875, 0.03021240234375, 0.013092041015625, 0.2237548828125, 0.257080078125, 0.0797119140625, 0.2257080078125, 0.1673583984375, 0.1480712890625, 0.1590576171875, 0.0474853515625, 0.06268310546875, 0.1724853515625, 0.035797119140625, 0.06341552734375, 0.05767822265625, 0.22...
embed
50592611_c0
50592611
elixir
0
Title: Ecto run where on associations Problem title: Ecto run where on associations Tags: phoenix-framework, elixir Problem: Ecto run where on associations Im running a query like this: query = from q in MY.Model, preload: [:accoc], where: q.accoc_field in [10, 11] Repo.all(query) This gives me error: ** (Ecto.QueryErr...
Ecto run where on associations Ecto run where on associations phoenix-framework elixir Ecto.QueryError q my_model Ecto MY.Model q.accoc_field Repo.all iex:32 accoc_field m.assoc_id a.id a.assoc_field Ecto run where on associations Im running a query like this: This gives me error: So, basically I am trying to write a q...
[ 0.000736236572265625, 0.0048828125, -0.0196533203125, 0.021240234375, -0.0023956298828125, -0.00083160400390625, -0.00909423828125, 0.0128173828125, 0.003173828125, -0.08251953125, 0.0211181640625, 0.00701904296875, 0.0032501220703125, -0.00933837890625, -0.002532958984375, 0.003265380...
[ 241, 44150, 11675, 7440, 98, 151747, 53073, 33, 4084, 160328, 18244, 15296, 38308, 41732, 18468, 8096, 759, 51734, 54133, 140290, 13400, 238, 28394, 771, 5584, 3355, 29902, 50015, 6652, 347, 73395, 532, 3370, 51042, 41, 1294, 1884, 3293, 16...
[ 0.118896484375, 0.310546875, 0.1632080078125, 0.1026611328125, 0.0963134765625, 0.221923828125, 0.020263671875, 0.0158538818359375, 0.077392578125, 0.1005859375, 0.0197906494140625, 0.038360595703125, 0.160888671875, 0.0819091796875, 0.0830078125, 0.07159423828125, 0.0972900390625, ...
embed
45497081_c0
45497081
elixir
0
Title: Does Elixir have a `Kernel.delete_in` equivalent? Problem title: Does Elixir have a `Kernel.delete_in` equivalent? Tags: elixir Problem: Does Elixir have a `Kernel.delete_in` equivalent? Elixir's Kernel.put_in is great for adding or updating a value deep in a nested structure. It does not, however, support delet...
Does Elixir have a `Kernel.delete_in` equivalent? Does Elixir have a `Kernel.delete_in` equivalent? elixir Does Elixir Kernel.delete_in Kernel.put_in delete_in pop_in put_in magic_value_that_deletes_the_final_key Does Elixir have a `Kernel.delete_in` equivalent? Elixir's Kernel.put_in is great for adding or updating a ...
[ -0.006805419921875, 0.0172119140625, -0.0064697265625, -0.00799560546875, -0.0013885498046875, -0.009033203125, 0.0023345947265625, -0.01336669921875, 0.007049560546875, -0.00075531005859375, 0.0179443359375, 0.031494140625, 0.011962890625, 0.0238037109375, 0.0150146484375, -0.00607299...
[ 25318, 38308, 3196, 141, 8520, 67, 73, 183234, 765, 10, 605, 15296, 101790, 119125, 583, 7077, 154109, 7426, 3884, 49846, 27494, 112, 74635, 33870, 19770, 454, 6782, 154107, 1257, 56464, 34292, 53894, 8512, 45646, 959, 8060, 24674, 1916, 19...
[ 0.134521484375, 0.263427734375, 0.1673583984375, 0.140869140625, 0.1846923828125, 0.1138916015625, 0.204833984375, 0.1552734375, 0.0206451416015625, 0.011688232421875, 0.0257110595703125, 0.09173583984375, 0.01031494140625, 0.194580078125, 0.181396484375, 0.093017578125, 0.2203369140...
embed
41513686_c0
41513686
elixir
0
Title: Phoenix: Requiring IEx in only :dev and :test for entire project Problem title: Phoenix: Requiring IEx in only :dev and :test for entire project Tags: elixir-iex, elixir, phoenix-framework Problem: Phoenix: Requiring IEx in only :dev and :test for entire project I'm new to Elixir/Phoenix and I was wondering if t...
Phoenix: Requiring IEx in only :dev and :test for entire project Phoenix: Requiring IEx in only :dev and :test for entire project elixir-iex elixir phoenix-framework IEx Phoenix Requiring IEx.pry binding.pry Phoenix: Requiring IEx in only :dev and :test for entire project I'm new to Elixir/Phoenix and I was wondering i...
[ -0.021728515625, 0.00323486328125, -0.00042724609375, -0.0015716552734375, 0.007293701171875, 0.02978515625, 0.0093994140625, -0.0040283203125, 0.0172119140625, -0.0322265625, 0.00127410888671875, -0.00109100341796875, 0.0009765625, 0.01312255859375, 0.01336669921875, 0.0220947265625, ...
[ 133720, 853, 3181, 87, 19279, 4734, 18548, 6954, 64194, 13452, 2852, 136, 15296, 38308, 14, 3355, 53073, 33, 4084, 160328, 254, 1294, 128239, 5, 23, 152, 100, 25318, 497, 509, 3917, 85590, 64209, 60042, 158189, 64, 12248, 7870, 15190, 249...
[ 0.27392578125, 0.0243072509765625, 0.151123046875, 0.16259765625, 0.25634765625, 0.0855712890625, 0.2216796875, 0.20166015625, 0.10418701171875, 0.0948486328125, 0.005645751953125, 0.036041259765625, 0.041107177734375, 0.1844482421875, 0.08477783203125, 0.14599609375, 0.041259765625,...
embed
38540645_c0
38540645
elixir
0
Title: How to run real phoenix server during test? Problem title: How to run real phoenix server during test? Tags: phoenix-framework, elixir, ex-unit Problem: How to run real phoenix server during test? I'm implementing kinda tricky functionality with external libraries I can't mock. They needs to implement real reque...
How to run real phoenix server during test? How to run real phoenix server during test? phoenix-framework elixir ex-unit How test.exs my_reelty MyReelty.Endpoint PORT Specific localhost:5000 Failed Connection How to run real phoenix server during test? I'm implementing kinda tricky functionality with external libraries...
[ 0.000576019287109375, 0.005126953125, 0.00262451171875, -0.00885009765625, 0.00872802734375, -0.003662109375, -0.024169921875, -0.0106201171875, -0.000530242919921875, -0.0101318359375, 0.00469970703125, 0.0174560546875, 0.01507568359375, 0.017822265625, 0.017578125, 0.006805419921875,...
[ 11249, 47, 11675, 2773, 53073, 33, 4084, 10723, 20271, 3034, 160328, 18244, 15296, 38308, 1119, 309, 3355, 7, 759, 107, 6704, 53, 2646, 4332, 152378, 38496, 122390, 209052, 4000, 40294, 29213, 190355, 297, 62448, 29479, 88308, 123309, 173591,...
[ 0.0704345703125, 0.0550537109375, 0.15869140625, 0.2166748046875, 0.1273193359375, 0.1478271484375, 0.2041015625, 0.221923828125, 0.144775390625, 0.2587890625, 0.049957275390625, 0.025482177734375, 0.053497314453125, 0.157470703125, 0.1270751953125, 0.06549072265625, 0.12255859375, ...
embed
57428381_c1
57428381
elixir
1
_link([]) do DynamicSupervisor.start_link(__MODULE__, [], name: __MODULE__) end def init(_noop) do DynamicSupervisor.init(strategy: :one_for_one) end def handle_info(:ping, state) do IO.puts "sth" end def handle_cast(:start, state) do # do_something {:noreply, state} end def handle_call(:ping, _from, _x) do {:reply, "b...
_link([]) do DynamicSupervisor.start_link(__MODULE__, [], name: __MODULE__) end def init(_noop) do DynamicSupervisor.init(strategy: :one_for_one) end def handle_info(:ping, state) do IO.puts "sth" end def handle_cast(:start, state) do # do_something {:noreply, state} end def handle_call(:ping, _from, _x) do {:reply, "b...
[ -0.00579833984375, 0.01409912109375, 0.00250244140625, 0.0186767578125, -0.007781982421875, -0.00154876708984375, 0.022705078125, -0.01519775390625, 0.0052490234375, -0.03857421875, -0.014404296875, -0.01397705078125, -0.0019683837890625, 0.0179443359375, 0.00274658203125, 0.0067443847...
[ 101, 10187, 54, 73327, 21068, 73903, 51858, 17137, 12013, 397, 129984, 3564, 8, 420, 23, 217, 157, 2146, 151895, 3432, 3630, 2472, 34831, 7319, 10366, 11341, 17780, 927, 55741, 64113, 62479, 85763, 161063, 425, 23709, 31996, 28864, 26073, 2...
[ 0.00982666015625, 0.209228515625, 0.068115234375, 0.1419677734375, 0.1094970703125, 0.1658935546875, 0.2509765625, 0.1435546875, 0.07562255859375, 0.09228515625, 0.08795166015625, 0.06146240234375, 0.000030517578125, 0.0222320556640625, 0.031707763671875, 0.078857421875, 0.0841064453...
embed
62313479_c1
62313479
elixir
1
are two variants which themselves call ssl/2 or startup/2 . I cannot find where bootstrap_recv/4 is called in this code path. Why are do_handshake/2 and one of ssl/2 and startup/2 (and whatever other subsequent calls lead to bootstrap_recv/4 and ultimately msg_recv/4 ) not in the stacktrace? Presumably, I misunderstan...
are two variants which themselves call ssl/2 or startup/2 . I cannot find where bootstrap_recv/4 is called in this code path. Why are do_handshake/2 and one of ssl/2 and startup/2 (and whatever other subsequent calls lead to bootstrap_recv/4 and ultimately msg_recv/4 ) not in the stacktrace? Presumably, I misunderstan...
[ 0.0146484375, 0.0057373046875, -0.005950927734375, 0.02734375, -0.010986328125, 0.0030670166015625, -0.01904296875, -0.005340576171875, 0.02490234375, -0.01287841796875, 0.0250244140625, -0.034912109375, -0.0021820068359375, 0.021484375, 0.0026092529296875, 0.01318359375, -0.01391601...
[ 6626, 20117, 7, 61261, 11782, 91, 24861, 12477, 73882, 53418, 49935, 107617, 31688, 334, 17357, 35839, 18151, 60875, 44084, 54, 12336, 70704, 37105, 68163, 177, 959, 23, 177261, 39989, 13, 1239, 25318, 38308, 90, 28864, 26073, 28670, 26253, ...
[ 0.07244873046875, 0.237060546875, 0.072998046875, 0.078857421875, 0.146484375, 0.0297698974609375, 0.2498779296875, 0.2218017578125, 0.236328125, 0.052001953125, 0.122802734375, 0.2391357421875, 0.127685546875, 0.213623046875, 0.210693359375, 0.1492919921875, 0.158447265625, 0.1674...
embed
72741828_c0
72741828
elixir
0
Title: Importing modules when not using mix Problem title: Importing modules when not using mix Tags: elixir Problem: Importing modules when not using mix I'm experimenting with Elixir as a CI script language in GitHub actions. Wondering if there is a straight-forward way to import dependencies when not using mix: - us...
Importing modules when not using mix Importing modules when not using mix elixir mix JSON Importing env.OTP_VERSION env.ELIXIR_VERSION DoStuff Doesn Importing modules when not using mix I'm experimenting with Elixir as a CI script language in GitHub actions. Wondering if there is a straight-forward way to import depend...
[ -0.0169677734375, 0.00738525390625, -0.006072998046875, 0.007781982421875, -0.0087890625, 0.00994873046875, -0.006866455078125, -0.004486083984375, 0.00567626953125, -0.01141357421875, -0.011962890625, -0.0057373046875, 0.00762939453125, 0.0208740234375, 0.01080322265625, 0.00692749023...
[ 92966, 214, 88996, 7, 3229, 959, 17368, 17664, 15296, 38308, 821, 58627, 334, 670, 23658, 33255, 53692, 1542, 14688, 984, 37455, 21493, 28007, 25318, 26550, 26499, 46876, 217, 140505, 61972, 24927, 42548, 117538, 822, 13452, 64722, 119261, 23...
[ 0.2174072265625, 0.02386474609375, 0.201416015625, 0.0377197265625, 0.06201171875, 0.1295166015625, 0.082763671875, 0.241943359375, 0.080810546875, 0.2362060546875, 0.03167724609375, 0.1536865234375, 0.1146240234375, 0.0163421630859375, 0.1297607421875, 0.108154296875, 0.063659667968...
embed
45397804_c0
45397804
elixir
0
Title: How to transform a list of numbers into lists of consecutive numbers Problem title: How to transform a list of numbers into lists of consecutive numbers Tags: elixir Problem: How to transform a list of numbers into lists of consecutive numbers I am trying to write a function that can transform a list of numbers ...
How to transform a list of numbers into lists of consecutive numbers How to transform a list of numbers into lists of consecutive numbers elixir How How to transform a list of numbers into lists of consecutive numbers I am trying to write a function that can transform a list of numbers into lists of consecutive numbers...
[ -0.00958251953125, 0.000133514404296875, -0.00762939453125, 0.005523681640625, 0.00921630859375, 0.017333984375, -0.007232666015625, 0.0002002716064453125, 0.0140380859375, -0.01104736328125, -0.006256103515625, 0.0240478515625, -0.0059814453125, 0.017333984375, -0.0113525390625, -0.00...
[ 11249, 47, 27198, 5303, 101935, 3934, 7, 111, 148390, 13, 10, 15296, 38308, 31577, 33022, 32354, 831, 14012, 903, 83425, 201950, 4127, 29806, 23, 157666 ]
[ 0.0794677734375, 0.0411376953125, 0.198486328125, 0.2069091796875, 0.1805419921875, 0.1138916015625, 0.0843505859375, 0.0909423828125, 0.221435546875, 0.09136962890625, 0.0140533447265625, 0.10400390625, 0.21630859375, 0.050506591796875, 0.0601806640625, 0.12939453125, 0.017639160156...
embed
57228026_c0
57228026
elixir
0
Title: How to test GenServer restart behaviour? Problem title: How to test GenServer restart behaviour? Tags: ex-unit, elixir, erlang-otp, unit-testing Problem: How to test GenServer restart behaviour? In my app I have a GenServer. It backs up data needed to start again in an Agent. I want to test if my GenServer backs...
How to test GenServer restart behaviour? How to test GenServer restart behaviour? ex-unit elixir erlang-otp unit-testing How GenServer start_supervised How to test GenServer restart behaviour? In my app I have a GenServer. It backs up data needed to start again in an Agent. I want to test if my GenServer backs up and r...
[ -0.0086669921875, 0.0174560546875, 0.0042724609375, 0.004913330078125, 0.007110595703125, 0.004180908203125, 0.0120849609375, -0.0036773681640625, 0.01300048828125, -0.01123046875, -0.006500244140625, 0.014404296875, -0.0014801025390625, 0.0263671875, 0.0262451171875, 0.001678466796875...
[ 11249, 47, 3034, 15937, 193348, 456, 17137, 224833, 1119, 309, 15296, 38308, 72, 3066, 818, 254, 25072, 6954, 4034, 59104, 1824, 4027, 4420, 1257, 2053, 44841, 13438, 54603, 3444, 14359, 26785, 36663, 126502, 23882, 43240, 153837, 222495, 268...
[ 0.09161376953125, 0.0841064453125, 0.2191162109375, 0.1834716796875, 0.274658203125, 0.167236328125, 0.2420654296875, 0.158203125, 0.06390380859375, 0.037384033203125, 0.03533935546875, 0.1494140625, 0.04571533203125, 0.1771240234375, 0.0643310546875, 0.0784912109375, 0.116943359375,...
embed
78369473_c0
78369473
elixir
0
Title: Rebar3 cannot download packages behind proxy, CA certificate is missing/unknown Problem title: Rebar3 cannot download packages behind proxy, CA certificate is missing/unknown Tags: erlang, rebar3, elixir Problem: Rebar3 cannot download packages behind proxy, CA certificate is missing/unknown When trying to downl...
Rebar3 cannot download packages behind proxy, CA certificate is missing/unknown Rebar3 cannot download packages behind proxy, CA certificate is missing/unknown erlang rebar3 elixir Rebar3 TLS ssl_handshake.erl:2015 CLIENT ALERT Fatal Unknown deps.compile Rebar3 cannot download packages behind proxy, CA certificate is m...
[ 0.0081787109375, 0.0244140625, -0.000789642333984375, 0.005706787109375, 0.0022430419921875, 0.005126953125, 0.0103759765625, 0.01806640625, 0.0034027099609375, 0.0213623046875, 0.005279541015625, -0.02197265625, 0.0057373046875, 0.0252685546875, 0.0010833740234375, 0.0220947265625, ...
[ 853, 1299, 363, 53418, 7026, 98169, 50155, 502, 50878, 23687, 163769, 132283, 69723, 72, 3066, 456, 15296, 38308, 20602, 24861, 12336, 70704, 56, 141, 5357, 10927, 9804, 56263, 3036, 1803, 992, 8, 6423, 58875, 1340, 309, 31577, 375, 5974, ...
[ 0.1351318359375, 0.26708984375, 0.2066650390625, 0.111572265625, 0.162841796875, 0.18505859375, 0.1739501953125, 0.10723876953125, 0.2431640625, 0.1705322265625, 0.21826171875, 0.1407470703125, 0.14599609375, 0.0225677490234375, 0.15673828125, 0.1151123046875, 0.03790283203125, 0.1...
embed
43364255_c0
43364255
elixir
0
Title: ExUnit without assert/refute, relying solely on pattern matching? Problem title: ExUnit without assert/refute, relying solely on pattern matching? Tags: testing, ex-unit, elixir Problem: ExUnit without assert/refute, relying solely on pattern matching? I'm testing the return value of a function. Which of the two...
ExUnit without assert/refute, relying solely on pattern matching? ExUnit without assert/refute, relying solely on pattern matching? testing ex-unit elixir MatchError assert pattern ExUnit MyModule.my_fun ExUnit without assert/refute, relying solely on pattern matching? I'm testing the return value of a function. Which ...
[ -0.01007080078125, 0.0047607421875, -0.011474609375, -0.00002014636993408203, -0.0037841796875, -0.007659912109375, -0.0213623046875, 0.0037689208984375, 0.00592041015625, 0.004150390625, -0.0030059814453125, 0.0027618408203125, 0.00634765625, 0.0177001953125, 0.0303955078125, 0.016479...
[ 5443, 85600, 18, 15490, 237, 33657, 29087, 6743, 456, 538, 31247, 103510, 14858, 214, 134234, 1119, 309, 217, 15296, 38308, 67407, 18468, 31611, 2646, 91616, 8782, 1176, 16498, 64, 98, 30646, 34292, 32354, 6626, 12601, 2822, 3917, 1884, 511...
[ 0.225830078125, 0.255615234375, 0.140380859375, 0.1649169921875, 0.0953369140625, 0.255126953125, 0.1536865234375, 0.214111328125, 0.045562744140625, 0.1268310546875, 0.076904296875, 0.20947265625, 0.195068359375, 0.0943603515625, 0.1920166015625, 0.231689453125, 0.18310546875, 0.1...
embed
33352329_c0
33352329
elixir
0
Title: What is syntax for byte_size in pattern matching? Problem title: What is syntax for byte_size in pattern matching? Tags: elixir, pattern-matching Problem: What is syntax for byte_size in pattern matching? How to match and what syntax is to check byte_size equal 12 length pattern in handle_info() ? Can I use both...
What is syntax for byte_size in pattern matching? What is syntax for byte_size in pattern matching? elixir pattern-matching What byte_size handle_info elixir_serial Enum.reverse Logger.debug What is syntax for byte_size in pattern matching? How to match and what syntax is to check byte_size equal 12 length pattern in h...
[ -0.0146484375, 0.0076904296875, -0.00738525390625, 0.013671875, -0.0084228515625, -0.002197265625, 0.000530242919921875, 0.01214599609375, 0.00750732421875, -0.00787353515625, 0.044677734375, -0.024658203125, 0.0026397705078125, -0.00811767578125, 0.0150146484375, -0.01220703125, 0.0...
[ 4865, 83, 6002, 86531, 100, 390, 67, 454, 62539, 23, 103510, 14858, 214, 15296, 38308, 98753, 34831, 7319, 184, 51626, 357, 316, 37676, 64906, 56, 112, 85779, 12765, 105950, 427, 140909, 4527, 15044, 79315, 13315, 17932, 89536, 18151, 15490...
[ 0.0281219482421875, 0.057952880859375, 0.1595458984375, 0.251220703125, 0.08935546875, 0.107666015625, 0.15234375, 0.09228515625, 0.232666015625, 0.059478759765625, 0.230224609375, 0.20654296875, 0.122802734375, 0.05029296875, 0.193359375, 0.221923828125, 0.1781005859375, 0.1888427...
embed
69004874_c0
69004874
elixir
0
Title: how to install HEX offline Problem title: how to install HEX offline Tags: elixir, hex, offline Problem: how to install HEX offline Please is there a workaround for installing HEX offline? D:\Paperless\PeopleCost\server>mix local.hex --force ** (Mix) httpc request failed with: {:failed_connect, [{:to_address, {'...
how to install HEX offline how to install HEX offline elixir hex offline HEX Paperless PeopleCost local.hex Mix failed_connect to_address repo.hex.pm Could hex-1.x.csv Alternatively archive.install how to install HEX offline Please is there a workaround for installing HEX offline?
[ 0.004913330078125, 0.01507568359375, 0.0174560546875, 0.01263427734375, -0.00201416015625, -0.0274658203125, -0.01116943359375, -0.031982421875, -0.0024261474609375, -0.00634765625, 0.0142822265625, -0.04052734375, 0.01092529296875, 0.0218505859375, 0.0166015625, -0.0108642578125, -0...
[ 3642, 47, 20600, 572, 26939, 96083, 15296, 38308, 764, 425, 62323, 9393, 41021, 441, 5510, 4000, 1106, 37286, 165523, 135457, 107421, 93392, 26822, 191147, 5759, 5, 4439, 334, 103905, 147488, 80383, 4488, 67688, 214 ]
[ 0.0927734375, 0.08770751953125, 0.2095947265625, 0.195068359375, 0.278564453125, 0.265869140625, 0.09344482421875, 0.1881103515625, 0.2142333984375, 0.244384765625, 0.1300048828125, 0.140625, 0.09716796875, 0.042449951171875, 0.1431884765625, 0.06561279296875, 0.2149658203125, 0.16...
embed
46058865_c0
46058865
elixir
0
Title: Syntax error for inet parse_address command in elixir Problem title: Syntax error for inet parse_address command in elixir Tags: elixir, erlang, erlang-shell Problem: Syntax error for inet parse_address command in elixir I am new to elixir . My task to check if the given string is an ip address or a number . I f...
Syntax error for inet parse_address command in elixir Syntax error for inet parse_address command in elixir elixir erlang erlang-shell SyntaxError Syntax parse_address iex:1 Syntax error for inet parse_address command in elixir I am new to elixir . My task to check if the given string is an ip address or a number . I f...
[ -0.006744384765625, 0.01214599609375, -0.0194091796875, 0.0279541015625, -0.003326416015625, 0.0174560546875, -0.01470947265625, -0.0152587890625, -0.01300048828125, -0.021240234375, 0.0240478515625, -0.00732421875, -0.007110595703125, 0.000820159912109375, 0.0037078857421875, -0.00016...
[ 19010, 86531, 18499, 100, 23, 126, 366, 184, 712, 107421, 75101, 15296, 38308, 72, 3066, 128019, 18468, 31611, 17, 3355, 19721, 454, 66211, 12765, 2174, 34475, 79315, 83, 254, 29823, 14012, 14037, 1556, 903, 959, 87344, 95307, 57553, 18151,...
[ 0.1605224609375, 0.1806640625, 0.182373046875, 0.03997802734375, 0.0897216796875, 0.200439453125, 0.1444091796875, 0.1361083984375, 0.06854248046875, 0.1923828125, 0.15625, 0.10699462890625, 0.2509765625, 0.045989990234375, 0.1934814453125, 0.1546630859375, 0.116943359375, 0.006866...
embed
39481243_c0
39481243
elixir
0
Title: Get the current ID in Postgres before insert Problem title: Get the current ID in Postgres before insert Tags: elixir, postgresql, ecto, postgrex Problem: Get the current ID in Postgres before insert I'm trying to hash the current ID of every book I insert in the database, so that every book will be recognized b...
Get the current ID in Postgres before insert Get the current ID in Postgres before insert elixir postgresql ecto postgrex Get Postgres books_id_seq get_currval Book Repo.one Get the current ID in Postgres before insert I'm trying to hash the current ID of every book I insert in the database, so that every book will be ...
[ -0.01531982421875, -0.00173187255859375, -0.006256103515625, 0.0184326171875, 0.0218505859375, -0.00081634521484375, -0.005889892578125, 0.0004558563232421875, 0.0074462890625, -0.10888671875, 0.0208740234375, 0.040283203125, -0.0218505859375, 0.0036468505859375, 0.01544189453125, -0.0...
[ 20779, 70, 43581, 11338, 23, 2795, 17562, 8108, 183540, 15296, 38308, 1305, 99247, 60751, 7134, 425, 42840, 532, 184, 864, 2046, 64240, 1405, 27432, 853, 771, 3630, 31577, 1556, 127, 111, 11907, 12877, 63399, 125296, 6044, 40899, 83, 3917, ...
[ 0.1231689453125, 0.07568359375, 0.27392578125, 0.256103515625, 0.0911865234375, 0.137939453125, 0.25390625, 0.1878662109375, 0.29052734375, 0.0731201171875, 0.185546875, 0.0706787109375, 0.1298828125, 0.201416015625, 0.140625, 0.04486083984375, 0.179931640625, 0.1956787109375, 0....
embed
40230953_c0
40230953
elixir
0
Title: Slice a string using index positions in Elixir Problem title: Slice a string using index positions in Elixir Tags: string, elixir Problem: Slice a string using index positions in Elixir In Ruby, I can go: "Sergio"[1..-1] #> "ergio" Doing the same in Elixir gives a runtime error: iex(1)> "Sergio"[1..-1] ** (Compi...
Slice a string using index positions in Elixir Slice a string using index positions in Elixir string elixir CompileError FunctionClauseError index Slice Elixir Sergio iex:1 Access Access.get String.slice string.ex:1471 Slice a string using index positions in Elixir In Ruby, I can go: Doing the same in Elixir gives a ru...
[ -0.0107421875, -0.00836181640625, 0.0008697509765625, 0.0242919921875, -0.01708984375, -0.0126953125, -0.00153350830078125, 0.0113525390625, 0.01104736328125, -0.01348876953125, 0.00634765625, -0.01214599609375, -0.0306396484375, 0.013427734375, 0.00128173828125, -0.006256103515625, ...
[ 159, 13348, 79315, 17368, 63262, 19069, 25318, 38308, 10, 23, 15296, 15612, 1340, 18468, 31611, 28670, 26253, 110224, 17, 3355, 19721, 40266, 3794, 23351, 214, 7, 22635, 15770, 360, 158189, 831, 738, 11675, 6032, 18499, 2046, 1614, 91693, 1...
[ 0.0193939208984375, 0.2091064453125, 0.2413330078125, 0.0704345703125, 0.2117919921875, 0.1806640625, 0.1229248046875, 0.280029296875, 0.013031005859375, 0.040313720703125, 0.07891845703125, 0.061737060546875, 0.053802490234375, 0.0809326171875, 0.04632568359375, 0.04937744140625, 0....
embed
35217634_c1
35217634
elixir
1
than second about 6 times. Replace "#{prod}" == String.reverse("#{prod}") on Integer.to_string(prod) == String.reverse(Integer.to_string(prod)) give a gain. For example, use this test: test "smallest palindromes from triple digit factors" do palindromes = Palindromes.generate(999, 100) assert palindromes |> Dict.keys ...
than second about 6 times. Replace "#{prod}" == String.reverse("#{prod}") on Integer.to_string(prod) == String.reverse(Integer.to_string(prod)) give a gain. For example, use this test: test "smallest palindromes from triple digit factors" do palindromes = Palindromes.generate(999, 100) assert palindromes |> Dict.keys ...
[ -0.0286865234375, -0.0164794921875, -0.0027313232421875, 0.0260009765625, -0.019775390625, 0.01025390625, 0.0028839111328125, -0.0269775390625, 0.00909423828125, -0.036376953125, 0.0174560546875, 0.033447265625, -0.0035400390625, -0.0191650390625, 0.007354736328125, -0.0093994140625, ...
[ 3501, 17932, 1672, 305, 20028, 853, 23935, 4904, 112348, 69112, 23351, 214, 107, 37676, 44401, 188, 91693, 5, 67, 1505, 8337, 10, 21647, 4527, 3034, 88611, 271, 17923, 39670, 3716, 162738, 153939, 120103, 92370, 48281, 65040, 805, 33657, 60...
[ 0.121826171875, 0.2156982421875, 0.05914306640625, 0.1383056640625, 0.2376708984375, 0.0478515625, 0.1356201171875, 0.076904296875, 0.2305908203125, 0.045013427734375, 0.1326904296875, 0.0307769775390625, 0.0347900390625, 0.1968994140625, 0.2021484375, 0.1658935546875, 0.229614257812...
embed
41009484_c0
41009484
elixir
0
Title: Variable assignment in Elixir Problem title: Variable assignment in Elixir Tags: erlang, elixir Problem: Variable assignment in Elixir I have a question about variable assignment in Elixir. In Erlang, this would raise a no match of right hand side value : X = 4. X = 2. However, it seems perfectly fine in Elixir ...
Variable assignment in Elixir Variable assignment in Elixir erlang elixir Variable Elixir Variable assignment in Elixir I have a question about variable assignment in Elixir. In Erlang, this would raise a no match of right hand side value : However, it seems perfectly fine in Elixir to assign a value to a variable more...
[ -0.00494384765625, 0.02392578125, 0.005523681640625, 0.009521484375, 0.01422119140625, 0.00078582763671875, -0.0137939453125, 0.00970458984375, 0.016357421875, 0.00885009765625, 0.01458740234375, -0.01080322265625, 0.020263671875, 0.014404296875, 0.01446533203125, 0.021728515625, 0.0...
[ 84572, 2886, 95486, 674, 25318, 38308, 23, 72, 3066, 15296, 9655, 77336, 1004, 138804, 110, 14858, 7108, 3535, 5609, 34292, 169123, 5885, 47, 1286, 24145, 55681, 103510, 214, 43240, 99710, 2182, 17721, 1193, 51, 99091, 831, 678, 23937, 5701...
[ 0.228515625, 0.1983642578125, 0.2337646484375, 0.058380126953125, 0.154296875, 0.2763671875, 0.037139892578125, 0.080810546875, 0.257080078125, 0.10546875, 0.0249786376953125, 0.29638671875, 0.10888671875, 0.111083984375, 0.0594482421875, 0.2017822265625, 0.08160400390625, 0.105346...
embed
76104688_c0
76104688
elixir
0
Title: Why is the value prefixed with "Elixir."? Problem title: Why is the value prefixed with "Elixir."? Tags: module, elixir, alias Problem: Why is the value prefixed with "Elixir."? Working with maps provide me with an unexpected outcome in VS Code: The expected outcome, when picking a property o...
Why is the value prefixed with "Elixir."? Why is the value prefixed with "Elixir."? module elixir alias Why Elixir Why is the value prefixed with "Elixir."? Working with maps provide me with an unexpected outcome in VS Code: The expected outcome, when picking a property out of the maps, is prefixed ...
[ 0.00634765625, -0.01373291015625, 0.000782012939453125, 0.01434326171875, 0.0027923583984375, -0.00104522705078125, 0.0059814453125, 0.01806640625, 0.006439208984375, 0.003570556640625, 0.002960205078125, 0.00927734375, 0.02197265625, 0.0228271484375, 0.0223388671875, -0.00084686279296...
[ 44084, 83, 34292, 183114, 297, 678, 41502, 647, 150, 38308, 5, 88996, 15296, 55109, 25318, 27985, 22288, 22691, 241957, 184345, 44160, 28864, 84751, 39580, 57266, 1810, 134629, 7026, 11389, 387, 13312, 11787, 3773, 4541, 12601, 16610, 19774, ...
[ 0.1817626953125, 0.054443359375, 0.2401123046875, 0.278564453125, 0.09844970703125, 0.102783203125, 0.0257415771484375, 0.056182861328125, 0.1390380859375, 0.322265625, 0.1060791015625, 0.1788330078125, 0.1151123046875, 0.198974609375, 0.1600341796875, 0.0269622802734375, 0.160034179...
embed
52309222_c1
52309222
elixir
1
On my local server logs: [info] POST /api/graphql [debug] QUERY OK source="users" db=1.6ms SELECT u0."id", u0."email", u0."fb_id", u0."full_name", u0."avatar_url", u0."password_digest", u0."email_confirmed_at", u0."inserted_at", u0."updated_at" FROM "users" AS u0 WHERE (u0."id" = $1) [1] [debug] ABSINTHE schema=MyApp....
On my local server logs: [info] POST /api/graphql [debug] QUERY OK source="users" db=1.6ms SELECT u0."id", u0."email", u0."fb_id", u0."full_name", u0."avatar_url", u0."password_digest", u0."email_confirmed_at", u0."inserted_at", u0."updated_at" FROM "users" AS u0 WHERE (u0."id" = $1) [1] [debug] ABSINTHE schema=MyApp....
[ -0.0038909912109375, 0.006378173828125, 0.001861572265625, 0.01092529296875, -0.01214599609375, 0.01953125, 0.005523681640625, -0.01531982421875, 0.00738525390625, -0.0111083984375, 0.01385498046875, 0.007080078125, 0.030029296875, 0.00982666015625, -0.0155029296875, -0.000019192695617...
[ 2161, 759, 4000, 10723, 12684, 7, 7319, 81903, 40897, 41382, 99247, 112, 85779, 21389, 34388, 14315, 31344, 223, 1314, 40041, 1369, 122336, 4432, 6755, 144832, 75, 2389, 532, 25501, 275, 25724, 454, 11627, 24047, 147, 25002, 13409, 47416, 4...
[ 0.0858154296875, 0.0662841796875, 0.17724609375, 0.196533203125, 0.2301025390625, 0.1015625, 0.1597900390625, 0.198974609375, 0.1600341796875, 0.240478515625, 0.283447265625, 0.043212890625, 0.162841796875, 0.13818359375, 0.07421875, 0.182373046875, 0.197509765625, 0.1180419921875,...
embed
40909950_c0
40909950
elixir
0
Title: Testing if nodes are visible to each other? Problem title: Testing if nodes are visible to each other? Tags: erlang, elixir Problem: Testing if nodes are visible to each other? How would I check if my deployed nodes can see each other? I tried to do: mix edeliver ping production --verbose I got: EDELIVER MY_IDEA...
Testing if nodes are visible to each other? Testing if nodes are visible to each other? erlang elixir Testing EDELIVER MY_IDEA PING COMMAND Nodes Testing if nodes are visible to each other? How would I check if my deployed nodes can see each other? I tried to do: I got: My app is deployed to: I know this can be achieve...
[ -0.007781982421875, 0.012939453125, 0.0098876953125, 0.0244140625, 0.00347900390625, 0.00262451171875, -0.0003910064697265625, -0.00830078125, 0.01141357421875, -0.01556396484375, 0.004669189453125, -0.01409912109375, 0.022705078125, 0.0045166015625, 0.0108642578125, -0.004364013671875...
[ 8647, 214, 2174, 110, 988, 621, 75693, 47, 12638, 3789, 72, 3066, 15296, 38308, 44444, 53692, 33255, 54133, 36497, 284, 212003, 31436, 13940, 438, 12765, 8, 13158, 53, 831, 1957, 37842, 4027, 3714, 69307, 1829, 75101, 13315, 11675, 130250, ...
[ 0.20556640625, 0.0809326171875, 0.1241455078125, 0.158447265625, 0.174072265625, 0.078125, 0.247314453125, 0.1446533203125, 0.1134033203125, 0.160888671875, 0.0819091796875, 0.2191162109375, 0.0858154296875, 0.2034912109375, 0.0306243896484375, 0.0965576171875, 0.087158203125, 0.05...
embed
37547034_c0
37547034
elixir
0
Title: How to create a custom error controller or hook Problem title: How to create a custom error controller or hook Tags: phoenix-framework, elixir Problem: How to create a custom error controller or hook Basically I want to be able to know when a server error is served to the user. I saw that in earlier versions of ...
How to create a custom error controller or hook How to create a custom error controller or hook phoenix-framework elixir How error_controller How to create a custom error controller or hook Basically I want to be able to know when a server error is served to the user. I saw that in earlier versions of Phoenix it was po...
[ -0.00933837890625, -0.0029449462890625, -0.002716064453125, 0.017822265625, 0.005401611328125, 0.000039577484130859375, -0.01385498046875, -0.0272216796875, 0.0081787109375, -0.0478515625, -0.013427734375, -0.04052734375, 0.0238037109375, 0.002593994140625, 0.0244140625, 0.008972167968...
[ 11249, 47, 28282, 10, 114122, 18499, 185373, 707, 150522, 53073, 33, 4084, 160328, 18244, 15296, 38308, 81988, 603, 3444, 19048, 3714, 3229, 10723, 149976, 38937, 11389, 133720, 7722, 61924, 153837, 122188, 60213, 184750, 43581, 212059, 100474, ...
[ 0.089111328125, 0.031097412109375, 0.1903076171875, 0.054962158203125, 0.234375, 0.2401123046875, 0.2880859375, 0.0770263671875, 0.227294921875, 0.07403564453125, 0.071533203125, 0.1392822265625, 0.0904541015625, 0.0198211669921875, 0.0767822265625, 0.1923828125, 0.205322265625, 0....
embed
33928577_c0
33928577
elixir
0
Title: Logger not working Elixir Problem title: Logger not working Elixir Tags: elixir, logging, phoenix-framework Problem: Logger not working Elixir I am trying to use the Logger.debug/1 for my web-project. I am unable to get past this error message even though I did make additions to the configuration file (config.ex...
Logger not working Elixir Logger not working Elixir elixir logging phoenix-framework CompileError Logger Elixir Logger.debug app_controller.ex:36 compile_time_purge_level Logger not working Elixir I am trying to use the Logger.debug/1 for my web-project. I am unable to get past this error message even though I did make...
[ -0.00872802734375, 0.014892578125, -0.01312255859375, 0.0036163330078125, 0.012939453125, 0.01470947265625, -0.016845703125, -0.00147247314453125, -0.0004787445068359375, -0.038818359375, -0.00958251953125, -0.01397705078125, 0.0186767578125, 0.0048828125, 0.0125732421875, -0.016235351...
[ 64906, 56, 959, 20697, 25318, 38308, 15296, 459, 36659, 53073, 33, 4084, 160328, 18244, 15612, 1340, 18468, 31611, 112, 85779, 4027, 81988, 603, 3355, 32944, 9969, 6032, 4717, 429, 67919, 31577, 4527, 11583, 1467, 95322, 2886, 11015, 18499, ...
[ 0.2406005859375, 0.247802734375, 0.1002197265625, 0.1806640625, 0.1605224609375, 0.266845703125, 0.1378173828125, 0.15234375, 0.07025146484375, 0.046600341796875, 0.07452392578125, 0.1224365234375, 0.09930419921875, 0.0193328857421875, 0.1353759765625, 0.1190185546875, 0.062286376953...
embed
37200603_c0
37200603
elixir
0
Title: How can I add an attribute dynamically in Slim lang? Problem title: How can I add an attribute dynamically in Slim lang? Tags: elixir, html, slim-lang, phoenix-framework Problem: How can I add an attribute dynamically in Slim lang? In my Exlir/Phoenix app I'm using slim and I want to add an attribute dynamically...
How can I add an attribute dynamically in Slim lang? How can I add an attribute dynamically in Slim lang? elixir html slim-lang phoenix-framework How Slim some_condition How can I add an attribute dynamically in Slim lang? In my Exlir/Phoenix app I'm using slim and I want to add an attribute dynamically: However, slim ...
[ -0.0022735595703125, 0.004669189453125, -0.00311279296875, -0.0283203125, -0.0118408203125, 0.016357421875, 0.0089111328125, 0.026611328125, 0.0185546875, -0.031494140625, 0.0135498046875, 0.004180908203125, 0.00151824951171875, 0.000017881393432617188, 0.00823974609375, 0.006103515625...
[ 11249, 831, 15190, 150380, 13, 84079, 25958, 23, 82344, 1937, 142, 15296, 38308, 7693, 34264, 3066, 53073, 33, 4084, 160328, 3060, 126940, 5443, 23062, 497, 4027, 89159, 903, 12765, 78292, 46132, 107730, 7909, 237, 10941, 1286, 645, 144281, ...
[ 0.04998779296875, 0.03948974609375, 0.1790771484375, 0.2442626953125, 0.1201171875, 0.2303466796875, 0.115478515625, 0.0694580078125, 0.261474609375, 0.1796875, 0.0247802734375, 0.0255126953125, 0.1700439453125, 0.10443115234375, 0.2386474609375, 0.1290283203125, 0.0158538818359375, ...
embed
36429879_c1
36429879
elixir
1
.Ecto, username: "dev", password: "dev", pool_size: 10], pak_data: "", pak_header: "", queue: {[{{:connect, [port: 1433, hostname: ".", database: "master", otp_app: :phoenix_sample, repo: PhoenixSample.Repo, adapter: Tds.Ecto, username: "dev", password: "dev", pool_size: 10]}, {#PID<0.46.0>, #Reference<0.0.2.504>}, #Re...
.Ecto, username: "dev", password: "dev", pool_size: 10], pak_data: "", pak_header: "", queue: {[{{:connect, [port: 1433, hostname: ".", database: "master", otp_app: :phoenix_sample, repo: PhoenixSample.Repo, adapter: Tds.Ecto, username: "dev", password: "dev", pool_size: 10]}, {#PID<0.46.0>, #Reference<0.0.2.504>}, #Re...
[ 0.0198974609375, 0.01470947265625, -0.0057373046875, 0.0208740234375, 0.0150146484375, -0.009033203125, -0.01483154296875, -0.016357421875, 0.000766754150390625, -0.037841796875, 0.011962890625, -0.0213623046875, 0.039794921875, 0.0140380859375, -0.00592041015625, 0.001739501953125, ...
[ 5, 647, 44150, 38937, 11627, 18548, 78506, 19361, 62539, 209, 2522, 10135, 31251, 41, 135457, 6982, 616, 9185, 27980, 63399, 47327, 36, 18, 254, 9007, 22014, 33, 4084, 33209, 93392, 133720, 5464, 4332, 771, 123666, 384, 6468, 683, 7146, 1...
[ 0.072021484375, 0.138671875, 0.3232421875, 0.1361083984375, 0.0919189453125, 0.2108154296875, 0.2060546875, 0.126953125, 0.0721435546875, 0.0675048828125, 0.139404296875, 0.129638671875, 0.162109375, 0.12548828125, 0.1868896484375, 0.14306640625, 0.0748291015625, 0.19482421875, 0...
embed
51189370_c0
51189370
elixir
0
Title: List failing Elixir tests at the end of a run Problem title: List failing Elixir tests at the end of a run Tags: elixir, ex-unit Problem: List failing Elixir tests at the end of a run Whenever there are multiple failures, I find it difficult to scroll through the verbose output and find the failing tests. Is the...
List failing Elixir tests at the end of a run List failing Elixir tests at the end of a run elixir ex-unit List Elixir Finished Randomized some_test.exs:111 another_test.exs:25 yet_another_test.exs:58 List failing Elixir tests at the end of a run Whenever there are multiple failures, I find it difficult to scroll throu...
[ 0.0218505859375, 0.008056640625, 0.010986328125, -0.01385498046875, -0.000286102294921875, 0.006378173828125, -0.006195068359375, -0.007537841796875, 0.01165771484375, 0.0341796875, 0.00238037109375, -0.00506591796875, 0.00531005859375, 0.0301513671875, -0.006866455078125, 0.0180664062...
[ 32036, 35782, 214, 25318, 38308, 109921, 99, 3564, 111, 11675, 15296, 1119, 309, 13316, 164, 39643, 306, 3060, 6954, 3355, 97024, 15700, 21224, 14373, 33593, 48716, 137578, 7413, 34844, 192046, 8305, 57823, 140992, 3917, 47, 5303, 756, 70, ...
[ 0.1422119140625, 0.196533203125, 0.10687255859375, 0.0953369140625, 0.2103271484375, 0.218017578125, 0.03948974609375, 0.1365966796875, 0.0535888671875, 0.103759765625, 0.06268310546875, 0.1085205078125, 0.067626953125, 0.0631103515625, 0.042327880859375, 0.0400390625, 0.029388427734...
embed
44845355_c0
44845355
elixir
0
Title: Elixir app test configuration Problem title: Elixir app test configuration Tags: elixir Problem: Elixir app test configuration I have a phoenix web app that uses redis for data storage. My config folder contains the following files: config.exs config :exredis, url: System.get_env("REDIS_URL") || "redis://redis:6...
Elixir app test configuration Elixir app test configuration elixir Elixir System.get_env REDIS_URL redis:6379 my_test.ex my_test.exs Elixir app test configuration I have a phoenix web app that uses redis for data storage. My config folder contains the following files: config.exs test.exs When I run tests from console u...
[ -0.004913330078125, 0.00616455078125, -0.0111083984375, -0.00341796875, 0.0179443359375, -0.006500244140625, -0.01495361328125, 0.007232666015625, 0.00848388671875, 0.015625, -0.00341796875, 0.01336669921875, 0.01007080078125, 0.0155029296875, -0.00160980224609375, 0.015869140625, -0...
[ 25318, 38308, 4027, 3034, 180346, 15296, 12353, 3794, 33, 334, 118790, 9956, 95538, 4842, 164, 141520, 759, 6954, 3355, 53073, 4084, 1467, 4527, 2053, 132096, 153837, 78303, 70541, 25632, 102158, 7, 11675, 109921, 1295, 130250, 36049, 110527, ...
[ 0.1363525390625, 0.2481689453125, 0.1650390625, 0.238037109375, 0.2103271484375, 0.092041015625, 0.09930419921875, 0.044403076171875, 0.043212890625, 0.114013671875, 0.134033203125, 0.1580810546875, 0.0755615234375, 0.1435546875, 0.17041015625, 0.1175537109375, 0.103271484375, 0.24...
embed
73571528_c1
73571528
elixir
1
name, :image_src]) |> validate_required([:name]) end end Migration file is pretty standard: defmodule MyApp.Repo.Migrations.CreateTeams do use Ecto.Migration def change do create table(:teams) do add :name, :string add :image_src, :string Code signals: Postgrex.Error, Ecto.Changeset, Ecto, Association, Team, team_a_id,...
name, :image_src]) |> validate_required([:name]) end end Migration file is pretty standard: defmodule MyApp.Repo.Migrations.CreateTeams do use Ecto.Migration def change do create table(:teams) do add :name, :string add :image_src, :string Code signals: Postgrex.Error, Ecto.Changeset, Ecto, Association, Team, team_a_id,...
[ 0.01055908203125, -0.0166015625, 0.0022125244140625, 0.0224609375, 0.01214599609375, 0.00714111328125, -0.0068359375, -0.0361328125, 0.006317138671875, 0.00714111328125, 0.025634765625, 0.024658203125, 0.032958984375, 0.0106201171875, -0.021728515625, 0.008544921875, 0.00162506103515...
[ 9351, 4, 152, 37926, 19437, 2740, 44622, 67, 107, 3181, 2822, 12, 11627, 268, 16, 3564, 180809, 11435, 83, 28875, 5570, 8, 420, 83279, 13, 2646, 39179, 4332, 771, 594, 72482, 5256, 63784, 2182, 101409, 4527, 241, 44150, 5, 872, 30494, ...
[ 0.168212890625, 0.00360107421875, 0.029632568359375, 0.1925048828125, 0.1798095703125, 0.006683349609375, 0.24560546875, 0.160400390625, 0.058197021484375, 0.1683349609375, 0.14599609375, 0.061981201171875, 0.1832275390625, 0.032806396484375, 0.1044921875, 0.1876220703125, 0.29711914...
embed
78302367_c0
78302367
elixir
0
Title: Comprehension using a collector does not collect its data Problem title: Comprehension using a collector does not collect its data Tags: elixir Problem: Comprehension using a collector does not collect its data My understanding is that a map implements the Collector protocol and therefore can be used in the into...
Comprehension using a collector does not collect its data Comprehension using a collector does not collect its data elixir a Comprehension IO.puts Map.keys Comprehension using a collector does not collect its data My understanding is that a map implements the Collector protocol and therefore can be used in the into: pa...
[ 0.0023956298828125, 0.01019287109375, 0.0074462890625, 0.01312255859375, -0.0205078125, -0.006317138671875, 0.0081787109375, -0.00408935546875, 0.0054931640625, -0.014892578125, -0.0118408203125, 0.0218505859375, 0.0277099609375, 0.017333984375, 0.00927734375, -0.005889892578125, -0....
[ 142158, 3220, 6889, 17368, 43799, 748, 14602, 959, 6863, 2053, 15296, 38308, 17780, 7077, 42719, 19770, 100094, 22288, 29479, 138521, 91363, 831, 11814, 3934, 2831, 46683, 9790, 54397, 1528, 84751, 347, 5423, 3564, 1745, 71574, 2055, 53, 425,...
[ 0.1949462890625, 0.2164306640625, 0.1358642578125, 0.11572265625, 0.215576171875, 0.1968994140625, 0.025848388671875, 0.143310546875, 0.066650390625, 0.1514892578125, 0.056396484375, 0.1806640625, 0.150390625, 0.0723876953125, 0.168701171875, 0.153076171875, 0.02825927734375, 0.214...
embed
49010570_c0
49010570
elixir
0
Title: Like query on Integer primary key Id Problem title: Like query on Integer primary key Id Tags: sql, sql-like, elixir, ecto Problem: Like query on Integer primary key Id In ecto I can write query = from q in CustomerModel, where: like(q.id, "%1") #Ecto.Query<from c in Qber.V1.CustomerModel, where: like(c.id, "%1"...
Like query on Integer primary key Id Like query on Integer primary key Id sql sql-like elixir ecto q c Like Integer CustomerModel q.id Ecto.Query Qber.V1.CustomerModel c.id undefined_function SELECT WHERE CAST TEXT Like query on Integer primary key Id In ecto I can write and when I run this query I get from this questi...
[ -0.005859375, 0.000865936279296875, -0.009765625, 0.02880859375, 0.006988525390625, 0.004241943359375, 0.0118408203125, 0.003997802734375, -0.006622314453125, -0.0556640625, 0.0166015625, -0.006195068359375, -0.0050048828125, 0.01123046875, 0.0224609375, -0.00579833984375, -0.0371093...
[ 18852, 41, 1294, 98, 44401, 158978, 22799, 24799, 99247, 5062, 15296, 38308, 60751, 8096, 501, 124765, 140290, 532, 241, 44150, 41732, 2396, 1297, 856, 63749, 1991, 9232, 5983, 137175, 6755, 144832, 841, 30096, 313, 48963, 13018, 70981, 831, ...
[ 0.27685546875, 0.160888671875, 0.1065673828125, 0.0992431640625, 0.1832275390625, 0.1640625, 0.1622314453125, 0.15771484375, 0.13525390625, 0.2056884765625, 0.042510986328125, 0.1654052734375, 0.232177734375, 0.06494140625, 0.007354736328125, 0.2052001953125, 0.2073974609375, 0.126...
embed
48219266_c0
48219266
elixir
0
Title: Storing GenServer result from for loop Problem title: Storing GenServer result from for loop Tags: elixir, phoenix-framework Problem: Storing GenServer result from for loop I need to store the last result of a GenServer Call inside a for loop. I can't really figure out how this should be correctly done. def hand...
Storing GenServer result from for loop Storing GenServer result from for loop elixir phoenix-framework for Storing GenServer handle_info load_info state.infos info_link Infos.Server.start_link Map.put info.name Storing GenServer result from for loop I need to store the last result of a GenServer Call inside a for loop....
[ 0.0031280517578125, -0.00103759765625, -0.02197265625, -0.0014190673828125, -0.022705078125, -0.0004100799560546875, 0.016357421875, -0.00372314453125, 0.005218505859375, -0.02978515625, -0.0016632080078125, 0.0079345703125, 0.00830078125, 0.01080322265625, 0.00848388671875, 0.01300048...
[ 23604, 214, 15937, 193348, 16750, 1295, 100, 40956, 15296, 38308, 53073, 33, 4084, 160328, 18244, 34831, 7319, 72367, 11341, 3004, 10187, 98065, 17137, 42719, 7077, 11627, 3871, 4343, 4568, 26265, 46132, 26785, 16940 ]
[ 0.18701171875, 0.084716796875, 0.1649169921875, 0.2587890625, 0.1883544921875, 0.06768798828125, 0.11016845703125, 0.205078125, 0.04656982421875, 0.1632080078125, 0.025604248046875, 0.04766845703125, 0.1141357421875, 0.0966796875, 0.08441162109375, 0.1142578125, 0.11419677734375, 0...
embed
55731071_c0
55731071
elixir
0
Title: Strange behavior with Enum.chunk_every/2 Problem title: Strange behavior with Enum.chunk_every/2 Tags: elixir Problem: Strange behavior with Enum.chunk_every/2 Chunking via Enum is behaving in a confusing manner. Here's the code I'm executing: arr = [1,2,3,4,5,6,7] out = Enum.chunk_every(arr, 3) I'm expecting to...
Strange behavior with Enum.chunk_every/2 Strange behavior with Enum.chunk_every/2 elixir Strange Enum.chunk_every Strange behavior with Enum.chunk_every/2 Chunking via Enum is behaving in a confusing manner. Here's the code I'm executing: I'm expecting to get: but what I'm actually getting is: I don't understand what i...
[ -0.0004138946533203125, -0.0284423828125, 0.01116943359375, 0.002655029296875, -0.01708984375, 0.0250244140625, 0.01446533203125, -0.01214599609375, 0.00927734375, 0.0233154296875, 0.00274658203125, -0.000537872314453125, 0.003265380859375, 0.006805419921875, -0.00848388671875, -0.0170...
[ 187791, 123166, 678, 357, 316, 206, 3678, 104643, 12477, 15296, 38308, 183501, 449, 1829, 528, 6496, 55681, 6953, 144996, 18151, 71924, 41206, 214, 2046, 1284, 20653, 20949, 2301, 18, 28219, 2367, 123087, 70, 117221, 41872, 11, 68034, 3714, ...
[ 0.15966796875, 0.1583251953125, 0.009613037109375, 0.1431884765625, 0.242431640625, 0.0543212890625, 0.185791015625, 0.195068359375, 0.2225341796875, 0.095947265625, 0.208251953125, 0.2113037109375, 0.1907958984375, 0.10272216796875, 0.071533203125, 0.00384521484375, 0.11962890625, ...
embed
58661374_c0
58661374
elixir
0
Title: Why would I use maps in Elixir Problem title: Why would I use maps in Elixir Tags: elixir Problem: Why would I use maps in Elixir I've been learning the basics of Elixir for the past few days, and while I have read more than once that novices have a hard time deciding which data structures to use, I personally h...
Why would I use maps in Elixir Why would I use maps in Elixir elixir Why Elixir Map.fetch Map.some_function Why would I use maps in Elixir I've been learning the basics of Elixir for the past few days, and while I have read more than once that novices have a hard time deciding which data structures to use, I personally...
[ 0.01031494140625, 0.0034637451171875, 0.0086669921875, -0.0035247802734375, -0.009765625, -0.0159912109375, 0.01513671875, -0.010986328125, 0.010986328125, -0.0250244140625, 0.0096435546875, -0.000743865966796875, 0.0003528594970703125, 0.00982666015625, 0.0062255859375, -0.00078201293...
[ 44084, 2806, 87, 4527, 22288, 7, 23, 25318, 38308, 15296, 42719, 29362, 206, 43452, 137175, 62822, 95968, 2053, 45646, 165197, 12921, 17721, 103033, 63667, 15390, 17203, 44457, 11343, 3871, 11782, 5, 981, 62346, 28394, 36716, 72546, 23718, 31...
[ 0.1414794921875, 0.0892333984375, 0.04931640625, 0.1353759765625, 0.2440185546875, 0.1671142578125, 0.10009765625, 0.113525390625, 0.2257080078125, 0.076904296875, 0.209716796875, 0.1304931640625, 0.0182037353515625, 0.064453125, 0.163818359375, 0.013153076171875, 0.019622802734375, ...
embed
52949373_c0
52949373
elixir
0
Title: Elixir GenServer handle_call callback return type Problem title: Elixir GenServer handle_call callback return type Tags: gen-server, elixir Problem: Elixir GenServer handle_call callback return type I am implementing a GenServer and I am confused. I know handle_cast is asynchronous, which means the caller is not...
Elixir GenServer handle_call callback return type Elixir GenServer handle_call callback return type gen-server elixir Elixir GenServer handle_call handle_cast new_state GenServer.call Elixir GenServer handle_call callback return type I am implementing a GenServer and I am confused. I know handle_cast is asynchronous, w...
[ -0.005340576171875, 0.010498046875, -0.006866455078125, 0.0235595703125, -0.01263427734375, 0.0027008056640625, -0.013671875, -0.02587890625, -0.000942230224609375, -0.018798828125, 0.006866455078125, -0.0157470703125, -0.0018157958984375, 0.0274658203125, 0.0023956298828125, 0.0018615...
[ 25318, 38308, 15937, 193348, 34831, 85763, 11782, 12620, 30646, 10644, 9226, 39642, 15296, 55741, 3525, 61340, 29479, 55681, 12654, 101966, 26950, 56, 959, 89289, 75836, 370, 8705, 1884, 903, 157, 62479, 5701, 29459, 454, 200470, 10821, 86608, ...
[ 0.095947265625, 0.1993408203125, 0.1375732421875, 0.2176513671875, 0.217529296875, 0.1922607421875, 0.10308837890625, 0.1578369140625, 0.185791015625, 0.1373291015625, 0.0902099609375, 0.131591796875, 0.04156494140625, 0.1937255859375, 0.06109619140625, 0.151611328125, 0.057708740234...
embed
48460546_c0
48460546
elixir
0
Title: Check datatype before pattern matching in Elxir Problem title: Check datatype before pattern matching in Elxir Tags: elixir Problem: Check datatype before pattern matching in Elxir Is it possible to make multiple case matching like in this example? I want to merge two maps, maps, can be like this: map1 = %{"test...
Check datatype before pattern matching in Elxir Check datatype before pattern matching in Elxir elixir Check Elxir map1 map2 list2 Map.merge Enum.concat Check datatype before pattern matching in Elxir Is it possible to make multiple case matching like in this example? I want to merge two maps, maps, can be like this: I...
[ -0.0047607421875, 0.0146484375, -0.019775390625, 0.00970458984375, 0.0004596710205078125, 0.00128936767578125, -0.0169677734375, 0.00732421875, 0.012939453125, -0.0234375, 0.01397705078125, 0.0003108978271484375, 0.01519775390625, 0.007354736328125, 0.01165771484375, 0.00323486328125, ...
[ 38679, 2053, 50986, 8108, 103510, 14858, 214, 540, 38308, 23, 15296, 22288, 418, 304, 5303, 42719, 1991, 429, 357, 316, 2271, 4460, 7722, 3249, 48716, 7225, 1884, 27781, 3444, 42564, 6626, 831, 3714, 81, 12765, 136, 70731, 13 ]
[ 0.1519775390625, 0.10150146484375, 0.2685546875, 0.094482421875, 0.19580078125, 0.197509765625, 0.11639404296875, 0.11029052734375, 0.257568359375, 0.0035648345947265625, 0.0677490234375, 0.1435546875, 0.06256103515625, 0.121337890625, 0.14599609375, 0.133056640625, 0.1275634765625, ...
embed
75240685_c0
75240685
elixir
0
Title: Can I overload the subscription operator for Map in Elixir? Problem title: Can I overload the subscription operator for Map in Elixir? Tags: elixir Problem: Can I overload the subscription operator for Map in Elixir? Consider I have a map %{} where I have keys that are Decimal . Problematically, in Decimal 3 != ...
Can I overload the subscription operator for Map in Elixir? Can I overload the subscription operator for Map in Elixir? elixir Can Map Elixir Decimal Decimal.eq Decimal.new Decimal.from_float Can I overload the subscription operator for Map in Elixir? Consider I have a map %{} where I have keys that are Decimal . Probl...
[ 0.0048828125, 0.02294921875, 0.0291748046875, -0.01055908203125, -0.004180908203125, -0.015869140625, -0.003753662109375, 0.00311279296875, 0.01373291015625, -0.006683349609375, -0.026611328125, 0.0203857421875, 0.0198974609375, 0.031982421875, -0.00122833251953125, -0.00244140625, -...
[ 4171, 87, 645, 63033, 1614, 59478, 39933, 100, 42719, 23, 25318, 38308, 15296, 49132, 2749, 13, 864, 54936, 161063, 52347, 257, 22288, 22799, 118416, 138, 711, 17596, 63262, 214, 51, 150, 144570, 4527, 32, 12477, 3034, 28, 161789, 3917, 8...
[ 0.105712890625, 0.044586181640625, 0.1629638671875, 0.27001953125, 0.170166015625, 0.242431640625, 0.2127685546875, 0.0284576416015625, 0.23681640625, 0.08868408203125, 0.1217041015625, 0.252685546875, 0.0821533203125, 0.1719970703125, 0.1534423828125, 0.0256805419921875, 0.157592773...
embed
37461981_c0
37461981
elixir
0
Title: What is the best approach to append to a file in Elixir Problem title: What is the best approach to append to a file in Elixir Tags: elixir Problem: What is the best approach to append to a file in Elixir I've been stuck with some simple task. Let's assume we have some pseudo code: Enum.each 1..1_000_000, fn(id)...
What is the best approach to append to a file in Elixir What is the best approach to append to a file in Elixir elixir What Elixir Enum.each some_complex_method save_results File.open data.log IO.binwrite File.close What is the best approach to append to a file in Elixir I've been stuck with some simple task. Let's ass...
[ -0.004180908203125, 0.0017547607421875, -0.004241943359375, -0.004486083984375, 0.0186767578125, -0.01068115234375, -0.00634765625, 0.0079345703125, 0.011962890625, -0.01483154296875, 0.0096435546875, 0.003936767578125, -0.007354736328125, 0.01806640625, 0.02099609375, -0.017822265625,...
[ 2965, 51515, 114689, 71, 47, 11435, 23, 25318, 38308, 15296, 357, 316, 41581, 44974, 1928, 7352, 30098, 2109, 7136, 42724, 59636, 2053, 4867, 17780, 7568, 18781, 155648, 4865, 179933, 8781, 66211, 74189, 18151, 78662, 37457, 140533, 1733, 734...
[ 0.1370849609375, 0.159912109375, 0.1588134765625, 0.1173095703125, 0.08953857421875, 0.19189453125, 0.0804443359375, 0.1146240234375, 0.25439453125, 0.082763671875, 0.050079345703125, 0.180908203125, 0.08026123046875, 0.115234375, 0.054168701171875, 0.1087646484375, 0.1563720703125, ...
embed
22266732_c0
22266732
elixir
0
Title: How do you make this work ... and why does it not work? Problem title: How do you make this work ... and why does it not work? Tags: elixir Problem: How do you make this work ... and why does it not work? I tried this below: iex(7)> String.split ("hello world") |> String.upcase |> Enum.join(" // ") and I got thi...
How do you make this work ... and why does it not work? How do you make this work ... and why does it not work? elixir Protocol.UndefinedError How String.split String.upcase Enum.join Enumerable HELLO WORLD enum.ex:1 Enumerable.impl_for enum.ex:112 Enumerable.reduce enum.ex:1124 Enum.reduce How do you make this work .....
[ -0.012939453125, -0.0186767578125, -0.011474609375, 0.0244140625, -0.0125732421875, 0.017333984375, -0.01055908203125, -0.004364013671875, 0.0164794921875, -0.0098876953125, -0.005859375, -0.0045166015625, 0.0164794921875, 0.0181884765625, 0.00811767578125, -0.0012664794921875, -0.00...
[ 11249, 54, 398, 3249, 903, 4488, 153, 15400, 14602, 442, 959, 15296, 38308, 151607, 1067, 5983, 297, 18468, 31611, 23351, 214, 7008, 4353, 2037, 58437, 357, 316, 513, 73, 56, 2886, 572, 174444, 99972, 22, 3355, 19721, 5, 116120, 2472, 8...
[ 0.120361328125, 0.05157470703125, 0.0198211669921875, 0.142822265625, 0.161865234375, 0.17919921875, 0.0369873046875, 0.1556396484375, 0.1256103515625, 0.049896240234375, 0.185302734375, 0.1104736328125, 0.266845703125, 0.2200927734375, 0.097900390625, 0.1910400390625, 0.005249023437...
embed
63709517_c0
63709517
elixir
0
Title: Elixir equivalent to while true Problem title: Elixir equivalent to while true Tags: while-loop, elixir Problem: Elixir equivalent to while true I want to rewrite this method (written here in Python) in Elixir def something() while True: x = function() y = function() if x != y: return x function() generates a ra...
Elixir equivalent to while true Elixir equivalent to while true while-loop elixir Elixir Elixir equivalent to while true I want to rewrite this method (written here in Python) in Elixir function() generates a random value, so the execution would end sooner or later. My problem is to translate the while True in the most...
[ 0.01165771484375, 0.0076904296875, -0.0003681182861328125, 0.0007476806640625, 0.0247802734375, 0.00167083740234375, 0.006072998046875, -0.017822265625, 0.00005364418029785156, -0.0419921875, 0.00677490234375, 0.039794921875, -0.007415771484375, 0.032470703125, 0.031494140625, 0.013366...
[ 25318, 38308, 183234, 47, 12960, 29568, 28354, 15296, 3444, 456, 434, 18781, 903, 55300, 3688, 145581, 23, 32354, 132, 139392, 96759, 34292, 71924, 1830, 2806, 3564, 33662, 56, 707, 14432, 2967, 3900, 19309, 87599, 2684, 137175, 29806, 12301,...
[ 0.1348876953125, 0.257080078125, 0.1917724609375, 0.098388671875, 0.236083984375, 0.227294921875, 0.2060546875, 0.11474609375, 0.049407958984375, 0.073486328125, 0.0843505859375, 0.137939453125, 0.035430908203125, 0.168212890625, 0.0211334228515625, 0.201416015625, 0.000762939453125,...
embed
55252272_c0
55252272
elixir
0
Title: Ecto order_by in preload Problem title: Ecto order_by in preload Tags: ecto, phoenix-framework, elixir Problem: Ecto order_by in preload So I'm having trouble using order_by in my query with preload function. Usually I use order_by like in this list_member function list_member def list_members() do query = from(...
Ecto order_by in preload Ecto order_by in preload ecto phoenix-framework elixir Ecto order_by list_member list_members Member p.inserted_at Repo.all get_member_2 p.id How Repo.one Ecto order_by in preload So I'm having trouble using order_by in my query with preload function. Usually I use order_by like in this list_me...
[ 0.00567626953125, -0.0198974609375, -0.01336669921875, 0.0126953125, -0.0133056640625, -0.01019287109375, 0.0059814453125, 0.003692626953125, 0.00021076202392578125, -0.052978515625, 0.0255126953125, 0.0091552734375, 0.005035400390625, -0.0091552734375, 0.0031280517578125, -0.014709472...
[ 241, 44150, 12989, 454, 1272, 23, 479, 63033, 60751, 33, 4084, 160328, 18244, 15296, 38308, 5303, 39, 27417, 74057, 33657, 853, 771, 5584, 2046, 304, 532, 11249, 3630, 63134, 17368, 41, 32354, 4527, 1884, 3714, 7440, 3884 ]
[ 0.0814208984375, 0.281982421875, 0.222412109375, 0.0545654296875, 0.2093505859375, 0.0399169921875, 0.1376953125, 0.2459716796875, 0.2144775390625, 0.010955810546875, 0.09375, 0.07440185546875, 0.021820068359375, 0.03668212890625, 0.1470947265625, 0.117919921875, 0.069091796875, 0....
embed
36878330_c0
36878330
elixir
0
Title: Phoenix, Json and Unix Timestamps Problem title: Phoenix, Json and Unix Timestamps Tags: phoenix-framework, json, elixir, datetime Problem: Phoenix, Json and Unix Timestamps I'm exporting data from SQL Server in json format so I can import it into my Phoenix app. What I'm not sure about is how I should deal with...
Phoenix, Json and Unix Timestamps Phoenix, Json and Unix Timestamps phoenix-framework json elixir datetime Phoenix Json Unix Timestamps Log Start End Comment Had Phoenix, Json and Unix Timestamps I'm exporting data from SQL Server in json format so I can import it into my Phoenix app. What I'm not sure about is how I s...
[ 0.007659912109375, 0.0174560546875, 0.0101318359375, -0.002197265625, -0.006134033203125, -0.02099609375, -0.0181884765625, 0.0087890625, -0.0023651123046875, -0.039794921875, 0.006378173828125, 0.0262451171875, 0.0245361328125, 0.00823974609375, -0.0166015625, 0.00860595703125, -0.0...
[ 133720, 821, 1681, 136, 992, 4084, 19114, 2537, 6423, 53073, 33, 160328, 1647, 15296, 38308, 5622, 6032, 13146, 13794, 18878, 16277, 31255, 2053, 1295, 80866, 22687, 9384, 24927, 4027, 9077, 5608, 35142, 112474, 3095, 237, 1733, 590, 2676, ...
[ 0.2568359375, 0.112060546875, 0.187255859375, 0.0821533203125, 0.11962890625, 0.152587890625, 0.11279296875, 0.17431640625, 0.1064453125, 0.0494384765625, 0.01458740234375, 0.06878662109375, 0.09869384765625, 0.056365966796875, 0.1943359375, 0.05926513671875, 0.15185546875, 0.06622...
embed
51934736_c0
51934736
elixir
0
Title: How to use dependency injection to inject IO.gets input in Elixir? Problem title: How to use dependency injection to inject IO.gets input in Elixir? Tags: dependency-injection, elixir Problem: How to use dependency injection to inject IO.gets input in Elixir? Suppose I have a function that validates user's input...
How to use dependency injection to inject IO.gets input in Elixir? How to use dependency injection to inject IO.gets input in Elixir? dependency-injection elixir How IO.gets Elixir set_name user_input InputValidators.empty_input display_error How to use dependency injection to inject IO.gets input in Elixir? Suppose I ...
[ -0.022216796875, 0.000782012939453125, 0.00023746490478515625, 0.022216796875, -0.007720947265625, 0.014404296875, 0.021484375, 0.002410888671875, 0.0022735595703125, -0.0255126953125, 0.00933837890625, -0.003936767578125, -0.00101470947265625, 0.01953125, 0.0120849609375, -0.004028320...
[ 11249, 47, 4527, 42548, 27771, 115049, 1830, 17780, 5, 3794, 7, 107730, 23, 25318, 38308, 73, 236, 10763, 15296, 5423, 11627, 38937, 360, 7077, 42272, 1683, 22230, 33548, 939, 44116, 188800, 121691, 32354, 44622, 140992, 3444, 19048, 141621, ...
[ 0.0716552734375, 0.0177764892578125, 0.116455078125, 0.2012939453125, 0.1376953125, 0.25244140625, 0.08038330078125, 0.2252197265625, 0.0244903564453125, 0.1533203125, 0.039642333984375, 0.20166015625, 0.076171875, 0.119140625, 0.269287109375, 0.10009765625, 0.139892578125, 0.03677...
embed
37283387_c0
37283387
elixir
0
Title: How to configure Ecto at runtime? Problem title: How to configure Ecto at runtime? Tags: ecto, elixir Problem: How to configure Ecto at runtime? Following the setup instructions , I have the following Ecto configuration in my config/config.exs file : config :my_app, MyApp.Repo, adapter: Ecto.Adapters.Postgres, u...
How to configure Ecto at runtime? How to configure Ecto at runtime? ecto elixir How Ecto config.exs my_app MyApp.Repo Ecto.Adapters.Postgres sys.config How to configure Ecto at runtime? Following the setup instructions , I have the following Ecto configuration in my config/config.exs file : If my understanding is corre...
[ 0.007232666015625, -0.00109100341796875, 0, -0.003997802734375, 0.0067138671875, -0.0177001953125, -0.02099609375, -0.0164794921875, 0.0106201171875, -0.0191650390625, -0.00909423828125, -0.0169677734375, 0.01397705078125, -0.0179443359375, 0.0029449462890625, 0.016845703125, -0.0050...
[ 11249, 47, 222495, 241, 44150, 99, 11675, 6032, 32, 60751, 15296, 38308, 153837, 3355, 7, 759, 9007, 2646, 39179, 4332, 771, 22409, 2631, 23962, 49411, 17562, 954, 169581, 167934, 25632, 180346, 11435, 100094, 5, 151575, 9969, 1340, 3917, 5...
[ 0.109619140625, 0.05169677734375, 0.27685546875, 0.156494140625, 0.310791015625, 0.142333984375, 0.168212890625, 0.201171875, 0.0120849609375, 0.2442626953125, 0.084716796875, 0.207763671875, 0.2490234375, 0.1798095703125, 0.09710693359375, 0.08184814453125, 0.1534423828125, 0.0739...
embed
35115386_c1
35115386
elixir
1
6IlJlYWN0UGhvZW5peCIsImlhdCI6MTQ1NDI1MjE4NCwiZXhwIjoxNDU0NTExMzg0LCJhdWQiOiJ0b2tlbiJ9.YiGd-r2g7w7DiAvicq2C0uqhrwM4ZnUXRlnLg53GLag, c2d0fdd9-bd55-42d5-b2be-03b4d58d984c, react_phoenix, guardian_serializer.ex:10, ReactPhoenix.GuardianSerializer.from_token, load_resource.ex:27, Guardian.Plug.LoadResource.call, router.ex:1...
Phoenix.Endpoint.phoenix_pipeline debugger.ex:93 render_errors.ex:34 ReactPhoenix.Endpoint.call handler.ex:15 Plug.Adapters.Cowboy.Handler.upgrade cowboy_protocol.erl:442 cowboy_protocol.execute ReactPhoenix.GuardianSerializer Guardian.Serializer ReactPhoenix.Repo ReactPhoenix.User for_token User user.id Unknown from_t...
[ -0.01202392578125, 0.01416015625, 0.0084228515625, -0.01007080078125, 0.00982666015625, 0.01092529296875, -0.006805419921875, 0.0123291015625, -0.0159912109375, -0.06298828125, 0.000014901161193847656, 0.01287841796875, -0.003936767578125, 0.007476806640625, -0.00543212890625, 0.008789...
[ 133720, 152378, 38496, 22014, 33, 4084, 26338, 86, 8, 978, 21407, 3355, 11591, 89159, 188800, 30197, 853, 47013, 497, 85763, 35863, 12221, 194351, 2631, 8770, 30885, 135679, 603, 434, 31, 161041, 8447, 198156, 51626, 52825, 81589, 771, 6448, ...
[ 0.2406005859375, 0.0970458984375, 0.1156005859375, 0.010040283203125, 0.0625, 0.03765869140625, 0.1204833984375, 0.038970947265625, 0.0966796875, 0.1614990234375, 0.037261962890625, 0.157470703125, 0.1619873046875, 0.1541748046875, 0.1649169921875, 0.10791015625, 0.041168212890625, ...
embed
43804136_c0
43804136
elixir
0
Title: Returning a subset of a map/dictionary in elixir? Problem title: Returning a subset of a map/dictionary in elixir? Tags: dictionary, elixir, subset Problem: Returning a subset of a map/dictionary in elixir? I currently have the following method defined: def create_user(attrs \\ %{}) do %User{} |> user_registrati...
Returning a subset of a map/dictionary in elixir? Returning a subset of a map/dictionary in elixir? dictionary elixir subset Returning create_user User user_registration_changeset PaperTrail.insert Udia.Accounts.User PaperTrail.Version App.Accounts.User Returning a subset of a map/dictionary in elixir? I currently have...
[ -0.00482177734375, -0.017822265625, -0.0147705078125, -0.009765625, 0.007537841796875, 0.007568359375, -0.00634765625, -0.0166015625, 0.022705078125, -0.0206298828125, -0.00170135498046875, 0.010009765625, 0.0002498626708984375, 0.0277099609375, 0.0262451171875, -0.001953125, -0.0094...
[ 173340, 214, 1614, 3509, 22288, 428, 10763, 6635, 23, 15296, 38308, 45, 28282, 65918, 53400, 38937, 52201, 152028, 62323, 28542, 379, 33657, 345, 3390, 71013, 1062, 2189, 178390, 5659, 82424, 25632, 55300, 61924, 34292, 176377, 1295, 28960, 1...
[ 0.2529296875, 0.059722900390625, 0.1873779296875, 0.2403564453125, 0.1641845703125, 0.045166015625, 0.1488037109375, 0.0859375, 0.06781005859375, 0.09942626953125, 0.255615234375, 0.0350341796875, 0.081787109375, 0.0947265625, 0.10302734375, 0.08203125, 0.130859375, 0.07958984375, ...
embed
75622965_c0
75622965
elixir
0
Title: Dynamic Elixir Ecto Query Problem title: Dynamic Elixir Ecto Query Tags: ecto, sql, elixir Problem: Dynamic Elixir Ecto Query I have a list of fields, and I want to take that list and dynamically create an Ecto query from it. I think I can use Enum.reduce , but I'm not sure how to get the pieces to work together...
Dynamic Elixir Ecto Query Dynamic Elixir Ecto Query ecto sql elixir p Dynamic Elixir Ecto Query Enum.reduce search_term Post build_query Repo.all CAST ILIKE Dynamic Elixir Ecto Query I have a list of fields, and I want to take that list and dynamically create an Ecto query from it. I think I can use Enum.reduce , but I...
[ -0.00177001953125, 0.015625, -0.01025390625, 0.0281982421875, -0.00048065185546875, -0.0029449462890625, -0.004852294921875, 0.0157470703125, -0.0079345703125, -0.034423828125, 0.023681640625, -0.0069580078125, -0.005462646484375, 0.00982666015625, -0.009521484375, 0.0228271484375, -...
[ 73327, 21068, 25318, 38308, 241, 44150, 58836, 53, 60751, 99247, 15296, 915, 357, 316, 107, 106357, 33938, 32166, 2795, 45367, 944, 771, 5584, 313, 48963, 30219, 57692, 765, 5303, 44457, 3444, 5646, 84079, 28282, 41, 1294, 1295, 5351, 4527,...
[ 0.1512451171875, 0.0997314453125, 0.12744140625, 0.203369140625, 0.108642578125, 0.2763671875, 0.2103271484375, 0.0682373046875, 0.2327880859375, 0.1832275390625, 0.1005859375, 0.064208984375, 0.103515625, 0.16650390625, 0.170654296875, 0.221923828125, 0.1138916015625, 0.0975952148...
embed
33425452_c1
33425452
elixir
1
from my gps deveice (for which I am writing this piece of code) using :gen_tcp.recv(socket,0), I get an error: {:error, reason} = :gen_tcp.recv(socket, 0) and the reason it showed is just "closed". However, the device is sending data, which I confirmed using a tcp packet sniffer (tcpflow). Also, when I try to send dat...
from my gps deveice (for which I am writing this piece of code) using :gen_tcp.recv(socket,0), I get an error: {:error, reason} = :gen_tcp.recv(socket, 0) and the reason it showed is just "closed". However, the device is sending data, which I confirmed using a tcp packet sniffer (tcpflow). Also, when I try to send dat...
[ 0.00787353515625, 0.031005859375, -0.0213623046875, -0.0126953125, 0.022705078125, -0.01495361328125, 0.008056640625, -0.010498046875, -0.0022430419921875, -0.037841796875, 0.035400390625, -0.024169921875, 0.003997802734375, 0.004974365234375, 0.00933837890625, 0.007476806640625, 0.0...
[ 1295, 759, 706, 6423, 7226, 2980, 32562, 18151, 17368, 1409, 121422, 31688, 334, 991, 27853, 77495, 2046, 18499, 188800, 31635, 18, 5, 757, 168360, 1660, 155648, 71, 75186, 135834, 2053, 39563, 43824, 93, 18234, 118664, 9790, 25379, 8131, 1...
[ 0.0948486328125, 0.020263671875, 0.10101318359375, 0.2237548828125, 0.146484375, 0.13916015625, 0.00885009765625, 0.09674072265625, 0.041534423828125, 0.151123046875, 0.194091796875, 0.111083984375, 0.214111328125, 0.1029052734375, 0.1959228515625, 0.151611328125, 0.0045166015625, ...
embed
72301939_c0
72301939
elixir
0
Title: How to reuse Elixir config across config files? Problem title: How to reuse Elixir config across config files? Tags: elixir Problem: How to reuse Elixir config across config files? I have the following mix.exs file: config :my_app, MyApp.Repo, username: "postgres", password: "postgres", hostname: "localhost" I k...
How to reuse Elixir config across config files? How to reuse Elixir config across config files? elixir How Elixir mix.exs my_app MyApp.Repo Application.get_env runtime.exs How to reuse Elixir config across config files? I have the following mix.exs file: I know, within the same file below, it's not allowed to do: becau...
[ -0.005645751953125, 0.009521484375, -0.010009765625, 0.004302978515625, 0.00872802734375, -0.02685546875, 0.00147247314453125, -0.00238037109375, 0.0164794921875, -0.025634765625, -0.004791259765625, 0.0087890625, 0.0059814453125, 0.008056640625, 0.00396728515625, 0.00933837890625, -...
[ 11249, 156883, 25318, 38308, 153837, 36880, 102158, 15296, 17664, 3355, 7, 759, 9007, 39179, 4332, 771, 104921, 3794, 33, 334, 11675, 6032, 11435, 28032, 5701, 35064, 959, 107003, 54, 30646, 17324, 41206, 19882, 18, 4488, 34292, 176377, 7722,...
[ 0.07476806640625, 0.2135009765625, 0.1531982421875, 0.29150390625, 0.254638671875, 0.148681640625, 0.12744140625, 0.10711669921875, 0.2274169921875, 0.1641845703125, 0.128173828125, 0.018463134765625, 0.099853515625, 0.100830078125, 0.0546875, 0.130126953125, 0.1141357421875, 0.104...
embed
44233242_c0
44233242
elixir
0
Title: Kubernetes cluster and Phoenix - automate `mix ecto.migrate`? Problem title: Kubernetes cluster and Phoenix - automate `mix ecto.migrate`? Tags: elixir, gitlab, kubernetes, phoenix-framework Problem: Kubernetes cluster and Phoenix - automate `mix ecto.migrate`? I'm pushing my Phoenix app to a Kubernetes cluster ...
Kubernetes cluster and Phoenix - automate `mix ecto.migrate`? Kubernetes cluster and Phoenix - automate `mix ecto.migrate`? elixir gitlab kubernetes phoenix-framework Kubernetes Phoenix ecto.migrate ecto.create Kubernetes cluster and Phoenix - automate `mix ecto.migrate`? I'm pushing my Phoenix app to a Kubernetes clus...
[ 0.0341796875, 0.01519775390625, -0.006591796875, -0.0164794921875, -0.00093841552734375, 0.002410888671875, -0.001556396484375, -0.0069580078125, 0.0157470703125, -0.01080322265625, 0.03076171875, 0.005096435546875, 0.027587890625, 0.02001953125, -0.01519775390625, -0.0030059814453125,...
[ 96305, 3196, 1636, 234737, 136, 133720, 11408, 13, 62015, 60751, 5, 58849, 17957, 15296, 38308, 62270, 6114, 228, 46690, 30621, 53073, 33, 4084, 160328, 7612, 2182, 25944, 4027, 47, 8347, 4527, 527, 217, 97381, 28282, 4516, 1467, 10723, 142...
[ 0.1292724609375, 0.15966796875, 0.1761474609375, 0.2332763671875, 0.09130859375, 0.308837890625, 0.2305908203125, 0.049835205078125, 0.2430419921875, 0.2349853515625, 0.0184173583984375, 0.1375732421875, 0.144775390625, 0.02972412109375, 0.147216796875, 0.10675048828125, 0.1628417968...
embed
34184571_c0
34184571
elixir
0
Title: How to get the &quot;belongs_to&quot; association with Ecto in Elixir? Problem title: How to get the &quot;belongs_to&quot; association with Ecto in Elixir? Tags: phoenix-framework, ecto, elixir Problem: How to get the "belongs_to" association with Ecto in Elixir? I have a Post and Comment model. One post has ma...
How to get the &quot;belongs_to&quot; association with Ecto in Elixir? How to get the &quot;belongs_to&quot; association with Ecto in Elixir? phoenix-framework ecto elixir How belongs_to Ecto Elixir Comment.find comment.post How to get the "belongs_to" association with Ecto in Elixir? I have a Post and Comment model. O...
[ -0.00341796875, 0.01806640625, 0, 0.00153350830078125, -0.008056640625, -0.000926971435546875, -0.004058837890625, -0.0157470703125, 0.0086669921875, -0.0771484375, 0.01190185546875, -0.001220703125, 0.0047607421875, -0.00001811981201171875, -0.0172119140625, 0.01373291015625, -0.030...
[ 11249, 2046, 372, 10617, 7, 188, 125413, 678, 241, 44150, 23, 25318, 38308, 33, 4084, 160328, 18244, 60751, 15296, 186, 16277, 111607, 6868, 4594, 70, 2795, 136, 3299, 1305, 5941, 24626, 1632, 141377, 11651, 17203, 450, 47, 158189, 98, 85...
[ 0.042144775390625, 0.0848388671875, 0.1029052734375, 0.23095703125, 0.108642578125, 0.23193359375, 0.2078857421875, 0.1025390625, 0.09619140625, 0.268310546875, 0.072509765625, 0.1348876953125, 0.234619140625, 0.017547607421875, 0.078857421875, 0.0997314453125, 0.0662841796875, 0.1...
embed
40958432_c0
40958432
elixir
0
Title: functions vs. case (coding style) Problem title: functions vs. case (coding style) Tags: elixir Problem: functions vs. case (coding style) I have the function render_upvotes/1 which renders a string. I struggle to find the best way of representing it code wise. The following two versions have the same functional...
functions vs. case (coding style) functions vs. case (coding style) elixir render_upvotes is_integer Integer.to_string functions vs. case (coding style) I have the function render_upvotes/1 which renders a string. I struggle to find the best way of representing it code wise. The following two versions have the same fun...
[ -0.0179443359375, -0.0093994140625, 0.004058837890625, -0.007354736328125, -0.00341796875, -0.015625, 0.004241943359375, -0.00457763671875, 0.00927734375, -0.012939453125, -0.019287109375, 0.009521484375, 0.0206298828125, -0.00970458984375, 0.004486083984375, 0.0220947265625, -0.0033...
[ 32354, 7, 20209, 7225, 587, 6238, 20623, 5, 15296, 38308, 89159, 2037, 965, 1636, 83, 6191, 1505, 44401, 188, 91693, 11583, 79315, 151994, 2965, 33636, 18151, 90825, 25632, 6626, 11389, 5701, 123309, 11522, 552, 138, 4216, 3917, 3115, 40647...
[ 0.2369384765625, 0.114501953125, 0.174072265625, 0.2413330078125, 0.1126708984375, 0.0577392578125, 0.1890869140625, 0.0035400390625, 0.06982421875, 0.218505859375, 0.2197265625, 0.1070556640625, 0.2060546875, 0.168701171875, 0.1046142578125, 0.10760498046875, 0.047119140625, 0.178...
embed
63314076_c1
63314076
elixir
1
>> , while https://cryptii.com/pipes/base64-to-hex returns me 01 66 10 91 00 ac 08 f3 00 34 . Why? EDIT: To make it clear: {flagsbat, string} = "AWYQkQCsCPMANA==" |> Base.decode64!() |> String.upcase() |> String.split_at(4) Base.decode16!(flagsbat) # this throws the error {flagsbat, string} = "0166109100ac08f30034" |> ...
>> , while https://cryptii.com/pipes/base64-to-hex returns me 01 66 10 91 00 ac 08 f3 00 34 . Why? EDIT: To make it clear: {flagsbat, string} = "AWYQkQCsCPMANA==" |> Base.decode64!() |> String.upcase() |> String.split_at(4) Base.decode16!(flagsbat) # this throws the error {flagsbat, string} = "0166109100ac08f30034" |> ...
[ -0.0126953125, -0.0174560546875, -0.02099609375, 0.01348876953125, -0.0120849609375, -0.0076904296875, 0.0184326171875, -0.0093994140625, 0.01458740234375, 0.0026092529296875, 0.008056640625, -0.030517578125, -0.003631591796875, 0.0130615234375, 0.00063323974609375, -0.005096435546875,...
[ 6396, 12960, 3975, 136791, 1573, 277, 1434, 13569, 37382, 13307, 188, 1106, 425, 30646, 7, 163, 3413, 11251, 209, 20031, 7227, 1030, 3843, 1238, 363, 4442, 44084, 34735, 190872, 2848, 4, 79315, 2203, 102815, 17854, 13940, 284, 69112, 44978,...
[ 0.0872802734375, 0.0804443359375, 0.007476806640625, 0.1805419921875, 0.1708984375, 0.034423828125, 0.1239013671875, 0.1539306640625, 0.1656494140625, 0.2474365234375, 0.1490478515625, 0.182373046875, 0.196533203125, 0.16845703125, 0.05096435546875, 0.1136474609375, 0.1143798828125, ...
embed
38740456_c0
38740456
elixir
0
Title: How to encapsulate code in modules, bundles or plugins? Problem title: How to encapsulate code in modules, bundles or plugins? Tags: phoenix-framework, elixir Problem: How to encapsulate code in modules, bundles or plugins? I am looking for a way to build something comparable to bundle in symfony or a plugin in ...
How to encapsulate code in modules, bundles or plugins? How to encapsulate code in modules, bundles or plugins? phoenix-framework elixir How How to encapsulate code in modules, bundles or plugins? I am looking for a way to build something comparable to bundle in symfony or a plugin in CakePHP. For example: in the user ...
[ 0.002227783203125, -0.00982666015625, 0.01348876953125, 0.0045166015625, -0.007781982421875, 0.00909423828125, 0.01226806640625, -0.01214599609375, 0.00494384765625, -0.050537109375, -0.023193359375, -0.0093994140625, 0.004669189453125, 0.01458740234375, -0.0038909912109375, -0.0014877...
[ 11249, 47, 22, 15644, 77593, 13, 18151, 23, 88996, 4, 57134, 1577, 707, 69993, 53073, 33, 4084, 160328, 18244, 15296, 38308, 16487, 3917, 45367, 215667, 133, 954, 39, 11203, 2041, 350, 683, 36599, 38937, 756, 185373, 110934, 136, 16912, 1...
[ 0.1199951171875, 0.05029296875, 0.135009765625, 0.1959228515625, 0.217529296875, 0.107666015625, 0.26416015625, 0.127685546875, 0.2095947265625, 0.004058837890625, 0.188232421875, 0.1546630859375, 0.0266265869140625, 0.2144775390625, 0.069091796875, 0.10009765625, 0.1484375, 0.0825...
embed
38850910_c0
38850910
elixir
0
Title: is_integer() doesn&#x27;t work with Enum.all? Problem title: is_integer() doesn&#x27;t work with Enum.all? Tags: elixir Problem: is_integer() doesn't work with Enum.all? Total Elixir noob here. Here's my question: When using the Enum.all?/2 function, we pass a function as the second argument: iex(19)> is_int = &...
is_integer() doesn&#x27;t work with Enum.all? is_integer() doesn&#x27;t work with Enum.all? elixir CompileError is_integer Enum.all is_int iex:21 lists.erl:1354 lists.mapfoldl lists.erl:1355 is_integer() doesn't work with Enum.all? Total Elixir noob here. Here's my question: When using the Enum.all?/2 function, we pass...
[ -0.035400390625, -0.02490234375, 0.002288818359375, 0.0059814453125, -0.0023345947265625, 0.0306396484375, -0.003326416015625, -0.0157470703125, -0.01092529296875, -0.0283203125, 0.00885009765625, 0.004302978515625, 0.0002460479736328125, 0.045166015625, 0.00016117095947265625, -0.0055...
[ 83, 6191, 1505, 22027, 3768, 18, 4488, 678, 357, 316, 5584, 454, 15296, 38308, 15612, 1340, 18468, 31611, 4288, 3355, 25619, 5303, 12338, 62346, 42822, 141, 11663, 132, 5, 33867, 25318, 3522, 12477, 32354, 27875, 237, 17932, 10750, 44084, ...
[ 0.19140625, 0.2020263671875, 0.197509765625, 0.0411376953125, 0.05908203125, 0.10009765625, 0.14111328125, 0.1251220703125, 0.1248779296875, 0.2381591796875, 0.2061767578125, 0.04229736328125, 0.0555419921875, 0.207275390625, 0.0709228515625, 0.0579833984375, 0.0259552001953125, 0....
embed
44274827_c0
44274827
elixir
0
Title: Is it possible to have a custom mix file for Elixir? Problem title: Is it possible to have a custom mix file for Elixir? Tags: elixir-mix, elixir Problem: Is it possible to have a custom mix file for Elixir? In my projects involving Elixir, I often have stuff I want to add to my mix.exs file for example adding m...
Is it possible to have a custom mix file for Elixir? Is it possible to have a custom mix file for Elixir? elixir-mix elixir Elixir mix.exs ENV custom_mix.exs Is it possible to have a custom mix file for Elixir? In my projects involving Elixir, I often have stuff I want to add to my mix.exs file for example adding my ow...
[ 0.023193359375, 0.0123291015625, 0.010009765625, 0.0004119873046875, -0.02001953125, 0.0011138916015625, -0.01220703125, 0.002197265625, 0.01202392578125, -0.00164794921875, -0.001373291015625, 0.0084228515625, 0.005950927734375, 0.0113525390625, 0.0034332275390625, 0.01019287109375, ...
[ 2071, 7722, 765, 114122, 17664, 11435, 100, 25318, 38308, 15296, 62015, 3355, 7338, 856, 10, 77635, 27983, 41884, 15190, 7, 154107, 10002, 56104, 24503, 55769, 15769, 167790, 11782, 53550, 645, 434, 18781, 61924, 1379, 62270, 28123, 18499, 18...
[ 0.000091552734375, 0.1473388671875, 0.0914306640625, 0.2269287109375, 0.26953125, 0.2265625, 0.0784912109375, 0.1517333984375, 0.264892578125, 0.119140625, 0.2744140625, 0.18115234375, 0.09521484375, 0.155029296875, 0.032623291015625, 0.050201416015625, 0.050872802734375, 0.0299072...
embed
74248998_c0
74248998
elixir
0
Title: How to run elixir script through `launch.json` file in vscode? Problem title: How to run elixir script through `launch.json` file in vscode? Tags: elixir, elixir-mix Problem: How to run elixir script through `launch.json` file in vscode? I want to run script for developing function. My mirror_a.exs is as follows...
How to run elixir script through `launch.json` file in vscode? How to run elixir script through `launch.json` file in vscode? elixir elixir-mix How launch.json mirror_a.exs IO.inspect macbook:mirror mix_task How to run elixir script through `launch.json` file in vscode? I want to run script for developing function. My ...
[ 0.018798828125, -0.0020751953125, 0.001373291015625, 0.043701171875, 0.007476806640625, -0.0177001953125, 0.0014495849609375, 0.021240234375, 0.0194091796875, -0.0042724609375, 0.0031890869140625, -0.006103515625, 0.01544189453125, 0.0223388671875, 0.021728515625, -0.0220947265625, 0...
[ 11249, 11675, 15296, 38308, 26499, 8305, 309, 206, 170, 1681, 11435, 20209, 40899, 143, 62015, 83184, 191551, 11, 3355, 7, 17780, 16711, 19138, 14137, 4326, 31611, 17664, 1073, 168698, 32354, 87109, 33949, 75101, 5612, 140992, 28960, 8, 978, ...
[ 0.0208282470703125, 0.1142578125, 0.1197509765625, 0.26708984375, 0.19873046875, 0.08160400390625, 0.0992431640625, 0.085693359375, 0.1317138671875, 0.171875, 0.112548828125, 0.1358642578125, 0.2332763671875, 0.009857177734375, 0.1822509765625, 0.1927490234375, 0.2568359375, 0.1309...
embed
60071854_c0
60071854
elixir
0
Title: Elixir and multiple replace characters in string Problem title: Elixir and multiple replace characters in string Tags: phoenix-framework, elixir Problem: Elixir and multiple replace characters in string I am a beginner and working with old database where characters like Ę,ę,Ń,ń are saved like ;;;ca ... It's Elix...
Elixir and multiple replace characters in string Elixir and multiple replace characters in string phoenix-framework elixir Elixir convert_content String.replace Elixir and multiple replace characters in string I am a beginner and working with old database where characters like Ę,ę,Ń,ń are saved like ;;;ca ... It's Elix...
[ -0.02197265625, -0.0021209716796875, -0.009521484375, 0.02685546875, -0.005126953125, -0.006195068359375, -0.033447265625, 0.000347137451171875, 0.0196533203125, -0.0068359375, 0.010498046875, -0.006134033203125, 0.0228271484375, 0.0166015625, 0.021728515625, -0.004425048828125, 0.00...
[ 25318, 38308, 136, 48716, 91995, 124850, 23, 79315, 53073, 33, 4084, 160328, 18244, 15296, 96760, 69246, 23351, 214, 107, 23935, 9842, 1679, 20697, 10332, 63399, 1884, 47201, 1231, 133161, 6419, 57, 157724, 408, 46876, 133720, 202220, 3444, 1...
[ 0.146484375, 0.269287109375, 0.09442138671875, 0.252197265625, 0.2069091796875, 0.1859130859375, 0.057373046875, 0.19775390625, 0.0226593017578125, 0.042236328125, 0.08740234375, 0.099853515625, 0.04522705078125, 0.1009521484375, 0.1385498046875, 0.1593017578125, 0.1348876953125, 0...
embed
53466332_c0
53466332
elixir
0
Title: Avoid specifying guard clause when using struct Problem title: Avoid specifying guard clause when using struct Tags: elixir Problem: Avoid specifying guard clause when using struct I have a struct: defmodule Company do defstruct [:id, :name, :active] end I have a function that requires one of its arguments to be...
Avoid specifying guard clause when using struct Avoid specifying guard clause when using struct elixir struct Avoid Company is_integer is_binary is_boolean Avoid specifying guard clause when using struct I have a struct: I have a function that requires one of its arguments to be of this struct: Is there any way I can e...
[ 0.00083160400390625, -0.0054931640625, 0.0157470703125, -0.00433349609375, 0.00689697265625, 0.006103515625, -0.0157470703125, -0.002655029296875, 0.01031494140625, -0.015869140625, 0.01806640625, -0.0089111328125, -0.0101318359375, -0.005279541015625, -0.0003223419189453125, -0.004089...
[ 84361, 532, 48502, 151138, 56050, 70731, 13, 17368, 36716, 15296, 38308, 33734, 83, 6191, 1505, 19155, 1294, 142484, 5073, 765, 32354, 144570, 10750, 111, 903, 3917, 22, 50930, 10644, 78292, 214, 15490, 29458, 80934, 4527 ]
[ 0.14111328125, 0.1033935546875, 0.1427001953125, 0.10516357421875, 0.22412109375, 0.20751953125, 0.0963134765625, 0.06756591796875, 0.25146484375, 0.03021240234375, 0.188232421875, 0.1689453125, 0.0738525390625, 0.1109619140625, 0.093017578125, 0.125244140625, 0.103515625, 0.075622...
embed
14517164_c1
14517164
elixir
1
some_project dir. Build the Elixir compiler by running erl -pa ebin -s elixir_compiler core -s erlang halt Now we have a working Elixir environment in our code, and I use the following escript to build our custom .ex files: %%! -pa ./ebin main(_) -> ExList = [ <<"source_1.ex">>, <<"source_2.ex">>, <<"source_3.ex">>], ...
some_project dir. Build the Elixir compiler by running erl -pa ebin -s elixir_compiler core -s erlang halt Now we have a working Elixir environment in our code, and I use the following escript to build our custom .ex files: %%! -pa ./ebin main(_) -> ExList = [ <<"source_1.ex">>, <<"source_2.ex">>, <<"source_3.ex">>], ...
[ -0.0018463134765625, 0.0081787109375, -0.01531982421875, 0.000553131103515625, -0.0027923583984375, -0.00836181640625, -0.00982666015625, -0.0125732421875, -0.000652313232421875, -0.019287109375, 0.01129150390625, 0.0040283203125, 0.000324249267578125, 0.02880859375, 0.030517578125, -0...
[ 3060, 95322, 5402, 121137, 25318, 38308, 9969, 34759, 390, 51042, 72, 141, 763, 28, 7568, 7, 15296, 58875, 56458, 3066, 58810, 20697, 65998, 18151, 4527, 25632, 32032, 45367, 2446, 114122, 5, 3355, 102158, 3949, 13, 5201, 5443, 154663, 6042...
[ 0.1912841796875, 0.2083740234375, 0.144287109375, 0.1871337890625, 0.1424560546875, 0.274658203125, 0.1834716796875, 0.1983642578125, 0.0096435546875, 0.08758544921875, 0.0953369140625, 0.1600341796875, 0.1397705078125, 0.07745361328125, 0.2430419921875, 0.020538330078125, 0.09564208...
embed
53962519_c0
53962519
elixir
0
Title: Configure indentation in mix formatter Problem title: Configure indentation in mix formatter Tags: elixir-mix, elixir Problem: Configure indentation in mix formatter In my Phoenix app I have the following code: attrs = %{"name" => "mat", "color" => "blue"} conn = post(conn, Routes.session_path(conn, :create), pl...
Configure indentation in mix formatter Configure indentation in mix formatter elixir-mix elixir Configure Routes.session_path expected_player Player mix.format Configure indentation in mix formatter In my Phoenix app I have the following code: the problem is that when I run mix.format task it updates it to something li...
[ 0.0021820068359375, -0.010498046875, 0.0062255859375, 0.0123291015625, 0.00701904296875, -0.0108642578125, -0.010009765625, 0.0140380859375, -0.0002231597900390625, -0.0030670166015625, 0.01202392578125, 0.0194091796875, -0.01019287109375, 0.0196533203125, 0.01300048828125, -0.01501464...
[ 1657, 59994, 18597, 22062, 17664, 1483, 3055, 23, 15296, 38308, 62015, 106015, 169234, 128405, 84751, 139570, 60560, 51727, 133720, 4027, 25632, 18151, 2967, 11675, 5, 66211, 114419, 442, 47, 1884, 903, 163, 40715, 12301, 2886, 222495, 959, 8...
[ 0.02618408203125, 0.182373046875, 0.19580078125, 0.1806640625, 0.260498046875, 0.200927734375, 0.18603515625, 0.01531219482421875, 0.04296875, 0.153564453125, 0.23388671875, 0.1446533203125, 0.107421875, 0.087158203125, 0.121337890625, 0.11578369140625, 0.11865234375, 0.24572753906...
embed
50423397_c0
50423397
elixir
0
Title: Start 2 MongoDB connections in Elixir Problem title: Start 2 MongoDB connections in Elixir Tags: mongodb, erlang-supervisor, elixir Problem: Start 2 MongoDB connections in Elixir I am making an application that needs to connect to 2 mongo databases at the same time. I am using the mongodb (v0.4) module. For now ...
Start 2 MongoDB connections in Elixir Start 2 MongoDB connections in Elixir mongodb erlang-supervisor elixir Start MongoDB Elixir Mongo localhost:27017 DBConnection.Pool one_for_one HugoEtl.Supervisor Supervisor.start_link Start 2 MongoDB connections in Elixir I am making an application that needs to connect to 2 mongo...
[ 0.001495361328125, 0.01055908203125, 0.000797271728515625, 0.008056640625, -0.00311279296875, 0.01123046875, -0.00029754638671875, -0.0220947265625, -0.00016880035400390625, -0.052001953125, 0.0150146484375, 0.01507568359375, 0.03369140625, 0.0218505859375, 0.017578125, -0.005889892578...
[ 13794, 116, 7465, 519, 39463, 94878, 23, 25318, 38308, 2667, 7803, 275, 72, 3066, 59104, 51858, 15296, 4000, 40294, 104283, 2489, 57976, 235603, 7192, 929, 1632, 2472, 3630, 59049, 69824, 141, 73903, 4265, 17137, 10187, 20662, 38415, 27117, ...
[ 0.1461181640625, 0.1976318359375, 0.119384765625, 0.216552734375, 0.253662109375, 0.1746826171875, 0.0626220703125, 0.1229248046875, 0.25537109375, 0.09423828125, 0.0794677734375, 0.148681640625, 0.02239990234375, 0.1912841796875, 0.135009765625, 0.2227783203125, 0.09228515625, 0.0...
embed
42157163_c0
42157163
elixir
0
Title: Supervisor : can&#x27;t terminate a child by pid Problem title: Supervisor : can&#x27;t terminate a child by pid Tags: elixir, erlang-otp Problem: Supervisor : can't terminate a child by pid Trying to terminate a child by its pid does not work, it should according to the documentation : https://hexdocs.pm/elixir...
Supervisor : can&#x27;t terminate a child by pid Supervisor : can&#x27;t terminate a child by pid elixir erlang-otp Supervisor Supervisor.start_link one_for_one PID Supervisor.start_child RData.ExpectedRefurbishmentCost Supervisor.terminate_child not_found Supervisor : can't terminate a child by pid Trying to terminate...
[ 0.01123046875, 0.028076171875, 0.00396728515625, -0.013916015625, -0.0031585693359375, -0.02197265625, 0.002838134765625, 0.00970458984375, -0.0137939453125, -0.036376953125, -0.005401611328125, -0.003082275390625, -0.0023651123046875, 0.0322265625, -0.00323486328125, 0.002212524414062...
[ 4265, 51858, 831, 3768, 18, 121011, 13, 29041, 390, 45226, 15296, 38308, 72, 3066, 818, 254, 17137, 10187, 1632, 2472, 3630, 436, 7146, 206, 38472, 137989, 1081, 99609, 4745, 5510, 30524, 2182, 959, 151645, 40858, 10, 6863, 4488, 5608, 20...
[ 0.186767578125, 0.256591796875, 0.0960693359375, 0.057281494140625, 0.099853515625, 0.2205810546875, 0.120361328125, 0.201904296875, 0.0914306640625, 0.2376708984375, 0.056884765625, 0.1810302734375, 0.026031494140625, 0.1800537109375, 0.07666015625, 0.074462890625, 0.09112548828125,...
embed
67088372_c0
67088372
elixir
0
Title: VS Code Elixir F2 &quot;rename symbol&quot; not working Problem title: VS Code Elixir F2 &quot;rename symbol&quot; not working Tags: visual-studio-code, elixir Problem: VS Code Elixir F2 "rename symbol" not working I'm using ElixirLS: Elixir support and debugger JakeBecker.elixir-ls and editor.formatOnType is wo...
VS Code Elixir F2 &quot;rename symbol&quot; not working VS Code Elixir F2 &quot;rename symbol&quot; not working visual-studio-code elixir Elixir JakeBecker.elixir-ls editor.formatOnType ElixirLS VS Code Elixir F2 "rename symbol" not working I'm using ElixirLS: Elixir support and debugger JakeBecker.elixir-ls and editor...
[ -0.01068115234375, -0.00860595703125, -0.00372314453125, 0.03369140625, 0.007232666015625, 0.0245361328125, -0.0159912109375, 0.012939453125, -0.00469970703125, 0.0296630859375, 0.01397705078125, 0.0015716552734375, 0.0155029296875, 0.0174560546875, 0.000308990478515625, 0.008239746093...
[ 44160, 28864, 25318, 38308, 563, 304, 107, 11627, 26582, 959, 20697, 21176, 52629, 40899, 15296, 4422, 13, 6766, 11050, 6169, 8080, 30391, 51727, 20320, 196707, 19759, 17368, 8060, 8, 978, 21407, 5885, 21072, 456, 77336, 18, 4488, 110, 1353...
[ 0.1856689453125, 0.1915283203125, 0.119384765625, 0.23876953125, 0.127685546875, 0.18994140625, 0.147705078125, 0.229736328125, 0.224365234375, 0.0238037109375, 0.1522216796875, 0.0982666015625, 0.0963134765625, 0.14306640625, 0.1055908203125, 0.0648193359375, 0.006683349609375, 0....
embed
68613563_c1
68613563
elixir
1
69a812c17af0ab0b", "provider" => "github"} +++ [info] Sent 302 in 4ms [info] GET / Is this expected? It seems like I am actually logged in because if I try the same thing in the browser, I do not have to login to GitHub. However, there is also a CRSF failure that is happening that I'm not sure how to deal with and ther...
69a812c17af0ab0b", "provider" => "github"} +++ [info] Sent 302 in 4ms [info] GET / Is this expected? It seems like I am actually logged in because if I try the same thing in the browser, I do not have to login to GitHub. However, there is also a CRSF failure that is happening that I'm not sure how to deal with and ther...
[ -0.00043487548828125, 0.035400390625, 0.0081787109375, -0.0181884765625, -0.0059814453125, -0.0020751953125, -0.005157470703125, -0.0096435546875, -0.0115966796875, -0.00457763671875, 0.01458740234375, -0.025634765625, -0.01165771484375, -0.0016021728515625, -0.029052734375, -0.0042419...
[ 11937, 1530, 2489, 93136, 820, 15769, 32102, 86409, 7319, 63999, 137970, 23, 201, 4432, 79794, 2071, 903, 84751, 37202, 444, 20653, 73088, 9790, 5701, 31842, 959, 765, 73655, 527, 217, 140505, 25109, 38406, 137578, 123087, 9077, 35142, 110, ...
[ 0.08642578125, 0.0035400390625, 0.0242919921875, 0.150390625, 0.0775146484375, 0.161376953125, 0.256591796875, 0.2432861328125, 0.19775390625, 0.17041015625, 0.279541015625, 0.15673828125, 0.157470703125, 0.197509765625, 0.1949462890625, 0.046966552734375, 0.058197021484375, 0.1927...
embed
75299244_c2
75299244
elixir
2
256k1/c_src/secp256k1': configure: Code signals: directive, Bitwise, Run, Generated, mix_erlang_tasks, c_src, build_deps.sh, Cloning, secp256k1, Enumerating, Counting, Compressing, Total, Receiving, MiB, Resolving, HEAD, d333521, Merge, Support, OpenSSL, ENABLE_OPENSSL_TESTS, AC_CONFIG_AUX_DIR, ltmain.sh, AC_CONFIG_MAC...
256k1/c_src/secp256k1': configure: Code signals: directive, Bitwise, Run, Generated, mix_erlang_tasks, c_src, build_deps.sh, Cloning, secp256k1, Enumerating, Counting, Compressing, Total, Receiving, MiB, Resolving, HEAD, d333521, Merge, Support, OpenSSL, ENABLE_OPENSSL_TESTS, AC_CONFIG_AUX_DIR, ltmain.sh, AC_CONFIG_MAC...
[ 0.002471923828125, 0.01318359375, -0.0030517578125, -0.0167236328125, 0.0242919921875, -0.014892578125, -0.0098876953125, 0.01214599609375, 0.00138092041015625, 0.0294189453125, 0.0034027099609375, 0.006561279296875, 0.01348876953125, 0.000713348388671875, -0.00311279296875, -0.0039367...
[ 57901, 92, 50412, 238, 19437, 39797, 254, 127892, 418, 25, 12, 222495, 28864, 26073, 7, 8951, 5844, 27774, 90825, 28398, 155370, 17664, 3066, 1073, 1224, 501, 45367, 112, 6423, 1495, 51053, 592, 19216, 15537, 98767, 1311, 128396, 142158, 38...
[ 0.2705078125, 0.1153564453125, 0.0946044921875, 0.0196533203125, 0.1826171875, 0.1043701171875, 0.15087890625, 0.28759765625, 0.09100341796875, 0.038818359375, 0.013275146484375, 0.305419921875, 0.2364501953125, 0.24853515625, 0.046478271484375, 0.1507568359375, 0.1214599609375, 0....
embed
53146610_c0
53146610
elixir
0
Title: Any easier way to get the first item in a list that matches a function, and return the item, and the list without that item? Problem title: Any easier way to get the first item in a list that matches a function, and return the item, and the list without that item? Tags: elixir Problem: Any easier way to get the ...
Any easier way to get the first item in a list that matches a function, and return the item, and the list without that item? Any easier way to get the first item in a list that matches a function, and return the item, and the list without that item? elixir Any Enum.find_index Enum.at List.delete_at Any easier way to ge...
[ -0.0245361328125, -0.007598876953125, -0.0027618408203125, -0.005828857421875, -0.01904296875, 0.013671875, 0.011474609375, -0.018310546875, 0.00970458984375, -0.05419921875, 0.034912109375, 0.030029296875, -0.0220947265625, 0.01080322265625, 0.01397705078125, 0.0040283203125, -0.012...
[ 99156, 3917, 2046, 5117, 35735, 23, 5303, 14858, 90, 32354, 30646, 15490, 28541, 136, 15296, 38308, 357, 316, 111607, 4711, 257, 32036, 8520, 67, 450, 89536, 133063, 82449, 14783, 619, 1230, 418, 977, 8439, 3444, 4420, 70, 138, 617, 11406...
[ 0.1636962890625, 0.07708740234375, 0.1392822265625, 0.174560546875, 0.1954345703125, 0.0765380859375, 0.229736328125, 0.2005615234375, 0.1181640625, 0.16455078125, 0.149658203125, 0.150634765625, 0.0283355712890625, 0.047149658203125, 0.06011962890625, 0.2052001953125, 0.105712890625...
embed
65608858_c0
65608858
elixir
0
Title: Elixir - informing other applications about events Problem title: Elixir - informing other applications about events Tags: elixir Problem: Elixir - informing other applications about events Let's assume that I have a system (elixir application) that downloads data from the internet, then it will unpack the data ...
Elixir - informing other applications about events Elixir - informing other applications about events elixir Elixir Elixir - informing other applications about events Let's assume that I have a system (elixir application) that downloads data from the internet, then it will unpack the data (e.g. gzip), parse it (e.g. to...
[ -0.0040283203125, 0.015869140625, -0.0126953125, 0.023193359375, 0.005645751953125, 0.007659912109375, 0.002471923828125, -0.006622314453125, -0.00469970703125, -0.0279541015625, -0.0009307861328125, -0.00726318359375, 0.0118408203125, 0.05078125, 0.0028076171875, 0.01458740234375, -...
[ 25318, 38308, 8180, 214, 3789, 86685, 1672, 47353, 20, 15296, 41591, 87, 765, 5426, 6169, 38415, 7026, 2053, 1295, 1820, 1221, 51, 29102, 706, 50836, 366, 3060, 23550, 10135, 3884, 4000, 63399, 5809, 11814, 831, 41, 1957, 4034, 570, 43542...
[ 0.1689453125, 0.28564453125, 0.2037353515625, 0.1102294921875, 0.168701171875, 0.2078857421875, 0.1009521484375, 0.18310546875, 0.00665283203125, 0.0963134765625, 0.0504150390625, 0.010650634765625, 0.00213623046875, 0.1588134765625, 0.114013671875, 0.1612548828125, 0.1531982421875, ...
embed
48195509_c0
48195509
elixir
0
Title: Create quarterly interval with timex and elixir Problem title: Create quarterly interval with timex and elixir Tags: elixir Problem: Create quarterly interval with timex and elixir I'm trying to create quarterly intervals similar to how I create monthly intervals with this code [from: start_date, until: end_date...
Create quarterly interval with timex and elixir Create quarterly interval with timex and elixir elixir Create start_date end_date right_open Timex.Interval.new Timex.Interval.with_step Enum.map Timex.format Create quarterly interval with timex and elixir I'm trying to create quarterly intervals similar to how I create ...
[ 0.00007534027099609375, -0.02685546875, 0.01275634765625, -0.00067901611328125, -0.0191650390625, -0.001312255859375, -0.00970458984375, -0.00897216796875, -0.0057373046875, 0.000682830810546875, -0.0235595703125, 0.03125, 0.01611328125, 0.00299072265625, 0.0106201171875, -0.0068359375...
[ 151313, 128274, 538, 51514, 678, 1733, 425, 136, 15296, 38308, 4034, 17489, 3564, 7108, 59636, 19055, 44851, 1405, 54936, 76228, 95528, 316, 62346, 51727, 31577, 28282, 21373, 176735, 18151, 7, 5608, 186, 3342, 16305, 2396, 418, 42053, 97866,...
[ 0.1246337890625, 0.252685546875, 0.1302490234375, 0.2685546875, 0.08624267578125, 0.161865234375, 0.176025390625, 0.070068359375, 0.07025146484375, 0.2117919921875, 0.10595703125, 0.082275390625, 0.0921630859375, 0.0784912109375, 0.1239013671875, 0.1571044921875, 0.14013671875, 0.1...
embed
55494794_c0
55494794
elixir
0
Title: Empty head in custom flatten implementation Problem title: Empty head in custom flatten implementation Tags: elixir Problem: Empty head in custom flatten implementation So basically I tried to implement flatten function myself using some nested recursions. The problem is that I get infinite loop and when checkin...
Empty head in custom flatten implementation Empty head in custom flatten implementation elixir Empty Test custom_flatten IO.puts Called Enum.reverse Empty head in custom flatten implementation So basically I tried to implement flatten function myself using some nested recursions. The problem is that I get infinite loop...
[ 0.0036773681640625, 0.01055908203125, 0.00274658203125, 0.02783203125, -0.01080322265625, 0.0174560546875, 0.0091552734375, -0.0062255859375, 0.0084228515625, 0.01092529296875, 0.0242919921875, 0.000499725341796875, -0.003936767578125, 0.007049560546875, 0.0283203125, -0.01025390625, ...
[ 31678, 939, 10336, 114122, 49878, 510, 208124, 23, 15296, 38308, 8647, 150632, 17780, 7077, 357, 316, 107, 37676, 198343, 37842, 29479, 32354, 35978, 8512, 195625, 17514, 2967, 54241, 40956, 175199, 8561, 83, 201505, 52080, 5 ]
[ 0.1695556640625, 0.11749267578125, 0.2337646484375, 0.171142578125, 0.1768798828125, 0.177001953125, 0.142333984375, 0.01377105712890625, 0.054656982421875, 0.1888427734375, 0.150390625, 0.145263671875, 0.12353515625, 0.01136016845703125, 0.01065826416015625, 0.1392822265625, 0.00585...
embed
47557737_c0
47557737
elixir
0
Title: Elixir decode with Poison Problem title: Elixir decode with Poison Tags: decode, elixir-poison, elixir, json Problem: Elixir decode with Poison I'm getting this string as query result from my database: "%Sample.Struct{list: [], total: \"0.00\", day: 6, id: \"8vfts6\"}" Is there any way to convert this one back t...
Elixir decode with Poison Elixir decode with Poison decode elixir-poison elixir json Poison.SyntaxError Elixir Poison Sample.Struct Unexpected parser.ex:56 Poison.Parser.parse poison.ex:83 Poison.decode Elixir decode with Poison I'm getting this string as query result from my database: Is there any way to convert this ...
[ -0.005035400390625, 0.0135498046875, -0.01409912109375, 0.0218505859375, -0.01019287109375, 0.0018157958984375, -0.00347900390625, -0.0145263671875, 0.015869140625, -0.00848388671875, -0.01141357421875, -0.0016937255859375, 0.01409912109375, 0.020751953125, 0.0030517578125, 0.001480102...
[ 25318, 38308, 8, 40899, 678, 64249, 191, 15296, 120178, 1647, 1681, 86531, 18468, 947, 33209, 71713, 18190, 83613, 366, 2189, 34546, 28636, 2500, 5737, 3355, 17168, 112, 20949, 903, 79315, 237, 41, 1294, 16750, 63399, 3917, 96760, 1632, 442...
[ 0.09375, 0.25732421875, 0.137451171875, 0.224609375, 0.1177978515625, 0.1954345703125, 0.171630859375, 0.06793212890625, 0.17041015625, 0.05029296875, 0.1390380859375, 0.1416015625, 0.05938720703125, 0.0254669189453125, 0.14697265625, 0.05242919921875, 0.048431396484375, 0.06402587...
embed
45465144_c0
45465144
elixir
0
Title: Elixir Mongodb driver: how do I orderby descending? Problem title: Elixir Mongodb driver: how do I orderby descending? Tags: mongodb, elixir, phoenix-framework Problem: Elixir Mongodb driver: how do I orderby descending? I'm using the currently most active mongodb driver for Elixir (not using Ecto). I'd like to ...
Elixir Mongodb driver: how do I orderby descending? Elixir Mongodb driver: how do I orderby descending? mongodb elixir phoenix-framework Elixir Mongodb Mongo.find Elixir Mongodb driver: how do I orderby descending? I'm using the currently most active mongodb driver for Elixir (not using Ecto). I'd like to query with a ...
[ 0.0264892578125, 0.00396728515625, 0.011474609375, -0.003082275390625, -0.011962890625, 0.017333984375, -0.00104522705078125, -0.01544189453125, 0.0010986328125, -0.04736328125, 0.038330078125, -0.0036163330078125, 0.015869140625, -0.029296875, 0.0079345703125, 0.010009765625, -0.023...
[ 25318, 38308, 7465, 7803, 275, 27941, 3642, 54, 87, 12989, 1272, 60887, 214, 2667, 15296, 33, 4084, 160328, 18244, 519, 111607, 17368, 82424, 2684, 36457, 44150, 1884, 41, 1294, 678, 17475, 8108, 390, 6528, 3714, 107730, 44457, 9351, 6032, ...
[ 0.0865478515625, 0.223388671875, 0.113525390625, 0.1634521484375, 0.1861572265625, 0.2357177734375, 0.0853271484375, 0.053741455078125, 0.058380126953125, 0.2386474609375, 0.1456298828125, 0.2164306640625, 0.1597900390625, 0.072021484375, 0.03497314453125, 0.000274658203125, 0.056396...
embed
46675714_c0
46675714
elixir
0
Title: String.to_atom hardcodes the underlying erlang.binary_to_atom encoding option to :utf8, why? Problem title: String.to_atom hardcodes the underlying erlang.binary_to_atom encoding option to :utf8, why? Tags: erlang, elixir Problem: String.to_atom hardcodes the underlying erlang.binary_to_atom encoding option to :...
String.to_atom hardcodes the underlying erlang.binary_to_atom encoding option to :utf8, why? String.to_atom hardcodes the underlying erlang.binary_to_atom encoding option to :utf8, why? erlang elixir String.to_atom erlang.binary_to_atom utf8 to_atom binary_to_atom latin1 String.to_atom hardcodes the underlying erlang.b...
[ 0.012939453125, -0.00811767578125, 0.003631591796875, 0.0157470703125, -0.01177978515625, -0.0284423828125, -0.00213623046875, 0.00689697265625, -0.026123046875, 0.00390625, 0.0167236328125, -0.046630859375, 0.0274658203125, 0.022705078125, 0.000621795654296875, -0.0101318359375, -0....
[ 23351, 214, 188, 11, 5928, 7941, 40899, 1379, 538, 72, 3066, 19155, 1294, 22, 587, 6238, 35829, 47, 1003, 420, 1019, 15400, 15296, 38308, 486, 2394, 6635, 45137, 418, 44084, 14602, 32102, 6169, 5612, 91693, 3355, 50490, 3564, 19882, 50717...
[ 0.20751953125, 0.19775390625, 0.1759033203125, 0.0797119140625, 0.2357177734375, 0.15625, 0.2137451171875, 0.1097412109375, 0.08587646484375, 0.10272216796875, 0.2396240234375, 0.115478515625, 0.091552734375, 0.088623046875, 0.1890869140625, 0.116455078125, 0.193115234375, 0.117431...
embed
44224821_c1
44224821
elixir
1
l_eval.expr/5 (stdlib) erl_eval.erl:878: :erl_eval.expr_list/6 (stdlib) erl_eval.erl:404: :erl_eval.expr/5 (stdlib) erl_eval.erl:122: :erl_eval.exprs/5 I have seen online this is sometimes due to a version of postgrex however that is a very old version and I'm using {:postgrex, "~> 0.13.2"}, . What am I missing? Code s...
l_eval.expr/5 (stdlib) erl_eval.erl:878: :erl_eval.expr_list/6 (stdlib) erl_eval.erl:404: :erl_eval.expr/5 (stdlib) erl_eval.erl:122: :erl_eval.exprs/5 I have seen online this is sometimes due to a version of postgrex however that is a very old version and I'm using {:postgrex, "~> 0.13.2"}, . What am I missing? Code s...
[ 0.0037384033203125, 0.00775146484375, -0.0027313232421875, -0.00015735626220703125, -0.00154876708984375, -0.006103515625, 0.006256103515625, -0.00921630859375, 0.01519775390625, -0.017578125, -0.005767822265625, -0.0225830078125, 0.0244140625, -0.01177978515625, 0.006988525390625, 0.0...
[ 96, 13, 1405, 83613, 42, 12147, 271, 5612, 72, 141, 56, 200439, 6562, 20155, 22932, 617, 108837, 4295, 51592, 1118, 903, 83, 68018, 4743, 11389, 1305, 7134, 425, 4552, 10332, 17368, 4594, 107754, 107033, 132283, 28864, 26073, 37286, 83671, ...
[ 0.0888671875, 0.07330322265625, 0.265625, 0.1573486328125, 0.1534423828125, 0.188232421875, 0.076416015625, 0.1756591796875, 0.057647705078125, 0.139404296875, 0.0693359375, 0.1988525390625, 0.168701171875, 0.08837890625, 0.0635986328125, 0.09271240234375, 0.0948486328125, 0.028427...
embed
42875408_c1
42875408
elixir
1
:1213: Phoenix.Controller.put_flash/3 (my_app) lib/my_app/web/plugs/require_auth.ex:14: MyApp.Web.Plugs.RequireAuth.call/2 test/lib/web/plugs/require_auth_test.exs:16: (test) When I remove this line from my plug: put_flash(:error, "You must be logged in") spec are passing without problems. What I'm doing wrong? Code si...
:1213: Phoenix.Controller.put_flash/3 (my_app) lib/my_app/web/plugs/require_auth.ex:14: MyApp.Web.Plugs.RequireAuth.call/2 test/lib/web/plugs/require_auth_test.exs:16: (test) When I remove this line from my plug: put_flash(:error, "You must be logged in") spec are passing without problems. What I'm doing wrong? Code si...
[ -0.004547119140625, 0.0164794921875, -0.00445556640625, -0.005340576171875, 0.00360107421875, 0.01080322265625, -0.0189208984375, -0.01080322265625, 0.00823974609375, -0.01275634765625, -0.004913330078125, 0.00970458984375, -0.016845703125, -0.00396728515625, 0.006622314453125, -0.0059...
[ 20927, 2681, 133720, 175904, 603, 7077, 420, 5544, 18113, 1176, 9007, 25474, 14051, 145301, 3181, 916, 927, 3355, 22635, 2646, 39179, 30474, 35159, 4332, 107, 67362, 85763, 12477, 3034, 5612, 6954, 22354, 87388, 903, 13315, 1295, 759, 76329, ...
[ 0.131103515625, 0.19091796875, 0.2137451171875, 0.19091796875, 0.09149169921875, 0.12451171875, 0.10321044921875, 0.22607421875, 0.1688232421875, 0.06756591796875, 0.1322021484375, 0.074951171875, 0.088623046875, 0.1893310546875, 0.136474609375, 0.1512451171875, 0.1207275390625, 0....
embed
44583511_c0
44583511
elixir
0
Title: Phoenix framework send me &quot;cookie named &quot;_toDoListMaster_key&quot; exceeds maximum size of 4096 bytes&quot; when i try to persist an object Problem title: Phoenix framework send me &quot;cookie named &quot;_toDoListMaster_key&quot; exceeds maximum size of 4096 bytes&quot; when i try to persist an objec...
Phoenix framework send me &quot;cookie named &quot;_toDoListMaster_key&quot; exceeds maximum size of 4096 bytes&quot; when i try to persist an object Phoenix framework send me &quot;cookie named &quot;_toDoListMaster_key&quot; exceeds maximum size of 4096 bytes&quot; when i try to persist an object elixir phoenix-frame...
[ 0.014892578125, 0.015380859375, 0.000782012939453125, -0.0152587890625, 0.004669189453125, 0.00592041015625, -0.0032806396484375, 0.018310546875, 0.00958251953125, 0.0045166015625, 0.031982421875, -0.02001953125, 0.0155029296875, 0.015869140625, -0.00112152099609375, -0.010986328125, ...
[ 133720, 170846, 25379, 163, 212087, 24, 4806, 188, 8331, 154663, 116527, 19770, 204839, 38132, 13267, 1112, 11648, 390, 1636, 3229, 9790, 70560, 36746, 15296, 38308, 53073, 33, 4084, 160328, 18244, 4136, 47, 44759, 6713, 9332, 31842, 454, 592...
[ 0.278076171875, 0.22412109375, 0.10540771484375, 0.09808349609375, 0.249755859375, 0.012237548828125, 0.045379638671875, 0.1680908203125, 0.19140625, 0.223876953125, 0.2222900390625, 0.21728515625, 0.171630859375, 0.1512451171875, 0.0986328125, 0.1162109375, 0.2391357421875, 0.0528...
embed
57406024_c0
57406024
elixir
0
Title: How to solve HTTPotion conn_failed intermittent error Problem title: How to solve HTTPotion conn_failed intermittent error Tags: elixir Problem: How to solve HTTPotion conn_failed intermittent error Sometime I got intermittent error %HTTPotion.ErrorResponse{message: "{:conn_failed, :error}"} . headers = ["Conten...
How to solve HTTPotion conn_failed intermittent error How to solve HTTPotion conn_failed intermittent error elixir How HTTPotion conn_failed HTTPotion.ErrorResponse Content-Type HTTPotion.post URL recv_timeout worker_pid HTTPotion.spawn_worker_process How to solve HTTPotion conn_failed intermittent error Sometime I got...
[ -0.0164794921875, 0.01556396484375, 0.0107421875, 0.00469970703125, -0.00347900390625, 0.00531005859375, -0.0111083984375, -0.0023345947265625, -0.00885009765625, -0.0157470703125, 0.0224609375, -0.021728515625, -0.0037994384765625, 0.00274658203125, 0.0018463134765625, -0.021240234375...
[ 11249, 86869, 135913, 31, 1363, 158, 19, 120540, 297, 1940, 116119, 18499, 47, 454, 18, 15296, 38308, 18468, 31611, 94399, 70870, 196707, 4594, 31862, 334, 6032, 6056, 4488, 45226, 19341, 7710, 18244, 63923, 18544, 23658, 74157, 2271, 188800,...
[ 0.0275115966796875, 0.1610107421875, 0.21923828125, 0.1043701171875, 0.091064453125, 0.10455322265625, 0.08905029296875, 0.16455078125, 0.072509765625, 0.08856201171875, 0.1533203125, 0.1451416015625, 0.019622802734375, 0.0074462890625, 0.001251220703125, 0.0679931640625, 0.185180664...
embed
34446221_c0
34446221
elixir
0
Title: Atom keys vs string keys in Phoenix Problem title: Atom keys vs string keys in Phoenix Tags: phoenix-framework, elixir Problem: Atom keys vs string keys in Phoenix In the new Programming Phoenix book, Chris McCord says this about using string and atom keys for controller action params: In the world action in our...
Atom keys vs string keys in Phoenix Atom keys vs string keys in Phoenix phoenix-framework elixir Atom Phoenix Atom keys vs string keys in Phoenix In the new Programming Phoenix book, Chris McCord says this about using string and atom keys for controller action params: But, it's not clear to me why using string keys are...
[ -0.00021266937255859375, -0.000720977783203125, 0.00811767578125, -0.0040283203125, -0.00372314453125, 0.0147705078125, 0.01043701171875, 0.00064849853515625, -0.015625, -0.01324462890625, 0.01007080078125, -0.0005340576171875, 0.0218505859375, 0.0277099609375, -0.00083160400390625, 0....
[ 69728, 22799, 7, 20209, 79315, 23, 133720, 4084, 160328, 15296, 38308, 27958, 12877, 31745, 6651, 17368, 136, 34627, 100, 185373, 22631, 121, 4432, 34735, 15400, 1286, 111670, 3501, 44084, 57, 2875, 29806, 3688 ]
[ 0.2066650390625, 0.231201171875, 0.1021728515625, 0.11767578125, 0.2056884765625, 0.0301361083984375, 0.2294921875, 0.04107666015625, 0.05279541015625, 0.029693603515625, 0.1279296875, 0.104736328125, 0.0936279296875, 0.04473876953125, 0.1412353515625, 0.08416748046875, 0.05819702148...
embed
24647948_c0
24647948
elixir
0
Title: Use Beam files to start an application in Elixir Problem title: Use Beam files to start an application in Elixir Tags: configuration, elixir-mix, elixir Problem: Use Beam files to start an application in Elixir I am working on Elixir project where i have to register three dependencies say "xxx, yyy & zzz" for th...
Use Beam files to start an application in Elixir Use Beam files to start an application in Elixir configuration elixir-mix elixir Use Beam Elixir Practice Use Beam files to start an application in Elixir I am working on Elixir project where i have to register three dependencies say "xxx, yyy & zzz" for the project. I h...
[ 0.004608154296875, 0.0223388671875, -0.006103515625, 0.00167083740234375, -0.004486083984375, 0.0050048828125, 0.01556396484375, -0.00982666015625, 0.0267333984375, -0.0185546875, 0.00052642822265625, -0.0201416015625, 0.015869140625, 0.037841796875, 0.0244140625, -0.0206298828125, -...
[ 36836, 873, 302, 102158, 4034, 38415, 23, 25318, 38308, 47, 180346, 15296, 62015, 109613, 20697, 13452, 68067, 17262, 42548, 117538, 43883, 113, 34034, 619, 177033, 8, 6423, 3794, 59111, 5974, 12765, 98352, 5, 9007, 11435, 139392, 20112, 2777...
[ 0.121337890625, 0.216064453125, 0.258544921875, 0.214599609375, 0.173583984375, 0.2169189453125, 0.084228515625, 0.140869140625, 0.25634765625, 0.01092529296875, 0.1722412109375, 0.111328125, 0.19189453125, 0.1517333984375, 0.047607421875, 0.085205078125, 0.117919921875, 0.08929443...
embed
33972262_c0
33972262
elixir
0
Title: Is there a way to explicitly write a elixir function to be tail call optimised? Problem title: Is there a way to explicitly write a elixir function to be tail call optimised? Tags: clojure, elixir, optimization, tail-recursion, recursion Problem: Is there a way to explicitly write a elixir function to be tail ca...
Is there a way to explicitly write a elixir function to be tail call optimised? Is there a way to explicitly write a elixir function to be tail call optimised? clojure elixir optimization tail-recursion recursion Is there a way to explicitly write a elixir function to be tail call optimised? In Clojure for example you ...
[ 0.0103759765625, 0.004547119140625, 0.00885009765625, 0.0196533203125, 0.001922607421875, -0.01055908203125, -0.007171630859375, -0.033447265625, 0.002044677734375, -0.00927734375, 0.00537109375, -0.0016632080078125, -0.0040283203125, -0.01129150390625, 0.0296630859375, 0.0070495605468...
[ 3917, 143726, 33022, 15296, 38308, 32354, 46741, 11782, 15572, 52021, 47, 186, 20450, 461, 107, 87235, 48650, 1830, 195625, 2685, 10, 538, 51053, 4527, 43852, 42, 8769, 3173, 91177, 351, 590, 2594, 25553, 316, 5844, 493, 9969, 34759, 61924,...
[ 0.10504150390625, 0.169189453125, 0.1865234375, 0.11376953125, 0.261962890625, 0.2025146484375, 0.25341796875, 0.2093505859375, 0.2042236328125, 0.161376953125, 0.05426025390625, 0.041656494140625, 0.0911865234375, 0.1492919921875, 0.130126953125, 0.163818359375, 0.10443115234375, ...
embed
48448760_c0
48448760
elixir
0
Title: Elixir Macros: Get unquoted parameter value outside of quote Problem title: Elixir Macros: Get unquoted parameter value outside of quote Tags: macros, metaprogramming, elixir Problem: Elixir Macros: Get unquoted parameter value outside of quote I have a macro which gets a module name as parameter and I want to c...
Elixir Macros: Get unquoted parameter value outside of quote Elixir Macros: Get unquoted parameter value outside of quote macros metaprogramming elixir Elixir Macros Get my_macro Elixir Macros: Get unquoted parameter value outside of quote I have a macro which gets a module name as parameter and I want to call a functi...
[ 0.0025482177734375, 0.01104736328125, 0.00018978118896484375, 0.0009613037109375, -0.004791259765625, 0.00093841552734375, 0.03125, -0.0025787353515625, 0.00848388671875, -0.054931640625, -0.017333984375, -0.01251220703125, -0.025390625, -0.004058837890625, 0.0191650390625, -0.01110839...
[ 25318, 38308, 4727, 3666, 20779, 51, 68726, 71, 171859, 34292, 50782, 111, 66747, 111789, 23550, 28966, 15296, 759, 192, 15322, 88996, 9351, 3444, 11782, 32354, 2046, 2053, 139392, 46389, 18, 4488, 7647, 46132, 27992, 28271, 62775, 32233, 540...
[ 0.12841796875, 0.2154541015625, 0.0931396484375, 0.17041015625, 0.1328125, 0.1251220703125, 0.217041015625, 0.0947265625, 0.245361328125, 0.17236328125, 0.16845703125, 0.083251953125, 0.2408447265625, 0.220458984375, 0.0889892578125, 0.10589599609375, 0.06640625, 0.1199951171875, ...
embed
36407736_c1
36407736
elixir
1
: defmodule Prime.IO do @doc """ handles communication with the user and user demanded Actions. """ def communicate(numTasks) do case(numTasks) do nil -> {numTasks, _} =Integer.parse(IO.gets "This program searches for prime numbers per try and error.\nHow many concurrent Tasks?\n") Prime.IO.communicate(numTasks) x when...
: defmodule Prime.IO do @doc """ handles communication with the user and user demanded Actions. """ def communicate(numTasks) do case(numTasks) do nil -> {numTasks, _} =Integer.parse(IO.gets "This program searches for prime numbers per try and error.\nHow many concurrent Tasks?\n") Prime.IO.communicate(numTasks) x when...
[ -0.0089111328125, -0.00341796875, -0.0036468505859375, 0.037841796875, -0.0030670166015625, -0.0157470703125, 0.0167236328125, -0.017578125, 0.0023193359375, -0.0189208984375, 0.004119873046875, -0.0167236328125, -0.004425048828125, 0.016357421875, 0.01495361328125, 0.00567626953125, ...
[ 152, 8, 420, 83279, 56195, 5, 17780, 54, 1374, 29713, 58, 34831, 7, 36398, 678, 38937, 136, 19676, 71, 57945, 127219, 67, 2606, 9874, 1042, 7225, 17324, 1505, 2500, 3794, 73243, 1528, 33938, 20809, 101935, 117, 9790, 18499, 5941, 133244, ...
[ 0.0149078369140625, 0.1239013671875, 0.123291015625, 0.1981201171875, 0.275634765625, 0.0775146484375, 0.24658203125, 0.0909423828125, 0.10986328125, 0.116943359375, 0.0267486572265625, 0.1361083984375, 0.055755615234375, 0.20849609375, 0.0989990234375, 0.14599609375, 0.0354614257812...
embed
52577421_c0
52577421
elixir
0
Title: How to use variables in in a Ecto query in where clause Problem title: How to use variables in in a Ecto query in where clause Tags: ecto, elixir Problem: How to use variables in in a Ecto query in where clause I have a map : allowed_lookup = %{coordinate: "15.0", id: 1} I want to use this map to make a Ecto que...
How to use variables in in a Ecto query in where clause How to use variables in in a Ecto query in where clause ecto elixir How Ecto allowed_lookup Enum.reduce Project.Models.Grid IO.puts q.x Project.Repo.all How to use variables in in a Ecto query in where clause I have a map : I want to use this map to make a Ecto qu...
[ -0.00118255615234375, -0.00191497802734375, -0.00823974609375, -0.01104736328125, 0.00138092041015625, -0.00946044921875, 0.006683349609375, 0.023193359375, 0.003509521484375, -0.0235595703125, 0.0142822265625, 0.0032196044921875, 0.034912109375, -0.0062255859375, 0.003662109375, 0.004...
[ 11249, 4527, 77336, 7, 23, 241, 44150, 41, 1294, 7440, 70731, 13, 60751, 15296, 38308, 107003, 64747, 2037, 357, 316, 107, 106357, 27331, 140290, 19040, 17780, 8096, 425, 771, 5584, 22288, 46312, 1810, 112820, 63399, 47644, 195625, 59911, 7...
[ 0.043060302734375, 0.135498046875, 0.2578125, 0.08984375, 0.0972900390625, 0.0999755859375, 0.259033203125, 0.113525390625, 0.132080078125, 0.17724609375, 0.177734375, 0.061553955078125, 0.1982421875, 0.05517578125, 0.166259765625, 0.119873046875, 0.044647216796875, 0.0480346679687...
embed
68920975_c0
68920975
elixir
0
Title: Standard library module not available on CI (occasionally) Problem title: Standard library module not available on CI (occasionally) Tags: elixir, circleci-2.0 Problem: Standard library module not available on CI (occasionally) ** (UndefinedFunctionError) function Base.hex_encode32/2 is undefined (module Base is...
Standard library module not available on CI (occasionally) Standard library module not available on CI (occasionally) elixir circleci-2.0 UndefinedFunctionError Standard Base.hex_encode32 Base elixir:1.8.2 circleci-2.0 Standard library module not available on CI (occasionally) ** (UndefinedFunctionError) function Base....
[ 0.01202392578125, -0.0167236328125, -0.00714111328125, -0.0016021728515625, -0.01458740234375, -0.00787353515625, 0.0235595703125, -0.032958984375, -0.0020751953125, 0.000644683837890625, -0.0027923583984375, -0.01055908203125, 0.01611328125, 0.0380859375, 0.01409912109375, -0.00460815...
[ 20744, 35773, 1294, 88996, 959, 19882, 98, 26550, 56255, 25958, 15296, 38308, 42154, 133, 318, 73011, 79912, 5983, 97249, 18468, 31611, 44978, 1106, 425, 33, 40899, 6460, 128423, 1067, 32354, 12477, 9232, 83279, 615, 25632, 18499, 46258, 23, ...
[ 0.199951171875, 0.18212890625, 0.0810546875, 0.2152099609375, 0.05975341796875, 0.1495361328125, 0.03973388671875, 0.232177734375, 0.1278076171875, 0.045928955078125, 0.0821533203125, 0.226318359375, 0.122802734375, 0.08953857421875, 0.1849365234375, 0.17138671875, 0.0679931640625, ...
embed
37982351_c0
37982351
elixir
0
Title: How does the &#x27;&amp;&#x27; operator work? Problem title: How does the &#x27;&amp;&#x27; operator work? Tags: elixir Problem: How does the '&' operator work? I am having trouble understand the '&' operator in the following context. @doc "Marks a task as executed" def put_task(task, project) do item = {task, p...
How does the &#x27;&amp;&#x27; operator work? How does the &#x27;&amp;&#x27; operator work? elixir How Marks put_task Agent.update __MODULE__ MapSet.put How does the '&' operator work? I am having trouble understand the '&' operator in the following context. It seems that in this case the '&1' is referring to the map o...
[ 0.0172119140625, 0.0279541015625, 0.0133056640625, 0.01409912109375, 0.00133514404296875, 0.0035247802734375, -0.015869140625, 0.0157470703125, 0.01080322265625, -0.026611328125, 0.01513671875, 0.025390625, 0.00506591796875, 0.003753662109375, 0.00390625, 0.00872802734375, -0.0082397...
[ 11249, 14602, 70, 54764, 425, 3768, 74, 1230, 25133, 39933, 4488, 15296, 38308, 7880, 7, 3884, 1073, 92, 54603, 117008, 12013, 397, 129984, 42719, 294, 126, 7077, 242, 25, 63134, 28219, 25632, 43701, 418, 15005, 2852, 22288, 36746, 68034, ...
[ 0.124267578125, 0.110595703125, 0.0732421875, 0.0245513916015625, 0.0177459716796875, 0.166748046875, 0.091796875, 0.2578125, 0.066650390625, 0.259033203125, 0.1868896484375, 0.049407958984375, 0.17333984375, 0.1392822265625, 0.03045654296875, 0.1075439453125, 0.10546875, 0.0365905...
embed
41609447_c0
41609447
elixir
0
Title: Elixir GenStage scaling depending on load Problem title: Elixir GenStage scaling depending on load Tags: elixir Problem: Elixir GenStage scaling depending on load I'm trying to build a following pipeline: [A] -> [B] -> [C] A takes entries from database which have timestamp older than one day. B performs some hea...
Elixir GenStage scaling depending on load Elixir GenStage scaling depending on load elixir Elixir GenStage Elixir GenStage scaling depending on load I'm trying to build a following pipeline: [A] -> [B] -> [C] A takes entries from database which have timestamp older than one day. B performs some heavy task using externa...
[ 0.0208740234375, 0.014404296875, -0.0115966796875, -0.00921630859375, -0.005401611328125, -0.0216064453125, 0.0030059814453125, -0.00946044921875, 0.0198974609375, -0.0303955078125, -0.01300048828125, 0.002044677734375, -0.006683349609375, 0.009521484375, -0.001617431640625, -0.0183105...
[ 25318, 38308, 15937, 294, 16852, 117906, 214, 96819, 98, 72367, 15296, 8, 31577, 45367, 25632, 137158, 2256, 33079, 441, 62, 51776, 112820, 63399, 1733, 590, 2676, 114210, 1632, 5155, 335, 51339, 99162, 66211, 173591, 110, 313, 4343, 16750, ...
[ 0.1248779296875, 0.222412109375, 0.214599609375, 0.07958984375, 0.250244140625, 0.2169189453125, 0.05413818359375, 0.1107177734375, 0.03662109375, 0.2222900390625, 0.06793212890625, 0.0149993896484375, 0.05731201171875, 0.08331298828125, 0.049285888671875, 0.1556396484375, 0.15722656...
embed
35404367_c0
35404367
elixir
0
Title: How would a for loop be done with Elixir recursion? Problem title: How would a for loop be done with Elixir recursion? Tags: elixir Problem: How would a for loop be done with Elixir recursion? I have a simple Go for loop and i want to learn how to do this with Recursion in Elixir. I don't really know how the rec...
How would a for loop be done with Elixir recursion? How would a for loop be done with Elixir recursion? elixir How Elixir fmt.Println Looping IO.puts Looping.loops Enum.each How would a for loop be done with Elixir recursion? I have a simple Go for loop and i want to learn how to do this with Recursion in Elixir. I don...
[ -0.002593994140625, 0.010009765625, -0.0031585693359375, 0.0108642578125, 0.0128173828125, 0.018798828125, 0.00360107421875, 0.00201416015625, 0.0172119140625, -0.0177001953125, 0.0133056640625, -0.0250244140625, -0.0003986358642578125, 0.0179443359375, 0.03173828125, -0.001953125, -...
[ 11249, 2806, 10, 100, 40956, 186, 16940, 678, 25318, 38308, 195625, 1830, 15296, 1238, 18, 112079, 19, 199694, 214, 17780, 7077, 28354, 357, 316, 41581, 8781, 2016, 30698, 3642, 54, 903, 165428, 42, 6889, 23, 3714, 43240, 1733, 20697, 710...
[ 0.0760498046875, 0.10015869140625, 0.06231689453125, 0.18212890625, 0.2366943359375, 0.046234130859375, 0.1148681640625, 0.0809326171875, 0.1451416015625, 0.27734375, 0.21240234375, 0.119140625, 0.08831787109375, 0.011627197265625, 0.0280914306640625, 0.0992431640625, 0.0241241455078...
embed
41657088_c0
41657088
elixir
0
Title: Referencing piped value in Elixir Problem title: Referencing piped value in Elixir Tags: elixir Problem: Referencing piped value in Elixir I want to count the number of word-occurrences in a string. The implementation is questionable, but lets use it to demonstrate my problem: def count(sentence) do words = Stri...
Referencing piped value in Elixir Referencing piped value in Elixir elixir Referencing Elixir String.split Enum.map Enum.count Map.new Referencing piped value in Elixir I want to count the number of word-occurrences in a string. The implementation is questionable, but lets use it to demonstrate my problem: I would like...
[ -0.00982666015625, 0.00543212890625, -0.008544921875, 0.019775390625, -0.0027923583984375, -0.005218505859375, -0.0159912109375, -0.01336669921875, 0.0174560546875, -0.04833984375, -0.017822265625, 0.033203125, 0.03662109375, 0.044189453125, 0.0089111328125, 0.0012664794921875, -0.01...
[ 853, 69988, 137158, 71, 34292, 25318, 38308, 214, 23, 15296, 23351, 4353, 357, 316, 62346, 71013, 42719, 54936, 3444, 47, 54529, 14012, 2565, 6652, 64240, 69098, 79315, 208124, 9655, 106804, 2967, 1884, 69307, 16750, 17368, 7, 64457, 81814, ...
[ 0.0704345703125, 0.239990234375, 0.247802734375, 0.134033203125, 0.2119140625, 0.124267578125, 0.2509765625, 0.05694580078125, 0.0841064453125, 0.101318359375, 0.1300048828125, 0.1378173828125, 0.09503173828125, 0.2076416015625, 0.1268310546875, 0.185302734375, 0.1219482421875, 0.0...
embed
44663817_c0
44663817
elixir
0
Title: How to reference previously started processes in an Elixir supervisor Problem title: How to reference previously started processes in an Elixir supervisor Tags: erlang, elixir, erlang-otp, erlang-supervisor Problem: How to reference previously started processes in an Elixir supervisor I am starting a Supervisor ...
How to reference previously started processes in an Elixir supervisor How to reference previously started processes in an Elixir supervisor erlang elixir erlang-otp erlang-supervisor How Elixir one_for_rest SupervisorA arg1 SupervisorB arg2 ref_to_supervisor_a_process How to reference previously started processes in an...
[ -0.001312255859375, 0.0181884765625, -0.0034332275390625, 0.031982421875, 0.0068359375, -0.0220947265625, 0.00701904296875, -0.00130462646484375, -0.0004119873046875, -0.043212890625, 0.00830078125, 0.031982421875, 0.001373291015625, 0.0458984375, 0.0159912109375, 0.0091552734375, -0...
[ 11249, 47, 91067, 198395, 26859, 9433, 90, 25318, 38308, 1601, 51858, 23, 72, 3066, 15296, 818, 254, 59104, 1632, 2472, 56644, 4265, 284, 79459, 418, 571, 304, 18831, 188, 63923, 72134, 12983, 6626, 20020, 17932, 29041, 27117, 10, 5117, 7...
[ 0.05072021484375, 0.0792236328125, 0.27001953125, 0.188720703125, 0.178466796875, 0.1783447265625, 0.0721435546875, 0.09619140625, 0.2061767578125, 0.1728515625, 0.23779296875, 0.03387451171875, 0.0251312255859375, 0.1839599609375, 0.05377197265625, 0.047119140625, 0.0595703125, 0....
embed
74368181_c1
74368181
elixir
1
311: :jose_jws.sign/4 (jose 1.11.2) src/jwt/jose_jwt.erl:173: :jose_jwt.sign/3 (joken 2.5.0) lib/joken/signer.ex:128: Joken.Signer.sign/2 (joken 2.5.0) lib/joken.ex:361: Joken.encode_and_sign/3 iex:6: (file) What is causing the error, I had a look at the code on https://github.com/joken-elixir/joken/issues/214 to try a...
311: :jose_jws.sign/4 (jose 1.11.2) src/jwt/jose_jwt.erl:173: :jose_jwt.sign/3 (joken 2.5.0) lib/joken/signer.ex:128: Joken.Signer.sign/2 (joken 2.5.0) lib/joken.ex:361: Joken.encode_and_sign/3 iex:6: (file) What is causing the error, I had a look at the code on https://github.com/joken-elixir/joken/issues/214 to try a...
[ 0.006256103515625, 0.00738525390625, -0.01373291015625, -0.02392578125, 0.00634765625, -0.00860595703125, -0.0020599365234375, -0.00677490234375, -0.006561279296875, -0.0021820068359375, -0.01336669921875, -0.0029449462890625, 0.01409912109375, -0.000881195068359375, -0.0076904296875, ...
[ 1936, 82825, 3400, 13, 170, 19725, 31304, 17357, 106, 14556, 10461, 19437, 434, 18, 56, 141, 160248, 18113, 513, 1098, 27804, 25474, 3355, 81764, 2177, 218723, 12477, 135765, 33, 40899, 2940, 17, 910, 29822, 4865, 216806, 18499, 6713, 18151...
[ 0.2244873046875, 0.158935546875, 0.16259765625, 0.121337890625, 0.1478271484375, 0.1881103515625, 0.2386474609375, 0.211181640625, 0.05596923828125, 0.1650390625, 0.05548095703125, 0.1324462890625, 0.04669189453125, 0.1275634765625, 0.06317138671875, 0.06097412109375, 0.166015625, ...
embed
74751387_c2
74751387
elixir
2
a join table iex(14)> %ProductsPractitioners{}|> ProductsPractitioners.changeset(attrs)|> Repo.insert() {:error, #Ecto.Changeset< action: :insert, changes: %{}, errors: [ product: {"can't be blank", [validation: :required]}, practitioner: {"can't Code signals: How, Ecto, products_practitioners, belongs_to, Product, Pr...
a join table iex(14)> %ProductsPractitioners{}|> ProductsPractitioners.changeset(attrs)|> Repo.insert() {:error, #Ecto.Changeset< action: :insert, changes: %{}, errors: [ product: {"can't be blank", [validation: :required]}, practitioner: {"can't Code signals: How, Ecto, products_practitioners, belongs_to, Product, Pr...
[ -0.01434326171875, -0.000690460205078125, 0.0052490234375, -0.001312255859375, -0.0120849609375, 0.020751953125, -0.0198974609375, -0.0361328125, 0.00982666015625, -0.01239013671875, -0.0218505859375, 0.0145263671875, 0.016845703125, -0.0030670166015625, -0.024658203125, 0.0166015625, ...
[ 10, 33284, 23180, 17, 3355, 65283, 2740, 1745, 10752, 77193, 50344, 23835, 23850, 100815, 152028, 3509, 27639, 4295, 853, 771, 5, 73, 33657, 188800, 647, 44150, 127008, 4188, 126, 22631, 65572, 18499, 12996, 4398, 18, 186, 44237, 7013, 3181...
[ 0.1116943359375, 0.250732421875, 0.251708984375, 0.0771484375, 0.14404296875, 0.1451416015625, 0.006591796875, 0.0758056640625, 0.08306884765625, 0.176513671875, 0.15771484375, 0.172119140625, 0.166748046875, 0.1895751953125, 0.168212890625, 0.1500244140625, 0.0249481201171875, 0.0...
embed
52024836_c0
52024836
elixir
0
Title: What&#x27;s the iex equivalent of erl&#x27;s &#x27;rr&#x27;? Problem title: What&#x27;s the iex equivalent of erl&#x27;s &#x27;rr&#x27;? Tags: elixir-iex, elixir Problem: What's the iex equivalent of erl's 'rr'? In the Erlang shell, erl , I can use rr(Mod) to load the record definitions from the specified module...
What&#x27;s the iex equivalent of erl&#x27;s &#x27;rr&#x27;? What&#x27;s the iex equivalent of erl&#x27;s &#x27;rr&#x27;? elixir-iex elixir What Mod RSAPrivateKey not_encrypted What's the iex equivalent of erl's 'rr'? In the Erlang shell, erl , I can use rr(Mod) to load the record definitions from the specified module....
[ -0.0220947265625, 0.0089111328125, -0.0135498046875, 0.018798828125, 0.017822265625, 0.0179443359375, 0.01397705078125, -0.00885009765625, 0.00445556640625, -0.0284423828125, 0.0174560546875, -0.0263671875, -0.00390625, -0.003936767578125, 0.0031280517578125, -0.00677490234375, -0.00...
[ 3768, 17, 3355, 183234, 72, 141, 29161, 15296, 38308, 14, 16269, 130424, 33163, 24836, 162429, 959, 136791, 1004, 3066, 128019, 4527, 91616, 72367, 17164, 80934, 58735, 88996, 114864, 1957, 44457, 123055, 16487, 25318, 127887, 756 ]
[ 0.042236328125, 0.10009765625, 0.208984375, 0.1982421875, 0.0899658203125, 0.1575927734375, 0.2413330078125, 0.03692626953125, 0.2071533203125, 0.0870361328125, 0.1546630859375, 0.1572265625, 0.044921875, 0.07177734375, 0.170654296875, 0.03936767578125, 0.1785888671875, 0.130126953...
embed
37970230_c0
37970230
elixir
0
Title: no_translation error while attempting to write unicode characters to file in Elixir Problem title: no_translation error while attempting to write unicode characters to file in Elixir Tags: elixir, latin1, unicode, erlang Problem: no_translation error while attempting to write unicode characters to file in Elixir...
no_translation error while attempting to write unicode characters to file in Elixir no_translation error while attempting to write unicode characters to file in Elixir elixir latin1 unicode erlang no_translation Elixir File.open path.csv IO.write latin1 no_translation error while attempting to write unicode characters ...
[ -0.00063323974609375, 0.020263671875, 0.002655029296875, -0.003631591796875, 0.022216796875, -0.0223388671875, -0.00250244140625, -0.0067138671875, -0.0146484375, 0.0233154296875, -0.0062255859375, -0.0201416015625, 0.0140380859375, 0.0059814453125, -0.00970458984375, -0.00692749023437...
[ 110, 30145, 57860, 18499, 81887, 33022, 60347, 112, 124850, 11435, 25318, 38308, 47, 15296, 45137, 418, 72, 3066, 454, 42724, 59636, 60875, 4439, 334, 17780, 12960, 23, 75973, 16454, 1295, 32562, 49903, 143434, 169424, 111, 10, 26, 41591, 7...
[ 0.1689453125, 0.1826171875, 0.1641845703125, 0.1851806640625, 0.0927734375, 0.1190185546875, 0.187255859375, 0.1322021484375, 0.147705078125, 0.1314697265625, 0.1201171875, 0.244873046875, 0.026458740234375, 0.0872802734375, 0.19482421875, 0.105224609375, 0.0596923828125, 0.1717529...
embed
47961697_c0
47961697
elixir
0
Title: Ecto query for date range Problem title: Ecto query for date range Tags: ecto, elixir, phoenix-framework Problem: Ecto query for date range I have to query the date range on the basis of timestamps in the model. what i have tried so far is str="2017-12-18" {:ok, ed}=Ecto.Date.cast(str) ed= ed |> Ecto.Date.from_e...
Ecto query for date range Ecto query for date range ecto elixir phoenix-framework l Ecto Ecto.Date.cast Ecto.Date.from_erl NaiveDate.from_erl Repo.all Log l.inserted_at Ecto.DateTime NaiveDateTime Ecto query for date range I have to query the date range on the basis of timestamps in the model. what i have tried so far ...
[ -0.0130615234375, -0.0037384033203125, -0.00098419189453125, 0.0205078125, 0.0059814453125, -0.011474609375, -0.027587890625, 0.00830078125, -0.005828857421875, -0.054931640625, 0.0091552734375, 0.009765625, 0.003265380859375, 0.0067138671875, -0.003692626953125, -0.00141143798828125, ...
[ 241, 44150, 41, 1294, 100, 5622, 37457, 60751, 15296, 38308, 53073, 33, 4084, 160328, 18244, 86291, 55741, 161063, 56, 353, 5844, 141, 771, 5584, 13146, 33657, 70059, 765, 18231, 20028, 2537, 6423, 3299, 37842, 2060, 33306, 23, 1305, 17562,...
[ 0.13525390625, 0.31005859375, 0.1881103515625, 0.171630859375, 0.106689453125, 0.217041015625, 0.237060546875, 0.236572265625, 0.0830078125, 0.1954345703125, 0.0303192138671875, 0.054718017578125, 0.126220703125, 0.1087646484375, 0.0880126953125, 0.154541015625, 0.1138916015625, 0....
embed
53187557_c0
53187557
elixir
0
Title: Elixir: Is there any benefit of using &amp; operator to get an anonymous function out of a named function Problem title: Elixir: Is there any benefit of using &amp; operator to get an anonymous function out of a named function Tags: anonymous-function, operators, elixir Problem: Elixir: Is there any benefit of u...
Elixir: Is there any benefit of using &amp; operator to get an anonymous function out of a named function Elixir: Is there any benefit of using &amp; operator to get an anonymous function out of a named function anonymous-function operators elixir Elixir Elixir: Is there any benefit of using & operator to get an anonym...
[ 0.0142822265625, 0.00946044921875, 0.0155029296875, 0.012939453125, 0.00194549560546875, -0.015380859375, 0.005859375, 0.006439208984375, 0.0023651123046875, -0.0289306640625, 0.006927490234375, -0.0142822265625, 0.0081787109375, 0.0059814453125, 0.00872802734375, 0.00286865234375, -...
[ 25318, 38308, 2685, 2499, 68073, 17368, 619, 25133, 39933, 2046, 52184, 10821, 32354, 1810, 24, 4806, 111, 137175, 15296, 12, 2071, 16454, 12877, 117249, 2301, 18, 28219, 15400, 2806, 176256, 3444, 54, 903, 831, 99091, 85589, 47, 77336 ]
[ 0.10174560546875, 0.2401123046875, 0.019439697265625, 0.07891845703125, 0.1959228515625, 0.1192626953125, 0.1820068359375, 0.0501708984375, 0.27685546875, 0.070556640625, 0.2127685546875, 0.0986328125, 0.2039794921875, 0.1268310546875, 0.106689453125, 0.12646484375, 0.023361206054687...
embed
34675044_c0
34675044
elixir
0
Title: Convert a Base64 string into a map in Elixir Problem title: Convert a Base64 string into a map in Elixir Tags: json, elixir Problem: Convert a Base64 string into a map in Elixir I am using Elixir to decode a Base64 string which contains a JSON. I use the following function: Base.url_decode64(string) However, thi...
Convert a Base64 string into a map in Elixir Convert a Base64 string into a map in Elixir json elixir Convert Base64 Elixir Convert a Base64 string into a map in Elixir I am using Elixir to decode a Base64 string which contains a JSON. I use the following function: However, this function returns a string. In particular...
[ -0.00994873046875, -0.01025390625, -0.003265380859375, 0.007781982421875, -0.0007781982421875, 0.01153564453125, -0.01397705078125, -0.01544189453125, -0.0172119140625, -0.0103759765625, -0.01324462890625, 0.00531005859375, 0.00982666015625, 0.0291748046875, 0.00482177734375, 0.0052185...
[ 1657, 11549, 44978, 13307, 79315, 3934, 10, 22288, 23, 25318, 38308, 1647, 1681, 15296, 17368, 8, 40899, 70541, 821, 58627, 4527, 32354, 30646, 2967, 83, 45646, 5608, 186, 64457, 831, 17203, 44457, 3642, 96760, 85689, 237, 109954, 11001 ]
[ 0.04034423828125, 0.1329345703125, 0.18896484375, 0.2744140625, 0.255615234375, 0.10491943359375, 0.11083984375, 0.259521484375, 0.06365966796875, 0.1519775390625, 0.25927734375, 0.08544921875, 0.173828125, 0.1121826171875, 0.0150299072265625, 0.1212158203125, 0.16064453125, 0.0648...
embed
70464364_c0
70464364
elixir
0
Title: &quot;Phoenix.Router.NoRouteError&quot; when attempting to access uploaded image file in sub directory of Phoenix application Problem title: &quot;Phoenix.Router.NoRouteError&quot; when attempting to access uploaded image file in sub directory of Phoenix application Tags: phoenix-framework, elixir, plug Problem:...
&quot;Phoenix.Router.NoRouteError&quot; when attempting to access uploaded image file in sub directory of Phoenix application &quot;Phoenix.Router.NoRouteError&quot; when attempting to access uploaded image file in sub directory of Phoenix application phoenix-framework elixir plug Phoenix.Router.NoRouteError Phoenix lo...
[ -0.00970458984375, 0.01409912109375, 0.0185546875, 0.006866455078125, -0.01202392578125, 0.0302734375, -0.004119873046875, 0.002532958984375, 0.00135040283203125, -0.0390625, -0.02392578125, 0.0036163330078125, 0.034912109375, 0.025390625, 0.00946044921875, -0.01141357421875, -0.0104...
[ 497, 33, 4084, 12724, 25208, 5021, 6743, 18468, 31611, 81887, 17203, 70622, 29569, 11435, 1614, 14364, 133720, 38415, 53073, 160328, 15296, 38308, 76329, 4000, 40294, 87774, 5044, 418, 115187, 25687, 79794, 3564, 38496, 3355, 194351, 135206, 75...
[ 0.050537109375, 0.09906005859375, 0.1239013671875, 0.10693359375, 0.234375, 0.1258544921875, 0.1180419921875, 0.143798828125, 0.1729736328125, 0.1019287109375, 0.1558837890625, 0.1591796875, 0.1650390625, 0.1484375, 0.2042236328125, 0.1622314453125, 0.26220703125, 0.1573486328125, ...
embed
30652439_c0
30652439
elixir
0
Title: Importing test code in elixir unit test Problem title: Importing test code in elixir unit test Tags: elixir, elixir-mix Problem: Importing test code in elixir unit test I'm writing tests of some Elixir code that interacts with SSH. In my tests, I'd like to start an SSH server that I can run my code against. I'd ...
Importing test code in elixir unit test Importing test code in elixir unit test elixir elixir-mix SSHServer Importing ssh_server.ex Importing test code in elixir unit test I'm writing tests of some Elixir code that interacts with SSH. In my tests, I'd like to start an SSH server that I can run my code against. I'd pref...
[ 0.007049560546875, 0.007110595703125, -0.005584716796875, 0.0162353515625, -0.0086669921875, -0.01324462890625, -0.005218505859375, -0.00122833251953125, -0.00445556640625, 0.000507354736328125, -0.015869140625, -0.00836181640625, 0.006591796875, 0.0322265625, 0.003875732421875, 0.0159...
[ 92966, 3034, 18151, 15296, 38308, 25072, 62015, 12927, 193348, 91, 1495, 39642, 3355, 32562, 109921, 25318, 78974, 159, 4034, 10723, 26548, 12601, 4343, 10002, 11435, 14364, 76242, 88996, 15190, 24927, 2022, 87, 132283, 9844, 37772, 17664 ]
[ 0.2203369140625, 0.2095947265625, 0.1708984375, 0.050689697265625, 0.197509765625, 0.1513671875, 0.1923828125, 0.1712646484375, 0.1629638671875, 0.012237548828125, 0.1590576171875, 0.1431884765625, 0.1387939453125, 0.008819580078125, 0.1744384765625, 0.0545654296875, 0.004638671875, ...
embed