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
47688295_c0
47688295
elixir
0
Title: Storing state in Elixir Problem title: Storing state in Elixir Tags: mutability, immutability, gen-server, elixir, dictionary Problem: Storing state in Elixir Recently I tackled a problem which involved updating a large number of key values. Naturally, I considered using a Map , with operations like Map.put/3 . ...
Storing state in Elixir Storing state in Elixir mutability immutability gen-server elixir dictionary Storing Elixir Map Map.put GenServer handle_cast Storing state in Elixir Recently I tackled a problem which involved updating a large number of key values. Naturally, I considered using a Map , with operations like Map....
[ 0.00152587890625, -0.0072021484375, -0.005828857421875, -0.0133056640625, 0.0027618408203125, -0.01171875, -0.00506591796875, -0.00665283203125, 0.003082275390625, -0.0284423828125, 0.004150390625, 0.0245361328125, 0.02001953125, 0.0311279296875, 0.0203857421875, 0.0018463134765625, ...
[ 23604, 11341, 25318, 38308, 23, 21144, 41159, 14311, 9226, 39642, 15296, 10763, 214, 42719, 7077, 15937, 193348, 34831, 55741, 36461, 2967, 1257, 56464, 21334, 14012, 22799, 142424, 90698, 17368, 41018, 18113, 129980, 566, 561, 22819, 2053, 456...
[ 0.2130126953125, 0.2099609375, 0.1380615234375, 0.264892578125, 0.013885498046875, 0.1212158203125, 0.097412109375, 0.1236572265625, 0.1234130859375, 0.1583251953125, 0.10101318359375, 0.060638427734375, 0.003997802734375, 0.1962890625, 0.114013671875, 0.1351318359375, 0.224975585937...
embed
66371272_c0
66371272
elixir
0
Title: Elixir Atoms and its different forms Problem title: Elixir Atoms and its different forms Tags: elixir Problem: Elixir Atoms and its different forms So, as a newbie to Elixir lang, I am thoroughly confused with : (colons) on both sides of a variable! :status is an atom, but we also find in maps or structs stuff l...
Elixir Atoms and its different forms Elixir Atoms and its different forms elixir Elixir Atoms IO.inspect some_variable Keyword List Elixir Atoms and its different forms So, as a newbie to Elixir lang, I am thoroughly confused with : (colons) on both sides of a variable! :status is an atom, but we also find in maps or s...
[ 0.031982421875, -0.00482177734375, -0.001434326171875, 0.0025482177734375, 0.001373291015625, 0.007049560546875, 0.00738525390625, 0.0125732421875, -0.0181884765625, 0.0299072265625, 0.0223388671875, -0.0167236328125, 0.034423828125, 0.01708984375, 0.01708984375, 0.006927490234375, -...
[ 25318, 38308, 69728, 12921, 3173, 15296, 17780, 16711, 21690, 2886, 189755, 32036, 7, 9014, 1937, 55681, 152, 22796, 1779, 15044, 5609, 77336, 45215, 83, 142, 34627, 7413, 22288, 36716, 70, 472, 19770, 5222, 53, 5570, 3917, 8, 18347, 27781,...
[ 0.111328125, 0.227294921875, 0.2078857421875, 0.127685546875, 0.1700439453125, 0.048309326171875, 0.1287841796875, 0.0654296875, 0.0987548828125, 0.0382080078125, 0.190673828125, 0.1602783203125, 0.006744384765625, 0.041656494140625, 0.1009521484375, 0.0977783203125, 0.0762939453125,...
embed
38993234_c0
38993234
elixir
0
Title: Unable to mix ecto.create. Multiple errors Problem title: Unable to mix ecto.create. Multiple errors Tags: ecto, elixir-mix, elixir, phoenix-framework, postgresql Problem: Unable to mix ecto.create. Multiple errors When trying to run mix ecto.create I got the following errors: .Repo couldn't be created: tcp conn...
Unable to mix ecto.create. Multiple errors Unable to mix ecto.create. Multiple errors ecto elixir-mix elixir phoenix-framework postgresql Unable ecto.create Multiple Repo FATAL invalid_authorization_specification Unable to mix ecto.create. Multiple errors When trying to run mix ecto.create I got the following errors: ....
[ 0.02734375, 0.0191650390625, 0.0034332275390625, 0.03271484375, 0.00109100341796875, -0.00982666015625, -0.009521484375, -0.013671875, 0.0108642578125, -0.00579833984375, 0.016357421875, -0.03173828125, 0.027099609375, 0.014892578125, -0.015869140625, 0.0181884765625, -0.019165039062...
[ 992, 2886, 17664, 60751, 7612, 2182, 19335, 8705, 18499, 5, 15296, 38308, 62015, 53073, 33, 4084, 160328, 1305, 17562, 99247, 853, 771, 15491, 30487, 56649, 1003, 5922, 47691, 159975, 31577, 11675, 25632, 4332, 69427, 18, 75935, 121422, 37067...
[ 0.037567138671875, 0.1397705078125, 0.2489013671875, 0.2490234375, 0.1632080078125, 0.09649658203125, 0.124755859375, 0.1063232421875, 0.1700439453125, 0.0241546630859375, 0.06719970703125, 0.17431640625, 0.224609375, 0.0701904296875, 0.10009765625, 0.1246337890625, 0.0836181640625, ...
embed
75615763_c2
75615763
elixir
2
compiled with Erlang/OTP 25) Code signals: RuntimeError, Erlang, Bcrypt_elixir, Argon, Compiler, argon2, Bcrypt.Base.hash_password, Bcrypt.Base.gen_salt, Process, PID, Bcrypt, Make, See, Comeonin, base.ex:15, Bcrypt.Base.init, code_server.erl:1317, code_server.handle_on_load, on_load, Elixir.Bcrypt.Base, Bcrypt.Base, b...
compiled with Erlang/OTP 25) Code signals: RuntimeError, Erlang, Bcrypt_elixir, Argon, Compiler, argon2, Bcrypt.Base.hash_password, Bcrypt.Base.gen_salt, Process, PID, Bcrypt, Make, See, Comeonin, base.ex:15, Bcrypt.Base.init, code_server.erl:1317, code_server.handle_on_load, on_load, Elixir.Bcrypt.Base, Bcrypt.Base, b...
[ 0.01348876953125, 0.00274658203125, -0.01165771484375, 0.0106201171875, -0.00537109375, -0.007293701171875, -0.009033203125, -0.0172119140625, -0.0029296875, -0.0079345703125, -0.01385498046875, -0.0260009765625, 0.02392578125, 0.0361328125, 0.0098876953125, 0.0098876953125, -0.02478...
[ 375, 5974, 297, 678, 1004, 3066, 64, 670, 23658, 714, 16, 28864, 26073, 7, 12, 28398, 6032, 18468, 31611, 335, 136791, 6169, 38308, 1172, 6126, 15612, 34759, 187, 304, 63473, 126234, 13409, 47416, 5, 1409, 85985, 123996, 7146, 26176, 6872...
[ 0.04217529296875, 0.1981201171875, 0.054046630859375, 0.09283447265625, 0.1273193359375, 0.290771484375, 0.01898193359375, 0.066162109375, 0.1922607421875, 0.22412109375, 0.042266845703125, 0.234375, 0.26611328125, 0.051788330078125, 0.008056640625, 0.1126708984375, 0.148193359375, ...
embed
76664821_c0
76664821
elixir
0
Title: Getting `null value in column "id" of relation table_name` when I try to save something to the database in Phoenix Problem title: Getting `null value in column "id" of relation table_name` when I try to save something to the database in Phoenix Tags: postgresql, phoenix-framework, elixir, ect...
Getting `null value in column "id" of relation table_name` when I try to save something to the database in Phoenix Getting `null value in column "id" of relation table_name` when I try to save something to the database in Phoenix postgresql phoenix-framework elixir ecto Getting table_name Phoenix Re...
[ -0.0026397705078125, -0.01153564453125, 0.01806640625, 0.0111083984375, 0.00022029876708984375, 0.00775146484375, 0.00054168701171875, -0.02392578125, -0.0020599365234375, -0.033935546875, 0.0012359619140625, 0.0260009765625, -0.0205078125, 0.00592041015625, 0.007171630859375, 0.004516...
[ 210732, 139550, 34292, 3365, 316, 532, 41911, 23180, 11627, 9790, 30098, 63399, 133720, 17562, 99247, 4084, 160328, 15296, 38308, 60751, 853, 771, 73, 33657, 111, 47, 11675, 678, 18499, 3447, 8035, 56574, 134598, 5423, 23009, 143726 ]
[ 0.03009033203125, 0.243896484375, 0.1685791015625, 0.0770263671875, 0.095947265625, 0.1251220703125, 0.2003173828125, 0.162109375, 0.146728515625, 0.0570068359375, 0.118896484375, 0.10986328125, 0.2293701171875, 0.107666015625, 0.07855224609375, 0.04150390625, 0.013824462890625, 0....
embed
58714479_c0
58714479
elixir
0
Title: Phoenix Framework - jQuery connection Problem title: Phoenix Framework - jQuery connection Tags: phoenix-framework, jquery, elixir Problem: Phoenix Framework - jQuery connection I have problem with jquery connection to my Project on the Phoenix Framework. I have installed jQuery through npm install npm i jquery ...
Phoenix Framework - jQuery connection Phoenix Framework - jQuery connection phoenix-framework jquery elixir $ Phoenix Framework phoenix_html console.log Sign Phoenix Framework - jQuery connection I have problem with jquery connection to my Project on the Phoenix Framework. I have installed jQuery through npm install I ...
[ -0.00811767578125, 0.033203125, 0.002349853515625, -0.005706787109375, 0.00390625, 0.0096435546875, -0.0123291015625, 0.0205078125, -0.01007080078125, -0.0439453125, -0.013916015625, -0.04541015625, -0.0026702880859375, 0.0172119140625, -0.0419921875, 0.01202392578125, 0.01416015625,...
[ 133720, 202220, 231129, 94878, 20, 53073, 33, 4084, 160328, 18244, 1647, 944, 1294, 15296, 38308, 3650, 7693, 130250, 4867, 48838, 765, 2967, 47, 27331, 20600, 8305, 25037, 39, 15190, 24927, 4027, 28175, 42548, 117538, 99, 98169, 170, 1681, ...
[ 0.275634765625, 0.2318115234375, 0.251708984375, 0.1873779296875, 0.01336669921875, 0.06927490234375, 0.10455322265625, 0.12445068359375, 0.1116943359375, 0.034942626953125, 0.1773681640625, 0.12237548828125, 0.12841796875, 0.053741455078125, 0.18408203125, 0.0673828125, 0.0790405273...
embed
49333632_c0
49333632
elixir
0
Title: Write a Mix task that runs after deps.get Problem title: Write a Mix task that runs after deps.get Tags: elixir, elixir-mix, build Problem: Write a Mix task that runs after deps.get Is there a way to hook into Elixir's Mix built in tasks to execute a task after another one has completed? I know you can do someth...
Write a Mix task that runs after deps.get Write a Mix task that runs after deps.get elixir elixir-mix build Write Mix deps.get Mix.Tasks.Other.Get Mix.Task Other Mix.Task.run other.get Write a Mix task that runs after deps.get Is there a way to hook into Elixir's Mix built in tasks to execute a task after another one h...
[ -0.005889892578125, 0.017578125, 0.00848388671875, 0.0177001953125, 0.009033203125, 0.0179443359375, -0.0198974609375, 0.013916015625, 0.0208740234375, -0.0103759765625, -0.0028533935546875, -0.0169677734375, -0.0196533203125, 0.01904296875, 0.00127410888671875, 0.02490234375, -0.013...
[ 601, 18781, 37286, 66211, 127877, 7103, 8, 6423, 3794, 15296, 38308, 62015, 45367, 9874, 9319, 126, 64511, 1042, 16428, 3789, 3917, 150522, 3934, 25318, 88303, 23, 71924, 15700, 1556, 140528, 21373, 3444, 11675, 7108, 17664, 179635, 3249, 137...
[ 0.054840087890625, 0.07568359375, 0.266357421875, 0.232666015625, 0.1051025390625, 0.1217041015625, 0.1883544921875, 0.1868896484375, 0.177978515625, 0.0548095703125, 0.1981201171875, 0.25244140625, 0.1563720703125, 0.1351318359375, 0.00201416015625, 0.039215087890625, 0.039672851562...
embed
62806543_c0
62806543
elixir
0
Title: Elixir callbacks to promises or async await Problem title: Elixir callbacks to promises or async await Tags: async-await, synchronous, promise, elixir Problem: Elixir callbacks to promises or async await I have a very long function in elixir that has a callback that looks like the following def outer_fn(param) d...
Elixir callbacks to promises or async await Elixir callbacks to promises or async await async-await synchronous promise elixir Elixir outer_fn doing_stuff very_long_sync_function short_fn Elixir callbacks to promises or async await I have a very long function in elixir that has a callback that looks like the following ...
[ -0.00909423828125, 0.011962890625, -0.00189971923828125, -0.01385498046875, 0.007415771484375, 0.002655029296875, 0.006866455078125, -0.0028839111328125, 0.0076904296875, -0.04296875, -0.01348876953125, -0.015625, -0.01263427734375, 0.0023040771484375, 0.009765625, -0.003265380859375, ...
[ 25318, 38308, 11782, 12620, 47, 103036, 7, 707, 10, 12654, 238, 634, 217, 7978, 200470, 15296, 1810, 56, 14783, 20594, 271, 21493, 4552, 10617, 137175, 16610, 4989, 32354, 33342, 1884, 25632, 29458, 30646, 10644, 84751, 7722, 456, 137656, 1...
[ 0.1466064453125, 0.26806640625, 0.161865234375, 0.2135009765625, 0.09393310546875, 0.26806640625, 0.1593017578125, 0.0484619140625, 0.0513916015625, 0.22216796875, 0.119873046875, 0.2078857421875, 0.193359375, 0.189453125, 0.198974609375, 0.1097412109375, 0.124267578125, 0.12207031...
embed
35725536_c0
35725536
elixir
0
Title: How to read config variable in Phoenix / Elixir? Problem title: How to read config variable in Phoenix / Elixir? Tags: elixir, phoenix-framework Problem: How to read config variable in Phoenix / Elixir? I'd like to set the title of my app in my/config/config.exs file: config :my, My.Endpoint, url: [host: "localh...
How to read config variable in Phoenix / Elixir? How to read config variable in Phoenix / Elixir? elixir phoenix-framework How Phoenix Elixir config.exs My.Endpoint Path.dirname __DIR__ secret_key_base App Title conn.title conn.secret_key_base How to read config variable in Phoenix / Elixir? I'd like to set the title o...
[ 0.0093994140625, 0.015869140625, -0.00872802734375, -0.0162353515625, 0.0155029296875, 0.00567626953125, -0.00885009765625, -0.00051116943359375, 0.012451171875, -0.04345703125, -0.0034027099609375, -0.01904296875, 0.0108642578125, -0.00021076202392578125, 0.01611328125, 0.001083374023...
[ 11249, 47, 12301, 153837, 77336, 23, 133720, 248, 25318, 38308, 15296, 53073, 33, 4084, 160328, 18244, 3355, 7, 2646, 152378, 38496, 108421, 11627, 123237, 23410, 19770, 37382, 5659, 48962, 158, 19, 5440, 164054, 1884, 5423, 44759, 4027, 759,...
[ 0.06671142578125, 0.062255859375, 0.212646484375, 0.251953125, 0.265380859375, 0.073974609375, 0.2469482421875, 0.03741455078125, 0.102294921875, 0.247802734375, 0.0654296875, 0.02960205078125, 0.05438232421875, 0.101806640625, 0.045440673828125, 0.0203857421875, 0.1240234375, 0.00...
embed
53620841_c2
53620841
elixir
2
_size, XXXX, ASDDataAnalytics-DEV, db_connection, db_connection.ex:383, DBConnection.start_link, fast_io_with_postgrex, fast_io_with_postgrex.ex:8, FastIoWithPostgrex.import, FastIoWithPostgrex, Documentation, Postgrex.start_link, File.stream, Stream.map, id_str, String.trim, String.split, Integer.parse, Stream.chunk_e...
_size, XXXX, ASDDataAnalytics-DEV, db_connection, db_connection.ex:383, DBConnection.start_link, fast_io_with_postgrex, fast_io_with_postgrex.ex:8, FastIoWithPostgrex.import, FastIoWithPostgrex, Documentation, Postgrex.start_link, File.stream, Stream.map, id_str, String.trim, String.split, Integer.parse, Stream.chunk_e...
[ 0.001708984375, -0.00628662109375, -0.000102996826171875, 0.0147705078125, 0.0038604736328125, 0.0003337860107421875, 0.006561279296875, -0.021728515625, 0.0019378662109375, -0.0101318359375, -0.002105712890625, -0.0264892578125, 0.022705078125, 0.004974365234375, 0.000316619873046875, ...
[ 101, 62539, 4, 205378, 62, 22916, 137989, 73026, 538, 41637, 9, 170623, 40041, 135457, 1830, 3355, 162982, 57976, 235603, 17137, 454, 10187, 4271, 846, 76228, 4594, 7134, 425, 1019, 25290, 568, 31, 194583, 49411, 60270, 43101, 2795, 42724, ...
[ 0.10223388671875, 0.2027587890625, 0.016845703125, 0.1689453125, 0.14208984375, 0.25146484375, 0.1331787109375, 0.1668701171875, 0.1602783203125, 0.0899658203125, 0.0443115234375, 0.25341796875, 0.142822265625, 0.180908203125, 0.028564453125, 0.115234375, 0.1802978515625, 0.1274414...
embed
38533313_c0
38533313
elixir
0
Title: Elixir: (ArithmeticError) bad argument in arithmetic expression Problem title: Elixir: (ArithmeticError) bad argument in arithmetic expression Tags: math, elixir Problem: Elixir: (ArithmeticError) bad argument in arithmetic expression I have a simple calculation: Enum.reduce(1..5, 0, &:math.pow/2) But I get this...
Elixir: (ArithmeticError) bad argument in arithmetic expression Elixir: (ArithmeticError) bad argument in arithmetic expression math elixir ArithmeticError Elixir Enum.reduce math.pow enum.ex:1478 range.ex:80 Enumerable.Range.reduce enum.ex:1477 Elixir: (ArithmeticError) bad argument in arithmetic expression I have a s...
[ -0.021728515625, -0.019287109375, -0.0224609375, -0.01068115234375, 0.025390625, 0.01531982421875, -0.0228271484375, 0.00946044921875, 0.00848388671875, -0.0123291015625, 0.0101318359375, -0.00982666015625, 0.005096435546875, 0.0191650390625, 0.0255126953125, -0.0166015625, -0.025024...
[ 25318, 38308, 12, 7614, 8962, 282, 9523, 18468, 31611, 6494, 10750, 23, 187, 125195, 48909, 15296, 1172, 357, 316, 107, 106357, 771, 434, 22, 3355, 22635, 19051, 37457, 4836, 2886, 1052, 51459, 14546, 8781, 74481, 4966, 903, 18499, 2071, ...
[ 0.163818359375, 0.3115234375, 0.039581298828125, 0.03411865234375, 0.1519775390625, 0.1109619140625, 0.089111328125, 0.1707763671875, 0.1807861328125, 0.1806640625, 0.277099609375, 0.03790283203125, 0.0262298583984375, 0.1898193359375, 0.13232421875, 0.131103515625, 0.004150390625, ...
embed
48656723_c0
48656723
elixir
0
Title: Mix.Shell.cmd error when upgraded to elixir 1.6.1 Problem title: Mix.Shell.cmd error when upgraded to elixir 1.6.1 Tags: elixir, elixir-mix Problem: Mix.Shell.cmd error when upgraded to elixir 1.6.1 My code was working fine on elixir 1.5.2 and then I upgraded to elixir 1.6.1 . It gave me Mix.Shell.cmd/2 is undef...
Mix.Shell.cmd error when upgraded to elixir 1.6.1 Mix.Shell.cmd error when upgraded to elixir 1.6.1 elixir elixir-mix Mix.Shell.cmd List.first apiv1docs.json IO.puts Removed Mix.Shell.cmd error when upgraded to elixir 1.6.1 My code was working fine on elixir 1.5.2 and then I upgraded to elixir 1.6.1 . It gave me Mix.Sh...
[ -0.00823974609375, 0.0169677734375, 0.01422119140625, 0.02685546875, 0.01092529296875, 0.0106201171875, -0.01202392578125, -0.00112152099609375, -0.005615234375, -0.01556396484375, -0.00482177734375, 0.0059814453125, -0.004241943359375, 0.01080322265625, 0.0240478515625, 0.009704589843...
[ 37286, 294, 79544, 3931, 71, 18499, 116086, 47, 15296, 38308, 615, 173245, 62015, 32036, 1747, 4371, 29713, 1681, 17780, 7077, 181139, 5, 18151, 20697, 5885, 158296, 12477, 9232, 5983, 707, 14375, 1827, 18113, 4358, 77947 ]
[ 0.29541015625, 0.0838623046875, 0.252685546875, 0.2198486328125, 0.15478515625, 0.171630859375, 0.1632080078125, 0.0201568603515625, 0.10009765625, 0.223388671875, 0.041229248046875, 0.228271484375, 0.2607421875, 0.045074462890625, 0.010650634765625, 0.09326171875, 0.046661376953125,...
embed
59868259_c1
59868259
elixir
1
(birth_year) #gender select_gender = find_element(:css, "#u_0_s > span:nth-child(2)") click(select_gender) sign_up_button = find_element(:name, "websubmit") click(sign_up_button) search = find_element(:id, "#reg_error_inner") # found = element_displayed?("#reg_error_inner") IO.puts(search) # assert found == true # :tim...
(birth_year) #gender select_gender = find_element(:css, "#u_0_s > span:nth-child(2)") click(select_gender) sign_up_button = find_element(:name, "websubmit") click(sign_up_button) search = find_element(:id, "#reg_error_inner") # found = element_displayed?("#reg_error_inner") IO.puts(search) # assert found == true # :tim...
[ 0.009521484375, 0.029052734375, -0.014892578125, -0.01226806640625, -0.01300048828125, 0.036865234375, -0.0084228515625, -0.004730224609375, 0.0003604888916015625, -0.0301513671875, 0.01141357421875, -0.021484375, -0.00262451171875, -0.01007080078125, 0.0184326171875, -0.00170135498046...
[ 15, 5720, 927, 46799, 16, 468, 23200, 42, 36849, 2203, 7413, 62766, 4439, 34, 2389, 27734, 19, 9, 206, 38472, 40970, 18158, 100184, 24092, 2037, 8789, 1507, 11627, 14051, 22144, 4007, 31304, 33938, 532, 10901, 188800, 73, 1679, 14037, 128...
[ 0.036163330078125, 0.1673583984375, 0.176025390625, 0.199951171875, 0.0908203125, 0.058258056640625, 0.2259521484375, 0.159912109375, 0.1964111328125, 0.080322265625, 0.1695556640625, 0.2318115234375, 0.169921875, 0.0577392578125, 0.0926513671875, 0.179443359375, 0.142578125, 0.010...
embed
52023113_c0
52023113
elixir
0
Title: How to convert Decimal so that it becomes integer? Problem title: How to convert Decimal so that it becomes integer? Tags: elixir Problem: How to convert Decimal so that it becomes integer? I'm using the library Decimal. If I have a float Decimal: pry(4)> a1 #Decimal<179.4> how can I convert to Decimal Integer o...
How to convert Decimal so that it becomes integer? How to convert Decimal so that it becomes integer? elixir How Decimal Decimal.round Decimal.set_context Decimal.Context Decimal.get_context How to convert Decimal so that it becomes integer? I'm using the library Decimal. If I have a float Decimal: how can I convert to...
[ -0.0341796875, -0.0052490234375, 0.00164794921875, 0.005584716796875, 0.006591796875, 0.0022735595703125, -0.0133056640625, -0.0125732421875, 0.008544921875, -0.004638671875, -0.0166015625, 0.026611328125, -0.0050048828125, 0.046630859375, 0.02099609375, -0.0283203125, -0.00659179687...
[ 11249, 47, 96760, 49132, 2749, 221, 450, 24209, 7, 892, 1505, 15296, 38308, 67688, 3509, 22829, 3794, 2271, 442, 17368, 35773, 1294, 21917, 257, 3642, 831, 44401, 707, 25318, 4527, 68807, 4488, 3444, 19048, 55076, 1257, 7565, 64726, 8719, ...
[ 0.09271240234375, 0.0794677734375, 0.1920166015625, 0.225341796875, 0.2427978515625, 0.103515625, 0.05841064453125, 0.1171875, 0.0472412109375, 0.15185546875, 0.21923828125, 0.046051025390625, 0.2388916015625, 0.16259765625, 0.0919189453125, 0.1422119140625, 0.0247955322265625, 0.0...
embed
65204586_c1
65204586
elixir
1
both_trackers(str1, str2) do t1 = make_tracker(str1) t2 = make_tracker(str2) {t1, t2} end def check_trackers({t1, t2}) do Map.keys(t1) |> Enum.reduce_while(true, fn x, acc -> if t1[x] == t2[x], do: {:cont, acc}, else: {:halt, false} end) end def make_tracker(str) do tracker = String.split(str, "", trim: true) |> Enum....
both_trackers(str1, str2) do t1 = make_tracker(str1) t2 = make_tracker(str2) {t1, t2} end def check_trackers({t1, t2}) do Map.keys(t1) |> Enum.reduce_while(true, fn x, acc -> if t1[x] == t2[x], do: {:cont, acc}, else: {:halt, false} end) end def make_tracker(str) do tracker = String.split(str, "", trim: true) |> Enum....
[ -0.006378173828125, 0.007354736328125, -0.00823974609375, -0.00787353515625, 0.002532958984375, 0.00982666015625, 0.004150390625, -0.0079345703125, 0.0030975341796875, -0.01324462890625, 0.01031494140625, 0.0072021484375, 0.0228271484375, 0.0341796875, -0.000324249267578125, -0.0037231...
[ 15044, 125728, 1314, 9297, 418, 4, 7704, 10461, 54, 808, 2203, 3249, 56, 17727, 304, 18, 3564, 8, 420, 12765, 42719, 19770, 357, 316, 107, 106357, 204610, 9774, 14783, 1022, 50015, 2174, 425, 2271, 23766, 98320, 28560, 23351, 214, 4353, ...
[ 0.2154541015625, 0.276611328125, 0.22607421875, 0.1739501953125, 0.0867919921875, 0.0118408203125, 0.16650390625, 0.16650390625, 0.031219482421875, 0.06988525390625, 0.0240936279296875, 0.0909423828125, 0.18505859375, 0.06005859375, 0.119873046875, 0.0258026123046875, 0.0512390136718...
embed
37968208_c0
37968208
elixir
0
Title: How to call :ets.fun2ms in elixir? Problem title: How to call :ets.fun2ms in elixir? Tags: ets, elixir Problem: How to call :ets.fun2ms in elixir? Is it possible? if so, how? The following code is executed in an IEX. However, the compiled code generates a runtime error. :ets.fun2ms(fn({a,b}) -> a and b end) The ...
How to call :ets.fun2ms in elixir? How to call :ets.fun2ms in elixir? ets elixir How ets.fun2ms parse_transform EXIT ets.erl:554 ets_lookup_test.exs:27 How to call :ets.fun2ms in elixir? Is it possible? if so, how? The following code is executed in an IEX. However, the compiled code generates a runtime error. The error...
[ -0.005096435546875, 0.004058837890625, -0.01104736328125, -0.0025787353515625, 0.0206298828125, 0.0035858154296875, -0.01519775390625, -0.00836181640625, -0.00055694580078125, -0.055419921875, 0.01202392578125, 0.022705078125, 0.0079345703125, 0.007293701171875, 0.01470947265625, -0.01...
[ 11249, 47, 11782, 7831, 16498, 304, 4432, 23, 15296, 38308, 82, 7, 366, 184, 215175, 29426, 6371, 141, 163670, 64747, 2037, 6954, 3355, 27592, 5, 2071, 7722, 3642, 25632, 18151, 71924, 87, 26939, 5974, 139392, 11675, 6032, 18499, 1884, 34...
[ 0.06524658203125, 0.028594970703125, 0.201904296875, 0.226806640625, 0.23046875, 0.1796875, 0.2200927734375, 0.0924072265625, 0.110107421875, 0.239990234375, 0.169189453125, 0.1424560546875, 0.1072998046875, 0.07568359375, 0.2349853515625, 0.111328125, 0.052978515625, 0.00256347656...
embed
44725657_c1
44725657
elixir
1
restart phoenix server, boom, everything starts working again. Obviously this isn't a scalable solution, but I'm struggling to diagnose what's going on. Any help would be sweet. Thanks Code signals: UndefinedFunctionError, Elixir, Phoenix, erl_posix_msg.message, File, Target, stdlib-3.2, erl_posix_msg.beam, get_file, ...
restart phoenix server, boom, everything starts working again. Obviously this isn't a scalable solution, but I'm struggling to diagnose what's going on. Any help would be sweet. Thanks Code signals: UndefinedFunctionError, Elixir, Phoenix, erl_posix_msg.message, File, Target, stdlib-3.2, erl_posix_msg.beam, get_file, ...
[ 0.006805419921875, 0.01190185546875, 0.00072479248046875, 0.004791259765625, -0.0050048828125, 0.0220947265625, -0.024658203125, -0.00921630859375, -0.005462646484375, -0.02294921875, 0.0030517578125, -0.01458740234375, 0.0234375, 0.019287109375, 0.005340576171875, 0.00604248046875, ...
[ 456, 17137, 53073, 33, 4084, 10723, 77227, 26818, 4034, 7, 20697, 13438, 117906, 2886, 29806, 237875, 47, 99219, 2367, 7730, 98, 4358, 53673, 28864, 26073, 79912, 5983, 297, 97249, 18468, 31611, 25318, 38308, 133720, 72, 141, 67890, 425, 44...
[ 0.120361328125, 0.21875, 0.1094970703125, 0.12158203125, 0.1793212890625, 0.207763671875, 0.18115234375, 0.1673583984375, 0.140380859375, 0.0576171875, 0.16064453125, 0.17529296875, 0.0909423828125, 0.02655029296875, 0.0703125, 0.12451171875, 0.009765625, 0.158203125, 0.019668579...
embed
55946337_c1
55946337
elixir
1
.info/ticker") is work success! Info: hackney: 1.15.1 httpoison: 1.5.0 phoenix: 1.4.3 What am I doing wrong? What is right way make http request in mix task? Code signals: ArgumentError, HTTPoison, Phoenix, fetch.btc, Mix.Tasks.Fetch.Btc, Mix.Task, _args, HTTPoison.get, blockchain.info, IO.inspect, ets.lookup_element, ...
.info/ticker") is work success! Info: hackney: 1.15.1 httpoison: 1.5.0 phoenix: 1.4.3 What am I doing wrong? What is right way make http request in mix task? Code signals: ArgumentError, HTTPoison, Phoenix, fetch.btc, Mix.Tasks.Fetch.Btc, Mix.Task, _args, HTTPoison.get, blockchain.info, IO.inspect, ets.lookup_element, ...
[ -0.01409912109375, 0.00494384765625, 0.0240478515625, 0.0169677734375, 0.004486083984375, 0.001556396484375, -0.00946044921875, 0.005126953125, 0.0022125244140625, -0.0283203125, 0.0157470703125, -0.0096435546875, 0.00151824951171875, -0.006134033203125, 0.0028533935546875, 0.001281738...
[ 5, 7319, 118, 11050, 18939, 83, 4488, 36272, 38, 14048, 85526, 10186, 38245, 156627, 1621, 31, 40514, 615, 187461, 53073, 33, 4084, 158406, 444, 20594, 44691, 7108, 3917, 3249, 50336, 23, 17664, 66211, 28864, 26073, 112140, 18468, 31611, 13...
[ 0.0258331298828125, 0.2193603515625, 0.1590576171875, 0.2471923828125, 0.08953857421875, 0.0321044921875, 0.11328125, 0.1676025390625, 0.0145263671875, 0.05340576171875, 0.2010498046875, 0.23095703125, 0.08721923828125, 0.14990234375, 0.226318359375, 0.056549072265625, 0.221435546875...
embed
54580768_c1
54580768
elixir
1
paController.create clause to process request. This typically happens when there is a parameter mismatch but may also happen when any of the other action arguments do not match. The request parameters are: %{"_csrf_token" => "BDgWfgElRhRdSgoFBTo0BF4+P1YXNgAAtANQOf4Fi+GIlpej+Mt1eg==", "_utf8" => "✓", "opa" => %{"naziv" ...
paController.create clause to process request. This typically happens when there is a parameter mismatch but may also happen when any of the other action arguments do not match. The request parameters are: %{"_csrf_token" => "BDgWfgElRhRdSgoFBTo0BF4+P1YXNgAAtANQOf4Fi+GIlpej+Mt1eg==", "_utf8" => "✓", "opa" => %{"naziv" ...
[ 0.00008106231689453125, 0.011962890625, -0.00933837890625, -0.01251220703125, -0.0069580078125, -0.0086669921875, 0.0111083984375, -0.03955078125, 0.010009765625, 0.0118408203125, -0.0145263671875, -0.026123046875, 0.014404296875, -0.0014495849609375, 0.003143310546875, -0.000854492187...
[ 249, 175904, 603, 5, 7612, 2182, 70731, 13, 47, 9433, 50336, 205794, 96276, 3229, 171859, 1239, 98753, 53383, 22631, 10750, 959, 14858, 7, 621, 1745, 4439, 22206, 6448, 33, 82350, 1328, 26775, 1334, 1019, 245212, 31401, 76, 35486, 433, 31...
[ 0.1961669921875, 0.27392578125, 0.1634521484375, 0.04913330078125, 0.1885986328125, 0.1104736328125, 0.255615234375, 0.167236328125, 0.038360595703125, 0.165771484375, 0.264892578125, 0.0692138671875, 0.07025146484375, 0.013031005859375, 0.2264404296875, 0.0657958984375, 0.2290039062...
embed
44548972_c0
44548972
elixir
0
Title: Debugging Elixir phoenix.server Problem title: Debugging Elixir phoenix.server Tags: elixir-mix, elixir, phoenix-framework Problem: Debugging Elixir phoenix.server What I am looking for is some ideas on how to debug mix phoenix.server When I run the command there is no output and it hangs (doesn't finish and sho...
Debugging Elixir phoenix.server Debugging Elixir phoenix.server elixir-mix elixir phoenix-framework Debugging Elixir phoenix.server IEx Debugging Elixir phoenix.server What I am looking for is some ideas on how to debug mix phoenix.server When I run the command there is no output and it hangs (doesn't finish and show t...
[ -0.00007581710815429688, 0.004150390625, 0.0108642578125, 0.03125, 0.0004177093505859375, 0.01202392578125, -0.018310546875, 0.012939453125, -0.0012054443359375, -0.0301513671875, 0.0017242431640625, -0.01239013671875, 0.03857421875, 0.03076171875, 0.00946044921875, 0.02392578125, -0...
[ 262, 978, 36659, 25318, 38308, 53073, 33, 4084, 39642, 15296, 62015, 160328, 87, 19279, 25647, 8, 85779, 17664, 11675, 75101, 110, 140992, 10756, 18, 67229, 7639, 1827, 71, 105876, 37842, 9803, 1257, 56002, 51646, 11737, 156377, 57823, 183037...
[ 0.123046875, 0.1920166015625, 0.0545654296875, 0.09228515625, 0.2296142578125, 0.0875244140625, 0.1187744140625, 0.161376953125, 0.1953125, 0.089111328125, 0.1826171875, 0.06396484375, 0.00738525390625, 0.090087890625, 0.03314208984375, 0.160400390625, 0.257080078125, 0.23547363281...
embed
70806232_c1
70806232
elixir
1
the code inside IEx, it works as expected: /opt/app # iex -S mix Interactive Elixir (1.12.3) - press Ctrl+C to exit (type h() ENTER for help) iex(1)> Mix.Tasks.MyTask.run() 1 I know it has something to do with some initialization that is not done in mix tasks, but I can´t figure out what it is. Code signals: ArgumentE...
the code inside IEx, it works as expected: /opt/app # iex -S mix Interactive Elixir (1.12.3) - press Ctrl+C to exit (type h() ENTER for help) iex(1)> Mix.Tasks.MyTask.run() 1 I know it has something to do with some initialization that is not done in mix tasks, but I can´t figure out what it is. Code signals: ArgumentE...
[ 0.000164031982421875, 0.0120849609375, 0.006072998046875, 0.0244140625, 0.00151824951171875, 0.01708984375, 0.0064697265625, 0.009033203125, -0.0027008056640625, -0.033935546875, 0.008056640625, 0.021240234375, -0.00176239013671875, 0.03955078125, 0.0224609375, 0.01116943359375, -0.0...
[ 70, 18151, 46132, 87, 19279, 442, 43240, 237, 84751, 2146, 18, 9007, 17, 3355, 294, 17664, 5337, 71232, 25318, 38308, 15654, 21320, 24234, 68847, 1328, 441, 47, 82230, 50986, 1096, 116563, 4358, 27750, 37286, 9874, 1042, 31852, 16428, 106, ...
[ 0.01080322265625, 0.24267578125, 0.153564453125, 0.164794921875, 0.263427734375, 0.067626953125, 0.1297607421875, 0.051025390625, 0.1204833984375, 0.1148681640625, 0.010345458984375, 0.13720703125, 0.1419677734375, 0.25439453125, 0.031982421875, 0.284423828125, 0.1297607421875, 0.1...
embed
77021776_c1
77021776
elixir
1
are selected (if all forms have a value, then the button should be enabled), however I am unaware of any pattern to do this in Phoenix. I am also not convinced I am using assigns properly. Questions How can I enable/disable a button in Phoenix, depending on state? Am I using assigns_to_attributes and assign correctly ...
are selected (if all forms have a value, then the button should be enabled), however I am unaware of any pattern to do this in Phoenix. I am also not convinced I am using assigns properly. Questions How can I enable/disable a button in Phoenix, depending on state? Am I using assigns_to_attributes and assign correctly ...
[ -0.0194091796875, -0.004150390625, -0.0299072265625, -0.0264892578125, -0.0062255859375, 0.024658203125, 0.0038604736328125, 0.0024261474609375, 0.020263671875, -0.029541015625, 0.002197265625, 0.009521484375, 0.039306640625, 0.053955078125, 0.0033721923828125, -0.0062255859375, 0.00...
[ 621, 133291, 756, 3173, 34292, 77679, 5608, 225081, 15876, 103510, 54, 903, 23, 133720, 122991, 17368, 95486, 7, 155965, 68185, 11249, 831, 22, 2886, 64, 3827, 10, 96819, 98, 11341, 188, 257, 191145, 26785, 121413, 1106, 425, 29713, 26822, ...
[ 0.094482421875, 0.20361328125, 0.039459228515625, 0.177734375, 0.10400390625, 0.24853515625, 0.022674560546875, 0.189208984375, 0.040283203125, 0.120361328125, 0.024688720703125, 0.0050048828125, 0.0804443359375, 0.266845703125, 0.046630859375, 0.06866455078125, 0.2149658203125, 0....
embed
40690197_c0
40690197
elixir
0
Title: Does Maru support only path params and not query params? Problem title: Does Maru support only path params and not query params? Tags: elixir, maru, rest Problem: Does Maru support only path params and not query params? I was getting me feet wet with elixir and decided to use Maru as the RESTful framework. I wen...
Does Maru support only path params and not query params? Does Maru support only path params and not query params? elixir maru rest Does Maru localhost:8080 variable1 value1 variable2 value2 Does Maru support only path params and not query params? I was getting me feet wet with elixir and decided to use Maru as the REST...
[ -0.003204345703125, 0.015625, -0.0023040771484375, -0.00946044921875, -0.009033203125, 0.0289306640625, 0.0074462890625, -0.015380859375, -0.001922607421875, -0.0107421875, 0.00186920166015625, -0.049560546875, 0.01434326171875, 0.00933837890625, -0.00146484375, 0.0003509521484375, -...
[ 101790, 1784, 34, 8060, 4734, 60875, 121, 4432, 41, 1294, 959, 15296, 38308, 1108, 10588, 4000, 40294, 4836, 77336, 418, 34292, 304, 74261, 36311, 627, 21828, 7844, 170846, 209806, 27781, 366, 184, 3444, 25002, 27623, 22288, 136, 41018 ]
[ 0.0159149169921875, 0.1568603515625, 0.259521484375, 0.1962890625, 0.0716552734375, 0.18603515625, 0.149169921875, 0.12744140625, 0.080078125, 0.090576171875, 0.051239013671875, 0.0467529296875, 0.1890869140625, 0.135009765625, 0.18212890625, 0.08660888671875, 0.13427734375, 0.2028...
embed
54752013_c1
54752013
elixir
1
control this database. Hahaha (evil laugh)" | However, the insert function does not appear to actually take the data to be stored as an argument. My initial thought of what happened with ecto adapters was that when a user calls one of the repo functions it called the corresponding function in the Ecto.Adapters.Postgre...
control this database. Hahaha (evil laugh)" | However, the insert function does not appear to actually take the data to be stored as an argument. My initial thought of what happened with ecto adapters was that when a user calls one of the repo functions it called the corresponding function in the Ecto.Adapters.Postgre...
[ -0.0189208984375, -0.0050048828125, -0.00830078125, 0.0230712890625, 0.0128173828125, 0.0216064453125, -0.007568359375, -0.0322265625, -0.000324249267578125, -0.0257568359375, -0.007293701171875, -0.017578125, -0.01025390625, -0.0089111328125, -0.00087738037109375, 0.0220947265625, -...
[ 6226, 903, 63399, 108583, 5115, 94518, 33306, 183540, 32354, 14602, 959, 108975, 20653, 5646, 2053, 4343, 237, 10750, 61475, 17569, 73659, 678, 60751, 123666, 7, 38937, 11782, 93392, 35839, 42518, 241, 44150, 22409, 2631, 23962, 49411, 17562, ...
[ 0.2164306640625, 0.062744140625, 0.200927734375, 0.12353515625, 0.1204833984375, 0.08441162109375, 0.03594970703125, 0.27392578125, 0.18896484375, 0.013214111328125, 0.096923828125, 0.127685546875, 0.063232421875, 0.0736083984375, 0.142578125, 0.164306640625, 0.0169219970703125, 0....
embed
46349691_c0
46349691
elixir
0
Title: How to setup Elixir properlty to use the new IEx breakpoints with Elixir 1.5? Problem title: How to setup Elixir properlty to use the new IEx breakpoints with Elixir 1.5? Tags: elixir Problem: How to setup Elixir properlty to use the new IEx breakpoints with Elixir 1.5? I'm using Erlang 20 with Elixir 1.5.0, and...
How to setup Elixir properlty to use the new IEx breakpoints with Elixir 1.5? How to setup Elixir properlty to use the new IEx breakpoints with Elixir 1.5? elixir RuntimeError How Elixir IEx URI.decode_query URI debug_info iex.ex:647 IEx.break How to setup Elixir properlty to use the new IEx breakpoints with Elixir 1.5...
[ -0.01446533203125, 0.0024261474609375, -0.007293701171875, 0.004669189453125, -0.016357421875, 0.0093994140625, -0.005157470703125, 0.007080078125, 0.007293701171875, -0.02099609375, -0.00799560546875, -0.0250244140625, 0.00677490234375, 0.00970458984375, 0.01348876953125, 0.0108032226...
[ 11249, 47, 169581, 25318, 38308, 27798, 1277, 53, 4527, 3525, 87, 19279, 36356, 38496, 678, 22410, 15296, 28398, 6032, 18468, 31611, 6, 46492, 112, 40899, 944, 8, 85779, 7319, 17, 3355, 195807, 70751, 17368, 1004, 3066, 387, 615, 187461, ...
[ 0.06280517578125, 0.027801513671875, 0.2259521484375, 0.1563720703125, 0.30859375, 0.126220703125, 0.103515625, 0.1085205078125, 0.0999755859375, 0.059234619140625, 0.1307373046875, 0.25537109375, 0.19140625, 0.1798095703125, 0.124755859375, 0.213134765625, 0.1102294921875, 0.05859...
embed
53092817_c0
53092817
elixir
0
Title: Ecto.Schema differences between nilify_all, nothing, and delete_all? Problem title: Ecto.Schema differences between nilify_all, nothing, and delete_all? Tags: ecto, elixir, phoenix-framework, schema Problem: Ecto.Schema differences between nilify_all, nothing, and delete_all? I am defining a schema for my user a...
Ecto.Schema differences between nilify_all, nothing, and delete_all? Ecto.Schema differences between nilify_all, nothing, and delete_all? ecto elixir phoenix-framework schema Ecto.Schema nilify_all delete_all has_many belongs_to on_delete Ecto.Schema differences between nilify_all, nothing, and delete_all? I am definin...
[ 0.01177978515625, 0.0020904541015625, 0.003936767578125, 0.003204345703125, -0.01385498046875, 0.00396728515625, 0.02783203125, -0.0128173828125, 0.00341796875, 0.0135498046875, 0.004791259765625, 0.005859375, 0.004669189453125, 0.044189453125, -0.00909423828125, 0.0147705078125, -0....
[ 241, 44150, 5, 25452, 11883, 60212, 7, 17721, 98944, 18929, 5584, 33720, 136, 154109, 60751, 15296, 38308, 53073, 33, 4084, 160328, 18244, 61903, 1556, 669, 53, 10617, 188, 98, 8520, 454, 13204, 38937, 31486, 115774, 133720, 4027, 2777, 133...
[ 0.0635986328125, 0.260009765625, 0.02911376953125, 0.152099609375, 0.1717529296875, 0.2108154296875, 0.05133056640625, 0.053955078125, 0.192138671875, 0.253173828125, 0.229736328125, 0.225341796875, 0.010284423828125, 0.27197265625, 0.1788330078125, 0.019287109375, 0.13525390625, 0...
embed
21277924_c0
21277924
elixir
0
Title: Elixir Dynamo : Keep Data after redirect Problem title: Elixir Dynamo : Keep Data after redirect Tags: cowboy, elixir, routes Problem: Elixir Dynamo : Keep Data after redirect Is there a way to handle data transfert from a router request to another route ? Lets say, I'm handling a request, like a create, or a de...
Elixir Dynamo : Keep Data after redirect Elixir Dynamo : Keep Data after redirect cowboy elixir routes Elixir Dynamo Keep Data Elixir Dynamo : Keep Data after redirect Is there a way to handle data transfert from a router request to another route ? Lets say, I'm handling a request, like a create, or a delete, or someth...
[ 0.01055908203125, 0.0186767578125, -0.00396728515625, -0.00299072265625, 0.005462646484375, -0.031982421875, -0.002716064453125, 0.005126953125, 0.0079345703125, -0.0341796875, -0.00677490234375, -0.0277099609375, -0.006256103515625, -0.00148773193359375, -0.0020904541015625, 0.0238037...
[ 25318, 38308, 73327, 432, 83041, 11809, 7103, 456, 80581, 434, 30885, 15296, 36439, 2071, 10, 3917, 47, 34831, 2053, 12302, 18, 1295, 122188, 50336, 15700, 45064, 28282, 707, 154109, 5062, 61261, 61972, 16912, 1884, 25379, 226534, 26008, 1325...
[ 0.08258056640625, 0.2010498046875, 0.1558837890625, 0.203857421875, 0.2034912109375, 0.1585693359375, 0.1219482421875, 0.10693359375, 0.274658203125, 0.04901123046875, 0.15234375, 0.039794921875, 0.215576171875, 0.00030517578125, 0.0214996337890625, 0.0872802734375, 0.092041015625, ...
embed
53445520_c2
53445520
elixir
2
l:249, proc_lib.init_p_do_apply, Last, State, Client, gen.erl:169, gen.do_call, gen_server.ex:921, MyApplication.Supervisor, MyApplication.Management, start_link, DynamicSupervisor.start_link, __MODULE__, DynamicSupervisor.init, start_project_worker, MyApplication.ProjectWorker, DynamicSupervisor.start_child, start_all...
l:249, proc_lib.init_p_do_apply, Last, State, Client, gen.erl:169, gen.do_call, gen_server.ex:921, MyApplication.Supervisor, MyApplication.Management, start_link, DynamicSupervisor.start_link, __MODULE__, DynamicSupervisor.init, start_project_worker, MyApplication.ProjectWorker, DynamicSupervisor.start_child, start_all...
[ -0.031494140625, 0.021240234375, 0.011474609375, 0.00958251953125, -0.0135498046875, -0.006378173828125, -0.0027313232421875, 0.000385284423828125, 0.0177001953125, -0.0057373046875, 0.015380859375, 0.003387451171875, 0.003631591796875, 0.0211181640625, 0.0181884765625, -0.007934570312...
[ 96, 25732, 1126, 4, 10402, 5612, 73, 217, 254, 246, 9007, 538, 21672, 22836, 91732, 9226, 56, 141, 12, 141492, 85763, 39642, 3355, 3117, 2646, 47677, 182867, 5, 73903, 51858, 228555, 4034, 10187, 73327, 21068, 17137, 5953, 12013, 397, 129...
[ 0.155517578125, 0.1324462890625, 0.216552734375, 0.037353515625, 0.197265625, 0.2093505859375, 0.1029052734375, 0.153564453125, 0.1099853515625, 0.1370849609375, 0.1759033203125, 0.1644287109375, 0.1724853515625, 0.1693115234375, 0.2080078125, 0.181396484375, 0.06317138671875, 0.11...
embed
37511918_c0
37511918
elixir
0
Title: Elixir high order function Problem title: Elixir high order function Tags: elixir Problem: Elixir high order function I wrote the following simple model: defmodule Simple do def add(a, b) do a + b end som = fn(x, y) -> x + y end def oper_array(fct, arr, init) do Enum.scan(arr, init, fct.()) end end But Simple.op...
Elixir high order function Elixir high order function elixir UndefinedFunctionError Elixir Simple oper_array Enum.scan Simple.oper_array Simple.som Simple.add Elixir high order function I wrote the following simple model: But always give Same result if I write the function 'oper_array' like that: How should I write the...
[ 0.004364013671875, -0.021728515625, -0.0157470703125, 0.005218505859375, 0.0113525390625, 0.003875732421875, 0.0013580322265625, -0.007476806640625, 0.0023651123046875, -0.05224609375, 0.0206298828125, 0.00469970703125, -0.01611328125, 0.00579833984375, 0.01275634765625, -0.02856445312...
[ 25318, 38308, 11192, 12989, 32354, 15296, 79912, 5983, 97249, 18468, 60552, 17327, 19305, 357, 316, 4398, 42227, 5084, 4028, 54397, 8781, 3299, 11343, 99908, 16750, 33022, 53 ]
[ 0.080810546875, 0.199462890625, 0.06982421875, 0.1717529296875, 0.1707763671875, 0.049560546875, 0.01763916015625, 0.1148681640625, 0.0987548828125, 0.03802490234375, 0.1263427734375, 0.1683349609375, 0.1551513671875, 0.0007429122924804688, 0.1231689453125, 0.0848388671875, 0.1937255...
embed
37004230_c1
37004230
elixir
1
: post, changeset: changeset) end [...] The next problem is that I have no idea how to render the form. The following code doesn't work: web/templates/post/show.html.eex <h2>Show post</h2> <ul> <li> <strong>Content:</strong> <%= @post.content %> </li> </ul> <%= render "comment/form.html", changeset: @changeset, action:...
: post, changeset: changeset) end [...] The next problem is that I have no idea how to render the form. The following code doesn't work: web/templates/post/show.html.eex <h2>Show post</h2> <ul> <li> <strong>Content:</strong> <%= @post.content %> </li> </ul> <%= render "comment/form.html", changeset: @changeset, action:...
[ 0.00138092041015625, 0.01116943359375, -0.0115966796875, -0.023681640625, 0.0113525390625, -0.00714111328125, 0.0078125, -0.01080322265625, -0.00299072265625, -0.025390625, 0.000492095947265625, -0.00140380859375, 0.0128173828125, 0.0150146484375, -0.00921630859375, 0.006072998046875, ...
[ 1305, 65572, 126, 3564, 11737, 2967, 110, 6528, 3642, 89159, 3173, 25632, 18151, 22027, 18, 4488, 1467, 2982, 92558, 4594, 31374, 7693, 13, 3355, 304, 168660, 25352, 69246, 150, 277, 674, 64, 5037, 1374, 152028, 3509, 22631, 6868, 128405, ...
[ 0.1632080078125, 0.2078857421875, 0.21630859375, 0.1226806640625, 0.037353515625, 0.111328125, 0.0161285400390625, 0.052154541015625, 0.020904541015625, 0.2076416015625, 0.235107421875, 0.0721435546875, 0.204345703125, 0.0198974609375, 0.0546875, 0.145263671875, 0.08880615234375, 0...
embed
43633648_c0
43633648
elixir
0
Title: Using the capture operator in an umbrella app - elixir Problem title: Using the capture operator in an umbrella app - elixir Tags: elixir Problem: Using the capture operator in an umbrella app - elixir I have an umbrella app, which in one app(ex: App1) i am sending a function as an argument to a different functi...
Using the capture operator in an umbrella app - elixir Using the capture operator in an umbrella app - elixir elixir Using App1.Bar bar_bar App2.Foo foo_foo App1.Bar.bar_bar Io.puts Project.get.project App1 App2 Using the capture operator in an umbrella app - elixir I have an umbrella app, which in one app(ex: App1) i ...
[ 0.0115966796875, 0.005401611328125, -0.0216064453125, 0.0306396484375, 0.01263427734375, 0.00543212890625, 0.0147705078125, -0.00064849853515625, 0.009033203125, -0.004425048828125, 0.0087890625, -0.02197265625, 0.0157470703125, 0.021728515625, 0.006744384765625, -0.007568359375, -0....
[ 345, 141621, 39933, 286, 4134, 1165, 4027, 15296, 38308, 23, 5659, 418, 25267, 1909, 1299, 5442, 27591, 5775, 3584, 28136, 7077, 27331, 3794, 95322, 304, 1632, 17727, 135834, 32354, 10750, 12921, 105866, 15700, 10461, 1884, 903, 9655, 14602, ...
[ 0.05560302734375, 0.234130859375, 0.2325439453125, 0.06695556640625, 0.1624755859375, 0.14892578125, 0.2110595703125, 0.064208984375, 0.1964111328125, 0.07080078125, 0.20263671875, 0.1378173828125, 0.119873046875, 0.109130859375, 0.11474609375, 0.067626953125, 0.038421630859375, 0....
embed
69470921_c0
69470921
elixir
0
Title: In Elixir, is there a shorthand way to access tuple items inside shorthand anonymous function notation? Problem title: In Elixir, is there a shorthand way to access tuple items inside shorthand anonymous function notation? Tags: elixir Problem: In Elixir, is there a shorthand way to access tuple items inside sho...
In Elixir, is there a shorthand way to access tuple items inside shorthand anonymous function notation? In Elixir, is there a shorthand way to access tuple items inside shorthand anonymous function notation? elixir Elixir Enum.sort some_map _v1 _v2 In Elixir, is there a shorthand way to access tuple items inside shorth...
[ 0.01226806640625, 0.00162506103515625, 0.0126953125, -0.03125, 0.01214599609375, -0.020751953125, -0.00031280517578125, -0.006439208984375, -0.00628662109375, -0.005645751953125, 0.017822265625, 0.0380859375, 0.00482177734375, 0.01312255859375, 0.0157470703125, -0.003692626953125, -0...
[ 25318, 38308, 16610, 12336, 3917, 17203, 370, 8705, 55769, 46132, 52184, 10821, 32354, 110, 22062, 360, 47, 15296, 357, 316, 62351, 62346, 334, 304, 2684, 39210, 106117, 190647, 103033, 4393, 11853, 152653, 11, 903, 26267, 300, 2480, 53, 39...
[ 0.132080078125, 0.268310546875, 0.140869140625, 0.163818359375, 0.059906005859375, 0.1578369140625, 0.1126708984375, 0.2379150390625, 0.17822265625, 0.10296630859375, 0.1766357421875, 0.078125, 0.15234375, 0.1356201171875, 0.0955810546875, 0.012176513671875, 0.010955810546875, 0.06...
embed
46385207_c0
46385207
elixir
0
Title: closest thing to arrays in Elixir Problem title: closest thing to arrays in Elixir Tags: tuples, elixir, arrays Problem: closest thing to arrays in Elixir what is the closest thing to Arrays in Elixir. By arrays I mean, a container for values which I can access in constant time. I've looked at tuple, but accordi...
closest thing to arrays in Elixir closest thing to arrays in Elixir tuples elixir arrays Elixir closest thing to arrays in Elixir what is the closest thing to Arrays in Elixir. By arrays I mean, a container for values which I can access in constant time. I've looked at tuple, but according to the documentation : What I...
[ 0.0291748046875, 0.010498046875, -0.003875732421875, 0.000583648681640625, -0.0032501220703125, 0.00933837890625, 0.0002613067626953125, -0.0186767578125, 0.0084228515625, -0.01904296875, 0.00262451171875, 0.01129150390625, -0.00189971923828125, 0.03076171875, 0.00909423828125, 0.00872...
[ 20903, 271, 13580, 47, 10298, 4778, 23, 25318, 38308, 370, 99726, 15296, 2367, 70, 69253, 3311, 116419, 142424, 831, 17203, 53697, 1733, 54811, 8705, 209806, 20653, 3444, 54, 4343, 653, 9433, 14922, 39580, 96759, 25379, 26008, 157666, 5 ]
[ 0.2186279296875, 0.1781005859375, 0.1619873046875, 0.1397705078125, 0.2171630859375, 0.20947265625, 0.0760498046875, 0.154052734375, 0.246826171875, 0.150146484375, 0.242919921875, 0.1005859375, 0.03228759765625, 0.014923095703125, 0.1915283203125, 0.0089111328125, 0.1903076171875, ...
embed
57500387_c0
57500387
elixir
0
Title: Binary pattern matching - Can I extract the numbers out of &quot;/word/number/word/number&quot; Problem title: Binary pattern matching - Can I extract the numbers out of &quot;/word/number/word/number&quot; Tags: elixir, erlang Problem: Binary pattern matching - Can I extract the numbers out of "/word/number/wor...
Binary pattern matching - Can I extract the numbers out of &quot;/word/number/word/number&quot; Binary pattern matching - Can I extract the numbers out of &quot;/word/number/word/number&quot; elixir erlang Binary Can Binary pattern matching - Can I extract the numbers out of "/word/number/word/number" I know how to do ...
[ -0.006988525390625, -0.005645751953125, 0.0047607421875, 0.011474609375, 0.004638671875, 0.014892578125, -0.0179443359375, 0.0166015625, 0.01220703125, -0.020263671875, -0.0087890625, -0.024169921875, -0.01385498046875, 0.022705078125, 0.012939453125, 0.012451171875, 0.00015926361083...
[ 54092, 1294, 103510, 14858, 214, 4171, 87, 125663, 101935, 1810, 111, 47416, 2606, 1297, 15296, 38308, 72, 3066, 64, 54, 20324, 23351, 41018, 193844, 7722, 1632, 29954, 15426, 48636, 80596, 116397, 10289, 1295, 173591, 31344, 3714, 248, 11343...
[ 0.1912841796875, 0.1353759765625, 0.228759765625, 0.239013671875, 0.100341796875, 0.12646484375, 0.059356689453125, 0.2071533203125, 0.2181396484375, 0.1488037109375, 0.10552978515625, 0.1790771484375, 0.18310546875, 0.1656494140625, 0.04736328125, 0.1865234375, 0.069580078125, 0.2...
embed
37660457_c1
37660457
elixir
1
the changeset function directly. I'm also not sure how this works in general. I know that I can't just add models to the database in the middle of a changeset or something, so I assume I'd have to put everything off until right before the insert statement. This is also a process that involves coordinating three differ...
the changeset function directly. I'm also not sure how this works in general. I know that I can't just add models to the database in the middle of a changeset or something, so I assume I'd have to put everything off until right before the insert statement. This is also a process that involves coordinating three differ...
[ -0.0126953125, -0.01116943359375, 0.004974365234375, 0.0098876953125, -0.0140380859375, 0.00091552734375, -0.0211181640625, -0.0255126953125, 0.037109375, -0.016357421875, 0.0084228515625, -0.006744384765625, 0.007232666015625, 0.007415771484375, 0.006500244140625, 0.00494384765625, ...
[ 70, 65572, 126, 32354, 105237, 9077, 903, 43240, 4537, 3714, 15190, 115774, 47, 63399, 86991, 41591, 3884, 26818, 5773, 8108, 183540, 63805, 9433, 83687, 176866, 17262, 12921, 53975, 4837, 66448, 18151, 10617, 11001, 3299, 51515, 10422, 34831, ...
[ 0.0435791015625, 0.2451171875, 0.238037109375, 0.20849609375, 0.2130126953125, 0.054656982421875, 0.02734375, 0.07830810546875, 0.05108642578125, 0.009033203125, 0.1451416015625, 0.240966796875, 0.042877197265625, 0.177001953125, 0.1019287109375, 0.006378173828125, 0.0836181640625, ...
embed
43229368_c1
43229368
elixir
1
Procfile redirect mix phx.digest to output digested items to /dev/null . or • Redefine mix deps.compile for Prod , not generating the assets. Generate the assets locally. Either Manually upload them or use a Shell Script to upload them to S3 . (In my case probably using Codeship's Amazing Amazon S3 deployment) Use sta...
Procfile redirect mix phx.digest to output digested items to /dev/null . or • Redefine mix deps.compile for Prod , not generating the assets. Generate the assets locally. Either Manually upload them or use a Shell Script to upload them to S3 . (In my case probably using Codeship's Amazing Amazon S3 deployment) Use sta...
[ -0.0028839111328125, 0.02587890625, -0.0089111328125, 0.0028839111328125, -0.036376953125, 0.00067138671875, -0.0145263671875, -0.0089111328125, 0.0142822265625, 0.0306396484375, -0.01806640625, 0.006256103515625, 0.0208740234375, 0.01214599609375, 0.0224609375, 0.01202392578125, -0....
[ 84607, 29822, 456, 80581, 17664, 11521, 425, 4803, 525, 140992, 1466, 55769, 47, 248, 18548, 139550, 49487, 64552, 8, 6423, 58875, 1340, 1250, 71, 12663, 181079, 155370, 4000, 111021, 70622, 108362, 84654, 159, 363, 28864, 16070, 169006, 1507...
[ 0.1846923828125, 0.294677734375, 0.037506103515625, 0.17041015625, 0.25732421875, 0.07080078125, 0.117919921875, 0.1517333984375, 0.1597900390625, 0.1483154296875, 0.144775390625, 0.1358642578125, 0.037353515625, 0.026275634765625, 0.219482421875, 0.21533203125, 0.0772705078125, 0....
embed
42352183_c0
42352183
elixir
0
Title: Elixir: how to use flush() function in script? Problem title: Elixir: how to use flush() function in script? Tags: elixir Problem: Elixir: how to use flush() function in script? Documentation gives example of usage in iex - and it works there: http://elixir-lang.org/getting-started/processes.html#send-and-receiv...
Elixir: how to use flush() function in script? Elixir: how to use flush() function in script? elixir CompileError Elixir e.exs e.exs:6 code.ex:363 Code.require_file IEx.Helpers IEx Elixir: how to use flush() function in script? Documentation gives example of usage in iex - and it works there: http://elixir-lang.org/get...
[ -0.01007080078125, 0.014404296875, -0.00762939453125, 0.0203857421875, -0.02880859375, 0.005584716796875, 0.0162353515625, -0.0026397705078125, -0.0098876953125, -0.031005859375, -0.0203857421875, 0.000751495361328125, 0.00188446044921875, 0.01513671875, 0.033935546875, -0.007873535156...
[ 25318, 38308, 3642, 4527, 14838, 1495, 132, 32354, 23, 26499, 15296, 15612, 1340, 18468, 28, 3355, 910, 18151, 127968, 28864, 3181, 29822, 87, 19279, 60785, 21777, 43101, 27781, 127689, 17, 43240, 6169, 3066, 17137, 63923, 39285, 2940, 74105,...
[ 0.1070556640625, 0.2076416015625, 0.0594482421875, 0.1357421875, 0.25634765625, 0.22802734375, 0.13232421875, 0.1937255859375, 0.0660400390625, 0.23388671875, 0.0721435546875, 0.070556640625, 0.044464111328125, 0.020904541015625, 0.047332763671875, 0.1304931640625, 0.086181640625, ...
embed
47472105_c0
47472105
elixir
0
Title: Difference between Enum.each and list comprehension. Problem title: Difference between Enum.each and list comprehension. Tags: elixir Problem: Difference between Enum.each and list comprehension. In Elixir, we can print the value of a list one by one by using Enum.each function. a = [1, 2, 3] Enum.each(a, fn(x) ...
Difference between Enum.each and list comprehension. Difference between Enum.each and list comprehension. elixir Difference Enum.each IO.puts Difference between Enum.each and list comprehension. In Elixir, we can print the value of a list one by one by using Enum.each function. the output is: Using list comprehension t...
[ -0.008056640625, -0.015869140625, -0.0128173828125, 0.02587890625, -0.013916015625, 0.0203857421875, 0.0184326171875, 0.000843048095703125, -0.01495361328125, 0.00897216796875, 0.006134033203125, -0.0162353515625, 0.0233154296875, 0.01129150390625, 0.0034942626953125, -0.01116943359375...
[ 803, 18234, 6620, 17721, 357, 316, 5, 41581, 136, 5303, 46683, 3220, 6889, 15296, 38308, 17780, 7077, 360, 25318, 831, 28412, 34292, 1632, 17368, 32354, 140992, 345, 5701, 66211, 3564, 30646, 685, 17262, 60212, 6626, 51515, 90502, 6492, 515...
[ 0.0858154296875, 0.1964111328125, 0.0897216796875, 0.10546875, 0.152099609375, 0.2486572265625, 0.10198974609375, 0.264404296875, 0.07470703125, 0.23583984375, 0.2083740234375, 0.2103271484375, 0.1514892578125, 0.0894775390625, 0.25634765625, 0.16015625, 0.0760498046875, 0.02536010...
embed
52155807_c0
52155807
elixir
0
Title: Scala console: OutOfMemoryError: GC overhead limit exceeded Problem title: Scala console: OutOfMemoryError: GC overhead limit exceeded Tags: erlang, scala, jvm, beam, elixir Problem: Scala console: OutOfMemoryError: GC overhead limit exceeded Scala: (1 to 100000000).toList.foldLeft(0)((acc, x) => acc + x) Elixir...
Scala console: OutOfMemoryError: GC overhead limit exceeded Scala console: OutOfMemoryError: GC overhead limit exceeded erlang scala jvm beam elixir OutOfMemoryError Scala toList.foldLeft Enum.to_list List.foldl Scala console: OutOfMemoryError: GC overhead limit exceeded Scala: Elixir: They are of the same functionalit...
[ 0.00897216796875, 0.00897216796875, -0.007080078125, -0.003875732421875, 0.01434326171875, -0.0164794921875, -0.00131988525390625, -0.00115203857421875, 0.01495361328125, -0.04052734375, 0.01483154296875, -0.009765625, 0.0245361328125, 0.01385498046875, 0.033935546875, -0.022216796875,...
[ 152653, 11, 130250, 13538, 132887, 6696, 4514, 18468, 31611, 69657, 645, 31251, 17475, 204839, 72, 3066, 146232, 1647, 334, 39, 186, 302, 15296, 38308, 47, 154663, 42822, 2480, 357, 316, 188, 6562, 32036, 141, 25318, 5701, 123309, 821, 4759...
[ 0.2310791015625, 0.135986328125, 0.2227783203125, 0.15869140625, 0.2041015625, 0.095703125, 0.146728515625, 0.124267578125, 0.09356689453125, 0.20361328125, 0.1578369140625, 0.236083984375, 0.1915283203125, 0.1832275390625, 0.0638427734375, 0.1795654296875, 0.197265625, 0.057189941...
embed
63277076_c0
63277076
elixir
0
Title: Generate migrations and add fields on a command line Problem title: Generate migrations and add fields on a command line Tags: ecto, elixir, phoenix-framework Problem: Generate migrations and add fields on a command line I am writing a library for which I need migrations to run on the user’s system who is using ...
Generate migrations and add fields on a command line Generate migrations and add fields on a command line ecto elixir phoenix-framework Generate phx.gen.schema ecto.gen.migration Generate migrations and add fields on a command line I am writing a library for which I need migrations to run on the user’s system who is us...
[ 0.0230712890625, 0.0010986328125, -0.00653076171875, 0.0123291015625, -0.010498046875, 0.01312255859375, -0.004058837890625, -0.015869140625, 0.0033111572265625, -0.035888671875, 0.00009632110595703125, 0.00823974609375, 0.00732421875, 0.018310546875, -0.00421142578125, -0.019775390625...
[ 155370, 67, 212416, 7, 136, 15190, 44457, 98, 75101, 13315, 60751, 15296, 38308, 53073, 33, 4084, 160328, 18244, 11521, 425, 1409, 7560, 192, 58849, 30494, 32562, 35773, 3871, 11675, 38937, 5426, 13695, 61903, 46132, 14037, 17664, 28282, 678,...
[ 0.2236328125, 0.042236328125, 0.25390625, 0.1607666015625, 0.04852294921875, 0.177490234375, 0.2491455078125, 0.065673828125, 0.1981201171875, 0.1575927734375, 0.2005615234375, 0.05133056640625, 0.1690673828125, 0.048583984375, 0.051239013671875, 0.1204833984375, 0.11376953125, 0.0...
embed
49300086_c0
49300086
elixir
0
Title: Does Elixir allow defstruct to call a function defined in the same module? Problem title: Does Elixir allow defstruct to call a function defined in the same module? Tags: elixir Problem: Does Elixir allow defstruct to call a function defined in the same module? I have a module that looks something like this: def...
Does Elixir allow defstruct to call a function defined in the same module? Does Elixir allow defstruct to call a function defined in the same module? elixir Does Elixir Othello.Game Game Othello.Utils Utils enabled_spaces Utils.gen_list Game.width is_game_over is_first_player Does Elixir allow defstruct to call a funct...
[ 0.0018157958984375, 0.0145263671875, 0.005523681640625, -0.005218505859375, 0.0198974609375, -0.00469970703125, 0.0272216796875, -0.0198974609375, 0.0098876953125, -0.043212890625, -0.0076904296875, 0.024169921875, 0.0146484375, -0.00347900390625, 0.00096893310546875, 0.00360107421875,...
[ 25318, 38308, 63769, 8, 420, 36716, 11782, 32354, 61924, 5701, 88996, 47, 23, 15296, 180, 927, 13817, 107576, 13547, 106742, 7870, 3994, 225081, 65421, 1409, 6562, 146984, 83, 35311, 5465, 13448, 271, 139570, 101790, 71, 33342, 7722, 1295 ]
[ 0.1280517578125, 0.2496337890625, 0.0826416015625, 0.1669921875, 0.1329345703125, 0.24169921875, 0.1435546875, 0.1676025390625, 0.1380615234375, 0.07562255859375, 0.1524658203125, 0.0147705078125, 0.00653076171875, 0.075439453125, 0.029815673828125, 0.0838623046875, 0.2318115234375, ...
embed
47628425_c1
47628425
elixir
1
s" => [ %{ "name" => ""} ], "product_sizes" => [ %{ "name" => "" }, %{ "product_size_options" => [ %{ "name" => "" } ] }, %{ "product_size_options" => [ %{ "size" => "" } ] } ] } } So I am wondering if I am doing something wrong here and it is actually possible to change the form names and receive the map that I expect...
s" => [ %{ "name" => ""} ], "product_sizes" => [ %{ "name" => "" }, %{ "product_size_options" => [ %{ "name" => "" } ] }, %{ "product_size_options" => [ %{ "size" => "" } ] } ] } } So I am wondering if I am doing something wrong here and it is actually possible to change the form names and receive the map that I expect...
[ 0.007110595703125, 0.011474609375, -0.017578125, -0.0184326171875, -0.023193359375, 0.000759124755859375, -0.00567626953125, 0.00213623046875, 0.00885009765625, 0.0238037109375, 0.025146484375, -0.00390625, 0.004974365234375, 0.0198974609375, 0.01104736328125, -0.0120849609375, 0.001...
[ 91, 58, 44357, 1745, 11627, 8152, 10114, 57877, 62539, 7, 44, 51912, 4, 24854, 109585, 378, 149016, 2174, 444, 20594, 9844, 44691, 3688, 442, 83, 20653, 7722, 15549, 70, 3173, 123055, 53299, 22288, 450, 87, 41206, 959, 7225, 5608, 4527, ...
[ 0.1676025390625, 0.038177490234375, 0.1409912109375, 0.0921630859375, 0.15087890625, 0.011383056640625, 0.010955810546875, 0.177978515625, 0.1700439453125, 0.061248779296875, 0.010406494140625, 0.01025390625, 0.009552001953125, 0.0118408203125, 0.2135009765625, 0.0335693359375, 0.099...
embed
48336231_c0
48336231
elixir
0
Title: ExUnit Assertions Problem title: ExUnit Assertions Tags: ex-unit, elixir Problem: ExUnit Assertions In the test cases we use assertions to handle errors. Match their return value with what we defined and the test will pass. like if we have an argument error we use this: assert_raise ArgumentError, "argument erro...
ExUnit Assertions ExUnit Assertions ex-unit elixir ArgumentError RuntimeError Postgrex.Error ExUnit Assertions assert_raise ERROR undefined_column j0.rating ExUnit Assertions In the test cases we use assertions to handle errors. Match their return value with what we defined and the test will pass. like if we have an ar...
[ 0.01397705078125, 0.007110595703125, -0.0201416015625, 0.0038299560546875, -0.001251220703125, -0.001678466796875, -0.0205078125, 0.007476806640625, -0.00775146484375, 0.028564453125, 0.01019287109375, 0.0040283203125, -0.00372314453125, 0.0181884765625, 0.004058837890625, 0.0201416015...
[ 5443, 85600, 18, 62, 16865, 5256, 1119, 309, 217, 15296, 38308, 112140, 18468, 31611, 28398, 6032, 2795, 7134, 425, 237, 33657, 12794, 151206, 24638, 9232, 5983, 8447, 316, 1647, 2389, 98767, 70, 3034, 50218, 642, 4527, 10, 47, 34831, 184...
[ 0.1968994140625, 0.2115478515625, 0.10137939453125, 0.098876953125, 0.26708984375, 0.0762939453125, 0.1827392578125, 0.1392822265625, 0.04205322265625, 0.0919189453125, 0.1944580078125, 0.2322998046875, 0.1611328125, 0.1580810546875, 0.1402587890625, 0.174560546875, 0.04132080078125,...
embed
38463565_c0
38463565
elixir
0
Title: Is starting OTP application manually required on test suit Problem title: Is starting OTP application manually required on test suit Tags: elixir, erlang-otp Problem: Is starting OTP application manually required on test suit I use, for example, HTTPotion . It is listed like this in mix.exs : def application do ...
Is starting OTP application manually required on test suit Is starting OTP application manually required on test suit elixir erlang-otp OTP HTTPotion mix.exs HTTPotion.start Is starting OTP application manually required on test suit I use, for example, HTTPotion . It is listed like this in mix.exs : Do I need to provid...
[ -0.0115966796875, 0.0162353515625, 0.00897216796875, 0.0030059814453125, -0.01611328125, -0.00689697265625, 0.00004792213439941406, -0.0166015625, 0.00098419189453125, -0.0106201171875, 0.01092529296875, -0.013427734375, 0.00037384033203125, 0.0213623046875, 0.030029296875, -0.01049804...
[ 2071, 72134, 180, 23658, 38415, 23009, 538, 56065, 98, 3034, 60813, 15296, 38308, 72, 3066, 818, 254, 135913, 31, 1363, 17664, 3355, 17137, 4527, 145870, 3871, 22691, 132, 73866, 169581, 111789, 160193, 109921, 35782, 18, 4034, 15190, 13315, ...
[ 0.04168701171875, 0.17431640625, 0.1380615234375, 0.2349853515625, 0.173583984375, 0.195068359375, 0.035125732421875, 0.1846923828125, 0.042266845703125, 0.1640625, 0.19091796875, 0.04193115234375, 0.1607666015625, 0.0552978515625, 0.162353515625, 0.10491943359375, 0.1121826171875, ...
embed
54695425_c0
54695425
elixir
0
Title: Eval-ing paramaters in Elixir (with Ecto) Problem title: Eval-ing paramaters in Elixir (with Ecto) Tags: elixir, ecto Problem: Eval-ing paramaters in Elixir (with Ecto) Have a look at the select() line below: def query_group(user, group_by, filters \\[]) do from(Click) |> select([c], {c.^group_by, count(c)}) |> ...
Eval-ing paramaters in Elixir (with Ecto) Eval-ing paramaters in Elixir (with Ecto) elixir ecto Eval-ing Elixir Ecto query_group group_by Click c.link_user_id user.id Repo.all Enum.map Tuple.to_list c.platform Eval-ing paramaters in Elixir (with Ecto) Have a look at the select() line below: group_by is an atom. For exa...
[ 0.003662109375, 0.01312255859375, -0.00323486328125, -0.00286865234375, -0.0123291015625, 0.00128936767578125, -0.0032806396484375, 0.00193023681640625, 0.01507568359375, -0.051513671875, -0.01116943359375, -0.0025482177734375, 0.02001953125, 0.002960205078125, -0.021240234375, -0.0062...
[ 241, 1405, 214, 121, 2227, 1314, 25318, 38308, 76228, 44150, 9, 15296, 60751, 41, 1294, 51588, 21115, 1272, 21138, 10187, 65918, 38937, 771, 5584, 316, 62346, 1371, 8705, 6562, 501, 172121, 6713, 36849, 132, 13315, 35064, 83, 34627, 44457, ...
[ 0.07061767578125, 0.2352294921875, 0.04766845703125, 0.09844970703125, 0.13232421875, 0.1280517578125, 0.1046142578125, 0.2493896484375, 0.07537841796875, 0.2493896484375, 0.039337158203125, 0.04962158203125, 0.1961669921875, 0.087646484375, 0.0306396484375, 0.1751708984375, 0.191894...
embed
38796294_c0
38796294
elixir
0
Title: How do I define function dynamically in Erlang/Elixir Problem title: How do I define function dynamically in Erlang/Elixir Tags: elixir, erlang Problem: How do I define function dynamically in Erlang/Elixir I have GenServer which basically only handles cast . So I don't have any functions which track state of se...
How do I define function dynamically in Erlang/Elixir How do I define function dynamically in Erlang/Elixir elixir erlang How Erlang Elixir GenServer handle_call How do I define function dynamically in Erlang/Elixir I have GenServer which basically only handles cast . So I don't have any functions which track state of ...
[ 0.004669189453125, 0.005218505859375, 0.007232666015625, 0.005767822265625, -0.00482177734375, -0.0250244140625, -0.007232666015625, -0.0033416748046875, 0.0032806396484375, -0.03759765625, -0.0004444122314453125, -0.01312255859375, -0.019287109375, 0.00799560546875, 0.02783203125, 0.0...
[ 11249, 61924, 32354, 84079, 25958, 1004, 3066, 150, 38308, 15296, 72, 25318, 15937, 193348, 34831, 85763, 37702, 28560, 11341, 10723, 3871, 2967, 36049, 134234, 3034, 60813, 12319, 44691, 154107, 6032, 8108, 26513, 80234 ]
[ 0.0062255859375, 0.1978759765625, 0.2327880859375, 0.2010498046875, 0.1427001953125, 0.093994140625, 0.23095703125, 0.03277587890625, 0.176025390625, 0.0265045166015625, 0.006683349609375, 0.0650634765625, 0.116455078125, 0.1900634765625, 0.1807861328125, 0.2117919921875, 0.054107666...
embed
43580337_c1
43580337
elixir
1
message_queue_len: 0, messages: [], links: [], dictionary: [], trap_exit: false, error_handler: :error_handler, priority: :normal, group_leader: #PID<0.26.0>, total_heap_size: 233, heap_size: 233, stack_size: 1, reductions: 141, garbage_collection: [min_bin_vheap_size: 46422, min_heap_size: 233, fullsweep_after: 65535...
message_queue_len: 0, messages: [], links: [], dictionary: [], trap_exit: false, error_handler: :error_handler, priority: :normal, group_leader: #PID<0.26.0>, total_heap_size: 233, heap_size: 233, stack_size: 1, reductions: 141, garbage_collection: [min_bin_vheap_size: 46422, min_heap_size: 233, fullsweep_after: 65535...
[ 0.00244140625, 0.019287109375, -0.01116943359375, 0.0198974609375, -0.00244140625, -0.01202392578125, 0.0089111328125, -0.007293701171875, 0.009521484375, -0.03271484375, -0.0120849609375, -0.0167236328125, 0.0274658203125, 0.03076171875, 0.0030975341796875, 0.0021514892578125, 0.011...
[ 26008, 944, 13388, 1977, 12, 757, 89914, 22317, 45, 10763, 6635, 63819, 23399, 98320, 18499, 74258, 188800, 25343, 53, 33176, 21115, 133, 38970, 7146, 133684, 910, 2389, 3622, 1106, 2631, 62539, 105586, 764, 177261, 106, 74906, 79361, 3671, ...
[ 0.1995849609375, 0.12744140625, 0.1209716796875, 0.1412353515625, 0.0194549560546875, 0.1229248046875, 0.2230224609375, 0.1654052734375, 0.0218658447265625, 0.1007080078125, 0.053863525390625, 0.193359375, 0.140380859375, 0.05438232421875, 0.1358642578125, 0.1337890625, 0.06915283203...
embed
22074412_c0
22074412
elixir
0
Title: Erlang and Elixir Problem title: Erlang and Elixir Tags: concurrency, erlang, elixir Problem: Erlang and Elixir SO community, just have a quick question to ask. I've been doing a bit of research on learning languages that have concurrency in mind. For the moment, I've been working with Scala and I've been loving...
Erlang and Elixir Erlang and Elixir concurrency erlang elixir Erlang Elixir Erlang and Elixir SO community, just have a quick question to ask. I've been doing a bit of research on learning languages that have concurrency in mind. For the moment, I've been working with Scala and I've been loving it. I've decided to also...
[ 0.01019287109375, 0.025634765625, -0.01446533203125, 0.01177978515625, -0.00811767578125, 0.00665283203125, -0.01104736328125, -0.005859375, 0.0146484375, -0.02685546875, 0.00799560546875, -0.0228271484375, 0.0184326171875, 0.00946044921875, 0.00933837890625, 0.0137939453125, -0.0363...
[ 1004, 3066, 136, 25318, 38308, 108636, 982, 72, 15296, 15969, 26908, 63773, 9655, 26458, 25188, 52080, 46876, 2408, 7086, 3095, 20697, 678, 152653, 11, 459, 6496, 30698, 27060, 26341, 17311, 5941, 831, 2060, 39958, 400, 6048, 47, 241, 47599...
[ 0.156494140625, 0.293701171875, 0.1192626953125, 0.1416015625, 0.265625, 0.187744140625, 0.134765625, 0.0924072265625, 0.1009521484375, 0.1202392578125, 0.12060546875, 0.04437255859375, 0.0455322265625, 0.04473876953125, 0.0306396484375, 0.1173095703125, 0.161865234375, 0.068176269...
embed
28848648_c0
28848648
elixir
0
Title: parameterized enumerable type in elixir typespecs Problem title: parameterized enumerable type in elixir typespecs Tags: types, elixir Problem: parameterized enumerable type in elixir typespecs Is it possible to parametrize the Enumerable.t type in elixir? so currently I have a function that takes a list of foo ...
parameterized enumerable type in elixir typespecs parameterized enumerable type in elixir typespecs types elixir Enumerable.t the_awesome Enum.reduce Enum parameterized enumerable type in elixir typespecs Is it possible to parametrize the Enumerable.t type in elixir? so currently I have a function that takes a list of ...
[ -0.0064697265625, -0.0123291015625, -0.000904083251953125, 0.005340576171875, -0.01080322265625, 0.000629425048828125, -0.01708984375, 0.01153564453125, -0.002471923828125, -0.029296875, 0.002777099609375, -0.0302734375, -0.00421142578125, 0.00958251953125, -0.01416015625, -0.018432617...
[ 171859, 29367, 189085, 2661, 10644, 15296, 38308, 16711, 52895, 357, 316, 56, 2886, 18, 70, 1177, 43452, 107, 106357, 2071, 442, 7722, 47, 170358, 731, 5, 23, 82424, 32354, 51776, 5303, 5775, 31, 91, 6183, 959, 765, 4734, 11782, 88996, ...
[ 0.201904296875, 0.095458984375, 0.2098388671875, 0.134033203125, 0.244873046875, 0.1217041015625, 0.25732421875, 0.2171630859375, 0.151611328125, 0.0982666015625, 0.2122802734375, 0.162109375, 0.17724609375, 0.167236328125, 0.0125732421875, 0.031707763671875, 0.0806884765625, 0.083...
embed
29669569_c0
29669569
elixir
0
Title: How to print result in Elixir anonymous function Problem title: How to print result in Elixir anonymous function Tags: elixir, mnesia Problem: How to print result in Elixir anonymous function What I want to do to is to get the record count in remote node where the record has the begining equal to <<'*fb'>>. Here...
How to print result in Elixir anonymous function How to print result in Elixir anonymous function elixir mnesia How Elixir Node.spawn abc.com mnesia.dirty_select cz_jid_mapping io.format binary_part How to print result in Elixir anonymous function What I want to do to is to get the record count in remote node where the...
[ -0.00531005859375, 0.00390625, -0.01318359375, 0.00775146484375, 0.00787353515625, 0.00390625, 0.017578125, -0.01556396484375, 0.01116943359375, -0.0634765625, 0.016845703125, -0.0198974609375, 0.01202392578125, 0.00128936767578125, 0.01116943359375, -0.0213623046875, 0.0101318359375...
[ 11249, 47, 28412, 16750, 23, 25318, 38308, 52184, 10821, 32354, 15296, 49097, 3478, 438, 112, 19341, 7710, 1563, 936, 939, 100184, 47145, 658, 71, 192, 22995, 51727, 2394, 17365, 3444, 2046, 17164, 54529, 148814, 110, 9842, 105950, 1639, 42...
[ 0.07330322265625, 0.0369873046875, 0.2379150390625, 0.2249755859375, 0.039215087890625, 0.130859375, 0.261962890625, 0.2158203125, 0.1212158203125, 0.1746826171875, 0.078125, 0.170166015625, 0.2288818359375, 0.1168212890625, 0.1175537109375, 0.05810546875, 0.1136474609375, 0.011474...
embed
59356904_c0
59356904
elixir
0
Title: Distillery Release doesn&#x27;t find &quot;release_ctl&quot; in custom command Problem title: Distillery Release doesn&#x27;t find &quot;release_ctl&quot; in custom command Tags: elixir, distillery Problem: Distillery Release doesn't find "release_ctl" in custom command I've created a custom command for my Disti...
Distillery Release doesn&#x27;t find &quot;release_ctl&quot; in custom command Distillery Release doesn&#x27;t find &quot;release_ctl&quot; in custom command elixir distillery Distillery Release release_ctl Elixir.IO.puts Distillery Release doesn't find "release_ctl" in custom command I've created a custom command for ...
[ 0.00250244140625, 0.01458740234375, -0.004791259765625, 0.033935546875, -0.00185394287109375, -0.01165771484375, -0.031494140625, -0.041015625, 0, 0.0037841796875, 0.0037841796875, -0.005035400390625, 0.00872802734375, -0.0037689208984375, -0.003448486328125, 0.006317138671875, 0.001...
[ 803, 178043, 53, 152590, 3768, 18, 7413, 233707, 15390, 141, 114122, 75101, 15296, 38308, 45, 54452, 25318, 17780, 7077, 75935, 167934, 188300, 10611, 26499, 53418, 48903, 17368, 116, 83783, 3355, 14481, 82230, 18151, 106, 8781, 25647 ]
[ 0.09619140625, 0.234619140625, 0.153564453125, 0.26318359375, 0.043609619140625, 0.056304931640625, 0.13818359375, 0.2249755859375, 0.1517333984375, 0.16015625, 0.18701171875, 0.22119140625, 0.01336669921875, 0.2098388671875, 0.036712646484375, 0.2279052734375, 0.044921875, 0.13146...
embed
64485373_c0
64485373
elixir
0
Title: How to get notified for any crash from any linked process? Problem title: How to get notified for any crash from any linked process? Tags: elixir, erlang-otp Problem: How to get notified for any crash from any linked process? I start multiple (genserver) process in my app though Supervisor, Dynamic supervisor, a...
How to get notified for any crash from any linked process? How to get notified for any crash from any linked process? elixir erlang-otp any How XXX.start_link ws_uri __MODULE__ MyModule How to get notified for any crash from any linked process? I start multiple (genserver) process in my app though Supervisor, Dynamic s...
[ -0.01055908203125, 0.041015625, -0.00994873046875, 0.003082275390625, 0.006591796875, -0.00201416015625, 0.0147705078125, -0.006439208984375, -0.004730224609375, -0.04345703125, -0.01318359375, -0.0137939453125, 0.00677490234375, 0.043701171875, 0.0244140625, 0.0159912109375, -0.0063...
[ 11249, 47, 2046, 959, 47314, 100, 2499, 150631, 1295, 3126, 9433, 297, 15296, 38308, 72, 3066, 818, 254, 44585, 17137, 10187, 1162, 2646, 91616, 8782, 4034, 48716, 1409, 39642, 23, 4027, 4265, 51858, 73327, 21068, 1601, 8951, 831, 15490, ...
[ 0.082763671875, 0.046142578125, 0.057830810546875, 0.1317138671875, 0.13818359375, 0.03802490234375, 0.08880615234375, 0.225341796875, 0.0655517578125, 0.130859375, 0.1474609375, 0.030181884765625, 0.0606689453125, 0.2066650390625, 0.07281494140625, 0.2181396484375, 0.06549072265625,...
embed
49324816_c0
49324816
elixir
0
Title: Carriage return not being trimmed when piping to String.trim Problem title: Carriage return not being trimmed when piping to String.trim Tags: string, elixir Problem: Carriage return not being trimmed when piping to String.trim I'm tinkering with learning Elixir coming from a Ruby background. I noticed that when...
Carriage return not being trimmed when piping to String.trim Carriage return not being trimmed when piping to String.trim string elixir Carriage String.trim IO.gets IO.puts string123 String.strip Carriage return not being trimmed when piping to String.trim I'm tinkering with learning Elixir coming from a Ruby backgroun...
[ -0.0026092529296875, 0.0252685546875, -0.01153564453125, 0.0264892578125, -0.0174560546875, -0.00927734375, -0.003387451171875, 0.009033203125, -0.000553131103515625, 0.001068115234375, -0.01220703125, 0.0009765625, -0.003326416015625, 0.0185546875, -0.00872802734375, 0.000820159912109...
[ 3980, 1651, 429, 30646, 959, 8035, 85247, 4806, 2147, 10366, 47, 23351, 214, 3996, 39, 79315, 15296, 38308, 17780, 7077, 48636, 59623, 49947, 52080, 25318, 38162, 158189, 76615, 156672, 137158, 16750, 28412, 2258, 202810, 91693, 140992, 44084, ...
[ 0.1087646484375, 0.2254638671875, 0.11474609375, 0.244873046875, 0.079345703125, 0.0244140625, 0.2056884765625, 0.099609375, 0.1290283203125, 0.0709228515625, 0.06402587890625, 0.168701171875, 0.1251220703125, 0.2012939453125, 0.1551513671875, 0.1995849609375, 0.066162109375, 0.194...
embed
56352930_c0
56352930
elixir
0
Title: Enum.each loses variable when looping over an ExUnit test Problem title: Enum.each loses variable when looping over an ExUnit test Tags: ex-unit, elixir Problem: Enum.each loses variable when looping over an ExUnit test Enum.each ~w(a b c), fn char -> test "test involving #{char}" do assert char == char end end ...
Enum.each loses variable when looping over an ExUnit test Enum.each loses variable when looping over an ExUnit test ex-unit elixir CompileError Enum.each ExUnit my_module_test.exs:7 Compilation my_module_test.exs lists.erl:1338 lists.foreach erl_eval.erl:680 erl_eval.do_apply code.ex:767 Code.require_file parallel_comp...
[ 0.00185394287109375, -0.0118408203125, -0.0269775390625, 0.0223388671875, 0.004608154296875, 0.0098876953125, 0.016845703125, -0.01190185546875, -0.0028839111328125, 0.02587890625, -0.0074462890625, 0.00982666015625, -0.005462646484375, 0.01373291015625, 0.0159912109375, 0.015014648437...
[ 357, 316, 41581, 388, 90, 77336, 40956, 645, 5443, 85600, 18, 3034, 1119, 309, 15296, 38308, 15612, 1340, 18468, 759, 83279, 6954, 3355, 966, 5303, 10991, 934, 1405, 91092, 18151, 161412, 3181, 29822, 95103, 58875, 34759, 1126, 119125, 583,...
[ 0.1160888671875, 0.217529296875, 0.216552734375, 0.163330078125, 0.004638671875, 0.256103515625, 0.1396484375, 0.08782958984375, 0.1590576171875, 0.19482421875, 0.0243988037109375, 0.1871337890625, 0.1492919921875, 0.097412109375, 0.051544189453125, 0.1494140625, 0.05682373046875, ...
embed
19596927_c0
19596927
elixir
0
Title: Elixir check if a function has been called from a ExUnit test? Problem title: Elixir check if a function has been called from a ExUnit test? Tags: io, stdout, elixir, erlang, function Problem: Elixir check if a function has been called from a ExUnit test? Is there a way to check if a function has been called fro...
Elixir check if a function has been called from a ExUnit test? Elixir check if a function has been called from a ExUnit test? io stdout elixir erlang function a Elixir ExUnit Elixir check if a function has been called from a ExUnit test? Is there a way to check if a function has been called from a ExUnit test case? I h...
[ 0.0033111572265625, 0.008544921875, -0.00830078125, 0.0150146484375, -0.005462646484375, -0.0091552734375, 0.0177001953125, -0.01409912109375, -0.004150390625, 0.00518798828125, -0.0079345703125, -0.005889892578125, -0.0172119140625, 0.0021209716796875, 0.018798828125, 0.0068359375, ...
[ 25318, 38308, 12765, 2174, 32354, 1556, 2809, 35839, 1295, 5443, 85600, 18, 3034, 22995, 6138, 1003, 15296, 72, 3066, 3917, 47, 10, 7225, 11782, 17780, 5, 7077, 1884, 493, 9844, 8035, 140992, 3674, 16992, 397, 52001, 1829, 24124, 56, 2065...
[ 0.1368408203125, 0.2496337890625, 0.21044921875, 0.10540771484375, 0.23486328125, 0.09375, 0.054718017578125, 0.1829833984375, 0.1331787109375, 0.1739501953125, 0.210205078125, 0.10455322265625, 0.222900390625, 0.1768798828125, 0.09954833984375, 0.1488037109375, 0.1151123046875, 0....
embed
27591417_c0
27591417
elixir
0
Title: IEx - How to cancel multiline command? Problem title: IEx - How to cancel multiline command? Tags: elixir Problem: IEx - How to cancel multiline command? When I use IEx and make a typo like additional bracket or ", then most of the time I get a syntax error. But there are cases like this one: iex(3)> Enum.each '...
IEx - How to cancel multiline command? IEx - How to cancel multiline command? elixir IEx How Enum.each IO.puts BREAK IEx - How to cancel multiline command? When I use IEx and make a typo like additional bracket or ", then most of the time I get a syntax error. But there are cases like this one: I cannot make a syntax e...
[ -0.011962890625, 0.0004787445068359375, -0.01165771484375, 0.007354736328125, -0.01177978515625, 0.00830078125, 0.014404296875, -0.00537109375, -0.0128173828125, -0.01409912109375, -0.0296630859375, 0.000446319580078125, -0.007293701171875, 0.004364013671875, -0.005157470703125, -0.017...
[ 87, 19279, 11249, 53017, 6024, 2256, 75101, 15296, 38308, 357, 316, 41581, 17780, 7077, 51722, 12971, 47, 4527, 11417, 31, 78301, 1620, 27853, 44, 1733, 6002, 86531, 18499, 50218, 53418, 21342, 206597, 15421, 309, 206, 64194, 149186, 16610, ...
[ 0.1243896484375, 0.233154296875, 0.050506591796875, 0.223388671875, 0.1241455078125, 0.1820068359375, 0.2012939453125, 0.043121337890625, 0.1845703125, 0.0428466796875, 0.12939453125, 0.1358642578125, 0.158447265625, 0.036834716796875, 0.11767578125, 0.109375, 0.01397705078125, 0.0...
embed
46046408_c0
46046408
elixir
0
Title: In the Elixir DateTime implementation, what is meant by Calendar.std_offset? Problem title: In the Elixir DateTime implementation, what is meant by Calendar.std_offset? Tags: calendar, elixir, datetime, timezone Problem: In the Elixir DateTime implementation, what is meant by Calendar.std_offset? In the docs for...
In the Elixir DateTime implementation, what is meant by Calendar.std_offset? In the Elixir DateTime implementation, what is meant by Calendar.std_offset? calendar elixir datetime timezone Elixir DateTime Calendar.std_offset In the Elixir DateTime implementation, what is meant by Calendar.std_offset? In the docs for Dat...
[ 0.027099609375, -0.00567626953125, 0.00555419921875, -0.0140380859375, -0.01116943359375, -0.031982421875, -0.000728607177734375, 0.0169677734375, 0.00106048583984375, 0.0079345703125, 0.00439453125, 0.004150390625, 0.0113525390625, 0.01275634765625, -0.0027313232421875, 0.004547119140...
[ 25318, 38308, 25512, 70059, 208124, 2367, 131148, 390, 105115, 5, 271, 71, 16713, 3509, 87939, 15296, 5622, 6032, 1733, 18979, 454, 83, 20288, 5570, 5773, 94131, 10869, 45234, 51065, 20028, 1003, 238, 1295, 43297, 99577, 8162, 60042, 111, 4...
[ 0.096923828125, 0.2275390625, 0.1778564453125, 0.211669921875, 0.147705078125, 0.0701904296875, 0.1412353515625, 0.019378662109375, 0.287353515625, 0.0653076171875, 0.1614990234375, 0.15283203125, 0.2410888671875, 0.17333984375, 0.1668701171875, 0.0623779296875, 0.117919921875, 0.1...
embed
62178299_c1
62178299
elixir
1
0."claimed" AND NOT (w1."claimed")) LIMIT 10; claimed | claimed ---------+--------- t | f t | f t | f t | f t | f t | f t | f t | f t | f t | f (10 rows) This is converted to the following on Elixir which is the language I'm using: [ true: false, true: false, true: false, true: false, true: false, true: false, true: fa...
0."claimed" AND NOT (w1."claimed")) LIMIT 10; claimed | claimed ---------+--------- t | f t | f t | f t | f t | f t | f t | f t | f t | f t | f (10 rows) This is converted to the following on Elixir which is the language I'm using: [ true: false, true: false, true: false, true: false, true: false, true: false, true: fa...
[ 0.005706787109375, 0.017333984375, 0.01214599609375, 0.0186767578125, -0.02587890625, -0.00396728515625, 0.0031585693359375, -0.017578125, 0.0208740234375, 0.024658203125, 0.0031890869140625, 0.0247802734375, -0.017822265625, 0.00762939453125, -0.0162353515625, 0.0133056640625, -0.01...
[ 757, 164779, 297, 48762, 86725, 434, 418, 16970, 95409, 209, 63043, 58745, 110405, 1328, 808, 1238, 15094, 15555, 117176, 25632, 25318, 38308, 46876, 17368, 29568, 12, 98320, 3293, 166117, 5303, 70796, 370, 99726, 9774, 3444, 8710, 116, 12638...
[ 0.1256103515625, 0.1827392578125, 0.1717529296875, 0.128173828125, 0.239990234375, 0.08831787109375, 0.0233306884765625, 0.142822265625, 0.1939697265625, 0.1890869140625, 0.1988525390625, 0.007568359375, 0.0154266357421875, 0.08984375, 0.0599365234375, 0.09271240234375, 0.15405273437...
embed
51251116_c0
51251116
elixir
0
Title: Using javascript in Phoenix templates Problem title: Using javascript in Phoenix templates Tags: elixir, phoenix-framework, html, javascript Problem: Using javascript in Phoenix templates I would like to know how to dynamically update phoenix variables using javascript functions in my Phoenix templates. Currentl...
Using javascript in Phoenix templates Using javascript in Phoenix templates elixir phoenix-framework html javascript Using Phoenix Using javascript in Phoenix templates I would like to know how to dynamically update phoenix variables using javascript functions in my Phoenix templates. Currently I have a list sent from ...
[ -0.004852294921875, 0.004425048828125, -0.0230712890625, -0.033935546875, 0.01104736328125, 0.01446533203125, -0.005645751953125, 0.03271484375, 0.0017547607421875, -0.056884765625, -0.0107421875, -0.0208740234375, 0.00946044921875, 0.016845703125, 0.001953125, 0.03173828125, 0.00588...
[ 345, 136951, 23, 133720, 110934, 7, 15296, 38308, 53073, 33, 4084, 160328, 18244, 7693, 1884, 3714, 3642, 84079, 25958, 28350, 77336, 17368, 32354, 114063, 5303, 9325, 185373, 100, 40956, 89159, 35509, 46132, 10644, 3934, 107730, 16530, 46312, ...
[ 0.06231689453125, 0.26904296875, 0.065185546875, 0.268310546875, 0.26025390625, 0.049102783203125, 0.049713134765625, 0.195068359375, 0.0616455078125, 0.0849609375, 0.1519775390625, 0.06915283203125, 0.0200958251953125, 0.1270751953125, 0.042236328125, 0.00299072265625, 0.01890563964...
embed
36486805_c2
36486805
elixir
2
1, and have tried several things to get it going based on advice like this . Thoughts? Thanks! Code signals: UndefinedFunctionError, Elixir, Ecto, Crypto, MySQL, INFO, REPORT, Apr-2016::16:23:28, Mix, Could, Tpos.start, EXIT, GenServer.call, PID, get_all, Tpos.Data.Models.ProfitCenter, otp_app, Tpos.Repo, Ecto.Adapters...
1, and have tried several things to get it going based on advice like this . Thoughts? Thanks! Code signals: UndefinedFunctionError, Elixir, Ecto, Crypto, MySQL, INFO, REPORT, Apr-2016::16:23:28, Mix, Could, Tpos.start, EXIT, GenServer.call, PID, get_all, Tpos.Data.Models.ProfitCenter, otp_app, Tpos.Repo, Ecto.Adapters...
[ -0.0130615234375, 0.0155029296875, -0.001190185546875, 0.0242919921875, 0, -0.002716064453125, -0.014892578125, -0.019775390625, 0.010498046875, -0.030517578125, 0.0234375, -0.005767822265625, 0.02490234375, 0.02734375, 0.00726318359375, -0.00579833984375, -0.0194091796875, 0.01239...
[ 106, 4, 136, 765, 37842, 40368, 8966, 47, 2046, 442, 7730, 35509, 67660, 1884, 903, 6, 5, 145733, 38, 28864, 26073, 7, 79912, 5983, 297, 97249, 10763, 18468, 31611, 25318, 38308, 241, 44150, 201543, 157146, 123552, 145269, 42053, 39112, 2...
[ 0.16162109375, 0.041778564453125, 0.027679443359375, 0.067138671875, 0.1290283203125, 0.108154296875, 0.06951904296875, 0.0875244140625, 0.1563720703125, 0.1597900390625, 0.203369140625, 0.076416015625, 0.1728515625, 0.0677490234375, 0.017608642578125, 0.0999755859375, 0.054077148437...
embed
59304443_c0
59304443
elixir
0
Title: Will dets perform disk readings on lookup with ram_file option? Problem title: Will dets perform disk readings on lookup with ram_file option? Tags: elixir, erlang, dets Problem: Will dets perform disk readings on lookup with ram_file option? An option ram_file is described in DETS Erlang docs open_file(name, ar...
Will dets perform disk readings on lookup with ram_file option? Will dets perform disk readings on lookup with ram_file option? elixir erlang dets Will ram_file open_file Will dets perform disk readings on lookup with ram_file option? An option ram_file is described in DETS Erlang docs this will perform save on disk af...
[ 0.031005859375, -0.001922607421875, 0.004638671875, 0.0016937255859375, 0.00640869140625, -0.005706787109375, 0.003173828125, 0.002777099609375, -0.0089111328125, -0.00433349609375, 0.031494140625, 0.01055908203125, -0.031494140625, 0.005096435546875, -0.01104736328125, 0.0125122070312...
[ 20255, 149, 7, 51339, 28338, 16454, 6713, 2037, 678, 13969, 29822, 35829, 98, 15296, 38308, 72, 3066, 9803, 454, 151552, 1514, 12763, 1004, 54, 30098, 7103, 183540, 28350, 4527, 7068, 20903 ]
[ 0.043304443359375, 0.2158203125, 0.11151123046875, 0.10418701171875, 0.08087158203125, 0.178466796875, 0.08404541015625, 0.1544189453125, 0.061370849609375, 0.14208984375, 0.185546875, 0.173583984375, 0.04217529296875, 0.01806640625, 0.1435546875, 0.06243896484375, 0.216064453125, ...
embed
39542162_c0
39542162
elixir
0
Title: Error with link to: in deleting a session (PHOENIX) Problem title: Error with link to: in deleting a session (PHOENIX) Tags: phoenix-channels, elixir, phoenix-framework Problem: Error with link to: in deleting a session (PHOENIX) I have a link to delete the session for the current user <%= link "Logout", to: ses...
Error with link to: in deleting a session (PHOENIX) Error with link to: in deleting a session (PHOENIX) phoenix-channels elixir phoenix-framework Error PHOENIX Logout session_path current_user.id Error with link to: in deleting a session (PHOENIX) I have a link to delete the session for the current user For some reason...
[ -0.0030975341796875, 0.01446533203125, 0.01300048828125, -0.007598876953125, 0.00482177734375, 0.00616455078125, 0.00689697265625, 0.006805419921875, -0.0033416748046875, -0.08349609375, -0.0238037109375, -0.00958251953125, 0.0140380859375, 0.0096435546875, 0, 0.001068115234375, -0.0...
[ 212059, 678, 3126, 47, 23, 24674, 1916, 56002, 683, 17933, 67609, 1542, 10, 53073, 33, 4084, 17032, 8876, 15296, 38308, 160328, 18244, 436, 36684, 1003, 128405, 43581, 65918, 532, 765, 154109, 100, 38937, 31635, 22027, 18, 4488, 98816, 7767...
[ 0.1842041015625, 0.035003662109375, 0.17529296875, 0.128173828125, 0.1119384765625, 0.2044677734375, 0.160400390625, 0.22216796875, 0.040130615234375, 0.1041259765625, 0.1466064453125, 0.180419921875, 0.030487060546875, 0.08941650390625, 0.0914306640625, 0.1649169921875, 0.1026000976...
embed
43536722_c0
43536722
elixir
0
Title: How to handle embedded schema in Phoenix? Problem title: How to handle embedded schema in Phoenix? Tags: ecto, elixir, phoenix-framework, mongodb Problem: How to handle embedded schema in Phoenix? Lets say i have user model like follow schema "users" do field :user_name, :string field :password, :string end and ...
How to handle embedded schema in Phoenix? How to handle embedded schema in Phoenix? ecto elixir phoenix-framework mongodb How Phoenix user_name line1 How to handle embedded schema in Phoenix? Lets say i have user model like follow and address model like follow i am using mongo db as database so i want json format like ...
[ 0.019287109375, 0.0009918212890625, -0.005889892578125, 0.0262451171875, -0.006927490234375, 0.01513671875, -0.00830078125, -0.0101318359375, 0.01708984375, -0.042236328125, 0.0223388671875, 0.0169677734375, 0.0009613037109375, 0.0211181640625, 0.0111083984375, -0.00457763671875, -0....
[ 11249, 47, 34831, 55720, 69819, 61903, 23, 133720, 60751, 38308, 53073, 33, 4084, 160328, 2667, 275, 38937, 11627, 13315, 418, 3299, 1884, 28960, 29823, 14896, 31, 40041, 237, 63399, 3444, 1647, 1681, 9384, 47251, 28282, 136, 44622, 65572, ...
[ 0.0950927734375, 0.0660400390625, 0.15234375, 0.1932373046875, 0.1788330078125, 0.271728515625, 0.10491943359375, 0.286865234375, 0.1236572265625, 0.1275634765625, 0.043304443359375, 0.058319091796875, 0.120849609375, 0.044708251953125, 0.034637451171875, 0.0877685546875, 0.177001953...
embed
53145503_c0
53145503
elixir
0
Title: Replace List within Struct with another List Problem title: Replace List within Struct with another List Tags: elixir Problem: Replace List within Struct with another List Code signals: Replace, List, Struct, MyApp.ScoreTable, __meta__, Ecto.Schema.Metadata, score_tables, inserted_at, Ecto.Association.NotLoaded,...
Replace List within Struct with another List Replace List within Struct with another List elixir Replace List Struct MyApp.ScoreTable __meta__ Ecto.Schema.Metadata score_tables inserted_at Ecto.Association.NotLoaded question_id dadc6e57-49f4-4339-9c0f-d40dbc6df534 season_id c356bae0-bee8-45df-b035-dc117908bebd table_de...
[ -0.006866455078125, 0.0228271484375, -0.0155029296875, 0.01312255859375, -0.0177001953125, -0.003143310546875, -0.0025787353515625, 0.00009059906005859375, 0.018310546875, 0.0308837890625, 0.024169921875, 0.03369140625, 0.0087890625, 0.0087890625, 0.011962890625, 0.0032196044921875, ...
[ 853, 23935, 32036, 28032, 63667, 15390, 678, 15700, 15296, 38308, 2646, 39179, 30854, 618, 2886, 35273, 241, 44150, 25452, 11883, 102, 47763, 22819, 183540, 214813, 122116, 9655, 532, 10289, 34003, 34145, 23180, 119514, 46741, 7175, 78299, 1500...
[ 0.086181640625, 0.189697265625, 0.2529296875, 0.2127685546875, 0.251708984375, 0.1805419921875, 0.09033203125, 0.118896484375, 0.1138916015625, 0.2310791015625, 0.09771728515625, 0.1925048828125, 0.12841796875, 0.0792236328125, 0.16162109375, 0.0799560546875, 0.031280517578125, 0.2...
embed
46871137_c0
46871137
elixir
0
Title: How can I write an Elixir mapping function such that it can adding items in each list? Problem title: How can I write an Elixir mapping function such that it can adding items in each list? Tags: algorithm, mapping, elixir Problem: How can I write an Elixir mapping function such that it can adding items in each l...
How can I write an Elixir mapping function such that it can adding items in each list? How can I write an Elixir mapping function such that it can adding items in each list? algorithm mapping elixir How Elixir map2 Enum.map IO.puts Enum.each list2 How can I write an Elixir mapping function such that it can adding items...
[ -0.01495361328125, 0.00225830078125, -0.01251220703125, 0.01287841796875, -0.002166748046875, 0.03466796875, 0.0002574920654296875, -0.0019378662109375, 0.01287841796875, -0.029052734375, 0.024169921875, -0.00112152099609375, 0.015869140625, 0.024169921875, 0.015869140625, -0.008117675...
[ 11249, 831, 33022, 25318, 38308, 291, 26783, 32354, 6044, 154107, 55769, 23, 12638, 5303, 234873, 15296, 22288, 304, 357, 316, 62346, 17780, 7077, 41581, 3642, 59911, 51776, 1238, 136, 116, 96, 418, 30646, 181653, 1632, 12830, 15504, 74189, ...
[ 0.041961669921875, 0.06353759765625, 0.151611328125, 0.135498046875, 0.27001953125, 0.18359375, 0.16796875, 0.1719970703125, 0.0290069580078125, 0.158935546875, 0.154296875, 0.001129150390625, 0.07568359375, 0.1683349609375, 0.1597900390625, 0.095947265625, 0.203125, 0.095703125, ...
embed
58609123_c0
58609123
elixir
0
Title: how to upload data to google storage without saving locally Problem title: how to upload data to google storage without saving locally Tags: google-cloud-storage, elixir Problem: how to upload data to google storage without saving locally end I want to upload without saving locally, what function would I use and...
how to upload data to google storage without saving locally how to upload data to google storage without saving locally google-cloud-storage elixir GCloudex.CloudStorage.Client.put_object_content my_file_name upload_file bucket_id file_path media_link error_message Make API GoogleApi.Storage.V1.Api.Objects.storage_obje...
[ 0.00131988525390625, 0.0225830078125, -0.006103515625, -0.00994873046875, -0.00311279296875, 0.005096435546875, -0.0186767578125, -0.0157470703125, -0.0032958984375, -0.00168609619140625, 0.0198974609375, -0.01806640625, 0.015869140625, -0.0034637451171875, 0.0245361328125, -0.01165771...
[ 3642, 47, 70622, 2053, 26484, 132096, 15490, 57, 6496, 4000, 182422, 140464, 429, 15296, 38308, 129222, 3355, 188, 29838, 150, 7077, 187694, 69246, 29822, 11627, 27853, 128405, 2450, 10187, 18499, 74157, 61687, 1815, 1434, 856, 418, 75161, 33...
[ 0.090576171875, 0.1417236328125, 0.2235107421875, 0.1605224609375, 0.170166015625, 0.253173828125, 0.124755859375, 0.0751953125, 0.0963134765625, 0.1092529296875, 0.0712890625, 0.1636962890625, 0.08349609375, 0.0249481201171875, 0.1834716796875, 0.0576171875, 0.12548828125, 0.11608...
embed
64241196_c0
64241196
elixir
0
Title: Ecto migration alter table ** (FunctionClauseError) no function clause matches Problem title: Ecto migration alter table ** (FunctionClauseError) no function clause matches Tags: ecto, elixir, erlang, database-migration Problem: Ecto migration alter table ** (FunctionClauseError) no function clause matches While...
Ecto migration alter table ** (FunctionClauseError) no function clause matches Ecto migration alter table ** (FunctionClauseError) no function clause matches ecto elixir erlang database-migration FunctionClauseError Ecto ecto.migrate Running Universe.Repo.Migrations.UpdatePlanetsTable.change solar_system Ecto migration...
[ 0.004364013671875, 0.015380859375, -0.0107421875, 0.006134033203125, -0.00390625, -0.00872802734375, -0.013427734375, -0.0255126953125, -0.0009613037109375, 0.02783203125, -0.0008697509765625, 0.0166015625, -0.006103515625, 0.009765625, 0.01025390625, -0.007415771484375, -0.014099121...
[ 241, 44150, 212416, 37264, 23180, 16459, 97249, 26253, 18468, 31611, 110, 32354, 70731, 13, 14858, 60751, 15296, 38308, 72, 3066, 63399, 58849, 30494, 28670, 17957, 28398, 153543, 771, 594, 72482, 152872, 78680, 618, 2886, 152028, 38549, 16751,...
[ 0.08294677734375, 0.26513671875, 0.18798828125, 0.1431884765625, 0.1649169921875, 0.02740478515625, 0.09820556640625, 0.1146240234375, 0.1060791015625, 0.09716796875, 0.07403564453125, 0.1561279296875, 0.167236328125, 0.043487548828125, 0.1668701171875, 0.2293701171875, 0.05581665039...
embed
45815713_c0
45815713
elixir
0
Title: elixir guardian get current user in model Problem title: elixir guardian get current user in model Tags: elixir, phoenix-framework, authentication Problem: elixir guardian get current user in model I can't get current logged in user in my model. There are many things which I wanna do with that. e.g when a user c...
elixir guardian get current user in model elixir guardian get current user in model elixir phoenix-framework authentication elixir guardian get current user in model I can't get current logged in user in my model. There are many things which I wanna do with that. e.g when a user creates a blog post, I want to associate...
[ -0.0185546875, -0.00469970703125, 0.0137939453125, 0.0009918212890625, 0.016845703125, 0.0014801025390625, -0.0003719329833984375, 0.0030364990234375, -0.01397705078125, -0.126953125, 0.0181884765625, 0.002410888671875, -0.01165771484375, -0.003753662109375, -0.00860595703125, -0.01123...
[ 15296, 38308, 158031, 19, 2046, 43581, 38937, 23, 3299, 53073, 33, 4084, 160328, 18244, 195734, 831, 18, 73088, 759, 6165, 76, 54, 678, 28282, 1415, 1305, 3444, 30699, 53400, 1556, 5941, 32323, 106117, 3871, 29806, 5351, 15190, 20513, 44457...
[ 0.10479736328125, 0.191650390625, 0.2315673828125, 0.08062744140625, 0.1427001953125, 0.269775390625, 0.285888671875, 0.11767578125, 0.2529296875, 0.064208984375, 0.079833984375, 0.1240234375, 0.1142578125, 0.009124755859375, 0.19140625, 0.091796875, 0.06683349609375, 0.19421386718...
embed
71606167_c0
71606167
elixir
0
Title: How to accumulate the enumerable into the categories with accumulated value for each category? Problem title: How to accumulate the enumerable into the categories with accumulated value for each category? Tags: elixir Problem: How to accumulate the enumerable into the categories with accumulated value for each c...
How to accumulate the enumerable into the categories with accumulated value for each category? How to accumulate the enumerable into the categories with accumulated value for each category? elixir How sum_by_category reduce_by accumulation_fun key_fun How to accumulate the enumerable into the categories with accumulate...
[ -0.0130615234375, 0.0101318359375, -0.0130615234375, 0.020751953125, -0.031494140625, -0.006378173828125, -0.0303955078125, 0.00177764892578125, 0.0164794921875, -0.02392578125, 0.006622314453125, -0.004791259765625, 0.00147247314453125, 0.0062255859375, 0.0029144287109375, 0.001640319...
[ 11249, 47, 183278, 67, 189085, 2661, 3934, 39283, 678, 3674, 34292, 12638, 95487, 15296, 38308, 10554, 1272, 33478, 6504, 34390, 1363, 16498, 22799, 5303, 370, 99726, 117, 32354, 33, 316, 56, 2886, 50015, 10060, 224706, 4488, 357, 107, 1063...
[ 0.0972900390625, 0.020355224609375, 0.2366943359375, 0.0889892578125, 0.2174072265625, 0.1829833984375, 0.14306640625, 0.230224609375, 0.041839599609375, 0.037994384765625, 0.154296875, 0.0655517578125, 0.225341796875, 0.04815673828125, 0.1712646484375, 0.17236328125, 0.1268310546875...
embed
45196291_c0
45196291
elixir
0
Title: Unit testing assert that json response contains a list Problem title: Unit testing assert that json response contains a list Tags: unit-testing, elixir, phoenix-framework Problem: Unit testing assert that json response contains a list When writing a unit test in phoenix framework how do you check if a json respo...
Unit testing assert that json response contains a list Unit testing assert that json response contains a list unit-testing elixir phoenix-framework Unit Repo.insert Parent parent_path json_response parent.id Unit testing assert that json response contains a list When writing a unit test in phoenix framework how do you ...
[ -0.0126953125, 0.004364013671875, -0.00396728515625, -0.00154876708984375, -0.01171875, -0.005401611328125, -0.0029144287109375, -0.0032958984375, 0.00958251953125, -0.0126953125, 0.006622314453125, 0.01202392578125, -0.0147705078125, 0.0186767578125, 0.01416015625, 0.006622314453125, ...
[ 46640, 134234, 33657, 1647, 1681, 57553, 70541, 5303, 10, 25072, 6954, 15296, 38308, 53073, 33, 4084, 160328, 18244, 853, 771, 170918, 49129, 128405, 134719, 532, 32562, 3034, 170846, 3642, 12765, 2174, 5443, 1419, 35064, 35782, 20020, 27623, ...
[ 0.171630859375, 0.178955078125, 0.07958984375, 0.140625, 0.207275390625, 0.229248046875, 0.1787109375, 0.2119140625, 0.0218353271484375, 0.1796875, 0.155029296875, 0.0234222412109375, 0.14892578125, 0.0673828125, 0.0989990234375, 0.14013671875, 0.06768798828125, 0.0047607421875, ...
embed
45754213_c0
45754213
elixir
0
Title: How to make Ecto.changeset validate_required accept blank values? Problem title: How to make Ecto.changeset validate_required accept blank values? Tags: elixir, erlang, phoenix-framework, changeset, ecto Problem: How to make Ecto.changeset validate_required accept blank values? What I'm trying to do is passing a...
How to make Ecto.changeset validate_required accept blank values? How to make Ecto.changeset validate_required accept blank values? elixir erlang phoenix-framework changeset ecto How Ecto.changeset validate_required user_id How to make Ecto.changeset validate_required accept blank values? What I'm trying to do is passi...
[ 0.00701904296875, 0.000926971435546875, 0.0240478515625, 0.0174560546875, 0.005859375, -0.002197265625, -0.005157470703125, -0.033447265625, 0.0126953125, 0.0052490234375, 0.004058837890625, 0.01226806640625, 0.00823974609375, 0.0240478515625, 0.004974365234375, 0.004547119140625, 0....
[ 11249, 3249, 241, 44150, 152028, 3509, 44622, 67, 107, 3181, 2822, 26946, 44237, 142424, 38308, 72, 3066, 33, 4084, 160328, 65572, 126, 60751, 38937, 532, 5, 31577, 452, 201505, 79315, 237, 34292, 44457, 12765, 2174, 959, 17324, 138804, 184...
[ 0.05267333984375, 0.06036376953125, 0.07928466796875, 0.276123046875, 0.2012939453125, 0.1947021484375, 0.2362060546875, 0.189453125, 0.1038818359375, 0.1947021484375, 0.14404296875, 0.1903076171875, 0.244873046875, 0.1900634765625, 0.12255859375, 0.012664794921875, 0.17041015625, ...
embed
69554377_c2
69554377
elixir
2
226: :proc_lib.init_p_do_apply/3 Last message: nil State: Postgrex.Protocol ** (Mix) The database for Pento.Repo couldn't be created: killed Code signals: Postgrex.Error, Encounter, Phoenix, Elixir, v14.18.1, Erlang, OTP, erts-12.1.2, smp:8:8, ds:8:8:10, async-threads:1, phx.new, v1.6.2, HOME, POSTGRES_PASSWORD, Phoeni...
226: :proc_lib.init_p_do_apply/3 Last message: nil State: Postgrex.Protocol ** (Mix) The database for Pento.Repo couldn't be created: killed Code signals: Postgrex.Error, Encounter, Phoenix, Elixir, v14.18.1, Erlang, OTP, erts-12.1.2, smp:8:8, ds:8:8:10, async-threads:1, phx.new, v1.6.2, HOME, POSTGRES_PASSWORD, Phoeni...
[ 0.01422119140625, 0.0166015625, 0.019775390625, 0.0185546875, -0.00994873046875, -0.010498046875, -0.0172119140625, -0.027587890625, 0.00011396408081054688, -0.0096435546875, 0.0294189453125, -0.02001953125, 0.0189208984375, 0.01483154296875, -0.005706787109375, 0.017822265625, -0.00...
[ 130724, 238, 5612, 217, 254, 246, 9007, 538, 18113, 21672, 26008, 17324, 22836, 2795, 7134, 425, 10752, 188, 8447, 594, 4084, 63399, 4267, 5, 4332, 771, 69427, 18, 75935, 152388, 28864, 26073, 18468, 31611, 357, 71013, 133720, 25318, 38308,...
[ 0.23974609375, 0.004608154296875, 0.132568359375, 0.05584716796875, 0.014892578125, 0.03399658203125, 0.080810546875, 0.109130859375, 0.06195068359375, 0.1075439453125, 0.13232421875, 0.1019287109375, 0.088623046875, 0.0665283203125, 0.1849365234375, 0.147216796875, 0.02288818359375,...
embed
31836820_c0
31836820
elixir
0
Title: Enum.reduce/2 doesn&#x27;t output IO Problem title: Enum.reduce/2 doesn&#x27;t output IO Tags: elixir Problem: Enum.reduce/2 doesn't output IO I am working with Enum.reduce , and trying to add some debug outputs in the reduce, but it doesn't seem to output it in Enum.reduce/2 . Works as expected in Enum.reduce/3...
Enum.reduce/2 doesn&#x27;t output IO Enum.reduce/2 doesn&#x27;t output IO elixir Enum.reduce Enum.each IO.puts Each IO.inspect Reduce Pre-accumulator Enum.reduce/2 doesn't output IO I am working with Enum.reduce , and trying to add some debug outputs in the reduce, but it doesn't seem to output it in Enum.reduce/2 . Wo...
[ -0.019287109375, -0.02001953125, -0.01611328125, 0.033203125, -0.010009765625, 0.01104736328125, -0.017822265625, -0.01397705078125, -0.00653076171875, 0.013916015625, 0.032958984375, -0.01446533203125, 0.0322265625, -0.006927490234375, 0.0242919921875, -0.01123046875, -0.01806640625...
[ 357, 316, 107, 106357, 12477, 22027, 3768, 18, 140992, 17780, 15296, 38308, 41581, 7077, 98423, 16711, 853, 1914, 224706, 4597, 20697, 15190, 8, 85779, 34390, 48903, 27985, 18113, 11675, 25632 ]
[ 0.08001708984375, 0.184326171875, 0.130615234375, 0.2060546875, 0.23974609375, 0.059722900390625, 0.0091552734375, 0.10137939453125, 0.1795654296875, 0.2091064453125, 0.037322998046875, 0.1602783203125, 0.052947998046875, 0.050537109375, 0.0221710205078125, 0.0411376953125, 0.0990600...
embed
52250552_c0
52250552
elixir
0
Title: How can I get the MAC address from a socket returned from gen_tcp:accept/1? Problem title: How can I get the MAC address from a socket returned from gen_tcp:accept/1? Tags: gen-tcp, erlang, elixir Problem: How can I get the MAC address from a socket returned from gen_tcp:accept/1? So far I have the following Eli...
How can I get the MAC address from a socket returned from gen_tcp:accept/1? How can I get the MAC address from a socket returned from gen_tcp:accept/1? gen-tcp erlang elixir a gen_tcp:accept/1 How MAC gen_tcp:accept server_socket gen_tcp.listen client_socket gen_tcp.accept How can I get the MAC address from a socket re...
[ 0.0091552734375, 0.0322265625, -0.007598876953125, 0.0213623046875, 0.03173828125, -0.0086669921875, -0.0191650390625, 0.004669189453125, 0.003082275390625, -0.05029296875, 0.0267333984375, 0.0159912109375, -0.004669189453125, 0.004913330078125, 0.0145263671875, -0.020263671875, -0.0...
[ 11249, 831, 2046, 70, 78826, 29823, 1295, 221, 27853, 176377, 9226, 121422, 2263, 19462, 11583, 72, 3066, 15296, 38308, 10, 454, 18, 10723, 991, 63844, 23282, 2060, 25632, 25318, 18151, 98816, 11907, 72720, 33120, 63284, 4734, 1632, 58621, ...
[ 0.063720703125, 0.0787353515625, 0.105224609375, 0.036773681640625, 0.210693359375, 0.1910400390625, 0.1534423828125, 0.1217041015625, 0.193359375, 0.1468505859375, 0.1619873046875, 0.1236572265625, 0.054046630859375, 0.1622314453125, 0.135498046875, 0.05194091796875, 0.160888671875,...
embed
67180183_c0
67180183
elixir
0
Title: Swap keys in nested map in Elixir Problem title: Swap keys in nested map in Elixir Tags: algorithm, hashmap, elixir Problem: Swap keys in nested map in Elixir I have nested map with following structure in Elixir: %{ key1: %{ nkey1: val1, nkey2: val4 }, key2: %{ nkey1: val2, nkey2: val5 }, key3: %{ nkey1: val3, n...
Swap keys in nested map in Elixir Swap keys in nested map in Elixir algorithm hashmap elixir Swap Elixir key1 nkey1 val1 nkey2 val4 key2 val2 val5 key3 val3 val6 Swap keys in nested map in Elixir I have nested map with following structure in Elixir: And I'd like to transform it to the following structure. It is guarant...
[ -0.0184326171875, 0.008056640625, 0.01190185546875, -0.027099609375, -0.01214599609375, -0.012451171875, -0.01434326171875, -0.00628662109375, -0.01312255859375, 0.0020599365234375, 0.00775146484375, 0.0289306640625, 0.02001953125, 0.04296875, -0.000629425048828125, -0.0034942626953125...
[ 43062, 254, 22799, 7, 23, 8512, 71, 22288, 25318, 38308, 234873, 256, 80425, 15296, 19770, 3502, 304, 617, 758, 363, 910, 25632, 45646, 1884, 27198, 47, 142027, 756, 2663, 67919, 70541, 5701, 5423, 26267, 8781, 3917, 167201, 19048, 69307, ...
[ 0.2269287109375, 0.1461181640625, 0.2398681640625, 0.052154541015625, 0.0635986328125, 0.2479248046875, 0.12744140625, 0.1873779296875, 0.1290283203125, 0.2412109375, 0.1904296875, 0.09381103515625, 0.0794677734375, 0.0855712890625, 0.1934814453125, 0.100341796875, 0.01287841796875, ...
embed
55910560_c0
55910560
elixir
0
Title: How do i extract values inside Elixir Map Problem title: How do i extract values inside Elixir Map Tags: elixir Problem: How do i extract values inside Elixir Map Assuming I have this %{ "contact_full_name" => ["Jane", "Joe", "Job"], "contact_mobile_number" => ["1234", "5678", "9012"], "contact_relationship" => ...
How do i extract values inside Elixir Map How do i extract values inside Elixir Map elixir How Elixir Map contact_full_name Jane Joe Job contact_mobile_number contact_relationship Jone Enum.each IO.puts JaneJoeJob How do i extract values inside Elixir Map Assuming I have this How do I iterate through that map, getting ...
[ 0.00909423828125, -0.0069580078125, -0.00115203857421875, -0.004638671875, -0.01904296875, -0.0004024505615234375, -0.000156402587890625, 0.006591796875, 0.00029754638671875, 0.006256103515625, -0.02197265625, -0.00958251953125, 0.0196533203125, 0.01513671875, 0.010009765625, 0.0134887...
[ 11249, 54, 17, 125663, 142424, 46132, 25318, 38308, 42719, 15296, 5470, 25724, 11627, 48511, 40207, 32664, 86831, 2606, 1297, 57860, 2177, 86, 357, 316, 41581, 17780, 7077, 16604, 13, 194802, 66596, 8560, 8305, 22288, 20949, 145, 190875, 78, ...
[ 0.07733154296875, 0.048980712890625, 0.111083984375, 0.2421875, 0.22021484375, 0.1746826171875, 0.134521484375, 0.258544921875, 0.2320556640625, 0.11279296875, 0.169921875, 0.082275390625, 0.072021484375, 0.1900634765625, 0.19384765625, 0.20703125, 0.10101318359375, 0.0431823730468...
embed
46549132_c0
46549132
elixir
0
Title: When to use Anonymous functions in Elixir? Problem title: When to use Anonymous functions in Elixir? Tags: elixir Problem: When to use Anonymous functions in Elixir? When to use Anonymous functions in Elixir instead of named functions? For example I have this snippet: handle_open = fn {:ok, :done} -> "OK" {:erro...
When to use Anonymous functions in Elixir? When to use Anonymous functions in Elixir? elixir When Anonymous Elixir handle_open Error ExAws.S3.download_file Application.get_env ex_aws bucket_s3 foo.jpg ExAws.request When to use Anonymous functions in Elixir? When to use Anonymous functions in Elixir instead of named fun...
[ -0.00171661376953125, 0.004852294921875, 0.0098876953125, -0.01385498046875, 0.0196533203125, -0.0084228515625, 0.0098876953125, -0.00738525390625, 0.0057373046875, 0.000006198883056640625, -0.00007152557373046875, -0.01202392578125, -0.001617431640625, 0.0146484375, 0.013427734375, -0...
[ 14847, 4527, 180585, 32354, 7, 23, 25318, 38308, 47, 15296, 34831, 59636, 212059, 5443, 19725, 363, 61754, 29822, 104921, 334, 1119, 15519, 373, 27853, 5775, 31, 25687, 75616, 64457, 24, 4806, 52184, 10821, 16750, 76228, 6024, 37873, 26785 ]
[ 0.0806884765625, 0.11474609375, 0.26904296875, 0.2320556640625, 0.0465087890625, 0.0771484375, 0.128173828125, 0.282958984375, 0.0141143798828125, 0.07000732421875, 0.140869140625, 0.166259765625, 0.171142578125, 0.07421875, 0.09564208984375, 0.0738525390625, 0.1031494140625, 0.048...
embed
34404781_c0
34404781
elixir
0
Title: Converting hexadecimal string to integer Problem title: Converting hexadecimal string to integer Tags: elixir Problem: Converting hexadecimal string to integer I have a packet of hexadecimal values that I'm trying to deal with. They come in as a string. For example, one piece of the packet is C0 , which is 192 ....
Converting hexadecimal string to integer Converting hexadecimal string to integer elixir Converting Base.decode16 Converting hexadecimal string to integer I have a packet of hexadecimal values that I'm trying to deal with. They come in as a string. For example, one piece of the packet is C0 , which is 192 . However, I'...
[ -0.00360107421875, -0.0198974609375, -0.02490234375, 0.0225830078125, 0.0111083984375, 0.0126953125, -0.00933837890625, -0.0281982421875, 0.00347900390625, -0.00616455078125, -0.00145721435546875, -0.0174560546875, -0.000530242919921875, 0.034912109375, 0.0189208984375, 0.01513671875, ...
[ 1657, 814, 1916, 764, 3798, 170753, 79315, 47, 892, 1505, 15296, 38308, 44978, 112, 40899, 2485, 289, 43824, 126, 142424, 31577, 35142, 1380, 23, 27781, 63847, 313, 2389, 83, 90644, 9077, 3642, 3900, 19309, 34292, 3934, 4527, 903, 153, 87...
[ 0.036163330078125, 0.125, 0.037017822265625, 0.149658203125, 0.1629638671875, 0.1756591796875, 0.2476806640625, 0.091064453125, 0.15087890625, 0.185791015625, 0.078857421875, 0.241455078125, 0.1573486328125, 0.1009521484375, 0.137939453125, 0.1788330078125, 0.01397705078125, 0.1126...
embed
32472765_c0
32472765
elixir
0
Title: Running espec task from iex Problem title: Running espec task from iex Tags: elixir Problem: Running espec task from iex For a file watcher project, I'd like to run espec from iex . I figured out that I can do Mix.Task.run "espec", [file_path] That only works once. I gotten around to reset the state via Mix.Task...
Running espec task from iex Running espec task from iex elixir iex Running Mix.Task.run file_path Mix.Task.reenable file1_spec.exs file2_spec.exs Running espec task from iex For a file watcher project, I'd like to run espec from iex . I figured out that I can do That only works once. I gotten around to reset the state ...
[ 0.01239013671875, 0.00115966796875, -0.0030517578125, 0.0120849609375, -0.0032806396484375, -0.0022125244140625, -0.00238037109375, 0.01470947265625, -0.00482177734375, -0.029541015625, 0.00946044921875, 0.017578125, -0.00982666015625, 0.0255126953125, 0.01324462890625, 0.0167236328125...
[ 28398, 28, 16711, 66211, 1295, 17, 3355, 15296, 38308, 37286, 9874, 1042, 16428, 11435, 128405, 107, 2886, 304, 39544, 56, 13452, 1884, 11675, 831, 4734, 43240, 24145, 168398, 11341, 115058, 4488, 13028, 114453, 136, 30441, 5117, 1221, 11343,...
[ 0.111328125, 0.132080078125, 0.29345703125, 0.2137451171875, 0.1318359375, 0.127685546875, 0.2298583984375, 0.072265625, 0.1929931640625, 0.1934814453125, 0.138427734375, 0.08721923828125, 0.1171875, 0.1387939453125, 0.130126953125, 0.00677490234375, 0.132568359375, 0.0610656738281...
embed
45571863_c0
45571863
elixir
0
Title: Phoenix migration or seeds for inserting data into lookup table Problem title: Phoenix migration or seeds for inserting data into lookup table Tags: elixir, database, lookup-tables, phoenix-framework Problem: Phoenix migration or seeds for inserting data into lookup table I am fairly new to Elixir/Phoenix and I ...
Phoenix migration or seeds for inserting data into lookup table Phoenix migration or seeds for inserting data into lookup table elixir database lookup-tables phoenix-framework Phoenix Repo.insert Phoenix migration or seeds for inserting data into lookup table I am fairly new to Elixir/Phoenix and I am not sure what is ...
[ 0.005279541015625, -0.0126953125, 0.00921630859375, -0.01019287109375, 0.0142822265625, 0.000293731689453125, 0.0128173828125, -0.010986328125, 0, -0.02099609375, 0.0228271484375, 0.0004520416259765625, 0.0157470703125, 0.01531982421875, 0.005340576171875, 0.007080078125, 0.004699707...
[ 133720, 212416, 707, 40, 297, 7, 100, 183540, 214, 2053, 3934, 6713, 2037, 23180, 15296, 38308, 63399, 22819, 53073, 33, 4084, 160328, 853, 771, 5, 73, 33657, 180663, 3525, 25318, 683, 497, 9077, 90698, 11522, 41361, 1221, 188347, 5423, 1...
[ 0.313720703125, 0.27880859375, 0.077392578125, 0.1722412109375, 0.230224609375, 0.08587646484375, 0.0254669189453125, 0.2261962890625, 0.047760009765625, 0.154296875, 0.12548828125, 0.1258544921875, 0.177490234375, 0.2003173828125, 0.073974609375, 0.23095703125, 0.1485595703125, 0....
embed
39925763_c0
39925763
elixir
0
Title: Link to external types in ExDoc Problem title: Link to external types in ExDoc Tags: documentation, elixir, ex-doc Problem: Link to external types in ExDoc I recently created my first Hex Package; Ecto.Rut and I'm now working on its documentation. Since it uses Ecto.Repo at the back and returns Ecto.Schema and E...
Link to external types in ExDoc Link to external types in ExDoc documentation elixir ex-doc Link ExDoc Ecto.Repo Ecto.Schema Ecto.Changeset Keyword.t Ecto.Schema.t no_return Link to external types in ExDoc I recently created my first Hex Package; Ecto.Rut and I'm now working on its documentation. Since it uses Ecto.Rep...
[ 0.021240234375, 0.002899169921875, -0.005889892578125, 0.002166748046875, 0.0021514892578125, 0.01495361328125, -0.0027618408203125, -0.002899169921875, -0.00011396408081054688, -0.024169921875, -0.00011873245239257812, -0.0196533203125, 0.0050048828125, 0.033203125, 0.0130615234375, 0...
[ 12779, 47, 173591, 52895, 5443, 8331, 238, 23, 209806, 15296, 38308, 1119, 29713, 241, 44150, 4332, 771, 25452, 11883, 127008, 4188, 126, 189755, 18, 110, 65395, 75935, 5117, 1529, 425, 56607, 4588, 26951, 20697, 4420, 30646, 3126, 2856, 13...
[ 0.214111328125, 0.10443115234375, 0.2132568359375, 0.253662109375, 0.189453125, 0.1771240234375, 0.1256103515625, 0.043548583984375, 0.204833984375, 0.0804443359375, 0.207275390625, 0.189208984375, 0.1854248046875, 0.0848388671875, 0.267822265625, 0.104248046875, 0.158203125, 0.082...
embed
69674264_c1
69674264
elixir
1
is.ProfileLocation<>, valid?: true > But when I update_location : def update_location(%Location{} = location, attrs) do location |> Location.changeset(attrs) |> Repo.update() end Somehow my cast_coordinate throw argument error , because changeset is: #Ecto.Changeset<action: nil, changes: %{}, errors: [], data: #OkBacke...
is.ProfileLocation<>, valid?: true > But when I update_location : def update_location(%Location{} = location, attrs) do location |> Location.changeset(attrs) |> Repo.update() end Somehow my cast_coordinate throw argument error , because changeset is: #Ecto.Changeset<action: nil, changes: %{}, errors: [], data: #OkBacke...
[ -0.000537872314453125, 0.005828857421875, 0.0218505859375, -0.0021514892578125, -0.00799560546875, -0.0054931640625, 0.01611328125, 0.0004177093505859375, 0.00885009765625, 0.01055908203125, -0.00634765625, 0.00457763671875, 0.0052490234375, -0.007415771484375, -0.00029754638671875, -0...
[ 83, 147161, 1340, 15363, 120639, 35604, 29568, 4966, 3229, 87, 28350, 87632, 8, 420, 3949, 31913, 243, 4295, 54, 90788, 152028, 3509, 27639, 853, 771, 117008, 3564, 759, 37702, 587, 43297, 67, 104250, 10750, 18499, 65572, 126, 647, 44150, ...
[ 0.0628662109375, 0.178955078125, 0.1322021484375, 0.1658935546875, 0.1282958984375, 0.1688232421875, 0.109619140625, 0.0880126953125, 0.049285888671875, 0.0293731689453125, 0.1998291015625, 0.2186279296875, 0.03277587890625, 0.0144195556640625, 0.0174713134765625, 0.221435546875, 0.0...
embed
71145975_c0
71145975
elixir
0
Title: Is &quot;with&quot; Within Elixir a New Scope? Problem title: Is &quot;with&quot; Within Elixir a New Scope? Tags: elixir Problem: Is "with" Within Elixir a New Scope? I'm guessing that within a with in Elixir, any variables in the block are local to the block. I made this code to test my assumption: defmodule T...
Is &quot;with&quot; Within Elixir a New Scope? Is &quot;with&quot; Within Elixir a New Scope? elixir Within Elixir Scope Enum.find IO.write is_nil Enum.finds Is "with" Within Elixir a New Scope? I'm guessing that within a with in Elixir, any variables in the block are local to the block. I made this code to test my ass...
[ -0.004608154296875, 0.0150146484375, -0.0201416015625, -0.0034027099609375, -0.01422119140625, 0.0157470703125, 0.01226806640625, 0.00726318359375, 0.00982666015625, -0.008056640625, -0.004913330078125, 0.0098876953125, 0.00933837890625, 0.009765625, 0.0277099609375, 0.0205078125, 0....
[ 2071, 76228, 17106, 73, 25318, 38308, 2356, 182783, 13, 15296, 357, 316, 111607, 17780, 83, 17324, 10, 57767, 28032, 678, 23, 77336, 46389, 4000, 18151, 3034, 237259, 84751, 1690, 418, 136, 304, 621, 12765, 99091, 142424, 50782, 70820, 4324...
[ 0.0531005859375, 0.24951171875, 0.1484375, 0.1700439453125, 0.12353515625, 0.280029296875, 0.10546875, 0.19189453125, 0.095947265625, 0.08673095703125, 0.0736083984375, 0.1922607421875, 0.146484375, 0.12109375, 0.048553466796875, 0.1697998046875, 0.0135498046875, 0.0565185546875, ...
embed
72484643_c0
72484643
elixir
0
Title: ** (EXIT) process attempted to call itself when I have a child iterate through Problem title: ** (EXIT) process attempted to call itself when I have a child iterate through Tags: erlang, elixir Problem: ** (EXIT) process attempted to call itself when I have a child iterate through I have a function So when the u...
** (EXIT) process attempted to call itself when I have a child iterate through ** (EXIT) process attempted to call itself when I have a child iterate through erlang elixir EXIT ** (EXIT) process attempted to call itself when I have a child iterate through I have a function So when the update function is called in a gen...
[ 0.011474609375, 0.00174713134765625, -0.005279541015625, -0.00182342529296875, -0.0103759765625, 0.00787353515625, 0.0048828125, 0.00115203857421875, 0.003692626953125, -0.044921875, -0.00127410888671875, 0.009033203125, -0.0113525390625, 0.01708984375, 0.031494140625, 0.00958251953125...
[ 16459, 26939, 6371, 9433, 81887, 11782, 68034, 765, 29041, 8560, 8305, 72, 3066, 15296, 38308, 29426, 67, 32354, 28350, 35839, 9226, 39642, 34475, 35431, 13648, 10, 756, 21373, 10644, 15937, 193348, 11675, 3934, 831, 5351, 48322, 10932, 442, ...
[ 0.0164337158203125, 0.119140625, 0.1505126953125, 0.126708984375, 0.1181640625, 0.163818359375, 0.1075439453125, 0.10650634765625, 0.15625, 0.159423828125, 0.045806884765625, 0.06597900390625, 0.1951904296875, 0.055633544921875, 0.176513671875, 0.109619140625, 0.002044677734375, 0....
embed
46733581_c0
46733581
elixir
0
Title: A PostgreSQL array of varchar(custom_size) in Elixir&#x27;s Ecto Problem title: A PostgreSQL array of varchar(custom_size) in Elixir&#x27;s Ecto Tags: ecto, elixir, phoenix-framework, postgresql Problem: A PostgreSQL array of varchar(custom_size) in Elixir's Ecto I have an Ecto schema like this: schema "quotes" ...
A PostgreSQL array of varchar(custom_size) in Elixir&#x27;s Ecto A PostgreSQL array of varchar(custom_size) in Elixir&#x27;s Ecto ecto elixir phoenix-framework postgresql PostgreSQL custom_size Elixir Ecto A PostgreSQL array of varchar(custom_size) in Elixir's Ecto I have an Ecto schema like this: In a corresponding mi...
[ 0.0281982421875, -0.0125732421875, 0.00390625, 0.0130615234375, -0.00390625, -0.00439453125, -0.00927734375, -0.01300048828125, 0.0185546875, 0.0013885498046875, 0.02197265625, -0.00836181640625, -0.0174560546875, -0.000009357929229736328, -0.0106201171875, 0.006805419921875, -0.0081...
[ 62, 2795, 7134, 158897, 10298, 53, 285, 9254, 11680, 5928, 62539, 25318, 38308, 3768, 241, 44150, 60751, 15296, 53073, 33, 4084, 160328, 1305, 17562, 99247, 114122, 111, 61903, 1884, 903, 42518, 212416, 3444, 12638, 7909, 23, 69141, 186, 67...
[ 0.0343017578125, 0.0771484375, 0.14892578125, 0.1802978515625, 0.15283203125, 0.11767578125, 0.152099609375, 0.2362060546875, 0.0985107421875, 0.1414794921875, 0.1895751953125, 0.123291015625, 0.2412109375, 0.08154296875, 0.1070556640625, 0.264892578125, 0.20068359375, 0.0676879882...
embed
32970288_c0
32970288
elixir
0
Title: How to stream STDIO into variables in Elixir? Problem title: How to stream STDIO into variables in Elixir? Tags: stdout, stream, stdin, elixir Problem: How to stream STDIO into variables in Elixir? I have a Ruby Map/Reduce pipeline where STDIO is cat'ed to the mapper etc. cat input.csv | mapper.rb | sort | reduc...
How to stream STDIO into variables in Elixir? How to stream STDIO into variables in Elixir? stdout stream stdin elixir How STDIO Elixir input.csv mapper.rb reducer.rb output.csv ARGF.each field1 field2 field3 line.split How to stream STDIO into variables in Elixir? I have a Ruby Map/Reduce pipeline where STDIO is cat'e...
[ -0.0079345703125, -0.0107421875, -0.01409912109375, 0.007354736328125, 0.0152587890625, -0.0194091796875, 0.0037384033203125, -0.0087890625, 0.003692626953125, -0.0000934600830078125, -0.0162353515625, 0.009765625, 0.00604248046875, 0.0213623046875, 0.0033111572265625, -0.0094604492187...
[ 11249, 47, 75973, 16992, 124983, 3934, 77336, 7, 23, 25318, 38308, 6138, 246, 1003, 3035, 15296, 107730, 4439, 334, 291, 8079, 13471, 34390, 42, 140992, 13685, 79035, 41581, 44457, 13315, 4353, 158189, 42719, 4332, 106357, 137158, 2256, 7515,...
[ 0.0877685546875, 0.04730224609375, 0.264404296875, 0.1995849609375, 0.315673828125, 0.1748046875, 0.27099609375, 0.036834716796875, 0.06549072265625, 0.1492919921875, 0.267333984375, 0.1983642578125, 0.04437255859375, 0.1514892578125, 0.1448974609375, 0.1251220703125, 0.1124267578125...
embed
52360555_c0
52360555
elixir
0
Title: How do you get the elixir compiler to show warnings when running a phoenix server? Problem title: How do you get the elixir compiler to show warnings when running a phoenix server? Tags: elixir-iex, elixir-mix, elixir, phoenix-framework Problem: How do you get the elixir compiler to show warnings when running a ...
How do you get the elixir compiler to show warnings when running a phoenix server? How do you get the elixir compiler to show warnings when running a phoenix server? elixir-iex elixir-mix elixir phoenix-framework How phx.server Compiling app_web user_controller.ex:37 How do you get the elixir compiler to show warnings ...
[ -0.00032806396484375, -0.0027008056640625, 0.0185546875, 0.0038299560546875, -0.005401611328125, 0.0289306640625, -0.02587890625, 0.0145263671875, -0.000530242919921875, -0.038330078125, -0.020263671875, 0.006439208984375, 0.0218505859375, 0.0244140625, 0.0103759765625, 0.0194091796875...
[ 11249, 2046, 15296, 38308, 9969, 34759, 7639, 1631, 6977, 51042, 53073, 33, 4084, 10723, 14, 3355, 62015, 11521, 425, 39642, 15612, 4027, 14051, 38937, 81988, 603, 30225, 3229, 28398, 17, 56002, 17664, 68018, 5117, 1733, 11675, 82365, 1957, ...
[ 0.013336181640625, 0.0151214599609375, 0.0828857421875, 0.2298583984375, 0.1214599609375, 0.1533203125, 0.1107177734375, 0.1685791015625, 0.137939453125, 0.0797119140625, 0.068115234375, 0.1072998046875, 0.1514892578125, 0.144775390625, 0.03155517578125, 0.14306640625, 0.111206054687...
embed
33395763_c0
33395763
elixir
0
Title: Why are there two ways to define named functions in elixir? Problem title: Why are there two ways to define named functions in elixir? Tags: elixir Problem: Why are there two ways to define named functions in elixir? In elixir, one could define the "sum" function in two different ways: def sum, do: 0 def sum(a),...
Why are there two ways to define named functions in elixir? Why are there two ways to define named functions in elixir? elixir Why Why are there two ways to define named functions in elixir? In elixir, one could define the "sum" function in two different ways: or I can even mix the two approaches: My questions are: Why...
[ 0.0035247802734375, 0.00537109375, 0.0234375, 0.0166015625, -0.005523681640625, -0.004180908203125, -0.012939453125, -0.008056640625, 0.0289306640625, 0.016357421875, 0.0103759765625, -0.025146484375, -0.00762939453125, 0.0169677734375, 0.01458740234375, 0.022705078125, 0.01312255859...
[ 44084, 621, 2685, 6626, 48322, 61924, 24, 4806, 32354, 7, 23, 15296, 38308, 47, 360, 5809, 11832, 12921, 17664, 51515, 55391, 5701, 17932, 12601, 2822, 2256, 92940 ]
[ 0.11376953125, 0.0146331787109375, 0.0294342041015625, 0.1651611328125, 0.136962890625, 0.2017822265625, 0.11572265625, 0.1605224609375, 0.216064453125, 0.082275390625, 0.06414794921875, 0.0931396484375, 0.2371826171875, 0.00238037109375, 0.0226287841796875, 0.037872314453125, 0.2331...
embed
30857264_c0
30857264
elixir
0
Title: What is the number that shows up after you define an anonymous function in elixir? Problem title: What is the number that shows up after you define an anonymous function in elixir? Tags: elixir Problem: What is the number that shows up after you define an anonymous function in elixir? When you define an anonymou...
What is the number that shows up after you define an anonymous function in elixir? What is the number that shows up after you define an anonymous function in elixir? elixir What erl_eval.expr What is the number that shows up after you define an anonymous function in elixir? When you define an anonymous function in elix...
[ 0.0164794921875, 0.0034637451171875, -0.01129150390625, 0.00872802734375, 0.0191650390625, 0.02490234375, 0.0150146484375, 0.00726318359375, 0.0155029296875, -0.0174560546875, -0.00958251953125, -0.0244140625, -0.015869140625, 0.03369140625, 0.02734375, 0.00157928466796875, 0.0170898...
[ 14012, 45831, 1257, 7103, 61924, 52184, 10821, 32354, 15296, 38308, 23, 72, 141, 13, 1405, 83613, 42, 83, 450, 16750, 97249, 165160, 77110, 3117, 9285, 11583, 56, 12147, 35509, 187, 2481, 106, 79459, 11343, 6626, 20543, 140458, 12477, 17262...
[ 0.1822509765625, 0.1175537109375, 0.1141357421875, 0.1422119140625, 0.1787109375, 0.20068359375, 0.1536865234375, 0.1787109375, 0.08270263671875, 0.2470703125, 0.054534912109375, 0.038116455078125, 0.1116943359375, 0.04974365234375, 0.239501953125, 0.1060791015625, 0.1015625, 0.019...
embed
61037029_c0
61037029
elixir
0
Title: How to check nil in nested value with EEx phoenix template Problem title: How to check nil in nested value with EEx phoenix template Tags: elixir, phoenix-framework Problem: How to check nil in nested value with EEx phoenix template I have following code. I would like to show members point. All members have poin...
How to check nil in nested value with EEx phoenix template How to check nil in nested value with EEx phoenix template elixir phoenix-framework How EEx member.point1 member.point2 member.point3 is_nil How to check nil in nested value with EEx phoenix template I have following code. I would like to show members point. Al...
[ -0.0096435546875, -0.0233154296875, 0.0220947265625, -0.000823974609375, -0.00897216796875, 0.01055908203125, 0.022705078125, -0.01104736328125, 0.01214599609375, -0.00958251953125, 0.006591796875, -0.007171630859375, 0.035400390625, 0.00933837890625, 0.006561279296875, 0.0050354003906...
[ 11249, 12765, 17324, 23, 8512, 71, 34292, 678, 241, 19279, 53073, 33, 4084, 110934, 15296, 38308, 160328, 32786, 38496, 418, 304, 363, 83, 25632, 18151, 7639, 43032, 6275, 3164, 19713, 26950, 138, 29569, 71864, 18499, 7693, 13, 3355, 21922,...
[ 0.03045654296875, 0.21826171875, 0.2371826171875, 0.06671142578125, 0.2080078125, 0.1171875, 0.173583984375, 0.03533935546875, 0.1024169921875, 0.2099609375, 0.06683349609375, 0.101318359375, 0.146484375, 0.25390625, 0.0290374755859375, 0.140625, 0.06597900390625, 0.1673583984375, ...
embed
60385212_c1
60385212
elixir
1
I am also aware that I could just specify a render function that accepts 404.html but that also feels like a bit more of a bandaid than I would like. My ultimate goal is to get Phoenix to not want to render 404.html, rather I would like to either arbitrarily specify the template, or at the least, tell Phoenix it shoul...
I am also aware that I could just specify a render function that accepts 404.html but that also feels like a bit more of a bandaid than I would like. My ultimate goal is to get Phoenix to not want to render 404.html, rather I would like to either arbitrarily specify the template, or at the least, tell Phoenix it shoul...
[ -0.03515625, 0.02001953125, 0.001617431640625, -0.01409912109375, -0.01068115234375, -0.0027008056640625, -0.0247802734375, -0.002288818359375, -0.006378173828125, -0.033935546875, -0.0196533203125, -0.006072998046875, 0.0106201171875, -0.00048828125, 0.004608154296875, 0.0205078125, ...
[ 107419, 5809, 1660, 40140, 18929, 89159, 32354, 26946, 201, 39876, 7693, 12319, 1884, 1286, 10247, 532, 20654, 67, 69236, 2046, 133720, 47, 959, 3444, 61799, 110934, 19713, 14192, 442, 5608, 6713, 100, 170, 1681, 64457, 41143, 29806, 38415, ...
[ 0.1099853515625, 0.0592041015625, 0.0270843505859375, 0.1585693359375, 0.07220458984375, 0.2266845703125, 0.176513671875, 0.1407470703125, 0.111083984375, 0.24951171875, 0.203857421875, 0.125244140625, 0.053009033203125, 0.0220184326171875, 0.02996826171875, 0.0665283203125, 0.088317...
embed
50377474_c0
50377474
elixir
0
Title: Elixir passing reference of a module as function argument Problem title: Elixir passing reference of a module as function argument Tags: elixir, phoenix-framework Problem: Elixir passing reference of a module as function argument I am very new to elixir/phoenix. I have a function like this defp get_list(old_resu...
Elixir passing reference of a module as function argument Elixir passing reference of a module as function argument elixir phoenix-framework Elixir get_list old_result MY.Model.search_name Enum.concat Model AnotherModel MY.AnotherModel.search_name Elixir passing reference of a module as function argument I am very new ...
[ -0.00860595703125, 0.00909423828125, 0.004608154296875, -0.00102996826171875, 0.0184326171875, -0.00823974609375, -0.006011962890625, -0.006072998046875, 0.01458740234375, -0.0830078125, 0.01324462890625, -0.01226806640625, 0.000331878662109375, 0.025390625, 0.0052490234375, -0.0111694...
[ 25318, 38308, 452, 6953, 91067, 111, 88996, 237, 32354, 10750, 15296, 53073, 33, 4084, 160328, 2046, 6562, 10332, 2109, 7136, 54133, 140290, 86250, 11627, 357, 316, 2271, 4460, 13293, 116267, 3525, 22014, 1884, 903, 1286, 223, 3444, 27875, ...
[ 0.1229248046875, 0.237060546875, 0.1181640625, 0.05157470703125, 0.25732421875, 0.03192138671875, 0.2142333984375, 0.0736083984375, 0.19873046875, 0.216064453125, 0.0875244140625, 0.012054443359375, 0.06121826171875, 0.112060546875, 0.0287628173828125, 0.0152587890625, 0.1552734375, ...
embed
34905328_c0
34905328
elixir
0
Title: How to make list of integers with a start, length and increment in Elixir? Problem title: How to make list of integers with a start, length and increment in Elixir? Tags: elixir Problem: How to make list of integers with a start, length and increment in Elixir? I would like to generate a list of integers. I have...
How to make list of integers with a start, length and increment in Elixir? How to make list of integers with a start, length and increment in Elixir? elixir How Elixir Enum.to_list length-1 How to make list of integers with a start, length and increment in Elixir? I would like to generate a list of integers. I have the...
[ -0.01373291015625, 0.013427734375, -0.01055908203125, 0.00531005859375, 0.007293701171875, 0.01708984375, -0.004241943359375, 0.00408935546875, 0.009765625, -0.0272216796875, -0.0108642578125, 0.00439453125, 0.012939453125, 0.047119140625, 0.011474609375, -0.0169677734375, -0.0143432...
[ 11249, 47, 3249, 5303, 111, 892, 26255, 678, 4034, 4, 140909, 136, 158661, 23, 25318, 38308, 15296, 357, 316, 188, 6562, 5759, 10, 1884, 139392, 72134, 34292, 8781, 831, 116546, 37842, 46683, 3220, 115061, 32354, 15935, 18, 4488, 37457, 1...
[ 0.0802001953125, 0.02911376953125, 0.11767578125, 0.2149658203125, 0.0487060546875, 0.168212890625, 0.1766357421875, 0.093505859375, 0.178955078125, 0.036773681640625, 0.1947021484375, 0.10107421875, 0.251953125, 0.085205078125, 0.138427734375, 0.2724609375, 0.073974609375, 0.06286...
embed
37386446_c0
37386446
elixir
0
Title: Stream with recursive function in Elixir language Problem title: Stream with recursive function in Elixir language Tags: recursion, elixir, stream Problem: Stream with recursive function in Elixir language In scala the code below works (I know it's weird, but I want to test stream concat with recursive functions...
Stream with recursive function in Elixir language Stream with recursive function in Elixir language recursion elixir stream Stream Elixir Stream.from Ones Stream.take Stream.concat Ones.ones Stream.iterate Enum.take Stream with recursive function in Elixir language In scala the code below works (I know it's weird, but ...
[ -0.004791259765625, 0.01043701171875, -0.00555419921875, -0.019775390625, 0.003875732421875, -0.0262451171875, 0.002838134765625, 0.0030517578125, 0.00836181640625, -0.064453125, -0.000457763671875, -0.0052490234375, 0.01507568359375, 0.0264892578125, 0.0233154296875, -0.01129150390625...
[ 115061, 678, 195625, 5844, 32354, 25318, 38308, 46876, 1830, 15296, 75973, 161063, 6561, 7, 78219, 2271, 4460, 25749, 1486, 17957, 357, 316, 6, 146232, 18151, 35064, 43240, 179459, 3034, 158, 54397, 183234, 442, 10756, 2046, 5701, 21543, 3691...
[ 0.253662109375, 0.0697021484375, 0.2188720703125, 0.1419677734375, 0.156494140625, 0.0931396484375, 0.21728515625, 0.1221923828125, 0.005157470703125, 0.0765380859375, 0.2255859375, 0.0916748046875, 0.129638671875, 0.03631591796875, 0.1156005859375, 0.052276611328125, 0.1845703125, ...
embed
43845282_c0
43845282
elixir
0
Title: Elixir remote pubsub Problem title: Elixir remote pubsub Tags: publish-subscribe, elixir Problem: Elixir remote pubsub I'm learning Elixir and one of the things I would like to implement is a simple pubsub, where the publisher and consumer reside in different nodes, for now without the use of tooling like Redis....
Elixir remote pubsub Elixir remote pubsub publish-subscribe elixir Elixir gproc.send event_manager Elixir remote pubsub I'm learning Elixir and one of the things I would like to implement is a simple pubsub, where the publisher and consumer reside in different nodes, for now without the use of tooling like Redis. What ...
[ -0.00238037109375, 0.044677734375, -0.02294921875, -0.0019989013671875, -0.00897216796875, -0.0034637451171875, -0.0179443359375, -0.01165771484375, -0.002593994140625, -0.049560546875, 0.01031494140625, 0.00225830078125, 0.0263671875, 0.0264892578125, -0.0036163330078125, 0.0150756835...
[ 25318, 38308, 148814, 64792, 22144, 80299, 34601, 15296, 706, 3454, 238, 39285, 19732, 141395, 52080, 1884, 29479, 8781, 56, 136, 107222, 157176, 12921, 110, 988, 5036, 15490, 55516, 6096, 164, 31577, 53073, 33, 4084, 50717, 3525, 19685, 40, ...
[ 0.125, 0.25390625, 0.231201171875, 0.1856689453125, 0.293701171875, 0.17431640625, 0.06634521484375, 0.083251953125, 0.0235748291015625, 0.1343994140625, 0.1414794921875, 0.1650390625, 0.140625, 0.2039794921875, 0.0531005859375, 0.0042724609375, 0.107177734375, 0.0689697265625, 0...
embed
61961980_c0
61961980
elixir
0
Title: Don&#x27;t truncate query results in the console Problem title: Don&#x27;t truncate query results in the console Tags: phoenix-framework, ecto, elixir Problem: Don't truncate query results in the console I made this query: query = from i in MyApp.Image, where: i.deleted_at >= ^Timex.beginning_of_day(date), where...
Don&#x27;t truncate query results in the console Don&#x27;t truncate query results in the console phoenix-framework ecto elixir i Don MyApp.Image i.deleted_at Timex.beginning_of_day Timex.end_of_day i.path order_by MyApp.Repo.all Don't truncate query results in the console I made this query: and when I call the query: ...
[ -0.004638671875, 0.020263671875, 0.00016117095947265625, 0.011474609375, -0.01019287109375, -0.00537109375, -0.004425048828125, -0.003204345703125, 0.004730224609375, -0.036865234375, -0.005340576171875, -0.0009765625, 0.0050048828125, 0.01177978515625, 0.00341796875, 0.0126953125, -...
[ 7650, 3768, 18, 14617, 19, 33478, 41, 1294, 50339, 23, 130250, 53073, 33, 4084, 160328, 18244, 60751, 15296, 38308, 17, 2646, 39179, 216960, 8520, 19055, 425, 5636, 3611, 128405, 12989, 771, 5584, 11782, 2046, 10031, 1221, 7103, 5117, 836, ...
[ 0.084228515625, 0.0811767578125, 0.113037109375, 0.175048828125, 0.10205078125, 0.1429443359375, 0.1605224609375, 0.1451416015625, 0.21630859375, 0.0711669921875, 0.2529296875, 0.05657958984375, 0.0706787109375, 0.1148681640625, 0.1055908203125, 0.0196380615234375, 0.2305908203125, ...
embed
36556159_c0
36556159
elixir
0
Title: Can&#x27;t get error_tag to work in elixir phoenix Problem title: Can&#x27;t get error_tag to work in elixir phoenix Tags: phoenix-framework, elixir Problem: Can't get error_tag to work in elixir phoenix Given I have a template <%= label f, :who_person do [content_tag(:span, "What is your name?"), text_input(f, ...
Can&#x27;t get error_tag to work in elixir phoenix Can&#x27;t get error_tag to work in elixir phoenix phoenix-framework elixir Can error_tag who_person content_tag What text_input required_fields Can't get error_tag to work in elixir phoenix Given I have a template And a model with the attribute Can anyone tell me why,...
[ -0.008544921875, 0.0103759765625, -0.01470947265625, -0.006744384765625, 0.00799560546875, 0.006500244140625, -0.00860595703125, -0.01312255859375, 0.005401611328125, -0.042236328125, 0.0181884765625, -0.0255126953125, 0.00958251953125, 0.0255126953125, 0.00775146484375, 0.005676269531...
[ 4171, 3768, 2046, 18499, 6936, 4488, 23, 15296, 38308, 53073, 33, 4084, 160328, 2750, 30816, 10941, 7986, 7077, 56065, 28394, 18, 110934, 3299, 150380, 14192, 15400, 3229, 137447, 44457, 201505, 26008, 959, 108975, 44622, 46132, 65572, 126, 8...
[ 0.038543701171875, 0.053985595703125, 0.04827880859375, 0.1937255859375, 0.232666015625, 0.1199951171875, 0.07623291015625, 0.06842041015625, 0.205810546875, 0.07708740234375, 0.1156005859375, 0.1385498046875, 0.042236328125, 0.094482421875, 0.1024169921875, 0.1568603515625, 0.084472...
embed
47708302_c0
47708302
elixir
0
Title: BadMapError - Elixir/Phoenix Problem title: BadMapError - Elixir/Phoenix Tags: elixir, phoenix-framework Problem: BadMapError - Elixir/Phoenix I'm trying to make a custom validation, so I've made a function that runs in a changeset but I'm getting an error that doesn't seem to make much sense to me at the moment...
BadMapError - Elixir/Phoenix BadMapError - Elixir/Phoenix elixir phoenix-framework BadMapError Elixir Phoenix required_fields user_id league_id validate_required duplicate_check _struct IEx.pry GET BadMapError - Elixir/Phoenix I'm trying to make a custom validation, so I've made a function that runs in a changeset but ...
[ -0.01348876953125, 0.00732421875, -0.004425048828125, -0.00433349609375, -0.0021514892578125, 0.021484375, -0.0128173828125, -0.0198974609375, 0.0081787109375, -0.0184326171875, -0.005950927734375, 0.0010833740234375, 0.040771484375, 0.024169921875, 0.00830078125, -0.012939453125, -0...
[ 12745, 166179, 18468, 31611, 25318, 38308, 64, 497, 33, 4084, 15296, 53073, 160328, 18244, 133720, 56065, 28394, 38937, 532, 192428, 44622, 67, 3181, 2822, 171763, 78292, 36716, 87, 19279, 1294, 79794, 31577, 114122, 1363, 10, 32354, 127877, ...
[ 0.185302734375, 0.201904296875, 0.177490234375, 0.159423828125, 0.1064453125, 0.23193359375, 0.06298828125, 0.04010009765625, 0.10101318359375, 0.1461181640625, 0.0711669921875, 0.06524658203125, 0.10498046875, 0.038665771484375, 0.244384765625, 0.18359375, 0.17919921875, 0.1098632...
embed
57098203_c0
57098203
elixir
0
Title: Do functions defined inside an if block get taken out at compile time? Will a top-level if get run at compile time? Problem title: Do functions defined inside an if block get taken out at compile time? Will a top-level if get run at compile time? Tags: elixir Problem: Do functions defined inside an if block get ...
Do functions defined inside an if block get taken out at compile time? Will a top-level if get run at compile time? Do functions defined inside an if block get taken out at compile time? Will a top-level if get run at compile time? elixir Will Mix.env some_func do_sensitive_stuff Do functions defined inside an if block...
[ 0.00592041015625, -0.01171875, 0.01312255859375, 0.00592041015625, -0.0155029296875, 0.01373291015625, 0.0087890625, 0.0106201171875, -0.0030670166015625, -0.00019741058349609375, -0.03076171875, 0.004486083984375, -0.01348876953125, 0.023193359375, 0.0162353515625, 0.0230712890625, ...
[ 984, 32354, 7, 61924, 46132, 2174, 46389, 39958, 1810, 9969, 1340, 1733, 20255, 2663, 67919, 11675, 15296, 38308, 37286, 33, 334, 16498, 54, 176302, 13, 271, 21493, 99, 48031, 1884, 19882, 33245, 65998, 13452, 1221, 18151, 23, 959, 2046, ...
[ 0.0162506103515625, 0.218505859375, 0.0246124267578125, 0.161865234375, 0.0941162109375, 0.2081298828125, 0.214111328125, 0.0926513671875, 0.1734619140625, 0.126708984375, 0.14501953125, 0.1240234375, 0.07989501953125, 0.1112060546875, 0.1861572265625, 0.1038818359375, 0.037963867187...
embed
72414896_c0
72414896
elixir
0
Title: Use of colon in do expressions in Elixir Problem title: Use of colon in do expressions in Elixir Tags: elixir Problem: Use of colon in do expressions in Elixir I am learning Elixir and I can't seem to understand the usage of : . Following three lines illustrate this: iex(1)> quote do: 1 + 3 {:+, [context: Elixir...
Use of colon in do expressions in Elixir Use of colon in do expressions in Elixir elixir SyntaxError Use Elixir Kernel Oops iex:10:16 Use of colon in do expressions in Elixir I am learning Elixir and I can't seem to understand the usage of : . Following three lines illustrate this: What does : do here? And why do I get...
[ 0.00726318359375, -0.00421142578125, -0.0028839111328125, 0.000545501708984375, -0.0186767578125, 0.0021209716796875, 0.006622314453125, 0.011962890625, 0.0016326904296875, -0.0169677734375, 0.007537841796875, -0.01275634765625, 0.009765625, 0.0014190673828125, 0.0015716552734375, 0.01...
[ 36836, 111, 46512, 23, 54, 125195, 25318, 38308, 15296, 19010, 86531, 18468, 119125, 583, 68818, 3355, 22354, 7, 52080, 28219, 127689, 152, 17262, 58755, 4865, 14602, 3688, 15400, 954, 1076, 425, 18499, 4527, 3564, 678, 50960, 107730, 34627, ...
[ 0.1053466796875, 0.06683349609375, 0.277099609375, 0.0699462890625, 0.1326904296875, 0.186767578125, 0.1199951171875, 0.25244140625, 0.081787109375, 0.0364990234375, 0.1251220703125, 0.0650634765625, 0.1197509765625, 0.0452880859375, 0.106689453125, 0.034332275390625, 0.0333251953125...
embed