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
51914024_c0
51914024
elixir
0
Title: Why doesn't send stop this Task in Elixir? Problem title: Why doesn't send stop this Task in Elixir? Tags: elixir Problem: Why doesn't send stop this Task in Elixir? If I have the below module defined and I do the following: 1) {:ok, pid} = ExampleTaskShutdown.start() 2) ExampleTaskShutdown.stop(pid) W...
Why doesn't send stop this Task in Elixir? Why doesn't send stop this Task in Elixir? elixir Why Task Elixir ExampleTaskShutdown.start ExampleTaskShutdown.stop ExampleTaskShutdown Shutdown Task.start timer.sleep Stop Process.exit ExampleTest ExUnit.Case Process.alive Why doesn't send stop this Task in Elixir?...
[ -0.00104522705078125, 0.028564453125, 0.0123291015625, 0.0029144287109375, 0.0018157958984375, -0.01483154296875, -0.013916015625, 0.0036163330078125, -0.00994873046875, -0.01251220703125, -0.00262451171875, 0.0198974609375, -0.0166015625, 0.043701171875, 0.0291748046875, 0.03100585937...
[ 44084, 22027, 3768, 18, 25379, 7279, 903, 9598, 92, 23, 25318, 38308, 15296, 89536, 9874, 1042, 24278, 34695, 17137, 19111, 13684, 21991, 170572, 42284, 123996, 23399, 111337, 5443, 85600, 6991, 24056, 35064, 88996, 61924, 685, 45226, 8705, 1...
[ 0.10504150390625, 0.0550537109375, 0.03271484375, 0.1038818359375, 0.1741943359375, 0.218994140625, 0.1021728515625, 0.2149658203125, 0.1123046875, 0.042724609375, 0.129150390625, 0.25732421875, 0.07086181640625, 0.12353515625, 0.1453857421875, 0.0305328369140625, 0.1036376953125, ...
embed
28180366_c0
28180366
elixir
0
Title: What is the benefit of Keyword Lists? Problem title: What is the benefit of Keyword Lists? Tags: elixir Problem: What is the benefit of Keyword Lists? In elixir we have Maps: > map = %{:a => "one", :b => "two"} # = %{a: "one", b: "two"} > map.a # = "one" > map[:a] # = "one" We also have Keyword Lists: > kl = [a:...
What is the benefit of Keyword Lists? What is the benefit of Keyword Lists? elixir ArgumentError What Keyword Lists map.a kl2 kl.a What is the benefit of Keyword Lists? In elixir we have Maps: We also have Keyword Lists: Why both? Syntax? Is it because Keyword Lists have a more flexible syntax allowing them to be defin...
[ 0.023681640625, 0.017578125, -0.004058837890625, -0.00872802734375, -0.0157470703125, -0.00543212890625, 0.006500244140625, -0.00860595703125, 0.0036773681640625, 0.00775146484375, -0.002410888671875, -0.003631591796875, 0.0014190673828125, 0.0203857421875, 0.0033111572265625, -0.00659...
[ 4865, 83, 70, 68073, 111, 189755, 32036, 7, 15296, 38308, 112140, 22288, 11, 4434, 304, 360, 765, 103033, 2843, 44084, 15044, 19010, 86531, 1286, 110677, 6002, 61924, 15490, 9709, 14907, 1620, 4568, 121, 32354, 11782, 15400, 8337, 102, 4908...
[ 0.055206298828125, 0.05560302734375, 0.051483154296875, 0.2161865234375, 0.07635498046875, 0.267822265625, 0.278076171875, 0.119873046875, 0.1041259765625, 0.2374267578125, 0.152587890625, 0.1788330078125, 0.0626220703125, 0.04266357421875, 0.03338623046875, 0.019378662109375, 0.0750...
embed
78800061_c0
78800061
elixir
0
Title: Why is Elixir `mix` asking me to install the same version of `hex` with an `.ez` at the end? Problem title: Why is Elixir `mix` asking me to install the same version of `hex` with an `.ez` at the end? Tags: elixir, phoenix-framework Problem: Why is Elixir `mix` asking me to install the same version of `hex` with...
Why is Elixir `mix` asking me to install the same version of `hex` with an `.ez` at the end? Why is Elixir `mix` asking me to install the same version of `hex` with an `.ez` at the end? elixir phoenix-framework Why Elixir local.hex Found otp-27 hex-2.1.1 builds.hex.pm hex-2.1.1.ez Aug Jul Erlang OTP erts-15.0.1 smp:16:...
[ -0.006805419921875, 0.01116943359375, 0.016845703125, -0.0026092529296875, -0.00384521484375, -0.00799560546875, -0.019287109375, 0.0004520416259765625, 0.013671875, 0.019287109375, 0.0181884765625, -0.0059814453125, 0.0146484375, 0.00176239013671875, 0.0257568359375, 0.000155448913574...
[ 44084, 25318, 38308, 62015, 113292, 163, 20600, 5701, 11389, 1106, 425, 678, 5, 1255, 3564, 15296, 53073, 33, 4084, 160328, 4000, 215624, 36, 18, 254, 50994, 764, 5428, 83783, 45367, 26822, 23177, 19579, 1004, 3066, 180, 23658, 933, 13386, ...
[ 0.102783203125, 0.166015625, 0.291259765625, 0.26806640625, 0.07147216796875, 0.0151824951171875, 0.1805419921875, 0.130859375, 0.14599609375, 0.1923828125, 0.2000732421875, 0.053985595703125, 0.03448486328125, 0.1728515625, 0.1314697265625, 0.0941162109375, 0.0068359375, 0.0310363...
embed
50552773_c0
50552773
elixir
0
Title: Why Erlang / Elixir observer memory usage numbers do not add up? Problem title: Why Erlang / Elixir observer memory usage numbers do not add up? Tags: elixir, erlang, phoenix-framework Problem: Why Erlang / Elixir observer memory usage numbers do not add up? I am starting out with Elixir and observing some stran...
Why Erlang / Elixir observer memory usage numbers do not add up? Why Erlang / Elixir observer memory usage numbers do not add up? elixir erlang phoenix-framework Why Erlang Elixir Processes Atoms Binaries ETS Total Why Erlang / Elixir observer memory usage numbers do not add up? I am starting out with Elixir and observ...
[ 0.0034637451171875, 0.032470703125, 0.001800537109375, 0.016357421875, -0.0048828125, -0.00102996826171875, -0.01806640625, 0.028076171875, 0.000972747802734375, -0.019287109375, 0.016357421875, -0.0281982421875, 0.03857421875, 0.016357421875, 0.02783203125, 0.00799560546875, 0.00970...
[ 44084, 1004, 3066, 25318, 38308, 160073, 98323, 127689, 101935, 959, 15190, 1257, 54, 15296, 72, 53073, 33, 4084, 160328, 123996, 69728, 54092, 83435, 33867, 72134, 66339, 114453, 123166, 37067, 148814, 36049, 110, 17, 3355, 209647, 117729, 156...
[ 0.08831787109375, 0.1351318359375, 0.25537109375, 0.119140625, 0.253173828125, 0.26220703125, 0.2005615234375, 0.1591796875, 0.1116943359375, 0.1048583984375, 0.1158447265625, 0.10986328125, 0.0010986328125, 0.07098388671875, 0.0911865234375, 0.0035400390625, 0.0242919921875, 0.081...
embed
72028756_c0
72028756
elixir
0
Title: how to run cli command from container_1 onto in container_2 in a docker-compose setup Problem title: how to run cli command from container_1 onto in container_2 in a docker-compose setup Tags: pandoc, phoenix-framework, docker-compose, latex, elixir Problem: how to run cli command from container_1 onto in contai...
how to run cli command from container_1 onto in container_2 in a docker-compose setup how to run cli command from container_1 onto in container_2 in a docker-compose setup pandoc phoenix-framework docker-compose latex elixir container_1 container_2 System.cmd Phoenix_server postgres:14 container_3 latex:2.18 how to run...
[ 0.005523681640625, -0.004913330078125, -0.00994873046875, 0.035400390625, -0.004638671875, 0.0162353515625, -0.01129150390625, 0.01055908203125, 0.004302978515625, -0.01080322265625, 0.0147705078125, 0.0130615234375, 0.037353515625, 0.00787353515625, -0.0113525390625, 0.003524780273437...
[ 3642, 11675, 95701, 75101, 1295, 116419, 115187, 98, 188, 23, 304, 54, 11050, 277, 78381, 169581, 2652, 29713, 4084, 21, 24371, 15296, 38308, 3931, 133720, 39642, 17562, 22635, 363, 5442, 1819, 25318, 33, 10723, 96679, 139392, 16188, 102158, ...
[ 0.049835205078125, 0.1370849609375, 0.25048828125, 0.2071533203125, 0.113525390625, 0.2332763671875, 0.1649169921875, 0.0484619140625, 0.1063232421875, 0.031341552734375, 0.1495361328125, 0.0828857421875, 0.194091796875, 0.1092529296875, 0.15283203125, 0.14111328125, 0.03713989257812...
embed
52906540_c1
52906540
elixir
1
, "app", :compact]) ▸ (stdlib) erl_eval.erl:680: :erl_eval.do_apply/6 ▸ (elixir) src/elixir.erl:265: :elixir.eval_forms/4 ▸ (elixir) lib/code.ex:590: Code.eval_quoted/3 ▸ (kernel) rpc.erl:197: anonymous fn/5 in :rpc.handle_call_call/6 START DONE! Also, I get the following error when trying to get the migrations status ...
, "app", :compact]) ▸ (stdlib) erl_eval.erl:680: :erl_eval.do_apply/6 ▸ (elixir) src/elixir.erl:265: :elixir.eval_forms/4 ▸ (elixir) lib/code.ex:590: Code.eval_quoted/3 ▸ (kernel) rpc.erl:197: anonymous fn/5 in :rpc.handle_call_call/6 START DONE! Also, I get the following error when trying to get the migrations status ...
[ 0.006500244140625, 0.021484375, -0.0027923583984375, 0.01422119140625, 0.00836181640625, 0.010986328125, 0.0032806396484375, -0.01129150390625, 0.00066375732421875, -0.00118255615234375, 0.01544189453125, -0.004638671875, 0.01336669921875, 0.0264892578125, 0.004730224609375, -0.0017852...
[ 9007, 58875, 47013, 244091, 271, 5612, 72, 141, 13, 1405, 91092, 538, 20155, 6169, 38308, 19437, 56, 161125, 5037, 17357, 25474, 40899, 3355, 116708, 28864, 68726, 18113, 72083, 57095, 23988, 966, 52184, 14783, 12147, 79628, 85763, 188359, 31...
[ 0.1412353515625, 0.0240020751953125, 0.0787353515625, 0.042083740234375, 0.03643798828125, 0.1553955078125, 0.0223388671875, 0.0792236328125, 0.0166015625, 0.21533203125, 0.155029296875, 0.068115234375, 0.09454345703125, 0.122802734375, 0.2415771484375, 0.06988525390625, 0.0105285644...
embed
48948588_c0
48948588
elixir
0
Title: Elixir dependency does not generate app file Problem title: Elixir dependency does not generate app file Tags: elixir, elixir-mix, hex-pm Problem: Elixir dependency does not generate app file I am about to release 0.2.0 of my myhtmlex library. But I am having trouble testing my new package release, as the test a...
Elixir dependency does not generate app file Elixir dependency does not generate app file elixir elixir-mix hex-pm Elixir hex.build Compiling myhtmlex_pkg_test Unchecked _build myhtmlex.app Mix Can Elixir dependency does not generate app file I am about to release 0.2.0 of my myhtmlex library. But I am having trouble t...
[ 0.00933837890625, 0.019287109375, -0.006988525390625, 0.0035400390625, -0.013916015625, 0.00396728515625, -0.0024871826171875, -0.012939453125, 0.01239013671875, 0.024658203125, 0.01422119140625, -0.025634765625, -0.01055908203125, 0.039794921875, 0.0194091796875, -0.00616455078125, ...
[ 25318, 38308, 42548, 27771, 14602, 959, 139392, 4027, 11435, 15296, 62015, 764, 425, 26822, 177149, 15612, 759, 7693, 3355, 8517, 6954, 78292, 9007, 37286, 4171, 54452, 757, 73011, 35773, 63134, 134234, 3525, 98169, 3034, 38415, 157353, 26499, ...
[ 0.1510009765625, 0.263916015625, 0.2052001953125, 0.10260009765625, 0.031951904296875, 0.132080078125, 0.17431640625, 0.181396484375, 0.1673583984375, 0.10748291015625, 0.1832275390625, 0.160888671875, 0.1771240234375, 0.0838623046875, 0.1358642578125, 0.038482666015625, 0.0528564453...
embed
42213446_c1
42213446
elixir
1
ills_list", {2017, 2, 14}}, [%{date: {2017, 2, 14}, title: "band practice"}]}]} As you can see from the listing above, the table elements consist of a two-tuple key and a list of maps. A match query like this works fine: iex 13> :mnesia.transaction(fn -> ... 13> :mnesia.match_object({:todo_lists, {"bills_list", :_}, :_...
ills_list", {2017, 2, 14}}, [%{date: {2017, 2, 14}, title: "band practice"}]}]} As you can see from the listing above, the table elements consist of a two-tuple key and a list of maps. A match query like this works fine: iex 13> :mnesia.transaction(fn -> ... 13> :mnesia.match_object({:todo_lists, {"bills_list", :_}, :_...
[ -0.006622314453125, 0.0130615234375, 0.0020599365234375, 0.0033111572265625, -0.00677490234375, -0.00136566162109375, -0.01446533203125, 0.01275634765625, 0.0172119140625, 0.002105712890625, 0.03369140625, 0.01177978515625, 0.0040283203125, 0.01324462890625, -0.01202392578125, -0.00662...
[ 99825, 7, 6562, 3259, 116, 616, 17489, 44759, 8262, 41361, 1957, 5303, 23180, 80854, 58055, 111, 6626, 458, 8705, 22799, 10, 22288, 14858, 41, 1294, 1884, 903, 43240, 5885, 17, 3355, 702, 39, 86, 3478, 30145, 44713, 14783, 98753, 187694, ...
[ 0.15283203125, 0.133056640625, 0.2283935546875, 0.15478515625, 0.0703125, 0.1907958984375, 0.025848388671875, 0.049896240234375, 0.1446533203125, 0.192138671875, 0.00994873046875, 0.1204833984375, 0.17626953125, 0.1431884765625, 0.0828857421875, 0.01824951171875, 0.08740234375, 0.0...
embed
36679379_c0
36679379
elixir
0
Title: Elixir - Call method on module by String-name Problem title: Elixir - Call method on module by String-name Tags: dynamic, elixir, load, module Problem: Elixir - Call method on module by String-name I'm pretty new to Elixir and functional programming-languages in general. In Elixir, I want to call one specific fu...
Elixir - Call method on module by String-name Elixir - Call method on module by String-name dynamic elixir load module Elixir Call String-name module_name Code.eval_file module.ex __DIR__ Balance Book.helloWorld Elixir - Call method on module by String-name I'm pretty new to Elixir and functional programming-languages ...
[ -0.00153350830078125, -0.00482177734375, 0.008544921875, 0.042724609375, 0.01177978515625, 0.00848388671875, 0.00982666015625, 0.0012054443359375, -0.002197265625, -0.053466796875, -0.0076904296875, -0.0286865234375, -0.005462646484375, -0.00775146484375, 0.0133056640625, -0.0127563476...
[ 25318, 38308, 26265, 55300, 98, 88996, 390, 23351, 214, 11627, 84079, 15296, 72367, 28864, 1405, 29822, 3355, 123237, 131176, 27432, 127, 13817, 70646, 3525, 123309, 56037, 196651, 3444, 11782, 1632, 29458, 32354, 63014, 34475, 9351, 237, 25632...
[ 0.1456298828125, 0.265380859375, 0.2064208984375, 0.2177734375, 0.04620361328125, 0.2352294921875, 0.03045654296875, 0.1787109375, 0.1090087890625, 0.1707763671875, 0.174072265625, 0.07470703125, 0.15673828125, 0.10400390625, 0.1876220703125, 0.125732421875, 0.1593017578125, 0.0216...
embed
44510403_c0
44510403
elixir
0
Title: Phoenix - import module into config Problem title: Phoenix - import module into config Tags: phoenix-framework, elixir Problem: Phoenix - import module into config For the local development version of my Phoenix app, I would like to import some secret key data from a gitignore/ directory into config.exs . Howeve...
Phoenix - import module into config Phoenix - import module into config phoenix-framework elixir module Phoenix config.exs MyApp api_key.exs api_secret.exs index.js APISecret process.env.API_SECRET api_secret.js APIKey process.env.API_KEY api_key.js module.exports RANDOM_KEY_HERE Phoenix - import module into config For...
[ -0.004791259765625, -0.00075531005859375, -0.01104736328125, -0.00946044921875, 0.000637054443359375, 0.0079345703125, 0.023193359375, -0.01373291015625, 0.004364013671875, -0.0078125, -0.00970458984375, 0.0024566650390625, 0.003997802734375, 0.01031494140625, -0.005279541015625, 0.001...
[ 133720, 24927, 88996, 3934, 153837, 53073, 33, 4084, 160328, 15296, 38308, 3355, 2646, 39179, 31470, 19770, 164054, 63262, 28175, 61687, 237051, 9433, 334, 74220, 9127, 441, 41116, 162429, 186104, 180758, 30174, 127214, 841, 4000, 34754, 4027, ...
[ 0.279296875, 0.23095703125, 0.2218017578125, 0.1380615234375, 0.2432861328125, 0.03466796875, 0.01483154296875, 0.05322265625, 0.06268310546875, 0.037353515625, 0.160888671875, 0.16845703125, 0.044403076171875, 0.127197265625, 0.0926513671875, 0.105712890625, 0.17822265625, 0.15234...
embed
74734776_c0
74734776
elixir
0
Title: Why does this Stream.take/2 call break a functioning Stream? Problem title: Why does this Stream.take/2 call break a functioning Stream? Tags: xmerl, elixir Problem: Why does this Stream.take/2 call break a functioning Stream? I have the following function, which parses an XML document: defp stream_parse!(dict) ...
Why does this Stream.take/2 call break a functioning Stream? Why does this Stream.take/2 call break a functioning Stream? xmerl elixir Why Stream.take Stream stream_parse SweetXml.stream_tags Stream.map SweetXml.xpath transform_by List.to_string new_dict IO.inspect Stream.each Stream.run error_scanning_entity_ref Why d...
[ -0.0006866455078125, 0.01806640625, -0.0003948211669921875, -0.01519775390625, 0.00909423828125, 0.00909423828125, -0.0030670166015625, -0.01190185546875, 0.0113525390625, -0.0247802734375, 0.0264892578125, -0.01953125, -0.00152587890625, 0.0201416015625, 0.040283203125, -0.00653076171...
[ 44084, 14602, 903, 115061, 78219, 12477, 11782, 36356, 32354, 214, 10, 1022, 1991, 141, 15296, 38308, 75973, 2500, 87497, 7237, 86429, 75985, 62346, 128405, 27198, 32036, 188, 91693, 3525, 61669, 17780, 16711, 41581, 16428, 18499, 4398, 2517, ...
[ 0.1153564453125, 0.05047607421875, 0.047149658203125, 0.25341796875, 0.20751953125, 0.2705078125, 0.1650390625, 0.1943359375, 0.1339111328125, 0.0810546875, 0.0232086181640625, 0.00396728515625, 0.134033203125, 0.1099853515625, 0.058990478515625, 0.1904296875, 0.199951171875, 0.109...
embed
64715842_c0
64715842
elixir
0
Title: multiple paths for include_erts in config.exs Problem title: multiple paths for include_erts in config.exs Tags: erlang, elixir Problem: multiple paths for include_erts in config.exs I have config.exs file and inside it I want to set path for include_erts. But this path varies depending on env in which my job is...
multiple paths for include_erts in config.exs multiple paths for include_erts in config.exs erlang elixir Mix.Releases.Config.LoadError CompileError include_erts config.exs File.exists IO.puts nofile:21 Mix.Releases.Config.environment nofile:19 Error multiple paths for include_erts in config.exs I have config.exs file ...
[ 0.00677490234375, 0.01129150390625, -0.0091552734375, 0.00506591796875, -0.01556396484375, -0.00994873046875, 0.000591278076171875, 0.00732421875, -0.0001163482666015625, 0.00836181640625, 0.004852294921875, 0.02001953125, 0.00933837890625, 0.0027008056640625, 0.006927490234375, 0.0115...
[ 48716, 60875, 7, 26698, 2529, 153837, 3355, 3066, 15296, 38308, 37286, 14507, 83671, 15363, 18468, 15612, 1340, 42724, 54376, 17780, 7077, 110, 29822, 25619, 153210, 23988, 212059, 454, 11435, 46132, 5423, 41110, 96819, 334, 12447, 12921, 3638,...
[ 0.209228515625, 0.23681640625, 0.1085205078125, 0.2066650390625, 0.21826171875, 0.2203369140625, 0.1693115234375, 0.1436767578125, 0.064697265625, 0.175048828125, 0.1865234375, 0.1007080078125, 0.142578125, 0.014404296875, 0.1044921875, 0.06494140625, 0.054290771484375, 0.116699218...
embed
79506967_c0
79506967
elixir
0
Title: Dropdown Menu collapses when a menu item is clicked, but I want the menu to be expanded when a menu item is clicked Problem title: Dropdown Menu collapses when a menu item is clicked, but I want the menu to be expanded when a menu item is clicked Tags: tailwind-css, elixir, flowbite, phoenix-framework Problem: D...
Dropdown Menu collapses when a menu item is clicked, but I want the menu to be expanded when a menu item is clicked Dropdown Menu collapses when a menu item is clicked, but I want the menu to be expanded when a menu item is clicked tailwind-css elixir flowbite phoenix-framework closing bubbling Dropdown Menu p-2 text-g...
[ -0.00439453125, 0.0162353515625, 0.006072998046875, -0.013671875, 0.01123046875, -0.00124359130859375, -0.0101318359375, -0.01348876953125, 0.0164794921875, -0.0133056640625, 0.0130615234375, -0.0081787109375, 0.004119873046875, 0.00860595703125, 0.0064697265625, 0.005645751953125, 0...
[ 130403, 34695, 49434, 3365, 127966, 7, 3229, 8026, 35735, 18158, 1284, 3444, 71062, 46741, 50777, 4439, 15296, 38308, 86608, 69314, 53073, 33, 4084, 160328, 20450, 373, 5125, 2069, 915, 5428, 7986, 5739, 20543, 115, 30494, 6873, 739, 814, 1...
[ 0.141357421875, 0.1983642578125, 0.2578125, 0.1365966796875, 0.2239990234375, 0.00482177734375, 0.056427001953125, 0.2127685546875, 0.1248779296875, 0.1827392578125, 0.024139404296875, 0.1102294921875, 0.1826171875, 0.1104736328125, 0.1932373046875, 0.05364990234375, 0.02056884765625...
embed
45045698_c1
45045698
elixir
1
ip}]) {:ok, socket} = :gen_tcp.accept listen_socket {:ok, %{ip: ip, port: port, socket: socket}} end def handle_info({ :tcp, socket, packet }, state) do # Expects something like "PORT 3456" if packet =~ "PORT" do port_number = String.slice(packet, -5..-2) TcpServer.start_link(port_number) :gen_tcp.send socket, "Starte...
ip}]) {:ok, socket} = :gen_tcp.accept listen_socket {:ok, %{ip: ip, port: port, socket: socket}} end def handle_info({ :tcp, socket, packet }, state) do # Expects something like "PORT 3456" if packet =~ "PORT" do port_number = String.slice(packet, -5..-2) TcpServer.start_link(port_number) :gen_tcp.send socket, "Starte...
[ 0.000965118408203125, 0.0211181640625, -0.02734375, 0.0189208984375, 0.008544921875, -0.01177978515625, -0.01312255859375, -0.01123046875, 0.007232666015625, -0.02490234375, 0.0179443359375, 0.009033203125, 0.0068359375, 0.0274658203125, -0.01092529296875, 0.00836181640625, 0.0070190...
[ 254, 8152, 685, 221, 27853, 2203, 1409, 18, 121422, 2263, 19462, 44632, 991, 3442, 11469, 3564, 34831, 7319, 43824, 11341, 60075, 24762, 91599, 138, 121317, 2606, 23351, 13348, 29102, 758, 384, 193348, 17137, 10187, 6982, 39285, 126597, 3525,...
[ 0.093994140625, 0.02496337890625, 0.150390625, 0.104736328125, 0.18994140625, 0.0290069580078125, 0.1876220703125, 0.0272674560546875, 0.2030029296875, 0.029388427734375, 0.14306640625, 0.27197265625, 0.09307861328125, 0.092529296875, 0.137451171875, 0.06011962890625, 0.16162109375, ...
embed
74290769_c0
74290769
elixir
0
Title: Recompile elixir module with erlang OTP 25 when mix won't start Problem title: Recompile elixir module with erlang OTP 25 when mix won't start Tags: chocolatey, elixir, erlang Problem: Recompile elixir module with erlang OTP 25 when mix won't start Whenever I use "mix deps.clean", "mix deps.get" or any...
Recompile elixir module with erlang OTP 25 when mix won't start Recompile elixir module with erlang OTP 25 when mix won't start chocolatey elixir erlang UndefinedFunctionError Recompile OTP beam_load.c Error Elixir.Code.Formatter Loading ProgramData Elixir Elixir.Code.Formatter.beam Code.Formatter.locals_with...
[ 0.00079345703125, 0.01025390625, -0.010009765625, 0.00131988525390625, 0.0257568359375, -0.005523681640625, 0.01275634765625, -0.01141357421875, 0.00034332275390625, -0.005096435546875, 0.01080322265625, -0.0303955078125, 0.0203857421875, 0.023681640625, 0.0274658203125, -0.01745605468...
[ 853, 58875, 1340, 15296, 38308, 88996, 72, 3066, 180, 23658, 714, 3229, 17664, 23742, 3768, 18, 4034, 678, 64507, 53, 79912, 5983, 97249, 18468, 186, 302, 63033, 238, 212059, 25318, 114211, 102973, 228006, 7663, 372, 28864, 98908, 6056, 250...
[ 0.1109619140625, 0.1551513671875, 0.1392822265625, 0.1029052734375, 0.232177734375, 0.174072265625, 0.0767822265625, 0.2216796875, 0.060272216796875, 0.1666259765625, 0.2161865234375, 0.031707763671875, 0.21923828125, 0.09783935546875, 0.0694580078125, 0.0968017578125, 0.187866210937...
embed
36193141_c0
36193141
elixir
0
Title: Phoenix + Ueberauth + Google + Heroku : internal server error Problem title: Phoenix + Ueberauth + Google + Heroku : internal server error Tags: elixir, google-authentication, heroku, phoenix-framework, ueberauth Problem: Phoenix + Ueberauth + Google + Heroku : internal server error I'm relatively new at Elixir ...
Phoenix + Ueberauth + Google + Heroku : internal server error Phoenix + Ueberauth + Google + Heroku : internal server error elixir google-authentication heroku phoenix-framework ueberauth Phoenix Ueberauth Google Heroku Phoenix + Ueberauth + Google + Heroku : internal server error I'm relatively new at Elixir and Phoen...
[ 0.0048828125, 0.024658203125, -0.007568359375, -0.0167236328125, 0.0028076171875, 0.0211181640625, 0.00274658203125, -0.04296875, -0.0033111572265625, -0.00897216796875, 0.0108642578125, -0.01513671875, 0.0284423828125, 0.0113525390625, 0.006683349609375, -0.005157470703125, -0.02697...
[ 133720, 997, 345, 13, 30108, 34, 927, 1815, 56889, 319, 70796, 10723, 18499, 15296, 38308, 26484, 1003, 63250, 40814, 53073, 33, 4084, 160328, 75, 3525, 25318, 136, 110, 6528, 7730, 5423, 1257, 98, 4027, 195734, 134629, 121413, 15769, 32102...
[ 0.2454833984375, 0.154541015625, 0.10699462890625, 0.09173583984375, 0.167236328125, 0.1436767578125, 0.1728515625, 0.1551513671875, 0.1883544921875, 0.1993408203125, 0.1990966796875, 0.1842041015625, 0.1920166015625, 0.0858154296875, 0.2237548828125, 0.1480712890625, 0.1246337890625...
embed
44792606_c0
44792606
elixir
0
Title: write a list to a file elixir Problem title: write a list to a file elixir Tags: elixir Problem: write a list to a file elixir I'm unable to write a list to a file in elixir. If I try to write the whole list I get an error, if I try to enumerate over the list I get an error. it's a list of integers. {:ok, file} ...
write a list to a file elixir write a list to a file elixir elixir ArgumentError ErlangError File.open loop_issues.csv find_common_items list_one list_two IO.write File.close autoupgrader_phx tree_validator.ex:30 TreeV alidator.check_all_users enum.ex:1755 Enum tree_validator.ex:29 tree_validator.ex:14 test_file.txt PI...
[ -0.00457763671875, -0.0091552734375, -0.00396728515625, 0.031982421875, -0.00189208984375, 0.0233154296875, -0.0201416015625, -0.0014190673828125, -0.002197265625, 0.0040283203125, 0.010009765625, 0.02099609375, 0.046630859375, 0.033935546875, 0.0177001953125, -0.021484375, 0.0060119...
[ 33022, 5303, 47, 11435, 15296, 38308, 10, 112140, 18468, 1004, 3066, 42724, 59636, 40956, 174404, 4439, 334, 7413, 277, 3796, 1486, 3630, 55547, 17780, 18781, 155648, 1809, 132130, 425, 53201, 7013, 85, 1290, 3355, 1197, 101344, 856, 78292, ...
[ 0.1807861328125, 0.2313232421875, 0.1529541015625, 0.1839599609375, 0.126953125, 0.254150390625, 0.009613037109375, 0.186767578125, 0.0799560546875, 0.0294952392578125, 0.1695556640625, 0.114990234375, 0.0762939453125, 0.1336669921875, 0.1407470703125, 0.060760498046875, 0.1262207031...
embed
40717311_c0
40717311
elixir
0
Title: elixir upload file to google drive Problem title: elixir upload file to google drive Tags: google-drive-api, elixir Problem: elixir upload file to google drive I am following instructions from google drive api google drive upload file api Here is my request body multipart_request_body = --1234567 Content-Type: a...
elixir upload file to google drive elixir upload file to google drive google-drive-api elixir multipart_request_body Content-Type text.csv Content-Length Content-Transfer-Encoding byte_size Authorization Bearer access_token api_url www.googleapis.com HTTPoison HTTPoison.post status_code elixir upload file to google dri...
[ -0.005615234375, 0.00171661376953125, 0.00628662109375, -0.0167236328125, -0.01080322265625, -0.00225830078125, 0.00145721435546875, -0.0225830078125, -0.00634765625, 0.00823974609375, 0.0130615234375, -0.000720977783203125, 0.003875732421875, 0.00628662109375, 0.004058837890625, -0.02...
[ 15296, 38308, 70622, 11435, 47, 26484, 22648, 88400, 40897, 6024, 17365, 107, 75616, 37873, 70870, 196707, 7986, 4439, 334, 449, 62624, 2875, 587, 390, 62539, 61804, 113132, 17203, 6448, 31470, 25002, 59875, 4994, 135913, 31, 40514, 4594, 107...
[ 0.1534423828125, 0.3037109375, 0.2266845703125, 0.2015380859375, 0.1075439453125, 0.1572265625, 0.2315673828125, 0.2203369140625, 0.1416015625, 0.0916748046875, 0.1507568359375, 0.034149169921875, 0.1300048828125, 0.108642578125, 0.1312255859375, 0.18701171875, 0.118408203125, 0.08...
embed
34757093_c0
34757093
elixir
0
Title: Elixir: eval'ing code in module context using Code.eval_quoted/3 Problem title: Elixir: eval'ing code in module context using Code.eval_quoted/3 Tags: elixir, metaprogramming Problem: Elixir: eval'ing code in module context using Code.eval_quoted/3 Given the following module: defmodule Foo do def bar d...
Elixir: eval'ing code in module context using Code.eval_quoted/3 Elixir: eval'ing code in module context using Code.eval_quoted/3 elixir metaprogramming CompileError Code.eval_quoted/3 Foo import Elixir Code.eval_quoted IO.puts quoted_code __ENV__ Outputs IO.inspect __MODULE__ Foo.eval Elixir: eval'ing code i...
[ 0.00537109375, 0.0159912109375, 0.0011444091796875, 0.025146484375, 0.000274658203125, -0.017822265625, 0.02001953125, -0.0191650390625, -0.0005645751953125, -0.042236328125, -0.0263671875, 0.00098419189453125, 0.00421142578125, 0.0068359375, -0.0167236328125, -0.0050048828125, -0.02...
[ 25318, 38308, 28, 1405, 3768, 18151, 88996, 43701, 28864, 13, 68726, 18113, 15296, 23550, 28966, 15612, 1340, 18468, 31611, 9572, 31, 24927, 17780, 7077, 66747, 40899, 856, 13538, 16711, 25632, 140992, 1884, 84751, 15400, 831, 18, 11782, 3789...
[ 0.110595703125, 0.2247314453125, 0.03363037109375, 0.2471923828125, 0.013092041015625, 0.170166015625, 0.1473388671875, 0.1734619140625, 0.150634765625, 0.08544921875, 0.1500244140625, 0.179443359375, 0.06640625, 0.0909423828125, 0.076171875, 0.131591796875, 0.138671875, 0.11706542...
embed
77815232_c0
77815232
elixir
0
Title: Issue connecting to MariaDB with mariaex Problem title: Issue connecting to MariaDB with mariaex Tags: mariadb, elixir Problem: Issue connecting to MariaDB with mariaex I'm using mariaex version 0.8.4 to connect on a MariaDB server version 10.10 from an Elixir 1.15.7 web application (not Phoenix, but Plug-based)...
Issue connecting to MariaDB with mariaex Issue connecting to MariaDB with mariaex mariadb elixir Mariaex.Error password Issue MariaDB DBConnection.Poolboy pool_size myapp_db application.ex db_conf Application.get_env Keyword.put Mariaex Bandit http_conf one_for_one Alaaarmo.Supervisor Supervisor.start_link Mariaex.Prot...
[ 0.006317138671875, 0.022216796875, 0.0034942626953125, 0.005340576171875, 0.0027313232421875, -0.000598907470703125, -0.01165771484375, -0.02001953125, 0.0159912109375, -0.0272216796875, 0.006683349609375, -0.01068115234375, 0.013427734375, 0.0198974609375, -0.0128173828125, -0.0231933...
[ 223317, 37067, 47, 5379, 39463, 678, 5786, 11, 3355, 712, 275, 15296, 38308, 18468, 31611, 78506, 57976, 235603, 7192, 929, 30885, 19361, 62539, 759, 9007, 48073, 38415, 40041, 70547, 104921, 334, 189755, 7077, 14298, 217, 1621, 1632, 21664, ...
[ 0.1593017578125, 0.1968994140625, 0.0968017578125, 0.2115478515625, 0.2763671875, 0.148681640625, 0.1348876953125, 0.143798828125, 0.23193359375, 0.043182373046875, 0.1014404296875, 0.07080078125, 0.210205078125, 0.07794189453125, 0.10137939453125, 0.21044921875, 0.1788330078125, 0...
embed
34506175_c0
34506175
elixir
0
Title: Right way to produce elixir struct in macro Problem title: Right way to produce elixir struct in macro Tags: elixir, macros Problem: Right way to produce elixir struct in macro I have the following design pattern: I have an elixir module, that responds to growing/changing amount of functions/0 , called Defaults ...
Right way to produce elixir struct in macro Right way to produce elixir struct in macro elixir macros Right Defaults CustomConfig define_struct_with_defaults Map.to_list Enum.reduce Dict.keys Defaults.__info__ Map.put Map Right way to produce elixir struct in macro I have the following design pattern: I have an elixir ...
[ -0.00225830078125, 0.01251220703125, -0.00732421875, 0.0030364990234375, -0.00885009765625, -0.013671875, 0.0023956298828125, -0.0234375, 0.0125732421875, -0.01068115234375, -0.00970458984375, -0.00201416015625, 0.007568359375, 0.0042724609375, 0.0050048828125, -0.0020751953125, -0.0...
[ 90911, 3917, 27489, 15296, 38308, 36716, 23, 111789, 47, 262, 1021, 7136, 130664, 11935, 83671, 61924, 76228, 214810, 42719, 188, 6562, 357, 316, 107, 106357, 60897, 19770, 7319, 7077, 4331, 103510, 88996, 35644, 105925, 90965, 41170, 32354, ...
[ 0.12939453125, 0.1116943359375, 0.22509765625, 0.139892578125, 0.279052734375, 0.30322265625, 0.10028076171875, 0.243896484375, 0.0143280029296875, 0.1331787109375, 0.1656494140625, 0.1475830078125, 0.165283203125, 0.059906005859375, 0.1888427734375, 0.1392822265625, 0.04525756835937...
embed
71698369_c1
71698369
elixir
1
that preview only shows emails that were sent by the same # node running the Phoenix server. if Mix.env() == :dev do scope "/dev" do pipe_through :browser #forward "/mailbox", Plug.Swoosh.MailboxPreview end end end Mails are being sent totally fine - I have inspected that with IO.inspect, and right now, they are sent ...
that preview only shows emails that were sent by the same # node running the Phoenix server. if Mix.env() == :dev do scope "/dev" do pipe_through :browser #forward "/mailbox", Plug.Swoosh.MailboxPreview end end end Mails are being sent totally fine - I have inspected that with IO.inspect, and right now, they are sent ...
[ -0.0037078857421875, 0.026611328125, -0.005859375, 0.006134033203125, 0.0052490234375, 0.0064697265625, -0.0108642578125, 0.00811767578125, -0.00131988525390625, -0.0302734375, 0.005096435546875, 0.017822265625, 0.0291748046875, -0.0015716552734375, 0.04296875, -0.01104736328125, -0....
[ 450, 479, 22751, 4734, 45831, 3340, 9325, 5701, 468, 110, 112, 51042, 133720, 10723, 37286, 33, 334, 18548, 70820, 137158, 222521, 215725, 19364, 2065, 11728, 194351, 3613, 32067, 17814, 132340, 3564, 25919, 112668, 5885, 134071, 17780, 16711, ...
[ 0.05767822265625, 0.1517333984375, 0.28759765625, 0.012420654296875, 0.0794677734375, 0.1585693359375, 0.053955078125, 0.050994873046875, 0.04144287109375, 0.08416748046875, 0.08642578125, 0.044708251953125, 0.23828125, 0.10791015625, 0.2191162109375, 0.058624267578125, 0.16577148437...
embed
34235363_c0
34235363
elixir
0
Title: Elixir gen_tcp.recv not receiving data on unit test when actual telnet clients work Problem title: Elixir gen_tcp.recv not receiving data on unit test when actual telnet clients work Tags: gen-tcp, elixir Problem: Elixir gen_tcp.recv not receiving data on unit test when actual telnet clients work I have a workin...
Elixir gen_tcp.recv not receiving data on unit test when actual telnet clients work Elixir gen_tcp.recv not receiving data on unit test when actual telnet clients work gen-tcp elixir Elixir gen_tcp.recv gen_tcp.connect date_string Date.universal DateFormat.format ISO IO.puts Socket Created Recevied Error Test Setup Fir...
[ 0.000629425048828125, 0.0242919921875, -0.0133056640625, 0.0142822265625, 0.003570556640625, -0.03125, -0.01806640625, 0.001861572265625, 0.000339508056640625, -0.007476806640625, 0.0281982421875, 0.01043701171875, -0.00482177734375, 0.0078125, 0.006134033203125, -0.00185394287109375, ...
[ 25318, 38308, 9226, 121422, 31688, 334, 959, 217063, 2053, 25072, 3034, 3229, 8561, 8131, 1179, 19802, 4488, 15296, 135457, 91693, 25512, 102973, 51727, 17408, 17780, 1061, 27853, 151313, 93908, 686, 212059, 8647, 19943, 23972, 236267, 13791, 2...
[ 0.127197265625, 0.2303466796875, 0.1455078125, 0.1181640625, 0.108642578125, 0.1884765625, 0.065185546875, 0.15380859375, 0.1259765625, 0.1767578125, 0.2021484375, 0.0211944580078125, 0.1402587890625, 0.0921630859375, 0.1241455078125, 0.1446533203125, 0.1180419921875, 0.07305908203...
embed
44077238_c0
44077238
elixir
0
Title: Issues with Heroku Git Problem title: Issues with Heroku Git Tags: elixir, git, heroku, phoenix-framework Problem: Issues with Heroku Git Getting the below message in Terminal when trying to push my Phoenix app to heroku. I can't see any issues in the logs and their status seems good on the site. I see they had ...
Issues with Heroku Git Issues with Heroku Git elixir git heroku phoenix-framework Issues Heroku Git Simons-MBP:radios Simon git.heroku.com vintageradios.git Could Server Address Non-authoritative elb050388-1429905061.us-east-1.elb.amazonaws.com Name PING Request icmp_seq Issues with Heroku Git Getting the below message...
[ -0.0206298828125, 0.0213623046875, -0.0016021728515625, 0.00836181640625, 0.00054931640625, 0.0169677734375, -0.009765625, -0.03759765625, -0.00494384765625, -0.004791259765625, 0.021728515625, -0.00167083740234375, 0.004669189453125, -0.01068115234375, 0.001068115234375, -0.0023956298...
[ 223317, 7, 678, 56889, 319, 527, 217, 15296, 38308, 62270, 40814, 53073, 33, 4084, 160328, 18244, 26328, 12689, 683, 38446, 90865, 75796, 15769, 191147, 22687, 49990, 3775, 24948, 13992, 88, 275, 78800, 122545, 61158, 11540, 223, 19725, 15757...
[ 0.192626953125, 0.0199737548828125, 0.0830078125, 0.2152099609375, 0.2313232421875, 0.1783447265625, 0.255615234375, 0.035675048828125, 0.158447265625, 0.2255859375, 0.1685791015625, 0.042022705078125, 0.06951904296875, 0.1201171875, 0.091552734375, 0.009857177734375, 0.177001953125,...
embed
41239657_c2
41239657
elixir
2
] Sent 500 in 1ms 14:18:21.859 [error] #PID<0.1493.0> running Utopia.Endpoint terminated Server: 127.0.0.1:8080 (http) Request: GET / ** (exit) an exception was raised: ** (Protocol.UndefinedError) protocol String.Chars not implemented for {#PID<0.1467.0>, :result, %Porcelain.Result{err: nil, out: {:send, #PID<0.1466.0...
] Sent 500 in 1ms 14:18:21.859 [error] #PID<0.1493.0> running Utopia.Endpoint terminated Server: 127.0.0.1:8080 (http) Request: GET / ** (exit) an exception was raised: ** (Protocol.UndefinedError) protocol String.Chars not implemented for {#PID<0.1467.0>, :result, %Porcelain.Result{err: nil, out: {:send, #PID<0.1466.0...
[ -0.01104736328125, 0.017333984375, 0.02880859375, 0.0003261566162109375, 0.00860595703125, -0.010986328125, -0.006622314453125, -0.00885009765625, -0.00543212890625, -0.025634765625, 0.000926971435546875, -0.00787353515625, 0.01080322265625, 0.029541015625, 0.0216064453125, 0.008850097...
[ 10114, 63999, 2101, 23, 106, 4432, 616, 24033, 25619, 189128, 188800, 683, 7146, 102014, 12977, 132265, 51042, 345, 186617, 152378, 38496, 121011, 297, 22687, 427, 129884, 4836, 5475, 853, 75616, 79794, 13, 23399, 131527, 165249, 16459, 10752, ...
[ 0.00787353515625, 0.2188720703125, 0.272705078125, 0.085693359375, 0.06085205078125, 0.197509765625, 0.0244140625, 0.056121826171875, 0.021759033203125, 0.16796875, 0.2137451171875, 0.0810546875, 0.2012939453125, 0.10308837890625, 0.1158447265625, 0.14013671875, 0.13818359375, 0.09...
embed
37216626_c0
37216626
elixir
0
Title: Elixir Phoenix production server has issue with Letsencrypt renewal Problem title: Elixir Phoenix production server has issue with Letsencrypt renewal Tags: freebsd, phoenix-framework, elixir, web-deployment, lets-encrypt Problem: Elixir Phoenix production server has issue with Letsencrypt renewal I have a site ...
Elixir Phoenix production server has issue with Letsencrypt renewal Elixir Phoenix production server has issue with Letsencrypt renewal freebsd phoenix-framework elixir web-deployment lets-encrypt Elixir Phoenix Letsencrypt MIX_ENV Elixir Phoenix production server has issue with Letsencrypt renewal I have a site built ...
[ 0.00180816650390625, -0.01287841796875, 0.0115966796875, 0.00933837890625, -0.030517578125, 0.009521484375, -0.005706787109375, 0.011962890625, 0.005645751953125, -0.0087890625, -0.00482177734375, 0.0198974609375, 0.032470703125, 0.02685546875, -0.005889892578125, -0.006317138671875, ...
[ 25318, 38308, 133720, 36049, 10723, 31089, 678, 10842, 1015, 136791, 75312, 8202, 4092, 16145, 71, 33, 4084, 160328, 18244, 15296, 1467, 13158, 2633, 276, 21487, 11572, 856, 1764, 88303, 123789, 4488, 4165, 127877, 5885, 33245, 502, 13736, 53...
[ 0.0980224609375, 0.2281494140625, 0.258056640625, 0.1822509765625, 0.180419921875, 0.1395263671875, 0.0160980224609375, 0.1790771484375, 0.1456298828125, 0.250732421875, 0.14501953125, 0.09393310546875, 0.0271759033203125, 0.028106689453125, 0.033477783203125, 0.1180419921875, 0.1358...
embed
46665343_c0
46665343
elixir
0
Title: Passing a function to defimpl &quot;for&quot; option Problem title: Passing a function to defimpl &quot;for&quot; option Tags: elixir Problem: Passing a function to defimpl "for" option I have following code: defprotocol Reversible do @doc "Reverses data structure" def reverse(term) end defimpl Reversible, for: ...
Passing a function to defimpl &quot;for&quot; option Passing a function to defimpl &quot;for&quot; option elixir FunctionClauseError Constants Passing Reversible Reverses List Map Enum.reverse constants.ex reversible.ex Compilation Module.concat module.ex:562 reversible.ex:8 parallel_compiler.ex:121 Kernel.ParallelComp...
[ 0.01171875, 0.01153564453125, 0.006683349609375, 0.01373291015625, -0.007415771484375, 0.00125885009765625, 0.0021514892578125, 0.00128173828125, -0.007049560546875, -0.0108642578125, -0.0118408203125, 0.0084228515625, 0.003936767578125, 0.0181884765625, -0.007537841796875, 0.003875732...
[ 28872, 32354, 47, 8, 420, 116120, 2472, 35829, 15296, 38308, 28670, 26253, 18468, 31611, 148416, 853, 814, 55356, 37676, 32036, 42719, 357, 316, 107, 53697, 3355, 39531, 15612, 63014, 2271, 4460, 88996, 34546, 304, 1019, 95103, 58875, 34759, ...
[ 0.1463623046875, 0.1856689453125, 0.1400146484375, 0.1761474609375, 0.114501953125, 0.28369140625, 0.2445068359375, 0.24169921875, 0.0704345703125, 0.2159423828125, 0.08770751953125, 0.07196044921875, 0.050537109375, 0.0753173828125, 0.111572265625, 0.0237274169921875, 0.118530273437...
embed
56507577_c1
56507577
elixir
1
null: false) timestamps() end create table(:users_methods, primary_key: false) do add(:user_id, references("users", type: :uuid, on_delete: :delete_all)) add(:method_id, references("methods", type: :uuid, on_delete: :delete_all)) end create(index(:users_methods, [:method_id])) create(index(:users_methods, [:user_id]))...
null: false) timestamps() end create table(:users_methods, primary_key: false) do add(:user_id, references("users", type: :uuid, on_delete: :delete_all)) add(:method_id, references("methods", type: :uuid, on_delete: :delete_all)) end create(index(:users_methods, [:method_id])) create(index(:users_methods, [:user_id]))...
[ -0.00531005859375, -0.0086669921875, 0.004180908203125, 0.01214599609375, -0.00518798828125, -0.0152587890625, -0.01434326171875, -0.0203857421875, 0.01953125, -0.0615234375, -0.020751953125, -0.004974365234375, -0.00060272216796875, 0.025390625, -0.0068359375, -0.0177001953125, -0.0...
[ 56574, 98320, 20028, 2537, 6423, 3564, 28282, 23180, 223, 1314, 1928, 7352, 7, 158978, 19770, 15190, 132, 65918, 532, 91067, 830, 10644, 12, 17349, 98, 8520, 67, 5584, 16, 454, 4, 152, 4711, 378, 268, 36998, 34, 45602, 3293, 83, 759, ...
[ 0.1688232421875, 0.169189453125, 0.060546875, 0.12109375, 0.0791015625, 0.097412109375, 0.1373291015625, 0.17138671875, 0.10986328125, 0.1309814453125, 0.080078125, 0.16650390625, 0.00146484375, 0.1328125, 0.1578369140625, 0.10986328125, 0.006591796875, 0.1121826171875, 0.1075439...
embed
34535905_c0
34535905
elixir
0
Title: Phoenix: Only allow subscription to one sub topic on a channel at a time Problem title: Phoenix: Only allow subscription to one sub topic on a channel at a time Tags: phoenix-framework, websocket, elixir Problem: Phoenix: Only allow subscription to one sub topic on a channel at a time If a user has joined a topi...
Phoenix: Only allow subscription to one sub topic on a channel at a time Phoenix: Only allow subscription to one sub topic on a channel at a time phoenix-framework websocket elixir Phoenix Only rooms:lobby rooms:party MyApp.RoomsChannel Phoenix.Channel new_msg room_id _params handle_out current_room socket.assigns sock...
[ 0.00311279296875, 0.029541015625, 0.017333984375, -0.00885009765625, -0.008056640625, 0.00188446044921875, -0.0022735595703125, 0.020751953125, 0.01507568359375, -0.039306640625, -0.0003795623779296875, 0.00008392333984375, -0.00701904296875, 0.004791259765625, -0.017578125, 0.02770996...
[ 133720, 87293, 63769, 1614, 59478, 1632, 28451, 86723, 10, 47, 1733, 53073, 33, 4084, 160328, 1467, 991, 27853, 15296, 38308, 112875, 365, 60060, 71983, 39179, 12724, 28016, 127008, 17155, 2500, 34831, 43581, 28905, 221, 31304, 119499, 38937, ...
[ 0.3046875, 0.13623046875, 0.14697265625, 0.2320556640625, 0.1976318359375, 0.178466796875, 0.278076171875, 0.18115234375, 0.03839111328125, 0.00830078125, 0.12890625, 0.0352783203125, 0.038543701171875, 0.075439453125, 0.0364990234375, 0.00274658203125, 0.0526123046875, 0.136474609...
embed
53184525_c0
53184525
elixir
0
Title: Phoenix router scope issue Problem title: Phoenix router scope issue Tags: router, elixir, phoenix-framework Problem: Phoenix router scope issue How could I do that i send a GET request to api/events and I get public events only but if i send an auth token then i get the user’s events? Basically using the same r...
Phoenix router scope issue Phoenix router scope issue router elixir phoenix-framework Phoenix DotooAppWeb pipe_through UserController index_not_logged EventController AuthenticationController identity_callback jwt_authenticated Phoenix router scope issue How could I do that i send a GET request to api/events and I get ...
[ -0.00628662109375, 0.00885009765625, 0.0004482269287109375, -0.00775146484375, -0.0133056640625, 0.0003147125244140625, 0.01409912109375, 0.0169677734375, -0.0021209716796875, -0.054931640625, 0.0072021484375, 0.01025390625, -0.0269775390625, 0.0205078125, -0.0003204345703125, 0.004089...
[ 133720, 122188, 70820, 31089, 15296, 38308, 53073, 33, 4084, 160328, 984, 24838, 39179, 30474, 137158, 222521, 53400, 175904, 603, 63262, 10869, 365, 134229, 36943, 52236, 63250, 182324, 85763, 12620, 1647, 18, 916, 92733, 7636, 5809, 54, 450, ...
[ 0.26806640625, 0.2430419921875, 0.2491455078125, 0.140625, 0.0250244140625, 0.1536865234375, 0.042144775390625, 0.0271453857421875, 0.07720947265625, 0.059844970703125, 0.032867431640625, 0.154541015625, 0.06097412109375, 0.1109619140625, 0.1080322265625, 0.042266845703125, 0.0546569...
embed
33972112_c0
33972112
elixir
0
Title: Synchronization barrier in Elixir? Problem title: Synchronization barrier in Elixir? Tags: barrier, elixir Problem: Synchronization barrier in Elixir? What could be the most elegant implementation of (cyclic) barrier for Elixir? An algorithm to be implemented (vertex coloring) has a loop with a waiting phase for...
Synchronization barrier in Elixir? Synchronization barrier in Elixir? barrier elixir Synchronization Elixir Synchronization barrier in Elixir? What could be the most elegant implementation of (cyclic) barrier for Elixir? An algorithm to be implemented (vertex coloring) has a loop with a waiting phase for the spawned pr...
[ 0.0015106201171875, 0.0211181640625, -0.0205078125, -0.003448486328125, -0.0032958984375, 0.00823974609375, 0.000751495361328125, 0.0052490234375, -0.00811767578125, -0.03125, 0.001190185546875, 0.005340576171875, 0.0096435546875, 0.0238037109375, 0.01953125, 0.01495361328125, -0.011...
[ 19010, 101966, 47691, 125861, 23, 25318, 38308, 15296, 5809, 2684, 27650, 208124, 187830, 238, 234873, 29479, 814, 24371, 10576, 214, 40956, 89289, 93402, 5623, 7710, 9433, 200470, 95103, 175199, 29527, 35431, 756, 50339, 109847, 2783, 18337, 1...
[ 0.1400146484375, 0.229248046875, 0.1060791015625, 0.267578125, 0.067138671875, 0.1295166015625, 0.2734375, 0.1004638671875, 0.047821044921875, 0.047027587890625, 0.1318359375, 0.1317138671875, 0.148193359375, 0.046875, 0.21240234375, 0.1309814453125, 0.06195068359375, 0.12475585937...
embed
49122383_c0
49122383
elixir
0
Title: Rescuing an Ecto.ConstraintError to keep a migration rolling? Problem title: Rescuing an Ecto.ConstraintError to keep a migration rolling? Tags: elixir, ecto, phoenix-framework Problem: Rescuing an Ecto.ConstraintError to keep a migration rolling? How do you rescue an Ecto.ConstraintError (caused by a uniqueness...
Rescuing an Ecto.ConstraintError to keep a migration rolling? Rescuing an Ecto.ConstraintError to keep a migration rolling? elixir ecto phoenix-framework Ecto.ConstraintError DBConnection.ConnectionError Rescuing Repo.insert model_changeset on_conflict IO.puts cars_field_index claims_name_index unique_constraint Rescui...
[ -0.0255126953125, 0.00927734375, 0.0224609375, -0.0225830078125, 0.0234375, -0.01043701171875, -0.0206298828125, -0.015380859375, 0.01409912109375, -0.036865234375, -0.009033203125, -0.01513671875, 0.01300048828125, 0.01202392578125, 0.00250244140625, -0.0023193359375, -0.02026367187...
[ 9624, 1010, 214, 241, 44150, 5, 11935, 2816, 4288, 18468, 31611, 47, 13695, 212416, 21972, 38308, 60751, 33, 4084, 160328, 18244, 57976, 235603, 853, 771, 33657, 3299, 152028, 3509, 134225, 17780, 7077, 2258, 28394, 4711, 140526, 11627, 36998...
[ 0.0799560546875, 0.161865234375, 0.0892333984375, 0.08111572265625, 0.255126953125, 0.0413818359375, 0.050689697265625, 0.185791015625, 0.114501953125, 0.150146484375, 0.159912109375, 0.0182037353515625, 0.1446533203125, 0.2113037109375, 0.1038818359375, 0.1463623046875, 0.2191162109...
embed
30649351_c0
30649351
elixir
0
Title: Elixir/Plug/Phoenix: Calling halt doesn&#x27;t stop downstream plugs from getting invoked during test Problem title: Elixir/Plug/Phoenix: Calling halt doesn&#x27;t stop downstream plugs from getting invoked during test Tags: phoenix-framework, elixir Problem: Elixir/Plug/Phoenix: Calling halt doesn't stop downst...
Elixir/Plug/Phoenix: Calling halt doesn&#x27;t stop downstream plugs from getting invoked during test Elixir/Plug/Phoenix: Calling halt doesn&#x27;t stop downstream plugs from getting invoked during test phoenix-framework elixir getting Elixir Plug Phoenix Calling add_headers Plug.Conn.fetch_params Plug.Parsers.call Pl...
[ -0.005859375, 0.0205078125, 0.024169921875, -0.0079345703125, -0.003753662109375, 0.0157470703125, -0.010009765625, -0.0240478515625, -0.007598876953125, -0.04541015625, 0.00469970703125, 0.0019683837890625, 0.0037689208984375, 0.021484375, 0.01513671875, -0.000021338462829589844, -0...
[ 25318, 38308, 35159, 497, 33, 4084, 26265, 214, 58810, 3768, 7279, 7565, 86429, 76329, 7, 23, 23253, 20271, 3034, 53073, 160328, 15296, 194351, 133720, 15190, 31251, 1314, 11935, 29362, 2500, 28636, 85763, 58627, 1647, 1681, 50718, 64249, 191...
[ 0.07769775390625, 0.20654296875, 0.1529541015625, 0.044769287109375, 0.09979248046875, 0.1492919921875, 0.1409912109375, 0.0296478271484375, 0.2412109375, 0.02972412109375, 0.123046875, 0.1337890625, 0.182861328125, 0.208740234375, 0.058380126953125, 0.018157958984375, 0.157958984375...
embed
37325956_c1
37325956
elixir
1
release. Please fix any errors and try again." For mix.env without :httpc dependency : ** (exit) an exception was raised: ** (UndefinedFunctionError) function :httpc.request/4 is undefined (module :httpc is not available) :httpc.request(:get, {'http://free.currencyconverterapi.com/api/v3/currencies', []}, [], []) (fx_...
release. Please fix any errors and try again." For mix.env without :httpc dependency : ** (exit) an exception was raised: ** (UndefinedFunctionError) function :httpc.request/4 is undefined (module :httpc is not available) :httpc.request(:get, {'http://free.currencyconverterapi.com/api/v3/currencies', []}, [], []) (fx_...
[ -0.0081787109375, 0.018798828125, 0.004302978515625, 0.002349853515625, 0.0028839111328125, -0.007537841796875, -0.0306396484375, -0.01397705078125, 0.005462646484375, -0.0031585693359375, 0.0001506805419921875, -0.04345703125, 0.01202392578125, 0.01318359375, 0.00970458984375, 0.01055...
[ 54452, 30607, 30022, 18499, 9790, 13438, 17664, 5, 33, 334, 15490, 5475, 238, 42548, 27771, 23399, 131527, 165249, 16459, 1062, 1067, 5983, 297, 97249, 10763, 18468, 31611, 32354, 107, 75616, 17357, 9232, 83279, 959, 19882, 3794, 32087, 64240...
[ 0.1910400390625, 0.039886474609375, 0.09100341796875, 0.1748046875, 0.0838623046875, 0.058929443359375, 0.29296875, 0.0264739990234375, 0.1119384765625, 0.227294921875, 0.08984375, 0.171630859375, 0.140869140625, 0.1517333984375, 0.04864501953125, 0.15478515625, 0.2147216796875, 0....
embed
38539238_c0
38539238
elixir
0
Title: Phoenix json returns only ids Problem title: Phoenix json returns only ids Tags: phoenix-framework, elixir Problem: Phoenix json returns only ids I am trying to create a Phoenix application with generated html as well as json api responses. This is what I have done so far: mix phoenix.gen.html User users name:st...
Phoenix json returns only ids Phoenix json returns only ids phoenix-framework elixir Phoenix phoenix.gen.html User name:string email:string phoenix.gen.json Api.User index.json render_many MyApp.Api.UserView user.json Phoenix json returns only ids I am trying to create a Phoenix application with generated html as well ...
[ -0.0264892578125, 0.0034027099609375, 0.00897216796875, -0.00897216796875, 0.001708984375, 0.00836181640625, -0.024169921875, -0.000614166259765625, 0.00982666015625, -0.060546875, -0.01025390625, 0.0022430419921875, -0.01080322265625, 0.004058837890625, 0.0084228515625, -0.00337219238...
[ 133720, 1647, 1681, 30646, 4734, 3447, 7, 53073, 33, 4084, 160328, 18244, 15296, 38308, 1409, 7693, 53400, 91693, 3340, 170, 5787, 14, 1062, 2189, 63262, 89159, 669, 2646, 39179, 1434, 100474, 38937, 28282, 38415, 139392, 31470, 57553, 98816,...
[ 0.29345703125, 0.1361083984375, 0.2154541015625, 0.218994140625, 0.18408203125, 0.2154541015625, 0.10009765625, 0.08367919921875, 0.07025146484375, 0.1314697265625, 0.07525634765625, 0.03546142578125, 0.05364990234375, 0.225341796875, 0.1513671875, 0.18359375, 0.1322021484375, 0.05...
embed
73187617_c0
73187617
elixir
0
Title: how to use defined constant in outer module for match operation? Problem title: how to use defined constant in outer module for match operation? Tags: elixir Problem: how to use defined constant in outer module for match operation? I want to use constant as match condition, and the code is as follows: Template m...
how to use defined constant in outer module for match operation? how to use defined constant in outer module for match operation? elixir CompileError Template Mechanics.Disk.Template template_name parameter1 parameter2 const_template_type_a Mechanics.User initialize_local_map Template.const_template_type_a Users Docume...
[ 0.004180908203125, 0.0026702880859375, -0.001251220703125, 0.01422119140625, 0.0191650390625, 0.0091552734375, 0.0017547607421875, 0.01104736328125, 0.004364013671875, -0.028564453125, 0.00311279296875, -0.01123046875, 0.0361328125, 0.00689697265625, 0.0076904296875, 0.0047607421875, ...
[ 3642, 4527, 61924, 71, 53697, 23, 1810, 56, 88996, 100, 14858, 41018, 15296, 38308, 15612, 1340, 18468, 31611, 196631, 230166, 6581, 159065, 19309, 110934, 171859, 304, 158, 271, 2982, 92558, 50986, 61475, 98908, 62346, 25553, 53400, 43101, 2...
[ 0.08062744140625, 0.145751953125, 0.223876953125, 0.1103515625, 0.2464599609375, 0.0640869140625, 0.1551513671875, 0.166015625, 0.207763671875, 0.0283355712890625, 0.219482421875, 0.1531982421875, 0.04052734375, 0.2098388671875, 0.06109619140625, 0.08062744140625, 0.051422119140625, ...
embed
40665032_c1
40665032
elixir
1
niuniobook) $ mkdir -p ~/.ssh $ mix edeliver build release --revision=$CI_BUILD_REF --auto-version=git-revision tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and...
niuniobook) $ mkdir -p ~/.ssh $ mix edeliver build release --revision=$CI_BUILD_REF --auto-version=git-revision tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and...
[ -0.0189208984375, 0.039794921875, 0.00848388671875, 0.0025634765625, -0.01251220703125, -0.0179443359375, -0.00628662109375, -0.0289306640625, 0.0093994140625, 0.03369140625, 0.0113525390625, -0.0220947265625, 0.01251220703125, 0.0068359375, -0.0186767578125, 0.01141357421875, -0.006...
[ 300, 5305, 14137, 3650, 19201, 936, 254, 1495, 17664, 28, 112, 134148, 45367, 54452, 107, 25826, 17304, 15639, 16444, 397, 11766, 919, 8913, 46354, 15769, 808, 7077, 438, 34292, 14755, 594, 136, 110, 20, 58735, 22013, 213914, 27587, 180, ...
[ 0.044281005859375, 0.1343994140625, 0.2027587890625, 0.004364013671875, 0.052734375, 0.155517578125, 0.011932373046875, 0.1766357421875, 0.2232666015625, 0.07568359375, 0.117431640625, 0.2626953125, 0.204833984375, 0.1640625, 0.06097412109375, 0.186767578125, 0.116943359375, 0.0978...
embed
53877753_c1
53877753
elixir
1
=-les.py //home//python//projects//fil !%es.py// /home/python/projects/f_)* iles.py /home/python/projects/fi les.py/ //home//python//projects//fii___kiii=- les.py //home//python//projects//ff###f!%#illfffl! %es.py// The code: defmodule Paths do end defp print_name_and_suffix(str) do [h|t] = str IO.puts "Name: #{h}\t su...
=-les.py //home//python//projects//fil !%es.py// /home/python/projects/f_)* iles.py /home/python/projects/fi les.py/ //home//python//projects//fii___kiii=- les.py //home//python//projects//ff###f!%#illfffl! %es.py// The code: defmodule Paths do end defp print_name_and_suffix(str) do [h|t] = str IO.puts "Name: #{h}\t su...
[ -0.01092529296875, -0.005462646484375, -0.0059814453125, 0.00113677978515625, -0.000743865966796875, 0.00176239013671875, 0.005035400390625, -0.0198974609375, -0.01116943359375, 0.0157470703125, -0.00008296966552734375, 0.00811767578125, -0.0179443359375, 0.01434326171875, -0.00032234191...
[ 2203, 9, 1577, 5, 6493, 29552, 20767, 50828, 95322, 7, 14580, 711, 90, 64, 420, 454, 16, 1639, 1350, 1029, 199, 14, 7072, 4902, 187284, 38, 3949, 4904, 5713, 15991, 18151, 8, 83279, 13, 108421, 54, 3564, 254, 28412, 11627, 2940, 77745...
[ 0.137451171875, 0.02899169921875, 0.2427978515625, 0.0367431640625, 0.259521484375, 0.1129150390625, 0.017791748046875, 0.13671875, 0.1683349609375, 0.21142578125, 0.191162109375, 0.003509521484375, 0.07696533203125, 0.017730712890625, 0.1463623046875, 0.017547607421875, 0.0178222656...
embed
65767588_c0
65767588
elixir
0
Title: Elixir Mix release - How can I copy extra files into the tarball of Phoenix app? Problem title: Elixir Mix release - How can I copy extra files into the tarball of Phoenix app? Tags: elixir, elixir-mix, phoenix-framework Problem: Elixir Mix release - How can I copy extra files into the tarball of Phoenix app? I ...
Elixir Mix release - How can I copy extra files into the tarball of Phoenix app? Elixir Mix release - How can I copy extra files into the tarball of Phoenix app? elixir elixir-mix phoenix-framework Elixir Mix How Phoenix MyApp.MixProject Mix.Project apps_path start_permanent Mix.env my_app copy_extra_files default_rele...
[ 0.00994873046875, 0.01177978515625, 0.0059814453125, 0.0272216796875, 0.0023956298828125, -0.0218505859375, -0.0072021484375, 0.004547119140625, 0.0208740234375, 0.0079345703125, 0.01806640625, 0.00921630859375, 0.027099609375, 0.044677734375, 0.00164031982421875, 0.00982666015625, -...
[ 25318, 38308, 37286, 54452, 11249, 831, 43658, 4173, 102158, 3934, 2405, 12126, 133720, 4027, 15296, 62015, 53073, 33, 4084, 160328, 2646, 39179, 594, 223353, 49966, 128405, 4034, 669, 334, 759, 9007, 112779, 29822, 114977, 233707, 42724, 12142...
[ 0.1282958984375, 0.256103515625, 0.287109375, 0.1497802734375, 0.0721435546875, 0.04339599609375, 0.2171630859375, 0.197998046875, 0.180908203125, 0.1280517578125, 0.165771484375, 0.1922607421875, 0.2259521484375, 0.1702880859375, 0.08270263671875, 0.2080078125, 0.0167236328125, 0....
embed
63178771_c0
63178771
elixir
0
Title: How do I use regex within a String.split without splitting on international characters? Problem title: How do I use regex within a String.split without splitting on international characters? Tags: unicode, string, regex, elixir Problem: How do I use regex within a String.split without splitting on international ...
How do I use regex within a String.split without splitting on international characters? How do I use regex within a String.split without splitting on international characters? unicode string regex elixir How String.split more_ducks How do I use regex within a String.split without splitting on international characters? ...
[ -0.025146484375, 0.0098876953125, 0.0010528564453125, 0.0191650390625, -0.034912109375, 0.0157470703125, 0.0019683837890625, 0.01446533203125, 0.01251220703125, -0.00799560546875, 0.005218505859375, 0, -0.000701904296875, -0.001708984375, 0.002777099609375, 0.0257568359375, -0.022460...
[ 11249, 4527, 6835, 3355, 28032, 23351, 214, 7008, 4353, 15490, 65450, 21640, 124850, 1916, 60347, 112, 79315, 15296, 38308, 1286, 693, 22824, 20697, 2967, 113860, 2594, 115, 738, 8364, 2119, 88322, 27686, 1659, 81887, 5303, 34153, 1379, 12064...
[ 0.051422119140625, 0.1312255859375, 0.167236328125, 0.2239990234375, 0.14208984375, 0.1666259765625, 0.1068115234375, 0.057098388671875, 0.1851806640625, 0.09197998046875, 0.1669921875, 0.1590576171875, 0.1546630859375, 0.02984619140625, 0.0865478515625, 0.03326416015625, 0.151123046...
embed
42895206_c1
42895206
elixir
1
nfeg=="}) (fernetex) lib/fernetex.ex:193: Fernet.pad/1 (fernetex) lib/fernetex.ex:176: Fernet.encrypt/3 (fernetex) lib/fernetex.ex:154: Fernet.generate/4 (fernet_ecto) lib/fernet_ecto/type.ex:9: Fernet.Ecto.Type.encrypt/2 (ecto) lib/ecto/type.ex:662: Ecto.Type.process_dumpers/3 (ecto) lib/ecto/repo/schema.ex:695: Ecto....
wyVWqAdPJIVKgMtFap-P8AtuvsNXqrcedp5CGaJjS9M2kBD60OPOR4l_tkDO8w Fernet.Ecto.String Got error when trying to Fernet.Ecto.String.dump in test I'm trying to encrypt a String using Fernet.Ecto.String.dump this way... ... in this automatically generated test ( mix phoenix.gen.json User users... )... ... and got this: When I ...
[ 0.01544189453125, -0.013671875, -0.01007080078125, 0.002105712890625, -0.0064697265625, -0.00982666015625, -0.0186767578125, -0.012939453125, -0.00872802734375, -0.005615234375, -0.004913330078125, 0.0093994140625, 0.0308837890625, 0.036865234375, -0.006439208984375, -0.03466796875, ...
[ 8002, 1179, 647, 44150, 71713, 18499, 31577, 214, 693, 2676, 3034, 22, 136791, 23351, 191082, 139392, 17664, 53073, 33, 4084, 1409, 170, 1681, 53400, 72095, 75101, 17, 3355, 20, 294, 39642, 43240, 3664, 71864, 3884, 152028, 3509, 13409, 474...
[ 0.203857421875, 0.274169921875, 0.06512451171875, 0.25830078125, 0.1590576171875, 0.1614990234375, 0.0819091796875, 0.099609375, 0.111328125, 0.15234375, 0.1708984375, 0.041290283203125, 0.2281494140625, 0.157470703125, 0.1246337890625, 0.041259765625, 0.2257080078125, 0.0548400878...
embed
63314076_c0
63314076
elixir
0
Title: Elixir: Base64 decode TTN message Problem title: Elixir: Base64 decode TTN message Tags: base64, decode, elixir Problem: Elixir: Base64 decode TTN message objective: I'm getting a base64 encoded raw payload from the things network. I'm trying to decode that on my server instead of using their javascript payload ...
Elixir: Base64 decode TTN message Elixir: Base64 decode TTN message base64 decode elixir ArgumentError Elixir Base64 TTN AWYQkQCsCPMANA String.upcase String.split_at Base.decode16 a::1 b::1 _reserve::1 c::1 d::1 e::1 f::1 g::1 data::binary Base.decode64 raw_payload x01 Elixir: Base64 decode TTN message objective: I'm g...
[ -0.017578125, 0.00311279296875, -0.0177001953125, 0.022216796875, 0.006256103515625, -0.014404296875, 0.01025390625, -0.01220703125, 0.007659912109375, -0.01104736328125, 0.006439208984375, -0.0238037109375, -0.002471923828125, 0.0216064453125, 0.002960205078125, 0.004852294921875, 0...
[ 25318, 38308, 44978, 13307, 8, 40899, 384, 38821, 26008, 3647, 15296, 112140, 18468, 102815, 2737, 92, 17854, 13940, 284, 23351, 214, 2037, 58437, 7008, 4353, 257, 112, 2485, 19721, 86687, 1238, 706, 2053, 19155, 49649, 21284, 63033, 6746, ...
[ 0.135986328125, 0.2354736328125, 0.24365234375, 0.236572265625, 0.1622314453125, 0.1953125, 0.1082763671875, 0.23095703125, 0.1304931640625, 0.1539306640625, 0.09716796875, 0.1978759765625, 0.149658203125, 0.14208984375, 0.06793212890625, 0.0291900634765625, 0.113525390625, 0.13635...
embed
42262944_c1
42262944
elixir
1
Enum.reverse() |> List.to_string() end Edit: Here's the code that I ended up with. It's the same one as @dogbert suggested, but reorganized in a way that I find more readable. def get_content_of_first_pair_of_parentheses(s) do subs = substring_after_first_opening_paren(s) length_after_first_opening_paren = byte_size(s...
Enum.reverse() |> List.to_string() end Edit: Here's the code that I ended up with. It's the same one as @dogbert suggested, but reorganized in a way that I find more readable. def get_content_of_first_pair_of_parentheses(s) do subs = substring_after_first_opening_paren(s) length_after_first_opening_paren = byte_size(s...
[ -0.025390625, 0.015625, -0.0206298828125, 0.036865234375, -0.011474609375, 0.01190185546875, -0.0230712890625, -0.010498046875, 0.000579833984375, -0.0157470703125, 0.02880859375, 0.0028076171875, -0.0152587890625, -0.01031494140625, 0.015869140625, -0.01031494140625, 0.009033203125,...
[ 357, 316, 107, 37676, 32036, 188, 91693, 3564, 18151, 134620, 5701, 16466, 42459, 53404, 12301, 8, 420, 2046, 69246, 4390, 13448, 271, 109637, 99547, 35412, 132, 54, 1614, 2203, 46327, 59636, 214, 2500, 33, 140909, 390, 67, 62539, 22144, ...
[ 0.1151123046875, 0.2178955078125, 0.07611083984375, 0.228271484375, 0.1767578125, 0.1474609375, 0.239013671875, 0.0439453125, 0.197021484375, 0.008819580078125, 0.027618408203125, 0.06072998046875, 0.035247802734375, 0.120849609375, 0.05279541015625, 0.06903076171875, 0.0332946777343...
embed
44938494_c0
44938494
elixir
0
Title: Elixir how to iterate over two lists at once to produce a new list? Problem title: Elixir how to iterate over two lists at once to produce a new list? Tags: enumeration, elixir Problem: Elixir how to iterate over two lists at once to produce a new list? I'd like to iterate over two lists at once, but can't figur...
Elixir how to iterate over two lists at once to produce a new list? Elixir how to iterate over two lists at once to produce a new list? enumeration elixir Elixir Enum list_1 list_2 var1 var2 Elixir how to iterate over two lists at once to produce a new list? I'd like to iterate over two lists at once, but can't figure ...
[ -0.003173828125, -0.0135498046875, -0.02880859375, 0.01446533203125, -0.0002918243408203125, 0.030029296875, -0.00787353515625, 0.00119781494140625, -0.0028839111328125, 0.0038299560546875, 0.0281982421875, 0.007080078125, 0.0118408203125, 0.01708984375, 0.005859375, -0.0111083984375, ...
[ 25318, 38308, 3642, 47, 17, 8560, 67, 645, 6626, 5303, 24145, 27489, 3525, 189085, 15296, 357, 316, 115187, 304, 285, 1884, 26366, 100, 40956, 114864, 48716, 27992, 8512, 16031, 29806, 145581, 68330, 6562, 10461, 163846, 34937, 99156, 53418, ...
[ 0.1441650390625, 0.256103515625, 0.0638427734375, 0.0146942138671875, 0.05401611328125, 0.228515625, 0.112060546875, 0.1553955078125, 0.20068359375, 0.2354736328125, 0.1829833984375, 0.1546630859375, 0.128662109375, 0.20751953125, 0.0958251953125, 0.0836181640625, 0.185302734375, 0...
embed
75719213_c0
75719213
elixir
0
Title: Phoenix LiveView basic sorting of data for render Problem title: Phoenix LiveView basic sorting of data for render Tags: phoenix-framework, ecto, elixir Problem: Phoenix LiveView basic sorting of data for render I want to sort this data by name. I am unsure how to do it via the view or from Repo. I know there is...
Phoenix LiveView basic sorting of data for render Phoenix LiveView basic sorting of data for render phoenix-framework ecto elixir SyntaxError CompileError Phoenix LiveView duration-300 hover:bg-table_blue px-6 py-2 testbed.name testbed.version testbed.note App.TestBeds.TestBed __meta__ Ecto.Schema.Metadata Gnot Availab...
[ -0.00396728515625, -0.004852294921875, 0.01165771484375, -0.0294189453125, 0.000732421875, -0.01470947265625, 0.00836181640625, 0.00970458984375, 0.00262451171875, -0.02490234375, 0.0107421875, -0.018310546875, -0.00152587890625, 0.005889892578125, -0.01214599609375, -0.00531005859375,...
[ 133720, 9251, 100474, 62822, 12096, 214, 2053, 89159, 53073, 33, 4084, 160328, 60751, 15296, 38308, 19010, 86531, 18468, 15612, 1340, 115, 75974, 739, 814, 11821, 22819, 143802, 88684, 13545, 17198, 5428, 3034, 13482, 11627, 46354, 5659, 111337...
[ 0.22998046875, 0.1571044921875, 0.30224609375, 0.1768798828125, 0.26318359375, 0.035888671875, 0.18359375, 0.2352294921875, 0.0279083251953125, 0.054229736328125, 0.06768798828125, 0.0791015625, 0.162109375, 0.0506591796875, 0.1668701171875, 0.0330810546875, 0.117919921875, 0.08569...
embed
27150290_c1
27150290
elixir
1
are fine) I tried using IO.inspect and it is still quite ugly and unreadable.(Repository.get [Model] [id] doesn't crash, just returns nil) Any pointers in the right direction would be greatly appreciated. Update Better error message thanks to Jose 09:13:04.292 [error] Task #PID<0.151.0> started from #PID<0.135.0> term...
are fine) I tried using IO.inspect and it is still quite ugly and unreadable.(Repository.get [Model] [id] doesn't crash, just returns nil) Any pointers in the right direction would be greatly appreciated. Update Better error message thanks to Jose 09:13:04.292 [error] Task #PID<0.151.0> started from #PID<0.135.0> term...
[ -0.0181884765625, 0.023193359375, 0.0020294189453125, 0.00982666015625, 0.0081787109375, 0.01116943359375, 0.001068115234375, -0.0140380859375, 0.0108642578125, -0.04248046875, 0.0101318359375, -0.00148773193359375, 0.01019287109375, -0.0024261474609375, 0.018310546875, 0.018310546875,...
[ 621, 5885, 87, 37842, 17368, 17780, 5, 73, 16711, 18, 442, 7464, 32233, 110608, 136, 51, 39116, 2886, 4332, 59111, 1294, 3794, 140290, 532, 22027, 150631, 30646, 17324, 6275, 1314, 48225, 77947, 177154, 18499, 39869, 22618, 4235, 304, 18880...
[ 0.08056640625, 0.190185546875, 0.01324462890625, 0.0848388671875, 0.0628662109375, 0.2286376953125, 0.071044921875, 0.0733642578125, 0.248046875, 0.10760498046875, 0.08782958984375, 0.09033203125, 0.08160400390625, 0.1875, 0.0156402587890625, 0.0528564453125, 0.201171875, 0.1463623...
embed
64826080_c1
64826080
elixir
1
string field :pesel, :string field :second_name, :string field :sex, :string # field :addresses, list_of(:address) do # resolve(fn parent, _, _ -> # addresses = Project.Repo.all(Ecto.assoc(parent, :addresses)) # {:ok, addresses} # end) # description("List of addresses that are assigned to this person.") # end # field :...
string field :pesel, :string field :second_name, :string field :sex, :string # field :addresses, list_of(:address) do # resolve(fn parent, _, _ -> # addresses = Project.Repo.all(Ecto.assoc(parent, :addresses)) # {:ok, addresses} # end) # description("List of addresses that are assigned to this person.") # end # field :...
[ -0.006591796875, 0.00665283203125, 0.002838134765625, 0.037353515625, -0.00439453125, 0.024658203125, 0.0228271484375, -0.01153564453125, -0.0004520416259765625, -0.08203125, 0.00054931640625, 0.01092529296875, -0.0142822265625, 0.01025390625, 0.005523681640625, -0.01806640625, -0.00...
[ 79315, 44457, 152, 1081, 1428, 91693, 191633, 11627, 13802, 107421, 5303, 103608, 14783, 49129, 29823, 27331, 771, 5584, 44150, 73395, 99547, 685, 3564, 76811, 154663, 95486, 3445, 163891, 5470, 6868, 58061, 43240, 15490, 2053, 63033, 56, 18, ...
[ 0.20166015625, 0.2008056640625, 0.00506591796875, 0.12109375, 0.2103271484375, 0.1640625, 0.0692138671875, 0.09661865234375, 0.140869140625, 0.06298828125, 0.05621337890625, 0.1558837890625, 0.05462646484375, 0.129150390625, 0.0831298828125, 0.1202392578125, 0.0714111328125, 0.0982...
embed
63096455_c0
63096455
elixir
0
Title: Elixir/mix: ** (stop) :eacces on Windows Problem title: Elixir/mix: ** (stop) :eacces on Windows Tags: elixir-mix, elixir, erlang, github, phoenix-framework Problem: Elixir/mix: ** (stop) :eacces on Windows When I try to run 'iex -S mix phx.server', I get the error: iex(1)> 2020-07-26T05:13:18.632000Z error Task...
Elixir/mix: ** (stop) :eacces on Windows Elixir/mix: ** (stop) :eacces on Windows elixir-mix elixir erlang github phoenix-framework #PID Elixir Windows Task OrcasiteWeb.Endpoint PID erlang.erl:2217 erlang.open_port spawn_executable Program Files npm.cmd stderr_to_stdout use_stdio exit_status system.ex:802 System.cmd wa...
[ 0.0186767578125, 0.031982421875, 0.003204345703125, -0.00140380859375, -0.002227783203125, 0.00762939453125, 0.00084686279296875, 0.005584716796875, -0.00384521484375, -0.0191650390625, 0.003082275390625, 0.00738525390625, 0.023681640625, 0.01373291015625, 0.004486083984375, 0.01855468...
[ 25318, 38308, 64, 62015, 16459, 19111, 13, 92140, 7, 98, 3773, 15296, 72, 3066, 62270, 32102, 53073, 33, 4084, 160328, 683, 7146, 9598, 3347, 408, 11090, 30474, 152378, 38496, 436, 56, 2489, 59636, 6982, 5623, 7710, 46480, 1010, 7663, 427...
[ 0.14697265625, 0.255126953125, 0.043212890625, 0.280029296875, 0.1068115234375, 0.1729736328125, 0.08740234375, 0.21923828125, 0.020965576171875, 0.056915283203125, 0.199462890625, 0.11962890625, 0.056427001953125, 0.19140625, 0.0745849609375, 0.1279296875, 0.005615234375, 0.043792...
embed
38249856_c1
38249856
elixir
1
tracer, simple}, :arity]) IO.inspect Enum.map([1,2,3,4,5], fn x -> :math.sqrt(x) end) #Tell BEAM to stop tracing :erlang.trace(self(), false, [:all]) #This should not show up in the trace IO.inspect Enum.map([3,7,11,101], fn x -> :math.sqrt(x) end) #Tell BEAM to start tracing again :erlang.trace(self(), true, [:send, :...
tracer, simple}, :arity]) IO.inspect Enum.map([1,2,3,4,5], fn x -> :math.sqrt(x) end) #Tell BEAM to stop tracing :erlang.trace(self(), false, [:all]) #This should not show up in the trace IO.inspect Enum.map([3,7,11,101], fn x -> :math.sqrt(x) end) #Tell BEAM to start tracing again :erlang.trace(self(), true, [:send, :...
[ -0.0005645751953125, 0.0179443359375, -0.0157470703125, -0.00946044921875, 0.00183868408203125, -0.0133056640625, -0.000286102294921875, 0.00592041015625, 0.0162353515625, -0.03173828125, 0.0027923583984375, 0.007568359375, -0.006927490234375, 0.026611328125, 0.032470703125, 0.00239562...
[ 1152, 3443, 8781, 147, 2481, 17780, 16711, 357, 316, 62346, 80389, 14783, 1022, 125458, 864, 3198, 425, 3564, 618, 6796, 9622, 8922, 47, 7279, 21896, 56, 3066, 39989, 13, 39379, 98320, 5584, 959, 7639, 144851, 35046, 4034, 13438, 29568, 3...
[ 0.2108154296875, 0.2364501953125, 0.2269287109375, 0.062103271484375, 0.1351318359375, 0.1646728515625, 0.13623046875, 0.08245849609375, 0.1610107421875, 0.1298828125, 0.08544921875, 0.0439453125, 0.035400390625, 0.0217132568359375, 0.0154266357421875, 0.058380126953125, 0.0009155273...
embed
73636856_c1
73636856
elixir
1
2) lib/phoenix/template.ex:197: anonymous fn/4 in Phoenix.Template."MACRO-__before_compile__"/2 (elixir 1.13.4) lib/enum.ex:2396: Enum."-reduce/3-lists^foldl/2-0-"/3 (phoenix_view 1.1.2) expanding macro: Phoenix.Template.__before_compile__/1 ** (exit) shutdown: 1 (mix 1.13.4) lib/mix/tasks/compile.all.ex:78: Mix.Tasks....
2) lib/phoenix/template.ex:197: anonymous fn/4 in Phoenix.Template."MACRO-__before_compile__"/2 (elixir 1.13.4) lib/enum.ex:2396: Enum."-reduce/3-lists^foldl/2-0-"/3 (phoenix_view 1.1.2) expanding macro: Phoenix.Template.__before_compile__/1 ** (exit) shutdown: 1 (mix 1.13.4) lib/mix/tasks/compile.all.ex:78: Mix.Tasks....
[ -0.00323486328125, 0.004974365234375, 0.005340576171875, 0.021240234375, 0.00012063980102539062, 0.00506591796875, -0.0223388671875, 0.0054931640625, -0.00689697265625, -0.0286865234375, -0.0166015625, -0.0089111328125, 0.01025390625, 0.0213623046875, 0.007232666015625, 0.0046081542968...
[ 4958, 25474, 22014, 33, 4084, 2982, 92558, 3355, 23988, 966, 12, 52184, 10821, 6, 14783, 17357, 23, 133720, 159065, 19309, 441, 14255, 89700, 58875, 1340, 12477, 6169, 38308, 38245, 172508, 316, 11648, 357, 107, 106357, 18113, 6562, 42822, ...
[ 0.16650390625, 0.1912841796875, 0.094482421875, 0.11669921875, 0.1722412109375, 0.17919921875, 0.2196044921875, 0.19775390625, 0.0472412109375, 0.060394287109375, 0.001129150390625, 0.22314453125, 0.1741943359375, 0.024169921875, 0.154296875, 0.20751953125, 0.00006103515625, 0.2714...
embed
57912978_c0
57912978
elixir
0
Title: How to attach something like an after_commit callback to an Ecto transaction? Problem title: How to attach something like an after_commit callback to an Ecto transaction? Tags: elixir, ecto Problem: How to attach something like an after_commit callback to an Ecto transaction? Is there a way to attach a callback ...
How to attach something like an after_commit callback to an Ecto transaction? How to attach something like an after_commit callback to an Ecto transaction? elixir ecto How after_commit Ecto App.ServiceB.run App.ServiceA App.Repo App.Repo.transaction ServiceB.run Repo.rollback App.ServiceB Repo.insert create_changeset H...
[ -0.008544921875, 0.0103759765625, 0.01495361328125, -0.00341796875, 0.02197265625, -0.0025482177734375, -0.02587890625, 0.01806640625, 0.005584716796875, -0.04296875, -0.0096435546875, 0.00750732421875, -0.00830078125, 0.01416015625, 0, -0.0003681182861328125, -0.031982421875, 0.02...
[ 11249, 47, 243, 934, 9844, 1884, 7103, 277, 4007, 11782, 12620, 241, 44150, 124161, 142, 454, 15296, 38308, 60751, 5659, 121979, 571, 16428, 284, 4332, 771, 30145, 12349, 853, 27722, 33657, 28282, 152028, 3509, 3917, 23253, 1556, 174176, 16...
[ 0.08282470703125, 0.1019287109375, 0.1514892578125, 0.1943359375, 0.09344482421875, 0.09381103515625, 0.2100830078125, 0.1090087890625, 0.2227783203125, 0.1724853515625, 0.25048828125, 0.1126708984375, 0.279052734375, 0.2056884765625, 0.035888671875, 0.0199432373046875, 0.02827453613...
embed
56391822_c0
56391822
elixir
0
Title: The database for Rumbl.Repo couldn&#x27;t be created: killed Problem title: The database for Rumbl.Repo couldn&#x27;t be created: killed Tags: phoenix-framework, ecto, elixir Problem: The database for Rumbl.Repo couldn't be created: killed I created a new project using mix phx.new rumbl which worked fine. Then I...
The database for Rumbl.Repo couldn&#x27;t be created: killed The database for Rumbl.Repo couldn&#x27;t be created: killed phoenix-framework ecto elixir DBConnection.ConnectionError Rumbl.Repo phx.new ecto.create Elixir Projects GenServer PID localhost:5432 db_connection connection.ex:84 DBConnection.Connection.connect ...
[ 0.015869140625, 0.032470703125, 0.0034942626953125, 0.0126953125, 0.0017852783203125, -0.0013275146484375, -0.017333984375, -0.01904296875, -0.001922607421875, -0.023193359375, 0.00023365020751953125, -0.0172119140625, 0.01708984375, 0.005889892578125, -0.00125885009765625, 0.021484375...
[ 63399, 27976, 9030, 4332, 771, 69427, 3768, 18, 75935, 12, 152388, 581, 53073, 33, 4084, 160328, 60751, 15296, 38308, 57976, 235603, 18468, 11521, 425, 54936, 7612, 25318, 27331, 15937, 193348, 7146, 40294, 34417, 6460, 40041, 135457, 94878, ...
[ 0.2437744140625, 0.1773681640625, 0.252197265625, 0.111572265625, 0.183349609375, 0.12744140625, 0.0931396484375, 0.08465576171875, 0.161376953125, 0.042816162109375, 0.25830078125, 0.004425048828125, 0.046142578125, 0.059814453125, 0.128173828125, 0.082275390625, 0.23095703125, 0....
embed
73036906_c0
73036906
elixir
0
Title: Dialyzer hates my behaviour @callback definition Problem title: Dialyzer hates my behaviour @callback definition Tags: behavior, callback, dialyzer, elixir Problem: Dialyzer hates my behaviour @callback definition I've recently started to really leverage Dialyzer in my Elixir work but I'm seeing a strange error ...
Dialyzer hates my behaviour @callback definition Dialyzer hates my behaviour @callback definition behavior callback dialyzer elixir Dialyzer NeatCo.Engine.ConnectionBehaviour NeatCo.Engine.Connection Dialyzer hates my behaviour @callback definition I've recently started to really leverage Dialyzer in my Elixir work but...
[ 0.0179443359375, 0.0130615234375, -0.00109100341796875, 0.01904296875, 0.00970458984375, 0.01416015625, -0.01202392578125, -0.00958251953125, -0.000759124755859375, -0.007049560546875, -0.019775390625, -0.040771484375, -0.000560760498046875, 0.018798828125, -0.00095367431640625, 0.0136...
[ 4512, 538, 4383, 1256, 90, 759, 224833, 1374, 85763, 12620, 80934, 123166, 11782, 879, 15296, 38308, 799, 257, 10625, 91384, 1212, 235603, 98409, 6183, 21962, 25318, 4488, 86681, 114453, 18499, 26785, 61924, 4527, 88996, 16428, 44160, 28864, ...
[ 0.1512451171875, 0.1697998046875, 0.22265625, 0.24169921875, 0.066162109375, 0.06646728515625, 0.2353515625, 0.006866455078125, 0.10260009765625, 0.1767578125, 0.1197509765625, 0.2095947265625, 0.112548828125, 0.0413818359375, 0.0638427734375, 0.19677734375, 0.09356689453125, 0.037...
embed
40316164_c0
40316164
elixir
0
Title: Matching Plug Connection Adapter in Protocol&#x27;s For Problem title: Matching Plug Connection Adapter in Protocol&#x27;s For Tags: elixir-mix, testing, phoenix-framework, elixir Problem: Matching Plug Connection Adapter in Protocol's For I would like to create a mocked HTTP request for mix test of App.Controll...
Matching Plug Connection Adapter in Protocol&#x27;s For Matching Plug Connection Adapter in Protocol&#x27;s For elixir-mix testing phoenix-framework elixir Protocol.UndefinedError Matching Plug Connection Adapter Protocol App.Controller.sign_up Plug.Conn Plug.Adapters.Test.Conn App.Controller App.Web sign_up App.AppHel...
[ -0.0159912109375, 0.017333984375, 0.01239013671875, -0.01190185546875, -0.01239013671875, 0.01116943359375, -0.017333984375, -0.0157470703125, 0.0166015625, -0.002593994140625, 0.006622314453125, -0.0228271484375, 0.0010833740234375, -0.00787353515625, -0.000919342041015625, -0.0158691...
[ 67407, 214, 194351, 62448, 1830, 91903, 56, 23, 151607, 3768, 15296, 38308, 62015, 134234, 53073, 33, 4084, 160328, 1067, 5983, 18468, 5659, 175904, 31304, 11935, 2631, 111337, 30474, 24092, 60785, 39179, 6817, 22409, 23962, 8770, 30885, 28282,...
[ 0.215576171875, 0.107421875, 0.219482421875, 0.134033203125, 0.01641845703125, 0.2176513671875, 0.1070556640625, 0.0384521484375, 0.224853515625, 0.03497314453125, 0.0704345703125, 0.187255859375, 0.197021484375, 0.196044921875, 0.016754150390625, 0.044708251953125, 0.10284423828125,...
embed
67748100_c0
67748100
elixir
0
Title: env_variables in app.yaml is unavailable while it builds docker container Problem title: env_variables in app.yaml is unavailable while it builds docker container Tags: docker, google-app-engine, elixir, google-cloud-platform Problem: env_variables in app.yaml is unavailable while it builds docker container I ha...
env_variables in app.yaml is unavailable while it builds docker container env_variables in app.yaml is unavailable while it builds docker container docker google-app-engine elixir google-cloud-platform ArgumentError env_variables app.yaml REDISHOST XXX.XXX.XXX.XXX REDISPORT XXXX CLOUD_SQL_HOST XXXX:host IO.inspect Syst...
[ -0.0029449462890625, 0.01104736328125, -0.0115966796875, -0.00115203857421875, -0.005218505859375, 0.01953125, -0.00762939453125, -0.0230712890625, -0.0146484375, 0.042724609375, 0.01226806640625, -0.006256103515625, 0.022705078125, 0.0263671875, -0.01129150390625, 0.0142822265625, -...
[ 22, 334, 454, 21690, 19736, 23, 4027, 14520, 141, 83, 220, 330, 379, 2886, 12960, 45367, 54, 11050, 116419, 26484, 9007, 128897, 15296, 38308, 182422, 172121, 112140, 18468, 118790, 79909, 34274, 44585, 115469, 627, 66973, 156715, 205378, 170...
[ 0.13427734375, 0.248779296875, 0.039154052734375, 0.213623046875, 0.1396484375, 0.017181396484375, 0.1854248046875, 0.2125244140625, 0.203369140625, 0.005035400390625, 0.062744140625, 0.10589599609375, 0.056976318359375, 0.027130126953125, 0.0780029296875, 0.1558837890625, 0.07562255...
embed
39390425_c0
39390425
elixir
0
Title: DB OwnershipError when running tests using MySQL server Problem title: DB OwnershipError when running tests using MySQL server Tags: phoenix-framework, elixir, elixir-mix Problem: DB OwnershipError when running tests using MySQL server When running a set of tests by using mix test I get ** (DBConnection.Ownershi...
DB OwnershipError when running tests using MySQL server DB OwnershipError when running tests using MySQL server phoenix-framework elixir elixir-mix OwnershipError DBConnection.OwnershipError MySQL ownership every shared PID When Ecto.Adapters.SQL.Sandbox.mode Secure.Repo ExUnit.Case DB OwnershipError when running tests...
[ 0.01171875, 0.032958984375, 0.0024566650390625, -0.019287109375, 0.0037384033203125, -0.005157470703125, -0.0189208984375, -0.024169921875, 0.0068359375, -0.0089111328125, 0.008544921875, -0.0009002685546875, 0.0198974609375, 0.010009765625, -0.00775146484375, 0.034912109375, -0.0002...
[ 57976, 220197, 16070, 18468, 31611, 51042, 109921, 17368, 157146, 10723, 3229, 53073, 33, 4084, 160328, 15296, 38308, 62015, 235603, 670, 7710, 56, 101785, 11907, 99764, 436, 7146, 241, 44150, 22409, 2631, 23962, 158897, 2940, 11728, 61170, 208...
[ 0.1669921875, 0.2198486328125, 0.1776123046875, 0.1605224609375, 0.107177734375, 0.1226806640625, 0.2333984375, 0.0799560546875, 0.236328125, 0.1422119140625, 0.00958251953125, 0.048675537109375, 0.08282470703125, 0.1082763671875, 0.09918212890625, 0.051055908203125, 0.2017822265625,...
embed
57746615_c0
57746615
elixir
0
Title: Appending data to the list in elixir Problem title: Appending data to the list in elixir Tags: elixir Problem: Appending data to the list in elixir I have a function which looks like: def func() do list_z = [123] ... I was looking to append the next data to this list like list_z = [123, "abc", 190] . I tried usi...
Appending data to the list in elixir Appending data to the list in elixir elixir Appending list_z List.insert_at Enum.join append_l Enum.reverse Enum.each Integer.to_charlist combination1 combination2 Appending data to the list in elixir I have a function which looks like: I was looking to append the next data to this ...
[ -0.005401611328125, 0.0081787109375, 0.0019378662109375, 0.006561279296875, -0.00347900390625, 0.00762939453125, -0.0128173828125, 0.009521484375, 0.013916015625, -0.0234375, 0.01007080078125, -0.0152587890625, 0.0194091796875, 0.01953125, -0.00408935546875, 0.009033203125, -0.004425...
[ 5787, 96819, 2053, 47, 5303, 23, 15296, 38308, 169, 32036, 33657, 257, 357, 316, 513, 114689, 71, 141, 37676, 41581, 44401, 188, 9254, 6562, 162515, 32354, 33342, 16487, 11737, 48636, 2055, 238, 36084, 37842, 73, 39933, 58745, 37223, 756, ...
[ 0.119384765625, 0.0986328125, 0.1600341796875, 0.140380859375, 0.2022705078125, 0.079833984375, 0.123291015625, 0.26025390625, 0.148681640625, 0.1796875, 0.123046875, 0.132080078125, 0.1119384765625, 0.201416015625, 0.10498046875, 0.1524658203125, 0.08673095703125, 0.0328369140625,...
embed
55595608_c1
55595608
elixir
1
left, [fc, lft, lfp], lfpp in assoc(lfp, :profile)) |> select([fc, lft, lfp, lfpp], {fc, lft, lfp, lfpp}) |> Repo.all() |> Enum.map(&fold_category_data/1) {:ok, %{forum_categories: categories}} end defp fold_category_data({fc, nil, nil, nil}), do: fc defp fold_category_data({fc, lft, lfp, lfpp}) do fc |> Map.put(:last_...
left, [fc, lft, lfp], lfpp in assoc(lfp, :profile)) |> select([fc, lft, lfp, lfpp], {fc, lft, lfp, lfpp}) |> Repo.all() |> Enum.map(&fold_category_data/1) {:ok, %{forum_categories: categories}} end defp fold_category_data({fc, nil, nil, nil}), do: fc defp fold_category_data({fc, lft, lfp, lfpp}) do fc |> Map.put(:last_...
[ 0.018798828125, 0.007720947265625, -0.00567626953125, -0.01239013671875, -0.032958984375, -0.007293701171875, 0.0045166015625, -0.0162353515625, 0.005218505859375, -0.0380859375, -0.01373291015625, -0.00970458984375, -0.0184326171875, 0.025634765625, -0.01318359375, -0.002227783203125,...
[ 25737, 140443, 2480, 17463, 254, 6366, 63927, 238, 58395, 36849, 771, 5584, 316, 62346, 42822, 33478, 6504, 10135, 11583, 30801, 240153, 39283, 3564, 8, 420, 17324, 42719, 19777, 119499, 4594, 60641, 7413, 114453, 2174, 4738, 95487, 1556, 110...
[ 0.2056884765625, 0.1220703125, 0.1728515625, 0.105224609375, 0.115966796875, 0.1680908203125, 0.08782958984375, 0.048004150390625, 0.1231689453125, 0.0972900390625, 0.081787109375, 0.03179931640625, 0.09393310546875, 0.06298828125, 0.177978515625, 0.0797119140625, 0.10546875, 0.055...
embed
62727985_c0
62727985
elixir
0
Title: NimbleCSV : Elixir Problem title: NimbleCSV : Elixir Tags: csv, elixir, erlang Problem: NimbleCSV : Elixir I'm trying to use NimbleCSV library for a personal project but I'm having some problems... NimbleCSV.define(MyParser, separator: ",", escape: "\"") defmodule Siren do def parseCSV do IO.puts("Let's parse CS...
NimbleCSV : Elixir NimbleCSV : Elixir csv elixir erlang NimbleCSV.ParseError NimbleCSV Elixir NimbleCSV.define MyParser Siren IO.puts CSV File.stream name.csv MyParser.parse_stream Stream.map String.to_integer Enum.map Compiling Team Position Height Weight Age nimble_csv nimble_csv.ex:427 MyParser.separator nimble_csv....
[ -0.0235595703125, 0.01202392578125, -0.004364013671875, 0.018310546875, 0.00946044921875, 0.01104736328125, -0.00119781494140625, 0.0048828125, -0.0089111328125, 0.014404296875, -0.01611328125, -0.007659912109375, 0.01544189453125, 0.025634765625, 0.0026702880859375, -0.002288818359375...
[ 1520, 40099, 19283, 856, 25318, 38308, 20763, 334, 15296, 72, 3066, 28636, 18468, 31611, 112, 64552, 2646, 2189, 10868, 33, 17780, 7077, 313, 43486, 42724, 86429, 4439, 2500, 115061, 62346, 23351, 6191, 357, 316, 15612, 11399, 99428, 1529, ...
[ 0.1688232421875, 0.25390625, 0.1484375, 0.263671875, 0.1070556640625, 0.22314453125, 0.119384765625, 0.2442626953125, 0.0489501953125, 0.04949951171875, 0.236328125, 0.1334228515625, 0.115966796875, 0.001800537109375, 0.038787841796875, 0.150390625, 0.07708740234375, 0.1640625, 0...
embed
48351295_c1
48351295
elixir
1
field :name, :string field :intnames, :map field :symbol, :string field :country, :string field :network, :string field :level, :integer field :top, :boolean field :geom, Geo.Geometry, srid: 3857 end end defmodule MyApp.Segment do use MyApp.Schema schema "segments" do field :ways, {:array, :integer} field :nodes, {:ar...
field :name, :string field :intnames, :map field :symbol, :string field :country, :string field :network, :string field :level, :integer field :top, :boolean field :geom, Geo.Geometry, srid: 3857 end end defmodule MyApp.Segment do use MyApp.Schema schema "segments" do field :ways, {:array, :integer} field :nodes, {:ar...
[ -0.0196533203125, -0.0029449462890625, -0.00323486328125, 0.00616455078125, -0.03125, -0.016845703125, -0.0081787109375, -0.01495361328125, 0.0042724609375, -0.0439453125, 0.004302978515625, 0.0106201171875, 0.009765625, 0.01190185546875, -0.01446533203125, 0.000675201416015625, -0.0...
[ 44457, 11627, 91693, 152, 4288, 62346, 176726, 71013, 1294, 1179, 18244, 67919, 6191, 1505, 13784, 142484, 5073, 429, 306, 30152, 10429, 87739, 53, 19040, 4520, 12243, 3564, 8, 420, 83279, 2646, 39179, 294, 2507, 674, 4527, 25452, 11883, 61...
[ 0.27099609375, 0.152587890625, 0.1756591796875, 0.00439453125, 0.0732421875, 0.13671875, 0.1795654296875, 0.087158203125, 0.00604248046875, 0.04766845703125, 0.06854248046875, 0.136962890625, 0.082763671875, 0.045074462890625, 0.10418701171875, 0.051300048828125, 0.051361083984375, ...
embed
38382553_c0
38382553
elixir
0
Title: Oauth echo using elixir HTTPotion Problem title: Oauth echo using elixir HTTPotion Tags: twitter-digits, phoenix-framework, curl, elixir, httprequest Problem: Oauth echo using elixir HTTPotion Im trying to verify twitter digits api on my phoenix framework/elixir backend... when im using curl it's succeeded, but ...
Oauth echo using elixir HTTPotion Oauth echo using elixir HTTPotion twitter-digits phoenix-framework curl elixir httprequest elixir Oauth HTTPotion api.digits.com account.json Authorization oauth_signature oauth_nonce oauth_timestamp oauth_consumer_key oauth_token oauth_version oauth_signature_method HMAC-SHA1 HTTPotio...
[ -0.00799560546875, 0.01220703125, 0.0031280517578125, 0.0103759765625, -0.006378173828125, -0.009765625, -0.00390625, 0.004547119140625, -0.015869140625, -0.0216064453125, 0.00008249282836914062, -0.03857421875, -0.005126953125, -0.02294921875, -0.005462646484375, -0.013427734375, -0...
[ 180, 916, 927, 28, 3089, 17368, 15296, 38308, 135913, 31, 1363, 34776, 4803, 14481, 53073, 33, 4084, 160328, 18244, 9709, 141, 1621, 75616, 31470, 15426, 170, 1681, 61804, 36, 137432, 157, 3956, 6032, 590, 25553, 316, 19770, 6448, 46354, ...
[ 0.128662109375, 0.21728515625, 0.1915283203125, 0.0726318359375, 0.2509765625, 0.06329345703125, 0.136474609375, 0.258056640625, 0.25732421875, 0.1812744140625, 0.1602783203125, 0.2181396484375, 0.1031494140625, 0.10302734375, 0.061981201171875, 0.087158203125, 0.1405029296875, 0.0...
embed
34355925_c0
34355925
elixir
0
Title: Large file and hashing - performance concern Problem title: Large file and hashing - performance concern Tags: elixir Problem: Large file and hashing - performance concern I'm trying to hash a file (16 MB) line by line with the following code : def hash(data, protocol) do :crypto.hash(protocol, data) |> Base.enc...
Large file and hashing - performance concern Large file and hashing - performance concern elixir md5 Large crypto.hash Base.encode16 File.stream Stream.map Enum.to_list IO.puts f.readlines md5.new m.update l.append m.hexdigest Stream.chunk chunk_size nb_of_lines_in_file Enum.map Task.async Enum.flat_map Task.await Larg...
[ -0.0263671875, -0.0111083984375, 0.0036163330078125, -0.00726318359375, 0.009765625, -0.033203125, -0.01153564453125, -0.0035247802734375, 0.01171875, -0.044677734375, 0.0042724609375, 0.01318359375, 0.01483154296875, 0.031982421875, -0.004486083984375, -0.000911712646484375, -0.0117...
[ 181268, 11435, 136, 256, 54700, 23718, 50509, 15296, 38308, 347, 71, 758, 215637, 126234, 44978, 33, 40899, 2485, 42724, 86429, 115061, 62346, 357, 316, 188, 6562, 17780, 7077, 39116, 59801, 54936, 117008, 1106, 4803, 206, 3678, 7839, 62539, ...
[ 0.1806640625, 0.177734375, 0.07513427734375, 0.1903076171875, 0.1424560546875, 0.1866455078125, 0.1732177734375, 0.0853271484375, 0.257080078125, 0.043426513671875, 0.1248779296875, 0.1910400390625, 0.1693115234375, 0.1781005859375, 0.1192626953125, 0.029266357421875, 0.15087890625, ...
embed
66172800_c1
66172800
elixir
1
relup_helper", {branch,"master"}}} not available. It will not be used. ===> Compiling pc ===> Compiling _build/default/plugins/rebar_mix/src/rebar_mix.erl failed _build/default/plugins/rebar_mix/src/rebar_mix.erl:none: undefined parse transform 'mod_vsn' ===> Plugin {pc,{git,"https://github.com/emqx/port_compiler.git",...
relup_helper", {branch,"master"}}} not available. It will not be used. ===> Compiling pc ===> Compiling _build/default/plugins/rebar_mix/src/rebar_mix.erl failed _build/default/plugins/rebar_mix/src/rebar_mix.erl:none: undefined parse transform 'mod_vsn' ===> Plugin {pc,{git,"https://github.com/emqx/port_compiler.git",...
[ -0.0172119140625, 0.0086669921875, 0.00836181640625, -0.0021514892578125, 0.007171630859375, 0.0244140625, -0.0255126953125, -0.0093994140625, 0.0277099609375, 0.010986328125, -0.014892578125, -0.0103759765625, 0.0216064453125, 0.0091552734375, 0.0206298828125, 0.0029754638671875, -0...
[ 456, 82372, 73866, 56, 21684, 206, 47327, 959, 19882, 1221, 11814, 5, 15612, 49725, 36719, 177149, 214810, 145301, 107, 1299, 62015, 19437, 141, 165523, 9232, 5983, 366, 184, 27198, 13415, 18043, 19, 187364, 57095, 15769, 32102, 195, 864, 4...
[ 0.1405029296875, 0.276611328125, 0.2398681640625, 0.1832275390625, 0.101806640625, 0.07525634765625, 0.1395263671875, 0.08392333984375, 0.167236328125, 0.0261077880859375, 0.140380859375, 0.00115966796875, 0.1214599609375, 0.1544189453125, 0.145751953125, 0.147216796875, 0.1804199218...
embed
54252978_c0
54252978
elixir
0
Title: Phoenix Resolve Request Host from %Plug.Conn{} remote ip Problem title: Phoenix Resolve Request Host from %Plug.Conn{} remote ip Tags: phoenix-framework, hostname, elixir Problem: Phoenix Resolve Request Host from %Plug.Conn{} remote ip A little summary of what I'm trying to do. I have a Phoenix app running on a...
Phoenix Resolve Request Host from %Plug.Conn{} remote ip Phoenix Resolve Request Host from %Plug.Conn{} remote ip phoenix-framework hostname elixir Phoenix Resolve Request Host Plug.Conn request_host response_body response_code work_group_id responded_at utc_datetime inserted_at conn.remote_ip inet.gethostbyaddr remote...
[ -0.0026702880859375, 0.024169921875, 0.015869140625, 0.00732421875, 0.0020751953125, 0.00579833984375, -0.0155029296875, -0.041748046875, -0.0025634765625, -0.0322265625, -0.0078125, -0.0186767578125, -0.00604248046875, 0.0030059814453125, -0.02197265625, 0.000453948974609375, -0.015...
[ 133720, 853, 86918, 75616, 100932, 1295, 1745, 35159, 11935, 19, 148814, 254, 53073, 33, 4084, 160328, 27980, 11627, 15296, 38308, 194351, 50336, 40294, 57553, 37873, 40899, 4488, 51588, 45739, 486, 183540, 158, 26973, 3442, 1272, 7569, 17, 1...
[ 0.294921875, 0.06939697265625, 0.2314453125, 0.159423828125, 0.2127685546875, 0.018585205078125, 0.07965087890625, 0.15771484375, 0.0926513671875, 0.0894775390625, 0.199951171875, 0.108154296875, 0.0604248046875, 0.0318603515625, 0.09686279296875, 0.09088134765625, 0.1756591796875, ...
embed
51076298_c0
51076298
elixir
0
Title: How to use Nested forms associations in phoenix? Problem title: How to use Nested forms associations in phoenix? Tags: phoenix-framework, elixir, angularjs, ecto Problem: How to use Nested forms associations in phoenix? So I'm currently learning Phoenix 1.3 and i want to learn ecto associations. I'm Using Angula...
How to use Nested forms associations in phoenix? How to use Nested forms associations in phoenix? phoenix-framework elixir angularjs ecto How Nested phx.gen.json password_hash Virtual password_confirmation has_one AuthApp.Accounts.Profile user_id belongs_to AuthApp.Accounts.User profile_params Profile Accounts.create_p...
[ 0.0026092529296875, -0.00592041015625, -0.0213623046875, -0.0184326171875, 0.0030517578125, 0.010009765625, 0.017333984375, -0.005462646484375, 0.0126953125, -0.06494140625, 0.001495361328125, -0.01190185546875, 0.0133056640625, 0.043701171875, 0.005645751953125, -0.01611328125, 0.00...
[ 11249, 47, 4527, 28701, 71, 3173, 7, 151747, 23, 53073, 33, 4084, 160328, 18244, 15296, 38308, 348, 35975, 28175, 60751, 11521, 425, 1409, 170, 1681, 78506, 126234, 73303, 23044, 3630, 5655, 927, 39179, 71013, 147161, 38937, 10617, 60641, 2...
[ 0.09674072265625, 0.0267791748046875, 0.15966796875, 0.25634765625, 0.17041015625, 0.260498046875, 0.08941650390625, 0.25537109375, 0.05999755859375, 0.0892333984375, 0.1044921875, 0.17041015625, 0.06658935546875, 0.006561279296875, 0.0184173583984375, 0.16943359375, 0.02296447753906...
embed
34635463_c0
34635463
elixir
0
Title: Elixir app on Heroku ** (ErlangError) erlang error: :&quot;function not exported&quot; Problem title: Elixir app on Heroku ** (ErlangError) erlang error: :&quot;function not exported&quot; Tags: phoenix-framework, heroku, elixir Problem: Elixir app on Heroku ** (ErlangError) erlang error: :"function not exported...
Elixir app on Heroku ** (ErlangError) erlang error: :&quot;function not exported&quot; Elixir app on Heroku ** (ErlangError) erlang error: :&quot;function not exported&quot; phoenix-framework heroku elixir ErlangError scratch Elixir Heroku GenServer main_worker Map.get_and_update Dover BusTracker.MainWorker.handle_call...
[ 0.000762939453125, 0.01092529296875, -0.0030517578125, -0.010498046875, -0.0135498046875, 0.006988525390625, 0.0172119140625, -0.0228271484375, -0.0015411376953125, -0.023193359375, -0.001678466796875, 0.005706787109375, 0.0255126953125, 0.006866455078125, 0.03125, 0.00921630859375, ...
[ 25318, 38308, 4027, 98, 56889, 319, 16459, 18468, 3066, 31611, 72, 18499, 41502, 137175, 959, 31255, 53073, 33, 4084, 160328, 40814, 15296, 1004, 206597, 15937, 193348, 5201, 18244, 42719, 117008, 984, 814, 25852, 28542, 11050, 168793, 108259, ...
[ 0.1617431640625, 0.301513671875, 0.1861572265625, 0.0650634765625, 0.192138671875, 0.2099609375, 0.06927490234375, 0.1513671875, 0.251708984375, 0.1461181640625, 0.10601806640625, 0.1905517578125, 0.011383056640625, 0.21728515625, 0.145751953125, 0.24755859375, 0.0382080078125, 0.0...
embed
32425500_c0
32425500
elixir
0
Title: Injecting variables into a quoted expression Problem title: Injecting variables into a quoted expression Tags: hygiene, metaprogramming, macros, elixir Problem: Injecting variables into a quoted expression I have a quoted expression such as this one: ast = quote do IO.puts x end And I wish to inject a variable i...
Injecting variables into a quoted expression Injecting variables into a quoted expression hygiene metaprogramming macros elixir CompileError Injecting IO.puts Code.eval_quoted Hello __block__ Elixir Check.Runner __aliases__ Check.RunnerTest Injecting variables into a quoted expression I have a quoted expression such as...
[ -0.0096435546875, 0.01556396484375, 0.0086669921875, -0.00531005859375, -0.0025482177734375, -0.0010833740234375, -0.006195068359375, -0.007080078125, 0.000823974609375, -0.03955078125, -0.01409912109375, 0.007720947265625, 0.0057373046875, 0.01092529296875, 0.02392578125, 0.0153198242...
[ 360, 75161, 77336, 7, 3934, 66747, 71, 125195, 99824, 23550, 28966, 111789, 15296, 38308, 15612, 1340, 18468, 31611, 17780, 7077, 28864, 1405, 68726, 35378, 81409, 25318, 38679, 163321, 1679, 41763, 111337, 10, 903, 32599, 115049, 1022, 1556, ...
[ 0.09375, 0.2391357421875, 0.274169921875, 0.038970947265625, 0.161376953125, 0.2373046875, 0.12451171875, 0.26904296875, 0.17919921875, 0.0562744140625, 0.0916748046875, 0.105712890625, 0.05126953125, 0.200927734375, 0.093994140625, 0.0972900390625, 0.07275390625, 0.1060791015625, ...
embed
52457955_c0
52457955
elixir
0
Title: Write ecto schema to csv file in elixir? Problem title: Write ecto schema to csv file in elixir? Tags: elixir, phoenix-framework, csv Problem: Write ecto schema to csv file in elixir? Hi I have Person schema in elixir like this [ %Texting.Contact.Person{ __meta__: #Ecto.Schema.Metadata<:loaded, "people">, email:...
Write ecto schema to csv file in elixir? Write ecto schema to csv file in elixir? elixir phoenix-framework csv Protocol.UndefinedError Write Texting.Contact.Person __meta__ Ecto.Schema.Metadata John phone_number Ecto.Association.NotLoaded phonebook_id previous_phonebook_id updated_at user_id Rhee File.open contacts.csv...
[ 0.002227783203125, 0.0084228515625, 0.010009765625, 0.029052734375, -0.017333984375, -0.0067138671875, -0.0186767578125, 0.0024871826171875, -0.0152587890625, -0.013671875, -0.0198974609375, 0.01104736328125, 0.0198974609375, 0.033447265625, 0.01300048828125, -0.00732421875, -0.02282...
[ 601, 18781, 60751, 61903, 47, 20763, 334, 11435, 23, 15296, 38308, 53073, 33, 4084, 160328, 18244, 151607, 1067, 5983, 18468, 31611, 24129, 214, 233695, 160054, 35273, 241, 44150, 25452, 11883, 6696, 102, 4939, 24089, 2606, 1297, 214813, 1221...
[ 0.09014892578125, 0.1048583984375, 0.26953125, 0.308349609375, 0.1173095703125, 0.1614990234375, 0.2454833984375, 0.1685791015625, 0.044342041015625, 0.1201171875, 0.258056640625, 0.0192108154296875, 0.063232421875, 0.1317138671875, 0.10791015625, 0.06475830078125, 0.177490234375, ...
embed
39192494_c0
39192494
elixir
0
Title: Google API RS256 Key Signing Problem title: Google API RS256 Key Signing Tags: google-api, erlang, public-key-encryption, elixir Problem: Google API RS256 Key Signing I wanted to implement Google's OAuth 2.0 Sever to Server process in Erlang/Elixir, but am having a bit of difficutly. Primarily, I can't seem to f...
Google API RS256 Key Signing Google API RS256 Key Signing google-api erlang public-key-encryption elixir Google API RS256 Key Signing key.pem rsa.key File.read private_key public_key.pem_decode public_key.pem_entry_decode public_key.sign sha256 public_key.verify public_key Google API RS256 Key Signing I wanted to imple...
[ 0.0029449462890625, 0.0152587890625, 0.01531982421875, -0.04541015625, 0.01031494140625, -0.006317138671875, 0.00946044921875, -0.00469970703125, -0.00872802734375, 0.0115966796875, 0.018310546875, -0.035888671875, 0.0037078857421875, 0.0019378662109375, 0.004150390625, 0.0053405761718...
[ 1815, 61687, 18912, 127892, 26824, 48838, 26484, 40897, 72, 3066, 3835, 19770, 136791, 15296, 38308, 22799, 72508, 24666, 5, 42724, 39116, 14375, 454, 112, 40899, 31304, 9638, 814, 40383, 36663, 29479, 180, 67362, 927, 16655, 48752, 47, 22687...
[ 0.2232666015625, 0.1748046875, 0.1136474609375, 0.29296875, 0.2064208984375, 0.173583984375, 0.1654052734375, 0.12548828125, 0.0716552734375, 0.2666015625, 0.125, 0.1663818359375, 0.1414794921875, 0.051025390625, 0.221435546875, 0.2156982421875, 0.1409912109375, 0.1474609375, 0.0...
embed
65458753_c0
65458753
elixir
0
Title: how get all duplicated genserver calls in one module Elixir Problem title: how get all duplicated genserver calls in one module Elixir Tags: elixir Problem: how get all duplicated genserver calls in one module Elixir I have created 2 genservers. camera.ex defmodule Camera do use GenServer defmodule Attributes do...
how get all duplicated genserver calls in one module Elixir how get all duplicated genserver calls in one module Elixir elixir Elixir camera.ex Camera GenServer Attributes owner_id start_link GenServer.start_link __MODULE__ make_ref GenServer.call GenServer.cast handle_call _from handle_cast Map.merge user.ex how get a...
[ -0.005645751953125, -0.0042724609375, -0.0166015625, -0.002899169921875, 0.02734375, 0.0167236328125, 0.0177001953125, -0.016357421875, 0.0033111572265625, -0.060302734375, -0.0126953125, 0.00506591796875, 0.031982421875, 0.003936767578125, -0.00408935546875, 0.0040283203125, -0.0078...
[ 3642, 2046, 756, 171763, 3674, 9226, 39642, 11782, 7, 23, 1632, 88996, 25318, 38308, 15296, 15593, 3355, 44813, 15937, 193348, 191145, 101785, 532, 4034, 10187, 17137, 397, 29087, 85763, 55741, 34831, 161063, 42719, 1991, 38937, 75935, 116, 5...
[ 0.0570068359375, 0.10394287109375, 0.131103515625, 0.24658203125, 0.13427734375, 0.1441650390625, 0.227783203125, 0.1951904296875, 0.042877197265625, 0.04541015625, 0.112548828125, 0.1851806640625, 0.1087646484375, 0.2037353515625, 0.07977294921875, 0.1624755859375, 0.13232421875, ...
embed
38137242_c1
38137242
elixir
1
", method: "PATCH", owner: #PID<0.349.0>, params: %{"data" => %{"attributes" => %{"action" => "start"}}, "id" => "245"}, path_info: ["api", "tasks", "245"], peer: {{127, 0, 0, 1}, 111317}, port: 80, private: %{MyApp.Router => {[], %{}}, :phoenix_endpoint => MyApp.Endpoint, :phoenix_format => "json-api", :phoenix_pipeli...
", method: "PATCH", owner: #PID<0.349.0>, params: %{"data" => %{"attributes" => %{"action" => "start"}}, "id" => "245"}, path_info: ["api", "tasks", "245"], peer: {{127, 0, 0, 1}, 111317}, port: 80, private: %{MyApp.Router => {[], %{}}, :phoenix_endpoint => MyApp.Endpoint, :phoenix_format => "json-api", :phoenix_pipeli...
[ -0.016845703125, 0.000457763671875, -0.0059814453125, -0.0064697265625, 0.01226806640625, 0.0030670166015625, -0.013916015625, 0.007354736328125, -0.000125885009765625, 0.000885009765625, 0.01507568359375, 0.04248046875, -0.0194091796875, 0.0074462890625, 0.000682830810546875, 0.003967...
[ 44, 4, 55300, 12, 65135, 16999, 830, 101785, 468, 683, 7146, 170179, 12977, 2389, 121, 4432, 1745, 24854, 58, 10135, 44357, 257, 191145, 7, 44713, 17137, 47391, 532, 304, 4633, 8152, 60875, 7319, 40897, 1073, 1224, 268, 280, 133249, 757, ...
[ 0.084228515625, 0.08349609375, 0.213623046875, 0.0714111328125, 0.235107421875, 0.256103515625, 0.035980224609375, 0.252685546875, 0.0157928466796875, 0.06878662109375, 0.1822509765625, 0.049652099609375, 0.1666259765625, 0.09661865234375, 0.1185302734375, 0.05633544921875, 0.0102539...
embed
72977541_c1
72977541
elixir
1
%{ maker_id: conn.assigns.user.id, checker_id: conn.assigns.user.id, participants_id: Enum.at(params["participants_id"], index), org_id: params["org_id"] } participant_id = Enum.at(params["participants_id"], index) column = if byte_size(participant_id) > 0, do: OriginatorMapping.find_by(org_id: params["org_id"], parti...
%{ maker_id: conn.assigns.user.id, checker_id: conn.assigns.user.id, participants_id: Enum.at(params["participants_id"], index), org_id: params["org_id"] } participant_id = Enum.at(params["participants_id"], index) column = if byte_size(participant_id) > 0, do: OriginatorMapping.find_by(org_id: params["org_id"], parti...
[ -0.026123046875, -0.006988525390625, 0.0072021484375, -0.004974365234375, 0.0081787109375, 0.00020122528076171875, 0.0024566650390625, -0.0091552734375, 0.00994873046875, -0.02734375, -0.00384521484375, 0.00274658203125, 0.00885009765625, 0.0167236328125, -0.0087890625, -0.030883789062...
[ 1745, 24854, 55474, 532, 12, 158, 19, 162, 31304, 5, 65918, 12765, 56, 7, 56480, 357, 316, 257, 2500, 8256, 1065, 58, 15866, 25258, 10840, 268, 4, 63262, 247, 30910, 121, 4432, 1478, 454, 51912, 95274, 132, 16, 3365, 2203, 2174, 390, ...
[ 0.1148681640625, 0.0187835693359375, 0.2110595703125, 0.1768798828125, 0.0201416015625, 0.13330078125, 0.104248046875, 0.072509765625, 0.2452392578125, 0.02117919921875, 0.1920166015625, 0.2222900390625, 0.1397705078125, 0.01885986328125, 0.25244140625, 0.07086181640625, 0.1810302734...
embed
43827183_c0
43827183
elixir
0
Title: how to secure a route for authenticated user only Elixir Phoenix Problem title: how to secure a route for authenticated user only Elixir Phoenix Tags: phoenix-framework, elixir Problem: how to secure a route for authenticated user only Elixir Phoenix I have created few routes in my application as scope "/", Soci...
how to secure a route for authenticated user only Elixir Phoenix how to secure a route for authenticated user only Elixir Phoenix phoenix-framework elixir Elixir Phoenix Socialistical pipe_through Use UserController sign_up create_user SessionController DashboardController Socialistical.Session Socialistical.User curre...
[ 0.0072021484375, 0.004302978515625, 0.000385284423828125, 0.00946044921875, 0.00095367431640625, 0.001251220703125, -0.00323486328125, 0.005279541015625, -0.0021820068359375, -0.052734375, -0.0086669921875, -0.0218505859375, 0.003997802734375, 0.01416015625, -0.009521484375, 0.00439453...
[ 3642, 111670, 36439, 100, 195734, 27686, 38937, 4734, 25318, 38308, 133720, 10, 53073, 33, 4084, 160328, 18244, 15296, 7142, 71412, 141, 137158, 222521, 53400, 175904, 24092, 28282, 65918, 148735, 1858, 24351, 294, 90, 43581, 194351, 11935, 169...
[ 0.0743408203125, 0.2274169921875, 0.262939453125, 0.047210693359375, 0.1868896484375, 0.144287109375, 0.171142578125, 0.143798828125, 0.11962890625, 0.228271484375, 0.27001953125, 0.0220794677734375, 0.040374755859375, 0.05108642578125, 0.0748291015625, 0.113525390625, 0.062927246093...
embed
47535714_c0
47535714
elixir
0
Title: Preload with Ecto with subquery and using a join from the main query Problem title: Preload with Ecto with subquery and using a join from the main query Tags: elixir, ecto Problem: Preload with Ecto with subquery and using a join from the main query I'm using Ecto to request data from the database, and I've used...
Preload with Ecto with subquery and using a join from the main query Preload with Ecto with subquery and using a join from the main query elixir ecto a the Preload Ecto Item Cat c.food_category_id i.id is_nil c.price_discount Houses order_by h.id Use Preload with Ecto with subquery and using a join from the main query ...
[ 0.00396728515625, 0.002593994140625, -0.00714111328125, 0.0013885498046875, -0.0038909912109375, 0.01373291015625, -0.01904296875, 0.003662109375, 0.01116943359375, -0.064453125, -0.0036773681640625, 0.00341796875, -0.015380859375, -0.01507568359375, -0.015869140625, 0.0028839111328125...
[ 1914, 63033, 678, 241, 44150, 1614, 944, 17368, 33284, 1295, 5201, 41, 15296, 38308, 60751, 10, 78426, 18826, 49558, 33478, 6504, 532, 17324, 5293, 3827, 71013, 13038, 12989, 1272, 1096, 50336, 2053, 63399, 11814, 25632, 18151, 479, 7515, 4...
[ 0.1424560546875, 0.220947265625, 0.0987548828125, 0.109375, 0.299072265625, 0.1611328125, 0.1260986328125, 0.06884765625, 0.171142578125, 0.11083984375, 0.06915283203125, 0.0947265625, 0.0232696533203125, 0.152587890625, 0.2286376953125, 0.006378173828125, 0.1220703125, 0.166259765...
embed
72300671_c1
72300671
elixir
1
first 3 are constant and the same (headers) in every CSV. I am trying to get these first 3 columns to a map and the rest columns to a list of maps. I have tried this so far, "csvs/download.csv" |> File.stream!() |> NimbleCSV.RFC4180.parse_stream(skip_headers: false) |> Stream.transform([], fn r, acc -> {[Enum.zip(acc,...
first 3 are constant and the same (headers) in every CSV. I am trying to get these first 3 columns to a map and the rest columns to a list of maps. I have tried this so far, "csvs/download.csv" |> File.stream!() |> NimbleCSV.RFC4180.parse_stream(skip_headers: false) |> Stream.transform([], fn r, acc -> {[Enum.zip(acc,...
[ -0.0272216796875, -0.0054931640625, -0.006103515625, 0.008056640625, -0.0057373046875, 0.0084228515625, -0.0172119140625, 0.00335693359375, 0.01263427734375, -0.00970458984375, -0.023681640625, 0.0034637451171875, 0.00089263916015625, 0.0380859375, -0.00080108642578125, 0.0121459960937...
[ 5117, 138, 621, 53697, 136, 5701, 31251, 1314, 11907, 313, 43486, 31577, 2046, 6097, 3365, 316, 1779, 47, 10, 22288, 10588, 5303, 111, 7, 37842, 2060, 4439, 18043, 61754, 334, 42724, 86429, 90295, 1520, 40099, 19283, 856, 54612, 441, 617,...
[ 0.14306640625, 0.17578125, 0.0272979736328125, 0.245361328125, 0.049407958984375, 0.154296875, 0.1910400390625, 0.15966796875, 0.07415771484375, 0.08746337890625, 0.30859375, 0.0643310546875, 0.0657958984375, 0.042022705078125, 0.1622314453125, 0.2012939453125, 0.0655517578125, 0.1...
embed
77576023_c1
77576023
elixir
1
<div class="flex-auto rounded-md p-3 ring-1 ring-inset ring-gray-200"> <div class="flex justify-between gap-x-4"> <div class="py-0.5 text-xs leading-5 text-gray-500"><span class="font-medium text-gray-900"><%= goal_comment.creator.username %></span> commented</div> </div> <p class="text-sm leading-6 text-gray-500"><%=...
<div class="flex-auto rounded-md p-3 ring-1 ring-inset ring-gray-200"> <div class="flex justify-between gap-x-4"> <div class="py-0.5 text-xs leading-5 text-gray-500"><span class="font-medium text-gray-900"><%= goal_comment.creator.username %></span> commented</div> </div> <p class="text-sm leading-6 text-gray-500"><%=...
[ -0.0118408203125, -0.0030364990234375, -0.006103515625, -0.02392578125, -0.003387451171875, 0.011474609375, 0.01239013671875, -0.005126953125, 0.00494384765625, 0.00015354156494140625, -0.0260009765625, -0.0026702880859375, 0.0184326171875, 0.006134033203125, -0.01556396484375, 0.01953...
[ 30618, 18507, 44289, 8913, 68807, 297, 54686, 915, 8316, 15789, 5759, 73, 3509, 5739, 53, 80260, 1660, 40383, 4626, 1177, 33, 43599, 425, 11565, 6493, 93645, 7986, 105207, 10342, 121993, 75635, 20543, 69236, 7612, 6868, 22829, 39, 13545, 27...
[ 0.1419677734375, 0.0863037109375, 0.1676025390625, 0.1427001953125, 0.07989501953125, 0.0330810546875, 0.0516357421875, 0.009002685546875, 0.1378173828125, 0.0963134765625, 0.05023193359375, 0.00164794921875, 0.06182861328125, 0.08087158203125, 0.052703857421875, 0.137451171875, 0.13...
embed
70427788_c0
70427788
elixir
0
Title: Minimal setup to run elixir release in a fresh machine Problem title: Minimal setup to run elixir release in a fresh machine Tags: elixir, release Problem: Minimal setup to run elixir release in a fresh machine Background I have a very minimal Elixir desktop app called hello-desktop : https://github.com/Fl4m3Ph0...
Minimal setup to run elixir release in a fresh machine Minimal setup to run elixir release in a fresh machine elixir release Minimal hello.bat include_executables_for runtime_tools Minimal setup to run elixir release in a fresh machine Background I have a very minimal Elixir desktop app called hello-desktop : https://g...
[ 0.014404296875, 0.0035858154296875, 0.0007476806640625, 0.03515625, -0.010498046875, 0.00048828125, -0.00933837890625, -0.017578125, 0.0015411376953125, -0.01080322265625, 0.015625, -0.017822265625, 0.0206298828125, 0.0196533203125, 0.0037384033203125, 0.00970458984375, -0.0083618164...
[ 119305, 169581, 11675, 15296, 38308, 54452, 23, 63335, 36279, 33600, 31, 2848, 26698, 46480, 19774, 19736, 6032, 89110, 10, 64330, 4552, 20187, 25318, 86983, 4027, 133850, 13784, 15769, 32102, 13817, 5974, 121447, 3773, 209, 43084, 17664, 7026,...
[ 0.261962890625, 0.2139892578125, 0.1295166015625, 0.10986328125, 0.270263671875, 0.1865234375, 0.06903076171875, 0.1522216796875, 0.1571044921875, 0.134765625, 0.1629638671875, 0.1783447265625, 0.07733154296875, 0.0526123046875, 0.087646484375, 0.0960693359375, 0.049468994140625, 0...
embed
54297348_c0
54297348
elixir
0
Title: No way to infer the exact line number of this &quot;print_block&quot; definition execution without metaprogramming in Elixir? Problem title: No way to infer the exact line number of this &quot;print_block&quot; definition execution without metaprogramming in Elixir? Tags: elixir Problem: No way to infer the exac...
No way to infer the exact line number of this &quot;print_block&quot; definition execution without metaprogramming in Elixir? No way to infer the exact line number of this &quot;print_block&quot; definition execution without metaprogramming in Elixir? elixir print_block Elixir __ENV__ IO.puts IO.inspect _msg code_block...
[ -0.0172119140625, 0.01220703125, 0.0012664794921875, 0.00897216796875, 0.015380859375, 0.0296630859375, -0.004974365234375, -0.007415771484375, 0.0108642578125, -0.0238037109375, -0.01416015625, -0.016357421875, 0.002777099609375, 0.000362396240234375, -0.00125885009765625, 0.026123046...
[ 3917, 53498, 24763, 13315, 14012, 903, 35662, 81409, 80934, 71924, 15490, 23550, 28966, 25318, 38308, 438, 15296, 28412, 11572, 856, 17780, 7077, 16711, 4432, 18151, 23, 20697, 13204, 35064, 111789, 134071, 1614, 39989, 116, 2046, 11675, 32354,...
[ 0.07330322265625, 0.212158203125, 0.170654296875, 0.1787109375, 0.158447265625, 0.0616455078125, 0.1766357421875, 0.2269287109375, 0.1656494140625, 0.156982421875, 0.06646728515625, 0.12890625, 0.1312255859375, 0.116455078125, 0.2242431640625, 0.00384521484375, 0.071533203125, 0.17...
embed
52283311_c1
52283311
elixir
1
, result -> result_modified = %{result | nodes: result[:nodes] + element[:nodes], ways: result[:ways] + element[:ways], relations: result[:relations] + element[:relations] } cond do rem(result_modified[:nodes], 1000) == 0 -> IO.write "\rnodes: " <> to_string(result_modified[:nodes]) <> "; ways: " <> to_string(result_mo...
, result -> result_modified = %{result | nodes: result[:nodes] + element[:nodes], ways: result[:ways] + element[:ways], relations: result[:relations] + element[:relations] } cond do rem(result_modified[:nodes], 1000) == 0 -> IO.write "\rnodes: " <> to_string(result_modified[:nodes]) <> "; ways: " <> to_string(result_mo...
[ 0.0017242431640625, 0.0150146484375, 0.00286865234375, -0.004974365234375, 0.0201416015625, -0.0035247802734375, -0.0126953125, -0.045654296875, 0.01446533203125, 0.003936767578125, 0.004669189453125, -0.029541015625, -0.0264892578125, 0.01513671875, -0.004791259765625, -0.01318359375,...
[ 4, 16750, 33079, 454, 13415, 47314, 2203, 1745, 2109, 7136, 58745, 110, 988, 157, 997, 12830, 48322, 102966, 91582, 25653, 158, 71, 54, 14194, 4382, 757, 17780, 434, 18781, 37599, 47, 91693, 7199, 56, 3066, 109005, 188, 1803, 29568, 3564,...
[ 0.044281005859375, 0.269287109375, 0.0972900390625, 0.001007080078125, 0.230712890625, 0.231201171875, 0.0716552734375, 0.073486328125, 0.11328125, 0.186767578125, 0.0219268798828125, 0.139404296875, 0.1358642578125, 0.151123046875, 0.079345703125, 0.15234375, 0.197265625, 0.176025...
embed
49149928_c0
49149928
elixir
0
Title: How can I profile my elixir phoenix server? Problem title: How can I profile my elixir phoenix server? Tags: phoenix-framework, elixir Problem: How can I profile my elixir phoenix server? I have a Phoenix server which basically proxies GraphQL into a lot of REST API backends. It finds the username from a provide...
How can I profile my elixir phoenix server? How can I profile my elixir phoenix server? phoenix-framework elixir CompileError SyntaxError How fprof.trace my_web iex:1 lists.erl:1354 lists.mapfoldl lists.erl:1355 How can I profile my elixir phoenix server? I have a Phoenix server which basically proxies GraphQL into a l...
[ -0.0091552734375, -0.005340576171875, -0.01287841796875, -0.00799560546875, -0.025634765625, 0.015869140625, -0.0011749267578125, -0.0022430419921875, -0.01043701171875, -0.047607421875, 0.00140380859375, 0.0150146484375, 0.02783203125, -0.0034942626953125, 0.006591796875, 0.017578125,...
[ 11249, 831, 60641, 15296, 38308, 53073, 33, 4084, 10723, 759, 160328, 18244, 15612, 1340, 18468, 86531, 1238, 3454, 420, 39989, 13, 14051, 17, 3355, 19721, 5303, 22618, 12338, 42822, 56, 11663, 133720, 502, 5134, 6524, 11727, 2737, 866, 393...
[ 0.03656005859375, 0.04412841796875, 0.295166015625, 0.104736328125, 0.229248046875, 0.1053466796875, 0.10986328125, 0.1605224609375, 0.2301025390625, 0.06915283203125, 0.0631103515625, 0.0166168212890625, 0.048309326171875, 0.046417236328125, 0.0214080810546875, 0.0526123046875, 0.07...
embed
73453449_c0
73453449
elixir
0
Title: after deleting`:gettext` in mix.exs file, facing `__hash__` undefined problem Problem title: after deleting`:gettext` in mix.exs file, facing `__hash__` undefined problem Tags: phoenix-framework, elixir Problem: after deleting`:gettext` in mix.exs file, facing `__hash__` undefined problem I want to delete the fo...
after deleting`:gettext` in mix.exs file, facing `__hash__` undefined problem after deleting`:gettext` in mix.exs file, facing `__hash__` undefined problem phoenix-framework elixir UndefinedFunctionError mix.exs __hash__ Please Mix.compilers compile.gettext.ex:5 Mix.Tasks.Compile.Gettext.run task.ex:397 Mix.Task.run_ta...
[ -0.00946044921875, 0.010986328125, 0.0147705078125, 0.0018463134765625, 0.00078582763671875, -0.0128173828125, -0.004302978515625, 0.0027008056640625, -0.0024871826171875, 0.01336669921875, -0.00750732421875, -0.024169921875, 0.0296630859375, 0.00994873046875, 0.01483154296875, 0.01098...
[ 7103, 24674, 1916, 3794, 22829, 17664, 3355, 7, 11435, 7808, 126234, 14005, 9232, 5983, 2967, 53073, 33, 4084, 160328, 18244, 15296, 38308, 79912, 97249, 18468, 31611, 30607, 37286, 277, 5974, 1314, 9969, 1340, 758, 9874, 108161, 16428, 66211...
[ 0.08111572265625, 0.179443359375, 0.060333251953125, 0.1507568359375, 0.268310546875, 0.28369140625, 0.1845703125, 0.128662109375, 0.14013671875, 0.117431640625, 0.164794921875, 0.0748291015625, 0.095703125, 0.189697265625, 0.1114501953125, 0.05389404296875, 0.09796142578125, 0.114...
embed
48158729_c0
48158729
elixir
0
Title: Ecto query doesn&#x27;t work on Absinthe resolution Problem title: Ecto query doesn&#x27;t work on Absinthe resolution Tags: elixir, ecto, absinthe Problem: Ecto query doesn't work on Absinthe resolution I'm trying to get working a simple query with Absinthe#Batch , but the function where the Ecto query is being...
Ecto query doesn&#x27;t work on Absinthe resolution Ecto query doesn&#x27;t work on Absinthe resolution elixir ecto absinthe Ecto Absinthe get_cards_for_stage _args _ctx IO.puts Before OfferSid.Repo.aggregate pipeline_cards __MODULE__ pipeline_cards_by_stage_ids stage.id batch_results Inside Map.get stages_ids Ecto.Que...
[ 0.004058837890625, -0.0242919921875, -0.0194091796875, -0.000457763671875, 0.0012054443359375, -0.0228271484375, -0.00173187255859375, -0.00113677978515625, -0.01080322265625, -0.036376953125, -0.019775390625, 0.0118408203125, 0.000652313232421875, 0.0279541015625, -0.00160980224609375, ...
[ 241, 44150, 41, 1294, 22027, 3768, 18, 4488, 98, 27174, 73, 2347, 158839, 15296, 38308, 60751, 1563, 1596, 2046, 38931, 2472, 16852, 61477, 425, 17780, 117371, 134384, 532, 771, 197564, 137158, 2256, 36541, 1777, 2109, 7136, 187040, 42719, ...
[ 0.1103515625, 0.306396484375, 0.17724609375, 0.1771240234375, 0.04522705078125, 0.05328369140625, 0.068603515625, 0.1531982421875, 0.057830810546875, 0.1424560546875, 0.1627197265625, 0.1998291015625, 0.1995849609375, 0.027099609375, 0.150634765625, 0.1905517578125, 0.05560302734375,...
embed
39771962_c0
39771962
elixir
0
Title: GenServer async integration testing Problem title: GenServer async integration testing Tags: elixir Problem: GenServer async integration testing Trying to learn basic code testing with elixir and have trouble wrapping my head around testing async functions(genserver's handle_info and cast). One way that works bu...
GenServer async integration testing GenServer async integration testing elixir GenServer timer.sleep handle_cast Process.send_after new_state UserServerStarted.get_data SETUP Supervisor UserServer GenServer.call UserServer.via_tuple user.id GenServer async integration testing Trying to learn basic code testing with eli...
[ -0.00238037109375, -0.0031585693359375, -0.0042724609375, -0.008056640625, -0.011474609375, -0.0023040771484375, 0.009033203125, -0.00836181640625, 0.00439453125, -0.0308837890625, 0.01611328125, 0.032470703125, 0.005828857421875, 0.0289306640625, 0.0201416015625, 0.007049560546875, ...
[ 15937, 193348, 10, 12654, 238, 157353, 134234, 15296, 38308, 21991, 170572, 34831, 55741, 123996, 39285, 46327, 3525, 61340, 53400, 126597, 10135, 128565, 4265, 51858, 85763, 38937, 30698, 62822, 18151, 63134, 10336, 32354, 1409, 39642, 7319, 377...
[ 0.1651611328125, 0.2279052734375, 0.06927490234375, 0.22412109375, 0.1121826171875, 0.25390625, 0.18896484375, 0.062103271484375, 0.19970703125, 0.224853515625, 0.2257080078125, 0.1982421875, 0.149658203125, 0.0237579345703125, 0.051239013671875, 0.03961181640625, 0.00689697265625, ...
embed
40091116_c0
40091116
elixir
0
Title: Message passing with state[:pid] fails, freshly generated pid works Problem title: Message passing with state[:pid] fails, freshly generated pid works Tags: elixir, ex-unit Problem: Message passing with state[:pid] fails, freshly generated pid works My second test is failing. 1) test it jumps when it can (Runner...
Message passing with state[:pid] fails, freshly generated pid works Message passing with state[:pid] fails, freshly generated pid works elixir ex-unit Message RunnerTest runner_test.exs:15 runner_test.exs:18 ExUnit.Case Runner setup_all Runner.input assert_receive Map.merge mover.x mover.y Message passing with state[:p...
[ -0.011474609375, 0.01312255859375, -0.0294189453125, -0.015869140625, -0.00872802734375, -0.000400543212890625, -0.006805419921875, -0.0247802734375, -0.0113525390625, -0.034423828125, 0.00897216796875, 0.033447265625, -0.00057220458984375, 0.00836181640625, 0.0198974609375, 0.00421142...
[ 48205, 4588, 452, 678, 11341, 45226, 35782, 63335, 139392, 43240, 15296, 38308, 1119, 309, 208545, 111337, 142117, 6954, 12221, 24033, 5443, 85600, 169581, 33657, 42719, 1991, 148665, 425, 17932, 3034, 214, 63014, 10922, 44084, 106, 16428, 2069...
[ 0.122802734375, 0.06292724609375, 0.072265625, 0.04608154296875, 0.116455078125, 0.2056884765625, 0.1517333984375, 0.09149169921875, 0.145263671875, 0.117919921875, 0.04461669921875, 0.1781005859375, 0.10205078125, 0.06463623046875, 0.1826171875, 0.1199951171875, 0.1439208984375, 0...
embed
50313835_c0
50313835
elixir
0
Title: Is there an impact of type spec on generated code? Problem title: Is there an impact of type spec on generated code? Tags: elixir Problem: Is there an impact of type spec on generated code? I'm doing some excises based on the 99-Problems list. For P01 which purpose is to find the last element of a list, my imple...
Is there an impact of type spec on generated code? Is there an impact of type spec on generated code? elixir List.last p01 inline_list_funcs lists.last Is there an impact of type spec on generated code? I'm doing some excises based on the 99-Problems list. For P01 which purpose is to find the last element of a list, my...
[ -0.00457763671875, 0.0003948211669921875, 0.007415771484375, -0.0000025033950805664062, -0.0145263671875, -0.010986328125, -0.005462646484375, -0.025634765625, 0.00384521484375, -0.00958251953125, 0.0235595703125, -0.017333984375, -0.0019683837890625, 0.000946044921875, -0.00309753417968...
[ 2071, 2685, 142, 24725, 111, 10644, 48502, 98, 139392, 18151, 71, 15296, 38308, 32036, 19777, 915, 6746, 23, 2256, 6562, 16498, 5303, 10794, 10078, 223361, 436, 60042, 7413, 4568, 12830, 208124, 39555, 11343, 1810, 1264, 5037, 5, 11583, 570...
[ 0.025177001953125, 0.0357666015625, 0.0784912109375, 0.230712890625, 0.058074951171875, 0.251220703125, 0.274169921875, 0.06671142578125, 0.1392822265625, 0.2005615234375, 0.027099609375, 0.05352783203125, 0.1951904296875, 0.1885986328125, 0.214111328125, 0.000335693359375, 0.1574707...
embed
40205639_c0
40205639
elixir
0
Title: Phoenix Ecto.NoResultsError not automatically setting 404 status Problem title: Phoenix Ecto.NoResultsError not automatically setting 404 status Tags: phoenix-framework, elixir Problem: Phoenix Ecto.NoResultsError not automatically setting 404 status I have the following controller action: def edit(conn, %{"id" ...
Phoenix Ecto.NoResultsError not automatically setting 404 status Phoenix Ecto.NoResultsError not automatically setting 404 status phoenix-framework elixir Ecto.NoResultsError Phoenix Repo.get_by Memo user_id current_user Memo.changeset edit.html Repo.insert User other_user assert_error_sent with_current_user memo_path ...
[ -0.01422119140625, 0.0023040771484375, -0.014404296875, -0.0281982421875, 0.005889892578125, -0.0004100799560546875, -0.0015411376953125, 0.0030975341796875, 0.00665283203125, -0.018310546875, -0.017578125, 0.0174560546875, -0.0220947265625, -0.000005125999450683594, 0.02197265625, 0.0...
[ 133720, 241, 44150, 5021, 4332, 10178, 18468, 31611, 959, 191082, 53550, 1112, 617, 10778, 53073, 33, 4084, 160328, 18244, 15296, 38308, 853, 771, 3794, 17443, 38937, 43581, 65918, 152028, 3509, 27211, 7693, 33657, 53400, 3789, 188800, 12832, ...
[ 0.253173828125, 0.074951171875, 0.2353515625, 0.098876953125, 0.05975341796875, 0.12548828125, 0.1124267578125, 0.1163330078125, 0.060546875, 0.1822509765625, 0.1141357421875, 0.185302734375, 0.1976318359375, 0.173095703125, 0.03009033203125, 0.059814453125, 0.0819091796875, 0.0939...
embed
68172644_c1
68172644
elixir
1
50.0>, params: %{}, path_info: ["upload"], path_params: %{}, port: 8080, private: %{ plug_multipart: :done, plug_route: {"/upload", #Function<1.2199674/2 in ElixirHttpServer.do_match/4>} }, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %Plug.Conn.Unfetched{aspect: :cookies}, req_headers: ...
50.0>, params: %{}, path_info: ["upload"], path_params: %{}, port: 8080, private: %{ plug_multipart: :done, plug_route: {"/upload", #Function<1.2199674/2 in ElixirHttpServer.do_match/4>} }, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %Plug.Conn.Unfetched{aspect: :cookies}, req_headers: ...
[ -0.019775390625, -0.00445556640625, 0.0164794921875, 0.0012359619140625, -0.01025390625, 0.006744384765625, -0.006591796875, -0.016357421875, 0.013427734375, 0.0185546875, -0.00628662109375, 0.009033203125, 0.00909423828125, 0.014404296875, -0.007354736328125, -0.0081787109375, -0.01...
[ 190, 99929, 2740, 121, 4432, 1745, 60875, 7319, 94835, 2500, 8256, 11469, 2248, 4836, 14375, 76329, 144227, 17365, 64007, 133261, 97249, 48400, 60072, 16360, 12477, 25318, 38308, 3062, 254, 193348, 5, 246, 98753, 17357, 41, 91693, 148814, 344...
[ 0.1146240234375, 0.1964111328125, 0.0672607421875, 0.1361083984375, 0.1290283203125, 0.032470703125, 0.1712646484375, 0.16015625, 0.2069091796875, 0.1361083984375, 0.08184814453125, 0.1766357421875, 0.0777587890625, 0.2279052734375, 0.2010498046875, 0.20263671875, 0.1629638671875, ...
embed
46031693_c0
46031693
elixir
0
Title: Elixir/Phoenix Endpoint broadcast from another module Problem title: Elixir/Phoenix Endpoint broadcast from another module Tags: elixir, endpoint, phoenix-channels, phoenix-framework Problem: Elixir/Phoenix Endpoint broadcast from another module I have a channel, which does some things in back-end when you conne...
Elixir/Phoenix Endpoint broadcast from another module Elixir/Phoenix Endpoint broadcast from another module elixir endpoint phoenix-channels phoenix-framework another Elixir Phoenix Endpoint Launcher.start handle_in boot:fetch total_reports Launcher App.Launcher App.Endpoint Endpoint.broadcast test:my Elixir/Phoenix En...
[ 0.01263427734375, 0.0216064453125, -0.01031494140625, -0.000774383544921875, 0.0147705078125, 0.006439208984375, 0.01123046875, -0.005828857421875, 0.006011962890625, -0.03857421875, 0.0019989013671875, -0.00946044921875, 0.01556396484375, 0.02294921875, -0.01287841796875, -0.016601562...
[ 25318, 38308, 497, 33, 4084, 18878, 38496, 226347, 1295, 15700, 88996, 15296, 3564, 53073, 17032, 8876, 160328, 133720, 171326, 56, 17137, 34831, 49935, 29362, 3622, 79770, 5659, 309, 152378, 6369, 55741, 3034, 1176, 64, 86723, 4420, 3611, 37...
[ 0.09527587890625, 0.23876953125, 0.0626220703125, 0.1107177734375, 0.11474609375, 0.156005859375, 0.1966552734375, 0.2235107421875, 0.10589599609375, 0.135009765625, 0.2073974609375, 0.06085205078125, 0.10089111328125, 0.064697265625, 0.07904052734375, 0.1063232421875, 0.051818847656...
embed
70461925_c1
70461925
elixir
1
30000, translators: [ {Plug.Cowboy.Translator, :translate}, {Logger.Translator, :translate} ], compile_time_purge_level: :debug, truncate: 8096, log_counter: [level: :debug], handle_otp_reports: true, discard_threshold_for_error_logger: 500, translator_inspect_opts: [] ] :logger.get_primary_config() => %{ filter_defaul...
30000, translators: [ {Plug.Cowboy.Translator, :translate}, {Logger.Translator, :translate} ], compile_time_purge_level: :debug, truncate: 8096, log_counter: [level: :debug], handle_otp_reports: true, discard_threshold_for_error_logger: 500, translator_inspect_opts: [] ] :logger.get_primary_config() => %{ filter_defaul...
[ -0.00421142578125, 0.01953125, -0.0035858154296875, -0.00823974609375, 0.00372314453125, -0.005523681640625, 0.00188446044921875, -0.0036773681640625, -0.00445556640625, -0.0189208984375, -0.0040283203125, 0.0048828125, -0.00064849853515625, 0.01251220703125, 0.0177001953125, -0.006622...
[ 138, 28568, 3900, 143, 22230, 35159, 8770, 30885, 62624, 1290, 30145, 19309, 113972, 1505, 9969, 1340, 6032, 4717, 429, 67919, 112, 85779, 14617, 19, 33478, 2248, 11648, 12684, 71013, 34831, 818, 254, 79770, 29568, 17116, 5861, 2109, 16200, ...
[ 0.1396484375, 0.2413330078125, 0.1876220703125, 0.2071533203125, 0.1483154296875, 0.1221923828125, 0.111083984375, 0.216064453125, 0.1708984375, 0.11962890625, 0.107666015625, 0.08782958984375, 0.1114501953125, 0.179931640625, 0.09063720703125, 0.1275634765625, 0.1221923828125, 0.1...
embed
55249044_c0
55249044
elixir
0
Title: Is it possible for a dependency to create a database table in elixir? Problem title: Is it possible for a dependency to create a database table in elixir? Tags: metaprogramming, phoenix-framework, ecto, elixir Problem: Is it possible for a dependency to create a database table in elixir? I am trying to build a s...
Is it possible for a dependency to create a database table in elixir? Is it possible for a dependency to create a database table in elixir? metaprogramming phoenix-framework ecto elixir programming-phoenix-1.4 current_user Is it possible for a dependency to create a database table in elixir? I am trying to build a simp...
[ 0.0162353515625, 0.003662109375, -0.01336669921875, 0.00084686279296875, -0.004669189453125, 0.02783203125, 0.01123046875, -0.01409912109375, 0.00787353515625, -0.050048828125, -0.00933837890625, -0.00830078125, -0.00872802734375, 0.020263671875, -0.00518798828125, 0.000659942626953125...
[ 2071, 442, 7722, 100, 42548, 27771, 28282, 10, 63399, 23180, 23, 15296, 38308, 47, 23550, 28966, 53073, 33, 4084, 160328, 60751, 56037, 449, 22014, 91977, 43581, 65918, 45367, 8781, 531, 927, 5426, 11814, 237, 38415, 98441, 12877, 5423, 628...
[ 0.0537109375, 0.03558349609375, 0.20556640625, 0.037445068359375, 0.2431640625, 0.1754150390625, 0.1923828125, 0.079833984375, 0.268310546875, 0.286376953125, 0.128662109375, 0.1385498046875, 0.278564453125, 0.040130615234375, 0.0933837890625, 0.1236572265625, 0.07403564453125, 0.1...
embed
70100290_c0
70100290
elixir
0
Title: In erlang, how do I interpret the `+` operator in `fun erlang:&#x27;+&#x27;/2` Problem title: In erlang, how do I interpret the `+` operator in `fun erlang:&#x27;+&#x27;/2` Tags: elixir, erlang, rabbitmq Problem: In erlang, how do I interpret the `+` operator in `fun erlang:'+'/2` I'm new to Erlang but have some...
In erlang, how do I interpret the `+` operator in `fun erlang:&#x27;+&#x27;/2` In erlang, how do I interpret the `+` operator in `fun erlang:&#x27;+&#x27;/2` elixir erlang rabbitmq Erlang Elixir Machine State In erlang, how do I interpret the `+` operator in `fun erlang:'+'/2` I'm new to Erlang but have some experience...
[ -0.0003185272216796875, -0.00021266937255859375, -0.004241943359375, 0.025146484375, 0.0021514892578125, 0.01416015625, -0.00732421875, 0.01080322265625, 0.00537109375, -0.051025390625, 0.0220947265625, -0.025634765625, -0.0079345703125, -0.0032958984375, -0.0003108978271484375, 0.0123...
[ 72, 3066, 3642, 29481, 1328, 39933, 16498, 3768, 12477, 15296, 38308, 152131, 18, 864, 1004, 25318, 68311, 22836, 16981, 28007, 71916, 594, 2737, 208124, 19400, 25217, 673, 13315, 191560, 7477, 757, 33342, 1884, 105233, 370, 8705, 5117, 35735...
[ 0.1065673828125, 0.26611328125, 0.017852783203125, 0.1881103515625, 0.2313232421875, 0.245361328125, 0.1614990234375, 0.08233642578125, 0.24267578125, 0.0198974609375, 0.18603515625, 0.086181640625, 0.0282135009765625, 0.06561279296875, 0.116455078125, 0.0411376953125, 0.15283203125,...
embed
32020684_c0
32020684
elixir
0
Title: Unable to create new Postgres Table for Elixir&#x27;s Phoenix Problem title: Unable to create new Postgres Table for Elixir&#x27;s Phoenix Tags: elixir, phoenix-framework, postgresql Problem: Unable to create new Postgres Table for Elixir's Phoenix I'm following https://robots.thoughtbot.com/testing-a-phoenix-el...
Unable to create new Postgres Table for Elixir&#x27;s Phoenix Unable to create new Postgres Table for Elixir&#x27;s Phoenix elixir phoenix-framework postgresql Postgrex.Error Unable Postgres Table Elixir Phoenix mpa:.mix ecto.migrate GenServer.call PID CREATE NOT EXISTS schema_migrations PRIMARY KEY inserted_at EXIT in...
[ 0.0089111328125, -0.00396728515625, 0.0003662109375, 0.006134033203125, 0.0146484375, -0.0024566650390625, 0.00811767578125, -0.01019287109375, 0.00115203857421875, -0.01171875, 0.017578125, -0.001861572265625, 0.00023651123046875, -0.0003986358642578125, -0.01275634765625, 0.021484375...
[ 992, 2886, 28282, 3525, 2795, 17562, 112997, 100, 25318, 38308, 3768, 133720, 15296, 53073, 33, 4084, 160328, 99247, 7134, 425, 18468, 31611, 15293, 62015, 60751, 58849, 17957, 15937, 193348, 85763, 436, 7146, 175151, 86725, 29426, 35602, 61903...
[ 0.0791015625, 0.161376953125, 0.15869140625, 0.1295166015625, 0.07647705078125, 0.225341796875, 0.2274169921875, 0.0311279296875, 0.1016845703125, 0.2099609375, 0.04583740234375, 0.2493896484375, 0.0687255859375, 0.0352783203125, 0.08123779296875, 0.07562255859375, 0.04644775390625, ...
embed
47376401_c0
47376401
elixir
0
Title: Validating id with Guardian 1 and Phoenix 1.3 Problem title: Validating id with Guardian 1 and Phoenix 1.3 Tags: elixir, jwt, phoenix-framework, guardian Problem: Validating id with Guardian 1 and Phoenix 1.3 I use Guardian 1 and Phoenix 1.3. And I'm trying to make an API that uses JWT. I now have authentication...
Validating id with Guardian 1 and Phoenix 1.3 Validating id with Guardian 1 and Phoenix 1.3 elixir jwt phoenix-framework guardian Validating Guardian Phoenix PhxAuthApi.Auth.AuthPipeline Guardian.Plug.Pipeline otp_app phx_auth_api PhxAuthApi.Auth.Guardian error_handler PhxAuthApi.Auth.AuthErrorHandler Guardian.Plug.Ver...
[ -0.02197265625, 0.00153350830078125, 0.0250244140625, -0.01483154296875, 0.00469970703125, -0.003631591796875, -0.007293701171875, 0.002105712890625, -0.00335693359375, -0.07177734375, 0.015869140625, 0.0169677734375, 0.000606536865234375, 0.0002918243408203125, -0.0140380859375, 0.004...
[ 25447, 56464, 3447, 678, 81589, 106, 136, 133720, 41491, 15296, 38308, 1647, 434, 18, 53073, 33, 4084, 160328, 18244, 158031, 13000, 425, 67362, 927, 1434, 29348, 26338, 35159, 86, 254, 9007, 11521, 916, 40897, 198156, 18499, 74258, 18468, ...
[ 0.21484375, 0.147216796875, 0.1827392578125, 0.1048583984375, 0.30810546875, 0.15185546875, 0.0927734375, 0.25732421875, 0.2314453125, 0.08154296875, 0.2222900390625, 0.042877197265625, 0.0175323486328125, 0.07513427734375, 0.044189453125, 0.08740234375, 0.08984375, 0.0986328125, ...
embed
66203663_c0
66203663
elixir
0
Title: Accessing Phoenix Framework http requests from React fetch Problem title: Accessing Phoenix Framework http requests from React fetch Tags: elixir, fetch-api, phoenix-framework, reactjs Problem: Accessing Phoenix Framework http requests from React fetch I'm new to the Phoenix framework, and I've been struggling f...
Accessing Phoenix Framework http requests from React fetch Accessing Phoenix Framework http requests from React fetch elixir fetch-api phoenix-framework reactjs React Accessing Phoenix Framework CORSPlug HelloWeb pipe_through PageController UserController AppController Phoenix_Test console.log db_url_var POST Content-T...
[ 0.0014190673828125, 0.01470947265625, 0.02099609375, 0, 0.004730224609375, 0.00017547607421875, -0.01177978515625, -0.006439208984375, -0.0033416748046875, -0.0281982421875, 0.0196533203125, 0.0057373046875, -0.00160980224609375, 0.007110595703125, 0.0026702880859375, 0.000222206115722...
[ 40266, 133720, 202220, 1621, 50336, 1295, 853, 47013, 7647, 206, 15296, 38308, 40897, 53073, 33, 4084, 160328, 131300, 28175, 70555, 35159, 35378, 30474, 137158, 222521, 14231, 175904, 111337, 130250, 4867, 25002, 81903, 70870, 196707, 111383, 35...
[ 0.1419677734375, 0.282958984375, 0.237548828125, 0.1556396484375, 0.1900634765625, 0.012725830078125, 0.0772705078125, 0.207763671875, 0.13427734375, 0.112060546875, 0.0213470458984375, 0.1580810546875, 0.0787353515625, 0.0308837890625, 0.038177490234375, 0.0175933837890625, 0.091796...
embed
37929931_c1
37929931
elixir
1
, :model schema "users" do field :email, :string field :password, :string, virtual: true field :crypted_password, :string has_many :projects, Elix.Project timestamps end @required_fields ~w(email password) @optional_fields ~w() @doc """ Creates a changeset based on the `model` and `params`. If no params are provided, a...
, :model schema "users" do field :email, :string field :password, :string, virtual: true field :crypted_password, :string has_many :projects, Elix.Project timestamps end @required_fields ~w(email password) @optional_fields ~w() @doc """ Creates a changeset based on the `model` and `params`. If no params are provided, a...
[ -0.0181884765625, -0.00738525390625, -0.0021820068359375, -0.0137939453125, 0.00677490234375, -0.020751953125, -0.0118408203125, -0.0242919921875, 0.005523681640625, -0.0296630859375, 0.00518798828125, -0.01544189453125, 0.004730224609375, 0.0341796875, -0.005584716796875, -0.015197753...
[ 152, 51734, 61903, 223, 1314, 54, 44457, 25501, 91693, 13409, 47416, 20513, 29568, 136791, 1556, 669, 53, 95322, 540, 4084, 5, 223353, 20028, 2537, 3564, 3181, 28394, 78506, 109585, 29713, 151313, 65572, 126, 35509, 136, 2500, 8256, 110, 12...
[ 0.000640869140625, 0.2296142578125, 0.2049560546875, 0.147705078125, 0.139404296875, 0.0865478515625, 0.151611328125, 0.1207275390625, 0.116943359375, 0.059295654296875, 0.135986328125, 0.1937255859375, 0.090087890625, 0.1585693359375, 0.0638427734375, 0.053253173828125, 0.0651855468...
embed
44272798_c1
44272798
elixir
1
from p in Product, join: ps in ProductShop, on: p.id == ps.p_id, join: s in Shop, on: s.id == ps.s_id, join: pc in ProductCategory, on: p.id == pc.p_id, join: c in Subcategory, on: c.id == pc.c_id, where: c.id in ^categories, where: s.id in ^shop_ids, select: [p, c, s] end ......create_query(keywords, categories, shop...
from p in Product, join: ps in ProductShop, on: p.id == ps.p_id, join: s in Shop, on: s.id == ps.s_id, join: pc in ProductCategory, on: p.id == pc.p_id, join: c in Subcategory, on: c.id == pc.c_id, where: c.id in ^categories, where: s.id in ^shop_ids, select: [p, c, s] end ......create_query(keywords, categories, shop...
[ -0.0012054443359375, 0.0250244140625, 0.00009918212890625, 0.0184326171875, -0.004150390625, -0.006378173828125, -0.0010833740234375, -0.00494384765625, -0.00168609619140625, -0.00897216796875, -0.000782012939453125, 0.01397705078125, -0.005096435546875, 0.0047607421875, 0.00027656555175...
[ 1295, 915, 23, 73111, 33284, 24014, 78959, 98, 532, 254, 91, 24211, 36719, 76775, 3081, 501, 8273, 33478, 6504, 240153, 10534, 30185, 36849, 3564, 7612, 2182, 944, 1294, 19770, 47416, 39283, 19927, 5787, 14, 4332, 771, 5584, 4568, 7440, 7...
[ 0.10443115234375, 0.130859375, 0.0517578125, 0.225830078125, 0.1585693359375, 0.1243896484375, 0.1639404296875, 0.007537841796875, 0.090576171875, 0.076416015625, 0.02423095703125, 0.1656494140625, 0.1014404296875, 0.012786865234375, 0.09820556640625, 0.012298583984375, 0.11633300781...
embed
42286996_c0
42286996
elixir
0
Title: How to Fix &quot;npm ERR! addLocal Could not install&quot; Problem title: How to Fix &quot;npm ERR! addLocal Could not install&quot; Tags: elixir, npm, phoenix-framework Problem: How to Fix "npm ERR! addLocal Could not install" I'm getting this error when attempting to push my Phoenix application to Heroku. I've...
How to Fix &quot;npm ERR! addLocal Could not install&quot; How to Fix &quot;npm ERR! addLocal Could not install&quot; elixir npm phoenix-framework Phoenix the How Fix ERR Could WARNING phoenix_static_buildpack.config Using Will Node Config DATABASE_URL MIX_ENV Installing Downloading Building build_23f60aac277eab15b4ce2...
[ -0.01019287109375, 0.0133056640625, 0.0008392333984375, -0.006500244140625, 0.004730224609375, 0.0289306640625, -0.0120849609375, -0.022216796875, 0.0036468505859375, -0.029052734375, 0.0198974609375, -0.0269775390625, 0.01953125, 0.00579833984375, 0.016845703125, 0.0019989013671875, ...
[ 11249, 96746, 19, 26822, 151206, 38, 15190, 203758, 191147, 959, 20600, 15296, 38308, 25037, 39, 53073, 33, 4084, 160328, 18244, 133720, 60873, 201939, 177149, 29102, 153837, 20255, 438, 139403, 49068, 95538, 21487, 856, 107951, 4857, 104919, 4...
[ 0.0611572265625, 0.17041015625, 0.05413818359375, 0.23583984375, 0.262451171875, 0.05999755859375, 0.16552734375, 0.251220703125, 0.201171875, 0.1910400390625, 0.2386474609375, 0.05584716796875, 0.1976318359375, 0.1236572265625, 0.1572265625, 0.06121826171875, 0.0958251953125, 0.15...
embed
43105490_c0
43105490
elixir
0
Title: Test failure due to Ecto and async task Problem title: Test failure due to Ecto and async task Tags: elixir, ecto, arc-ecto, phoenix-framework Problem: Test failure due to Ecto and async task Interesting issue I'm getting. I have a test that deals with file uploading using arc-ecto. In the uploader module I over...
Test failure due to Ecto and async task Test failure due to Ecto and async task elixir ecto arc-ecto phoenix-framework DBConnection.ConnectionError #PID Test Ecto storage_dir Postgrex.Protocol PID Task connection.ex:115 Ecto.Adapters.Postgres.Connection.execute sql.ex:243 Ecto.Adapters.SQL.sql_call sql.ex:441 Ecto.Adap...
[ 0.0205078125, 0.0181884765625, 0.005706787109375, -0.01519775390625, -0.017822265625, -0.00112152099609375, -0.0120849609375, -0.0181884765625, -0.0001087188720703125, -0.0172119140625, -0.0113525390625, 0.0220947265625, 0.0091552734375, 0.025634765625, 0.024658203125, 0.00282287597656...
[ 8647, 137578, 4743, 241, 44150, 136, 10, 12654, 238, 66211, 15296, 38308, 60751, 46552, 53073, 33, 4084, 160328, 57976, 235603, 18468, 31611, 683, 7146, 132096, 936, 7134, 425, 188, 436, 9598, 94878, 103928, 22409, 2631, 17562, 99247, 158897,...
[ 0.219482421875, 0.2232666015625, 0.03387451171875, 0.08648681640625, 0.276611328125, 0.0850830078125, 0.02838134765625, 0.18994140625, 0.07611083984375, 0.193115234375, 0.05804443359375, 0.1728515625, 0.215087890625, 0.1412353515625, 0.0225372314453125, 0.03662109375, 0.0921630859375...
embed
76543236_c0
76543236
elixir
0
Title: How to detect or change the language in Whisper when used in Elixir Bumblebee Problem title: How to detect or change the language in Whisper when used in Elixir Bumblebee Tags: elixir, openai-whisper Problem: How to detect or change the language in Whisper when used in Elixir Bumblebee I started playing around w...
How to detect or change the language in Whisper when used in Elixir Bumblebee How to detect or change the language in Whisper when used in Elixir Bumblebee elixir openai-whisper How Whisper Elixir Bumblebee Very model_info Bumblebee.load_model Bumblebee.load_featurizer Bumblebee.load_tokenizer generation_config Bumbleb...
[ -0.0032196044921875, 0.0108642578125, 0.00016689300537109375, 0.0164794921875, -0.0028533935546875, 0.00592041015625, -0.01251220703125, -0.021728515625, -0.004974365234375, -0.0115966796875, 0.00531005859375, 0.01190185546875, -0.00106048583984375, 0.00014781951904296875, 0.019653320312...
[ 11249, 47, 96391, 707, 15549, 70, 46876, 23, 601, 979, 20595, 11814, 25318, 38308, 667, 40099, 372, 13, 3229, 15296, 9803, 508, 434, 99342, 3299, 7319, 63033, 51734, 52825, 58093, 153837, 119516, 9217, 22829, 1777, 109585, 29426, 8356, 425,...
[ 0.076416015625, 0.1082763671875, 0.213623046875, 0.10687255859375, 0.2196044921875, 0.029022216796875, 0.25244140625, 0.04718017578125, 0.06781005859375, 0.1868896484375, 0.2130126953125, 0.110595703125, 0.053497314453125, 0.1817626953125, 0.04022216796875, 0.113525390625, 0.15283203...
embed
52041378_c0
52041378
elixir
0
Title: Handle views using Phoenix as a RESTful API app Problem title: Handle views using Phoenix as a RESTful API app Tags: rest, phoenix-framework, api, elixir Problem: Handle views using Phoenix as a RESTful API app I'm having trouble understanding how to handle phoenix views properly. Let's say that a client is call...
Handle views using Phoenix as a RESTful API app Handle views using Phoenix as a RESTful API app rest phoenix-framework api elixir Phoenix Handle RESTful API user_data function_that_fetch_user_data put_resp_header put_status send_resp Status.code login.json CryptomonitorWeb.UserView MyAppWeb generate_user_token user.mai...
[ -0.027099609375, 0.00616455078125, 0.0196533203125, -0.00135040283203125, 0.010498046875, -0.00146484375, -0.022216796875, -0.01153564453125, 0.00061798095703125, -0.06591796875, 0.010986328125, 0.0101318359375, 0.00799560546875, 0.0029754638671875, -0.002685546875, 0.00689697265625, ...
[ 10639, 133, 16912, 17368, 133720, 237, 627, 21828, 7844, 61687, 4027, 10588, 53073, 33, 4084, 160328, 31470, 15296, 38308, 38937, 10135, 32354, 29362, 65918, 2109, 254, 31251, 45215, 25379, 56504, 40899, 73655, 170, 1681, 201543, 167277, 30474,...
[ 0.1888427734375, 0.126708984375, 0.326416015625, 0.0263214111328125, 0.304443359375, 0.041473388671875, 0.04052734375, 0.1676025390625, 0.15087890625, 0.18798828125, 0.147705078125, 0.1845703125, 0.1029052734375, 0.1195068359375, 0.1739501953125, 0.07666015625, 0.1954345703125, 0.0...
embed