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
69501277_c1
69501277
elixir
1
to config/runtime.exs don't require recompiling the code COPY config/runtime.exs config/ COPY rel rel RUN PORT=4001 mix release # prepare release image FROM alpine:3.12.1 AS app RUN apk add --no-cache libstdc++ openssl ncurses-libs ARG MIX_ENV ENV USER="elixir" # Everything from this line onwards will run in the conte...
to config/runtime.exs don't require recompiling the code COPY config/runtime.exs config/ COPY rel rel RUN PORT=4001 mix release # prepare release image FROM alpine:3.12.1 AS app RUN apk add --no-cache libstdc++ openssl ncurses-libs ARG MIX_ENV ENV USER="elixir" # Everything from this line onwards will run in the conte...
[ -0.02099609375, 0.01104736328125, -0.01470947265625, 0.01953125, -0.00017070770263671875, 0.000598907470703125, -0.013671875, 0.00469970703125, 0.0091552734375, -0.0017242431640625, 0.0159912109375, -0.01007080078125, 0.02490234375, 0.034912109375, -0.00016689300537109375, -0.001419067...
[ 47, 153837, 16428, 6032, 5, 3355, 7, 18, 64209, 33844, 11368, 2069, 18151, 153003, 1723, 7962, 130747, 122390, 107947, 34479, 17664, 54452, 114606, 29569, 61607, 117745, 13, 97109, 68107, 6483, 4027, 81698, 15190, 157, 408, 25474, 271, 37223,...
[ 0.08544921875, 0.24365234375, 0.1385498046875, 0.239990234375, 0.02130126953125, 0.21923828125, 0.203857421875, 0.03411865234375, 0.06390380859375, 0.08917236328125, 0.1668701171875, 0.072265625, 0.2021484375, 0.152099609375, 0.06829833984375, 0.07147216796875, 0.1846923828125, 0.1...
embed
34567624_c1
34567624
elixir
1
hex) lib/hex/resolver.ex:188: Hex.Resolver.attach_dep_and_children/3 (hex) lib/hex/resolver.ex:148: Hex.Resolver.get_deps/5 (hex) lib/hex/resolver.ex:107: Hex.Resolver.activate/6 (hex) lib/hex/resolver.ex:31: Hex.Resolver.resolve/3 (hex) lib/hex/remote_converger.ex:31: Hex.RemoteConverger.converge/2 (mix) lib/mix/dep/c...
hex) lib/hex/resolver.ex:188: Hex.Resolver.attach_dep_and_children/3 (hex) lib/hex/resolver.ex:148: Hex.Resolver.get_deps/5 (hex) lib/hex/resolver.ex:107: Hex.Resolver.activate/6 (hex) lib/hex/resolver.ex:31: Hex.Resolver.resolve/3 (hex) lib/hex/remote_converger.ex:31: Hex.RemoteConverger.converge/2 (mix) lib/mix/dep/c...
[ -0.00592041015625, 0.0033416748046875, 0.0115966796875, -0.008056640625, -0.00543212890625, -0.01214599609375, -0.0108642578125, -0.01287841796875, 0.011962890625, -0.00970458984375, -0.003082275390625, -0.037841796875, 0.003753662109375, 0.03564453125, 0.0203857421875, -0.003524780273...
[ 764, 425, 16, 25474, 64, 1106, 107, 86918, 42, 3355, 112511, 1529, 4332, 52438, 112, 254, 2940, 237052, 18113, 140458, 3794, 6423, 12147, 44141, 111438, 20155, 27321, 26973, 2271, 814, 1505, 432, 74789, 12477, 62015, 12231, 37286, 17357, 33...
[ 0.2271728515625, 0.218994140625, 0.0163726806640625, 0.1611328125, 0.003814697265625, 0.2191162109375, 0.07659912109375, 0.19580078125, 0.0877685546875, 0.1265869140625, 0.174072265625, 0.1368408203125, 0.03759765625, 0.1319580078125, 0.149169921875, 0.16455078125, 0.09783935546875, ...
embed
39494712_c1
39494712
elixir
1
right direction is highly appreciated :) So far I came up with this implementation (based on this blog post ): defmodule MyApi.TcpServerClean do use GenServer defmodule State do defstruct port: nil, lsock: nil, request_count: 0 end def start_link(port) do :gen_server.start_link({ :local, :my_api }, __MODULE__, port, [...
right direction is highly appreciated :) So far I came up with this implementation (based on this blog post ): defmodule MyApi.TcpServerClean do use GenServer defmodule State do defstruct port: nil, lsock: nil, request_count: 0 end def start_link(port) do :gen_server.start_link({ :local, :my_api }, __MODULE__, port, [...
[ -0.003021240234375, 0.007049560546875, 0.0098876953125, 0.021240234375, 0.01434326171875, 0.0084228515625, 0.011962890625, -0.022705078125, -0.0003452301025390625, -0.02587890625, 0.0098876953125, 0.01531982421875, 0.00927734375, 0.03515625, 0.00531005859375, -0.002838134765625, 0.01...
[ 7108, 48225, 103210, 77947, 71, 1094, 1061, 2060, 87, 21449, 1257, 678, 903, 208124, 77007, 98, 1415, 1305, 6, 2077, 8, 420, 83279, 13, 2646, 284, 1434, 618, 121422, 193348, 441, 34677, 54, 4527, 15937, 22836, 36716, 11469, 17324, 96, 9...
[ 0.0933837890625, 0.1624755859375, 0.0576171875, 0.051422119140625, 0.014984130859375, 0.07354736328125, 0.0236358642578125, 0.1300048828125, 0.070556640625, 0.0758056640625, 0.1029052734375, 0.0859375, 0.1556396484375, 0.267578125, 0.1058349609375, 0.007843017578125, 0.01129150390625...
embed
64346243_c0
64346243
elixir
0
Title: PostGIS data is being stored incorrectly Problem title: PostGIS data is being stored incorrectly Tags: ecto, elixir, phoenix-framework, postgis Problem: PostGIS data is being stored incorrectly So I have a really weird problem here. I send the LatLong as double from my mobile app to my phoenix backend. Backend h...
PostGIS data is being stored incorrectly PostGIS data is being stored incorrectly ecto elixir phoenix-framework postgis users PostGIS Ecto.Changeset lat_long_object Geo.Point put_change lat_long User Repo.all ST_asText PostGIS data is being stored incorrectly So I have a really weird problem here. I send the LatLong as...
[ 0.019775390625, 0.006439208984375, -0.00135040283203125, -0.0126953125, -0.0038604736328125, 0.01434326171875, 0.0096435546875, 0.0125732421875, 0.005096435546875, -0.00970458984375, 0.017578125, 0.00093841552734375, 0.004241943359375, -0.00518798828125, -0.0069580078125, 0.00494384765...
[ 2795, 112160, 2053, 8035, 4343, 71, 214552, 60751, 15296, 38308, 53073, 33, 4084, 160328, 1305, 12964, 72095, 241, 44150, 127008, 4188, 126, 10495, 10617, 187694, 30152, 147534, 3884, 152028, 53400, 853, 771, 5584, 16992, 162, 174379, 6183, 1...
[ 0.15966796875, 0.23583984375, 0.1759033203125, 0.036956787109375, 0.1767578125, 0.048614501953125, 0.2113037109375, 0.192626953125, 0.0867919921875, 0.1903076171875, 0.073974609375, 0.0968017578125, 0.1485595703125, 0.08154296875, 0.119384765625, 0.1846923828125, 0.1751708984375, 0...
embed
53854476_c0
53854476
elixir
0
Title: Base58 returns incorrect value in elixir Problem title: Base58 returns incorrect value in elixir Tags: base58, bitcoin, elixir Problem: Base58 returns incorrect value in elixir I'm trying to encode hex to base58. It works with js library base-x with hex = 1777c7ba65e23151ec09125011dd25c28998c70230e7b89ca6 Expect...
Base58 returns incorrect value in elixir Base58 returns incorrect value in elixir base58 bitcoin elixir Base58 AShDKgLSuCjGZr8Fs5SRLSYvmcSV7S4zwX cAvfov2bvPACeGktuSEtz6G526UBfCwpia1354fp5bYJwP2rhhnxqYkRcwRoDrmgqZaG is_binary encode_zeros binary.decode_unsigned Enum.at String.duplicate leading_zeros binary.bin_to_list E...
[ -0.000408172607421875, 0.0030364990234375, -0.006103515625, 0.0028533935546875, -0.006439208984375, -0.0032806396484375, 0.0096435546875, 0.005401611328125, 0.0019378662109375, -0.007415771484375, 0.00799560546875, 0.0078125, 0.0299072265625, 0.045166015625, 0.003021240234375, -0.00297...
[ 44978, 10057, 30646, 214552, 34292, 15296, 38308, 23, 3647, 76092, 6483, 83, 19155, 22, 40899, 80510, 2394, 112, 31304, 357, 316, 257, 23351, 52721, 105207, 7, 6635, 7568, 188, 6562, 111607, 4711, 31577, 764, 425, 47, 43240, 1647, 35773, ...
[ 0.2130126953125, 0.265380859375, 0.16943359375, 0.221435546875, 0.15087890625, 0.0833740234375, 0.2176513671875, 0.0146636962890625, 0.177734375, 0.1905517578125, 0.0042724609375, 0.00311279296875, 0.123291015625, 0.0693359375, 0.1917724609375, 0.1507568359375, 0.0882568359375, 0.1...
embed
49360006_c0
49360006
elixir
0
Title: Convert Module name to String and back to module Problem title: Convert Module name to String and back to module Tags: elixir Problem: Convert Module name to String and back to module If we have a module name like this: Module.V1.CountryTest I can convert it to String like this: Module.V1.CountryTest |> to_strin...
Convert Module name to String and back to module Convert Module name to String and back to module elixir Convert Module Module.V1.CountryTest to_string Elixir.Module.V1.CountryTest Regex.replace Test Elixir.Module.V1.Country String.to_atom Module.V1.Country Country Elixir.Module.V1 Convert Module name to String and bac...
[ -0.01123046875, 0.006561279296875, -0.01385498046875, 0.035888671875, 0.0029449462890625, -0.0022735595703125, 0.006927490234375, 0.0169677734375, -0.01007080078125, 0.00567626953125, 0.0184326171875, 0.020751953125, 0.0107421875, 0.008056640625, 0.0084228515625, -0.01434326171875, -...
[ 1657, 11549, 63014, 13, 9351, 47, 23351, 214, 4420, 88996, 15296, 38308, 856, 418, 108210, 1294, 111337, 91693, 25318, 5, 91616, 8782, 11678, 3355, 107, 23935, 8647, 188, 5928, 74831, 1884, 831, 96760, 903, 49041, 50339, 17, 2174, 87388, ...
[ 0.04888916015625, 0.1324462890625, 0.221435546875, 0.0772705078125, 0.1658935546875, 0.1380615234375, 0.197021484375, 0.1424560546875, 0.154541015625, 0.255615234375, 0.06982421875, 0.221923828125, 0.08636474609375, 0.0280303955078125, 0.08087158203125, 0.003326416015625, 0.203002929...
embed
48416742_c0
48416742
elixir
0
Title: Is it possible to send a message to all child processes in elixir/erlang? Problem title: Is it possible to send a message to all child processes in elixir/erlang? Tags: erlang, message-passing, elixir Problem: Is it possible to send a message to all child processes in elixir/erlang? Let's imagine that I'm spawni...
Is it possible to send a message to all child processes in elixir/erlang? Is it possible to send a message to all child processes in elixir/erlang? erlang message-passing elixir Child IO.puts Message Parent child1 spawn_link Child.start child2 child3 send_to_children Is it possible to send a message to all child proces...
[ 0.0172119140625, 0.009033203125, -0.0167236328125, 0.01226806640625, -0.0128173828125, 0.00469970703125, 0.00982666015625, 0.003326416015625, -0.0023040771484375, -0.064453125, 0.00604248046875, 0.00408935546875, 0.0015106201171875, 0.04931640625, -0.0018768310546875, 0.02099609375, ...
[ 2071, 7722, 25379, 26008, 47, 756, 29041, 9433, 90, 15296, 38308, 56, 3066, 23, 72, 13409, 123829, 17780, 7077, 48205, 170918, 5623, 7710, 10187, 17137, 363, 188, 237052, 442, 10, 28987, 434, 48716, 831, 111, 20020, 43581, 14192, 11675, 6...
[ 0.014129638671875, 0.14599609375, 0.1436767578125, 0.1820068359375, 0.17138671875, 0.144775390625, 0.1866455078125, 0.178466796875, 0.10589599609375, 0.0736083984375, 0.211181640625, 0.08056640625, 0.2308349609375, 0.034393310546875, 0.0543212890625, 0.04559326171875, 0.1092529296875...
embed
66540209_c0
66540209
elixir
0
Title: AMQP Elixir library issuing an error "undefined function 'Elixir.AMQP.Application':get_channel(chan)" Problem title: AMQP Elixir library issuing an error "undefined function 'Elixir.AMQP.Application':get_channel(chan)" Tags: rabbitmq, amqp, elixir Problem: AMQP Elixir libr...
AMQP Elixir library issuing an error "undefined function 'Elixir.AMQP.Application':get_channel(chan)" AMQP Elixir library issuing an error "undefined function 'Elixir.AMQP.Application':get_channel(chan)" rabbitmq amqp elixir AMQP Elixir Elixir.AMQP.Application get_channel AMQP.Ap...
[ -0.005279541015625, 0.017822265625, 0.0023651123046875, 0.0341796875, -0.001556396484375, -0.0057373046875, -0.00799560546875, -0.0257568359375, -0.0023651123046875, -0.0390625, 0.01153564453125, -0.0025177001953125, 0.00084686279296875, 0.0162353515625, 0.0230712890625, -0.00497436523...
[ 9677, 2737, 683, 25318, 38308, 35773, 1294, 1159, 18499, 59437, 5983, 32354, 3768, 150, 8922, 47677, 182867, 3794, 17032, 152131, 18, 864, 444, 254, 15296, 2046, 154791, 12927, 145269, 123996, 169581, 944, 233, 933, 532, 41, 25553, 15537, 5...
[ 0.0916748046875, 0.1575927734375, 0.1807861328125, 0.114013671875, 0.246337890625, 0.1937255859375, 0.077392578125, 0.0162811279296875, 0.1929931640625, 0.06585693359375, 0.1973876953125, 0.1734619140625, 0.0767822265625, 0.07147216796875, 0.076904296875, 0.09429931640625, 0.15759277...
embed
47097955_c0
47097955
elixir
0
Title: Remember me functionality in Phoenix using Guardian Problem title: Remember me functionality in Phoenix using Guardian Tags: cookies, elixir, guardian, phoenix-framework, remember-me Problem: Remember me functionality in Phoenix using Guardian I'm developing a login system for a web application using Guardian to...
Remember me functionality in Phoenix using Guardian Remember me functionality in Phoenix using Guardian cookies elixir guardian phoenix-framework remember-me Guardian Remember Phoenix Guardian.Plug.sign_in Remember me functionality in Phoenix using Guardian I'm developing a login system for a web application using Guar...
[ -0.0185546875, 0.0245361328125, 0.01123046875, -0.01153564453125, -0.001617431640625, -0.0081787109375, -0.00677490234375, 0.01104736328125, -0.011474609375, -0.033935546875, -0.00921630859375, 0.021240234375, -0.00677490234375, 0.0172119140625, 0.00360107421875, -0.005096435546875, ...
[ 157492, 163, 123309, 23, 133720, 17368, 81589, 4136, 15296, 38308, 158031, 19, 53073, 33, 4084, 160328, 37629, 282, 35159, 31304, 73, 168698, 73655, 5426, 1467, 38415, 34831, 195734, 153837, 765, 53400, 47, 1098, 4343, 159029, 18852, 35604, 4...
[ 0.276123046875, 0.2548828125, 0.21875, 0.0693359375, 0.295166015625, 0.09771728515625, 0.313720703125, 0.2413330078125, 0.072509765625, 0.193115234375, 0.2296142578125, 0.05999755859375, 0.07513427734375, 0.08251953125, 0.116943359375, 0.11279296875, 0.235595703125, 0.1884765625, ...
embed
45001960_c0
45001960
elixir
0
Title: Wallaby integration tests pass individually, fail when run together Problem title: Wallaby integration tests pass individually, fail when run together Tags: integration-testing, elixir Problem: Wallaby integration tests pass individually, fail when run together I'm using Wallaby (0.17.0) for acceptance tests wit...
Wallaby integration tests pass individually, fail when run together Wallaby integration tests pass individually, fail when run together integration-testing elixir DBConnection.OwnershipError Wallaby Phoenix.Ecto.SQL.Sandbox Wallaby integration tests pass individually, fail when run together I'm using Wallaby (0.17.0) f...
[ 0.009521484375, -0.0068359375, -0.015625, -0.0155029296875, -0.01031494140625, 0.0216064453125, -0.00738525390625, -0.0196533203125, -0.0003833770751953125, 0.0128173828125, 0.0028228759765625, 0.0205078125, -0.00634765625, 0.0341796875, 0.021240234375, 0.0213623046875, -0.0048828125...
[ 23706, 11, 1272, 157353, 109921, 27875, 11651, 35782, 11675, 25842, 6954, 15296, 38308, 57976, 235603, 1830, 7710, 56, 16070, 18468, 133720, 44150, 158897, 2940, 11728, 17368, 102014, 129884, 26946, 68743, 5928, 28175, 83783, 25318, 104867, 1004,...
[ 0.16015625, 0.1329345703125, 0.2247314453125, 0.24658203125, 0.218017578125, 0.11962890625, 0.16162109375, 0.2037353515625, 0.08978271484375, 0.1934814453125, 0.1497802734375, 0.056915283203125, 0.220947265625, 0.0941162109375, 0.1153564453125, 0.047332763671875, 0.1083984375, 0.08...
embed
60361866_c0
60361866
elixir
0
Title: How to rollback changes that has made in the database by wallaby automation browser Problem title: How to rollback changes that has made in the database by wallaby automation browser Tags: wallaby, automation, elixir Problem: How to rollback changes that has made in the database by wallaby automation browser I h...
How to rollback changes that has made in the database by wallaby automation browser How to rollback changes that has made in the database by wallaby automation browser wallaby automation elixir How add_user There example.com fill_in user_name John Doe add_user_button assert_has user_added_successfully_message How to ro...
[ -0.01336669921875, 0.01092529296875, 0.0005340576171875, -0.0167236328125, 0.0010833740234375, 0.01422119140625, -0.003997802734375, -0.00189971923828125, -0.0023040771484375, -0.00750732421875, 0.0086669921875, -0.008544921875, -0.01214599609375, 0.05078125, 0.0272216796875, -0.014892...
[ 11249, 47, 21972, 12620, 65572, 450, 1556, 7228, 23, 63399, 259, 1165, 1272, 11408, 1830, 31842, 15296, 38308, 15190, 65918, 27781, 26292, 73, 38937, 11627, 4939, 984, 13, 8789, 1507, 237, 33657, 10557, 69819, 226534, 74157, 4989, 3034, 117...
[ 0.0767822265625, 0.057861328125, 0.20654296875, 0.2998046875, 0.25634765625, 0.0147705078125, 0.1151123046875, 0.09521484375, 0.06146240234375, 0.194091796875, 0.07025146484375, 0.1298828125, 0.1943359375, 0.162109375, 0.03546142578125, 0.197021484375, 0.06878662109375, 0.185302734...
embed
35215474_c0
35215474
elixir
0
Title: ExUnit mocks get mixed up in their concurrency (async: false not working?) Problem title: ExUnit mocks get mixed up in their concurrency (async: false not working?) Tags: elixir, meck Problem: ExUnit mocks get mixed up in their concurrency (async: false not working?) While executing ExUnit.start , in each case, ...
ExUnit mocks get mixed up in their concurrency (async: false not working?) ExUnit mocks get mixed up in their concurrency (async: false not working?) elixir meck meck ExUnit ExUnit.start MyModule.FooTest ExUnit.Case MyModule.Foo MyModule.Baz call_baz Baz some_async_method meck.val Task.async otiai10 Foo.call_baz otiai2...
[ -0.000247955322265625, -0.00335693359375, -0.01141357421875, -0.01904296875, 0.0021820068359375, 0.0067138671875, 0.019287109375, -0.0005645751953125, 0.0194091796875, 0.00537109375, -0.00994873046875, 0.0255126953125, 0.0037384033203125, 0.026611328125, 0.01708984375, 0.00118255615234...
[ 5443, 85600, 18, 8698, 1224, 2046, 17664, 297, 1257, 108636, 982, 12654, 98320, 959, 20697, 23, 15296, 38308, 163, 2594, 17137, 2646, 91616, 27591, 31, 111337, 571, 1828, 11782, 40300, 36490, 3060, 1928, 1405, 9598, 36, 118, 508, 963, 957...
[ 0.17578125, 0.21240234375, 0.1075439453125, 0.185546875, 0.1436767578125, 0.00067138671875, 0.152587890625, 0.0304718017578125, 0.08551025390625, 0.132080078125, 0.0946044921875, 0.2174072265625, 0.217529296875, 0.041259765625, 0.13671875, 0.01373291015625, 0.04803466796875, 0.1722...
embed
36191601_c0
36191601
elixir
0
Title: Are there 'middleware' libs for network based apps in node (or other languages)? Problem title: Are there 'middleware' libs for network based apps in node (or other languages)? Tags: go, netty, node.js, elixir, tcp Problem: Are there 'middleware' libs for network based apps in node (or other ...
Are there 'middleware' libs for network based apps in node (or other languages)? Are there 'middleware' libs for network based apps in node (or other languages)? go netty node.js elixir tcp node.js Are there 'middleware' libs for network based apps in node (or other languages)? I am looking to write...
[ -0.001495361328125, 0.00750732421875, 0.005645751953125, 0.00909423828125, 0.015869140625, 0.00701904296875, 0.00360107421875, 0.012451171875, 0.01123046875, -0.006500244140625, 0.01397705078125, -0.00408935546875, 0.0233154296875, -0.0023956298828125, -0.0137939453125, 0.0024566650390...
[ 15901, 2685, 3768, 22000, 19298, 15876, 25474, 7, 100, 33120, 35509, 49966, 110, 112, 46876, 738, 11970, 53, 28175, 15296, 38308, 121422, 23, 33022, 10723, 222978, 49347, 16751, 87344, 34754, 99156, 47644, 21373, 24071, 13452, 29479, 91363, 7...
[ 0.005828857421875, 0.0125732421875, 0.04150390625, 0.124755859375, 0.126220703125, 0.208740234375, 0.194580078125, 0.0908203125, 0.03271484375, 0.1396484375, 0.143310546875, 0.174560546875, 0.14892578125, 0.1973876953125, 0.1226806640625, 0.05242919921875, 0.1414794921875, 0.173583...
embed
48878327_c0
48878327
elixir
0
Title: How to filter preloaded records by query Problem title: How to filter preloaded records by query Tags: ecto, preload, elixir Problem: How to filter preloaded records by query I am listing a list of records (Packs). Those Packs are linked to items through a many to many relation : pack has_many packitems item has...
How to filter preloaded records by query How to filter preloaded records by query ecto preload elixir How list_packs Pack preload_active_items Repo.all Repo.preload i.active How to filter preloaded records by query I am listing a list of records (Packs). Those Packs are linked to items through a many to many relation :...
[ 0.001953125, -0.0024261474609375, -0.0172119140625, 0.01239013671875, -0.0096435546875, 0.01422119140625, -0.004302978515625, 0.00653076171875, 0.00022411346435546875, -0.049560546875, 0.0203857421875, -0.0081787109375, -0.01953125, 0.01129150390625, -0.019775390625, 0.01239013671875, ...
[ 11249, 46312, 479, 63033, 297, 115923, 390, 41, 1294, 60751, 15296, 38308, 5303, 29102, 56607, 71232, 1486, 771, 5584, 853, 4692, 17, 205956, 3126, 55769, 5941, 41911, 43824, 1556, 669, 35735, 8305, 217, 195, 36457, 20697, 19441, 91995, 744...
[ 0.028350830078125, 0.251708984375, 0.139404296875, 0.20654296875, 0.030303955078125, 0.2034912109375, 0.08831787109375, 0.1158447265625, 0.05035400390625, 0.1956787109375, 0.05230712890625, 0.1856689453125, 0.1175537109375, 0.196044921875, 0.1944580078125, 0.14404296875, 0.0764160156...
embed
43699110_c0
43699110
elixir
0
Title: Use assign from plug to view (elixir / phoenix) Problem title: Use assign from plug to view (elixir / phoenix) Tags: plug, phoenix-framework, elixir Problem: Use assign from plug to view (elixir / phoenix) I have my api pipeline in which I want to add a plug which basically does some operations in the database a...
Use assign from plug to view (elixir / phoenix) Use assign from plug to view (elixir / phoenix) plug phoenix-framework elixir plug Plug.Conn Phoenix.Controller Use ApiV2.Plug.Authenticate Auth.Repo _opts current_user ApiV2.AddressController ApiV2.Web ApiV2.Address Use assign from plug to view (elixir / phoenix) I have ...
[ -0.0142822265625, 0.01336669921875, 0.0019989013671875, 0.000942230224609375, -0.0198974609375, 0.0157470703125, -0.0244140625, -0.01373291015625, 0.014404296875, -0.050537109375, 0.00665283203125, 0.0026702880859375, 0.000370025634765625, 0.0147705078125, -0.0203857421875, -0.01147460...
[ 36836, 95486, 1295, 76329, 47, 21455, 6169, 38308, 53073, 33, 4084, 248, 160328, 18244, 15296, 194351, 11935, 133720, 175904, 603, 5787, 14, 856, 5442, 35159, 1003, 63250, 5655, 927, 4332, 771, 2146, 43581, 65918, 161007, 30474, 31470, 137158...
[ 0.1400146484375, 0.299072265625, 0.183837890625, 0.230712890625, 0.119873046875, 0.295166015625, 0.061309814453125, 0.2044677734375, 0.0628662109375, 0.070068359375, 0.157470703125, 0.0025634765625, 0.12353515625, 0.00421142578125, 0.051788330078125, 0.162353515625, 0.0892333984375, ...
embed
64550907_c0
64550907
elixir
0
Title: Elixir phoenix LiveView collapsible collapses on update Problem title: Elixir phoenix LiveView collapsible collapses on update Tags: elixir, phoenix-live-view, phoenix-framework Problem: Elixir phoenix LiveView collapsible collapses on update Problem LiveView collapses my opened element. Details I have an elemen...
Elixir phoenix LiveView collapsible collapses on update Elixir phoenix LiveView collapsible collapses on update elixir phoenix-live-view phoenix-framework Elixir LiveView collapse_trigger Otherwise Elixir phoenix LiveView collapsible collapses on update Problem LiveView collapses my opened element. Details I have an el...
[ -0.0022430419921875, 0.01519775390625, 0.01336669921875, -0.0185546875, -0.012451171875, 0.00860595703125, -0.0020904541015625, 0.01373291015625, 0.000598907470703125, -0.047119140625, 0.00897216796875, -0.005645751953125, -0.0086669921875, 0.021728515625, 0.01165771484375, -0.01397705...
[ 25318, 38308, 53073, 33, 4084, 9251, 100474, 65780, 254, 55356, 3365, 127966, 98, 28350, 15296, 24056, 22751, 160328, 3996, 21407, 15649, 142096, 12830, 77658, 5773, 9191, 72367, 38937, 18158, 18507, 164, 71232, 6867, 87388, 6528, 9077, 124962,...
[ 0.07464599609375, 0.17919921875, 0.061981201171875, 0.0863037109375, 0.0753173828125, 0.1453857421875, 0.2919921875, 0.15234375, 0.149169921875, 0.1771240234375, 0.1475830078125, 0.201171875, 0.031585693359375, 0.17236328125, 0.0333251953125, 0.076904296875, 0.268798828125, 0.04940...
embed
56081905_c0
56081905
elixir
0
Title: Creating a GraphQL field without a resolver Problem title: Creating a GraphQL field without a resolver Tags: graphql, phoenix-framework, elixir, absinthe Problem: Creating a GraphQL field without a resolver I'm using Elixir with Phoenix and Absinthe to set up a GraphQL backend. Ideally, I'd like to have a struct...
Creating a GraphQL field without a resolver Creating a GraphQL field without a resolver graphql phoenix-framework elixir absinthe Creating GraphQL Schema posts_by_state Post list_of Creating a GraphQL field without a resolver I'm using Elixir with Phoenix and Absinthe to set up a GraphQL backend. Ideally, I'd like to h...
[ 0.01019287109375, 0.00457763671875, -0.00946044921875, 0.01324462890625, -0.0020294189453125, -0.00102996826171875, 0.021484375, -0.0081787109375, 0.007232666015625, -0.0093994140625, 0.01165771484375, 0.021484375, -0.015869140625, 0.0128173828125, 0.00262451171875, 0.0025787353515625,...
[ 56781, 6524, 11727, 2737, 866, 44457, 15490, 10, 58061, 41382, 99247, 33, 4084, 160328, 18244, 15296, 38308, 1563, 1596, 2347, 34702, 192, 32323, 61340, 2795, 5303, 17368, 25318, 678, 133720, 136, 27174, 73, 5423, 4420, 3611, 41143, 1884, 4...
[ 0.1337890625, 0.1312255859375, 0.122802734375, 0.139892578125, 0.1572265625, 0.2337646484375, 0.124267578125, 0.03631591796875, 0.2349853515625, 0.15625, 0.1981201171875, 0.00714111328125, 0.0655517578125, 0.06982421875, 0.013458251953125, 0.0285797119140625, 0.2064208984375, 0.056...
embed
44098069_c0
44098069
elixir
0
Title: How to update field value dynamically in Ecto migration? Problem title: How to update field value dynamically in Ecto migration? Tags: ecto, elixir Problem: How to update field value dynamically in Ecto migration? I have a Users table like: email | username ---------------+---------- 123@321.com | 123@123.com | ...
How to update field value dynamically in Ecto migration? How to update field value dynamically in Ecto migration? ecto elixir Ecto.Query.CompileError Ecto.Query How Ecto haha.com MyApp.Repo.Migrations.AddDefaultUsernameForUsers Ecto.Migration MyApp.User String.split u.email List.first MyApp.Repo.update_all ecto.migrate...
[ -0.00177764892578125, -0.0019683837890625, 0.01300048828125, 0.006988525390625, 0.0155029296875, 0.0024871826171875, -0.02197265625, 0.0166015625, -0.004852294921875, -0.0203857421875, -0.006927490234375, 0.025390625, 0.01214599609375, -0.01080322265625, 0.00738525390625, -0.0167236328...
[ 11249, 28350, 44457, 34292, 84079, 25958, 23, 241, 44150, 212416, 47, 60751, 15296, 38308, 41732, 1294, 108161, 1340, 18468, 31611, 22010, 277, 2646, 39179, 4332, 771, 594, 72482, 5256, 4028, 187423, 11, 1062, 2189, 11627, 7, 872, 23351, 43...
[ 0.064208984375, 0.2032470703125, 0.2457275390625, 0.20849609375, 0.223876953125, 0.132568359375, 0.0309600830078125, 0.1116943359375, 0.265869140625, 0.2332763671875, 0.025146484375, 0.19873046875, 0.06536865234375, 0.1917724609375, 0.07281494140625, 0.00201416015625, 0.0390014648437...
embed
57424993_c1
57424993
elixir
1
"edit.html", opensource: opensource, changeset: changeset) end def update(conn, %{"id" => id, "opensource" => opensource_params}) do opensource = Task.get_opensource!(id) case Task.update_opensource(opensource, opensource_params) do {:ok, opensource} -> conn |> put_flash(:info, "Opensource updated successfully.") |> r...
"edit.html", opensource: opensource, changeset: changeset) end def update(conn, %{"id" => id, "opensource" => opensource_params}) do opensource = Task.get_opensource!(id) case Task.update_opensource(opensource, opensource_params) do {:ok, opensource} -> conn |> put_flash(:info, "Opensource updated successfully.") |> r...
[ -0.006866455078125, -0.0023651123046875, -0.0002689361572265625, -0.002227783203125, 0.035400390625, -0.005401611328125, -0.0037384033203125, 0.0089111328125, 0.006072998046875, -0.0191650390625, 0.00074005126953125, -0.0185546875, 0.000484466552734375, 0.006378173828125, 0.0044860839843...
[ 45082, 5, 7693, 9803, 60427, 65572, 126, 3564, 8, 420, 28350, 2271, 19, 532, 3447, 59636, 2500, 8256, 54, 9598, 92, 3794, 90295, 7225, 117008, 685, 158, 3884, 5544, 7319, 103264, 150011, 65771, 80581, 188, 106015, 128405, 31374, 188800, 4...
[ 0.2017822265625, 0.0260162353515625, 0.1956787109375, 0.1466064453125, 0.234130859375, 0.13818359375, 0.153564453125, 0.08807373046875, 0.0914306640625, 0.0206146240234375, 0.1861572265625, 0.0882568359375, 0.05816650390625, 0.06671142578125, 0.076171875, 0.125, 0.04833984375, 0.09...
embed
52929760_c0
52929760
elixir
0
Title: elixir poison not able to decode JSON Problem title: elixir poison not able to decode JSON Tags: decode, elixir-poison, elixir, json Problem: elixir poison not able to decode JSON I am trying below code data = Poison.decode!(payload) |> ProperCase.to_snake_case Logger.info("data is #{data}") Where the payload is...
elixir poison not able to decode JSON elixir poison not able to decode JSON decode elixir-poison elixir json Protocol.UndefinedError JSON Poison.decode ProperCase.to_snake_case Logger.info Joe Could PerfectFlight String.Chars IO.inspect elixir poison not able to decode JSON I am trying below code Where the payload is f...
[ -0.007110595703125, 0.01312255859375, -0.018310546875, 0.01611328125, 0.005950927734375, -0.00469970703125, -0.00101470947265625, -0.0081787109375, 0.00433349609375, -0.00823974609375, -0.00244140625, -0.00109100341796875, 0.00885009765625, 0.0205078125, 0.0078125, 0.005096435546875, ...
[ 15296, 38308, 5737, 191, 959, 19048, 8, 40899, 821, 58627, 120178, 1647, 1681, 151607, 1067, 5983, 18468, 31611, 64249, 112, 1250, 1264, 441, 6991, 188, 1141, 13, 58437, 64906, 56, 7319, 40207, 191147, 73171, 919, 20016, 23351, 214, 84068, ...
[ 0.0762939453125, 0.231689453125, 0.204345703125, 0.1834716796875, 0.036224365234375, 0.09649658203125, 0.1435546875, 0.21044921875, 0.1278076171875, 0.19970703125, 0.1893310546875, 0.0904541015625, 0.153564453125, 0.1302490234375, 0.032806396484375, 0.125, 0.037322998046875, 0.0251...
embed
18011784_c0
18011784
elixir
0
Title: Why are there two kinds of functions in Elixir? Problem title: Why are there two kinds of functions in Elixir? Tags: erlang, elixir Problem: Why are there two kinds of functions in Elixir? I'm learning Elixir and wonder why it has two types of function definitions: functions defined in a module with def , called...
Why are there two kinds of functions in Elixir? Why are there two kinds of functions in Elixir? erlang elixir Why Elixir param1 param2 Why are there two kinds of functions in Elixir? I'm learning Elixir and wonder why it has two types of function definitions: functions defined in a module with def , called using myfunc...
[ 0.00244140625, -0.0010833740234375, -0.004791259765625, 0.01214599609375, 0.0218505859375, -0.0035247802734375, 0.01226806640625, -0.00836181640625, 0.00537109375, -0.0291748046875, 0.0072021484375, -0.006378173828125, -0.02001953125, 0.00433349609375, 0.0101318359375, -0.0012893676757...
[ 44084, 621, 2685, 6626, 8562, 7, 111, 32354, 23, 25318, 38308, 72, 3066, 15296, 121, 39, 418, 304, 52080, 15400, 1556, 52895, 80934, 61924, 88996, 8, 420, 17368, 759, 137175, 6276, 10461, 52184, 14783, 17932, 5117, 67413, 36746, 831, 1150...
[ 0.1209716796875, 0.011688232421875, 0.0545654296875, 0.1693115234375, 0.1842041015625, 0.138671875, 0.014862060546875, 0.2423095703125, 0.0712890625, 0.139404296875, 0.273681640625, 0.06170654296875, 0.223388671875, 0.10791015625, 0.10626220703125, 0.0692138671875, 0.04931640625, 0...
embed
65799646_c0
65799646
elixir
0
Title: Elixir equivalent for Ruby on Rails time helpers (e.g. 1.day.ago) Problem title: Elixir equivalent for Ruby on Rails time helpers (e.g. 1.day.ago) Tags: elixir, datetime Problem: Elixir equivalent for Ruby on Rails time helpers (e.g. 1.day.ago) I am currently building a Phoenix app and am relatively new to the e...
Elixir equivalent for Ruby on Rails time helpers (e.g. 1.day.ago) Elixir equivalent for Ruby on Rails time helpers (e.g. 1.day.ago) elixir datetime Elixir Ruby Rails e.g day.ago some_date_time some_date.next_weekday.at_beginning_of_day NaiveDateTime.add NaiveDateTime.utc_now Enum.random Elixir equivalent for Ruby on Ra...
[ -0.00274658203125, -0.00689697265625, 0.0040283203125, 0.01361083984375, 0.004180908203125, -0.013427734375, -0.01373291015625, 0.0087890625, 0.00048065185546875, -0.045654296875, 0.003082275390625, 0.017578125, -0.0089111328125, 0.01904296875, 0.000614166259765625, -0.0016860961914062...
[ 25318, 38308, 183234, 158189, 98, 85736, 7, 1733, 4358, 1314, 615, 5636, 13906, 15296, 5622, 6032, 5155, 3060, 17489, 29062, 47477, 6820, 353, 5844, 86291, 70059, 4028, 35613, 316, 46258, 33976, 133720, 4027, 49347, 16751, 32233, 11814, 50080...
[ 0.134521484375, 0.2479248046875, 0.218017578125, 0.2310791015625, 0.158447265625, 0.256591796875, 0.03607177734375, 0.1474609375, 0.2049560546875, 0.12109375, 0.06494140625, 0.112060546875, 0.184326171875, 0.07440185546875, 0.1446533203125, 0.1888427734375, 0.0684814453125, 0.02293...
embed
49217661_c0
49217661
elixir
0
Title: Passing a variable as a parameter in Elixir Problem title: Passing a variable as a parameter in Elixir Tags: elixir Problem: Passing a variable as a parameter in Elixir I need to pass a module attribute as a function parameter, however it doesn't work for me and it raises an error. Here is my code: defmodule Wai...
Passing a variable as a parameter in Elixir Passing a variable as a parameter in Elixir elixir UndefinedFunctionError Passing Elixir Waiter IO.puts Waiter.defaultInterval Waiter.defaultTimeout Waiter.wait iex:7 Passing a variable as a parameter in Elixir I need to pass a module attribute as a function parameter, howeve...
[ -0.00049591064453125, -0.0031280517578125, -0.00897216796875, -0.003936767578125, 0.00396728515625, -0.03125, -0.004669189453125, -0.030029296875, -0.01483154296875, -0.02587890625, 0.0111083984375, -0.005279541015625, 0.004302978515625, 0.0238037109375, 0.01416015625, 0.00149536132812...
[ 28872, 77336, 237, 171859, 25318, 38308, 10, 23, 15296, 79912, 5983, 97249, 18468, 175254, 56, 17780, 214810, 44851, 1405, 70059, 6056, 634, 217, 3355, 966, 27875, 88996, 150380, 32354, 4488, 138804, 18499, 18151, 1631, 1374, 159978, 11814, 1...
[ 0.14990234375, 0.2734375, 0.1142578125, 0.25439453125, 0.1185302734375, 0.258544921875, 0.0244598388671875, 0.03607177734375, 0.077392578125, 0.010833740234375, 0.148681640625, 0.0902099609375, 0.061431884765625, 0.2081298828125, 0.1875, 0.1124267578125, 0.202392578125, 0.081909179...
embed
48894036_c0
48894036
elixir
0
Title: Insert data inside a migration Problem title: Insert data inside a migration Tags: ecto, phoenix-framework, elixir Problem: Insert data inside a migration Model1 used to have a belongs_to relationship to Model2 but now I need to change it for a has_many relationship. Therefore I'm creating a migration with an mo...
Insert data inside a migration Insert data inside a migration ecto phoenix-framework elixir ArgumentError Insert Model1 belongs_to Model2 has_many model1s_model2s MyRepo.all Enum.each MyRepo.insert Model1Model2 model1_id x.id model2_id x.model2_id ets.lookup prometheus_histogram_table ecto_db_query_duration_microsecond...
[ -0.031494140625, -0.004791259765625, -0.02197265625, 0.0034942626953125, 0.0142822265625, 0.002349853515625, -0.03564453125, -0.023193359375, -0.01318359375, -0.0810546875, 0.0045166015625, 0.004119873046875, 0.01422119140625, -0.00188446044921875, 0.00677490234375, -0.00860595703125, ...
[ 360, 33657, 2053, 46132, 10, 212416, 60751, 53073, 33, 4084, 160328, 18244, 15296, 38308, 112140, 18468, 31611, 13293, 418, 10617, 188, 304, 1556, 669, 53, 3299, 7, 51734, 2646, 4332, 771, 5584, 316, 41581, 140290, 1022, 82, 64747, 20657, ...
[ 0.0858154296875, 0.218505859375, 0.17919921875, 0.197998046875, 0.0187530517578125, 0.212890625, 0.204345703125, 0.045379638671875, 0.0545654296875, 0.1253662109375, 0.08538818359375, 0.019775390625, 0.07501220703125, 0.1983642578125, 0.2132568359375, 0.12109375, 0.036102294921875, ...
embed
65766822_c0
65766822
elixir
0
Title: Phoenix/Elixir test view helpers Problem title: Phoenix/Elixir test view helpers Tags: phoenix-framework, elixir Problem: Phoenix/Elixir test view helpers I have created a helper to do some calculations before a number is presented to the view: defmodule FourtyWeb.CalculationHelpers do use Phoenix.HTML def value...
Phoenix/Elixir test view helpers Phoenix/Elixir test view helpers phoenix-framework elixir CompileError Phoenix.View Phoenix Elixir FourtyWeb.CalculationHelpers Phoenix.HTML value_in_euro amount_in_cents is_binary FourtyWeb.CalculationHelpersTest FourtyWeb.ConnCase Compilation app_web calculation_helpers_test.exs fourt...
[ -0.015869140625, -0.02685546875, -0.005523681640625, -0.01806640625, 0.00677490234375, -0.00958251953125, -0.017333984375, -0.023681640625, 0.01031494140625, -0.0299072265625, -0.033203125, 0.01019287109375, 0.0030364990234375, 0.00022792816162109375, 0.00775146484375, -0.0026245117187...
[ 133720, 64, 647, 150, 38308, 3034, 21455, 4358, 1314, 53073, 33, 4084, 160328, 18244, 15296, 15612, 1340, 18468, 100474, 25318, 65056, 939, 30474, 94553, 238, 60785, 21777, 127068, 34292, 73, 73810, 41170, 16797, 83, 19155, 1294, 111337, 1193...
[ 0.236572265625, 0.0217437744140625, 0.013397216796875, 0.0758056640625, 0.2181396484375, 0.220458984375, 0.208740234375, 0.208251953125, 0.07122802734375, 0.0130615234375, 0.03338623046875, 0.0853271484375, 0.08642578125, 0.0460205078125, 0.06549072265625, 0.1124267578125, 0.10766601...
embed
43771222_c1
43771222
elixir
1
Guardian.hooks_module.after_sign_in(the_key) {:error, reason} -> set_claims(conn, {:error, reason}, the_key) end end Again, I just want to emphasize that the controller action worked perfectly before incorporating GuardianDb. Now that I've added GuardianDb, the record is created correctly in the database but new_conn ...
MifQ.DliX044wFmKpCrawuH3W_DoCya2VYAdrxZfwWEGWtW_ymDxXmQgV6XL3bHRkPKhSHziaFQFMvHIGS9yKtBfTkg guardian.ex:100 Guardian.encode_from_hooked plug.ex:178 phoenix_backend session_controller.ex:9 MyApp.SessionController.create call_after_encode_and_sign_hook encode_from_hooked claims_from_hook encode_claims LINE encode_and_sig...
[ -0.0029754638671875, 0.0145263671875, 0.017822265625, -0.0128173828125, -0.00148773193359375, 0.0091552734375, -0.008544921875, -0.01055908203125, 0.0078125, -0.028564453125, -0.002532958984375, -0.0172119140625, 0.005615234375, -0.0078125, -0.0072021484375, -0.019287109375, -0.01696...
[ 1208, 2737, 159937, 8517, 158031, 19, 3355, 3559, 81589, 33, 40899, 161063, 68336, 76329, 139305, 4084, 12620, 56002, 81988, 1126, 39179, 294, 90, 175904, 7612, 11782, 46327, 31304, 497, 685, 22, 140526, 164779, 130028, 31470, 19770, 42719, 8...
[ 0.007965087890625, 0.05584716796875, 0.041534423828125, 0.08660888671875, 0.1717529296875, 0.022430419921875, 0.10345458984375, 0.1292724609375, 0.27392578125, 0.02508544921875, 0.154296875, 0.04388427734375, 0.1041259765625, 0.127197265625, 0.119873046875, 0.084228515625, 0.01417541...
embed
48945839_c0
48945839
elixir
0
Title: Cascade delete in phoenix Problem title: Cascade delete in phoenix Tags: ecto, elixir, phoenix-framework Problem: Cascade delete in phoenix I have 3 models: schema "m1s" do (...) has_many :m2s, MyApp.M2, on_delete: :delete_all end schema "m2s" do (...) belongs_to :m1s, MyApp.M1 many_to_many :m3s, MyApp.M3, join_...
Cascade delete in phoenix Cascade delete in phoenix ecto elixir phoenix-framework Postgrex.Error Cascade m1s has_many m2s MyApp.M2 on_delete delete_all belongs_to MyApp.M1 many_to_many m3s MyApp.M3 join_through MyApp.M3sM2 MyApp.M2sM3 m2s_m3s ERROR foreign_key_violation m2s_m3s_m2_id_fkey Cascade delete in phoenix I ha...
[ -0.004180908203125, 0.0184326171875, -0.00726318359375, 0.012939453125, 0.0169677734375, -0.0036773681640625, 0.010986328125, -0.011474609375, 0.00457763671875, -0.03466796875, 0.00872802734375, 0.00946044921875, 0.01416015625, -0.00179290771484375, -0.01519775390625, -0.00050735473632...
[ 32221, 23662, 154109, 23, 53073, 33, 4084, 60751, 15296, 38308, 160328, 18244, 2795, 7134, 425, 18468, 31611, 347, 418, 7, 1556, 669, 53, 304, 2646, 39179, 594, 8520, 67, 5584, 10617, 5941, 363, 33284, 151206, 110613, 19770, 158993, 39, 5...
[ 0.1678466796875, 0.2252197265625, 0.26806640625, 0.06982421875, 0.09906005859375, 0.09906005859375, 0.1416015625, 0.1654052734375, 0.0472412109375, 0.179931640625, 0.1016845703125, 0.0190887451171875, 0.040802001953125, 0.1202392578125, 0.0858154296875, 0.099853515625, 0.043640136718...
embed
32565489_c1
32565489
elixir
1
, ^reference, result} -> original_from |> send {response_type, original_reference, result} end end end Basically, it does the following: Handles custom IO requests in accordance with custom protocol Modifies processing of some of standard IO requests Proxies everything else to underlying File Now I can transparently st...
, ^reference, result} -> original_from |> send {response_type, original_reference, result} end end end Basically, it does the following: Handles custom IO requests in accordance with custom protocol Modifies processing of some of standard IO requests Proxies everything else to underlying File Now I can transparently st...
[ -0.01068115234375, 0.011962890625, -0.0002231597900390625, 0.016845703125, -0.0181884765625, -0.0038909912109375, 0.0103759765625, -0.0137939453125, 0.0091552734375, -0.01397705078125, -0.00037384033203125, -0.0185546875, -0.0023651123046875, 0.021484375, 0.0235595703125, 0.00463867187...
[ 239879, 16750, 7311, 161063, 25379, 134719, 13, 50986, 3564, 71407, 4, 442, 14602, 25632, 10639, 1577, 114122, 17780, 50336, 213246, 91363, 117712, 1029, 5570, 1250, 5134, 26818, 1379, 42724, 831, 70267, 177261, 6097, 8966, 2663, 3789, 243, 9...
[ 0.248779296875, 0.131591796875, 0.146484375, 0.1937255859375, 0.09075927734375, 0.1153564453125, 0.054718017578125, 0.16064453125, 0.048187255859375, 0.010589599609375, 0.0501708984375, 0.1494140625, 0.138427734375, 0.0955810546875, 0.09564208984375, 0.0823974609375, 0.1756591796875,...
embed
67093562_c0
67093562
elixir
0
Title: How to broadcast to one socket_id using phoenix Problem title: How to broadcast to one socket_id using phoenix Tags: elixir, phoenix-channels, phoenix-framework Problem: How to broadcast to one socket_id using phoenix In the docs there is this example but it only works for disconnects https://hexdocs.pm/phoenix/...
How to broadcast to one socket_id using phoenix How to broadcast to one socket_id using phoenix elixir phoenix-channels phoenix-framework phoenix How socket_id Phoenix.Socket MyAppWeb.RoomChannel _connect_info user_id users_socket socket.assigns.user_id Disconnect MyAppWeb.Endpoint.broadcast user.id How to broadcast to...
[ -0.00579833984375, 0.02001953125, 0.01116943359375, -0.0031585693359375, -0.001739501953125, 0.0047607421875, -0.01361083984375, -0.003692626953125, -0.00909423828125, -0.058349609375, 0.012451171875, -0.01190185546875, -0.0012969970703125, 0.00726318359375, -0.007354736328125, -0.0050...
[ 11249, 226347, 47, 1632, 221, 27853, 532, 17368, 53073, 33, 4084, 15296, 38308, 17032, 8876, 133720, 8912, 39179, 30474, 12724, 127008, 135457, 7319, 38937, 72095, 991, 31304, 65918, 6206, 2646, 152378, 38496, 6369, 55741, 27781, 43240, 2837, ...
[ 0.0362548828125, 0.2427978515625, 0.160400390625, 0.171630859375, 0.158447265625, 0.1905517578125, 0.1866455078125, 0.061767578125, 0.090576171875, 0.1136474609375, 0.1361083984375, 0.0535888671875, 0.1715087890625, 0.063720703125, 0.01654052734375, 0.28076171875, 0.107421875, 0.10...
embed
59044803_c0
59044803
elixir
0
Title: Elixir : Issue in defining Maps Problem title: Elixir : Issue in defining Maps Tags: elixir Problem: Elixir : Issue in defining Maps I have a predefined Maps with a number as key and its value, I tried by creating maps like below this in CL it's working fine but when I execute through code file it throws an erro...
Elixir : Issue in defining Maps Elixir : Issue in defining Maps elixir Protocol.UndefinedError Elixir Issue Maps String.Chars Map chars.ex:3 String.Chars.impl_for chars.ex:22 String.Chars.to_string io.ex:654 IO.puts DecimalToRoman roman_table DecimalToRoman.convert Elixir : Issue in defining Maps I have a predefined Ma...
[ 0.000782012939453125, -0.01177978515625, -0.002655029296875, 0.0019989013671875, -0.01470947265625, -0.01202392578125, 0.009765625, -0.0087890625, -0.00775146484375, -0.0093994140625, -0.005096435546875, -0.035888671875, 0.0245361328125, 0.0277099609375, 0.0164794921875, 0.005767822265...
[ 25318, 38308, 223317, 13204, 449, 103033, 23, 15296, 151607, 1067, 5983, 18468, 31611, 23351, 84068, 42719, 21441, 3355, 363, 116120, 24070, 188, 91693, 22995, 12424, 617, 17780, 49132, 2749, 7763, 158271, 6315, 22819, 11549, 1653, 13, 678, 1...
[ 0.1478271484375, 0.276611328125, 0.2130126953125, 0.18798828125, 0.0489501953125, 0.2396240234375, 0.02032470703125, 0.09918212890625, 0.173583984375, 0.0841064453125, 0.17333984375, 0.0908203125, 0.0738525390625, 0.1007080078125, 0.1492919921875, 0.186767578125, 0.1220703125, 0.03...
embed
52541313_c0
52541313
elixir
0
Title: How to make `unquote` output minimal quotation result in Elixir Problem title: How to make `unquote` output minimal quotation result in Elixir Tags: elixir Problem: How to make `unquote` output minimal quotation result in Elixir How can I make the output of this expression quote do defmodule X do unquote do IO.p...
How to make `unquote` output minimal quotation result in Elixir How to make `unquote` output minimal quotation result in Elixir elixir How Elixir IO.puts unquote_splicing Kernel __aliases__ WANT REMOVE __block__ How to make `unquote` output minimal quotation result in Elixir How can I make the output of this expression...
[ 0.000675201416015625, 0.0164794921875, 0.00927734375, 0.00469970703125, -0.0120849609375, -0.00081634521484375, 0.0228271484375, -0.0177001953125, -0.0021209716796875, -0.0068359375, -0.0126953125, 0.004791259765625, 0.00115966796875, 0.01129150390625, -0.00164031982421875, 0.022338867...
[ 11249, 3249, 309, 68726, 140992, 20187, 81732, 1363, 16750, 25318, 38308, 15296, 17780, 7077, 51, 55992, 214, 119125, 583, 41763, 5908, 601, 33996, 83852, 125901, 81409, 23, 125195, 186, 66161, 450, 111, 2811, 40383, 87388, 26073, 297, 124519...
[ 0.05218505859375, 0.05633544921875, 0.1510009765625, 0.2432861328125, 0.1678466796875, 0.2034912109375, 0.1798095703125, 0.058685302734375, 0.1041259765625, 0.101806640625, 0.22021484375, 0.07281494140625, 0.1309814453125, 0.01904296875, 0.1429443359375, 0.1641845703125, 0.0602416992...
embed
36582842_c0
36582842
elixir
0
Title: How to change Ecto relationships Problem title: How to change Ecto relationships Tags: ecto, elixir, phoenix-framework Problem: How to change Ecto relationships I'm a new in Elixir and looking for proper way of how to chanage relationship in Ecto model. Assume I have model with relationship: schema "topic" do ha...
How to change Ecto relationships How to change Ecto relationships ecto elixir phoenix-framework t How Ecto has_many topic_meta PhoenixApp.TopicMeta left_join Repo.one PhoenixApp.Topic changed_meta List.first topic.topic_meta last_read first_meta Repo.update PhoenixApp.Topic.changeset How to change Ecto relationships I'...
[ 0.006500244140625, -0.0002880096435546875, 0.0101318359375, 0.0118408203125, 0.006500244140625, -0.0228271484375, -0.0194091796875, 0.00604248046875, 0.0029754638671875, -0.0303955078125, -0.00311279296875, 0.0274658203125, -0.004547119140625, -0.00408935546875, 0.03564453125, -0.00297...
[ 11249, 47, 15549, 241, 44150, 151618, 60751, 15296, 38308, 53073, 33, 4084, 160328, 18244, 808, 1556, 669, 53, 28451, 35273, 133720, 39179, 77888, 6696, 102, 25737, 513, 853, 771, 3630, 98816, 32036, 13448, 119499, 4568, 39116, 5117, 117008, ...
[ 0.0880126953125, 0.040252685546875, 0.259521484375, 0.1175537109375, 0.287353515625, 0.2685546875, 0.226318359375, 0.0528564453125, 0.199951171875, 0.0211181640625, 0.03631591796875, 0.0841064453125, 0.0841064453125, 0.050750732421875, 0.051239013671875, 0.0276641845703125, 0.0717773...
embed
25370007_c1
25370007
elixir
1
56.499 [error] Error in process <0.232.0> with exit value: {[{reason,{badmatch,#{}}},{mfa,{'Elixir.Plug.Adapters.Cowboy.Handler',init,3}},{stacktrace,[{'Elixir.Sci','-do_match/2-fun-0-',2,[{file,"lib/sci.ex"},{line,18}]},{'Eli xir.Sci',call,2,[{file,"lib/sci.ex"},{line,1}]},{'Elixir.Plug.Adapters.Cowboy.Handler'... iex...
56.499 [error] Error in process <0.232.0> with exit value: {[{reason,{badmatch,#{}}},{mfa,{'Elixir.Plug.Adapters.Cowboy.Handler',init,3}},{stacktrace,[{'Elixir.Sci','-do_match/2-fun-0-',2,[{file,"lib/sci.ex"},{line,18}]},{'Eli xir.Sci',call,2,[{file,"lib/sci.ex"},{line,1}]},{'Elixir.Plug.Adapters.Cowboy.Handler'... iex...
[ -0.0181884765625, 0.0093994140625, 0.003173828125, -0.01031494140625, -0.00982666015625, 0.0079345703125, -0.0230712890625, -0.02099609375, 0.007415771484375, -0.0106201171875, 0.0021514892578125, 0.0062255859375, -0.01141357421875, 0.0169677734375, 0.027099609375, -0.0028228759765625,...
[ 9103, 617, 5046, 188800, 212059, 9433, 133684, 363, 73011, 678, 82230, 34292, 1283, 1681, 12283, 98753, 1021, 150, 38308, 35159, 22409, 2631, 23962, 8770, 30885, 135679, 603, 73, 217, 590, 99407, 318, 16498, 23320, 29822, 5612, 41820, 3355, ...
[ 0.11865234375, 0.072509765625, 0.17529296875, 0.19970703125, 0.223876953125, 0.189453125, 0.1529541015625, 0.09539794921875, 0.18994140625, 0.0465087890625, 0.2318115234375, 0.17041015625, 0.077880859375, 0.1209716796875, 0.10552978515625, 0.26953125, 0.13818359375, 0.0531616210937...
embed
70879977_c1
70879977
elixir
1
stdlib 3.17) proc_lib.erl:226: :proc_lib.init_p_do_apply/3 Last message: nil State: Postgrex.Protocol ** (Mix) The database for Helloworld.Repo couldn't be created: killed I already tried everything. I am on Fedora 35, i did all that the official Fedora PostgreSQL docs said. I changed the pg_hba.conf for this: # TYPE D...
stdlib 3.17) proc_lib.erl:226: :proc_lib.init_p_do_apply/3 Last message: nil State: Postgrex.Protocol ** (Mix) The database for Helloworld.Repo couldn't be created: killed I already tried everything. I am on Fedora 35, i did all that the official Fedora PostgreSQL docs said. I changed the pg_hba.conf for this: # TYPE D...
[ 0.0164794921875, 0.021484375, 0.01239013671875, 0.0274658203125, -0.004608154296875, -0.00946044921875, -0.006134033203125, -0.019287109375, 0.000675201416015625, -0.0281982421875, 0.0208740234375, -0.022216796875, 0.018798828125, 0.0174560546875, -0.01708984375, 0.0133056640625, -0....
[ 6138, 71, 5612, 1031, 59741, 10402, 56, 141, 24070, 910, 3454, 238, 5, 73, 217, 254, 246, 454, 9007, 538, 18113, 21672, 26008, 17324, 22836, 2795, 7134, 425, 10752, 188, 8447, 594, 4084, 63399, 35378, 32554, 4332, 771, 69427, 18, 186, ...
[ 0.1094970703125, 0.059173583984375, 0.1910400390625, 0.07635498046875, 0.1488037109375, 0.1126708984375, 0.009246826171875, 0.0469970703125, 0.0281829833984375, 0.118408203125, 0.034210205078125, 0.0498046875, 0.004669189453125, 0.00030517578125, 0.0875244140625, 0.012420654296875, 0...
embed
42539391_c0
42539391
elixir
0
Title: Ecto has_one without belongs_to in Phoenix Problem title: Ecto has_one without belongs_to in Phoenix Tags: phoenix-framework, elixir, ecto Problem: Ecto has_one without belongs_to in Phoenix I have a Home model which contains content for a home page such as intro_copy , about_image and about_copy . On the Home m...
Ecto has_one without belongs_to in Phoenix Ecto has_one without belongs_to in Phoenix phoenix-framework elixir ecto Ecto has_one belongs_to Phoenix Home intro_copy about_image about_copy Post Image.Type post_1 post_2 post_3 cast_assoc required_fields optional_fields post_1_id post_2_id post_3_id Ecto has_one without be...
[ 0.01177978515625, -0.00145721435546875, 0.01409912109375, 0.00457763671875, 0.00102996826171875, -0.00262451171875, -0.0087890625, -0.0159912109375, 0.006561279296875, -0.03857421875, -0.000576019287109375, 0.01092529296875, -0.0032501220703125, 0.01177978515625, -0.0228271484375, -0.0...
[ 241, 44150, 1556, 3630, 15490, 186, 10617, 188, 23, 133720, 53073, 33, 4084, 160328, 18244, 15296, 38308, 60751, 2005, 64627, 137366, 1672, 37926, 2795, 22710, 196707, 1305, 115187, 363, 37702, 56065, 28394, 35829, 3299, 10941, 5368, 9191, 18...
[ 0.1077880859375, 0.29150390625, 0.162353515625, 0.2005615234375, 0.18212890625, 0.0826416015625, 0.1968994140625, 0.14453125, 0.06988525390625, 0.25830078125, 0.031707763671875, 0.026702880859375, 0.0546875, 0.1051025390625, 0.023834228515625, 0.0584716796875, 0.1793212890625, 0.25...
embed
79309000_c1
79309000
elixir
1
"2024-12-19T08:48:29.528457+00:00" message = :crypto.hash(:sha512, key_id() <> dt) |> Base.encode16() |> String.downcase() api_key = Base.decode64!(api_key()) <<_::binary-size(26), der::binary>> = api_key key = :public_key.der_decode(:RSAPrivateKey, der) signature = :public_key.sign(message, :sha, key) |> Base.encode6...
KMpvT h9ZvT8gRn9P9PQeCScFyNdR32LVuU7WNkiu55XI5 ZXRgV6PNN3tOEHPLxn1Wl5cZ4kbQbciAF eo0JAgMBAAECggEAC BtdoTWWDUFXL0Pq1gaNkxzltehmV8B U2FFZ4L8vX648t5Qn2SxAcxBEfMCxnkk uJ1yfobAC1raZHaNbTMacmUz1mJzZwLm7GzG0JODh3ZcS0PQAA4Wj aPKr994v08jeA0DJ2zAmx0xR2vF24oE9uxja9pN8dCleJD4kvCR1aVMJBlUow09PnZo6fsi9wAdIjs BHVQT0mUl7Nx fFqhLbWgJB3...
[ -0.0089111328125, 0.0106201171875, -0.01708984375, -0.0263671875, 0.0089111328125, -0.019775390625, -0.0032806396484375, 0.00078582763671875, -0.00860595703125, -0.0146484375, 0.01806640625, 0.00128173828125, 0.005462646484375, 0.01556396484375, -0.0235595703125, -0.000865936279296875,...
[ 32249, 132059, 618, 1126, 24666, 138256, 15296, 38308, 1239, 98753, 17198, 50828, 18151, 140992, 12663, 31577, 33022, 759, 3034, 121, 14375, 22799, 3447, 29187, 49150, 3768, 25474, 20697, 11343, 678, 3525, 136791, 87168, 51139, 121742, 11249, 3...
[ 0.08447265625, 0.1063232421875, 0.061614990234375, 0.03759765625, 0.1644287109375, 0.2215576171875, 0.10174560546875, 0.2120361328125, 0.10418701171875, 0.2156982421875, 0.048431396484375, 0.079833984375, 0.122314453125, 0.1065673828125, 0.0499267578125, 0.0101318359375, 0.0097961425...
embed
42154269_c0
42154269
elixir
0
Title: Production Elixir/Phoenix app hogs CPU Problem title: Production Elixir/Phoenix app hogs CPU Tags: cowboy, elixir, phoenix-framework Problem: Production Elixir/Phoenix app hogs CPU I have an Elixir/Phoenix running in production and after a while one of the beam.smp processes goes to 100% CPU load (sometimes more...
Production Elixir/Phoenix app hogs CPU Production Elixir/Phoenix app hogs CPU cowboy elixir phoenix-framework Elixir.MyApp.Error Production Elixir Phoenix CPU Load Memory Pid Name Initial Func Time Reds MsgQ Current cowboy_protocol:init Elixir.Redix.Connec gen_server:loop Elixir.Exq Elixir.Exq.Redis.Cli etop_txt:init e...
[ -0.00799560546875, 0.0006103515625, -0.003326416015625, -0.000698089599609375, -0.0096435546875, 0.0005340576171875, -0.0084228515625, -0.01361083984375, 0.00885009765625, -0.055908203125, -0.0027618408203125, 0.01422119140625, 0.0262451171875, 0.01397705078125, 0.0184326171875, 0.0039...
[ 118479, 25318, 38308, 497, 33, 4084, 4027, 739, 9405, 86039, 552, 434, 30885, 15296, 53073, 160328, 31852, 39179, 18468, 133720, 2091, 172681, 532, 15757, 28670, 19055, 6096, 2737, 114063, 18606, 31, 8447, 73, 80852, 21986, 9226, 39642, 28354...
[ 0.186767578125, 0.12646484375, 0.2449951171875, 0.032073974609375, 0.08721923828125, 0.1351318359375, 0.2025146484375, 0.1302490234375, 0.1199951171875, 0.2362060546875, 0.023651123046875, 0.0919189453125, 0.1953125, 0.1085205078125, 0.04693603515625, 0.0826416015625, 0.0869750976562...
embed
42213446_c0
42213446
elixir
0
Title: How can I get :mnesia.select to work in elixir? Problem title: How can I get :mnesia.select to work in elixir? Tags: elixir, mnesia, erlang Problem: How can I get :mnesia.select to work in elixir? I have a mnesia table defined for use in an elixir project. iex 1> :mnesia.create_table(:todo_lists, [attributes: [:...
How can I get :mnesia.select to work in elixir? How can I get :mnesia.select to work in elixir? elixir mnesia erlang How mnesia.select mnesia.create_table todo_lists disc_only_copies mnesia.transaction mnesia.match_object normans_list obamas_list alices_list bills_list How can I get :mnesia.select to work in elixir? I ...
[ -0.0101318359375, 0.01153564453125, -0.003265380859375, 0.0164794921875, -0.00738525390625, -0.000640869140625, -0.0030059814453125, 0.00640869140625, 0.0009918212890625, -0.0240478515625, 0.03564453125, 0.00738525390625, 0.008544921875, -0.00107574462890625, 0.002838134765625, -0.0027...
[ 11249, 831, 2046, 39, 86, 3478, 7, 100184, 47, 4488, 23, 15296, 38308, 152, 49097, 72, 3066, 7612, 22819, 1973, 6562, 17116, 191, 59935, 30145, 98753, 187694, 19025, 995, 41627, 923, 5170, 54727, 23180, 61924, 4527, 13452, 80854, 58055, 6...
[ 0.046966552734375, 0.045867919921875, 0.050994873046875, 0.0726318359375, 0.191162109375, 0.234375, 0.077880859375, 0.2421875, 0.04132080078125, 0.130126953125, 0.09033203125, 0.10986328125, 0.2490234375, 0.013336181640625, 0.1783447265625, 0.007598876953125, 0.1529541015625, 0.078...
embed
73869657_c0
73869657
elixir
0
Title: Convert a list of maps to a single map using key from inner map Problem title: Convert a list of maps to a single map using key from inner map Tags: elixir Problem: Convert a list of maps to a single map using key from inner map I have two list of maps that look like this: list_one = [ %{id: :a, value: 1}, %{id:...
Convert a list of maps to a single map using key from inner map Convert a list of maps to a single map using key from inner map elixir key inner Convert list_one list_two value_one value_two Enum.reduce Convert a list of maps to a single map using key from inner map I have two list of maps that look like this: and I kn...
[ -0.0096435546875, 0.00439453125, -0.0106201171875, 0.0142822265625, 0.00933837890625, 0.031494140625, -0.0107421875, -0.010986328125, 0.01611328125, -0.0057373046875, -0.0029144287109375, 0.028076171875, 0.0208740234375, 0.050048828125, 0.014404296875, -0.01519775390625, -0.008239746...
[ 1657, 11549, 5303, 111, 22288, 7, 47, 10, 11001, 17368, 22799, 1295, 75414, 15296, 38308, 3630, 55547, 34292, 357, 316, 107, 106357, 6626, 6713, 1884, 3714, 3447, 91, 621, 36998, 12638, 532, 11343, 34627, 142424, 892, 26255, 5701, 13648, ...
[ 0.059051513671875, 0.1689453125, 0.2271728515625, 0.073486328125, 0.221923828125, 0.0953369140625, 0.09967041015625, 0.033905029296875, 0.2149658203125, 0.027862548828125, 0.204345703125, 0.092041015625, 0.2166748046875, 0.0721435546875, 0.2015380859375, 0.1044921875, 0.1671142578125...
embed
60598385_c1
60598385
elixir
1
. (postgrex 0.12.2) lib/postgrex/utils.ex:40: Postgrex.Utils.parse_version/1 (postgrex 0.12.2) lib/postgrex/protocol.ex:497: Postgrex.Protocol.bootstrap_send/4 (postgrex 0.12.2) lib/postgrex/protocol.ex:353: Postgrex.Protocol.handshake/2 (db_connection 1.1.3) lib/db_connection/connection.ex:135: DBConnection.Connection...
. (postgrex 0.12.2) lib/postgrex/utils.ex:40: Postgrex.Utils.parse_version/1 (postgrex 0.12.2) lib/postgrex/protocol.ex:497: Postgrex.Protocol.bootstrap_send/4 (postgrex 0.12.2) lib/postgrex/protocol.ex:353: Postgrex.Protocol.handshake/2 (db_connection 1.1.3) lib/db_connection/connection.ex:135: DBConnection.Connection...
[ -0.00689697265625, 0.01153564453125, 0.006072998046875, 0.0184326171875, 0.0167236328125, 0.006195068359375, -0.01904296875, -0.0184326171875, 0.00640869140625, -0.01373291015625, 0.00384521484375, -0.036376953125, 0.0198974609375, -0.0047607421875, -0.015625, 0.026611328125, -0.0289...
[ 6, 5, 4594, 7134, 425, 757, 15654, 10461, 25474, 1003, 7870, 3355, 22932, 2795, 106742, 2500, 46354, 11583, 64, 18606, 31, 8447, 170599, 10752, 188, 80765, 107617, 39285, 17357, 127875, 12336, 70704, 12477, 15, 48073, 454, 135457, 1830, 617...
[ 0.017822265625, 0.042999267578125, 0.144775390625, 0.259033203125, 0.201171875, 0.1085205078125, 0.19287109375, 0.1112060546875, 0.1519775390625, 0.1468505859375, 0.1383056640625, 0.08917236328125, 0.1419677734375, 0.14892578125, 0.1434326171875, 0.1402587890625, 0.1116943359375, 0...
embed
56096487_c0
56096487
elixir
0
Title: Efficiently zipping unequal length lists in Elixir Problem title: Efficiently zipping unequal length lists in Elixir Tags: list, reduce, enumeration, elixir, zip Problem: Efficiently zipping unequal length lists in Elixir The Elixir zip/2 function zips two lists, stopping when the end of the shorter list is reac...
Efficiently zipping unequal length lists in Elixir Efficiently zipping unequal length lists in Elixir list reduce enumeration elixir zip Efficiently Elixir is_list Enum.reduce Integer.mod Enum.slice Enum.zip Enum.into Efficiently zipping unequal length lists in Elixir The Elixir zip/2 function zips two lists, stopping ...
[ -0.01031494140625, 0.016845703125, 0.00616455078125, 0.014404296875, -0.009521484375, -0.00238037109375, -0.0169677734375, -0.01080322265625, 0.01953125, -0.005889892578125, 0.004974365234375, 0.006378173828125, 0.01214599609375, 0.011962890625, 0.00982666015625, 0.0081787109375, -0....
[ 24500, 45964, 3546, 26783, 773, 71723, 140909, 5303, 25318, 38308, 34390, 189085, 15296, 68330, 83, 6562, 357, 316, 107, 106357, 44401, 13415, 13348, 50836, 21579, 12477, 32354, 7, 6626, 7279, 10366, 3229, 3564, 16610, 56, 157578, 81887, 1982...
[ 0.11083984375, 0.0625, 0.1961669921875, 0.1363525390625, 0.106689453125, 0.1876220703125, 0.1602783203125, 0.2144775390625, 0.1207275390625, 0.2391357421875, 0.1668701171875, 0.1534423828125, 0.052154541015625, 0.2178955078125, 0.09375, 0.1744384765625, 0.038330078125, 0.1448974609...
embed
69025882_c0
69025882
elixir
0
Title: How to create a keep-alive API endpoint with Cowboy in Elixir? Problem title: How to create a keep-alive API endpoint with Cowboy in Elixir? Tags: plug, cowboy, elixir, keep-alive Problem: How to create a keep-alive API endpoint with Cowboy in Elixir? Note: I am new to elixir and the forum, and hence my question...
How to create a keep-alive API endpoint with Cowboy in Elixir? How to create a keep-alive API endpoint with Cowboy in Elixir? plug cowboy elixir keep-alive How API Cowboy Elixir How to create a keep-alive API endpoint with Cowboy in Elixir? Note: I am new to elixir and the forum, and hence my question might be missing ...
[ -0.0024566650390625, 0.021484375, 0.010009765625, -0.0213623046875, 0.00439453125, -0.003692626953125, -0.0107421875, -0.01141357421875, -0.002960205078125, -0.04736328125, 0.0133056640625, -0.003875732421875, -0.0019989013671875, 0.039306640625, 0.0002918243408203125, 0.00927734375, ...
[ 11249, 28282, 13695, 11, 24056, 61687, 3564, 38496, 678, 1311, 434, 30885, 25318, 38308, 47, 10, 9, 23, 76329, 552, 15296, 3525, 4738, 31577, 78779, 71702, 21455, 248, 86429, 17378, 115061, 112034, 22687, 178308, 94878, 923, 272, 4263, 1484...
[ 0.1055908203125, 0.1580810546875, 0.2054443359375, 0.035369873046875, 0.2342529296875, 0.2474365234375, 0.154541015625, 0.199951171875, 0.05377197265625, 0.10430908203125, 0.1534423828125, 0.27197265625, 0.1312255859375, 0.2509765625, 0.02667236328125, 0.01458740234375, 0.01226806640...
embed
48829383_c0
48829383
elixir
0
Title: How to get DB values returned by raw sql with Ecto Problem title: How to get DB values returned by raw sql with Ecto Tags: phoenix-framework, elixir, ecto Problem: How to get DB values returned by raw sql with Ecto I have made a complicated SQL. so that I use raw query. I've already referred https://stackoverflo...
How to get DB values returned by raw sql with Ecto How to get DB values returned by raw sql with Ecto phoenix-framework elixir ecto sales How Ecto stackoverflow.com item_id Ecto.Adapters.SQL.query Repo Mariaex.Result connection_id last_insert_id num_rows Decimal item_result result.get Enum.zip How to get DB values retu...
[ 0.0103759765625, -0.00714111328125, 0.00439453125, 0.0198974609375, -0.0107421875, -0.00341796875, -0.0238037109375, -0.009033203125, 0.01531982421875, -0.0191650390625, 0.0169677734375, 0.00823974609375, -0.007476806640625, 0.0189208984375, -0.014404296875, -0.0152587890625, -0.0295...
[ 11249, 2046, 57976, 142424, 176377, 390, 49649, 99247, 678, 241, 44150, 91, 53073, 33, 4084, 160328, 18244, 15296, 38308, 60751, 40575, 177261, 5465, 118664, 35735, 532, 22409, 2631, 23962, 158897, 944, 853, 771, 5379, 3355, 7, 7136, 94878, ...
[ 0.05706787109375, 0.1160888671875, 0.2261962890625, 0.2301025390625, 0.215576171875, 0.059326171875, 0.2568359375, 0.1951904296875, 0.0765380859375, 0.1168212890625, 0.28271484375, 0.0369873046875, 0.03070068359375, 0.037841796875, 0.0960693359375, 0.09521484375, 0.0251312255859375, ...
embed
41955234_c0
41955234
elixir
0
Title: Websocket timing out too soon Problem title: Websocket timing out too soon Tags: elixir, websocket, javascript, phoenix-framework, sockets Problem: Websocket timing out too soon I've set up a standard Phoenix websocket/channel environment but I am not using the socket.js provided - I have my own (very simple) co...
Websocket timing out too soon Websocket timing out too soon elixir websocket javascript phoenix-framework sockets Websocket sock_url ws.onmessage JSON.parse msg.data event.startsWith phx_ payload.body ws.onclose ws.onopen ws.send JSON.stringify users_socket user_id phx_join Websocket timing out too soon I've set up a s...
[ -0.00738525390625, 0.025634765625, -0.005889892578125, -0.03076171875, -0.00008296966552734375, -0.0133056640625, -0.0166015625, 0.01416015625, -0.008056640625, -0.049072265625, 0.0089111328125, -0.0086669921875, -0.025390625, 0.00579833984375, -0.00714111328125, 0.0029754638671875, ...
[ 4002, 991, 27853, 5527, 214, 1810, 5792, 33662, 15296, 38308, 1467, 136951, 53073, 33, 4084, 160328, 221, 2594, 25002, 191, 74157, 821, 58627, 2500, 19732, 17137, 194583, 11521, 425, 8783, 63033, 37873, 155648, 59636, 72095, 38937, 513, 5570,...
[ 0.0966796875, 0.1466064453125, 0.2335205078125, 0.2149658203125, 0.048919677734375, 0.1771240234375, 0.1075439453125, 0.211181640625, 0.050994873046875, 0.18408203125, 0.07171630859375, 0.191162109375, 0.005035400390625, 0.0419921875, 0.1094970703125, 0.04827880859375, 0.118774414062...
embed
70130127_c1
70130127
elixir
1
Date> <orderDate>2021-06-18 05:43:13</orderDate> <expectedShipDate>2021-06-18 00:00:00</expectedShipDate> <venue>Xfinity Center - MA - Mansfield, MA</venue> <status>UNCONFIRMED</status> <purchaseOrderId>35088971</purchaseOrderId> <electronicDelivery>false</electronicDelivery> <passThrough></passThrough> <listingId>3359...
Date> <orderDate>2021-06-18 05:43:13</orderDate> <expectedShipDate>2021-06-18 00:00:00</expectedShipDate> <venue>Xfinity Center - MA - Mansfield, MA</venue> <status>UNCONFIRMED</status> <purchaseOrderId>35088971</purchaseOrderId> <electronicDelivery>false</electronicDelivery> <passThrough></passThrough> <listingId>3359...
[ 0.0157470703125, 0.0279541015625, -0.006805419921875, -0.0167236328125, 0.01470947265625, 0.0087890625, -0.01409912109375, 0.0008544921875, 0.02490234375, 0.0267333984375, -0.004608154296875, 0.00433349609375, -0.0244140625, -0.022216796875, 0.00127410888671875, -0.00628662109375, 0....
[ 25512, 2740, 4426, 80596, 86291, 128607, 44037, 1819, 4777, 33210, 22618, 42946, 83613, 13, 89829, 78567, 254, 110095, 6632, 68334, 1542, 5983, 2481, 11588, 20, 9267, 73546, 28394, 4, 45215, 14006, 919, 14688, 104126, 4717, 1436, 184, 143045,...
[ 0.15673828125, 0.04718017578125, 0.0198822021484375, 0.287109375, 0.1541748046875, 0.19091796875, 0.144287109375, 0.1396484375, 0.0738525390625, 0.111083984375, 0.0953369140625, 0.02044677734375, 0.123046875, 0.0199737548828125, 0.0699462890625, 0.2286376953125, 0.1470947265625, 0....
embed
45976472_c0
45976472
elixir
0
Title: Elixir GenStage Cast returns no function clause matching Problem title: Elixir GenStage Cast returns no function clause matching Tags: gen-server, elixir, erlang-otp, genstage Problem: Elixir GenStage Cast returns no function clause matching I have been having trouble using a cast with GenStage. I'm trying to fe...
Elixir GenStage Cast returns no function clause matching Elixir GenStage Cast returns no function clause matching gen-server elixir erlang-otp genstage Elixir GenStage Cast new_entry GenStage.cast __MODULE__ handle_cast _head new_list dispatch_events queue.in get_average queue.out Enum.reverse Elixir GenStage Cast retu...
[ -0.000759124755859375, 0.0208740234375, -0.0031585693359375, -0.007476806640625, 0.0048828125, -0.01544189453125, -0.0021209716796875, -0.0059814453125, -0.010009765625, -0.0011138916015625, -0.0201416015625, -0.02099609375, -0.011474609375, 0.0277099609375, 0.004913330078125, -0.01287...
[ 25318, 38308, 15937, 294, 16852, 32301, 30646, 110, 32354, 70731, 13, 14858, 9226, 39642, 15296, 3066, 818, 254, 29038, 33, 55741, 34831, 31251, 6562, 90141, 41, 8216, 6056, 316, 37676, 214, 63134, 17368, 10, 37702, 678, 61590, 2053, 47, ...
[ 0.08868408203125, 0.187255859375, 0.1741943359375, 0.037200927734375, 0.2216796875, 0.210693359375, 0.1318359375, 0.102294921875, 0.1319580078125, 0.1485595703125, 0.03192138671875, 0.1400146484375, 0.13818359375, 0.1102294921875, 0.035400390625, 0.1710205078125, 0.034027099609375, ...
embed
39950278_c0
39950278
elixir
0
Title: Pass oauth header in soap call with erlang detergent library Problem title: Pass oauth header in soap call with erlang detergent library Tags: salesforce, erlang, elixir, soap Problem: Pass oauth header in soap call with erlang detergent library I am using detergent to make soap call to salesforce soap api. I wa...
Pass oauth header in soap call with erlang detergent library Pass oauth header in soap call with erlang detergent library salesforce erlang elixir soap FunctionClauseError Pass detergent.call metadata.wsdl token.access_token erlsom_write.processAnyAttributes erlsom_write.erl:501 schemas.xmlsoap.org soap.sforce.com www....
[ 0.0194091796875, 0.020263671875, -0.0024871826171875, -0.0244140625, -0.0020751953125, -0.033447265625, 0.0025787353515625, -0.007049560546875, -0.01397705078125, -0.01171875, 0.0172119140625, 0.0213623046875, -0.0247802734375, 0.00170135498046875, 0.0087890625, -0.01397705078125, -0...
[ 28872, 36, 916, 927, 10336, 56, 23, 221, 2631, 11782, 678, 72, 3066, 217655, 35773, 40575, 50930, 15296, 38308, 28670, 26253, 18468, 85763, 23550, 10135, 19725, 20469, 47, 1098, 113041, 6448, 33, 141, 5084, 434, 18781, 63923, 299, 191145, ...
[ 0.1251220703125, 0.09747314453125, 0.218505859375, 0.1693115234375, 0.2037353515625, 0.1534423828125, 0.003997802734375, 0.14404296875, 0.1820068359375, 0.1766357421875, 0.058837890625, 0.1031494140625, 0.238037109375, 0.27783203125, 0.15625, 0.074951171875, 0.18310546875, 0.054656...
embed
46632392_c0
46632392
elixir
0
Title: How to use arguments on nested items in my query using Absinthe in Elixir? Problem title: How to use arguments on nested items in my query using Absinthe in Elixir? Tags: elixir, phoenix-framework, absinthe, graphql Problem: How to use arguments on nested items in my query using Absinthe in Elixir? I'm trying to...
How to use arguments on nested items in my query using Absinthe in Elixir? How to use arguments on nested items in my query using Absinthe in Elixir? elixir phoenix-framework absinthe graphql Absinthe How Elixir ASC DESC Get list_of sort_order default_value Resolvers.users Enum.reduce User order_by Repo.all Repo.preloa...
[ -0.00445556640625, -0.00003886222839355469, 0.00102996826171875, -0.01422119140625, 0.0089111328125, 0.01904296875, -0.00177001953125, -0.01165771484375, -0.002410888671875, -0.03173828125, 0.01214599609375, -0.00775146484375, 0.0135498046875, 0.0311279296875, -0.00811767578125, -0.022...
[ 11249, 4527, 10750, 7, 98, 8512, 71, 55769, 41, 1294, 27174, 73, 2347, 23, 25318, 38308, 17368, 15296, 4084, 160328, 1563, 1596, 41382, 99247, 125429, 51552, 441, 5303, 4390, 12096, 80596, 114977, 27494, 8748, 7864, 223, 316, 107, 106357, ...
[ 0.039276123046875, 0.1275634765625, 0.251220703125, 0.1240234375, 0.09033203125, 0.2296142578125, 0.1143798828125, 0.17529296875, 0.1077880859375, 0.08502197265625, 0.1312255859375, 0.148193359375, 0.236328125, 0.02545166015625, 0.084228515625, 0.2469482421875, 0.05712890625, 0.022...
embed
47409283_c0
47409283
elixir
0
Title: Custom ExUnit assertions and pattern matching Problem title: Custom ExUnit assertions and pattern matching Tags: ex-unit, elixir Problem: Custom ExUnit assertions and pattern matching I'm writing a flexible, adapter-based error tracking library and provide a set of custom test assertion functions to make integra...
Custom ExUnit assertions and pattern matching Custom ExUnit assertions and pattern matching ex-unit elixir ArgumentError Custom ExUnit test_helpers.ex Asserts Example MyApp.ErrorTracker.capture_exception some_argument assert_exception_captured assert_receive exception_captured _any_exception Custom ExUnit assertions an...
[ -0.00799560546875, 0.013427734375, -0.0130615234375, 0.002105712890625, -0.00946044921875, 0.00061798095703125, -0.0115966796875, -0.00054931640625, 0.01373291015625, 0.0177001953125, 0.01318359375, -0.0111083984375, -0.005218505859375, 0.003631591796875, 0.02587890625, 0.01513671875, ...
[ 130664, 5443, 85600, 18, 10, 16865, 5256, 136, 103510, 14858, 1119, 309, 217, 15296, 38308, 112140, 18468, 3034, 73866, 1314, 3355, 1301, 33657, 89536, 2646, 39179, 5, 31611, 28542, 11050, 15644, 6644, 63928, 3060, 155937, 237, 987, 74105, ...
[ 0.2022705078125, 0.1973876953125, 0.2171630859375, 0.0802001953125, 0.050689697265625, 0.2203369140625, 0.046905517578125, 0.075439453125, 0.231689453125, 0.2373046875, 0.170166015625, 0.125, 0.012115478515625, 0.053436279296875, 0.1676025390625, 0.1378173828125, 0.049530029296875, ...
embed
48510100_c1
48510100
elixir
1
(&user_presence_topic/1) |> Enum.map(fn topic -> Phoenix.PubSub.subscribe( socket.pubsub_server, topic, fastlane: {socket.transport_pid, socket.serializer, []} ) Presence.list(topic) end) |> Enum.reduce(%{}, fn map, acc -> Map.merge(acc, map) end) end defp user_presence_topic(user_id) do "user_presence:#{user_id}" end ...
(&user_presence_topic/1) |> Enum.map(fn topic -> Phoenix.PubSub.subscribe( socket.pubsub_server, topic, fastlane: {socket.transport_pid, socket.serializer, []} ) Presence.list(topic) end) |> Enum.reduce(%{}, fn map, acc -> Map.merge(acc, map) end) end defp user_presence_topic(user_id) do "user_presence:#{user_id}" end ...
[ -0.00531005859375, 0.03662109375, -0.00051116943359375, 0.00164794921875, -0.015625, -0.006988525390625, 0.000438690185546875, 0.00531005859375, -0.00250244140625, -0.038818359375, 0.003173828125, 0.034912109375, 0.0037384033203125, 0.0267333984375, -0.0013275146484375, -0.001365661621...
[ 1230, 65918, 9518, 6620, 119499, 11583, 357, 316, 62346, 14783, 28451, 133720, 143145, 96472, 22144, 34601, 221, 27853, 111596, 39642, 4271, 32417, 991, 72903, 45226, 43048, 4383, 20703, 6562, 3564, 107, 106357, 22288, 50015, 42719, 1991, 10060...
[ 0.00006103515625, 0.152099609375, 0.189697265625, 0.1217041015625, 0.1697998046875, 0.03973388671875, 0.0487060546875, 0.1461181640625, 0.09393310546875, 0.0640869140625, 0.1531982421875, 0.21142578125, 0.119873046875, 0.2196044921875, 0.210205078125, 0.1568603515625, 0.129150390625,...
embed
55045296_c0
55045296
elixir
0
Title: Refactor Ecto transaction for efficiency using Ecto.Multi Problem title: Refactor Ecto transaction for efficiency using Ecto.Multi Tags: elixir, ecto Problem: Refactor Ecto transaction for efficiency using Ecto.Multi I have a function that assigns multiple skills to a user. The skills already exist and have a ma...
Refactor Ecto transaction for efficiency using Ecto.Multi Refactor Ecto transaction for efficiency using Ecto.Multi elixir ecto Ecto.Multi Refactor Ecto many_to_many Repo.preload Ecto.Changeset.change Ecto.Changeset.put_assoc Repo.update Enum.map Map.get Repo.all Skill p.id Enum.each Skill.create Refactor Ecto transact...
[ -0.041015625, 0.01409912109375, 0.0152587890625, 0.0086669921875, 0.002838134765625, -0.00506591796875, -0.033447265625, -0.004302978515625, 0.0283203125, -0.025390625, 0.012451171875, 0.006103515625, 0.0062255859375, 0.036865234375, -0.01190185546875, 0.00665283203125, -0.0059509277...
[ 853, 144810, 241, 44150, 124161, 100, 227066, 17368, 50657, 118, 15296, 38308, 60751, 5941, 188, 669, 771, 4692, 63033, 127008, 4188, 126, 152028, 117008, 357, 316, 5, 62346, 42719, 3794, 5584, 132829, 532, 41581, 7612, 32354, 95486, 48716, ...
[ 0.1571044921875, 0.2939453125, 0.1395263671875, 0.318359375, 0.2236328125, 0.0227813720703125, 0.2259521484375, 0.0211029052734375, 0.1934814453125, 0.2098388671875, 0.09130859375, 0.1815185546875, 0.2158203125, 0.1937255859375, 0.181884765625, 0.119384765625, 0.171875, 0.067504882...
embed
34443514_c1
34443514
elixir
1
et, @action, fn f -> %> <%= if @changeset.action do %> <div class="alert alert-danger"> <p>Oops, something went wrong! Please check the errors below:</p> <ul> <%= for {attr, message} <- f.errors do %> <li><%= humanize(attr) %> <%= message %></li> <% end %> </ul> </div> <% end %> <%= text_input f, :official_name, class:...
et, @action, fn f -> %> <%= if @changeset.action do %> <div class="alert alert-danger"> <p>Oops, something went wrong! Please check the errors below:</p> <ul> <%= for {attr, message} <- f.errors do %> <li><%= humanize(attr) %> <%= message %></li> <% end %> </ul> </div> <% end %> <%= text_input f, :official_name, class:...
[ -0.00628662109375, -0.015869140625, -0.00634765625, -0.04052734375, 0.010009765625, -0.01336669921875, -0.00799560546875, -0.01300048828125, -0.006500244140625, -0.02783203125, 0.00014019012451171875, -0.017822265625, 0.0230712890625, 0.02685546875, 0.0037078857421875, 0.00132751464843...
[ 82, 1374, 44713, 14783, 1238, 33079, 1745, 3949, 2174, 152028, 3509, 54, 30618, 110342, 549, 68818, 9844, 23409, 44691, 12765, 18499, 7, 35064, 100, 27639, 42, 26008, 5, 188800, 150, 14135, 20650, 7986, 73, 161818, 11627, 18507, 5037, 81988...
[ 0.114013671875, 0.1370849609375, 0.14111328125, 0.1295166015625, 0.15087890625, 0.04766845703125, 0.004180908203125, 0.0168609619140625, 0.100830078125, 0.1982421875, 0.1907958984375, 0.0772705078125, 0.03369140625, 0.07403564453125, 0.00250244140625, 0.1497802734375, 0.0415649414062...
embed
45447187_c0
45447187
elixir
0
Title: Add changeset to preload Problem title: Add changeset to preload Tags: phoenix-framework, elixir, ecto Problem: Add changeset to preload I am trying to add a changeset in a preloaded map in case no preload was found, but can't figure out how to insert the changeset; any idea? My changeset is printed out, but no ...
Add changeset to preload Add changeset to preload phoenix-framework elixir ecto l Add list_id Repo.get List list.id Learnit.Itemlist l.list_id Filter Item Repo.all Repo.preload Enum.map add_changeset Loop select.html Enum.count item.itemlists There Itemlist.changeset Itemlist item_id item.id IO.inspect Map.put Add chan...
[ -0.01507568359375, 0.00057220458984375, 0.01287841796875, -0.000850677490234375, 0.000850677490234375, 0.00994873046875, -0.01519775390625, -0.01904296875, -0.000522613525390625, -0.021240234375, 0.0111083984375, 0.00799560546875, 0.00016021728515625, 0.03076171875, 0.004425048828125, ...
[ 29117, 65572, 126, 47, 479, 63033, 53073, 33, 4084, 160328, 18244, 15296, 38308, 60751, 96, 5303, 532, 853, 771, 3794, 32036, 134031, 217, 2982, 6562, 128896, 78426, 5584, 4692, 357, 316, 62346, 15190, 152028, 3509, 199694, 36849, 7693, 710...
[ 0.149658203125, 0.234619140625, 0.241943359375, 0.10565185546875, 0.171142578125, 0.2408447265625, 0.06024169921875, 0.08544921875, 0.144775390625, 0.1318359375, 0.0631103515625, 0.0821533203125, 0.2113037109375, 0.2176513671875, 0.049041748046875, 0.1026611328125, 0.07928466796875, ...
embed
25194994_c0
25194994
elixir
0
Title: &#x27;handle_call&#x27; getting timed out Problem title: &#x27;handle_call&#x27; getting timed out Tags: gen-server, elixir Problem: 'handle_call' getting timed out i am calling elixir genserver from handle info function in GenServer to add phone-number getting form client. But as soon as handle_call is called o...
&#x27;handle_call&#x27; getting timed out &#x27;handle_call&#x27; getting timed out gen-server elixir #PID handle_call handle_info GenServer.call __MODULE__ ets.insert access_table Added new_state When Server Reason gen_server Elixir.Bankrecord EXIT PID gen_server.call Bankrecord 'handle_call' getting timed out i am ca...
[ -0.001800537109375, 0.019287109375, -0.0087890625, -0.00592041015625, -0.02099609375, -0.022216796875, -0.001678466796875, -0.00799560546875, -0.005828857421875, -0.041748046875, 0.0252685546875, 0.00171661376953125, -0.0025634765625, 0.0106201171875, 0.01177978515625, -0.0041809082031...
[ 3768, 79628, 85763, 20949, 1733, 71, 1810, 9226, 39642, 15296, 38308, 683, 7146, 34831, 7319, 15937, 193348, 12013, 82, 7, 5, 33657, 17203, 22819, 69819, 61340, 22687, 236267, 25318, 70323, 32271, 29426, 436, 4932, 159029, 3004, 32354, 15190,...
[ 0.058746337890625, 0.2047119140625, 0.2177734375, 0.07525634765625, 0.1986083984375, 0.10711669921875, 0.17431640625, 0.1336669921875, 0.2020263671875, 0.07916259765625, 0.224609375, 0.01068115234375, 0.0704345703125, 0.205322265625, 0.120849609375, 0.10345458984375, 0.189208984375, ...
embed
77253655_c0
77253655
elixir
0
Title: Elixir: Behaviour of Backspace in iex Problem title: Elixir: Behaviour of Backspace in iex Tags: readline, elixir, elixir-iex Problem: Elixir: Behaviour of Backspace in iex I'm using Elixir 1.15.0 with Erlang/OTP 26 on Arch Linux. I haven't configured anything; I'm just using the default setup. When I type the f...
Elixir: Behaviour of Backspace in iex Elixir: Behaviour of Backspace in iex readline elixir elixir-iex Elixir Behaviour Backspace TERM xterm-256color Elixir: Behaviour of Backspace in iex I'm using Elixir 1.15.0 with Erlang/OTP 26 on Arch Linux. I haven't configured anything; I'm just using the default setup. When I ty...
[ 0.0014495849609375, 0.03662109375, 0.0013885498046875, 0.01348876953125, -0.0023651123046875, -0.000286102294921875, 0.025390625, 0.00604248046875, 0.00897216796875, -0.010986328125, 0.0057373046875, 0.0208740234375, -0.0020599365234375, 0.01422119140625, -0.005157470703125, 0.02709960...
[ 25318, 38308, 98409, 34639, 26828, 65421, 17, 3355, 12, 111, 23, 12301, 2256, 15296, 14, 173724, 32166, 127892, 46133, 17368, 38245, 187461, 1004, 3066, 23658, 1381, 63590, 29908, 222495, 114977, 169581, 10644, 18151, 87, 19279, 24234, 152470, ...
[ 0.1104736328125, 0.258056640625, 0.115966796875, 0.0113525390625, 0.1749267578125, 0.272216796875, 0.1134033203125, 0.2025146484375, 0.0204315185546875, 0.0064697265625, 0.034820556640625, 0.03997802734375, 0.0906982421875, 0.06121826171875, 0.056304931640625, 0.1668701171875, 0.2369...
embed
28506589_c0
28506589
elixir
0
Title: Default datetime with Ecto &amp; Elixir Problem title: Default datetime with Ecto &amp; Elixir Tags: ecto, elixir, postgresql Problem: Default datetime with Ecto & Elixir I've just started working Elixir & Phoenix today, i am trying to add Ecto as a mapper, but i'm having some trouble using time. This is my mode...
Default datetime with Ecto &amp; Elixir Default datetime with Ecto &amp; Elixir ecto elixir postgresql ArgumentError Default Ecto Elixir created_at Ecto.DateTime.local updated_at Compilation user.ex Ecto.DateTime schema.ex:687 Ecto.Schema.check_default schema.ex:522 Ecto.Schema.__field__ board.ex:9 erl_eval.erl:657 erl...
[ 0.005889892578125, 0.0101318359375, 0.0086669921875, -0.003936767578125, 0.00139617919921875, -0.006744384765625, -0.0245361328125, -0.00037384033203125, -0.005401611328125, -0.06494140625, -0.00146484375, 0.002960205078125, 0.025390625, 0.03271484375, -0.0024871826171875, -0.006561279...
[ 262, 1021, 7136, 5622, 6032, 678, 241, 44150, 25133, 25318, 38308, 60751, 15296, 1305, 17562, 99247, 112140, 18468, 31611, 75935, 257, 86291, 70059, 98908, 150011, 15612, 14, 38937, 3355, 61903, 180348, 25452, 78292, 214810, 33915, 304, 11883, ...
[ 0.1365966796875, 0.2281494140625, 0.1129150390625, 0.1434326171875, 0.2220458984375, 0.115966796875, 0.112548828125, 0.27978515625, 0.0692138671875, 0.1246337890625, 0.2607421875, 0.18408203125, 0.0738525390625, 0.010040283203125, 0.1312255859375, 0.15576171875, 0.2056884765625, 0....
embed
35007364_c1
35007364
elixir
1
hoenix.HTML' <<"/home/me/lartbot/rel/lartbot/lib/phoenix_html-2.3.0/ebin/Elixir.Phoenix.HTML.beam">> ===> Missing beam file 'Elixir.Poison' <<"/home/me/lartbot/rel/lartbot/lib/poison-1.5.0/ebin/Elixir.Poison.beam">> ===> Missing beam file 'Elixir.Plug' <<"/home/me/lartbot/rel/lartbot/lib/plug-1.0.3/ebin/Elixir.Plug.bea...
hoenix.HTML' <<"/home/me/lartbot/rel/lartbot/lib/phoenix_html-2.3.0/ebin/Elixir.Phoenix.HTML.beam">> ===> Missing beam file 'Elixir.Poison' <<"/home/me/lartbot/rel/lartbot/lib/poison-1.5.0/ebin/Elixir.Poison.beam">> ===> Missing beam file 'Elixir.Plug' <<"/home/me/lartbot/rel/lartbot/lib/plug-1.0.3/ebin/Elixir.Plug.bea...
[ 0.0031280517578125, 0.001617431640625, -0.0017242431640625, -0.00384521484375, -0.0009307861328125, 0.01416015625, -0.01287841796875, -0.0301513671875, 0.0213623046875, -0.0027008056640625, -0.01361083984375, -0.0155029296875, 0.0260009765625, 0.0147705078125, 0.0250244140625, -0.01794...
[ 739, 33, 4084, 127068, 29552, 282, 320, 18, 9190, 7962, 5612, 22014, 7693, 5428, 132265, 7568, 150, 38308, 497, 372, 302, 16771, 214, 186, 11435, 647, 5, 7192, 40514, 120178, 187461, 13, 35159, 145301, 102107, 594, 121254, 26451, 32944, 1...
[ 0.1036376953125, 0.1273193359375, 0.1947021484375, 0.261962890625, 0.096923828125, 0.09600830078125, 0.0904541015625, 0.081787109375, 0.197998046875, 0.06695556640625, 0.126708984375, 0.0816650390625, 0.19189453125, 0.0277862548828125, 0.15380859375, 0.1534423828125, 0.1065673828125,...
embed
22238677_c0
22238677
elixir
0
Title: Why does this recurring function fire twice per input? Problem title: Why does this recurring function fire twice per input? Tags: range, elixir, recursion Problem: Why does this recurring function fire twice per input? When executing: def guess(a..b) do IO.puts "In rn = #{a}..#{b}" guess(a..b, IO.getn("Is it gr...
Why does this recurring function fire twice per input? Why does this recurring function fire twice per input? range elixir recursion Why a..b IO.puts IO.getn String.upcase a..div Test.guess Why does this recurring function fire twice per input? When executing: Results: iex did not wait for user input on lines 4, 8, & 1...
[ -0.0225830078125, -0.00701904296875, 0.0135498046875, 0.006866455078125, 0.0024566650390625, 0.0184326171875, 0.006011962890625, -0.0213623046875, 0.006500244140625, -0.000396728515625, 0.00714111328125, 0.02001953125, -0.005279541015625, 0.004241943359375, 0.034912109375, 0.0006179809...
[ 44084, 14602, 903, 456, 64240, 214, 32354, 11476, 186351, 117, 107730, 37457, 15296, 38308, 195625, 1830, 10, 275, 17780, 7077, 3794, 19, 23351, 2037, 58437, 30618, 8647, 21325, 71924, 146104, 17, 3355, 959, 40485, 100, 38937, 98, 124519, 2...
[ 0.1470947265625, 0.09814453125, 0.09039306640625, 0.0947265625, 0.251708984375, 0.02862548828125, 0.1939697265625, 0.2216796875, 0.271484375, 0.1590576171875, 0.252685546875, 0.1839599609375, 0.10546875, 0.2222900390625, 0.227294921875, 0.053955078125, 0.021575927734375, 0.05371093...
embed
76357621_c0
76357621
elixir
0
Title: Authenticity error when trying to install Rebar Problem title: Authenticity error when trying to install Rebar Tags: elixir, rebar, rebar3, elixir-mix Problem: Authenticity error when trying to install Rebar I'm using Elixir 1.8.1 and am now seeing this error under our Gitlab CI: * creating /root/.mix/archives/h...
Authenticity error when trying to install Rebar Authenticity error when trying to install Rebar elixir rebar rebar3 elixir-mix Authenticity Rebar hex-2.0.6 Mix Could repo.hex.pm rebar3-1.x.csv You public_keys.html rebar3 Authenticity error when trying to install Rebar I'm using Elixir 1.8.1 and am now seeing this error...
[ 0.00439453125, 0.009765625, 0.01312255859375, 0.0048828125, -0.00127410888671875, -0.01202392578125, -0.0101318359375, -0.00070953369140625, 0.004364013671875, 0.027587890625, 0.01953125, -0.0206298828125, 0.0072021484375, 0.017578125, -0.0186767578125, 0.0157470703125, -0.0183105468...
[ 52236, 63250, 60089, 18499, 31577, 20600, 853, 1299, 15296, 38308, 456, 363, 62015, 764, 425, 5428, 122887, 37286, 191147, 93392, 1106, 26822, 158518, 5, 4439, 334, 3835, 19770, 7, 7693, 17368, 25318, 615, 206730, 136, 5036, 903, 1379, 2446...
[ 0.164794921875, 0.22216796875, 0.134033203125, 0.19287109375, 0.10015869140625, 0.1802978515625, 0.144775390625, 0.276123046875, 0.0753173828125, 0.262451171875, 0.1259765625, 0.2044677734375, 0.1688232421875, 0.1273193359375, 0.138916015625, 0.03985595703125, 0.1749267578125, 0.15...
embed
53740867_c0
53740867
elixir
0
Title: Correlation and causation ID in Commanded Problem title: Correlation and causation ID in Commanded Tags: event-sourcing, events, elixir, cqrs, commanded Problem: Correlation and causation ID in Commanded Greg Young, author of Event Store , defined a while ago the correlation ID to reference the root cause and th...
Correlation and causation ID in Commanded Correlation and causation ID in Commanded event-sourcing events elixir cqrs commanded Correlation Commanded Correlation and causation ID in Commanded Greg Young, author of Event Store , defined a while ago the correlation ID to reference the root cause and the causation ID to r...
[ 0.008544921875, -0.005767822265625, -0.01007080078125, 0.01068115234375, 0.0072021484375, 0.0091552734375, 0.005157470703125, 0.01348876953125, -0.000400543212890625, -0.0264892578125, -0.006988525390625, 0.025634765625, -0.0152587890625, 0.0242919921875, -0.0062255859375, 0.0050964355...
[ 46348, 57860, 136, 7278, 1363, 11338, 23, 123573, 297, 19732, 176595, 47353, 15296, 38308, 864, 4295, 47749, 71, 119587, 44389, 42179, 36943, 14934, 61924, 16106, 91067, 74855, 22304, 8951, 26008, 5608, 19048, 7413, 1632, 15700, 57553, 3789, ...
[ 0.2117919921875, 0.208251953125, 0.06597900390625, 0.2342529296875, 0.1053466796875, 0.2452392578125, 0.0631103515625, 0.275634765625, 0.171630859375, 0.1878662109375, 0.17578125, 0.1424560546875, 0.0357666015625, 0.1451416015625, 0.03533935546875, 0.07568359375, 0.2315673828125, 0...
embed
31679443_c0
31679443
elixir
0
Title: mocking in phoenix framework Problem title: mocking in phoenix framework Tags: elixir, phoenix-framework Problem: mocking in phoenix framework I am using mock in my phoenix project to test the interaction between a controller and the repo. I wrote this test in my controller: test_with_mock "list all entries on i...
mocking in phoenix framework mocking in phoenix framework elixir phoenix-framework test_with_mock Repo board_column_path Repo.all Column c.board_id html_response Listing board_id index.html SimpleBoard.ColumnControllerTest column_controller_test.exs:17 Expected column_controller_test.exs:20 mocking in phoenix framework...
[ -0.026611328125, -0.0250244140625, 0.002227783203125, 0.0184326171875, 0.0166015625, -0.00274658203125, 0.00823974609375, -0.0037994384765625, 0.0037841796875, -0.02197265625, -0.0113525390625, 0.000579833984375, -0.0167236328125, 0.01519775390625, -0.009033203125, -0.0025482177734375,...
[ 931, 41324, 23, 53073, 33, 4084, 170846, 15296, 38308, 160328, 18244, 3034, 76228, 432, 2594, 853, 771, 45443, 8447, 316, 128405, 5584, 233987, 24351, 7693, 134719, 32036, 63262, 60552, 12647, 5861, 78457, 175904, 603, 111337, 3365, 81988, 69...
[ 0.189697265625, 0.1824951171875, 0.0709228515625, 0.07080078125, 0.1207275390625, 0.1409912109375, 0.2279052734375, 0.006134033203125, 0.158935546875, 0.08447265625, 0.0794677734375, 0.2110595703125, 0.0465087890625, 0.14306640625, 0.186767578125, 0.07403564453125, 0.1309814453125, ...
embed
38119049_c0
38119049
elixir
0
Title: Erlang remote code loading via erl_boot_server not working Problem title: Erlang remote code loading via erl_boot_server not working Tags: elixir, erlang Problem: Erlang remote code loading via erl_boot_server not working I'm testing erlang remote code loading via -loader inet option without the slave option. Tw...
Erlang remote code loading via erl_boot_server not working Erlang remote code loading via erl_boot_server not working elixir erlang Erlang erl_boot_server abc123 erl_boot_server.start PID Code.ensure_loaded MyModule erl_prim_loader Erlang remote code loading via erl_boot_server not working I'm testing erlang remote cod...
[ 0.00823974609375, 0.01251220703125, -0.004302978515625, 0.00084686279296875, -0.00775146484375, 0.0022430419921875, 0.00335693359375, 0.006439208984375, 0.00335693359375, -0.033203125, 0.0147705078125, -0.03369140625, 0.01116943359375, -0.0038604736328125, 0.004547119140625, -0.0151367...
[ 1004, 3066, 148814, 18151, 72367, 72, 141, 80765, 39642, 959, 20697, 1829, 15296, 38308, 48636, 17137, 436, 7146, 28864, 56851, 63033, 2646, 91616, 8782, 35188, 134234, 126, 35829, 94859, 32964, 352, 129073, 40777, 5701, 16530, 31347, 51042, ...
[ 0.1490478515625, 0.257568359375, 0.2171630859375, 0.180419921875, 0.142578125, 0.0921630859375, 0.1678466796875, 0.1448974609375, 0.1484375, 0.0518798828125, 0.13525390625, 0.01055908203125, 0.0777587890625, 0.174072265625, 0.12255859375, 0.031036376953125, 0.0037841796875, 0.08532...
embed
39337301_c0
39337301
elixir
0
Title: phoenix, upload image, controller Problem title: phoenix, upload image, controller Tags: phoenix-framework, elixir Problem: phoenix, upload image, controller I began to study the phoenix, trying to make the attachment of images to the post and the load on Amazon s3. Made model, use this article http://learningel...
phoenix, upload image, controller phoenix, upload image, controller phoenix-framework elixir Ecto.CastError POST Processing Blog.PostController.create Parameters _csrf_token DkM9WAdYfxQ dS0qQjU FBILIic NgAAaqE2D6FDOMICwTlVGaxnUQ _utf8 Plug.Upload content_type basilico.jpg plug-1473 multipart-108288-12435-6 Pipelines QU...
[ -0.0036163330078125, -0.0113525390625, -0.002532958984375, 0.0023193359375, 0.003509521484375, 0.018310546875, 0.002105712890625, -0.0194091796875, -0.006927490234375, -0.0205078125, -0.0067138671875, 0.01116943359375, -0.0081787109375, 0.0004138946533203125, 0.00390625, -0.00903320312...
[ 53073, 33, 4084, 4, 70622, 29569, 185373, 160328, 18244, 15296, 38308, 241, 44150, 174830, 18468, 31611, 81903, 123996, 5061, 49411, 175904, 603, 7612, 2182, 1720, 29089, 7, 22206, 454, 6448, 52190, 1126, 11217, 71, 1723, 420, 425, 2737, 29...
[ 0.13134765625, 0.17431640625, 0.2000732421875, 0.0153350830078125, 0.229248046875, 0.224365234375, 0.295166015625, 0.116943359375, 0.0902099609375, 0.09527587890625, 0.20751953125, 0.06634521484375, 0.235595703125, 0.1246337890625, 0.170166015625, 0.134033203125, 0.1536865234375, 0...
embed
27688940_c0
27688940
elixir
0
Title: Executing a basic shell command in Elixir Problem title: Executing a basic shell command in Elixir Tags: erlang, elixir Problem: Executing a basic shell command in Elixir At a very early stage of learning the language, and working through the ElixirSips series of videos. I keep hitting stuff that's been slightly...
Executing a basic shell command in Elixir Executing a basic shell command in Elixir erlang elixir FunctionClauseError Executing Elixir QuickieSynth.Sound System.cmd os.cmd os.validate Executing a basic shell command in Elixir At a very early stage of learning the language, and working through the ElixirSips series of v...
[ -0.00927734375, 0.00860595703125, -0.0123291015625, 0.0361328125, 0.0091552734375, 0.01708984375, -0.01031494140625, -0.02392578125, -0.00787353515625, -0.0269775390625, -0.0050048828125, 0.01171875, -0.00592041015625, 0.0145263671875, -0.0128173828125, 0.005859375, -0.0247802734375,...
[ 211603, 62822, 128019, 75101, 25318, 38308, 72, 3066, 15296, 28670, 26253, 18468, 31611, 89038, 478, 3371, 927, 8912, 7030, 12353, 3931, 362, 7013, 17489, 46876, 294, 49380, 21930, 65572, 1815, 32102, 31089, 28560, 13055, 1152, 88996, 11675, ...
[ 0.1307373046875, 0.1539306640625, 0.233154296875, 0.189453125, 0.109375, 0.2392578125, 0.053985595703125, 0.2169189453125, 0.0677490234375, 0.07598876953125, 0.0855712890625, 0.105712890625, 0.1060791015625, 0.074951171875, 0.08392333984375, 0.061798095703125, 0.1148681640625, 0.02...
embed
44184633_c0
44184633
elixir
0
Title: Phoenix / Elixir usage of cores, Cant max them Problem title: Phoenix / Elixir usage of cores, Cant max them Tags: phoenix-framework, parallel-processing, elixir, erlang Problem: Phoenix / Elixir usage of cores, Cant max them I have created a simple function that should broadcast random messages to a channel. I'...
Phoenix / Elixir usage of cores, Cant max them Phoenix / Elixir usage of cores, Cant max them phoenix-framework parallel-processing elixir erlang Phoenix Elixir Cant Example sample_text Enum.take_random MyApp.Endpoint.broadcast message:new Enum.at Enum.flat_map timer.tc Enum.each max-1 Erlang OTP erts-8.3 smp:8:8 async...
[ -0.0057373046875, 0.00567626953125, -0.01214599609375, 0.003997802734375, -0.00885009765625, -0.0076904296875, -0.0022735595703125, -0.0159912109375, -0.00811767578125, -0.06396484375, 0.00262451171875, 0.007720947265625, 0.0107421875, 0.0257568359375, 0.019287109375, -0.00028610229492...
[ 133720, 248, 25318, 38308, 127689, 111, 48052, 4171, 18, 18389, 2856, 53073, 33, 4084, 160328, 95103, 63923, 15296, 72, 3066, 89536, 121413, 22829, 357, 316, 78219, 46258, 2646, 39179, 152378, 38496, 6369, 55741, 26008, 150632, 62346, 21991, ...
[ 0.27734375, 0.08978271484375, 0.12890625, 0.2454833984375, 0.171875, 0.03662109375, 0.20654296875, 0.1549072265625, 0.081298828125, 0.214111328125, 0.09381103515625, 0.0572509765625, 0.10223388671875, 0.140869140625, 0.0394287109375, 0.1270751953125, 0.06829833984375, 0.07006835937...
embed
72300671_c0
72300671
elixir
0
Title: Convert CSV headers &amp; values to maps and rest to list of maps Elixir Problem title: Convert CSV headers &amp; values to maps and rest to list of maps Elixir Tags: elixir Problem: Convert CSV headers & values to maps and rest to list of maps Elixir I have CSV file as revenue,currency,date,random1,random2,rand...
Convert CSV headers &amp; values to maps and rest to list of maps Elixir Convert CSV headers &amp; values to maps and rest to list of maps Elixir elixir Convert CSV Elixir random1 random2 random3 download.csv File.stream NimbleCSV.RFC4180.parse_stream skip_headers Stream.transform Enum.zip Enum.into Enum.to_list any_da...
[ -0.0213623046875, -0.004058837890625, -0.00494384765625, -0.005767822265625, 0.00250244140625, 0.0028839111328125, -0.0242919921875, 0.01165771484375, 0.013916015625, 0.00518798828125, -0.0302734375, 0.00677490234375, -0.003204345703125, 0.03515625, 0.01220703125, -0.003265380859375, ...
[ 1657, 11549, 313, 43486, 10336, 1314, 619, 25133, 142424, 47, 22288, 136, 10588, 5303, 111, 25318, 38308, 15296, 96759, 418, 363, 7026, 4439, 334, 42724, 86429, 1520, 40099, 19283, 856, 54612, 617, 39425, 2500, 21658, 31251, 115061, 215175, ...
[ 0.07470703125, 0.17626953125, 0.0968017578125, 0.296630859375, 0.216552734375, 0.155517578125, 0.06927490234375, 0.03558349609375, 0.1661376953125, 0.10205078125, 0.198486328125, 0.0161590576171875, 0.19482421875, 0.1707763671875, 0.09716796875, 0.1326904296875, 0.2457275390625, 0....
embed
52799805_c1
52799805
elixir
1
and allows following values: * `:built` - the struct was constructed in memory and is not persisted to database yet; * `:loaded` - the struct was loaded from database and represents persisted data; * `:deleted` - the struct was deleted and no longer represents persisted data. ## Source The `:source` tracks the (table ...
and allows following values: * `:built` - the struct was constructed in memory and is not persisted to database yet; * `:loaded` - the struct was loaded from database and represents persisted data; * `:deleted` - the struct was deleted and no longer represents persisted data. ## Source The `:source` tracks the (table ...
[ -0.005157470703125, 0.0211181640625, 0.017578125, -0.000659942626953125, -0.0081787109375, -0.00958251953125, -0.0037841796875, 0.00138092041015625, 0.01336669921875, -0.0031280517578125, 0.01458740234375, 0.005401611328125, -0.002655029296875, 0.0013427734375, -0.0111083984375, 0.0194...
[ 136, 114864, 25632, 142424, 12, 978, 24908, 36716, 64549, 98323, 959, 70560, 63399, 14373, 63033, 72367, 33636, 2053, 8520, 154109, 51713, 173894, 77641, 60427, 28560, 22819, 42486, 1914, 55923, 69182, 31344, 183114, 132096, 22829, 2271, 44457, ...
[ 0.1075439453125, 0.22705078125, 0.1160888671875, 0.2337646484375, 0.0819091796875, 0.14111328125, 0.18310546875, 0.2337646484375, 0.12255859375, 0.1544189453125, 0.036346435546875, 0.1612548828125, 0.1546630859375, 0.040863037109375, 0.1107177734375, 0.105712890625, 0.1663818359375, ...
embed
61954834_c0
61954834
elixir
0
Title: Elixir waiting until any of multiple concurrent tasks completes Problem title: Elixir waiting until any of multiple concurrent tasks completes Tags: async-await, asynchronous, elixir Problem: Elixir waiting until any of multiple concurrent tasks completes I have a function that posts some data over http to a hos...
Elixir waiting until any of multiple concurrent tasks completes Elixir waiting until any of multiple concurrent tasks completes async-await asynchronous elixir Elixir Task.async host1 host2 host3 Enum.map MyModule post_data Task.yield_many Task.yield_any Elixir waiting until any of multiple concurrent tasks completes I...
[ 0.01068115234375, 0.0026092529296875, 0.006256103515625, -0.0050048828125, 0.00830078125, -0.0098876953125, 0.010009765625, -0.01416015625, 0.00616455078125, -0.02685546875, 0.015869140625, -0.0004405975341796875, -0.00023174285888671875, 0.0029144287109375, 0.02734375, 0.01220703125, ...
[ 25318, 38308, 89289, 24189, 2499, 48716, 133244, 66211, 28484, 12654, 7978, 217, 101966, 15296, 9598, 92, 27980, 316, 62346, 91616, 1305, 10135, 2387, 19388, 669, 4848, 32354, 32323, 2053, 1621, 30646, 685, 188800, 370, 8705, 57553, 28282, 18...
[ 0.144287109375, 0.2568359375, 0.2139892578125, 0.1038818359375, 0.061767578125, 0.1802978515625, 0.216552734375, 0.2054443359375, 0.152099609375, 0.1427001953125, 0.1451416015625, 0.049652099609375, 0.077392578125, 0.09332275390625, 0.1583251953125, 0.0369873046875, 0.1239013671875, ...
embed
62490878_c0
62490878
elixir
0
Title: Wrap a function and wrap it to a closure by passing modulename into a function Problem title: Wrap a function and wrap it to a closure by passing modulename into a function Tags: elixir Problem: Wrap a function and wrap it to a closure by passing modulename into a function Hi I want to make my function more modu...
Wrap a function and wrap it to a closure by passing modulename into a function Wrap a function and wrap it to a closure by passing modulename into a function elixir p Wrap get_all_perfume_by_name_con_sex Fumigate.Fragrance.PerfumeCompanyJoin p.id j.perfume_id perfume_name j.company_id get_all_perfume_by_name_con_sex_mo...
[ 0.008544921875, -0.00189971923828125, -0.0034332275390625, 0.0166015625, 0.0004711151123046875, 0.00439453125, -0.0201416015625, -0.000965118408203125, 0.0069580078125, -0.044921875, -0.00506591796875, 0.0238037109375, -0.01226806640625, 0.0010528564453125, 0.000667572021484375, 0.0073...
[ 601, 13631, 10, 32354, 136, 137565, 442, 47, 170224, 452, 88996, 11627, 3934, 15296, 38308, 915, 2046, 5584, 1264, 35502, 1272, 2271, 13802, 7680, 78368, 67, 108386, 30962, 108161, 16604, 532, 1647, 173487, 146365, 83279, 3444, 3249, 1286, ...
[ 0.00958251953125, 0.25244140625, 0.056121826171875, 0.261962890625, 0.04644775390625, 0.2142333984375, 0.00982666015625, 0.123291015625, 0.2294921875, 0.06695556640625, 0.2447509765625, 0.197998046875, 0.1444091796875, 0.070556640625, 0.1973876953125, 0.088623046875, 0.060791015625, ...
embed
64791637_c0
64791637
elixir
0
Title: How do I prevent my Elixir pod in Kubernetes from getting taken down while I have in flight HTTP requests Problem title: How do I prevent my Elixir pod in Kubernetes from getting taken down while I have in flight HTTP requests Tags: elixir, google-kubernetes-engine, kubernetes, phoenix-framework Problem: How do ...
How do I prevent my Elixir pod in Kubernetes from getting taken down while I have in flight HTTP requests How do I prevent my Elixir pod in Kubernetes from getting taken down while I have in flight HTTP requests elixir google-kubernetes-engine kubernetes phoenix-framework getting How Elixir Kubernetes HTTP How do I pre...
[ 0.0167236328125, 0.031982421875, 0.0145263671875, -0.04150390625, -0.0034942626953125, -0.0035552978515625, -0.004638671875, -0.0020904541015625, 0.003204345703125, 0.0023193359375, 0.0184326171875, -0.010009765625, 0.00168609619140625, 0.026123046875, 0.00537109375, -0.00482177734375,...
[ 11249, 56282, 25318, 38308, 855, 96305, 3196, 1636, 1295, 39958, 7565, 12960, 23, 113014, 135913, 50336, 54, 759, 20949, 15296, 26484, 319, 46690, 30621, 128897, 228, 53073, 33, 4084, 160328, 81997, 3564, 38496, 133720, 4027, 1733, 6056, 7642...
[ 0.0584716796875, 0.228759765625, 0.1434326171875, 0.2626953125, 0.258544921875, 0.1484375, 0.1484375, 0.14013671875, 0.0887451171875, 0.07427978515625, 0.15283203125, 0.0772705078125, 0.0640869140625, 0.1866455078125, 0.2218017578125, 0.161376953125, 0.0023193359375, 0.027801513671...
embed
50290550_c0
50290550
elixir
0
Title: On conflict not updating back to default values Problem title: On conflict not updating back to default values Tags: ecto, elixir, upsert, insert, postgresql Problem: On conflict not updating back to default values I have a users table like this create table(:users) do add(:email, :citext) add(:email_confirmatio...
On conflict not updating back to default values On conflict not updating back to default values ecto elixir upsert insert postgresql email_confirmation_token email_confirmed_at utc_datetime deleted_at User ExApi.Utils.Random.string tanweer.shahzaad gmail.com User.changeset ExApi.Repo.insert on_conflict replace_all conf...
[ -0.01953125, 0.004486083984375, 0.0098876953125, -0.0031585693359375, -0.00982666015625, -0.004913330078125, -0.01483154296875, -0.0098876953125, -0.0087890625, 0.0118408203125, -0.0087890625, 0.015380859375, 0.003936767578125, 0.04150390625, 0.0146484375, -0.003082275390625, -0.0161...
[ 2161, 79612, 959, 1257, 56464, 4420, 47, 114977, 142424, 60751, 15296, 38308, 33657, 183540, 1305, 17562, 99247, 3340, 23044, 6448, 38949, 257, 486, 6032, 154109, 53400, 5443, 284, 1434, 106742, 7870, 126525, 3815, 91693, 2197, 66103, 115512, ...
[ 0.2098388671875, 0.287353515625, 0.109375, 0.1156005859375, 0.1865234375, 0.1334228515625, 0.1094970703125, 0.2049560546875, 0.1822509765625, 0.1773681640625, 0.0693359375, 0.180419921875, 0.162109375, 0.198486328125, 0.0216522216796875, 0.1138916015625, 0.1202392578125, 0.09411621...
embed
78799882_c1
78799882
elixir
1
: #include <stdio.h> #include <unistd.h> typedef unsigned char byte; int read_exact(byte *buf, int len) { int i, got = 0; do { if ((i = read(0, buf + got, len - got)) <= 0) { return (i); } got += i; } while (got < len); return (len); } int write_exact(byte *buf, int len) { int i, wrote = 0; do { if ((i = write(1, buf +...
: #include <stdio.h> #include <unistd.h> typedef unsigned char byte; int read_exact(byte *buf, int len) { int i, got = 0; do { if ((i = read(0, buf + got, len - got)) <= 0) { return (i); } got += i; } while (got < len); return (len); } int write_exact(byte *buf, int len) { int i, wrote = 0; do { if ((i = write(1, buf +...
[ -0.004669189453125, 0.002349853515625, -0.007080078125, -0.00799560546875, 0.01385498046875, -0.0225830078125, -0.015869140625, -0.01556396484375, 0.0159912109375, -0.011474609375, 0.030517578125, -0.00119781494140625, 0.0096435546875, 0.007049560546875, 0.0125732421875, -0.01416015625...
[ 217028, 271, 5670, 127, 309, 1419, 71, 10644, 112, 51, 31304, 21441, 390, 67, 23, 18, 12301, 3355, 47013, 61028, 978, 420, 3098, 17, 4163, 757, 14, 2389, 373, 30646, 997, 9904, 1977, 33022, 54397, 3931, 400, 65034, 4902, 106, 45367, 3...
[ 0.26611328125, 0.06671142578125, 0.1883544921875, 0.1412353515625, 0.07421875, 0.057403564453125, 0.092529296875, 0.109130859375, 0.10516357421875, 0.01959228515625, 0.1524658203125, 0.123291015625, 0.092041015625, 0.05609130859375, 0.0423583984375, 0.044281005859375, 0.1785888671875...
embed
39243409_c1
39243409
elixir
1
�� W�u]7W�u]7�� �2�̎TY"��C Now, i want to try to get the same thing with Elixir. test "request headers from cam" do options = [hackney: [basic_auth: {"login","password"}]] {:ok, %HTTPoison.AsyncResponse{id: id}} = HTTPoison.get "http://x.x.x.x/axis-cgi/mjpg/video.cgi?duration=1&resolution=320x240",[], [stream_to: self,...
�� W�u]7W�u]7�� �2�̎TY"��C Now, i want to try to get the same thing with Elixir. test "request headers from cam" do options = [hackney: [basic_auth: {"login","password"}]] {:ok, %HTTPoison.AsyncResponse{id: id}} = HTTPoison.get "http://x.x.x.x/axis-cgi/mjpg/video.cgi?duration=1&resolution=320x240",[], [stream_to: self,...
[ -0.011962890625, 0.006011962890625, -0.01348876953125, 0.00445556640625, 0.0169677734375, -0.0130615234375, 0.000537872314453125, 0.0002994537353515625, -0.0052490234375, -0.0174560546875, 0.004791259765625, 0.02490234375, -0.0213623046875, 0.0155029296875, 0.00787353515625, -0.0127563...
[ 601, 1456, 966, 116, 95267, 313, 14240, 3444, 9790, 2046, 5701, 13580, 678, 25318, 38308, 3034, 107, 75616, 10336, 1314, 1295, 7384, 50717, 139509, 10186, 402, 27744, 916, 4867, 73, 47416, 685, 18544, 31, 40514, 12654, 94399, 135913, 3794, ...
[ 0.004241943359375, 0.00927734375, 0.036834716796875, 0.058929443359375, 0.07122802734375, 0.0048828125, 0.001190185546875, 0.07452392578125, 0.09698486328125, 0.0615234375, 0.0701904296875, 0.0290374755859375, 0.0236053466796875, 0.142822265625, 0.2744140625, 0.208984375, 0.040222167...
embed
59757167_c0
59757167
elixir
0
Title: Elixir compiler warning on ignored function return values Problem title: Elixir compiler warning on ignored function return values Tags: elixir, static-analysis Problem: Elixir compiler warning on ignored function return values Is there a way to get a warning—either from the elixirc compiler, Credo, or some othe...
Elixir compiler warning on ignored function return values Elixir compiler warning on ignored function return values elixir static-analysis Elixir increment_state CountingServer GenServer timer.send_interval handle_info count_state IO.puts prev_count Elixir compiler warning on ignored function return values Is there a w...
[ 0.005584716796875, -0.01531982421875, 0.0078125, -0.004119873046875, -0.012939453125, 0.000492095947265625, -0.02099609375, -0.0244140625, -0.006195068359375, -0.005889892578125, -0.0169677734375, -0.01043701171875, 0.00360107421875, 0.03515625, 0.025390625, -0.002105712890625, -0.01...
[ 25318, 38308, 9969, 34759, 1631, 592, 124962, 71, 32354, 30646, 142424, 15296, 201939, 174976, 158661, 61340, 1311, 128396, 193348, 15937, 21991, 10433, 1405, 34831, 7319, 54529, 17780, 28468, 71013, 3917, 2046, 88, 38365, 19437, 171070, 11508, ...
[ 0.1171875, 0.1981201171875, 0.1328125, 0.143310546875, 0.18994140625, 0.12255859375, 0.204833984375, 0.090087890625, 0.183837890625, 0.222900390625, 0.15380859375, 0.044403076171875, 0.08746337890625, 0.084228515625, 0.1904296875, 0.135498046875, 0.03033447265625, 0.03851318359375,...
embed
45131977_c0
45131977
elixir
0
Title: Phoenix simple auth testing logged in user Problem title: Phoenix simple auth testing logged in user Tags: phoenix-framework, authentication, elixir, ex-unit Problem: Phoenix simple auth testing logged in user From this Simple authentication tutorial I am looking to test routes of the app inside the :login_requi...
Phoenix simple auth testing logged in user Phoenix simple auth testing logged in user phoenix-framework authentication elixir ex-unit Phoenix login_required Guardian.Plug.sign_in user_path Auth.login_by_email_and_pass user.email user.id fetch_session bypass_through with_session Phoenix simple auth testing logged in use...
[ -0.007232666015625, 0.0042724609375, 0.01043701171875, -0.006378173828125, 0.00897216796875, -0.0181884765625, -0.01519775390625, -0.01611328125, 0.00921630859375, -0.05078125, 0.0042724609375, 0.01953125, -0.0224609375, 0.02294921875, 0.00543212890625, -0.009765625, -0.008056640625,...
[ 133720, 8781, 531, 927, 134234, 73088, 23, 38937, 53073, 33, 4084, 160328, 195734, 15296, 38308, 1119, 309, 73655, 107, 3181, 81589, 35159, 31304, 73, 128405, 5655, 4867, 25501, 13409, 7647, 169234, 390, 222521, 678, 60552, 57143, 3034, 36439...
[ 0.28955078125, 0.205078125, 0.175048828125, 0.1580810546875, 0.2001953125, 0.12841796875, 0.109130859375, 0.14111328125, 0.06085205078125, 0.056488037109375, 0.09619140625, 0.035247802734375, 0.1368408203125, 0.042327880859375, 0.16357421875, 0.0565185546875, 0.0159454345703125, 0....
embed
39218769_c0
39218769
elixir
0
Title: Handling particular constraint errors in Phoenix Problem title: Handling particular constraint errors in Phoenix Tags: phoenix-framework, elixir Problem: Handling particular constraint errors in Phoenix I have a changeset with a unique constraint on one of the fields: defmodule Oauth.Shop do use Ecto.Model impor...
Handling particular constraint errors in Phoenix Handling particular constraint errors in Phoenix phoenix-framework elixir Ecto.ConstraintError Ecto.Changeset Handling Phoenix Oauth.Shop Ecto.Model access_token Changeset.validate_required unique_constraint shops_shop_index save_shop access_params Repo.insert Shop acces...
[ -0.0032806396484375, 0.01556396484375, 0.019775390625, -0.0206298828125, 0.0242919921875, -0.005218505859375, -0.01177978515625, -0.0169677734375, 0.0169677734375, -0.01519775390625, -0.022705078125, 0.006927490234375, 0.00927734375, 0.0166015625, 0.01055908203125, 0.01324462890625, ...
[ 193237, 17311, 158, 2816, 4288, 18499, 133720, 53073, 4084, 160328, 18244, 15296, 38308, 241, 44150, 11935, 18468, 127008, 4188, 126, 916, 927, 78959, 140290, 17203, 6448, 87377, 3509, 7013, 3181, 36998, 2271, 19927, 10534, 4711, 30098, 2500, ...
[ 0.1871337890625, 0.1949462890625, 0.0904541015625, 0.19384765625, 0.12939453125, 0.218505859375, 0.283447265625, 0.04058837890625, 0.09716796875, 0.0810546875, 0.005615234375, 0.052154541015625, 0.1751708984375, 0.034088134765625, 0.2208251953125, 0.04327392578125, 0.112548828125, ...
embed
46898929_c0
46898929
elixir
0
Title: How to set a proxy api token as auth on hackney through HTTPoison? Problem title: How to set a proxy api token as auth on hackney through HTTPoison? Tags: httpoison, erlang, proxy, elixir Problem: How to set a proxy api token as auth on hackney through HTTPoison? I'm having a problem authenticating on Crawlera s...
How to set a proxy api token as auth on hackney through HTTPoison? How to set a proxy api token as auth on hackney through HTTPoison? httpoison erlang proxy elixir FunctionClauseError ArgumentError How HTTPoison proxy.crawlera.com:8010 API httpbin.org HTTPoison.get proxy_auth hackney.do_connect erlang.bit_size X-Crawle...
[ -0.004302978515625, 0.0142822265625, 0.006072998046875, -0.0159912109375, -0.004608154296875, -0.0245361328125, -0.004058837890625, 0.002960205078125, 0.000583648681640625, -0.0169677734375, 0.004547119140625, 0.01409912109375, -0.0245361328125, -0.003387451171875, 0.0048828125, -0.006...
[ 11249, 5423, 502, 50878, 31470, 47, 1098, 237, 531, 927, 98, 85526, 10186, 8305, 135913, 31, 40514, 1621, 72, 3066, 15296, 38308, 28670, 26253, 18468, 31611, 112140, 15182, 434, 40455, 277, 4836, 963, 61687, 7568, 3794, 916, 135457, 3137, ...
[ 0.061004638671875, 0.181640625, 0.1585693359375, 0.2626953125, 0.2091064453125, 0.127197265625, 0.18017578125, 0.0848388671875, 0.183837890625, 0.1683349609375, 0.031158447265625, 0.1934814453125, 0.2279052734375, 0.033721923828125, 0.1845703125, 0.1463623046875, 0.240234375, 0.047...
embed
68329988_c0
68329988
elixir
0
Title: Why isn&#x27;t my ErrorView rendering in tests? Problem title: Why isn&#x27;t my ErrorView rendering in tests? Tags: phoenix-framework, elixir Problem: Why isn't my ErrorView rendering in tests? I’m currently trying to test the update function of my controller, which looks like this: def update(conn, params = %{...
Why isn&#x27;t my ErrorView rendering in tests? Why isn&#x27;t my ErrorView rendering in tests? phoenix-framework elixir Ecto.NoResultsError Why ErrorView lesson_params Map.delete Lessons.get_lesson Lesson Lessons.update_lesson LessonSerializer.to_map build_conn lesson_path Ecto.UUID.generate debug_errors Why isn't my ...
[ -0.01373291015625, 0.01055908203125, 0.0179443359375, -0.0234375, 0.016357421875, 0.00579833984375, -0.03662109375, -0.0115966796875, 0.0146484375, 0.005584716796875, 0.0120849609375, -0.000545501708984375, 0.0091552734375, -0.005706787109375, 0.0177001953125, 0.00921630859375, -0.02...
[ 44084, 56112, 3768, 18, 759, 212059, 100474, 89159, 214, 23, 109921, 53073, 33, 4084, 160328, 15296, 38308, 241, 44150, 5021, 4332, 10178, 18468, 31611, 199, 1681, 42719, 8520, 1734, 42182, 4503, 117008, 133, 51626, 52825, 62346, 2271, 128405...
[ 0.07568359375, 0.0849609375, 0.030731201171875, 0.09857177734375, 0.03851318359375, 0.226318359375, 0.293212890625, 0.1414794921875, 0.0182342529296875, 0.06903076171875, 0.21142578125, 0.0206298828125, 0.0323486328125, 0.0765380859375, 0.059478759765625, 0.0467529296875, 0.129394531...
embed
72723528_c0
72723528
elixir
0
Title: Map and Zip SQL query result to create grouped data structure Problem title: Map and Zip SQL query result to create grouped data structure Tags: elixir, ecto Problem: Map and Zip SQL query result to create grouped data structure I have a data structure from SQL.query(Repo...) as such: IO.inspect results.columns ...
Map and Zip SQL query result to create grouped data structure Map and Zip SQL query result to create grouped data structure elixir ecto Map Zip SQL SQL.query Repo IO.inspect results.columns tour_id num_shows num_cities num_festivals num_countries results.rows Enum.zip group_by Map and Zip SQL query result to create gro...
[ -0.00482177734375, 0.00015544891357421875, -0.0093994140625, 0.0201416015625, -0.03515625, -0.008544921875, -0.0289306640625, 0.0019989013671875, 0.00726318359375, 0.0025482177734375, -0.031494140625, 0.00732421875, -0.00860595703125, 0.0216064453125, -0.033447265625, 0.000751495361328...
[ 42719, 136, 162150, 80866, 41, 1294, 16750, 47, 28282, 37769, 71, 2053, 45646, 15296, 38308, 60751, 944, 853, 771, 17780, 16711, 50339, 8447, 316, 9742, 13269, 31374, 43957, 71013, 15555, 357, 50836, 21115, 1272, 1295, 4332, 6044, 5, 8561, ...
[ 0.2052001953125, 0.108154296875, 0.21044921875, 0.235595703125, 0.127197265625, 0.089599609375, 0.1529541015625, 0.027069091796875, 0.1343994140625, 0.2047119140625, 0.09075927734375, 0.1103515625, 0.2138671875, 0.0594482421875, 0.1861572265625, 0.2049560546875, 0.091796875, 0.0876...
embed
75179026_c1
75179026
elixir
1
}) do {:num, 0} end def simplify_mul({:num, 1}, e2) do e2 end def simplify_mul(e1, {:num, 1}) do e1 end def simplify_mul({:num, n1}, {:num, n2}) do {:num, n1 * n2} end But I can't get a function that does the multiplication thing mention above to work. The problem is that I don't know the syntax to use. The output from...
}) do {:num, 0} end def simplify_mul({:num, 1}, e2) do e2 end def simplify_mul(e1, {:num, 1}) do e1 end def simplify_mul({:num, n1}, {:num, n2}) do {:num, n1 * n2} end But I can't get a function that does the multiplication thing mention above to work. The problem is that I don't know the syntax to use. The output from...
[ -0.00921630859375, -0.007659912109375, 0.00543212890625, 0.01055908203125, 0.0174560546875, 0.01806640625, -0.0079345703125, -0.021484375, -0.0021820068359375, 0.00653076171875, -0.0081787109375, 0.005645751953125, 0.01019287109375, -0.01312255859375, 0.0032501220703125, -0.00095367431...
[ 51912, 54, 2606, 757, 3564, 8, 420, 112892, 18929, 15458, 106, 28, 10461, 304, 13, 653, 418, 12, 661, 831, 18, 2046, 32354, 14602, 127664, 1363, 13580, 41392, 36917, 4488, 2967, 3714, 6002, 86531, 4527, 140992, 1295, 51042, 903, 116, 16...
[ 0.05572509765625, 0.07916259765625, 0.1689453125, 0.108154296875, 0.1038818359375, 0.11865234375, 0.09051513671875, 0.1785888671875, 0.1424560546875, 0.2171630859375, 0.0243682861328125, 0.1395263671875, 0.140625, 0.13525390625, 0.1043701171875, 0.080810546875, 0.139892578125, 0.00...
embed
51952534_c0
51952534
elixir
0
Title: Elixir/Phoenix &#x27;Magic&#x27; Paths Problem title: Elixir/Phoenix &#x27;Magic&#x27; Paths Tags: elixir, phoenix-framework Problem: Elixir/Phoenix 'Magic' Paths I've recently started working with Elixir/Phonix (love it) and I would like to understand how 'Magic' paths (as I refer to them) work and which paths ...
Elixir/Phoenix &#x27;Magic&#x27; Paths Elixir/Phoenix &#x27;Magic&#x27; Paths elixir phoenix-framework Elixir Phoenix Magic Paths activity_path user_path static_path bootstrap.min.js MyWeb.HoobitzController hoobitz_path Elixir/Phoenix 'Magic' Paths I've recently started working with Elixir/Phonix (love it) and I would ...
[ 0.003173828125, 0.000675201416015625, 0.00860595703125, -0.000865936279296875, 0.0203857421875, 0.010986328125, -0.00469970703125, 0.0081787109375, 0.020263671875, -0.0289306640625, -0.0291748046875, -0.010498046875, 0.0023651123046875, 0.0166015625, -0.0216064453125, -0.012451171875, ...
[ 25318, 38308, 64, 497, 33, 4084, 3768, 54084, 1771, 108421, 15296, 53073, 160328, 133720, 61707, 103488, 128405, 38937, 201939, 49935, 107617, 1249, 28175, 2646, 30474, 11193, 3522, 24374, 175904, 603, 64214, 3137, 169, 78684, 26859, 20697, 948...
[ 0.1043701171875, 0.2412109375, 0.039337158203125, 0.061279296875, 0.1397705078125, 0.15771484375, 0.07733154296875, 0.19775390625, 0.1649169921875, 0.2744140625, 0.041259765625, 0.02398681640625, 0.06402587890625, 0.26953125, 0.1959228515625, 0.17724609375, 0.2421875, 0.11767578125...
embed
36139812_c1
36139812
elixir
1
.dispatch/2 (lets_plan) web/router.ex:1: LetsPlan.Router.do_call/2 (lets_plan) lib/lets_plan/endpoint.ex:1: LetsPlan.Endpoint.phoenix_pipeline/1 (lets_plan) lib/plug/debugger.ex:93: LetsPlan.Endpoint."call (overridable 3)"/2 (lets_plan) lib/phoenix/endpoint/render_errors.ex:34: LetsPlan.Endpoint.call/2 (plug) lib/plug/...
.dispatch/2 (lets_plan) web/router.ex:1: LetsPlan.Router.do_call/2 (lets_plan) lib/lets_plan/endpoint.ex:1: LetsPlan.Endpoint.phoenix_pipeline/1 (lets_plan) lib/plug/debugger.ex:93: LetsPlan.Endpoint."call (overridable 3)"/2 (lets_plan) lib/phoenix/endpoint/render_errors.ex:34: LetsPlan.Endpoint.call/2 (plug) lib/plug/...
[ -0.0201416015625, 0.0166015625, 0.00164031982421875, 0.007110595703125, -0.01409912109375, -0.01446533203125, -0.0038909912109375, -0.0101318359375, 0.00604248046875, -0.058349609375, -0.01171875, 0.013671875, -0.0030059814453125, 0.004638671875, 0.004638671875, 0.00872802734375, -0....
[ 5, 3827, 4453, 206, 12477, 1974, 7, 5868, 1467, 133261, 42, 3355, 10842, 78680, 12724, 25208, 246, 85763, 16, 25474, 454, 3611, 38496, 19721, 152378, 22014, 33, 4084, 1434, 26338, 86, 11583, 15, 64, 145301, 112, 978, 21407, 12, 11591, 5...
[ 0.047882080078125, 0.0947265625, 0.1868896484375, 0.194580078125, 0.29541015625, 0.208740234375, 0.1121826171875, 0.276611328125, 0.1181640625, 0.15234375, 0.0947265625, 0.03466796875, 0.172119140625, 0.264892578125, 0.062255859375, 0.15087890625, 0.007843017578125, 0.1953125, 0....
embed
41271005_c1
41271005
elixir
1
pid Supervisor.start_child AcceptorSup, [] end end So, I start a Task.Supervisor to handle clients, and that works fine. I also start a supervisor, of type simple_one_for_one to handle listeners. Each child, waits for a connection, and when given, spawns a task for client in the task supervisor and starts another chil...
pid Supervisor.start_child AcceptorSup, [] end end So, I start a Task.Supervisor to handle clients, and that works fine. I also start a supervisor, of type simple_one_for_one to handle listeners. Each child, waits for a connection, and when given, spawns a task for client in the task supervisor and starts another chil...
[ -0.0181884765625, 0.020751953125, -0.003936767578125, 0.0023040771484375, -0.000568389892578125, -0.012939453125, 0.005462646484375, 0.00168609619140625, 0.0026092529296875, -0.037353515625, 0.0021514892578125, 0.005279541015625, 0.014404296875, 0.037353515625, 0.00970458984375, -0.013...
[ 45226, 4265, 51858, 17137, 206, 38472, 111383, 748, 2037, 3564, 4034, 10, 9598, 92, 73903, 34831, 19802, 43240, 5885, 1601, 10644, 8781, 3630, 2472, 44632, 1314, 98423, 29041, 40485, 94878, 5623, 7710, 66211, 23282, 64457, 68034, 2967, 34515,...
[ 0.1923828125, 0.1544189453125, 0.2364501953125, 0.17236328125, 0.0703125, 0.1224365234375, 0.16455078125, 0.1090087890625, 0.16259765625, 0.0802001953125, 0.1343994140625, 0.0146026611328125, 0.145751953125, 0.072998046875, 0.1846923828125, 0.1405029296875, 0.2105712890625, 0.08801...
embed
77708114_c1
77708114
elixir
1
/mint_shims.erl:45:36: record 'OTPCertificate' undefined % 45| -spec pkix_verify_hostname(Cert :: #'OTPCertificate'{} | binary(), % | ^ src/mint_shims.erl:52:5: function pkix_verify_hostname/3 undefined % 52| pkix_verify_hostname(Cert, ReferenceIDs, []). % | ^ src/mint_shims.erl:114:1: Warning: function verify_hostname...
/mint_shims.erl:45:36: record 'OTPCertificate' undefined % 45| -spec pkix_verify_hostname(Cert :: #'OTPCertificate'{} | binary(), % | ^ src/mint_shims.erl:52:5: function pkix_verify_hostname/3 undefined % 52| pkix_verify_hostname(Cert, ReferenceIDs, []). % | ^ src/mint_shims.erl:114:1: Warning: function verify_hostname...
[ 0.02392578125, -0.004913330078125, 0.0157470703125, 0.008056640625, 0.00811767578125, -0.021484375, -0.007415771484375, 0.01171875, 0.004241943359375, 0.0086669921875, -0.006805419921875, -0.040283203125, 0.019775390625, -0.00439453125, -0.009033203125, 0.0191650390625, -0.0098266601...
[ 248, 54216, 3767, 4432, 56, 141, 15989, 32944, 17164, 23973, 12233, 61093, 67, 9232, 5983, 1745, 2678, 58745, 16711, 915, 301, 425, 814, 40383, 40294, 11627, 441, 2529, 2394, 6635, 19437, 33915, 32354, 18113, 7221, 215996, 7146, 129150, 197...
[ 0.04815673828125, 0.2294921875, 0.1639404296875, 0.2020263671875, 0.1385498046875, 0.1004638671875, 0.141357421875, 0.159423828125, 0.2379150390625, 0.1888427734375, 0.05316162109375, 0.2177734375, 0.1343994140625, 0.1187744140625, 0.226806640625, 0.0892333984375, 0.1927490234375, ...
embed
43567698_c0
43567698
elixir
0
Title: Phoenix file copying on Heroku Problem title: Phoenix file copying on Heroku Tags: file-permissions, heroku, phoenix-framework, elixir, chmod Problem: Phoenix file copying on Heroku I'm trying to upload images to my Phoenix app on Heroku. I have a simple app that follows the instructions for file uploading from ...
Phoenix file copying on Heroku Phoenix file copying on Heroku file-permissions heroku phoenix-framework elixir chmod Phoenix Heroku File.cp_r user_params upload.path foo.jpg u25619 Apr File.chmod ex_aws Phoenix file copying on Heroku I'm trying to upload images to my Phoenix app on Heroku. I have a simple app that foll...
[ -0.0098876953125, 0.005767822265625, 0.007293701171875, 0.00933837890625, -0.0048828125, 0.0341796875, 0.01458740234375, -0.0189208984375, 0.01116943359375, -0.00848388671875, 0.0115966796875, 0.0135498046875, 0.021240234375, 0.043212890625, -0.00408935546875, -0.00531005859375, -0.0...
[ 133720, 11435, 43658, 214, 98, 56889, 319, 1264, 54916, 40814, 53073, 33, 4084, 160328, 18244, 15296, 38308, 3863, 13415, 42724, 121422, 42, 38937, 2500, 8256, 70622, 128405, 5775, 25687, 75, 127892, 2947, 42053, 206, 1119, 15519, 31577, 4307...
[ 0.276123046875, 0.167724609375, 0.209228515625, 0.0193939208984375, 0.05218505859375, 0.207275390625, 0.1917724609375, 0.1097412109375, 0.1083984375, 0.1610107421875, 0.061767578125, 0.068603515625, 0.1383056640625, 0.06964111328125, 0.02166748046875, 0.03363037109375, 0.147827148437...
embed
50780247_c0
50780247
elixir
0
Title: How to write a DSL that creates a function with arguments? Problem title: How to write a DSL that creates a function with arguments? Tags: dsl, macros, elixir, metaprogramming Problem: How to write a DSL that creates a function with arguments? I would like to define a macro such that I can pass a do block into i...
How to write a DSL that creates a function with arguments? How to write a DSL that creates a function with arguments? dsl macros elixir metaprogramming CompileError MyMacro How DSL Test IO.puts Hello iex:6 lists.erl:1338 lists.foreach erl_eval.erl:670 erl_eval.do_apply evaluator.ex:250 IEx.Evaluator.handle_eval Test.he...
[ 0.0068359375, 0.006622314453125, 0.006988525390625, 0.00051116943359375, -0.001373291015625, 0.0230712890625, 0.00421142578125, -0.00848388671875, -0.00506591796875, -0.0166015625, -0.0047607421875, -0.0125732421875, -0.0023651123046875, 0.005340576171875, 0.01068115234375, 0.016845703...
[ 11249, 47, 33022, 10, 114479, 450, 28282, 32354, 678, 10750, 7, 104, 24861, 111789, 15296, 38308, 23550, 28966, 15612, 1340, 18468, 2646, 55450, 516, 8647, 17780, 7077, 35378, 17, 3355, 910, 5303, 10991, 89700, 934, 141, 1405, 108620, 9007,...
[ 0.0755615234375, 0.009063720703125, 0.202880859375, 0.047821044921875, 0.2447509765625, 0.02691650390625, 0.1885986328125, 0.2218017578125, 0.178466796875, 0.277099609375, 0.1158447265625, 0.043792724609375, 0.177490234375, 0.23193359375, 0.09765625, 0.2462158203125, 0.0802001953125,...
embed
47375957_c1
47375957
elixir
1
‘Goodbyeee‘ (Episode 6)\r\n\r\nDirected by Nick Tobias & Liz White\r\n\r\n \r\n\r\nCast List:\r\n\r\nCaptain Edmund Blackadder – Chris Hannant\r\nPrivate S Baldrick – Matt Wilson\r\nLt. Hon. George Colthurst St Barleigh – UNCAST\r\nGeneral Sir Anthony Cecil Hogmanay Melchett – Jason Blackburn\r\nCaptain Kevin Darling –...
‘Goodbyeee‘ (Episode 6)\r\n\r\nDirected by Nick Tobias & Liz White\r\n\r\n \r\n\r\nCast List:\r\n\r\nCaptain Edmund Blackadder – Chris Hannant\r\nPrivate S Baldrick – Matt Wilson\r\nLt. Hon. George Colthurst St Barleigh – UNCAST\r\nGeneral Sir Anthony Cecil Hogmanay Melchett – Jason Blackburn\r\nCaptain Kevin Darling –...
[ 0.00775146484375, 0.01953125, 0.01129150390625, 0.0296630859375, -0.0031890869140625, -0.00732421875, 0.01409912109375, -0.006805419921875, 0.01007080078125, 0.019287109375, -0.00213623046875, -0.00616455078125, -0.0025177001953125, -0.00653076171875, -0.02099609375, 0.006195068359375,...
[ 204, 144890, 1272, 13, 7039, 371, 15, 4994, 31, 112, 35914, 41872, 19, 184911, 297, 390, 47801, 188531, 619, 102572, 22392, 42, 6, 174830, 32036, 12, 87926, 25500, 200081, 10074, 712, 820, 46, 31745, 24179, 1236, 33163, 24836, 159, 77462,...
[ 0.092041015625, 0.2186279296875, 0.2491455078125, 0.171630859375, 0.2607421875, 0.10888671875, 0.065185546875, 0.212646484375, 0.2147216796875, 0.1796875, 0.28564453125, 0.0269775390625, 0.03521728515625, 0.2237548828125, 0.0870361328125, 0.069091796875, 0.1259765625, 0.24951171875...
embed
76912388_c0
76912388
elixir
0
Title: Running_total variable being reset - why? Problem title: Running_total variable being reset - why? Tags: elixir Problem: Running_total variable being reset - why? I am extremely new to Elixir The running total variable is getting reset back to zero after the if statement. How do I fix this? I understand that eve...
Running_total variable being reset - why? Running_total variable being reset - why? elixir Running_total Solution roman_to_int String.t roman_map max_value String.reverse IO.puts String.graphemes Enum.each curr_val Solution.roman_to_int XIV Running_total variable being reset - why? I am extremely new to Elixir The runn...
[ -0.0169677734375, 0.01611328125, 0.000308990478515625, 0.019775390625, -0.00830078125, 0.020263671875, 0.004547119140625, 0.0142822265625, 0.004241943359375, 0.00750732421875, 0.02978515625, -0.01129150390625, 0.00145721435546875, 0.00927734375, 0.006072998046875, 0.0032196044921875, ...
[ 28398, 592, 188, 1803, 77336, 8035, 168398, 15400, 15296, 38308, 187895, 6315, 4288, 23351, 18, 62346, 18389, 27494, 37676, 17780, 41382, 316, 41581, 64240, 1405, 46903, 53655, 111531, 3525, 25318, 51042, 3622, 83, 20949, 4420, 47, 45234, 710...
[ 0.1334228515625, 0.1251220703125, 0.1497802734375, 0.1990966796875, 0.260986328125, 0.1007080078125, 0.245849609375, 0.1090087890625, 0.060821533203125, 0.21875, 0.133544921875, 0.1461181640625, 0.10150146484375, 0.0828857421875, 0.008087158203125, 0.1021728515625, 0.0870361328125, ...
embed
33316661_c1
33316661
elixir
1
to create a release for the production environment as well with MIX_ENV=prod mix release . The release is successfully generated and MIX_ENV=prod PORT=8889 ./rel/my_app/bin/my_app console runs fine. However, I cannot ping the server nor run a remote console once it starts, so it seems something is still missing for th...
to create a release for the production environment as well with MIX_ENV=prod mix release . The release is successfully generated and MIX_ENV=prod PORT=8889 ./rel/my_app/bin/my_app console runs fine. However, I cannot ping the server nor run a remote console once it starts, so it seems something is still missing for th...
[ -0.0120849609375, 0.01434326171875, 0.0001163482666015625, 0.0245361328125, -0.015380859375, -0.003265380859375, -0.03564453125, -0.0145263671875, -0.00185394287109375, -0.006256103515625, 0.020751953125, -0.00063323974609375, 0.037109375, 0.0030059814453125, -0.00128936767578125, 0.00...
[ 28282, 54452, 100, 36049, 65998, 5299, 276, 21487, 11572, 856, 112348, 17664, 65771, 139392, 122390, 49543, 1126, 7962, 1176, 9007, 7568, 130250, 127877, 5885, 53418, 33429, 10723, 12488, 11675, 148814, 24145, 4034, 9844, 7464, 132283, 38415, 1...
[ 0.14990234375, 0.205810546875, 0.07550048828125, 0.1876220703125, 0.1885986328125, 0.018402099609375, 0.132080078125, 0.239990234375, 0.1015625, 0.202880859375, 0.1873779296875, 0.263671875, 0.1297607421875, 0.113037109375, 0.15380859375, 0.1051025390625, 0.1390380859375, 0.0091857...
embed
76452025_c0
76452025
elixir
0
Title: IEX stalling after spawning process that waits to receive messages Problem title: IEX stalling after spawning process that waits to receive messages Tags: elixir, elixir-iex Problem: IEX stalling after spawning process that waits to receive messages I'm completely new to Elixir but had to use Erlang for a piece ...
IEX stalling after spawning process that waits to receive messages IEX stalling after spawning process that waits to receive messages elixir elixir-iex IEX start_server IO.puts Server More server_pid Process.register Should IEX stalling after spawning process that waits to receive messages I'm completely new to Elixir ...
[ -0.005401611328125, 0.018310546875, -0.00274658203125, 0.01300048828125, -0.0179443359375, 0.002838134765625, 0.003753662109375, -0.002105712890625, 0.000865936279296875, -0.0225830078125, 0.01104736328125, -0.00017261505126953125, 0.00933837890625, 0.021728515625, 0.020263671875, 0.03...
[ 87, 26939, 20974, 2069, 7103, 5623, 434, 9433, 40485, 53299, 89914, 15296, 38308, 14, 3355, 4034, 39642, 17780, 7077, 22687, 5455, 10723, 45226, 123996, 105199, 151117, 592, 450, 47, 3525, 25318, 1004, 3066, 3900, 19309, 65771, 37202, 32354, ...
[ 0.13671875, 0.213623046875, 0.183837890625, 0.08837890625, 0.083251953125, 0.10736083984375, 0.0784912109375, 0.1177978515625, 0.159912109375, 0.083984375, 0.13427734375, 0.07666015625, 0.189453125, 0.06585693359375, 0.1800537109375, 0.11767578125, 0.1556396484375, 0.102783203125, ...
embed
78485932_c0
78485932
elixir
0
Title: Unexpected :ssh_sftp :timeout after SIGINT Problem title: Unexpected :ssh_sftp :timeout after SIGINT Tags: broadway, elixir, gen-server, sftp Problem: Unexpected :ssh_sftp :timeout after SIGINT I’m trying to understand an unexpected :timeout during :ssh_sftp.start_channel/3. This is the flow of events: A Broadwa...
Unexpected :ssh_sftp :timeout after SIGINT Unexpected :ssh_sftp :timeout after SIGINT broadway elixir gen-server sftp Unexpected ssh_sftp SIGINT Unexpected :ssh_sftp :timeout after SIGINT I’m trying to understand an unexpected :timeout during :ssh_sftp.start_channel/3. This is the flow of events: A Broadway pipeline is...
[ -0.0021514892578125, 0.022705078125, -0.0027008056640625, -0.0034942626953125, -0.027587890625, -0.01904296875, -0.0150146484375, 0.004913330078125, -0.025146484375, 0.0164794921875, -0.004791259765625, -0.0029449462890625, -0.01251220703125, 0.03955078125, 0.006622314453125, -0.006744...
[ 83613, 13, 89829, 1495, 2480, 254, 6032, 6056, 7103, 159, 31343, 59537, 134744, 7514, 15296, 38308, 9226, 39642, 28219, 241957, 20271, 17137, 17032, 18113, 86608, 47353, 199506, 137158, 2256, 51042, 17368, 2407, 161, 108558, 38415, 8633, 34695,...
[ 0.074462890625, 0.047698974609375, 0.003631591796875, 0.161376953125, 0.120849609375, 0.142333984375, 0.195556640625, 0.208251953125, 0.122314453125, 0.06878662109375, 0.1778564453125, 0.2310791015625, 0.050048828125, 0.1187744140625, 0.0284881591796875, 0.16015625, 0.1123046875, 0...
embed
47642961_c0
47642961
elixir
0
Title: Handling DateTime precision &gt; 6 in Elixir Problem title: Handling DateTime precision &gt; 6 in Elixir Tags: datetime, elixir, precision Problem: Handling DateTime precision > 6 in Elixir I have this function in my code: defp to_date({year, month, day}), do: NaiveDateTime.from_erl!({{year, month, day}, {0, 0, ...
Handling DateTime precision &gt; 6 in Elixir Handling DateTime precision &gt; 6 in Elixir datetime elixir precision ArgumentError users Handling DateTime Elixir to_date NaiveDateTime.from_erl NaiveDateTime.to_string datetime2 Tds.Connection.query RMASDB user_id Tds.Result reset_required last_login has_picture last_modi...
[ 0.00311279296875, -0.0025634765625, -0.00016498565673828125, -0.000579833984375, 0.005859375, -0.02783203125, -0.01300048828125, 0.01507568359375, -0.00020885467529296875, -0.00799560546875, 0.02294921875, 0.0001850128173828125, 0.00021457672119140625, -0.0115966796875, 0.0135498046875, ...
[ 193237, 25512, 70059, 22619, 1830, 5386, 305, 23, 25318, 38308, 5622, 6032, 15296, 112140, 18468, 31611, 72095, 47, 17489, 353, 5844, 86291, 161063, 56, 141, 188, 91693, 304, 384, 6468, 235603, 627, 40639, 39463, 38937, 7, 7136, 168398, 318...
[ 0.2176513671875, 0.169189453125, 0.236328125, 0.216552734375, 0.04949951171875, 0.0794677734375, 0.1708984375, 0.02386474609375, 0.1190185546875, 0.26953125, 0.1441650390625, 0.182373046875, 0.0689697265625, 0.20947265625, 0.099853515625, 0.01287841796875, 0.1925048828125, 0.062194...
embed
31823272_c1
31823272
elixir
1
, [s,e,n]), fn d -> Smm.let(Smm.to_number([s,e,n,d]), fn w_send -> Enum.map( Smm.remove(digits, [0,s,e,n,d]), fn m -> Enum.map( Smm.remove(digits, [s,e,n,d,m]), fn o -> Enum.map( Smm.remove(digits, [s,e,n,d,m,o]), fn r -> Smm.let(Smm.to_number([m,o,r,e]), fn w_more -> Enum.map( Smm.remove(digits, [s,e,n,d,m,o,r]), fn y...
, [s,e,n]), fn d -> Smm.let(Smm.to_number([s,e,n,d]), fn w_send -> Enum.map( Smm.remove(digits, [0,s,e,n,d]), fn m -> Enum.map( Smm.remove(digits, [s,e,n,d,m]), fn o -> Enum.map( Smm.remove(digits, [s,e,n,d,m,o]), fn r -> Smm.let(Smm.to_number([m,o,r,e]), fn w_more -> Enum.map( Smm.remove(digits, [s,e,n,d,m,o,r]), fn y...
[ -0.025390625, 0.01068115234375, -0.00506591796875, 0.016845703125, -0.0201416015625, 0.0145263671875, -0.00701904296875, 0.005615234375, 0.01348876953125, -0.030029296875, 0.002899169921875, 0.00921630859375, 0.000743865966796875, 0.0301513671875, 0.00130462646484375, 0.0157470703125, ...
[ 4, 7, 13, 19, 14783, 104, 33079, 159, 2276, 1974, 294, 188, 2606, 1297, 71, 6, 148, 39285, 357, 316, 62346, 26973, 272, 4803, 14481, 2389, 347, 36, 31, 1690, 17678, 113, 53, 43260, 32116, 434, 17780, 7077, 3564, 3611, 247038, 4163, ...
[ 0.014801025390625, 0.04742431640625, 0.0828857421875, 0.0635986328125, 0.10009765625, 0.125244140625, 0.010894775390625, 0.0845947265625, 0.2425537109375, 0.14453125, 0.0516357421875, 0.1180419921875, 0.142333984375, 0.0556640625, 0.0794677734375, 0.008209228515625, 0.0972900390625, ...
embed
48710829_c1
48710829
elixir
1
the payload field :ts, :utc_datetime field :template, :string field :subject, :string field :email, :string field :tags, {:array, :string} field :opens, :integer field :opens_ip, :string # equal to nested 'ip' value in 'open_details' field :opens_location, :string # equal to nested 'location' value in 'open_details' f...
the payload field :ts, :utc_datetime field :template, :string field :subject, :string field :email, :string field :tags, {:array, :string} field :opens, :integer field :opens_ip, :string # equal to nested 'ip' value in 'open_details' field :opens_location, :string # equal to nested 'location' value in 'open_details' f...
[ 0.006317138671875, 0.000247955322265625, -0.006622314453125, -0.00726318359375, 0.019287109375, -0.00982666015625, -0.0036468505859375, -0.025634765625, 0.0108642578125, -0.0223388671875, 0.0047607421875, -0.00439453125, 0.0166015625, 0.0174560546875, 0.0028533935546875, -0.01092529296...
[ 70, 8783, 63033, 44457, 933, 1003, 238, 17489, 6032, 2982, 92558, 91693, 22144, 75161, 25501, 75985, 19305, 59636, 6191, 1505, 3442, 105950, 8512, 34292, 119514, 87632, 123278, 45215, 61340, 2537, 3564, 37842, 1467, 81988, 74157, 603, 3355, 2...
[ 0.04180908203125, 0.1693115234375, 0.3056640625, 0.26171875, 0.1561279296875, 0.05316162109375, 0.05963134765625, 0.034088134765625, 0.1156005859375, 0.08026123046875, 0.124267578125, 0.1517333984375, 0.013214111328125, 0.04327392578125, 0.116455078125, 0.1385498046875, 0.05847167968...
embed
46231140_c0
46231140
elixir
0
Title: Elixir: How to send notification to server in handle_cast? Problem title: Elixir: How to send notification to server in handle_cast? Tags: actor, elixir, gen-server Problem: Elixir: How to send notification to server in handle_cast? I am making basic Elixir server/client module that can send/receive asynchronous...
Elixir: How to send notification to server in handle_cast? Elixir: How to send notification to server in handle_cast? actor elixir gen-server Elixir How handle_cast Bitcoin.WorkerOne GenServer start_link IO.puts Worker GenServer.start_link __MODULE__ set_message GenServer.cast IO.inspect pid1 Bitcoin.WorkerOne.start_li...
[ 0.000919342041015625, 0.017822265625, -0.00189208984375, 0.0291748046875, 0.00067138671875, -0.0032806396484375, -0.0098876953125, 0.0274658203125, -0.002288818359375, -0.0205078125, 0.0037078857421875, -0.006256103515625, 0.0069580078125, 0.036376953125, 0.0009765625, -0.0022277832031...
[ 25318, 38308, 11249, 25379, 185325, 47, 10723, 34831, 55741, 23, 39329, 15296, 9226, 39642, 26999, 108259, 56, 62068, 15937, 193348, 4034, 10187, 17780, 7077, 27985, 17137, 5423, 74157, 16711, 45226, 3794, 62822, 222978, 88996, 12654, 101966, 8...
[ 0.1121826171875, 0.224365234375, 0.076904296875, 0.1373291015625, 0.2449951171875, 0.10479736328125, 0.22021484375, 0.197021484375, 0.1929931640625, 0.0154876708984375, 0.112548828125, 0.071044921875, 0.124755859375, 0.1854248046875, 0.147705078125, 0.123291015625, 0.074951171875, ...
embed
62006116_c0
62006116
elixir
0
Title: Issue when deploying a phoenix appwith Gigalixir Problem title: Issue when deploying a phoenix appwith Gigalixir Tags: phoenix-framework, gigalixir, elixir Problem: Issue when deploying a phoenix appwith Gigalixir I've followed the tutorial provided by the docs but I think I've got a problem with my node version...
Issue when deploying a phoenix appwith Gigalixir Issue when deploying a phoenix appwith Gigalixir phoenix-framework gigalixir elixir Issue Gigalixir Node Will APP_NAME DATABASE_URL LIBCLUSTER_KUBERNETES_NODE_BASENAME LIBCLUSTER_KUBERNETES_SELECTOR POOL_SIZE PORT SECRET_KEY_BASE SOURCE_VERSION MIX_ENV Installing clean_c...
[ 0.00634765625, -0.00023651123046875, 0.007659912109375, -0.00433349609375, 0.0014190673828125, 0.01544189453125, -0.01611328125, -0.034423828125, 0.003936767578125, 0.002838134765625, 0.00131988525390625, -0.01239013671875, 0.0185546875, -0.00732421875, -0.0079345703125, 0.004913330078...
[ 223317, 3229, 8, 13158, 38543, 53073, 33, 4084, 4027, 76228, 5174, 27685, 38308, 160328, 169858, 150, 15296, 438, 112, 20255, 66440, 182512, 49068, 95538, 16970, 22335, 64077, 23458, 24480, 17777, 8575, 68341, 137142, 122390, 75018, 41116, 1861...
[ 0.2142333984375, 0.03912353515625, 0.0806884765625, 0.1796875, 0.0634765625, 0.06817626953125, 0.1165771484375, 0.15087890625, 0.18017578125, 0.1387939453125, 0.11474609375, 0.166015625, 0.25439453125, 0.093017578125, 0.136962890625, 0.0931396484375, 0.048553466796875, 0.1479492187...
embed
46855663_c0
46855663
elixir
0
Title: Cowboy returns 400 without headers Problem title: Cowboy returns 400 without headers Tags: elixir, amazon-web-services, cowboy, erlang Problem: Cowboy returns 400 without headers AWS HealthCheck endpoint doesn't send any headers which causes Cowboy (v 1.1.2) to return 400. This is causing container restarts. Is ...
Cowboy returns 400 without headers Cowboy returns 400 without headers elixir amazon-web-services cowboy erlang Cowboy localhost:4000 Host You protocol_options max_header_name_length max_header_value_length max_headers my_app MyAppWeb.Endpoint load_from_system_env System.get_env MY_HOST force_ssl rewrite_on x_forwarded_...
[ -0.006072998046875, 0.0203857421875, -0.00628662109375, 0.01373291015625, 0.0023345947265625, 0.01708984375, -0.00811767578125, 0.0003509521484375, -0.01385498046875, -0.00592041015625, 0.0012359619140625, -0.015380859375, -0.029541015625, 0.0218505859375, 0.004058837890625, -0.0173339...
[ 1311, 434, 30885, 30646, 4082, 15490, 10336, 1314, 15296, 38308, 2527, 5870, 14051, 22584, 552, 72, 3066, 4000, 40294, 68037, 100932, 91363, 109585, 18389, 31251, 27494, 759, 9007, 2646, 39179, 30474, 152378, 38496, 72367, 16751, 33, 334, 123...
[ 0.078857421875, 0.1470947265625, 0.277099609375, 0.18310546875, 0.266845703125, 0.1722412109375, 0.2076416015625, 0.1190185546875, 0.0113525390625, 0.177734375, 0.034881591796875, 0.103759765625, 0.0576171875, 0.097412109375, 0.0204620361328125, 0.0220184326171875, 0.2037353515625, ...
embed
51145311_c0
51145311
elixir
0
Title: Getting Ecto.Query.CastError when querying in phoenix Problem title: Getting Ecto.Query.CastError when querying in phoenix Tags: ecto, phoenix-framework, elixir Problem: Getting Ecto.Query.CastError when querying in phoenix So I copied a query where it will preload a user associated in it. The problem is that it...
Getting Ecto.Query.CastError when querying in phoenix Getting Ecto.Query.CastError when querying in phoenix ecto phoenix-framework elixir Ecto.Query.CastError Getting get_avatar IO.inspect AssocApp.Accounts.Avatar p.user_id Repo.get Avatar has_one pic_url belongs_to AssocApp.Accounts.User user_id validate_required Acco...
[ 0.005615234375, 0.00115966796875, -0.01318359375, 0.01373291015625, 0.01123046875, -0.006805419921875, -0.00133514404296875, -0.0115966796875, -0.006927490234375, -0.059814453125, 0.0118408203125, -0.0106201171875, -0.00567626953125, 0.021484375, -0.01080322265625, -0.0113525390625, ...
[ 210732, 241, 44150, 41732, 1294, 174830, 18468, 31611, 41, 214, 23, 53073, 33, 4084, 60751, 160328, 18244, 15296, 38308, 2046, 24047, 147, 17780, 16711, 1301, 7, 6652, 39179, 71013, 330, 867, 65918, 532, 771, 3794, 192893, 1556, 3630, 8834,...
[ 0.044189453125, 0.06524658203125, 0.27294921875, 0.1685791015625, 0.148681640625, 0.182861328125, 0.183837890625, 0.1602783203125, 0.1424560546875, 0.000396728515625, 0.031646728515625, 0.080322265625, 0.1036376953125, 0.1414794921875, 0.2015380859375, 0.0963134765625, 0.054138183593...
embed
46368633_c0
46368633
elixir
0
Title: In Elixir umbrella app, where should logger backend app be added as a dependency? Problem title: In Elixir umbrella app, where should logger backend app be added as a dependency? Tags: erlang, phoenix-framework, elixir Problem: In Elixir umbrella app, where should logger backend app be added as a dependency? I h...
In Elixir umbrella app, where should logger backend app be added as a dependency? In Elixir umbrella app, where should logger backend app be added as a dependency? erlang phoenix-framework elixir Elixir In Elixir umbrella app, where should logger backend app be added as a dependency? I have an Elixir umbrella applicati...
[ 0.01141357421875, 0.022216796875, -0.006683349609375, -0.007415771484375, 0.00762939453125, 0.0240478515625, 0.0001659393310546875, 0.005859375, 0.00836181640625, -0.01214599609375, 0.01373291015625, -0.030517578125, 0.0267333984375, 0.0322265625, 0.0169677734375, -0.01513671875, -0....
[ 25318, 38308, 286, 4134, 1165, 4027, 7440, 5608, 73088, 42, 4420, 3611, 49814, 42548, 27771, 237, 72, 3066, 53073, 33, 4084, 160328, 18244, 15296, 38415, 86685, 1379, 64906, 56, 3444, 15190, 4867, 590, 1495, 12620, 365, 21407, 8, 6423, 32...
[ 0.1173095703125, 0.260009765625, 0.08447265625, 0.1861572265625, 0.157470703125, 0.181396484375, 0.08984375, 0.0537109375, 0.188720703125, 0.190673828125, 0.2047119140625, 0.191162109375, 0.152587890625, 0.2078857421875, 0.1600341796875, 0.026336669921875, 0.007049560546875, 0.1564...
embed
54676116_c0
54676116
elixir
0
Title: Handling websocket connection on invalid token in Elixir/Phoenix Problem title: Handling websocket connection on invalid token in Elixir/Phoenix Tags: phoenix-framework, phoenix-channels, elixir Problem: Handling websocket connection on invalid token in Elixir/Phoenix We use Guardian to generate tokens, which we...
Handling websocket connection on invalid token in Elixir/Phoenix Handling websocket connection on invalid token in Elixir/Phoenix phoenix-framework phoenix-channels elixir Handling Elixir Phoenix user_socket.ex guardian_token Guardian.Phoenix.Socket.authenticate MyApp.Guardian authed_socket Handling websocket connectio...
[ 0.00408935546875, 0.028076171875, 0.005279541015625, -0.025390625, 0.006927490234375, -0.01031494140625, -0.018798828125, -0.018310546875, -0.0164794921875, -0.0299072265625, 0.01177978515625, -0.01336669921875, -0.01519775390625, 0.017333984375, -0.031494140625, -0.000347137451171875,...
[ 193237, 1467, 991, 27853, 94878, 56649, 47, 1098, 25318, 38308, 497, 33, 4084, 98, 53073, 160328, 17032, 8876, 15296, 133720, 38937, 3355, 158031, 19, 6448, 81589, 8912, 1003, 2646, 39179, 198156, 6798, 5252, 139392, 84694, 195734, 37067, 559...
[ 0.176025390625, 0.1209716796875, 0.1500244140625, 0.1824951171875, 0.1512451171875, 0.2449951171875, 0.1282958984375, 0.1951904296875, 0.10205078125, 0.2183837890625, 0.060577392578125, 0.11865234375, 0.1051025390625, 0.0167388916015625, 0.0509033203125, 0.06964111328125, 0.063598632...
embed