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
37484862_c0
37484862
elixir
0
Title: How to avoid nested if statements in Elixir? Problem title: How to avoid nested if statements in Elixir? Tags: elixir Problem: How to avoid nested if statements in Elixir? Is there a way to refactor this in Elixir to make it more readable? def validate(params) do Repo.start_link if validate_oauth_params(params) ...
How to avoid nested if statements in Elixir? How to avoid nested if statements in Elixir? elixir How Elixir Repo.start_link validate_oauth_params oauth_client Repo.get_by OauthClient random_id client_id allowed_grant_types Poison.Parser.parse oauth_client.allowed_grant_types Map.has_key grant_type process_password_gran...
[ -0.00555419921875, 0.006439208984375, 0.014404296875, 0.0067138671875, 0.00604248046875, -0.0169677734375, 0.00885009765625, -0.0252685546875, -0.00933837890625, 0.01080322265625, 0.00390625, -0.0179443359375, 0.008056640625, 0.032958984375, -0.01153564453125, 0.010986328125, -0.0063...
[ 11249, 71864, 8512, 71, 2174, 63805, 7, 23, 25318, 38308, 47, 15296, 853, 771, 17137, 10187, 44622, 916, 927, 2500, 8256, 222978, 180, 150, 96759, 532, 23282, 107003, 30962, 50986, 64249, 191, 28636, 2189, 64688, 42719, 19770, 80731, 9433, ...
[ 0.04669189453125, 0.2315673828125, 0.255859375, 0.1614990234375, 0.254638671875, 0.248046875, 0.04754638671875, 0.058563232421875, 0.1373291015625, 0.289306640625, 0.03399658203125, 0.08941650390625, 0.08074951171875, 0.1639404296875, 0.13037109375, 0.17529296875, 0.1658935546875, ...
embed
39139236_c1
39139236
elixir
1
] end <<<< user_controller.ex >> .... This shows how client can retrieve current_user via controller. defmodule App.V1.UserController do use App.Web, :controller alias App.User plug Guardian.Plug.EnsureAuthenticated, on_failure: { App.V1.SessionController, :unauthenticated_api } plug :scrub_params, "user" when action ...
] end <<<< user_controller.ex >> .... This shows how client can retrieve current_user via controller. defmodule App.V1.UserController do use App.Web, :controller alias App.User plug Guardian.Plug.EnsureAuthenticated, on_failure: { App.V1.SessionController, :unauthenticated_api } plug :scrub_params, "user" when action ...
[ -0.0198974609375, -0.00179290771484375, 0.01422119140625, -0.0233154296875, 0.01129150390625, 0.00238037109375, 0.00885009765625, 0.00408935546875, -0.00628662109375, -0.06494140625, -0.01422119140625, 0.028076171875, 0.000904083251953125, 0.01275634765625, 0.0054931640625, -0.00177764...
[ 3564, 38937, 81988, 603, 3355, 153, 3293, 45831, 3642, 23282, 831, 456, 3996, 3134, 43581, 454, 65918, 1829, 185373, 8, 420, 83279, 5659, 856, 418, 1062, 2189, 175904, 4527, 30474, 55109, 76329, 81589, 35159, 7768, 56851, 67362, 92733, 7636...
[ 0.091064453125, 0.21923828125, 0.2359619140625, 0.1981201171875, 0.182373046875, 0.001495361328125, 0.013336181640625, 0.09942626953125, 0.0819091796875, 0.2265625, 0.0936279296875, 0.1356201171875, 0.1834716796875, 0.169921875, 0.2437744140625, 0.014862060546875, 0.293701171875, 0...
embed
56164189_c1
56164189
elixir
1
though it's failing to get my opts from the uri but I'm not quite sure why. The application is running fine locally so it must be something to do with the configuration on Heroku. Has anyone experienced anything similar to this before or know what the problem might be? Thanks in advance! Code signals: ArgumentError, E...
in one of my child processes. I'm using a module called redix - {:redix, ">= 0.6.1"} which is handling my connection to Redis. It crashed with the following error: I hadn't made any source code changes before the crash and so I'm not sure what the cause is. The error I'm seeing is this one: https://github.com/whatyouh...
[ -0.015625, 0.0252685546875, -0.01409912109375, -0.0108642578125, 0.0020751953125, -0.016357421875, 0.00152587890625, -0.030029296875, -0.01153564453125, -0.014892578125, -0.00372314453125, -0.02587890625, 0.033447265625, 0.006134033203125, -0.013427734375, -0.0081787109375, -0.028686...
[ 23, 1632, 759, 29041, 9433, 17368, 88996, 4842, 4084, 2822, 70902, 757, 173245, 45064, 94878, 6096, 164, 150631, 297, 678, 25632, 18499, 1902, 18, 7228, 31344, 18151, 65572, 8108, 39, 959, 9077, 22304, 86681, 903, 15769, 32102, 124409, 5392...
[ 0.0458984375, 0.02301025390625, 0.03485107421875, 0.180908203125, 0.0931396484375, 0.0618896484375, 0.19775390625, 0.16796875, 0.197021484375, 0.1636962890625, 0.007843017578125, 0.059600830078125, 0.15673828125, 0.10015869140625, 0.1312255859375, 0.1878662109375, 0.20458984375, 0....
embed
44445467_c0
44445467
elixir
0
Title: Is Elixir slower than Ruby? Problem title: Is Elixir slower than Ruby? Tags: benchmarking, elixir, compare, ruby, performance Problem: Is Elixir slower than Ruby? Please help me solve a benchmark question about Elixir vs. Ruby performance. I tried to implement the same factorial in both languages, and Ruby shows...
Is Elixir slower than Ruby? Is Elixir slower than Ruby? benchmarking elixir compare ruby performance Elixir Ruby ruby_factorial_with_iterator.rb factorial_with_iterator elixir_factorial_with_iterator.exs FactorialWithIterator Enum.reduce IO.puts Factorial FactorialWithIterator.of elixir_factorial_with_recursion.exs Fac...
[ -0.01177978515625, -0.01806640625, 0.00494384765625, 0.005645751953125, 0.018798828125, -0.03271484375, -0.00494384765625, -0.01519775390625, -0.0145263671875, -0.0184326171875, 0.0093994140625, 0.01458740234375, 0.005157470703125, 0.000492095947265625, -0.011962890625, -0.001396179199...
[ 2071, 25318, 38308, 72803, 56, 3501, 158189, 240057, 15296, 69101, 21922, 53, 23718, 144810, 15403, 76228, 16840, 4597, 13471, 31461, 3355, 117969, 194583, 720, 316, 107, 106357, 17780, 7077, 48650, 4390, 4358, 86869, 20209, 29479, 5701, 15044,...
[ 0.044586181640625, 0.152587890625, 0.305908203125, 0.204833984375, 0.150390625, 0.06365966796875, 0.281494140625, 0.1614990234375, 0.123291015625, 0.1282958984375, 0.1995849609375, 0.15576171875, 0.1614990234375, 0.13671875, 0.1405029296875, 0.072021484375, 0.124755859375, 0.137939...
embed
50813212_c1
50813212
elixir
1
stop) {{{:failed_to_upgrade_to_ssl, {:keyfile, :function_clause}}, [{:brod_sock, :maybe_upgrade_to_ssl, 4, [file: 'src/brod_sock.erl', line: 278]}, {:brod_sock, :do_init, 4, [file: 'src/brod_sock.erl', line: 204]}, {:brod_sock, :init, 5, [file: 'src/brod_sock.erl', line: 176]}, {:proc_lib, :init_p_do_apply, 3, [file: '...
stop) {{{:failed_to_upgrade_to_ssl, {:keyfile, :function_clause}}, [{:brod_sock, :maybe_upgrade_to_ssl, 4, [file: 'src/brod_sock.erl', line: 278]}, {:brod_sock, :do_init, 4, [file: 'src/brod_sock.erl', line: 204]}, {:brod_sock, :init, 5, [file: 'src/brod_sock.erl', line: 176]}, {:proc_lib, :init_p_do_apply, 3, [file: '...
[ -0.007415771484375, 0.0238037109375, 0.022705078125, -0.004119873046875, -0.00799560546875, -0.02685546875, -0.01080322265625, -0.0037384033203125, -0.000583648681640625, 0.0126953125, -0.0022735595703125, 0.0172119140625, 0.0027923583984375, -0.0032501220703125, 0.0079345703125, -0.00...
[ 7279, 120540, 297, 2037, 44286, 188, 7, 24861, 19770, 29822, 137175, 6369, 71, 991, 2594, 11354, 372, 201, 19437, 56, 13315, 121489, 106281, 190, 80016, 5612, 9007, 538, 138, 136382, 98908, 40294, 20031, 11591, 222978, 188734, 17137, 35273, ...
[ 0.210205078125, 0.14404296875, 0.0701904296875, 0.06903076171875, 0.141357421875, 0.0701904296875, 0.004791259765625, 0.219970703125, 0.152099609375, 0.1578369140625, 0.0828857421875, 0.1204833984375, 0.0709228515625, 0.1536865234375, 0.1263427734375, 0.0293121337890625, 0.0182647705...
embed
42281739_c0
42281739
elixir
0
Title: error in associations using belongs_to Problem title: error in associations using belongs_to Tags: ecto, elixir, phoenix-framework Problem: error in associations using belongs_to i have a two tables, say e.g. Payment and refund with transaction_id as foreign key for refund. defmodule Payments.Payment do use Paym...
error in associations using belongs_to error in associations using belongs_to ecto elixir phoenix-framework belongs_to Payments.Payment Payments.Web payment_id captured_amount transaction_id validate_required Payments.Refund primary_key refund_id pay_id create_time Ecto.DateTime error in associations using belongs_to i...
[ -0.0036163330078125, 0.00909423828125, 0.0198974609375, 0.01263427734375, -0.004547119140625, -0.0037994384765625, -0.0257568359375, -0.0286865234375, 0.0120849609375, -0.035888671875, 0.01507568359375, 0.0096435546875, -0.0101318359375, 0.01202392578125, -0.0032958984375, -0.016967773...
[ 18499, 23, 151747, 17368, 186, 10617, 7, 188, 60751, 15296, 38308, 53073, 33, 4084, 160328, 18244, 17166, 9035, 104709, 30474, 81997, 532, 141621, 124161, 44622, 3181, 4332, 25018, 158978, 19770, 127402, 8783, 28282, 6032, 241, 44150, 86291, ...
[ 0.197509765625, 0.0233917236328125, 0.256103515625, 0.1309814453125, 0.113037109375, 0.239990234375, 0.1326904296875, 0.27001953125, 0.2279052734375, 0.07440185546875, 0.2103271484375, 0.03485107421875, 0.0460205078125, 0.14501953125, 0.1136474609375, 0.09326171875, 0.1190185546875, ...
embed
46447039_c0
46447039
elixir
0
Title: Phoenix Presence track users across multiple channels Problem title: Phoenix Presence track users across multiple channels Tags: phoenix-framework, elixir, phoenix-channels Problem: Phoenix Presence track users across multiple channels So I want to keep track of the current room of each user using the presence b...
Phoenix Presence track users across multiple channels Phoenix Presence track users across multiple channels phoenix-framework elixir phoenix-channels Phoenix Presence room_id auth_message IO.puts handle_in room:changed user_id Presence.track socket.assigns.user_id socket.assigns.room_id IO.inspect Presence.list presenc...
[ -0.0208740234375, 0.007080078125, 0.0205078125, 0.00091552734375, 0.002716064453125, 0.0201416015625, -0.00738525390625, 0.0120849609375, 0.007415771484375, -0.032958984375, 0.005279541015625, 0.01104736328125, -0.00274658203125, -0.0030364990234375, -0.01116943359375, 0.0184326171875,...
[ 133720, 20703, 6620, 28560, 72095, 36880, 48716, 86723, 53073, 33, 4084, 160328, 15296, 38308, 17032, 8876, 17155, 532, 531, 927, 74157, 17780, 34831, 152028, 38937, 125728, 221, 27853, 31304, 65918, 28905, 16711, 6562, 169424, 61340, 3444, 136...
[ 0.27197265625, 0.1973876953125, 0.16064453125, 0.2193603515625, 0.2032470703125, 0.0931396484375, 0.118896484375, 0.1898193359375, 0.07135009765625, 0.05975341796875, 0.107177734375, 0.07763671875, 0.042724609375, 0.1588134765625, 0.0675048828125, 0.0875244140625, 0.21142578125, 0....
embed
56226647_c0
56226647
elixir
0
Title: Mix commands give &quot;Error opening ETS file&quot; Problem title: Mix commands give &quot;Error opening ETS file&quot; Tags: windows-10, elixir Problem: Mix commands give "Error opening ETS file" When i run mix deps.get in a newly created app I get the errors shown below. When I run mix hex.info I get the same...
Mix commands give &quot;Error opening ETS file&quot; Mix commands give &quot;Error opening ETS file&quot; windows-10 elixir MatchError ArgumentError #PID Mix Error ETS deps.get hex.info Dev Test elixir_scenic scenic_example Hex Elixir OTP Built cache.ets read_error file_error Resolving Dependency elixir_make font_metri...
[ 0.0289306640625, 0.00677490234375, -0.001708984375, -0.0013275146484375, 0.009765625, -0.0019683837890625, -0.0205078125, -0.0091552734375, -0.000057697296142578125, -0.0038299560546875, 0.034912109375, 0.0047607421875, 0.0341796875, 0.031982421875, 0.03564453125, 0.00457763671875, 0...
[ 37286, 75101, 8337, 18468, 31611, 73432, 83435, 11435, 54825, 9193, 15296, 38308, 67407, 112140, 683, 7146, 212059, 8, 6423, 3794, 764, 425, 7319, 40317, 8647, 31146, 25454, 11, 1529, 25318, 180, 23658, 82365, 7831, 12301, 188800, 132944, 268...
[ 0.284423828125, 0.206298828125, 0.0188751220703125, 0.11083984375, 0.095458984375, 0.1881103515625, 0.2357177734375, 0.1605224609375, 0.08807373046875, 0.160888671875, 0.071044921875, 0.1917724609375, 0.12451171875, 0.1207275390625, 0.030517578125, 0.1177978515625, 0.1563720703125, ...
embed
39275827_c0
39275827
elixir
0
Title: Printing to Console from Elixir Process Problem title: Printing to Console from Elixir Process Tags: elixir, erlang Problem: Printing to Console from Elixir Process So, I started playing around with Elixir, and I wanted to make two modules. One that would prompt you to enter a message, and then send the message ...
Printing to Console from Elixir Process Printing to Console from Elixir Process elixir erlang Elixir Printing Console Process PracticeCaller erlang.spawn PracticeServer.start IO.gets Enter _caller IO.puts PracticeServer Dead Process.exit Thank Printing to Console from Elixir Process So, I started playing around with El...
[ 0.002532958984375, 0.0283203125, -0.0091552734375, 0.0264892578125, 0.004669189453125, 0.000347137451171875, 0.012451171875, 0.00152587890625, -0.00616455078125, -0.0172119140625, 0.02880859375, 0.00555419921875, 0.0064697265625, 0.03369140625, 0.01495361328125, 0.026123046875, 0.035...
[ 39754, 214, 47, 1657, 40777, 1295, 25318, 38308, 123996, 15296, 72, 3066, 109613, 441, 67665, 19341, 7710, 193348, 17137, 17780, 60816, 6827, 603, 51952, 23399, 25689, 75169, 3249, 6626, 88996, 105876, 30957, 26008, 25379, 3789, 1528, 224344, ...
[ 0.2008056640625, 0.045379638671875, 0.1591796875, 0.06500244140625, 0.2266845703125, 0.1270751953125, 0.1080322265625, 0.2484130859375, 0.1728515625, 0.05865478515625, 0.0357666015625, 0.1998291015625, 0.1365966796875, 0.013641357421875, 0.1529541015625, 0.0509033203125, 0.0939331054...
embed
38412360_c1
38412360
elixir
1
valid_attrs)) response = json_response(conn, 500) errors = response["errors"] assert errors assert Enum.count(errors) == 1 {:ok, error} = Enum.fetch(errors, 0) assert error["title"] == "has already been taken" refute Repo.get_by(User, username: "name1") end ... mix test 1) test User creation with non-unique username (M...
valid_attrs)) response = json_response(conn, 500) errors = response["errors"] assert errors assert Enum.count(errors) == 1 {:ok, error} = Enum.fetch(errors, 0) assert error["title"] == "has already been taken" refute Repo.get_by(User, username: "name1") end ... mix test 1) test User creation with non-unique username (M...
[ -0.017333984375, -0.01422119140625, 0.01409912109375, -0.0279541015625, 0.019775390625, -0.004180908203125, -0.00726318359375, -0.015625, 0.01080322265625, -0.0091552734375, -0.006072998046875, 0.03369140625, 0.010009765625, 0.0078125, 0.011474609375, 0.031494140625, -0.0024566650390...
[ 35604, 27639, 4295, 57553, 2203, 1647, 1681, 134719, 2271, 19, 2101, 18499, 188800, 33657, 357, 316, 71013, 69112, 106, 685, 29362, 206, 757, 5440, 10557, 21771, 2809, 39958, 121956, 853, 771, 3794, 1272, 1062, 2189, 38937, 11627, 17664, 30...
[ 0.2274169921875, 0.1280517578125, 0.155517578125, 0.23486328125, 0.02734375, 0.124755859375, 0.1981201171875, 0.1842041015625, 0.0771484375, 0.07989501953125, 0.202392578125, 0.237548828125, 0.2078857421875, 0.1148681640625, 0.0682373046875, 0.1744384765625, 0.14794921875, 0.025924...
embed
44072836_c0
44072836
elixir
0
Title: Polymorphic has_many in Ecto Problem title: Polymorphic has_many in Ecto Tags: elixir, phoenix-framework, ecto Problem: Polymorphic has_many in Ecto I have been reading up on polymorphic associations in Ecto quite a bit, and I agree with the opinion that having a native database reference between your tables is ...
Polymorphic has_many in Ecto Polymorphic has_many in Ecto elixir phoenix-framework ecto Polymorphic has_many Ecto belongs_to Page Widgets TwoColumnWidget ThreeColumnWidget page_id Widget Polymorphic has_many in Ecto I have been reading up on polymorphic associations in Ecto quite a bit, and I agree with the opinion tha...
[ 0.00185394287109375, 0.006744384765625, 0.0042724609375, 0.004180908203125, 0.0101318359375, 0.0162353515625, -0.01031494140625, -0.029296875, 0.020751953125, -0.0634765625, 0.0213623046875, -0.031494140625, -0.005462646484375, 0.0118408203125, -0.00970458984375, -0.0205078125, 0.002...
[ 63306, 178851, 1771, 1556, 669, 53, 241, 44150, 23, 15296, 38308, 53073, 33, 4084, 160328, 18244, 60751, 10617, 14231, 58302, 3794, 32964, 78457, 316, 532, 129335, 9191, 35874, 151747, 53520, 24, 63399, 91067, 17721, 23180, 92940, 2684, 20028...
[ 0.222412109375, 0.260498046875, 0.10986328125, 0.159423828125, 0.21630859375, 0.164306640625, 0.1124267578125, 0.28125, 0.09136962890625, 0.046875, 0.15673828125, 0.029815673828125, 0.03558349609375, 0.0955810546875, 0.063720703125, 0.01153564453125, 0.217529296875, 0.192138671875,...
embed
36203757_c0
36203757
elixir
0
Title: Keep Elixir Plug connection open in chunked mode Problem title: Keep Elixir Plug connection open in chunked mode Tags: elixir Problem: Keep Elixir Plug connection open in chunked mode Is it possible to keep connection open for few seconds in chunked state? In request I create few processes which takes lets say 5...
Keep Elixir Plug connection open in chunked mode Keep Elixir Plug connection open in chunked mode elixir Plug.Conn Keep Elixir Plug AlivePlug _opts send_chunked Init start_thread Enum.each End spawn_link thread_listener timer.sleep Keep Elixir Plug connection open in chunked mode Is it possible to keep connection open ...
[ -0.002960205078125, 0.00518798828125, 0.0167236328125, -0.01507568359375, -0.01416015625, -0.0111083984375, 0.006927490234375, -0.041748046875, -0.0089111328125, -0.05078125, -0.00396728515625, 0.0267333984375, 0.00299072265625, 0.03564453125, 0.004058837890625, -0.0159912109375, 0.0...
[ 83041, 25318, 38308, 194351, 94878, 9803, 23, 7839, 12225, 13736, 15296, 11935, 2132, 272, 35159, 2146, 25379, 206, 3678, 297, 217, 4034, 39116, 316, 41581, 18878, 5623, 7710, 10187, 86997, 63844, 21991, 170572, 7722, 13695, 10846, 94131, 113...
[ 0.1846923828125, 0.1287841796875, 0.255615234375, 0.236328125, 0.17626953125, 0.1873779296875, 0.0574951171875, 0.2005615234375, 0.15185546875, 0.1661376953125, 0.06866455078125, 0.05902099609375, 0.099365234375, 0.0927734375, 0.181884765625, 0.0943603515625, 0.0784912109375, 0.050...
embed
46728853_c0
46728853
elixir
0
Title: argument error, :erlang.apply(#Function&lt;xx in Mod.client/1&gt;, :t, []) Problem title: argument error, :erlang.apply(#Function&lt;xx in Mod.client/1&gt;, :t, []) Tags: elixir, metaprogramming Problem: argument error, :erlang.apply(#Function , :t, []) I have the following: defmodule ApiWeb.Helpers.Oapi do impo...
argument error, :erlang.apply(#Function&lt;xx in Mod.client/1&gt;, :t, []) argument error, :erlang.apply(#Function&lt;xx in Mod.client/1&gt;, :t, []) elixir metaprogramming ArgumentError Plug.Conn Logger erlang.apply ApiWeb.Helpers.Oapi Tesla Tesla.Middleware.BaseUrl example.com Tesla.build_client Tesla.Middleware.Head...
[ -0.00016498565673828125, 0.00787353515625, 0.0081787109375, 0.000896453857421875, 0.012451171875, -0.0152587890625, -0.00823974609375, -0.00994873046875, 0.00188446044921875, -0.030517578125, 0.007598876953125, -0.009521484375, 0.005828857421875, 0.008056640625, 0.0228271484375, -0.027...
[ 10750, 18499, 56, 3066, 9007, 538, 97249, 10763, 1277, 52219, 16269, 222978, 11583, 5386, 18, 15296, 38308, 23550, 28966, 112140, 18468, 194351, 11935, 64906, 72, 5787, 14, 30474, 60785, 21777, 670, 40897, 70658, 532, 19298, 15876, 63473, 487...
[ 0.321044921875, 0.22705078125, 0.06805419921875, 0.2159423828125, 0.1114501953125, 0.130615234375, 0.13037109375, 0.053131103515625, 0.06646728515625, 0.134033203125, 0.1397705078125, 0.2103271484375, 0.08154296875, 0.001953125, 0.03143310546875, 0.0657958984375, 0.2052001953125, 0...
embed
41665226_c1
41665226
elixir
1
dummy_checkpw() {:error, :not_found, conn} end end end That is the code, and everything is compiling and I can see it's being sent through correctly. But for some reason the password is never being resolved. I made another user with the password "password" and even did something like this: checkpw("password", "$2b$12$...
dummy_checkpw() {:error, :not_found, conn} end end end That is the code, and everything is compiling and I can see it's being sent through correctly. But for some reason the password is never being resolved. I made another user with the password "password" and even did something like this: checkpw("password", "$2b$12$...
[ -0.0093994140625, -0.00811767578125, 0.0084228515625, -0.0021514892578125, 0.00130462646484375, 0.005950927734375, -0.01507568359375, -0.0076904296875, 0.007171630859375, -0.0218505859375, -0.00872802734375, 0.031494140625, 0.0113525390625, 0.0234375, -0.0208740234375, 0.01055908203125...
[ 8473, 1176, 78292, 254, 434, 132, 188800, 10869, 151645, 158, 19, 3564, 18151, 26818, 9969, 49725, 831, 1957, 8305, 26785, 4966, 31635, 78506, 83, 8306, 8035, 103608, 7228, 15700, 38937, 678, 13409, 47416, 12765, 1530, 78595, 452, 4677, 155...
[ 0.170654296875, 0.186279296875, 0.1903076171875, 0.091552734375, 0.1893310546875, 0.009857177734375, 0.16796875, 0.10302734375, 0.1572265625, 0.08953857421875, 0.05859375, 0.0950927734375, 0.1600341796875, 0.06707763671875, 0.0406494140625, 0.05474853515625, 0.01861572265625, 0.054...
embed
39066287_c0
39066287
elixir
0
Title: Elixir macros, quoting and unquoting Problem title: Elixir macros, quoting and unquoting Tags: elixir Problem: Elixir macros, quoting and unquoting I'm learning Elixir and experimenting with the Macro system. I am trying to make a variable available to a block that will be wrapped with other code by a macro, but...
Elixir macros, quoting and unquoting Elixir macros, quoting and unquoting elixir CompileError Loops Elixir Enum.each IO.puts Hello Elixir macros, quoting and unquoting I'm learning Elixir and experimenting with the Macro system. I am trying to make a variable available to a block that will be wrapped with other code by...
[ 0.0037384033203125, 0.0224609375, 0.0118408203125, 0.0098876953125, -0.0059814453125, 0.0068359375, 0.024169921875, -0.0054931640625, -0.0031585693359375, -0.041748046875, -0.03076171875, -0.0277099609375, 0.0172119140625, 0.0135498046875, -0.00897216796875, 0.00494384765625, -0.0194...
[ 25318, 38308, 111789, 9643, 1916, 136, 51, 41502, 7, 15296, 15612, 1340, 18468, 31611, 199694, 357, 316, 41581, 17780, 7077, 35378, 52080, 28007, 4727, 516, 5426, 31577, 77336, 19882, 46389, 137565, 678, 3789, 18151, 123019, 20594, 44691, 721...
[ 0.122802734375, 0.249267578125, 0.2127685546875, 0.1597900390625, 0.0318603515625, 0.010040283203125, 0.094482421875, 0.1741943359375, 0.015106201171875, 0.0714111328125, 0.128173828125, 0.134033203125, 0.1129150390625, 0.1220703125, 0.134765625, 0.04327392578125, 0.167236328125, 0...
embed
52586561_c1
52586561
elixir
1
def handle_cast({:send_msg,_},{[],_,_}), do: Process.exit(self(),"crew empty") def handle_cast({:send_msg, _msg}, {crew, msg_counter, watcher}=state) do rcpt = Enum.random(crew) ## recipient of the msg if Process.alive?(rcpt) do IO.inspect({self(),rcpt}, label: "send message from/to") rcv_msg(rcpt, "ChitChat") send_ms...
def handle_cast({:send_msg,_},{[],_,_}), do: Process.exit(self(),"crew empty") def handle_cast({:send_msg, _msg}, {crew, msg_counter, watcher}=state) do rcpt = Enum.random(crew) ## recipient of the msg if Process.alive?(rcpt) do IO.inspect({self(),rcpt}, label: "send message from/to") rcv_msg(rcpt, "ChitChat") send_ms...
[ 0.0032196044921875, 0.01275634765625, -0.00360107421875, 0.026611328125, -0.005035400390625, -0.00537109375, 0.0028839111328125, -0.004791259765625, 0.0106201171875, -0.0311279296875, 0.0016937255859375, -0.00180816650390625, 0.00567626953125, 0.0302734375, 0.0264892578125, -0.00344848...
[ 8, 420, 34831, 55741, 39285, 4432, 177, 54, 123996, 5, 23399, 39379, 7612, 434, 201505, 68163, 71013, 39544, 61340, 19437, 6328, 316, 46258, 134003, 24056, 17780, 16711, 67967, 26008, 1295, 188, 6, 334, 51379, 171126, 25379, 157, 62479, 113...
[ 0.10443115234375, 0.046905517578125, 0.25146484375, 0.2413330078125, 0.1656494140625, 0.148681640625, 0.117431640625, 0.0252685546875, 0.1307373046875, 0.053466796875, 0.1383056640625, 0.08056640625, 0.115234375, 0.0733642578125, 0.15625, 0.07037353515625, 0.070068359375, 0.1625976...
embed
64624305_c0
64624305
elixir
0
Title: Create nested associations Problem title: Create nested associations Tags: associations, ecto, elixir Problem: Create nested associations Please consider the following schema: schema "businesses" do ... has_many :contacts, Contact has_many :conversations, Conversation ... end schema "contacts" do ... belongs_to ...
Create nested associations Create nested associations associations ecto elixir Create has_many Contact Conversation belongs_to Business has_one Message create_conversation Ecto.build_assoc Ecto.Changeset.change Ecto.Changeset.put_assoc Repo.insert Create nested associations Please consider the following schema: This an...
[ -0.0004253387451171875, 0.007171630859375, -0.0091552734375, 0.0107421875, 0.00848388671875, 0.01153564453125, -0.01123046875, -0.0198974609375, 0.0181884765625, -0.036865234375, -0.00119781494140625, 0.018798828125, 0.027587890625, 0.0255126953125, 0.0081787109375, 0.00787353515625, ...
[ 151313, 8512, 71, 151747, 60751, 15296, 38308, 1556, 669, 53, 27627, 1657, 7864, 10617, 14249, 3630, 48205, 28282, 2271, 241, 44150, 177149, 73395, 127008, 126, 152028, 853, 771, 73, 33657, 61903, 831, 3884, 6626, 98, 36716, 103510, 43240, ...
[ 0.1651611328125, 0.2322998046875, 0.1259765625, 0.256103515625, 0.17138671875, 0.0625, 0.1982421875, 0.07977294921875, 0.085693359375, 0.04638671875, 0.1805419921875, 0.013458251953125, 0.1561279296875, 0.049774169921875, 0.1539306640625, 0.11376953125, 0.1173095703125, 0.176391601...
embed
33811899_c0
33811899
elixir
0
Title: Elixir errors using `inet_res` library Problem title: Elixir errors using `inet_res` library Tags: elixir, erlang Problem: Elixir errors using `inet_res` library I have some trouble with inet_res from Erlang. I tried to use it from my Elixir shell and also from my Erlang shell but I have unexpected behaviour. So...
Elixir errors using `inet_res` library Elixir errors using `inet_res` library elixir erlang Elixir inet_res inet_res.lookup disneur.me aspmx.l.google.com alt3.aspmx.l.google.com alt4.aspmx.l.google.com alt1.aspmx.l.google.com alt2.aspmx.l.google.com inet_res:lookup google.com Elixir errors using `inet_res` library I ha...
[ -0.01116943359375, 0.0003662109375, 0.0052490234375, -0.0211181640625, 0.0203857421875, -0.0186767578125, -0.0040283203125, 0.0137939453125, -0.006011962890625, -0.02783203125, 0.031982421875, -0.0089111328125, -0.005706787109375, 0.00897216796875, 0.0201416015625, 0.0076904296875, 0...
[ 25318, 38308, 18499, 17368, 73, 126, 454, 2109, 35773, 15296, 72, 3066, 23, 64747, 2037, 2837, 86, 474, 282, 26822, 425, 59875, 2641, 363, 617, 26484, 1294, 63134, 1295, 1004, 37842, 4527, 128019, 241957, 224833, 160193, 19048, 6713, 77758,...
[ 0.1148681640625, 0.259765625, 0.2000732421875, 0.04071044921875, 0.026763916015625, 0.1280517578125, 0.0307464599609375, 0.2159423828125, 0.166748046875, 0.0584716796875, 0.053558349609375, 0.23828125, 0.0618896484375, 0.049774169921875, 0.091064453125, 0.0797119140625, 0.05853271484...
embed
41007428_c0
41007428
elixir
0
Title: Phoenix, Does conn redirect stop all further processing? Problem title: Phoenix, Does conn redirect stop all further processing? Tags: elixir, nested, phoenix-framework Problem: Phoenix, Does conn redirect stop all further processing? I have a controller where I would like to add facebook page id and access toke...
Phoenix, Does conn redirect stop all further processing? Phoenix, Does conn redirect stop all further processing? elixir nested phoenix-framework Phoenix Does response_from_facebook Repo.insert user_path user_id Repo.update Phoenix, Does conn redirect stop all further processing? I have a controller where I would like ...
[ -0.015380859375, 0.0054931640625, 0.01251220703125, -0.002166748046875, -0.01214599609375, 0.0166015625, -0.007415771484375, -0.0341796875, -0.0027923583984375, -0.056396484375, 0.00162506103515625, -0.015625, -0.0034027099609375, 0.003936767578125, 0.004913330078125, 0.00677490234375,...
[ 133720, 101790, 158, 19, 456, 80581, 7279, 756, 53333, 9433, 214, 15296, 38308, 8512, 71, 53073, 33, 4084, 160328, 18244, 57553, 161063, 32314, 853, 771, 73, 33657, 38937, 128405, 532, 117008, 185373, 1884, 15190, 10899, 9191, 3447, 17203, ...
[ 0.2822265625, 0.0537109375, 0.1534423828125, 0.1876220703125, 0.1456298828125, 0.28076171875, 0.1942138671875, 0.10595703125, 0.1519775390625, 0.1207275390625, 0.0648193359375, 0.0301513671875, 0.17919921875, 0.230712890625, 0.07208251953125, 0.05743408203125, 0.06280517578125, 0.1...
embed
37629194_c0
37629194
elixir
0
Title: how to encrypt and decrypt with AES CBC 128 in Elixir Problem title: how to encrypt and decrypt with AES CBC 128 in Elixir Tags: phoenix-framework, ruby, erlang, elixir Problem: how to encrypt and decrypt with AES CBC 128 in Elixir I have an app in Rails with following methods to encrypt and decrypt a text and c...
how to encrypt and decrypt with AES CBC 128 in Elixir how to encrypt and decrypt with AES CBC 128 in Elixir phoenix-framework ruby erlang elixir AES CBC Elixir OpenSSL::Cipher::AES.new cipher.encrypt cipher.padding cipher.key hex_to_bin Digest::SHA1.hexdigest cipher_text cipher.update cipher.final bin_to_hex encrypted....
[ 0.00057220458984375, -0.0029754638671875, -0.01397705078125, 0.017822265625, 0.0238037109375, -0.0208740234375, 0.00860595703125, -0.00115966796875, -0.0003509521484375, -0.00958251953125, 0.00640869140625, 0.00616455078125, 0.015380859375, 0.043212890625, -0.0015869140625, -0.01635742...
[ 3642, 22, 136791, 136, 8, 678, 62, 6706, 313, 24318, 26560, 23, 25318, 38308, 47, 53073, 33, 4084, 160328, 21922, 53, 72, 3066, 15296, 13527, 30508, 94266, 284, 4299, 19770, 764, 425, 188, 7568, 49688, 67619, 418, 1106, 4803, 22829, 117...
[ 0.06109619140625, 0.07275390625, 0.2430419921875, 0.1038818359375, 0.135009765625, 0.091796875, 0.05303955078125, 0.155029296875, 0.052490234375, 0.2265625, 0.277587890625, 0.05828857421875, 0.1258544921875, 0.26806640625, 0.020599365234375, 0.03253173828125, 0.08251953125, 0.16210...
embed
44562385_c0
44562385
elixir
0
Title: compare 2 structs and extract the changes Elixir Phoenix Problem title: compare 2 structs and extract the changes Elixir Phoenix Tags: phoenix-framework, ecto, elixir Problem: compare 2 structs and extract the changes Elixir Phoenix There are 2 structs, one is Camera, and other one is changeset changes, I am loo...
compare 2 structs and extract the changes Elixir Phoenix compare 2 structs and extract the changes Elixir Phoenix phoenix-framework ecto elixir Elixir Phoenix Camera __meta__ Ecto.Schema.Metadata access_rights alert_emails cloud_recordings external_host external_http_port h264 media.amp image.cgi video.cgi created_at E...
[ 0.0018463134765625, -0.010498046875, 0.016357421875, 0.0091552734375, 0.01611328125, 0.0233154296875, -0.01446533203125, 0.0040283203125, 0.00830078125, -0.004608154296875, 0.0155029296875, 0.01708984375, 0.0264892578125, -0.016845703125, 0.0211181640625, -0.00579833984375, -0.028808...
[ 69101, 116, 36716, 7, 136, 125663, 65572, 25318, 38308, 133720, 33, 4084, 160328, 60751, 15296, 44813, 35273, 241, 44150, 25452, 17203, 54969, 110342, 76746, 32271, 173591, 71041, 2450, 25133, 29569, 1202, 75935, 25607, 25501, 8770, 57964, 4568...
[ 0.2034912109375, 0.1708984375, 0.2152099609375, 0.03900146484375, 0.047210693359375, 0.1968994140625, 0.2156982421875, 0.108642578125, 0.223876953125, 0.22265625, 0.018951416015625, 0.07061767578125, 0.08489990234375, 0.169677734375, 0.063232421875, 0.2130126953125, 0.0517578125, 0...
embed
36866750_c0
36866750
elixir
0
Title: Using a variable Struct Problem title: Using a variable Struct Tags: elixir Problem: Using a variable Struct I'm trying to write DRY Elixir, with Dave Thomas' book still in the post! Below you see a part of a Phoenix controller that was auto-generated for a Card . In practise I have a variety of products that wi...
Using a variable Struct Using a variable Struct elixir Using Struct Card Api.Card Book Card.changeset card_params Repo.insert put_status put_resp_header card_path show.json new_key.json product.id estimate_path Using a variable Struct I'm trying to write DRY Elixir, with Dave Thomas' book still in the post! Below you s...
[ -0.006744384765625, -0.004974365234375, 0.0030975341796875, -0.0244140625, 0.02197265625, -0.0028533935546875, -0.019775390625, -0.01153564453125, 0.0032501220703125, -0.03759765625, -0.0001926422119140625, 0.015380859375, 0.01190185546875, 0.009033203125, 0.007659912109375, -0.0192871...
[ 345, 77336, 63667, 15390, 15296, 38308, 23660, 5787, 14, 156119, 27432, 152028, 3509, 20596, 2500, 771, 3884, 45215, 2109, 254, 31251, 128405, 7639, 1681, 19770, 12996, 532, 25902, 67, 31577, 33022, 391, 34388, 25318, 103383, 14978, 12877, 13...
[ 0.074951171875, 0.281982421875, 0.2430419921875, 0.1712646484375, 0.08465576171875, 0.1995849609375, 0.2091064453125, 0.037261962890625, 0.056365966796875, 0.1507568359375, 0.09210205078125, 0.103515625, 0.089599609375, 0.1676025390625, 0.054595947265625, 0.11669921875, 0.04174804687...
embed
65565051_c1
65565051
elixir
1
, %{}} def init(nil), do: {:ok, %{}} @impl GenServer def handle_call({:place_order, order}, _from, _state), do: {:reply, HTTPClient.place_order(order), %{}} @impl GenServer def handle_call({:delete_order, order_id}, _from, _state), do: {:reply, HTTPClient.delete_order(order_id), %{}} @impl GenServer def handle_call({:g...
, %{}} def init(nil), do: {:ok, %{}} @impl GenServer def handle_call({:place_order, order}, _from, _state), do: {:reply, HTTPClient.place_order(order), %{}} @impl GenServer def handle_call({:delete_order, order_id}, _from, _state), do: {:reply, HTTPClient.delete_order(order_id), %{}} @impl GenServer def handle_call({:g...
[ -0.0108642578125, 0.00543212890625, 0.013671875, -0.00138092041015625, 0.0145263671875, -0.0103759765625, -0.0159912109375, -0.03564453125, 0.0118408203125, 0.01611328125, 0.0045166015625, 0.031494140625, 0.01300048828125, 0.004791259765625, 0.0054931640625, -0.0164794921875, -0.0025...
[ 4, 1745, 47391, 8, 420, 23, 217, 17324, 54, 685, 1374, 116120, 15937, 193348, 34831, 85763, 23935, 80596, 12989, 161063, 61340, 62479, 135913, 150, 2517, 5, 8520, 532, 3794, 5584, 35735, 11627, 16934, 61687, 2046, 12013, 397, 3687, 154109, ...
[ 0.025482177734375, 0.010467529296875, 0.0254364013671875, 0.13134765625, 0.0977783203125, 0.0987548828125, 0.1627197265625, 0.1650390625, 0.047088623046875, 0.116943359375, 0.022430419921875, 0.083251953125, 0.1876220703125, 0.209228515625, 0.14208984375, 0.157958984375, 0.1252441406...
embed
45366732_c1
45366732
elixir
1
reproduce same behaviour with GenServer: defmodule FunServer do use GenServer def start_link do GenServer.start_link(__MODULE__, :ok, name: __MODULE__) end def init(:ok) do {:ok, :initiated} end def handle_info(:join, msg) when msg == :initiated do IO.inspect("Handling join [From GenServer]") {:noreply, :initiated} en...
reproduce same behaviour with GenServer: defmodule FunServer do use GenServer def start_link do GenServer.start_link(__MODULE__, :ok, name: __MODULE__) end def init(:ok) do {:ok, :initiated} end def handle_info(:join, msg) when msg == :initiated do IO.inspect("Handling join [From GenServer]") {:noreply, :initiated} en...
[ -0.01220703125, 0.017822265625, -0.015869140625, -0.0179443359375, -0.0012969970703125, -0.0023651123046875, 0.00885009765625, -0.0177001953125, 0.018310546875, -0.02294921875, -0.00457763671875, 0.029541015625, 0.0230712890625, 0.019775390625, 0.01324462890625, -0.000873565673828125, ...
[ 42238, 5701, 224833, 678, 15937, 193348, 8, 420, 83279, 28670, 4527, 4034, 10187, 17137, 12013, 397, 129984, 685, 3564, 23, 943, 34831, 7319, 513, 68163, 17780, 16711, 135679, 2069, 33284, 168407, 157, 62479, 5983, 4745, 6159, 93, 48310, 11...
[ 0.1527099609375, 0.05389404296875, 0.1741943359375, 0.00372314453125, 0.1827392578125, 0.251708984375, 0.09539794921875, 0.0765380859375, 0.1695556640625, 0.1729736328125, 0.097900390625, 0.1380615234375, 0.2158203125, 0.1014404296875, 0.0721435546875, 0.05975341796875, 0.04962158203...
embed
45230221_c0
45230221
elixir
0
Title: How can I run Redix in supervision tree in phoenix elixir chat app and access from different module Problem title: How can I run Redix in supervision tree in phoenix elixir chat app and access from different module Tags: elixir, phoenix-framework, redis Problem: How can I run Redix in supervision tree in phoenix...
How can I run Redix in supervision tree in phoenix elixir chat app and access from different module How can I run Redix in supervision tree in phoenix elixir chat app and access from different module elixir phoenix-framework redis different How Redix Redix.start_link example.com localhost:6379 Redix.command SET Start E...
[ -0.005401611328125, 0.00872802734375, 0.0062255859375, 0.006011962890625, 0.0167236328125, 0.0191650390625, 0.0057373046875, 0.0019073486328125, -0.006195068359375, -0.031494140625, 0.017578125, -0.01434326171875, 0.0361328125, 0.01055908203125, -0.00726318359375, 0.005340576171875, ...
[ 11249, 11675, 6096, 4084, 1601, 25826, 53201, 53073, 33, 15296, 38308, 3245, 4027, 17203, 12921, 88996, 831, 23, 160328, 4842, 164, 17137, 10187, 27781, 40294, 141520, 12018, 128565, 13794, 44150, 133720, 171126, 771, 108259, 79459, 7, 96472, ...
[ 0.011627197265625, 0.126220703125, 0.1890869140625, 0.230712890625, 0.1593017578125, 0.159423828125, 0.1920166015625, 0.032989501953125, 0.030303955078125, 0.0474853515625, 0.1513671875, 0.1412353515625, 0.09368896484375, 0.122314453125, 0.119384765625, 0.15234375, 0.0220184326171875...
embed
69021822_c0
69021822
elixir
0
Title: How to implement default behavior with a using macro? Problem title: How to implement default behavior with a using macro? Tags: elixir, abstract-syntax-tree Problem: How to implement default behavior with a using macro? I have a behavior module and an implementation for use in production. During testing, I want...
How to implement default behavior with a using macro? How to implement default behavior with a using macro? elixir abstract-syntax-tree ArgumentError macro How BehaviorApi String.t MyDefaultApiImplementation Api __using__ _opts Enum.map MyDefaultApiImplementation.__info__ func_atom func_arity WRITE ACCOUNT ARITY MyOver...
[ -0.017333984375, 0.0289306640625, 0.0029144287109375, 0.007415771484375, -0.002227783203125, 0.0087890625, 0.006561279296875, -0.0228271484375, 0.0020294189453125, -0.0125732421875, -0.01409912109375, -0.00021648406982421875, 0.0008392333984375, 0.0301513671875, 0.02001953125, -0.00402...
[ 11249, 47, 29479, 114977, 123166, 678, 17368, 111789, 10, 15296, 38308, 164789, 12654, 86531, 62600, 112140, 18468, 31611, 873, 98409, 1434, 23351, 2646, 187423, 11, 7136, 128878, 19929, 5787, 14, 223, 214, 2146, 316, 62346, 7319, 7477, 5928,...
[ 0.10137939453125, 0.0404052734375, 0.2412109375, 0.310791015625, 0.2685546875, 0.151123046875, 0.197265625, 0.280029296875, 0.028961181640625, 0.058319091796875, 0.2113037109375, 0.16064453125, 0.024383544921875, 0.116943359375, 0.1781005859375, 0.1781005859375, 0.073974609375, 0.0...
embed
41536628_c1
41536628
elixir
1
.json", session: session) user -> conn |> put_status(:unauthorized) |> render("error.json", user_params) true -> dummy_checkpw conn |> put_status(:unauthorized) |> render("error.json", user_params) end end end Then I created the following plug to confirm authentication and set current user: defmodule Prode.Authenticati...
.json", session: session) user -> conn |> put_status(:unauthorized) |> render("error.json", user_params) true -> dummy_checkpw conn |> put_status(:unauthorized) |> render("error.json", user_params) end end end Then I created the following plug to confirm authentication and set current user: defmodule Prode.Authenticati...
[ -0.0216064453125, 0.0106201171875, 0.0081787109375, -0.008056640625, -0.0079345703125, 0.0133056640625, -0.0142822265625, -0.0145263671875, -0.005950927734375, -0.05078125, -0.003997802734375, 0.039794921875, -0.01336669921875, -0.01116943359375, -0.0147705078125, -0.002777099609375, ...
[ 5, 170, 1681, 56002, 38937, 33079, 158, 19, 3884, 45215, 1946, 1003, 5922, 29367, 89159, 188800, 2500, 8256, 29568, 8473, 1176, 78292, 434, 75935, 25632, 76329, 39563, 195734, 5423, 43581, 8, 420, 83279, 1250, 112, 63250, 24927, 194351, 119...
[ 0.0802001953125, 0.127685546875, 0.185791015625, 0.2015380859375, 0.1602783203125, 0.014801025390625, 0.13671875, 0.1650390625, 0.0601806640625, 0.1087646484375, 0.025421142578125, 0.08935546875, 0.07421875, 0.0748291015625, 0.10467529296875, 0.1781005859375, 0.0660400390625, 0.019...
embed
68828319_c0
68828319
elixir
0
Title: ** (Mix) Could not compile dependency :epipe, Problem title: ** (Mix) Could not compile dependency :epipe, Tags: elixir-mix, elixir Problem: ** (Mix) Could not compile dependency :epipe, I am trying out Crawly with this tutorial https://hexdocs.pm/crawly/tutorial.html I add the needed dependencies defp deps do [...
** (Mix) Could not compile dependency :epipe, ** (Mix) Could not compile dependency :epipe, elixir-mix elixir Mix Could deps.get Homebase Crawly.Spider base_url www.homebase.co.uk start_urls parse_item _response Crawly.ParsedItem rebar3 crawler2 _build You deps.compile deps.update deps.clean ** (Mix) Could not compile ...
[ 0.007232666015625, 0.016845703125, -0.016357421875, 0.0194091796875, 0.00872802734375, 0.01251220703125, -0.034423828125, 0.00115203857421875, -0.00555419921875, -0.005218505859375, -0.0211181640625, -0.0093994140625, 0.0028228759765625, 0.0284423828125, 0.016357421875, 0.0166015625, ...
[ 594, 4084, 191147, 959, 9969, 1340, 42548, 27771, 67450, 1081, 15296, 38308, 62015, 37286, 8, 6423, 3794, 2005, 37382, 34734, 434, 538, 31923, 62160, 3647, 25002, 29552, 2247, 4034, 366, 134719, 28636, 2982, 456, 1299, 363, 235879, 56, 304,...
[ 0.14599609375, 0.2095947265625, 0.116455078125, 0.10614013671875, 0.173828125, 0.1448974609375, 0.1956787109375, 0.1025390625, 0.1214599609375, 0.233642578125, 0.05267333984375, 0.195068359375, 0.23681640625, 0.257080078125, 0.18994140625, 0.188720703125, 0.04986572265625, 0.033050...
embed
36983451_c1
36983451
elixir
1
conn, session_path(@conn, :create), [as: :session], fn f -> %> <div class="form-group"> <%= text_input f, :email, placeholder: "email" %> </div> <%= submit "Log in" %> <% end %> web/controllers/session_controller.ex defmodule MyApp.SessionController do use MyApp.Web, :controller def new(conn, _) do render conn, "new.ht...
conn, session_path(@conn, :create), [as: :session], fn f -> %> <div class="form-group"> <%= text_input f, :email, placeholder: "email" %> </div> <%= submit "Log in" %> <% end %> web/controllers/session_controller.ex defmodule MyApp.SessionController do use MyApp.Web, :controller def new(conn, _) do render conn, "new.ht...
[ 0.0031585693359375, 0.017822265625, -0.0147705078125, 0.000579833984375, 0.00885009765625, 0.0157470703125, -0.01806640625, -0.0196533203125, 0.0076904296875, -0.058837890625, -0.01239013671875, 0.0015106201171875, -0.01202392578125, 0.002593994140625, -0.0198974609375, -0.007995605468...
[ 158, 19, 56002, 128405, 981, 2271, 7612, 2182, 162, 169234, 14783, 1238, 33079, 30618, 18507, 5037, 51588, 7986, 25501, 3687, 31958, 137447, 113972, 23, 3564, 1467, 81988, 5, 3355, 8, 420, 83279, 2646, 39179, 294, 90, 6889, 175904, 603, 4...
[ 0.1865234375, 0.192626953125, 0.24072265625, 0.210693359375, 0.1053466796875, 0.1458740234375, 0.1087646484375, 0.1019287109375, 0.051513671875, 0.2061767578125, 0.12353515625, 0.0841064453125, 0.0172882080078125, 0.108154296875, 0.06982421875, 0.203857421875, 0.1806640625, 0.10314...
embed
73598031_c0
73598031
elixir
0
Title: what&#x27;s meaning of `~w(username full_name password)a`? Problem title: what&#x27;s meaning of `~w(username full_name password)a`? Tags: sigils, elixir Problem: what's meaning of `~w(username full_name password)a`? In hexpm project, The line cast(%User{}, params, ~w(username full_name password)a) . I know it m...
what&#x27;s meaning of `~w(username full_name password)a`? what&#x27;s meaning of `~w(username full_name password)a`? sigils elixir full_name User Application.get_env user_confirm validate_required cast_assoc Email.changeset cast_embed update_change String.downcase validate_length validate_format username_regex usernam...
[ -0.018310546875, -0.00848388671875, -0.005340576171875, 0.01251220703125, -0.010009765625, -0.00160980224609375, 0.004638671875, 0.01007080078125, 0.01708984375, 0.010498046875, 0.00640869140625, 0.0030670166015625, 0.007568359375, 0.0218505859375, -0.036865234375, -0.021240234375, 0...
[ 2367, 3768, 91084, 2306, 434, 65918, 11627, 4393, 78506, 11, 1144, 7870, 15296, 38308, 53400, 104921, 334, 38937, 38949, 44622, 3181, 37702, 14886, 152028, 3509, 13482, 28350, 34695, 58437, 51727, 10901, 3355, 75161, 158928, 70488, 36998, 2816,...
[ 0.0185699462890625, 0.1324462890625, 0.1771240234375, 0.1346435546875, 0.2342529296875, 0.10626220703125, 0.135498046875, 0.140380859375, 0.250244140625, 0.1729736328125, 0.143798828125, 0.19482421875, 0.08636474609375, 0.1988525390625, 0.09814453125, 0.078369140625, 0.09027099609375...
embed
52763533_c1
52763533
elixir
1
.get_comment!(id) #from comment context render(conn, "show.json", comment: comment end When I try to add new comment in post/:id/comments, it throws this error: (Ecto.Query.CastError) deps/ecto/lib/ecto/repo/queryable.ex:348: value `%{"description" => "bitcoin", "post_id" => "2", "name" => "ethereum"}` in `where` canno...
.get_comment!(id) #from comment context render(conn, "show.json", comment: comment end When I try to add new comment in post/:id/comments, it throws this error: (Ecto.Query.CastError) deps/ecto/lib/ecto/repo/queryable.ex:348: value `%{"description" => "bitcoin", "post_id" => "2", "name" => "ethereum"}` in `where` canno...
[ 0.00531005859375, -0.0033721923828125, -0.01165771484375, -0.0106201171875, 0.01544189453125, 0.00567626953125, -0.02978515625, -0.006927490234375, 0.0089111328125, -0.042236328125, 0.01409912109375, 0.01190185546875, 0.0234375, 0.001953125, -0.023681640625, -0.0133056640625, -0.0341...
[ 5, 3794, 277, 674, 90295, 532, 161063, 6868, 43701, 89159, 2271, 19, 31374, 170, 1681, 3564, 14847, 87, 9790, 15190, 3525, 23, 1305, 64, 12, 9035, 104250, 903, 18499, 647, 44150, 41732, 1294, 174830, 18468, 31611, 8, 6423, 60751, 5612, ...
[ 0.0299530029296875, 0.126708984375, 0.20947265625, 0.281982421875, 0.09033203125, 0.179443359375, 0.126220703125, 0.2958984375, 0.2249755859375, 0.165283203125, 0.0552978515625, 0.0306396484375, 0.1263427734375, 0.07177734375, 0.14111328125, 0.1263427734375, 0.003021240234375, 0.02...
embed
47752956_c0
47752956
elixir
0
Title: How to setup a phoenix channel for say hundreds of topics? Problem title: How to setup a phoenix channel for say hundreds of topics? Tags: elixir, phoenix-channels, phoenix-framework Problem: How to setup a phoenix channel for say hundreds of topics? Suppose there are some users, say 100. Each user has, say 100 ...
How to setup a phoenix channel for say hundreds of topics? How to setup a phoenix channel for say hundreds of topics? elixir phoenix-channels phoenix-framework How Join socket.channel channel.join console.log Joined Unable channel.on name_changed How to setup a phoenix channel for say hundreds of topics? Suppose there ...
[ -0.005096435546875, 0.005584716796875, -0.005828857421875, -0.0191650390625, 0.006500244140625, 0.01397705078125, -0.0103759765625, -0.004608154296875, 0.00433349609375, -0.0439453125, 0.00396728515625, -0.0035400390625, 0.0301513671875, 0.022216796875, -0.0037689208984375, 0.017211914...
[ 11249, 47, 169581, 10, 53073, 33, 4084, 86723, 100, 5154, 75281, 28451, 7, 15296, 38308, 17032, 8876, 160328, 18244, 113053, 221, 27853, 513, 130250, 4867, 992, 2886, 191, 9351, 152028, 121691, 72095, 805, 38937, 55769, 169209, 99764, 98423, ...
[ 0.095703125, 0.02935791015625, 0.21875, 0.07037353515625, 0.123291015625, 0.1654052734375, 0.212890625, 0.275146484375, 0.11962890625, 0.06219482421875, 0.2113037109375, 0.25146484375, 0.10986328125, 0.048095703125, 0.1737060546875, 0.145751953125, 0.1427001953125, 0.0653076171875,...
embed
49607976_c0
49607976
elixir
0
Title: elixir mock inner function url request Problem title: elixir mock inner function url request Tags: testing, mocking, elixir Problem: elixir mock inner function url request How could I mock a specific api call similar to how python requests-mock works: with requests_mock.mock() as m: m.get('http://test.com', text...
elixir mock inner function url request elixir mock inner function url request testing mocking elixir requests_mock.mock m.get test.com requests.get API make_call Item build_request API.make_call github_api.make_request elixir mock inner function url request How could I mock a specific api call similar to how python req...
[ -0.0260009765625, 0.019287109375, 0.00927734375, -0.003814697265625, 0.0303955078125, 0.0087890625, 0.0118408203125, -0.0130615234375, 0.00030517578125, 0.0004100799560546875, -0.00311279296875, -0.00830078125, -0.0118408203125, 0.0181884765625, 0.0284423828125, -0.015380859375, 0.01...
[ 15296, 38308, 8698, 92, 75414, 32354, 25002, 50336, 134234, 931, 41324, 432, 2594, 347, 3794, 3034, 277, 61687, 3249, 85763, 78426, 45367, 107, 75616, 55898, 62270, 32102, 40897, 11249, 5809, 29458, 31470, 11782, 21373, 17198, 50828, 43240, 2...
[ 0.1219482421875, 0.264892578125, 0.25341796875, 0.1854248046875, 0.2001953125, 0.16162109375, 0.1845703125, 0.2139892578125, 0.1771240234375, 0.1878662109375, 0.1468505859375, 0.1632080078125, 0.1572265625, 0.048828125, 0.03814697265625, 0.203369140625, 0.1285400390625, 0.169067382...
embed
76774258_c1
76774258
elixir
1
efb2f00-2be4-11ee-8303-a463a172bc38/file1.pdf /zip_files_api/folder_test/3efb2f00-2be4-11ee-8303-a463a172bc38/file2.pdf Errors encountered. No output created. Done. Input errors, so no output created. I have verified that the input_files list contains valid paths to existing PDF files, and the output_file is also a val...
efb2f00-2be4-11ee-8303-a463a172bc38/file1.pdf /zip_files_api/folder_test/3efb2f00-2be4-11ee-8303-a463a172bc38/file2.pdf Errors encountered. No output created. Done. Input errors, so no output created. I have verified that the input_files list contains valid paths to existing PDF files, and the output_file is also a val...
[ -0.002685546875, 0.0198974609375, -0.003448486328125, 0.01116943359375, -0.0033721923828125, 0.025390625, -0.0206298828125, -0.0247802734375, -0.01214599609375, 0.04052734375, 0.0079345703125, 0.0159912109375, 0.0218505859375, 0.04052734375, 0.0111083984375, 0.0123291015625, -0.02392...
[ 9129, 7049, 372, 16675, 7039, 1197, 174333, 130252, 10991, 29822, 15483, 50836, 40897, 42822, 6954, 4240, 5442, 212059, 190647, 438, 140992, 75935, 984, 360, 7077, 18499, 221, 110, 493, 107730, 5303, 70541, 35604, 60875, 47, 144573, 6859, 102...
[ 0.023773193359375, 0.040130615234375, 0.027679443359375, 0.0295257568359375, 0.00811767578125, 0.06964111328125, 0.13330078125, 0.10009765625, 0.14599609375, 0.1739501953125, 0.2091064453125, 0.099365234375, 0.0684814453125, 0.0679931640625, 0.1656494140625, 0.000396728515625, 0.0546...
embed
56830454_c0
56830454
elixir
0
Title: How can I query the count of the intersection of IDs from two different join tables Problem title: How can I query the count of the intersection of IDs from two different join tables Tags: sql, elixir, ecto Problem: How can I query the count of the intersection of IDs from two different join tables I have a few ...
How can I query the count of the intersection of IDs from two different join tables How can I query the count of the intersection of IDs from two different join tables sql elixir ecto two How IDs user_tracks track_ids users_tracks Playlist PlaylistTrack pt.playlist_id p.id array_agg pt.track_id group_by order_by DESC H...
[ -0.0074462890625, -0.00823974609375, -0.000789642333984375, -0.0022735595703125, -0.00360107421875, 0.0081787109375, -0.009521484375, -0.0208740234375, 0.01251220703125, -0.06103515625, -0.011474609375, 0.0211181640625, 0.013916015625, 0.0113525390625, -0.017822265625, -0.0005340576171...
[ 11249, 831, 41, 1294, 54529, 1940, 7, 58994, 11338, 1295, 6626, 12921, 33284, 23180, 99247, 15296, 38308, 60751, 38937, 125728, 28560, 30185, 72095, 11356, 6562, 86147, 27037, 20706, 532, 9815, 21115, 12989, 51552, 115774, 53400, 69182, 765, ...
[ 0.0286865234375, 0.0548095703125, 0.120361328125, 0.1324462890625, 0.209228515625, 0.1427001953125, 0.1322021484375, 0.1387939453125, 0.1751708984375, 0.044219970703125, 0.145751953125, 0.1248779296875, 0.1920166015625, 0.197265625, 0.1488037109375, 0.0162353515625, 0.146728515625, ...
embed
33961924_c0
33961924
elixir
0
Title: How to use Repo module in my model file Problem title: How to use Repo module in my model file Tags: phoenix-framework, elixir, ecto Problem: How to use Repo module in my model file In my Tag model code schema "tags" do field :name, :string field :parent, :integer # parent tag id timestamps end def add_error_whe...
How to use Repo module in my model file How to use Repo module in my model file phoenix-framework elixir ecto UndefinedFunctionError How Repo add_error_when_not_exists_tag_id Repo.all Tag is_exists_tag_id Enum.reduce x.id params.parent add_error Integer.to_string tag_params Tag.changeset Tag.add_error_when_not_exists_t...
[ -0.01275634765625, -0.003204345703125, 0.01495361328125, 0.0054931640625, 0.01495361328125, 0.01129150390625, 0.00811767578125, -0.00775146484375, -0.00244140625, -0.08642578125, 0.0167236328125, -0.0257568359375, 0.022705078125, 0.00579833984375, 0.0184326171875, -0.0203857421875, -...
[ 11249, 4527, 853, 771, 88996, 23, 759, 3299, 11435, 47, 53073, 33, 4084, 160328, 18244, 15296, 38308, 60751, 79912, 5983, 97249, 18468, 15190, 188800, 3220, 10869, 54376, 6936, 532, 5584, 4837, 83, 316, 106357, 1022, 99547, 44401, 188, 7909...
[ 0.03363037109375, 0.1507568359375, 0.1739501953125, 0.26416015625, 0.2305908203125, 0.0733642578125, 0.04107666015625, 0.20361328125, 0.1502685546875, 0.005035400390625, 0.04132080078125, 0.05792236328125, 0.110107421875, 0.08282470703125, 0.000579833984375, 0.0596923828125, 0.163208...
embed
43915468_c0
43915468
elixir
0
Title: argument error when using Ecto.Schema.has_many Problem title: argument error when using Ecto.Schema.has_many Tags: ecto, elixir Problem: argument error when using Ecto.Schema.has_many @primary_key false @derive {Poison.Encoder, only: [:name, :rules, :users, :id]} schema "mandates" do field(:id, Ecto.UUID, primar...
argument error when using Ecto.Schema.has_many argument error when using Ecto.Schema.has_many ecto elixir ArgumentError Ecto.Schema.has_many User Mandate Compilation mandate.ex association.ex:474 Ecto.Association.Has.get_ref association.ex:424 Ecto.Association.Has.struct schema.ex:1679 Ecto.Schema.association schema.ex...
[ 0.0064697265625, 0.01434326171875, -0.01141357421875, 0.005889892578125, -0.007293701171875, -0.000675201416015625, -0.0113525390625, -0.01348876953125, 0.01416015625, -0.07080078125, -0.0108642578125, -0.02490234375, 0.0037841796875, 0.0084228515625, 0.00066375732421875, -0.0159912109...
[ 10750, 18499, 17368, 241, 44150, 25452, 11883, 10557, 669, 53, 60751, 15296, 38308, 112140, 18468, 31611, 53400, 86099, 67, 15612, 14, 20777, 13, 3355, 125413, 172725, 214813, 6495, 29087, 36716, 61903, 107035, 15110, 1405, 9007, 95103, 58875, ...
[ 0.294921875, 0.2010498046875, 0.107421875, 0.0853271484375, 0.27734375, 0.159423828125, 0.17529296875, 0.1646728515625, 0.1898193359375, 0.1209716796875, 0.2325439453125, 0.10479736328125, 0.2340087890625, 0.273681640625, 0.124267578125, 0.01104736328125, 0.21337890625, 0.200561523...
embed
62175443_c1
62175443
elixir
1
, "new.html", changeset: changeset, categories: categories) end def create(conn, %{"product" => product_params}) do case Inventory.create_product(product_params) do {:ok, product} -> conn |> put_flash(:info, "Product created successfully.") |> redirect(to: Routes.product_path(conn, :show, product)) {:error, %Ecto.Chang...
, "new.html", changeset: changeset, categories: categories) end def create(conn, %{"product" => product_params}) do case Inventory.create_product(product_params) do {:ok, product} -> conn |> put_flash(:info, "Product created successfully.") |> redirect(to: Routes.product_path(conn, :show, product)) {:error, %Ecto.Chang...
[ -0.0162353515625, 0.0113525390625, -0.00372314453125, -0.00970458984375, -0.00994873046875, -0.0004253387451171875, -0.0162353515625, -0.01531982421875, 0.004547119140625, 0.025146484375, 0.0022430419921875, 0.00017833709716796875, -0.0003147125244140625, -0.003448486328125, -0.002014160...
[ 54936, 7693, 65572, 126, 12, 39283, 3564, 8, 420, 28282, 2271, 19, 57877, 12996, 2500, 8256, 7225, 1353, 31667, 7612, 2182, 685, 158, 3884, 5544, 7319, 10752, 77193, 75935, 65771, 456, 80581, 188, 106015, 128405, 31374, 188800, 44150, 12700...
[ 0.1116943359375, 0.1917724609375, 0.19091796875, 0.205322265625, 0.003631591796875, 0.1708984375, 0.1104736328125, 0.1182861328125, 0.059783935546875, 0.2147216796875, 0.0933837890625, 0.07440185546875, 0.2237548828125, 0.21435546875, 0.10009765625, 0.12060546875, 0.05584716796875, ...
embed
40973079_c0
40973079
elixir
0
Title: Managing multiple TCP Connections in active-mode from one GenServer Problem title: Managing multiple TCP Connections in active-mode from one GenServer Tags: elixir, tcp Problem: Managing multiple TCP Connections in active-mode from one GenServer I generally use this pattern for interacting with a single TCP reso...
Managing multiple TCP Connections in active-mode from one GenServer Managing multiple TCP Connections in active-mode from one GenServer elixir tcp one Managing TCP Connections GenServer System.system_time gen_tcp.connect Connected Connect Error Process.send_after retry_connect handle_info proc_raw s.extra inet.setopts ...
[ 0.0003376007080078125, 0.0284423828125, -0.01263427734375, 0.01348876953125, 0.0045166015625, -0.028564453125, -0.01068115234375, 0.01153564453125, 0.00012159347534179688, -0.035400390625, 0.0274658203125, 0.00113677978515625, 0.01068115234375, 0.03564453125, -0.0003299713134765625, 0....
[ 1572, 66398, 48716, 384, 17854, 62448, 17514, 36457, 61170, 1295, 1632, 15937, 193348, 15296, 38308, 121422, 12353, 16751, 6032, 9226, 135457, 212059, 123996, 39285, 46327, 15123, 34831, 10402, 81456, 91, 112779, 126, 13784, 933, 991, 27853, 13...
[ 0.1260986328125, 0.082763671875, 0.208984375, 0.0244140625, 0.202392578125, 0.168701171875, 0.0615234375, 0.17724609375, 0.1422119140625, 0.012359619140625, 0.1148681640625, 0.15673828125, 0.2462158203125, 0.042724609375, 0.170654296875, 0.1505126953125, 0.028045654296875, 0.054046...
embed
19814930_c0
19814930
elixir
0
Title: Using IEx.pry raise compile error Problem title: Using IEx.pry raise compile error Tags: elixir Problem: Using IEx.pry raise compile error Sorry if this is a simple question but I am very new to elixir, and I don't have a erlang background. I am trying to run the following code, but It gives a error. ~ cat foo.e...
Using IEx.pry raise compile error Using IEx.pry raise compile error elixir CompileError Using IEx.pry Math IO.puts Math.add foo.ex:5 Required Integer Kernel Kernel.Typespec Record elixir_dispatch.erl:209 elixir_dispatch.expand_macro_fun elixir_dispatch.erl:197 elixir_dispatch.expand_require elixir_dispatch.erl:116 elix...
[ -0.01904296875, 0.01080322265625, -0.0211181640625, 0.0186767578125, 0.01251220703125, 0.030029296875, -0.003265380859375, -0.00634765625, -0.00168609619140625, -0.060791015625, -0.01007080078125, -0.004852294921875, 0.004180908203125, 0.0103759765625, 0.017822265625, -0.00515747070312...
[ 345, 6953, 87, 19279, 5, 254, 1294, 138804, 9969, 1340, 18499, 15296, 38308, 15612, 18468, 31611, 78804, 17780, 7077, 4028, 5775, 31, 3355, 758, 3181, 44401, 119125, 583, 196707, 16711, 54877, 4453, 56, 1126, 83613, 2940, 15322, 16498, 1206...
[ 0.08404541015625, 0.0350341796875, 0.1663818359375, 0.2025146484375, 0.037139892578125, 0.1273193359375, 0.2003173828125, 0.2489013671875, 0.182861328125, 0.1611328125, 0.187255859375, 0.13916015625, 0.257080078125, 0.168701171875, 0.14013671875, 0.051513671875, 0.140869140625, 0.1...
embed
36486805_c0
36486805
elixir
0
Title: OS X, Elixir, Ecto, Crypto, MySQL Problem title: OS X, Elixir, Ecto, Crypto, MySQL Tags: mysql, elixir, ecto Problem: OS X, Elixir, Ecto, Crypto, MySQL Trying out Elixir & Ecto (not Phoenix) in a sample app to help me learn the language. Running my program results in the following error: =INFO REPORT==== 7-Apr-2...
OS X, Elixir, Ecto, Crypto, MySQL OS X, Elixir, Ecto, Crypto, MySQL mysql elixir ecto UndefinedFunctionError Elixir Ecto Crypto MySQL INFO REPORT Apr-2016::16:23:28 Mix Could Tpos.start EXIT GenServer.call PID get_all Tpos.Data.Models.ProfitCenter otp_app Tpos.Repo Ecto.Adapters.MySQL crypto.hash protocol.ex:150 Mariae...
[ -0.0108642578125, 0.01953125, -0.00177764892578125, 0.01409912109375, 0.00165557861328125, 0.01031494140625, -0.0184326171875, -0.0152587890625, 0.00982666015625, -0.02490234375, 0.0228271484375, 0.004974365234375, 0.0228271484375, 0.0201416015625, 0.0023040771484375, -0.01434326171875...
[ 11787, 1193, 25318, 38308, 241, 44150, 201543, 157146, 759, 99247, 15296, 60751, 79912, 5983, 97249, 18468, 31611, 123552, 145269, 42053, 39112, 37286, 191147, 384, 7522, 17137, 29426, 6371, 15937, 193348, 85763, 436, 7146, 5584, 5, 137989, 140...
[ 0.1241455078125, 0.1253662109375, 0.151123046875, 0.27734375, 0.10009765625, 0.254638671875, 0.2208251953125, 0.1934814453125, 0.0684814453125, 0.15380859375, 0.108154296875, 0.2039794921875, 0.072998046875, 0.20166015625, 0.1673583984375, 0.1181640625, 0.058135986328125, 0.0952148...
embed
38686140_c1
38686140
elixir
1
that particular channel process memory consumption is 167 Mb. So I open a few new browser windows and each new channel process memory consumption grew to this amount after the "playlists:list" request. Is it normal behaviour? I would expect high memory consumption during database query and data offload, but it still t...
that particular channel process memory consumption is 167 Mb. So I open a few new browser windows and each new channel process memory consumption grew to this amount after the "playlists:list" request. Is it normal behaviour? I would expect high memory consumption during database query and data offload, but it still t...
[ -0.01458740234375, 0.0224609375, -0.006072998046875, 0.0255126953125, -0.016357421875, 0.0128173828125, -0.017333984375, -0.0035247802734375, 0.01397705078125, -0.04248046875, 0.0050048828125, -0.0089111328125, 0.0194091796875, 0.0361328125, 0.023681640625, 0.003448486328125, -0.0038...
[ 450, 17311, 86723, 9433, 98323, 18588, 254, 1363, 83, 87010, 42448, 9803, 10846, 3525, 31842, 54825, 12638, 3514, 434, 903, 41170, 7103, 20706, 6562, 12, 50336, 3638, 224833, 41206, 11192, 20271, 63399, 41, 2053, 5773, 63033, 7464, 5701, 12...
[ 0.061920166015625, 0.0928955078125, 0.2236328125, 0.1900634765625, 0.237060546875, 0.1695556640625, 0.1068115234375, 0.0369873046875, 0.023773193359375, 0.221923828125, 0.15673828125, 0.0819091796875, 0.018798828125, 0.04351806640625, 0.1737060546875, 0.1021728515625, 0.0340576171875...
embed
72882383_c0
72882383
elixir
0
Title: How do I recompile rebar3 with an Erlang/OTP 25 compiler? Running Elixir 1.13.4 Problem title: How do I recompile rebar3 with an Erlang/OTP 25 compiler? Running Elixir 1.13.4 Tags: elixir, rebar3 Problem: How do I recompile rebar3 with an Erlang/OTP 25 compiler? Running Elixir 1.13.4 I´m following the free scree...
How do I recompile rebar3 with an Erlang/OTP 25 compiler? Running Elixir 1.13.4 How do I recompile rebar3 with an Erlang/OTP 25 compiler? Running Elixir 1.13.4 elixir rebar3 escript:start/1 init:start_em/1 init:do_boot/3 How rebar3 Erlang OTP Running Elixir ERROR REPORT Jul-2022::12:47:58.702361 beam_load.c rebar3:pars...
[ -0.0067138671875, 0.001251220703125, -0.00518798828125, -0.00775146484375, 0.0157470703125, 0.002655029296875, 0.002227783203125, -0.00335693359375, 0.004638671875, -0.007659912109375, 0.00897216796875, -0.033203125, 0.0234375, 0.00775146484375, 0.0242919921875, 0.00494384765625, -0....
[ 11249, 456, 58875, 1340, 1299, 363, 678, 1004, 3066, 23658, 714, 9969, 34759, 28398, 25318, 38308, 172508, 38245, 15296, 32032, 17137, 80765, 18113, 180, 151206, 145269, 151159, 186, 302, 63033, 2500, 61477, 458, 24931, 16428, 37286, 191147, ...
[ 0.037322998046875, 0.112548828125, 0.1597900390625, 0.1397705078125, 0.2337646484375, 0.161865234375, 0.005889892578125, 0.0806884765625, 0.2083740234375, 0.1683349609375, 0.2076416015625, 0.12255859375, 0.1268310546875, 0.0565185546875, 0.056793212890625, 0.1810302734375, 0.16369628...
embed
48109602_c0
48109602
elixir
0
Title: Error while sending email using Swoosh Problem title: Error while sending email using Swoosh Tags: elixir-iex, elixir, smtp Problem: Error while sending email using Swoosh defmodule Mailapp.UserEmail do import Swoosh.Email def welcome(user) do new() |> to({user.name, user.email}) |> from({"Name Name", "firstname...
Error while sending email using Swoosh Error while sending email using Swoosh elixir-iex elixir smtp Swoosh Swoosh.Email Swoosh.TestAssertions Error retries_exceeded network_failure smtp.gmail.com Users USER Desktop Compiling Generated Interactive Elixir Ctrl ENTER Mailapp.UserEmail.welcome Name example.name gmail.com ...
[ -0.00921630859375, 0.02197265625, -0.0164794921875, -0.0028076171875, 0.0042724609375, 0.0089111328125, -0.0203857421875, -0.0078125, -0.01123046875, 0.006195068359375, -0.007598876953125, 0.01361083984375, -0.002532958984375, 0.0024871826171875, 0.023193359375, -0.006317138671875, -...
[ 212059, 12960, 135834, 3340, 17368, 159, 3613, 32067, 15296, 38308, 14, 3355, 14050, 18, 254, 161994, 111337, 16865, 10267, 10484, 329, 33120, 120540, 7095, 53400, 50184, 141423, 5337, 71232, 25318, 68847, 116563, 9007, 8420, 27781, 11627, 1341...
[ 0.2144775390625, 0.1341552734375, 0.1588134765625, 0.1878662109375, 0.1336669921875, 0.0880126953125, 0.2080078125, 0.26611328125, 0.06494140625, 0.195556640625, 0.001495361328125, 0.14697265625, 0.0386962890625, 0.037750244140625, 0.0885009765625, 0.10687255859375, 0.1282958984375, ...
embed
56688664_c1
56688664
elixir
1
to press enter twice. iex interprets the second enter as it normally would and returns nil . (k)ill (n)ext (r)eturn: r nil If I've pressed k and n a bunch of times, it either does this: (k)ill (n)ext (r)eturn: r ** (EXIT from #PID<0.104.0>) shell process exited with reason: killed Interactive Elixir (1.8.2) - press Ct...
to press enter twice. iex interprets the second enter as it normally would and returns nil . (k)ill (n)ext (r)eturn: r nil If I've pressed k and n a bunch of times, it either does this: (k)ill (n)ext (r)eturn: r ** (EXIT from #PID<0.104.0>) shell process exited with reason: killed Interactive Elixir (1.8.2) - press Ct...
[ -0.007781982421875, 0.0279541015625, 0.001495361328125, 0.0198974609375, 0.01068115234375, 0.0198974609375, -0.006805419921875, -0.02685546875, 0.00518798828125, -0.0181884765625, 0.0074462890625, -0.006683349609375, -0.009033203125, 0.0294189453125, 0.01080322265625, 0.0311279296875, ...
[ 24234, 30957, 186351, 17, 3355, 29481, 17932, 3638, 2806, 30646, 17324, 92, 5713, 19, 18, 63434, 1690, 272, 30501, 71, 472, 136, 653, 147306, 20028, 42, 26939, 6371, 683, 7146, 102014, 39876, 2389, 128019, 9433, 82230, 297, 31635, 152388, ...
[ 0.201416015625, 0.25927734375, 0.22314453125, 0.091796875, 0.2249755859375, 0.157958984375, 0.1669921875, 0.06085205078125, 0.006866455078125, 0.10247802734375, 0.16162109375, 0.044158935546875, 0.2086181640625, 0.049346923828125, 0.0931396484375, 0.11572265625, 0.07879638671875, 0...
embed
47188082_c0
47188082
elixir
0
Title: get association&#x27;s association with ecto Problem title: get association&#x27;s association with ecto Tags: elixir, ecto, phoenix-framework Problem: get association's association with ecto I have 4 table, which is: Category -> sub1 -> sub2 -> product the tables are defined Category -name -id -description sub1...
get association&#x27;s association with ecto get association&#x27;s association with ecto elixir ecto phoenix-framework Category sub1 sub2 category_id sub1_id sub2_id belongs_to App.Category App.Sub1 App.Sub2 Product Repo.all Repo.preload product.sub2.sub1.category.name get association's association with ecto I have 4 ...
[ 0.01123046875, 0.006317138671875, -0.00994873046875, 0.018310546875, -0.0037994384765625, -0.002655029296875, -0.021728515625, -0.002532958984375, -0.00131988525390625, -0.050537109375, 0.0037384033203125, 0.007171630859375, -0.0179443359375, -0.00185394287109375, 0.0068359375, 0.00286...
[ 2046, 125413, 3768, 678, 60751, 15296, 38308, 53073, 33, 4084, 160328, 18244, 49057, 1614, 418, 304, 95487, 532, 10617, 5659, 76775, 3081, 96472, 73111, 853, 771, 5584, 4692, 63033, 12996, 22144, 5442, 33478, 6504, 11627, 201, 23180, 61924, ...
[ 0.09747314453125, 0.23974609375, 0.088134765625, 0.123046875, 0.251708984375, 0.058502197265625, 0.177734375, 0.0299224853515625, 0.042083740234375, 0.1060791015625, 0.086181640625, 0.030364990234375, 0.2301025390625, 0.2132568359375, 0.094970703125, 0.131591796875, 0.27783203125, ...
embed
39177640_c0
39177640
elixir
0
Title: ejabberd opening s2s connection to proxy.eu.jabber.org Problem title: ejabberd opening s2s connection to proxy.eu.jabber.org Tags: ejabberd, elixir, phoenix-framework Problem: ejabberd opening s2s connection to proxy.eu.jabber.org I have a local setup of ejabberd on a Phoenix application. For testing it, I creat...
ejabberd opening s2s connection to proxy.eu.jabber.org ejabberd opening s2s connection to proxy.eu.jabber.org ejabberd elixir phoenix-framework 127.0.0.1 s2s proxy.eu.jabber.org Port Accepted socket_state gen_tcp ejabberd_auth_mnesia Opened Trying TLS Reconnect Will c2s ejabberd opening s2s connection to proxy.eu.jabbe...
[ 0.01043701171875, 0.034912109375, -0.01458740234375, -0.007080078125, -0.0007171630859375, -0.00019359588623046875, -0.0242919921875, 0.02001953125, 0.0013427734375, -0.0028228759765625, 0.0260009765625, -0.0101318359375, 0.0067138671875, -0.0025177001953125, 0.01055908203125, -0.00405...
[ 28, 145, 102459, 71, 73432, 91, 304, 7, 94878, 502, 50878, 4615, 1478, 15296, 38308, 53073, 33, 4084, 160328, 427, 129884, 102014, 13791, 111383, 221, 27853, 61340, 9226, 121422, 916, 927, 39, 86, 3478, 13527, 40858, 20602, 294, 853, 1354...
[ 0.1143798828125, 0.1748046875, 0.243896484375, 0.2042236328125, 0.1112060546875, 0.115234375, 0.230712890625, 0.15771484375, 0.1634521484375, 0.1341552734375, 0.1978759765625, 0.142822265625, 0.150634765625, 0.07672119140625, 0.1983642578125, 0.053375244140625, 0.060882568359375, 0...
embed
68169705_c0
68169705
elixir
0
Title: Gmail API Send Email Problem title: Gmail API Send Email Tags: google-developers-console, gmail-api, elixir Problem: Gmail API Send Email I am using Bamboo to enable my website visitors to complete and send a contact form. I created a service account I granted it domain-wide authority I added the following scope...
Gmail API Send Email Gmail API Send Email google-developers-console gmail-api elixir Gmail API Send Email Fajalobi.Mailer Bamboo.GmailAdapter iam.gserviceaccount.com Google File.read Request Expected OAuth See developers.google.com Gmail API Send Email I am using Bamboo to enable my website visitors to complete and sen...
[ -0.00311279296875, 0.0242919921875, 0.00506591796875, -0.01458740234375, -0.00970458984375, 0.00909423828125, 0.00173187255859375, 0.00194549560546875, -0.01611328125, 0.0115966796875, 0.0286865234375, -0.00799560546875, -0.0240478515625, 0.0186767578125, 0.032470703125, -0.00662231445...
[ 107582, 61687, 24044, 14886, 26484, 229815, 1314, 2271, 40777, 7095, 9, 40897, 15296, 38308, 3036, 57566, 964, 5, 17814, 56, 115990, 54487, 2065, 22409, 2631, 720, 38359, 177, 22584, 213499, 1815, 42724, 39116, 75616, 60075, 89829, 180, 67362...
[ 0.271484375, 0.297607421875, 0.1591796875, 0.207275390625, 0.13232421875, 0.1602783203125, 0.1025390625, 0.0513916015625, 0.138427734375, 0.2171630859375, 0.0120849609375, 0.2484130859375, 0.1004638671875, 0.2239990234375, 0.06170654296875, 0.1029052734375, 0.14208984375, 0.0072631...
embed
73800140_c0
73800140
elixir
0
Title: (MatchError) no match of right hand side value: {:error, {:postgrex, {&#x27;no such file or directory&#x27;, &#x27;postgrex.app&#x27;}}} , when running &#x27;mix ecto.migrate&#x27; Problem title: (MatchError) no match of right hand side value: {:error, {:postgrex, {&#x27;no such file or directory&#x27;, &#x27;po...
(MatchError) no match of right hand side value: {:error, {:postgrex, {&#x27;no such file or directory&#x27;, &#x27;postgrex.app&#x27;}}} , when running &#x27;mix ecto.migrate&#x27; (MatchError) no match of right hand side value: {:error, {:postgrex, {&#x27;no such file or directory&#x27;, &#x27;postgrex.app&#x27;}}} , ...
[ -0.0020751953125, 0.00173187255859375, 0.004119873046875, 0.0021514892578125, -0.0021209716796875, 0.0034332275390625, -0.003509521484375, -0.0179443359375, 0.0106201171875, -0.00115203857421875, 0.00909423828125, -0.01025390625, 0.01324462890625, -0.0184326171875, 0.0186767578125, 0.0...
[ 79520, 206, 18468, 31611, 110, 14858, 111, 7108, 3535, 5609, 34292, 188800, 4594, 7134, 425, 3768, 6044, 11435, 707, 14364, 9007, 3229, 51042, 62015, 60751, 58849, 17957, 15296, 38308, 67407, 1305, 37286, 83671, 107, 7522, 32123, 14, 4332, ...
[ 0.18212890625, 0.0953369140625, 0.1873779296875, 0.191650390625, 0.120361328125, 0.242919921875, 0.06439208984375, 0.1551513671875, 0.202880859375, 0.196044921875, 0.1729736328125, 0.235107421875, 0.073486328125, 0.228271484375, 0.1917724609375, 0.0968017578125, 0.10400390625, 0.16...
embed
59631535_c2
59631535
elixir
2
stash_backend.ex', line: 40]}, {:gen_event, :server_update, 4, [file: 'gen_event.erl', line: 577]}, {:gen_event, :server_notify, 4, [file: 'gen_event.erl', line: 559]}, {:gen_event, :server_notify, 4, [file: 'gen_event.erl', line: 561]}, {:gen_event, :handle_msg, 6, [file: 'gen_event.erl', line: 300]}, {:proc_lib, :ini...
stash_backend.ex', line: 40]}, {:gen_event, :server_update, 4, [file: 'gen_event.erl', line: 577]}, {:gen_event, :server_notify, 4, [file: 'gen_event.erl', line: 559]}, {:gen_event, :server_notify, 4, [file: 'gen_event.erl', line: 561]}, {:gen_event, :handle_msg, 6, [file: 'gen_event.erl', line: 300]}, {:proc_lib, :ini...
[ -0.0004024505615234375, 0.0361328125, -0.00396728515625, 0.00897216796875, 0.0101318359375, -0.0240478515625, 0.003387451171875, 0.01446533203125, -0.01324462890625, -0.030029296875, -0.01177978515625, 0.00030517578125, 0.024658203125, 0.006256103515625, 0.0264892578125, 0.02099609375,...
[ 1924, 1495, 12620, 3611, 5, 3355, 4, 13315, 1112, 1409, 90141, 39642, 117008, 201, 29822, 12, 56, 141, 25, 6, 165467, 268, 8152, 454, 10869, 40383, 160443, 152, 378, 242, 9103, 10666, 79628, 4432, 177, 305, 2668, 238, 5612, 217, 9007, ...
[ 0.2071533203125, 0.2366943359375, 0.1868896484375, 0.20458984375, 0.0164794921875, 0.173828125, 0.0165557861328125, 0.106689453125, 0.08734130859375, 0.1441650390625, 0.2254638671875, 0.1480712890625, 0.1279296875, 0.0703125, 0.1500244140625, 0.0159149169921875, 0.06512451171875, 0...
embed
69354690_c0
69354690
elixir
0
Title: How to generate GPG-compatible and PEM-encoded keys using Elixir? Problem title: How to generate GPG-compatible and PEM-encoded keys using Elixir? Tags: elixir, cryptography, erlang, gnupg, pgp Problem: How to generate GPG-compatible and PEM-encoded keys using Elixir? I'm trying to create an Elixir code that wil...
How to generate GPG-compatible and PEM-encoded keys using Elixir? How to generate GPG-compatible and PEM-encoded keys using Elixir? elixir cryptography erlang gnupg pgp Elixir How GPG-compatible PEM-encoded GPG private_key generate_private_key public_pem pem_encoded_public_key IO.puts Key PEM public_key_from_private_ke...
[ -0.0230712890625, 0.00885009765625, 0.0008087158203125, -0.022216796875, 0.0255126953125, 0.00089263916015625, -0.0027923583984375, -0.021240234375, -0.0047607421875, -0.0146484375, 0.033447265625, 0.02880859375, 0.01336669921875, 0.0189208984375, -0.022705078125, -0.003753662109375, ...
[ 11249, 47, 139392, 527, 52873, 277, 10974, 2661, 136, 109592, 66332, 48141, 22799, 7, 17368, 25318, 38308, 32, 15296, 136791, 87168, 72, 3066, 2037, 177, 915, 78872, 14375, 19770, 158559, 3835, 72508, 32490, 57964, 17780, 7077, 26824, 161063,...
[ 0.09112548828125, 0.01129150390625, 0.205810546875, 0.0709228515625, 0.226806640625, 0.053436279296875, 0.109130859375, 0.059112548828125, 0.023162841796875, 0.198974609375, 0.1427001953125, 0.037567138671875, 0.1907958984375, 0.012481689453125, 0.0635986328125, 0.1224365234375, 0.25...
embed
53159267_c0
53159267
elixir
0
Title: Setting X-Frame-Options in Phoenix response Problem title: Setting X-Frame-Options in Phoenix response Tags: elixir, x-frame-options, phoenix-framework Problem: Setting X-Frame-Options in Phoenix response I am trying to make a shopify app with phoenix-framework as the backend. I've been following this tutorial t...
Setting X-Frame-Options in Phoenix response Setting X-Frame-Options in Phoenix response elixir x-frame-options phoenix-framework Setting X-Frame-Options Phoenix Enum.into shopify_domain _opts IO.puts Plug Call IO.inspect shopify_domain_only ShopifyApp.find_shop_by allow_shop_or_halt Conn.halt Conn.put_private Conn.put_...
[ -0.001007080078125, 0.026123046875, 0.01611328125, -0.0023040771484375, -0.00775146484375, 0.01318359375, 0.0142822265625, -0.00604248046875, 0.005859375, -0.006683349609375, -0.00139617919921875, -0.01019287109375, 0.0004138946533203125, -0.004638671875, -0.00701904296875, 0.005371093...
[ 503, 19514, 1193, 9, 108386, 282, 39029, 5256, 23, 133720, 57553, 15296, 38308, 1022, 160328, 109585, 53073, 33, 4084, 357, 316, 21579, 19927, 40383, 56206, 2146, 17780, 7077, 194351, 26265, 16711, 24211, 39179, 111607, 10534, 63769, 748, 237...
[ 0.1080322265625, 0.04119873046875, 0.2135009765625, 0.009185791015625, 0.1962890625, 0.0947265625, 0.217529296875, 0.05914306640625, 0.031463623046875, 0.258056640625, 0.2286376953125, 0.0204315185546875, 0.15673828125, 0.15869140625, 0.20947265625, 0.2186279296875, 0.0533447265625, ...
embed
72450353_c0
72450353
elixir
0
Title: Should I use require or import while using Ecto? Problem title: Should I use require or import while using Ecto? Tags: ecto, elixir Problem: Should I use require or import while using Ecto? I'm relatively new to the language, and have already read the differences between the require and import keywords. Neverthe...
Should I use require or import while using Ecto? Should I use require or import while using Ecto? ecto elixir or while Ecto import Ecto.Query Should Foo foo_fragment Should I use require or import while using Ecto? I'm relatively new to the language, and have already read the differences between the require and import ...
[ 0.000782012939453125, -0.005889892578125, 0.00152587890625, 0.0264892578125, -0.007781982421875, -0.00384521484375, -0.0172119140625, 0.015869140625, 0.01123046875, -0.06982421875, -0.007537841796875, 0.005096435546875, -0.00518798828125, -0.003021240234375, 0.005767822265625, -0.01239...
[ 151117, 87, 4527, 64209, 707, 24927, 12960, 17368, 241, 44150, 32, 60751, 15296, 38308, 41732, 1294, 9572, 31, 5775, 6000, 177, 674, 3525, 46876, 12301, 60212, 70, 136, 166117, 28219, 25632, 123166, 3444, 125663, 38551, 39210, 11814, 2046, ...
[ 0.1077880859375, 0.043853759765625, 0.1492919921875, 0.280517578125, 0.094482421875, 0.295654296875, 0.073486328125, 0.10150146484375, 0.12744140625, 0.302734375, 0.003143310546875, 0.2493896484375, 0.0771484375, 0.2005615234375, 0.1705322265625, 0.173828125, 0.152587890625, 0.1170...
embed
73017858_c1
73017858
elixir
1
14) maps.erl:233: :maps.fold_1/3 (elixir 1.13.1) lib/enum.ex:2408: Enum.flat_map/2 (plug 1.12.1) lib/plug/conn/query.ex:266: Plug.Conn.Query.encode_kv/3 (plug 1.12.1) lib/plug/conn/query.ex:262: anonymous fn/3 in Plug.Conn.Query.encode_kv/3 (elixir 1.13.1) lib/enum.ex:4086: Enum.flat_map_list/2 (elixir 1.13.1) lib/enum...
14) maps.erl:233: :maps.fold_1/3 (elixir 1.13.1) lib/enum.ex:2408: Enum.flat_map/2 (plug 1.12.1) lib/plug/conn/query.ex:266: Plug.Conn.Query.encode_kv/3 (plug 1.12.1) lib/plug/conn/query.ex:262: anonymous fn/3 in Plug.Conn.Query.encode_kv/3 (elixir 1.13.1) lib/enum.ex:4086: Enum.flat_map_list/2 (elixir 1.13.1) lib/enum...
[ 0.000037670135498046875, -0.005889892578125, -0.0126953125, 0.00048065185546875, 0.00885009765625, -0.0299072265625, -0.0079345703125, -0.020263671875, 0.0040283203125, 0.01544189453125, -0.0027618408203125, -0.022705078125, 0.001861572265625, 0.03662109375, 0.000293731689453125, 0.007...
[ 616, 16, 22288, 7, 56, 141, 12, 105586, 152, 62346, 42822, 131530, 6169, 38308, 38245, 97109, 25474, 33, 316, 3355, 25732, 8318, 357, 150632, 12477, 145301, 15654, 17727, 2271, 19, 944, 28194, 910, 194351, 11935, 41732, 1294, 40899, 49706, ...
[ 0.182373046875, 0.04962158203125, 0.24462890625, 0.1458740234375, 0.0810546875, 0.1357421875, 0.04229736328125, 0.1463623046875, 0.011566162109375, 0.1883544921875, 0.1900634765625, 0.1346435546875, 0.125244140625, 0.21484375, 0.106201171875, 0.1494140625, 0.12744140625, 0.08001708...
embed
40392339_c0
40392339
elixir
0
Title: Elixir Benchfella &amp; Benchwarmer have drastically different results Problem title: Elixir Benchfella &amp; Benchwarmer have drastically different results Tags: benchmarking, elixir Problem: Elixir Benchfella & Benchwarmer have drastically different results I am trying to benchmark a quicksorting algo vs. Enum...
Elixir Benchfella &amp; Benchwarmer have drastically different results Elixir Benchfella &amp; Benchwarmer have drastically different results benchmarking elixir Elixir Benchfella Benchwarmer Enum.sort QuickSort Thing Enum.partition x.key pivot.key Bench Benchfella.start QuickSort.qsort y.key rand.uniform Tests Enum.so...
[ -0.00958251953125, -0.019775390625, 0.0045166015625, -0.0155029296875, 0.006195068359375, 0.0028533935546875, 0.0023651123046875, -0.03466796875, -0.00848388671875, 0.0135498046875, -0.00946044921875, 0.037841796875, -0.0010986328125, 0.004486083984375, -0.002716064453125, -0.026977539...
[ 25318, 38308, 3419, 206, 57358, 11, 619, 25133, 74, 4205, 1991, 765, 211228, 25958, 12921, 50339, 240057, 15296, 357, 316, 62351, 89038, 158240, 6003, 214, 15866, 19770, 80953, 17137, 27388, 5980, 5037, 8647, 105548, 13316, 1004, 3066, 23658,...
[ 0.10174560546875, 0.220458984375, 0.1715087890625, 0.1378173828125, 0.246826171875, 0.15869140625, 0.1331787109375, 0.1044921875, 0.032684326171875, 0.1961669921875, 0.19970703125, 0.038055419921875, 0.170166015625, 0.047607421875, 0.1641845703125, 0.1732177734375, 0.1971435546875, ...
embed
49230430_c0
49230430
elixir
0
Title: GenServer in elixir delaying task Problem title: GenServer in elixir delaying task Tags: phoenix-framework, erlang, elixir Problem: GenServer in elixir delaying task I am trying to show a post to the first friend of a person first and other's after making a delay of 1 min. For that I am using GenServer. The prob...
GenServer in elixir delaying task GenServer in elixir delaying task phoenix-framework erlang elixir GenServer Phoenix.SchedulePost start_link GenServer.start_link __MODULE__ schedule_post handle_info IO.puts Process.send_after handle_in post:toFrstFrnd PhoenixWeb.SocketBucket.get_socket Phoenix.SchedulePost.start_link ...
[ 0.0206298828125, 0.005523681640625, -0.00811767578125, -0.0010833740234375, -0.0040283203125, -0.024169921875, 0.022705078125, -0.004791259765625, -0.00201416015625, -0.049072265625, -0.00579833984375, 0.017822265625, 0.0030975341796875, -0.00823974609375, 0.00193023681640625, 0.021240...
[ 15937, 193348, 23, 15296, 38308, 7645, 38543, 66211, 53073, 33, 4084, 160328, 18244, 72, 3066, 133720, 25452, 15246, 49411, 4034, 10187, 17137, 12013, 397, 80889, 4594, 34831, 7319, 17780, 7077, 123996, 39285, 46327, 1305, 188, 271, 30474, 27...
[ 0.1929931640625, 0.278564453125, 0.0599365234375, 0.09716796875, 0.2181396484375, 0.1927490234375, 0.1192626953125, 0.2022705078125, 0.03515625, 0.036590576171875, 0.09759521484375, 0.09716796875, 0.0291900634765625, 0.04443359375, 0.1563720703125, 0.24951171875, 0.032745361328125, ...
embed
28805782_c0
28805782
elixir
0
Title: Most efficient interval type search in Elixir Problem title: Most efficient interval type search in Elixir Tags: search, list-comprehension, elixir Problem: Most efficient interval type search in Elixir I am starting my journey with Elixir and am looking for some advice on how best to approach a particular probl...
Most efficient interval type search in Elixir Most efficient interval type search in Elixir search list-comprehension elixir Most Elixir Data MetaData1 MetaData2 MetaData3 MetaData4 Band find_metadata x.from x.to Most efficient interval type search in Elixir I am starting my journey with Elixir and am looking for some ...
[ -0.0177001953125, -0.00128173828125, 0.0036773681640625, 0.025146484375, -0.00738525390625, 0.01202392578125, 0.004638671875, -0.00098419189453125, 0.002166748046875, -0.034423828125, -0.004730224609375, -0.018310546875, 0.01190185546875, -0.00592041015625, -0.0062255859375, 0.02172851...
[ 17006, 93766, 51514, 10644, 33938, 25318, 38308, 23, 5303, 277, 4692, 3220, 15296, 11809, 36939, 137989, 617, 14298, 7413, 35273, 10135, 161063, 1022, 72134, 120696, 67660, 2965, 51515, 2967, 2053, 5423, 27117, 69405, 7722, 58055, 6626, 101935,...
[ 0.177490234375, 0.217041015625, 0.240478515625, 0.1614990234375, 0.2137451171875, 0.1246337890625, 0.253173828125, 0.038848876953125, 0.1282958984375, 0.01171875, 0.114990234375, 0.1304931640625, 0.07098388671875, 0.095458984375, 0.11572265625, 0.1317138671875, 0.06097412109375, 0....
embed
43224240_c1
43224240
elixir
1
MTClientSupervisor def start_link do Supervisor.start_link(__MODULE__, :ok, name: @name) end def init(:ok) do children = [ worker(MT.Client, [], restart: :transient, id: "MTClient01"), worker(MT.Client, [], restart: :transient, id: "MTClient02"), worker(MT.Client, [], restart: :transient, id: "MTClient03") ] supervise...
MTClientSupervisor def start_link do Supervisor.start_link(__MODULE__, :ok, name: @name) end def init(:ok) do children = [ worker(MT.Client, [], restart: :transient, id: "MTClient01"), worker(MT.Client, [], restart: :transient, id: "MTClient02"), worker(MT.Client, [], restart: :transient, id: "MTClient03") ] supervise...
[ -0.00823974609375, 0.02783203125, -0.00567626953125, 0.0152587890625, 0.007720947265625, 0.0020904541015625, 0.017333984375, 0.0181884765625, 0.00579833984375, -0.03955078125, -0.005645751953125, 0.022216796875, 0.0224609375, 0.01318359375, 0.021728515625, -0.021728515625, -0.0060119...
[ 276, 20499, 150, 2517, 73903, 51858, 4034, 10187, 54, 4265, 17137, 12013, 397, 685, 9351, 3564, 217, 20020, 4488, 56, 37290, 456, 30145, 18750, 594, 6746, 9550, 9513, 1601, 41079, 237052, 113857, 3630, 51042, 17, 3355, 56002, 17664, 36812, ...
[ 0.1048583984375, 0.039703369140625, 0.2017822265625, 0.0643310546875, 0.1494140625, 0.229248046875, 0.1693115234375, 0.2225341796875, 0.0217742919921875, 0.1551513671875, 0.15478515625, 0.04095458984375, 0.041229248046875, 0.130859375, 0.011474609375, 0.032745361328125, 0.07305908203...
embed
73588402_c1
73588402
elixir
1
.Server.handle_info/2 (stdlib 3.16.1) gen_server.erl:695: :gen_server.try_dispatch/4 (stdlib 3.16.1) gen_server.erl:771: :gen_server.handle_msg/6 (stdlib 3.16.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3 Last message: %Phoenix.Socket.Broadcast{event: "quest completed", payload: %{}, topic: "user_socket:0fef857e-b00...
.Server.handle_info/2 (stdlib 3.16.1) gen_server.erl:695: :gen_server.try_dispatch/4 (stdlib 3.16.1) gen_server.erl:771: :gen_server.handle_msg/6 (stdlib 3.16.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3 Last message: %Phoenix.Socket.Broadcast{event: "quest completed", payload: %{}, topic: "user_socket:0fef857e-b00...
[ -0.0126953125, 0.031494140625, 0.004791259765625, 0.01116943359375, -0.0157470703125, 0.00159454345703125, -0.01708984375, -0.0018768310546875, 0.004852294921875, -0.0244140625, 0.0152587890625, 0.0206298828125, 0.0023345947265625, 0.01312255859375, -0.01446533203125, 0.003494262695312...
[ 193348, 79628, 7319, 12477, 271, 5612, 45151, 173245, 9226, 39642, 56, 141, 176004, 1409, 15123, 4453, 17357, 186413, 4432, 20155, 10402, 217, 9007, 21672, 26008, 497, 33, 4084, 8912, 27853, 52562, 55741, 90141, 75616, 140528, 63033, 28451, 6...
[ 0.1514892578125, 0.179931640625, 0.269775390625, 0.0811767578125, 0.044586181640625, 0.142333984375, 0.05084228515625, 0.12353515625, 0.121337890625, 0.1309814453125, 0.00848388671875, 0.05316162109375, 0.147216796875, 0.10009765625, 0.1160888671875, 0.06024169921875, 0.0584716796875...
embed
43444348_c1
43444348
elixir
1
(orders, __MODULE__, "order.json")} end def render("show.json", %{order: order}) do %{data: render_one(order, __MODULE__, "order.json")} end def render("order.json", %{order: order}) do order |> IO.inspect %{id: Map.get(order, :id)} end def render("errors.json", %{errors: errors}) do %{errors: render_many(errors, __MOD...
(orders, __MODULE__, "order.json")} end def render("show.json", %{order: order}) do %{data: render_one(order, __MODULE__, "order.json")} end def render("order.json", %{order: order}) do order |> IO.inspect %{id: Map.get(order, :id)} end def render("errors.json", %{errors: errors}) do %{errors: render_many(errors, __MOD...
[ -0.0262451171875, -0.00518798828125, 0.018798828125, -0.0164794921875, 0.006988525390625, 0.0089111328125, -0.037841796875, -0.0054931640625, 0.01434326171875, 0.007720947265625, -0.005615234375, 0.0294189453125, 0.036376953125, -0.0024261474609375, 0.01165771484375, 0.0017242431640625...
[ 15, 80596, 7, 5953, 12013, 397, 129984, 14005, 170, 1681, 3564, 8, 420, 89159, 31374, 5, 1745, 12, 12989, 10135, 3630, 18939, 8152, 54, 17780, 16711, 532, 42719, 3794, 132, 188800, 18499, 669, 53, 4, 161521, 1650, 43240, 903, 3917, 2174...
[ 0.016693115234375, 0.281005859375, 0.044921875, 0.009765625, 0.0594482421875, 0.0780029296875, 0.08599853515625, 0.00152587890625, 0.123779296875, 0.1907958984375, 0.1175537109375, 0.059051513671875, 0.029510498046875, 0.2135009765625, 0.167724609375, 0.03570556640625, 0.000091552734...
embed
56096172_c0
56096172
elixir
0
Title: Dialyzer warnings about pattern_match_cov on Gettext module Problem title: Dialyzer warnings about pattern_match_cov on Gettext module Tags: elixir, dialyzer, phoenix-framework Problem: Dialyzer warnings about pattern_match_cov on Gettext module I started using Dialyzer (dialyxir 1.0.0-rc.6) on my umbrella proje...
Dialyzer warnings about pattern_match_cov on Gettext module Dialyzer warnings about pattern_match_cov on Gettext module elixir dialyzer phoenix-framework Dialyzer pattern_match_cov Gettext my_app my_app_web gettext.ex:1:pattern_match_cov gettext.ex MyProject.MyAppWeb.Gettext otp_app Dialyzer warnings about pattern_matc...
[ -0.003082275390625, 0.01239013671875, 0.00347900390625, -0.00445556640625, -0.000637054443359375, -0.00701904296875, -0.02099609375, -0.0042724609375, 0.0006866455078125, -0.0262451171875, 0.01220703125, -0.0262451171875, 0.0052490234375, -0.0079345703125, 0.0164794921875, 0.0092163085...
[ 4512, 538, 4383, 1631, 6977, 103510, 98753, 13562, 20779, 22829, 88996, 15296, 38308, 879, 33, 4084, 160328, 759, 9007, 14051, 2046, 3355, 4453, 2646, 223353, 31852, 39179, 30474, 18, 3390, 99929, 59690, 286, 4134, 1165, 13452, 133720, 48733,...
[ 0.16552734375, 0.177978515625, 0.203125, 0.1766357421875, 0.07293701171875, 0.2293701171875, 0.223876953125, 0.24267578125, 0.1416015625, 0.271240234375, 0.14794921875, 0.015625, 0.1636962890625, 0.1141357421875, 0.036712646484375, 0.07220458984375, 0.0242919921875, 0.0277862548828...
embed
42003948_c0
42003948
elixir
0
Title: How can I insert foreign key id through using channel? Problem title: How can I insert foreign key id through using channel? Tags: elixir, ecto, phoenix-framework Problem: How can I insert foreign key id through using channel? I have tables, Category and Subcategory . Category has many subcategories and Subcateg...
How can I insert foreign key id through using channel? How can I insert foreign key id through using channel? elixir ecto phoenix-framework channel How Category Subcategory handle_in create:subcategory category_id Subcategory.changeset Repo.insert Pos8.Subcategory Repo.all subcategories:updated Myapp.Subcategory.catego...
[ 0.0003108978271484375, -0.003875732421875, 0.01116943359375, 0.00823974609375, 0.0068359375, 0.00811767578125, -0.0203857421875, -0.01708984375, -0.005279541015625, -0.0400390625, -0.001953125, -0.00885009765625, 0.0123291015625, 0.0225830078125, 0.003021240234375, 0.01434326171875, ...
[ 11249, 831, 183540, 110613, 22799, 3447, 8305, 17368, 86723, 87, 15296, 38308, 60751, 53073, 33, 4084, 160328, 18244, 49057, 8273, 33478, 6504, 34831, 73, 28282, 22144, 95487, 532, 152028, 3509, 853, 771, 33657, 13498, 1019, 96472, 1614, 2401...
[ 0.1043701171875, 0.0849609375, 0.27099609375, 0.2763671875, 0.214111328125, 0.203857421875, 0.1571044921875, 0.138671875, 0.2493896484375, 0.022552490234375, 0.061279296875, 0.1905517578125, 0.2208251953125, 0.0701904296875, 0.0748291015625, 0.1373291015625, 0.118408203125, 0.03295...
embed
48406181_c0
48406181
elixir
0
Title: Delegate router actions to to controllers in other apps Problem title: Delegate router actions to to controllers in other apps Tags: elixir, phoenix-framework, routes Problem: Delegate router actions to to controllers in other apps I have an phoenix umbrella project with a number of routes related to my main app...
Delegate router actions to to controllers in other apps Delegate router actions to to controllers in other apps elixir phoenix-framework routes Delegate main_web child_web router.ex pipe_through MainWeb.PageController MainWeb.UserController Somehow ChildWeb Page.Controller OtherController page1 Page1Controller Delegate...
[ -0.006011962890625, 0.0037994384765625, -0.02099609375, -0.01214599609375, -0.005035400390625, 0.0084228515625, -0.008544921875, -0.000396728515625, 0.0208740234375, -0.03369140625, -0.01263427734375, -0.006622314453125, -0.0074462890625, 0.03955078125, 0.00799560546875, 0.0107421875, ...
[ 228532, 13, 122188, 61972, 47, 185373, 7, 23, 3789, 49966, 15296, 38308, 53073, 33, 4084, 160328, 36439, 5201, 14051, 29041, 3355, 137158, 222521, 12321, 30474, 147101, 175904, 123829, 14231, 603, 64511, 286, 4134, 1165, 13452, 62548, 4027, 1...
[ 0.293701171875, 0.073974609375, 0.24560546875, 0.1922607421875, 0.14404296875, 0.27490234375, 0.09783935546875, 0.0526123046875, 0.1180419921875, 0.1993408203125, 0.04888916015625, 0.1611328125, 0.05877685546875, 0.07958984375, 0.1346435546875, 0.060089111328125, 0.201904296875, 0....
embed
70678427_c0
70678427
elixir
0
Title: psql cli loop through query results and use AWS cli Problem title: psql cli loop through query results and use AWS cli Tags: elixir, amazon-web-services, amazon-s3, postgresql, psql Problem: psql cli loop through query results and use AWS cli I am trying to rename a large amount of files located in an AWS S3 buc...
psql cli loop through query results and use AWS cli psql cli loop through query results and use AWS cli elixir amazon-web-services amazon-s3 postgresql psql t1 query AWS E.g Results NAME George Kim Sam Bucket file_one.pdf file_two.pdf file_three.pdf file_one_george.pdf file_one_kim.pdf file_one_same.pdf folder_name_fro...
[ 0.0179443359375, 0.020751953125, -0.0191650390625, 0.0208740234375, -0.0015869140625, 0.0198974609375, 0.01318359375, 0.000286102294921875, 0.00946044921875, 0.040771484375, 0.008544921875, 0.01904296875, -0.01055908203125, -0.0146484375, -0.0137939453125, 0.0162353515625, -0.0110473...
[ 24014, 99247, 95701, 40956, 8305, 41, 1294, 50339, 4527, 62, 52143, 15296, 38308, 2527, 5870, 14051, 22584, 363, 17562, 808, 418, 146104, 182512, 14787, 8268, 3362, 667, 27853, 11435, 3630, 15483, 55547, 107, 1478, 8103, 40175, 78303, 188, ...
[ 0.123779296875, 0.254638671875, 0.2098388671875, 0.1734619140625, 0.1141357421875, 0.1356201171875, 0.06781005859375, 0.2200927734375, 0.08355712890625, 0.0755615234375, 0.162841796875, 0.022552490234375, 0.1658935546875, 0.079345703125, 0.11767578125, 0.043487548828125, 0.1029052734...
embed
36380199_c1
36380199
elixir
1
[app: :sequence_supervisor, version: "0.0.1", elixir: "~> 1.1", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps] end # Configuration for the OTP application # # Type "mix help compile.app" for more information def application do [applications: [:logger], mod: {SequenceSupervisor, []}] e...
[app: :sequence_supervisor, version: "0.0.1", elixir: "~> 1.1", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps] end # Configuration for the OTP application # # Type "mix help compile.app" for more information def application do [applications: [:logger], mod: {SequenceSupervisor, []}] e...
[ -0.01220703125, 0.036865234375, -0.0081787109375, 0.0035858154296875, 0.013671875, -0.006927490234375, 0.01708984375, -0.006378173828125, -0.004730224609375, 0.0032196044921875, 0.0084228515625, -0.0125732421875, -0.00040435791015625, 0.03857421875, 0.01324462890625, -0.000196456909179...
[ 9007, 184, 944, 3956, 59104, 51858, 11389, 99929, 418, 15296, 38308, 38245, 45367, 55720, 37286, 33, 334, 112348, 4034, 669, 8, 6423, 3564, 1657, 59994, 2320, 180, 23658, 38415, 60457, 62015, 4358, 9969, 1340, 58, 1286, 4677, 420, 54, 101...
[ 0.1822509765625, 0.0921630859375, 0.1727294921875, 0.119140625, 0.215087890625, 0.257080078125, 0.091796875, 0.1290283203125, 0.053619384765625, 0.07470703125, 0.19580078125, 0.1107177734375, 0.1201171875, 0.09600830078125, 0.296142578125, 0.031402587890625, 0.145263671875, 0.09973...
embed
35500748_c0
35500748
elixir
0
Title: Elixir Release does not output log to file Problem title: Elixir Release does not output log to file Tags: logging, elixir Problem: Elixir Release does not output log to file I use {:exrm, "~> 0.19.9"} to create Elixir project deployagent release file( MIX_ENV=dev mix compile && MIX_ENV=dev mix release ) and loa...
Elixir Release does not output log to file Elixir Release does not output log to file logging elixir Elixir Release MIX_ENV logger_file_backend mix.exs dev.exs LoggerFileBackend error_log error.log Logger.error Elixir Release does not output log to file I use {:exrm, "~> 0.19.9"} to create Elixir project deployagent re...
[ 0.01251220703125, 0.0177001953125, 0.000591278076171875, 0.0069580078125, 0.01312255859375, -0.004608154296875, -0.002471923828125, -0.00090789794921875, -0.005157470703125, 0.00994873046875, 0.0133056640625, -0.01226806640625, 0.019775390625, 0.00174713134765625, 0.020263671875, -0.00...
[ 25318, 38308, 152590, 959, 140992, 12684, 47, 11435, 459, 15296, 276, 21487, 11572, 856, 73088, 29822, 12620, 17664, 3355, 33245, 64906, 152470, 3611, 18499, 4867, 56, 188800, 42, 107754, 176652, 28282, 13452, 8, 13158, 83963, 54452, 18548, 7...
[ 0.10601806640625, 0.24609375, 0.2298583984375, 0.0904541015625, 0.1781005859375, 0.1787109375, 0.0318603515625, 0.1485595703125, 0.09918212890625, 0.056732177734375, 0.04058837890625, 0.16015625, 0.02471923828125, 0.10150146484375, 0.0865478515625, 0.0909423828125, 0.030364990234375,...
embed
75216838_c0
75216838
elixir
0
Title: Phoenix.HTML.Safe not implemented error when setting csp_nonce_assign_key Problem title: Phoenix.HTML.Safe not implemented error when setting csp_nonce_assign_key Tags: elixir, phoenix-framework Problem: Phoenix.HTML.Safe not implemented error when setting csp_nonce_assign_key I'm trying to follow this tutorial ...
Phoenix.HTML.Safe not implemented error when setting csp_nonce_assign_key Phoenix.HTML.Safe not implemented error when setting csp_nonce_assign_key elixir phoenix-framework Phoenix.HTML.Safe csp_nonce_assign_key Map router.ex live_dashboard generate_nonce csp_nonce_value my_plug.ex _opts Plug m1oNHieWGoYMfw Phoenix.HTM...
[ -0.02294921875, -0.00106048583984375, 0.01434326171875, -0.02783203125, -0.004058837890625, 0.002685546875, 0.00390625, -0.002655029296875, 0.0057373046875, -0.0186767578125, -0.0025177001953125, 0.0264892578125, 0.03173828125, 0.0201416015625, -0.0025177001953125, -0.005645751953125, ...
[ 133720, 127068, 5464, 2242, 959, 29479, 18499, 53550, 501, 7008, 157, 3956, 162, 31304, 19770, 15296, 38308, 53073, 33, 4084, 160328, 42719, 122188, 3355, 6867, 155892, 24351, 139392, 27494, 759, 145301, 2146, 194351, 28960, 57143, 154107, 7087...
[ 0.246826171875, 0.254150390625, 0.17431640625, 0.205810546875, 0.1044921875, 0.2117919921875, 0.197265625, 0.11279296875, 0.0709228515625, 0.207763671875, 0.1151123046875, 0.1654052734375, 0.03851318359375, 0.1905517578125, 0.1868896484375, 0.05548095703125, 0.20947265625, 0.030578...
embed
26090500_c0
26090500
elixir
0
Title: Elixir - problems with https URLs Problem title: Elixir - problems with https URLs Tags: inets, erlang, elixir Problem: Elixir - problems with https URLs 16:50:10.642 [error] GenServer #PID<0.226.0> terminating Last message: {:send_req, {{:url, 'https://api.github.com', 'api.github.com', 443, :undefined, :undefi...
Elixir - problems with https URLs Elixir - problems with https URLs inets erlang elixir Protocol.UndefinedError MatchError Elixir URLs HTTPotion.start HTTPotion.get api.github.com inets.start ssl.start httpc.request String.Chars EXIT ssl_handshake dec_hello_extensions ssl_handshake.erl decode_handshake tls_handshake ge...
[ -0.0206298828125, 0.00933837890625, 0.0025634765625, 0.00506591796875, -0.0111083984375, -0.022216796875, -0.01080322265625, -0.01251220703125, -0.019775390625, -0.0030670166015625, 0.01177978515625, -0.04052734375, 0.0179443359375, 0.01153564453125, 0.004974365234375, 0.00180053710937...
[ 25318, 38308, 44402, 678, 3975, 31862, 20, 7, 23, 7831, 72, 3066, 15296, 151607, 1067, 5983, 18468, 31611, 67407, 135913, 31, 1363, 17137, 3794, 31470, 15769, 32102, 91, 24861, 1621, 75616, 23351, 84068, 29426, 6371, 12336, 70704, 57865, 13...
[ 0.1710205078125, 0.296142578125, 0.19580078125, 0.1019287109375, 0.266845703125, 0.2445068359375, 0.00372314453125, 0.020751953125, 0.06939697265625, 0.184814453125, 0.084716796875, 0.2474365234375, 0.13720703125, 0.180419921875, 0.065185546875, 0.155517578125, 0.147705078125, 0.10...
embed
43557409_c0
43557409
elixir
0
Title: How can I output raw text properly formatted for reading and filing in Elixir? Problem title: How can I output raw text properly formatted for reading and filing in Elixir? Tags: elixir-iex, elixir Problem: How can I output raw text properly formatted for reading and filing in Elixir? I need the output of the co...
How can I output raw text properly formatted for reading and filing in Elixir? How can I output raw text properly formatted for reading and filing in Elixir? elixir-iex elixir How Elixir HEAD System.cmd Cuis IO.stream standard_io line_or_bytes How can I output raw text properly formatted for reading and filing in Elixi...
[ -0.007537841796875, 0.008544921875, -0.00159454345703125, 0.037109375, 0.01129150390625, 0.01104736328125, 0.0194091796875, -0.01446533203125, 0.0113525390625, 0.01080322265625, 0.0103759765625, -0.00124359130859375, -0.0167236328125, 0.0115966796875, -0.0189208984375, 0.00297546386718...
[ 11249, 831, 140992, 49649, 7986, 155965, 9384, 3674, 16454, 809, 2069, 25318, 38308, 100, 23, 15296, 14, 3355, 572, 188328, 12353, 3931, 71, 75119, 17780, 86429, 5570, 846, 13315, 748, 61028, 136, 3871, 75101, 35064, 1639, 31347, 148814, 39...
[ 0.0638427734375, 0.057830810546875, 0.237060546875, 0.2403564453125, 0.2330322265625, 0.1561279296875, 0.1744384765625, 0.078125, 0.1348876953125, 0.1317138671875, 0.043975830078125, 0.122314453125, 0.259521484375, 0.033355712890625, 0.044097900390625, 0.0732421875, 0.018585205078125...
embed
38951244_c0
38951244
elixir
0
Title: Generating records in a loop, they are out of order. Is this an Elixir or Postgres thing? Problem title: Generating records in a loop, they are out of order. Is this an Elixir or Postgres thing? Tags: ecto, elixir Problem: Generating records in a loop, they are out of order. Is this an Elixir or Postgres thing? ...
Generating records in a loop, they are out of order. Is this an Elixir or Postgres thing? Generating records in a loop, they are out of order. Is this an Elixir or Postgres thing? ecto elixir p Generating Elixir Postgres timer.sleep Post.changeset Post Some Repo.insert post.title Enum.reverse all_posts Repo.all order_b...
[ 0.0234375, -0.01141357421875, -0.0147705078125, -0.00494384765625, 0.004608154296875, 0.008056640625, -0.01251220703125, -0.006866455078125, -0.0030975341796875, -0.041259765625, 0.0089111328125, 0.03173828125, -0.0120849609375, -0.000682830810546875, 0.0162353515625, 0.001548767089843...
[ 155370, 1916, 115923, 23, 40956, 1836, 621, 1810, 111, 12989, 2071, 903, 142, 25318, 38308, 707, 2795, 17562, 13580, 10, 60751, 15296, 915, 21991, 170572, 152028, 3509, 771, 33657, 1305, 5440, 316, 37676, 756, 4594, 5584, 183540, 16865, 695...
[ 0.2008056640625, 0.0577392578125, 0.2333984375, 0.103759765625, 0.2257080078125, 0.00860595703125, 0.049652099609375, 0.1441650390625, 0.150390625, 0.207275390625, 0.00299072265625, 0.1038818359375, 0.0204315185546875, 0.13623046875, 0.256591796875, 0.03338623046875, 0.10009765625, ...
embed
39254854_c1
39254854
elixir
1
@doc """ Builds a changeset based on the `struct` and `params`. """ def changeset(struct, params \\ %{}) do struct |> cast(params, [:email]) |> validate_required([:email]) end end defmodule SslStorage.UsersCerts do use SslStorage.Web, :model alias SslStorage.User alias SslStorage.Cert schema "users_certs" do belongs_t...
@doc """ Builds a changeset based on the `struct` and `params`. """ def changeset(struct, params \\ %{}) do struct |> cast(params, [:email]) |> validate_required([:email]) end end defmodule SslStorage.UsersCerts do use SslStorage.Web, :model alias SslStorage.User alias SslStorage.Cert schema "users_certs" do belongs_t...
[ -0.0020904541015625, -0.00830078125, 0.0159912109375, -0.00445556640625, 0.012451171875, 0.0108642578125, -0.01324462890625, -0.031494140625, 0.02099609375, -0.00830078125, -0.006317138671875, 0.0032196044921875, 0.003662109375, 0.023193359375, -0.00537109375, -0.005584716796875, -0....
[ 1374, 29713, 44, 58, 121137, 7, 65572, 126, 35509, 98, 36716, 136, 2500, 8256, 8, 420, 121, 54, 37702, 25501, 44622, 3181, 3564, 83279, 159, 24861, 188, 29838, 1062, 1314, 2529, 4527, 30474, 51734, 55109, 61903, 223, 84563, 10617, 53400, ...
[ 0.065673828125, 0.07080078125, 0.05615234375, 0.09088134765625, 0.1746826171875, 0.07586669921875, 0.231689453125, 0.2249755859375, 0.096923828125, 0.048431396484375, 0.230712890625, 0.0623779296875, 0.132568359375, 0.152099609375, 0.040374755859375, 0.04266357421875, 0.1405029296875...
embed
30422184_c0
30422184
elixir
0
Title: Where does Elixir/erlang fit into the microservices approach? Problem title: Where does Elixir/erlang fit into the microservices approach? Tags: architecture, docker, microservices, erlang, elixir Problem: Where does Elixir/erlang fit into the microservices approach? Lately I've been doing some experiments with ...
Where does Elixir/erlang fit into the microservices approach? Where does Elixir/erlang fit into the microservices approach? architecture docker microservices erlang elixir Where Elixir Where does Elixir/erlang fit into the microservices approach? Lately I've been doing some experiments with docker compose in order to d...
[ -0.0079345703125, 0.009033203125, 0.01055908203125, 0.01611328125, 0.007232666015625, 0.012451171875, 0.013671875, -0.0036468505859375, 0.01458740234375, 0.00872802734375, 0.002655029296875, 0.0091552734375, 0.0294189453125, 0.01446533203125, 0.01123046875, 0.0198974609375, -0.030639...
[ 78662, 25318, 38308, 64, 56, 3066, 11177, 3934, 11948, 22584, 7, 51515, 6, 159958, 54, 11050, 72, 15296, 14602, 28007, 150350, 13158, 48716, 57119, 72382, 22691, 72977, 332, 111531, 7941, 88203, 259, 6126, 5, 9896, 87344, 68034, 65524, 4382...
[ 0.1162109375, 0.1719970703125, 0.3076171875, 0.046478271484375, 0.1243896484375, 0.280029296875, 0.209228515625, 0.1185302734375, 0.1627197265625, 0.232666015625, 0.0249786376953125, 0.15576171875, 0.006317138671875, 0.1414794921875, 0.09893798828125, 0.2169189453125, 0.0985107421875...
embed
46078702_c0
46078702
elixir
0
Title: Why :DOWN info is not sent to GenServer? Problem title: Why :DOWN info is not sent to GenServer? Tags: elixir Problem: Why :DOWN info is not sent to GenServer? I am experimenting with GenServer , I just created a linked process, and tried to kill it, to see how handle_info is called with :DOWN param defmodule CS...
Why :DOWN info is not sent to GenServer? Why :DOWN info is not sent to GenServer? elixir Logger Ecto.Query Why DOWN GenServer handle_info CSVServer start_link _opts GenServer.start_link __MODULE__ GenServer.call handle_call _from Agent.start_link samir_sabri CSVServer.test global.whereis_name process_name PID Process.e...
[ 0.00469970703125, 0.0322265625, 0.00040435791015625, 0.009765625, -0.0198974609375, -0.01123046875, -0.0118408203125, -0.0007781982421875, -0.01226806640625, -0.020751953125, -0.00927734375, -0.0029296875, -0.00384521484375, 0.0380859375, 0.00933837890625, 0.0031280517578125, 0.01745...
[ 44084, 13223, 108049, 3004, 959, 9325, 47, 15937, 193348, 15296, 38308, 64906, 56, 44150, 41732, 6197, 34831, 7319, 43486, 4034, 10187, 2146, 17137, 85763, 161063, 54603, 4326, 99604, 6954, 7964, 11627, 9433, 7146, 123996, 23399, 45226, 128912,...
[ 0.09033203125, 0.176513671875, 0.25341796875, 0.19970703125, 0.1190185546875, 0.1092529296875, 0.06817626953125, 0.1800537109375, 0.255126953125, 0.015869140625, 0.1463623046875, 0.1138916015625, 0.08831787109375, 0.1326904296875, 0.02923583984375, 0.1324462890625, 0.1767578125, 0....
embed
54661139_c0
54661139
elixir
0
Title: Creating changesets when the key names of source struct differ from the column names of the schema? Problem title: Creating changesets when the key names of source struct differ from the column names of the schema? Tags: phoenix-framework, elixir, ecto Problem: Creating changesets when the key names of source st...
Creating changesets when the key names of source struct differ from the column names of the schema? Creating changesets when the key names of source struct differ from the column names of the schema? phoenix-framework elixir ecto the Creating branch_id MyStruct Ecto.Changeset Enum.map Macro.underscore Creating changese...
[ 0.00726318359375, 0.006256103515625, 0.0147705078125, -0.0025482177734375, 0.01007080078125, 0.007568359375, 0.0037994384765625, -0.019287109375, 0.004425048828125, 0.00081634521484375, 0.01153564453125, 0.028076171875, 0.007354736328125, 0.022216796875, 0.0057373046875, 0.005126953125...
[ 56781, 1916, 65572, 7831, 3229, 22799, 123055, 31344, 36716, 129927, 1295, 3365, 316, 61903, 53073, 33, 4084, 160328, 18244, 15296, 38308, 60751, 70, 32845, 206, 532, 2646, 71713, 18190, 241, 44150, 127008, 4188, 126, 357, 62346, 4727, 516, ...
[ 0.1566162109375, 0.0253753662109375, 0.235107421875, 0.255859375, 0.06964111328125, 0.175048828125, 0.1488037109375, 0.205322265625, 0.1732177734375, 0.23486328125, 0.0948486328125, 0.130126953125, 0.1474609375, 0.198486328125, 0.016357421875, 0.03240966796875, 0.1016845703125, 0.0...
embed
33977784_c0
33977784
elixir
0
Title: Parsing JSON arrays of integers in Elixir Problem title: Parsing JSON arrays of integers in Elixir Tags: elixir, json Problem: Parsing JSON arrays of integers in Elixir If I have a JSON object where the value of a key is an array of integers, and each integer of the array just happens to correspond with the code...
Parsing JSON arrays of integers in Elixir Parsing JSON arrays of integers in Elixir elixir json Parsing JSON Elixir JSON.decode JSX.decode Poison.decode Poison.encode Parsing JSON arrays of integers in Elixir If I have a JSON object where the value of a key is an array of integers, and each integer of the array just ha...
[ -0.006011962890625, -0.002410888671875, -0.0115966796875, 0.0211181640625, -0.00799560546875, 0.00933837890625, 0.00051116943359375, -0.00408935546875, -0.007415771484375, 0.03662109375, -0.01446533203125, 0.006622314453125, 0.00408935546875, 0.0244140625, -0.01123046875, 0.00717163085...
[ 2392, 6953, 821, 58627, 10298, 4778, 892, 26255, 25318, 38308, 15296, 1647, 1681, 112, 40899, 120844, 64249, 191, 33, 23, 36746, 34292, 22799, 12638, 96276, 42518, 18151, 6275, 2448, 22819, 125429, 10001, 62816, 3917, 29481, 53, 111719, 5303,...
[ 0.1612548828125, 0.0543212890625, 0.152099609375, 0.244140625, 0.171630859375, 0.1025390625, 0.1414794921875, 0.116943359375, 0.1297607421875, 0.2724609375, 0.09649658203125, 0.111328125, 0.192626953125, 0.1190185546875, 0.177734375, 0.156494140625, 0.2005615234375, 0.1671142578125...
embed
34254773_c1
34254773
elixir
1
date, Ecto.DateTime field :description, :string has_many :presences, Presence has_many :users, through: [:presences, :user] end @required_fields ~w(name address date description) @optional_fields ~w(location_x location_y) def changeset(user, params \\ :empty) do user |> cast(params, @required_fields, @optional_fields) ...
date, Ecto.DateTime field :description, :string has_many :presences, Presence has_many :users, through: [:presences, :user] end @required_fields ~w(name address date description) @optional_fields ~w(location_x location_y) def changeset(user, params \\ :empty) do user |> cast(params, @required_fields, @optional_fields) ...
[ -0.0238037109375, -0.00787353515625, -0.00799560546875, -0.014892578125, 0.00274658203125, -0.0184326171875, 0.00872802734375, -0.0208740234375, 0.009765625, -0.0478515625, 0.005706787109375, -0.000010788440704345703, -0.01708984375, 0.006683349609375, -0.0128173828125, -0.026000976562...
[ 5622, 241, 44150, 5, 86291, 70059, 44457, 112, 59478, 91693, 1556, 669, 53, 9518, 69098, 20703, 6620, 223, 1314, 8305, 152, 65918, 268, 3564, 107, 3181, 2822, 454, 28394, 7, 434, 11627, 29823, 76811, 16, 109585, 289, 87632, 425, 31913, ...
[ 0.2266845703125, 0.050445556640625, 0.2491455078125, 0.02728271484375, 0.169677734375, 0.246826171875, 0.228759765625, 0.093994140625, 0.1932373046875, 0.1595458984375, 0.1199951171875, 0.1243896484375, 0.08673095703125, 0.1617431640625, 0.168701171875, 0.1593017578125, 0.12109375, ...
embed
49117365_c1
49117365
elixir
1
50}, [val]} ]) |> map_to_type(ItemonboardingCore.Standard) do {:ok, mapped} -> {:ok, mapped} {:updated, affected_count} -> {:ok, affected_count} {:executed, o, a} -> {:ok, o, a} {:error, _} -> {:bad} end end ) end I have confirmed that the pids in the genserver are infect the correct odbc pids and the GenServer.Call re...
50}, [val]} ]) |> map_to_type(ItemonboardingCore.Standard) do {:ok, mapped} -> {:ok, mapped} {:updated, affected_count} -> {:ok, affected_count} {:executed, o, a} -> {:ok, o, a} {:error, _} -> {:bad} end end ) end I have confirmed that the pids in the genserver are infect the correct odbc pids and the GenServer.Call re...
[ -0.0269775390625, 0.03125, -0.0125732421875, 0.006439208984375, -0.01611328125, 0.006317138671875, -0.007781982421875, -0.035400390625, 0.0166015625, -0.052978515625, 0.0177001953125, -0.01043701171875, 0.00787353515625, 0.0159912109375, 0.0031890869140625, -0.00555419921875, -0.0013...
[ 836, 1405, 22288, 188, 50986, 23389, 74768, 24351, 214, 50886, 191769, 685, 291, 48398, 117008, 195052, 71013, 1010, 36, 10, 188800, 12283, 3564, 39563, 2147, 6468, 9226, 39642, 75622, 26785, 229, 65037, 15937, 193348, 441, 5584, 30646, 1632,...
[ 0.11767578125, 0.04931640625, 0.1351318359375, 0.07989501953125, 0.1396484375, 0.0694580078125, 0.10205078125, 0.236572265625, 0.03240966796875, 0.09344482421875, 0.172119140625, 0.1181640625, 0.082763671875, 0.1038818359375, 0.0556640625, 0.1326904296875, 0.056610107421875, 0.0385...
embed
68543529_c0
68543529
elixir
0
Title: Best way to handle ownership of resource Problem title: Best way to handle ownership of resource Tags: phoenix-framework, elixir Problem: Best way to handle ownership of resource I am looking for a nice and generic way to check if current logged user is the owner of the resource he is trying to show / update / d...
Best way to handle ownership of resource Best way to handle ownership of resource phoenix-framework elixir Best user_id Plug owner_check provisioned_device Devices.get_provisioned_device show.html user_check Plug.Conn current_user _opts need_login put_session request_path current_path put_flash You Routes.session_path ...
[ -0.032958984375, 0.007415771484375, 0.0145263671875, -0.025390625, 0.0019989013671875, -0.0081787109375, -0.00628662109375, -0.0255126953125, 0.01165771484375, -0.06787109375, 0.00131988525390625, 0.00933837890625, -0.0026702880859375, 0.00013065338134765625, -0.0162353515625, 0.013549...
[ 11345, 3917, 47, 34831, 101785, 16070, 111, 177953, 53073, 33, 4084, 160328, 18244, 15296, 38308, 38937, 532, 194351, 78292, 125034, 297, 112, 20375, 174842, 3794, 3454, 25826, 7639, 7693, 11935, 43581, 65918, 2146, 3871, 4867, 73, 3884, 1692...
[ 0.1605224609375, 0.0968017578125, 0.0809326171875, 0.19384765625, 0.257568359375, 0.2169189453125, 0.135498046875, 0.280029296875, 0.09515380859375, 0.1063232421875, 0.1573486328125, 0.1373291015625, 0.08929443359375, 0.1048583984375, 0.2220458984375, 0.19189453125, 0.177490234375, ...
embed
56075227_c1
56075227
elixir
1
)> Experiment.Data.get_data(Experiment.Data) ** (exit) exited in: GenServer.call(Experiment.Data, :data, 5000) ** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started (elixir) lib/gen_server.ex:979: GenServer.call/3 ie...
)> Experiment.Data.get_data(Experiment.Data) ** (exit) exited in: GenServer.call(Experiment.Data, :data, 5000) ** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started (elixir) lib/gen_server.ex:979: GenServer.call/3 ie...
[ 0.003997802734375, 0.031494140625, -0.004974365234375, 0.0162353515625, 0.00396728515625, 0, 0.0245361328125, 0.00165557861328125, -0.0011444091796875, -0.048583984375, 0.000598907470703125, 0.0107421875, -0.005126953125, 0.027099609375, 0.01025390625, -0.00616455078125, 0.0324707031...
[ 146797, 137989, 3794, 10135, 19279, 17152, 674, 23399, 82230, 297, 15937, 193348, 85763, 19692, 26939, 6371, 110, 9433, 83, 959, 923, 272, 82424, 137272, 34475, 9351, 144681, 38415, 26859, 6169, 38308, 25474, 1409, 39642, 3355, 199439, 18113, ...
[ 0.31494140625, 0.197509765625, 0.056488037109375, 0.15185546875, 0.0672607421875, 0.220458984375, 0.1121826171875, 0.1524658203125, 0.1993408203125, 0.01959228515625, 0.137451171875, 0.20947265625, 0.1522216796875, 0.1715087890625, 0.125732421875, 0.1334228515625, 0.0921630859375, ...
embed
38936682_c1
38936682
elixir
1
s_oauth_id_index stacktrace: (ecto) lib/ecto/repo/schema.ex:403: anonymous fn/4 in Ecto.Repo.Schema.constraints_to_errors/3 (elixir) lib/enum.ex:1183: Enum."-map/2-lists^map/1-0-"/2 (ecto) lib/ecto/repo/schema.ex:393: Ecto.Repo.Schema.constraints_to_errors/3 (ecto) lib/ecto/repo/schema.ex:193: anonymous fn/11 in Ecto.R...
s_oauth_id_index stacktrace: (ecto) lib/ecto/repo/schema.ex:403: anonymous fn/4 in Ecto.Repo.Schema.constraints_to_errors/3 (elixir) lib/enum.ex:1183: Enum."-map/2-lists^map/1-0-"/2 (ecto) lib/ecto/repo/schema.ex:393: Ecto.Repo.Schema.constraints_to_errors/3 (ecto) lib/ecto/repo/schema.ex:193: anonymous fn/11 in Ecto.R...
[ -0.005889892578125, -0.00677490234375, -0.00189971923828125, -0.00469970703125, 0.006256103515625, -0.010009765625, -0.0164794921875, -0.0126953125, 0.01177978515625, -0.03173828125, -0.01129150390625, -0.01336669921875, 0.00653076171875, -0.0017242431640625, 0.006134033203125, -0.0012...
[ 91, 31, 916, 927, 532, 4711, 177261, 39989, 13, 60751, 25474, 107, 771, 7560, 192, 3355, 22932, 363, 52184, 10821, 14783, 17357, 44150, 4332, 25452, 11883, 2271, 2816, 188, 188800, 18113, 6169, 38308, 316, 17168, 62346, 12477, 6562, 180033,...
[ 0.060546875, 0.06512451171875, 0.1793212890625, 0.1590576171875, 0.1412353515625, 0.2003173828125, 0.15283203125, 0.223876953125, 0.071044921875, 0.2049560546875, 0.114013671875, 0.054473876953125, 0.1322021484375, 0.10986328125, 0.07073974609375, 0.03643798828125, 0.03497314453125, ...
embed
48893593_c0
48893593
elixir
0
Title: Setting varaible/map key equal to arthemtic expression Problem title: Setting varaible/map key equal to arthemtic expression Tags: elixir, phoenix-framework Problem: Setting varaible/map key equal to arthemtic expression New to elixir, and couldn't find an clear information regarding this. I was originally tryin...
Setting varaible/map key equal to arthemtic expression Setting varaible/map key equal to arthemtic expression elixir phoenix-framework Setting Test score1 score2 score3 scorecard_params_updated scorecard_params Scorecard Setting varaible/map key equal to arthemtic expression New to elixir, and couldn't find an clear in...
[ -0.007568359375, -0.0184326171875, -0.01007080078125, -0.005706787109375, -0.006072998046875, -0.015380859375, -0.0025634765625, 0.0089111328125, -0.00823974609375, 0.007476806640625, 0.0123291015625, 0.006988525390625, 0.015625, 0.020263671875, 0.01080322265625, -0.0087890625, -0.02...
[ 503, 19514, 2487, 28236, 62346, 22799, 105950, 4927, 7701, 9523, 125195, 15296, 38308, 53073, 33, 4084, 160328, 8647, 47763, 304, 363, 38931, 2500, 8256, 117008, 168071, 47, 28282, 3525, 22288, 27494, 80836, 5423, 16750, 66044, 138, 77336, 18...
[ 0.133544921875, 0.0234832763671875, 0.1669921875, 0.2406005859375, 0.16943359375, 0.2261962890625, 0.138427734375, 0.111083984375, 0.169189453125, 0.15966796875, 0.234619140625, 0.06298828125, 0.226318359375, 0.0140533447265625, 0.04931640625, 0.125732421875, 0.07763671875, 0.14746...
embed
57039593_c0
57039593
elixir
0
Title: Why does ecto can&#x27;t preload query with &#x27;Group by&#x27;? Problem title: Why does ecto can&#x27;t preload query with &#x27;Group by&#x27;? Tags: ecto, elixir Problem: Why does ecto can't preload query with 'Group by'? I'm developping a chat. I have many rooms, withs members in these rooms. Users can also...
Why does ecto can&#x27;t preload query with &#x27;Group by&#x27;? Why does ecto can&#x27;t preload query with &#x27;Group by&#x27;? ecto elixir Postgrex.Error u r Why Group room_id members_preload User RoomUser ru.user_id u.id Room r.id ru.room_id r.room_id left_join Message m.room_id m.inserted_at ru.last_read group_b...
[ 0.009033203125, 0.006805419921875, -0.00921630859375, -0.003387451171875, -0.00537109375, -0.001312255859375, -0.00811767578125, 0.0022430419921875, 0.0032958984375, -0.06689453125, 0.00341796875, 0.000537872314453125, 0.015380859375, -0.004302978515625, -0.013671875, 0.01031494140625,...
[ 44084, 60751, 831, 3768, 18, 479, 63033, 41, 1294, 678, 205072, 390, 15296, 38308, 2795, 7134, 425, 18468, 31611, 75, 10760, 17155, 532, 43032, 4692, 53400, 38484, 3114, 65918, 28905, 25737, 513, 48205, 33657, 19777, 39116, 21115, 36849, 19...
[ 0.10382080078125, 0.26513671875, 0.096435546875, 0.154541015625, 0.068359375, 0.1373291015625, 0.236083984375, 0.138427734375, 0.08514404296875, 0.051971435546875, 0.2293701171875, 0.224609375, 0.059295654296875, 0.1854248046875, 0.0237579345703125, 0.1427001953125, 0.08856201171875,...
embed
75901006_c0
75901006
elixir
0
Title: Unable to deploy phoenix with edeliver which throws an compile_env/4 error Problem title: Unable to deploy phoenix with edeliver which throws an compile_env/4 error Tags: phoenix-framework, edeliver, elixir Problem: Unable to deploy phoenix with edeliver which throws an compile_env/4 error I am trying to deploy ...
Unable to deploy phoenix with edeliver which throws an compile_env/4 error Unable to deploy phoenix with edeliver which throws an compile_env/4 error phoenix-framework edeliver elixir FunctionClauseError Unable compile_env Compilation guardian.ex Application MACRO-compile_env Macro.Env context_modules Pxf.Auth.Guardian...
[ -0.0166015625, 0.007598876953125, 0.0030059814453125, -0.01373291015625, 0.0033111572265625, 0.01239013671875, 0.0007476806640625, -0.0098876953125, -0.01220703125, -0.006439208984375, -0.007659912109375, -0.008544921875, 0.036865234375, -0.01385498046875, 0.005706787109375, 0.00262451...
[ 992, 2886, 8, 13158, 53, 53073, 33, 4084, 678, 28, 112, 134148, 104250, 9969, 1340, 334, 17357, 18499, 160328, 15296, 38308, 28670, 26253, 18468, 15612, 14, 158031, 19, 3355, 104921, 58875, 4727, 7768, 43701, 83279, 420, 67362, 198156, 1191...
[ 0.01348876953125, 0.10137939453125, 0.0855712890625, 0.1844482421875, 0.02569580078125, 0.094970703125, 0.1229248046875, 0.159423828125, 0.07965087890625, 0.09716796875, 0.14599609375, 0.271484375, 0.0662841796875, 0.1456298828125, 0.1522216796875, 0.1829833984375, 0.173095703125, ...
embed
57152862_c0
57152862
elixir
0
Title: Cannot use Argon2 or Bcrypt with Comeonin, receiving conflicting errors Problem title: Cannot use Argon2 or Bcrypt with Comeonin, receiving conflicting errors Tags: elixir, phoenix-framework Problem: Cannot use Argon2 or Bcrypt with Comeonin, receiving conflicting errors I'm using version 5.1.2 of Comeonin to ha...
Cannot use Argon2 or Bcrypt with Comeonin, receiving conflicting errors Cannot use Argon2 or Bcrypt with Comeonin, receiving conflicting errors elixir phoenix-framework UndefinedFunctionError ArgumentError Cannot Argon2 Bcrypt Comeonin Argon2.hash_pwd_salt Comeonin.Argon2.hash_pwd_salt Did Argon2.hashpwsalt Comeonin.Ar...
[ -0.005096435546875, -0.0125732421875, -0.01153564453125, 0.012939453125, -0.0057373046875, 0.009765625, -0.0169677734375, 0.000942230224609375, 0.00811767578125, -0.022705078125, -0.004638671875, -0.004425048828125, 0.0274658203125, 0.0225830078125, 0.006072998046875, -0.0169677734375,...
[ 4171, 10869, 4527, 1172, 6126, 304, 707, 335, 136791, 678, 10592, 45118, 217063, 79612, 214, 18499, 15296, 38308, 53073, 33, 4084, 160328, 79912, 5983, 97249, 18468, 112140, 5442, 126234, 37281, 85985, 434, 111596, 22144, 60751, 99247, 7693, ...
[ 0.013275146484375, 0.1051025390625, 0.1143798828125, 0.1527099609375, 0.21728515625, 0.2117919921875, 0.03729248046875, 0.13330078125, 0.3056640625, 0.1009521484375, 0.154296875, 0.229736328125, 0.0618896484375, 0.171875, 0.049774169921875, 0.1500244140625, 0.05169677734375, 0.1939...
embed
48310861_c0
48310861
elixir
0
Title: Sort List of Maps based on a value within the Map Problem title: Sort List of Maps based on a value within the Map Tags: sorting, phoenix-framework, elixir Problem: Sort List of Maps based on a value within the Map I have this list: [%Statcasters.PredictionScore{__meta__: #Ecto.Schema.Metadata<:loaded, "predicti...
Sort List of Maps based on a value within the Map Sort List of Maps based on a value within the Map sorting phoenix-framework elixir Sort List Maps Map Statcasters.PredictionScore __meta__ Ecto.Schema.Metadata prediction_scores inserted_at Ecto.Association.NotLoaded league_id prediction_id question_id updated_at Enum.m...
[ -0.0089111328125, -0.0022125244140625, -0.0030059814453125, -0.01953125, -0.0220947265625, -0.0000820159912109375, -0.007110595703125, -0.0018768310546875, -0.004669189453125, 0.00311279296875, -0.00201416015625, 0.01470947265625, -0.0126953125, 0.00189208984375, 0.0087890625, -0.00445...
[ 53666, 32036, 111, 103033, 35509, 98, 34292, 28032, 42719, 12096, 214, 53073, 33, 4084, 160328, 18244, 15296, 38308, 23888, 408, 37499, 19273, 428, 30854, 35273, 241, 44150, 102, 92054, 1830, 12064, 183540, 214813, 122116, 192428, 532, 9655, ...
[ 0.2471923828125, 0.1904296875, 0.0667724609375, 0.22119140625, 0.1390380859375, 0.033111572265625, 0.20849609375, 0.1771240234375, 0.1820068359375, 0.2392578125, 0.050048828125, 0.042694091796875, 0.0704345703125, 0.11279296875, 0.08148193359375, 0.044830322265625, 0.0772705078125, ...
embed
45825409_c0
45825409
elixir
0
Title: Can&#x27;t understand destructuring in JWT auth (Phoenix) Problem title: Can&#x27;t understand destructuring in JWT auth (Phoenix) Tags: phoenix-framework, jwt, authentication, destructuring, elixir Problem: Can't understand destructuring in JWT auth (Phoenix) I'm setting up a pattern that I've seen a few places...
Can&#x27;t understand destructuring in JWT auth (Phoenix) Can&#x27;t understand destructuring in JWT auth (Phoenix) phoenix-framework jwt authentication destructuring elixir MatchError Bcrypt Can JWT Phoenix MyApp.SessionsController.create MyApp.Session.authenticate _full_claims IO.inspect Content-Type POST myapp.com l...
[ 0.0150146484375, 0.00634765625, -0.007232666015625, -0.0294189453125, 0.0003147125244140625, 0.0279541015625, -0.003814697265625, -0.006439208984375, -0.00665283203125, -0.017822265625, 0.005157470703125, 0.0179443359375, 0.013427734375, -0.0025634765625, 0.0024566650390625, 0.00372314...
[ 4171, 3768, 18, 28219, 8, 36716, 53089, 146968, 618, 531, 927, 683, 497, 33, 4084, 16, 53073, 160328, 18244, 1647, 434, 195734, 15296, 38308, 67407, 18468, 335, 136791, 133720, 2646, 39179, 5, 294, 90, 63239, 175904, 603, 7612, 2182, 6889...
[ 0.0928955078125, 0.07037353515625, 0.135009765625, 0.1759033203125, 0.1702880859375, 0.23388671875, 0.1732177734375, 0.220947265625, 0.222412109375, 0.1480712890625, 0.1595458984375, 0.010650634765625, 0.0660400390625, 0.09808349609375, 0.1444091796875, 0.010406494140625, 0.074096679...
embed
33898007_c0
33898007
elixir
0
Title: mix does not work behind proxy Problem title: mix does not work behind proxy Tags: elixir, http-proxy, elixir-mix Problem: mix does not work behind proxy I always have been using mix behind proxy at least just 2 weeks ago. However I found that mix becomes not to be able to work behind proxy yesterday. mix versio...
mix does not work behind proxy mix does not work behind proxy elixir http-proxy elixir-mix deps.get Registry http_error failed_connect to_address s3.amazonaws.com Running Dependency v0.5.3 v0.6.1 v1.3.2 v0.7.4 v1.0.2 v2.12.2 ssl_verify_hostname v1.0.5 v0.19.5 v0.5.4 Getting Hex Checking s3.hex.pm httpoison-0.7.4.tar Re...
[ -0.0036163330078125, 0.0245361328125, 0.002349853515625, -0.0014801025390625, 0.01080322265625, -0.003143310546875, -0.0189208984375, 0.024169921875, 0.004852294921875, 0.010009765625, 0.0142822265625, 0.006317138671875, 0.0096435546875, 0.01336669921875, 0.0098876953125, -0.0001897811...
[ 17664, 14602, 959, 4488, 50155, 502, 50878, 15296, 38308, 64101, 53, 62015, 8, 6423, 3794, 19685, 1621, 188800, 165523, 135457, 107421, 91, 363, 2887, 37102, 19725, 28398, 26885, 93645, 122887, 134926, 24861, 814, 117878, 210732, 1529, 425, 3...
[ 0.2841796875, 0.011474609375, 0.1094970703125, 0.13916015625, 0.1982421875, 0.14599609375, 0.2744140625, 0.07562255859375, 0.1962890625, 0.16650390625, 0.07562255859375, 0.27001953125, 0.14306640625, 0.1409912109375, 0.08416748046875, 0.09130859375, 0.07977294921875, 0.141967773437...
embed
38277893_c0
38277893
elixir
0
Title: ExAws not working on production release (Phoenix/Arc/ExAws) Problem title: ExAws not working on production release (Phoenix/Arc/ExAws) Tags: elixir, amazon-s3, phoenix-framework Problem: ExAws not working on production release (Phoenix/Arc/ExAws) I've been trying to create an uploader for avatars, but I've been ...
ExAws not working on production release (Phoenix/Arc/ExAws) ExAws not working on production release (Phoenix/Arc/ExAws) elixir amazon-s3 phoenix-framework Elixir.Poison.SyntaxError Poison.SyntaxError ExAws Phoenix Arc SUPERVISOR REPORT Jul-2016::22:35:41 Elixir.ExAws.Supervisor Context child_terminated Reason __excepti...
[ -0.006317138671875, 0.0125732421875, 0.000514984130859375, 0.00138092041015625, -0.00946044921875, -0.002716064453125, 0.0003643035888671875, -0.005157470703125, -0.002349853515625, 0.0198974609375, -0.0081787109375, -0.0079345703125, 0.026611328125, 0, 0.037109375, 0.000885009765625, ...
[ 5443, 284, 19725, 959, 20697, 98, 36049, 54452, 33, 4084, 7614, 19279, 15296, 38308, 2527, 5870, 7, 363, 160328, 25318, 7192, 40514, 294, 3371, 86531, 18468, 31611, 64249, 191, 5, 133720, 51210, 55452, 11839, 122262, 145269, 19579, 39112, 7...
[ 0.1812744140625, 0.1610107421875, 0.255859375, 0.0687255859375, 0.1748046875, 0.06915283203125, 0.1944580078125, 0.15380859375, 0.0357666015625, 0.1097412109375, 0.0989990234375, 0.1175537109375, 0.0831298828125, 0.2313232421875, 0.072998046875, 0.12548828125, 0.02886962890625, 0.1...
embed
40564093_c0
40564093
elixir
0
Title: Phoenix - connect socket, join channel, push, receive messages from ANOTHER application Problem title: Phoenix - connect socket, join channel, push, receive messages from ANOTHER application Tags: phoenix-channels, phoenix-framework, elixir Problem: Phoenix - connect socket, join channel, push, receive messages ...
Phoenix - connect socket, join channel, push, receive messages from ANOTHER application Phoenix - connect socket, join channel, push, receive messages from ANOTHER application phoenix-channels phoenix-framework elixir ANOTHER Phoenix Socket.connect chandothis.herokuapp.com Socket.Web Zm9yayB0aGUgZG9uZ2xlcw gen_tcp Port...
[ -0.01287841796875, 0.014892578125, -0.0242919921875, 0.0010223388671875, -0.000774383544921875, 0.0174560546875, -0.007232666015625, -0.007537841796875, 0.01043701171875, -0.044189453125, 0.01373291015625, 0.002349853515625, 0.00604248046875, 0.0035858154296875, -0.0120849609375, 0.001...
[ 133720, 37067, 221, 27853, 33284, 86723, 25944, 53299, 89914, 1295, 224750, 38415, 53073, 33, 4084, 17032, 8876, 160328, 18244, 15296, 38308, 1061, 135457, 557, 100231, 90865, 319, 9007, 30474, 9226, 121422, 13791, 75137, 436, 7146, 11521, 513,...
[ 0.281982421875, 0.1923828125, 0.127685546875, 0.1837158203125, 0.2078857421875, 0.1982421875, 0.1641845703125, 0.08154296875, 0.150634765625, 0.057342529296875, 0.1204833984375, 0.1636962890625, 0.041229248046875, 0.060516357421875, 0.0955810546875, 0.10009765625, 0.126708984375, 0...
embed
52565477_c1
52565477
elixir
1
id_index = Enum.find_index(exids, fn(x) -> x == exid end) File.write!("#{@root_dir}/moving_old_data", "#{Enum.at(exids, next_exid_index + 1)}") end) This is a very long time running loop, but it's not handling any stop and resume logic. I tried to save current data to a file and resume it from there on restart as exids...
id_index = Enum.find_index(exids, fn(x) -> x == exid end) File.write!("#{@root_dir}/moving_old_data", "#{Enum.at(exids, next_exid_index + 1)}") end) This is a very long time running loop, but it's not handling any stop and resume logic. I tried to save current data to a file and resume it from there on restart as exids...
[ 0.0020904541015625, 0.008056640625, -0.01025390625, 0.012451171875, 0.0130615234375, 0.0228271484375, -0.00048828125, 0.00604248046875, 0.01068115234375, -0.018310546875, -0.0038604736328125, 0.019775390625, 0.00677490234375, 0.0069580078125, 0.005706787109375, -0.022705078125, 0.005...
[ 3447, 454, 4711, 2203, 357, 316, 111607, 3355, 30185, 14783, 425, 1022, 69112, 1119, 532, 3564, 42724, 18781, 90295, 981, 148920, 936, 432, 6496, 18345, 10135, 647, 2606, 5, 257, 11737, 997, 4879, 3293, 4552, 4989, 1733, 51042, 40956, 442...
[ 0.220458984375, 0.003021240234375, 0.2958984375, 0.0204010009765625, 0.1407470703125, 0.2442626953125, 0.154296875, 0.157470703125, 0.2452392578125, 0.131103515625, 0.034637451171875, 0.06414794921875, 0.0159912109375, 0.1881103515625, 0.19970703125, 0.0654296875, 0.1585693359375, ...
embed
35170911_c0
35170911
elixir
0
Title: mix deps.get failed (seems missing ssl?) Problem title: mix deps.get failed (seems missing ssl?) Tags: erlang, elixir, phoenix-framework, elixir-mix Problem: mix deps.get failed (seems missing ssl?) I'm sorry but I'm new to Elixir. while building phoenix application, mix deps.get failed with an error. % mix deps...
mix deps.get failed (seems missing ssl?) mix deps.get failed (seems missing ssl?) erlang elixir phoenix-framework elixir-mix MatchError deps.get Could Hex Shall ssl.app utils.ex:409 Mix.Utils.read_httpc utils.ex:354 Mix.Utils.read_path local.ex:107 Mix.Local.read_path local.ex:86 Mix.Local.find_matching_versions_from_s...
[ -0.00138092041015625, 0.00830078125, 0.002838134765625, 0.0108642578125, -0.00604248046875, -0.01348876953125, -0.0205078125, -0.00885009765625, -0.007781982421875, 0.01031494140625, 0.031982421875, -0.02001953125, 0.0174560546875, 0.0263671875, 0.0155029296875, -0.004608154296875, -...
[ 17664, 8, 6423, 3794, 165523, 184, 195, 132283, 91, 24861, 72, 3066, 15296, 38308, 53073, 33, 4084, 160328, 62015, 67407, 18468, 191147, 1529, 425, 29907, 9007, 39137, 1126, 37286, 106742, 39116, 5475, 7870, 128405, 4000, 44141, 203758, 15276...
[ 0.264404296875, 0.2108154296875, 0.199951171875, 0.155029296875, 0.2066650390625, 0.0638427734375, 0.0855712890625, 0.1514892578125, 0.025634765625, 0.22802734375, 0.0643310546875, 0.2366943359375, 0.0670166015625, 0.218994140625, 0.05072021484375, 0.0736083984375, 0.1390380859375, ...
embed
31675375_c1
31675375
elixir
1
: :enoent (elixir) lib/system.ex:440: System.cmd("nmake", ["/F", "Makefile.win", "priv\\bcrypt_nif.dll"], [stderr_to_stdout: true]) mix.exs:15: Mix.Tasks.Compile.Comeonin.run/1 (elixir) lib/enum.ex:977: anonymous fn/3 in Enum.map/2 (elixir) lib/enum.ex:1261: Enum."-reduce/3-lists^foldl/2-0-"/3 (elixir) lib/enum.ex:977:...
: :enoent (elixir) lib/system.ex:440: System.cmd("nmake", ["/F", "Makefile.win", "priv\\bcrypt_nif.dll"], [stderr_to_stdout: true]) mix.exs:15: Mix.Tasks.Compile.Comeonin.run/1 (elixir) lib/enum.ex:977: anonymous fn/3 in Enum.map/2 (elixir) lib/enum.ex:1261: Enum."-reduce/3-lists^foldl/2-0-"/3 (elixir) lib/enum.ex:977:...
[ -0.017333984375, 0.00537109375, 0.0002880096435546875, 0.00201416015625, 0.00335693359375, 0.02001953125, -0.01043701171875, -0.01446533203125, -0.007171630859375, -0.0029296875, -0.0118408203125, 0.005859375, 0.028076171875, 0.017333984375, 0.00238037109375, 0.0030670166015625, -0.0...
[ 21004, 2517, 6169, 38308, 25474, 16751, 3355, 141929, 12353, 3931, 71, 19, 55898, 919, 76978, 29822, 9494, 5293, 334, 275, 136791, 93, 420, 1181, 188, 17664, 12221, 37286, 9874, 108161, 10770, 13, 45118, 16428, 33, 194138, 52184, 14783, 181...
[ 0.18798828125, 0.24365234375, 0.08160400390625, 0.2196044921875, 0.1275634765625, 0.122314453125, 0.10595703125, 0.185546875, 0.1036376953125, 0.1131591796875, 0.006988525390625, 0.05889892578125, 0.2449951171875, 0.04449462890625, 0.05047607421875, 0.167236328125, 0.0728759765625, ...
embed
47895651_c0
47895651
elixir
0
Title: How to extend an existing Protocol in Elixir? Problem title: How to extend an existing Protocol in Elixir? Tags: elixir Problem: How to extend an existing Protocol in Elixir? How to properly extend an existing Protocol in Elixir? So that for example: Poison.encode!(:null) returns "null". Take the Poison.Encoder ...
How to extend an existing Protocol in Elixir? How to extend an existing Protocol in Elixir? elixir _build/dev/lib/poison/ebin/Elixir.Poison.Encoder.Atom.beam How Protocol Elixir Poison.encode Poison.Encoder Atom What Encoder.BitString.encode Atom.to_string Poison Poison.Encoder.Atom _build Elixir.Poison.Encoder.Atom.be...
[ 0.00084686279296875, -0.000385284423828125, 0.0260009765625, 0.0274658203125, -0.007080078125, -0.018310546875, 0.000492095947265625, 0.0091552734375, -0.004669189453125, -0.0311279296875, -0.0035247802734375, -0.0037689208984375, 0.01904296875, 0.01190185546875, 0.0267333984375, 0.002...
[ 11249, 47, 65042, 144573, 151607, 23, 25318, 38308, 15296, 177149, 18548, 5612, 120178, 191, 7568, 647, 150, 7192, 40514, 7768, 587, 820, 12078, 372, 302, 64249, 5, 33, 40899, 69728, 4865, 357, 571, 217, 71713, 188, 91693, 34627, 66332, 3...
[ 0.08734130859375, 0.0273895263671875, 0.2239990234375, 0.2083740234375, 0.2423095703125, 0.05987548828125, 0.1336669921875, 0.263916015625, 0.08428955078125, 0.1221923828125, 0.1199951171875, 0.1181640625, 0.1778564453125, 0.2008056640625, 0.1231689453125, 0.009918212890625, 0.081298...
embed
50140978_c0
50140978
elixir
0
Title: Rounding up with the Decimal or Money library Problem title: Rounding up with the Decimal or Money library Tags: decimal, elixir Problem: Rounding up with the Decimal or Money library I need a function that takes a Decimal (it’s money, so two decimal places) and rounds up to the nearest quarter. I’m trying to av...
Rounding up with the Decimal or Money library Rounding up with the Decimal or Money library decimal elixir Rounding Decimal Money round_up_to_nearest_quarter D.round D.sub D.cmp D.new D.add Rounding up with the Decimal or Money library I need a function that takes a Decimal (it’s money, so two decimal places) and round...
[ -0.013671875, -0.006988525390625, -0.00897216796875, -0.0279541015625, -0.00127410888671875, 0.00616455078125, 0.0024871826171875, 0.00787353515625, 0.0203857421875, 0.015380859375, -0.02294921875, 0.0277099609375, 0.00933837890625, 0.007354736328125, 0.0113525390625, -0.0072021484375,...
[ 162856, 214, 1257, 678, 49132, 2749, 707, 81669, 35773, 1294, 32380, 15296, 38308, 68807, 2037, 188, 86, 147, 525, 167565, 391, 67688, 22144, 2676, 54936, 4028, 3871, 32354, 51776, 17265, 6626, 44677, 136, 43573, 128274, 31577, 71864, 96760, ...
[ 0.2252197265625, 0.099609375, 0.191650390625, 0.0828857421875, 0.2186279296875, 0.176513671875, 0.09857177734375, 0.1988525390625, 0.1888427734375, 0.05804443359375, 0.2027587890625, 0.0831298828125, 0.2430419921875, 0.2296142578125, 0.1419677734375, 0.10009765625, 0.0701904296875, ...
embed
39243409_c0
39243409
elixir
0
Title: How to get a video flow with Elixir/HTTPoison or Hackney? Problem title: How to get a video flow with Elixir/HTTPoison or Hackney? Tags: httpoison, multipart-mixed-replace, elixir Problem: How to get a video flow with Elixir/HTTPoison or Hackney? I'm trying to get a stream from a cam using Elixir / HTTPoison and...
How to get a video flow with Elixir/HTTPoison or Hackney? How to get a video flow with Elixir/HTTPoison or Hackney? httpoison multipart-mixed-replace elixir cam this How Elixir HTTPoison Hackney basic_auth HTTPoison.AsyncResponse HTTPoison.get x.x.x.x video.cgi stream_to recv_timeout assert_receive HTTPoison.AsyncStatu...
[ -0.006866455078125, -0.0084228515625, -0.00457763671875, 0.0045166015625, 0.0191650390625, -0.00003743171691894531, -0.01068115234375, -0.0206298828125, 0.01165771484375, -0.0234375, 0.00701904296875, 0.028076171875, 0.003662109375, -0.001983642578125, 0.00885009765625, -0.014099121093...
[ 11249, 2046, 1202, 86608, 678, 25318, 38308, 18544, 23658, 31, 40514, 707, 52922, 10186, 1621, 6024, 17365, 62015, 107, 23935, 15296, 7384, 903, 135913, 62822, 916, 12654, 94399, 3794, 1022, 735, 75973, 21954, 334, 6032, 135206, 1833, 944, ...
[ 0.064453125, 0.10748291015625, 0.2430419921875, 0.25341796875, 0.0985107421875, 0.1241455078125, 0.258056640625, 0.09326171875, 0.052459716796875, 0.1319580078125, 0.238037109375, 0.0118408203125, 0.203857421875, 0.2181396484375, 0.016143798828125, 0.07183837890625, 0.14306640625, ...
embed
65197159_c0
65197159
elixir
0
Title: Quoting and escaping for mix cmd aliases Problem title: Quoting and escaping for mix cmd aliases Tags: elixir, elixir-mix Problem: Quoting and escaping for mix cmd aliases I can, in principle, run any shell commands as mix tasks by defining aliases in mix.exs that start with cmd . But I am struggling with white ...
Quoting and escaping for mix cmd aliases Quoting and escaping for mix cmd aliases elixir elixir-mix Quoting mix.exs Quoting and escaping for mix cmd aliases I can, in principle, run any shell commands as mix tasks by defining aliases in mix.exs that start with cmd . But I am struggling with white spaces, quoting, and b...
[ 0.0038604736328125, 0.0213623046875, 0.002899169921875, 0.02197265625, -0.008544921875, 0.00933837890625, -0.0067138671875, 0.02734375, -0.008544921875, 0.0341796875, -0.005859375, 0.0022735595703125, 0.0086669921875, 0.019287109375, -0.003997802734375, 0.0234375, -0.00811767578125, ...
[ 43851, 1916, 136, 38940, 10366, 100, 17664, 1827, 71, 55109, 15296, 38308, 62015, 3355, 90, 831, 24702, 11675, 128019, 75101, 66211, 13204, 7, 4034, 237875, 35011, 32628, 9643, 4420, 5544, 351, 174796, 27781, 27489, 79315, 55547, 17721, 959, ...
[ 0.173095703125, 0.0816650390625, 0.0384521484375, 0.15283203125, 0.097412109375, 0.0556640625, 0.2496337890625, 0.1807861328125, 0.1302490234375, 0.2298583984375, 0.054443359375, 0.2066650390625, 0.230712890625, 0.12841796875, 0.07684326171875, 0.036956787109375, 0.0218505859375, 0...
embed
59754000_c0
59754000
elixir
0
Title: elixir, ecto: Cannot pass parameter to &quot;CREATE VIEW&quot; raw SQL query Problem title: elixir, ecto: Cannot pass parameter to &quot;CREATE VIEW&quot; raw SQL query Tags: ecto, postgrex, postgresql, elixir Problem: elixir, ecto: Cannot pass parameter to "CREATE VIEW" raw SQL query We're building an elixir ap...
elixir, ecto: Cannot pass parameter to &quot;CREATE VIEW&quot; raw SQL query elixir, ecto: Cannot pass parameter to &quot;CREATE VIEW&quot; raw SQL query ecto postgrex postgresql elixir ArgumentError Postgrex.Error Cannot CREATE VIEW SQL Ecto.Adapters.SQL.query Repo events_view SELECT WHERE Postgres ERROR undefined_par...
[ 0.010009765625, 0.0203857421875, -0.0025177001953125, 0.00689697265625, -0.0019378662109375, -0.0272216796875, -0.01806640625, -0.02783203125, 0.005401611328125, -0.03466796875, 0.011962890625, -0.00787353515625, 0.01275634765625, 0.0035400390625, -0.022216796875, -0.015625, -0.02185...
[ 15296, 38308, 60751, 4171, 10869, 27875, 171859, 47, 41519, 8241, 204148, 49649, 80866, 41, 1294, 1305, 7134, 425, 17562, 99247, 112140, 18468, 2795, 31611, 175151, 241, 44150, 22409, 2631, 23962, 158897, 944, 853, 771, 47353, 22751, 6755, 14...
[ 0.122314453125, 0.2464599609375, 0.2293701171875, 0.05853271484375, 0.1173095703125, 0.1527099609375, 0.256103515625, 0.061126708984375, 0.1788330078125, 0.119384765625, 0.294921875, 0.189453125, 0.2017822265625, 0.125732421875, 0.0235595703125, 0.0182342529296875, 0.1524658203125, ...
embed
43318019_c0
43318019
elixir
0
Title: Building Options for Select from Elixir Map Problem title: Building Options for Select from Elixir Map Tags: elixir, phoenix-framework Problem: Building Options for Select from Elixir Map Assuming this data_set, %{"ACTION" => "avail.datacenters", "DATA" => [%{"ABBR" => "dallas", "DATACENTERID" => 2, "LOCATION" =...
Building Options for Select from Elixir Map Building Options for Select from Elixir Map elixir phoenix-framework Elixir Building Options Select Map ACTION avail.datacenters DATA ABBR DATACENTERID LOCATION Dallas USA Fremont Atlanta Newark London England Tokyo Singapore Frankfurt shinagawa1 ERRORARRAY formatted_array_of...
[ -0.00787353515625, -0.01312255859375, 0.007415771484375, -0.00077056884765625, 0.006011962890625, -0.01611328125, 0.0024566650390625, -0.004180908203125, 0.00138092041015625, -0.014892578125, -0.0223388671875, -0.005401611328125, 0.0240478515625, 0.000263214111328125, 0.001861572265625, ...
[ 104919, 152448, 51620, 1295, 25318, 38308, 42719, 100, 15296, 53073, 33, 4084, 160328, 18244, 12944, 185, 25820, 10135, 30090, 391, 17758, 11321, 38101, 6405, 116563, 7146, 124448, 140151, 4602, 175119, 163816, 66874, 9020, 30715, 71667, 58888, ...
[ 0.2279052734375, 0.276611328125, 0.227783203125, 0.1378173828125, 0.16259765625, 0.302490234375, 0.219970703125, 0.043304443359375, 0.1068115234375, 0.03961181640625, 0.0836181640625, 0.152099609375, 0.130615234375, 0.0247802734375, 0.1005859375, 0.0791015625, 0.1962890625, 0.11010...
embed
65733198_c0
65733198
elixir
0
Title: could not compile dependency :salty, &quot;mix compile&quot; failed. ** (Mix) Could not compile with &quot;make&quot; (exit status: 2) Problem title: could not compile dependency :salty, &quot;mix compile&quot; failed. ** (Mix) Could not compile with &quot;make&quot; (exit status: 2) Tags: elixir, phoenix-framew...
could not compile dependency :salty, &quot;mix compile&quot; failed. ** (Mix) Could not compile with &quot;make&quot; (exit status: 2) could not compile dependency :salty, &quot;mix compile&quot; failed. ** (Mix) Could not compile with &quot;make&quot; (exit status: 2) elixir phoenix-framework src/salty_nif.c:20 Ubuntu...
[ -0.00180816650390625, -0.0072021484375, 0.01202392578125, -0.00787353515625, -0.00445556640625, -0.005859375, -0.0216064453125, 0.0012359619140625, -0.0030670166015625, 0.0091552734375, -0.007232666015625, -0.023193359375, 0.021728515625, 0.0291748046875, 0.025390625, -0.00053405761718...
[ 5809, 959, 9969, 1340, 42548, 27771, 2317, 939, 62015, 165523, 594, 4084, 191147, 678, 55898, 23399, 10778, 4958, 15296, 38308, 53073, 33, 160328, 19437, 93, 420, 16619, 116890, 37286, 1552, 141, 127, 48636, 12465, 1004, 3190, 97249, 16498, ...
[ 0.078125, 0.0794677734375, 0.1427001953125, 0.1356201171875, 0.1734619140625, 0.08404541015625, 0.18115234375, 0.20361328125, 0.2138671875, 0.12890625, 0.120849609375, 0.1795654296875, 0.0718994140625, 0.020263671875, 0.07373046875, 0.091796875, 0.06298828125, 0.0074462890625, 0....
embed
38420628_c0
38420628
elixir
0
Title: Phoenix Channels - broadcasting from controller - how to find current_user? Problem title: Phoenix Channels - broadcasting from controller - how to find current_user? Tags: phoenix-framework, phoenix-channels, elixir Problem: Phoenix Channels - broadcasting from controller - how to find current_user? I have an a...
Phoenix Channels - broadcasting from controller - how to find current_user? Phoenix Channels - broadcasting from controller - how to find current_user? phoenix-framework phoenix-channels elixir controller Phoenix Channels current_user Formerer.Endpoint.broadcast form.id new_submission Repo.get Formerer.User socket.assi...
[ -0.003662109375, 0.01141357421875, 0.0147705078125, -0.018798828125, 0.0010986328125, 0.007476806640625, -0.00021648406982421875, 0.00165557861328125, -0.00439453125, -0.072265625, 0.005096435546875, -0.0108642578125, 0.0001201629638671875, 0.0194091796875, -0.006866455078125, 0.002532...
[ 133720, 55969, 7, 226347, 214, 1295, 185373, 3642, 47, 7413, 43581, 454, 65918, 53073, 33, 4084, 160328, 17032, 8876, 15296, 38308, 15236, 11783, 152378, 38496, 6369, 55741, 3173, 532, 3525, 22144, 771, 3794, 1062, 221, 27853, 31304, 8912, ...
[ 0.289306640625, 0.2335205078125, 0.09893798828125, 0.2138671875, 0.0791015625, 0.1640625, 0.2822265625, 0.09307861328125, 0.07763671875, 0.202392578125, 0.2457275390625, 0.055084228515625, 0.260009765625, 0.048583984375, 0.0576171875, 0.09234619140625, 0.07598876953125, 0.094238281...
embed