chunk_id
large_string
question_id
large_string
language
large_string
chunk_index
int64
chunk_text
large_string
sparse_text
large_string
dense_vector
list
sparse_indices
list
sparse_values
list
export_source
large_string
30609604_c0
30609604
ruby
0
Title: How to merge hash of arrays? Problem title: How to merge hash of arrays? Tags: ruby Problem: How to merge hash of arrays? Code signals: How
How to merge hash of arrays? How to merge hash of arrays? ruby How How to merge hash of arrays? I have an array: I want to change it to this: Rules/Requirements: Hashes of same value of a go to one hash b should be an array of {c => , d =>} d should be an array d with same value of c go to same array
[ -0.01446533203125, 0.0030517578125, -0.003326416015625, 0.000030994415283203125, -0.017578125, -0.0047607421875, -0.01458740234375, -0.00089263916015625, 0.008544921875, -0.0145263671875, -0.0106201171875, 0.006622314453125, 0.0218505859375, 0.0250244140625, -0.01043701171875, -0.02075...
[ 11249, 47, 42564, 1556, 127, 111, 10298, 4778, 21922, 53, 765, 3444, 15549, 903, 139118, 3181, 107, 162087, 90, 5701, 34292, 738, 1632, 876, 5608, 186, 238, 104, 501 ]
[ 0.1312255859375, 0.1116943359375, 0.2734375, 0.22998046875, 0.2257080078125, 0.1669921875, 0.1978759765625, 0.2069091796875, 0.047210693359375, 0.101318359375, 0.021575927734375, 0.040771484375, 0.1292724609375, 0.044097900390625, 0.1090087890625, 0.06671142578125, 0.02978515625, 0...
embed
11775912_c0
11775912
ruby
0
Title: Regexp, how to mach exactly Problem title: Regexp, how to mach exactly Tags: regex, ruby Problem: Regexp, how to mach exactly Code signals: Regexp
Regexp, how to mach exactly Regexp, how to mach exactly regex ruby Regexp Regexp, how to mach exactly Ho to match exactly 6 or 8 or 10 figures numbers? Ho to create one regexp for these cases. Shorter form of:
[ 0.00970458984375, 0.0011749267578125, -0.004241943359375, 0.0189208984375, 0.00604248046875, 0.005615234375, 0.00080108642578125, 0.0341796875, 0.01544189453125, 0.0089111328125, 0.003509521484375, 0.01446533203125, -0.005584716796875, 0.0084228515625, -0.00138092041015625, -0.00970458...
[ 11678, 83613, 3642, 47, 38388, 66161, 6835, 3355, 21922, 53, 2291, 14858, 305, 707, 382, 209, 26366, 101935, 28282, 1632, 100, 6097, 50218, 82990, 56, 3173 ]
[ 0.1719970703125, 0.291015625, 0.1021728515625, 0.08221435546875, 0.239013671875, 0.21826171875, 0.161865234375, 0.2049560546875, 0.1568603515625, 0.143798828125, 0.2030029296875, 0.1776123046875, 0.1488037109375, 0.036712646484375, 0.1500244140625, 0.141845703125, 0.1951904296875, ...
embed
6052169_c0
6052169
ruby
0
Title: Finding the average of a table Problem title: Finding the average of a table Tags: ruby Problem: Finding the average of a table Code signals: Finding
Finding the average of a table Finding the average of a table ruby Finding Finding the average of a table I need to find the averages for all columns in the same row of a particular value of the first column. So for a table like the following: I want the resulting table of averages: So for example for the value 0.. I t...
[ 0.00469970703125, -0.0081787109375, -0.0146484375, 0.0012359619140625, -0.007293701171875, -0.00604248046875, 0.0235595703125, 0.00194549560546875, 0.0130615234375, -0.0054931640625, 0.01123046875, -0.0191650390625, -0.0115966796875, 0.023193359375, -0.00421142578125, 0.0208740234375, ...
[ 26040, 83080, 111, 23180, 214, 70, 21922, 53, 3871, 7413, 7, 100, 756, 3365, 316, 1779, 5701, 15555, 17311, 34292, 5117, 1884, 25632, 3444, 16750, 27781, 757, 27252, 997, 427, 534, 18113, 17932, 21204, 702, 9271, 2678, 1112, 50960 ]
[ 0.081787109375, 0.243896484375, 0.049652099609375, 0.248046875, 0.0377197265625, 0.00726318359375, 0.12939453125, 0.118408203125, 0.058563232421875, 0.0826416015625, 0.06317138671875, 0.025146484375, 0.0693359375, 0.076416015625, 0.1025390625, 0.04791259765625, 0.0238800048828125, ...
embed
6832202_c0
6832202
ruby
0
Title: How to cut string with ruby Problem title: How to cut string with ruby Tags: regex, ruby, string Problem: How to cut string with ruby Code signals: How
How to cut string with ruby How to cut string with ruby regex ruby string How How to cut string with ruby I have strings: I want to cut strings like
[ -0.00616455078125, -0.00848388671875, 0.004669189453125, 0.0213623046875, -0.0032196044921875, 0.0012969970703125, 0.0027923583984375, 0.01397705078125, 0.0150146484375, -0.0267333984375, -0.008544921875, -0.0341796875, -0.011474609375, 0.00445556640625, -0.001861572265625, -0.00909423...
[ 11249, 47, 59226, 79315, 678, 21922, 53, 6835, 3355, 765, 3444, 1884 ]
[ 0.0369873046875, 0.0582275390625, 0.19873046875, 0.246337890625, 0.08868408203125, 0.1741943359375, 0.1734619140625, 0.107421875, 0.1387939453125, 0.0170440673828125, 0.05352783203125, 0.028076171875 ]
embed
690794_c0
690794
ruby
0
Title: Ruby arrays: %w vs %W Problem title: Ruby arrays: %w vs %W Tags: arrays, ruby Problem: Ruby arrays: %w vs %W What is the difference? Code signals: Ruby
Ruby arrays: %w vs %W Ruby arrays: %w vs %W arrays ruby Ruby Ruby arrays: %w vs %W What is the difference?
[ 0.0123291015625, 0.0022125244140625, -0.0113525390625, 0.004486083984375, -0.01031494140625, 0.007659912109375, 0.0123291015625, 0.00250244140625, 0.00994873046875, 0.035888671875, 0.01904296875, 0.0025482177734375, 0.02490234375, -0.006988525390625, -0.0240478515625, 0.00408935546875,...
[ 158189, 10298, 4778, 12, 1745, 434, 20209, 1456, 21922, 53, 4865, 83, 70, 60212 ]
[ 0.291259765625, 0.216552734375, 0.201416015625, 0.03448486328125, 0.1337890625, 0.1627197265625, 0.191162109375, 0.1981201171875, 0.1923828125, 0.056640625, 0.0037841796875, 0.0479736328125, 0.07720947265625, 0.196044921875 ]
embed
11237460_c0
11237460
ruby
0
Title: Add to Array Loop Problem title: Add to Array Loop Tags: arrays, hash, ruby Problem: Add to Array Loop Code signals: Add, Array, Loop, times.each, i.to_s
Add to Array Loop Add to Array Loop arrays hash ruby Add Array Loop times.each i.to_s Add to Array Loop Ruby code is: the result is: but i hope the result is: who can help me.thx
[ 0.0021820068359375, -0.005584716796875, -0.00994873046875, 0.00830078125, -0.01263427734375, 0.0013427734375, -0.0029144287109375, 0.03955078125, 0.010009765625, -0.01483154296875, 0.010498046875, -0.02392578125, 0.003936767578125, 0.01556396484375, 0.006317138671875, -0.032470703125, ...
[ 29117, 47, 69253, 53, 199694, 10298, 4778, 1556, 127, 21922, 20028, 41581, 17, 188, 158189, 18151, 83, 16750, 1284, 15673, 2750, 831, 4358, 163, 927, 425 ]
[ 0.1629638671875, 0.1680908203125, 0.1839599609375, 0.126708984375, 0.238037109375, 0.1392822265625, 0.1005859375, 0.1806640625, 0.1365966796875, 0.176025390625, 0.224609375, 0.1192626953125, 0.042205810546875, 0.175048828125, 0.2763671875, 0.243896484375, 0.0401611328125, 0.1391601...
embed
1255324_c0
1255324
ruby
0
Title: p vs puts in Ruby Problem title: p vs puts in Ruby Tags: ruby Problem: p vs puts in Ruby Is there any difference between p and puts in Ruby? Code signals: Ruby
p vs puts in Ruby p vs puts in Ruby ruby Ruby p vs puts in Ruby Is there any difference between p and puts in Ruby?
[ 0.006591796875, 0.0157470703125, 0.001953125, 0.01611328125, 0.00433349609375, 0.0186767578125, -0.0006866455078125, -0.00604248046875, -0.00390625, 0.01446533203125, 0.0223388671875, -0.0205078125, 0.01708984375, -0.0028076171875, -0.0174560546875, 0.0002956390380859375, -0.00014686...
[ 915, 20209, 3884, 7, 23, 158189, 21922, 53, 2685, 2499, 60212, 17721, 136 ]
[ 0.1524658203125, 0.15185546875, 0.1907958984375, 0.123779296875, 0.0780029296875, 0.23779296875, 0.1385498046875, 0.10198974609375, 0.00128173828125, 0.0164794921875, 0.13623046875, 0.0889892578125, 0.06536865234375 ]
embed
4055618_c0
4055618
ruby
0
Title: ruby floating point errors Problem title: ruby floating point errors Tags: floating-point, ruby Problem: ruby floating point errors Code signals: Loading, Rails
ruby floating point errors ruby floating point errors floating-point ruby Loading Rails ruby floating point errors Can somebody explain why multiplying by 100 here gives a less accurate result but multiplying by 10 twice gives a more accurate result?
[ 0.01239013671875, -0.0038909912109375, -0.013916015625, -0.022705078125, 0.00787353515625, 0.0162353515625, 0.01141357421875, -0.005584716796875, -0.006805419921875, -0.037109375, -0.0028076171875, -0.0296630859375, -0.00095367431640625, 0.03857421875, -0.0067138671875, -0.000027894973...
[ 21922, 53, 21917, 26518, 6275, 18499, 38496, 228006, 85736, 4171, 176256, 73342, 15400, 6024, 62479, 214, 390, 805, 3688, 76199, 40715, 152018, 16750, 1284, 209, 186351, 10, 1286 ]
[ 0.154296875, 0.1556396484375, 0.143310546875, 0.059844970703125, 0.09912109375, 0.1668701171875, 0.052825927734375, 0.1568603515625, 0.16748046875, 0.00555419921875, 0.04315185546875, 0.1229248046875, 0.0958251953125, 0.0946044921875, 0.155029296875, 0.02996826171875, 0.0463256835937...
embed
26020566_c0
26020566
ruby
0
Title: Guard installation error Problem title: Guard installation error Tags: ruby, ruby-on-rails, guard, cucumber Problem: Guard installation error Code signals: Guard
Guard installation error Guard installation error ruby ruby-on-rails guard cucumber Guard Guard installation error
[ 0.00007390975952148438, 0.0218505859375, 0.0128173828125, -0.04248046875, -0.00162506103515625, -0.004669189453125, -0.01470947265625, -0.006500244140625, -0.00244140625, 0.0177001953125, -0.006439208984375, -0.03515625, -0.014404296875, 0.0140380859375, 0.00689697265625, -0.0004806518...
[ 135440, 59720, 18499, 21922, 53, 191, 68823, 7, 56050, 314, 10591, 1297 ]
[ 0.297119140625, 0.2095947265625, 0.1778564453125, 0.150146484375, 0.13916015625, 0.179931640625, 0.2308349609375, 0.06402587890625, 0.23876953125, 0.06829833984375, 0.170166015625, 0.1273193359375 ]
embed
31609347_c0
31609347
ruby
0
Title: Merge array of hashes with addition Problem title: Merge array of hashes with addition Tags: ruby Problem: Merge array of hashes with addition Code signals: Merge
Merge array of hashes with addition Merge array of hashes with addition ruby Merge Merge array of hashes with addition I have an array of hashes I am trying to find a way to merge this into a new array of hashes where each user appears only once, with a count that is the sum of all the counts associated with the user p...
[ -0.00408935546875, 0.00162506103515625, -0.0169677734375, 0.00153350830078125, -0.01483154296875, -0.0167236328125, -0.0203857421875, 0.01611328125, 0.0198974609375, -0.001983642578125, -0.00469970703125, -0.006591796875, 0.0172119140625, 0.0390625, 0.0014801025390625, -0.0238037109375...
[ 6035, 429, 10298, 53, 111, 256, 114942, 678, 66044, 21922, 765, 31577, 3917, 42564, 3934, 3525, 12638, 38937, 135179, 4734, 24145, 54529, 10554, 756, 137272, 198395, 16750, 25632, 1556, 127, 37842, 27140, 55300, 40956, 645, 5941, 20028, 70163...
[ 0.199951171875, 0.12548828125, 0.205810546875, 0.15771484375, 0.06805419921875, 0.2049560546875, 0.2220458984375, 0.11181640625, 0.214111328125, 0.185791015625, 0.0150146484375, 0.030303955078125, 0.038848876953125, 0.221435546875, 0.030914306640625, 0.0452880859375, 0.06561279296875...
embed
34181617_c3
34181617
ruby
3
95a6-bb60adcd52de, Jeto, bef1576f-6db7-473b-8fbf-359326bf48e0, Jest, ba3e36b1-21c7-466e-83fa-fef43e2b9731, DJet, aa2d-d86ab244cfc5, Jek, Person, ff80-4f8d-a559-98368ed7d5a3
95a6-bb60adcd52de, Jeto, bef1576f-6db7-473b-8fbf-359326bf48e0, Jest, ba3e36b1-21c7-466e-83fa-fef43e2b9731, DJet, aa2d-d86ab244cfc5, Jek, Person, ff80-4f8d-a559-98368ed7d5a3
[ 0.0032501220703125, 0.01165771484375, 0.00787353515625, 0.006500244140625, -0.0106201171875, 0.0126953125, -0.01300048828125, 0.00494384765625, -0.005340576171875, -0.0062255859375, -0.0133056640625, 0.029296875, -0.0079345703125, 0.004364013671875, -0.016845703125, -0.014404296875, ...
[ 9199, 11, 910, 9, 5125, 4598, 712, 71574, 12744, 112, 4, 845, 188, 186, 420, 1837, 11835, 13545, 48073, 966, 139315, 363, 275, 17376, 150598, 40176, 11591, 4046, 9285, 13, 2389, 16819, 961, 8659, 418, 24589, 238, 50775, 163063, 17168, 1...
[ 0.308837890625, 0.1181640625, 0.204833984375, 0.10247802734375, 0.13818359375, 0.195068359375, 0.1026611328125, 0.11181640625, 0.195556640625, 0.2257080078125, 0.1141357421875, 0.255126953125, 0.322021484375, 0.1236572265625, 0.08697509765625, 0.10223388671875, 0.1761474609375, 0.0...
embed
54641945_c0
54641945
ruby
0
Title: Ruby for loop prints extra things Problem title: Ruby for loop prints extra things Tags: ruby Problem: Ruby for loop prints extra things Code signals: Ruby, cell_arr
Ruby for loop prints extra things Ruby for loop prints extra things ruby Ruby cell_arr Ruby for loop prints extra things I have an of arrays of arrays, and it looks like this: I want to print each element. I expect this output: This is my code: The output I got: During the end of the output, my code generates something...
[ 0.00213623046875, -0.0198974609375, -0.004058837890625, 0.015380859375, -0.0050048828125, 0.0137939453125, 0.01043701171875, 0.0284423828125, 0.00897216796875, 0.0299072265625, -0.0106201171875, -0.01177978515625, 0.0250244140625, 0.0198974609375, -0.01177978515625, -0.0111083984375, ...
[ 158189, 100, 40956, 28412, 4173, 8966, 7, 21922, 53, 38750, 147, 42, 765, 111, 10298, 4778, 33342, 1884, 3444, 12638, 12830, 41206, 140992, 759, 18151, 4163, 133698, 3564, 139392, 9844 ]
[ 0.245849609375, 0.0946044921875, 0.206298828125, 0.2161865234375, 0.2252197265625, 0.1842041015625, 0.034515380859375, 0.1322021484375, 0.07257080078125, 0.1759033203125, 0.059967041015625, 0.02532958984375, 0.0223388671875, 0.0816650390625, 0.1072998046875, 0.1005859375, 0.084350585...
embed
54821260_c0
54821260
ruby
0
Title: Group of words with some length Problem title: Group of words with some length Tags: string, arrays, ruby Problem: Group of words with some length Code signals: Group
Group of words with some length Group of words with some length string arrays ruby Group Group of words with some length I have to find all combinations of given words whose length add up to 10. Input will be given like this: I expect the output like this
[ 0.00555419921875, -0.003753662109375, -0.0191650390625, -0.00005555152893066406, -0.007568359375, -0.01220703125, 0.0038604736328125, 0.005615234375, 0.037353515625, 0.00360107421875, -0.0223388671875, -0.0029754638671875, -0.006195068359375, 0.017578125, -0.015869140625, 0.01055908203...
[ 10760, 111, 34153, 678, 3060, 140909, 79315, 10298, 4778, 21922, 53, 765, 47, 7413, 756, 162515, 34475, 124901, 15190, 1257, 4068, 360, 7077, 1884, 41206, 140992 ]
[ 0.184326171875, 0.06634521484375, 0.2296142578125, 0.112060546875, 0.1075439453125, 0.1962890625, 0.1524658203125, 0.151123046875, 0.1240234375, 0.1690673828125, 0.1390380859375, 0.0477294921875, 0.025604248046875, 0.1275634765625, 0.07080078125, 0.1964111328125, 0.0858154296875, 0...
embed
1734307_c0
1734307
ruby
0
Title: Find value in an array Problem title: Find value in an array Tags: ruby Problem: Find value in an array In Ruby, how can I find a value in an array? Code signals: Find
Find value in an array Find value in an array ruby Find Find value in an array In Ruby, how can I find a value in an array?
[ -0.00165557861328125, 0.0029144287109375, -0.0067138671875, 0.000018715858459472656, -0.00787353515625, 0.005615234375, -0.0107421875, 0.00909423828125, 0.009765625, -0.004180908203125, 0.006195068359375, 0.01409912109375, -0.01556396484375, 0.013671875, 0.00262451171875, 0.00704956054...
[ 26040, 34292, 23, 142, 10298, 53, 21922, 360, 158189, 3642, 831, 87, 7413, 10 ]
[ 0.16845703125, 0.26025390625, 0.145751953125, 0.056549072265625, 0.21337890625, 0.17919921875, 0.1370849609375, 0.007564544677734375, 0.2408447265625, 0.07855224609375, 0.0594482421875, 0.035003662109375, 0.1741943359375, 0.041534423828125 ]
embed
7478872_c1
7478872
ruby
1
s:0079, b:0079, l:000078, d:000078, FINISH, c:0022, s:0077, b:0077, l:000076, d:000076, s:0073, b:0073, l:000072, d:000072, c:0020, p:0011, s:0066, b:0066, l:000065, d:000065
00072 d:000072 c:0020 p:0011 s:0066 b:0066 l:000065 d:000065 Why am I getting a segmentation fault in libxml_ruby.bundle when using the pivotal-tracker gem? I have a Ruby 1.9.2-p290 program which is using the pivotal-tracker gem. The configuration of the application environment is using RVM. When I execute this on one ...
[ 0.000919342041015625, -0.01251220703125, -0.03173828125, 0.017578125, -0.0086669921875, 0.00750732421875, 0.006591796875, -0.001495361328125, 0.0203857421875, 0.06005859375, 0.00384521484375, -0.015380859375, -0.0087890625, -0.0169677734375, 0.00933837890625, 0.00860595703125, 0.0116...
[ 2445, 12825, 104, 28568, 6632, 1549, 1662, 14604, 12424, 44084, 444, 20949, 33180, 2320, 193857, 25474, 131492, 882, 1272, 28025, 133, 17368, 80953, 1803, 125728, 56, 30203, 158189, 615, 151309, 124916, 1528, 180346, 38415, 65998, 627, 47599, ...
[ 0.07379150390625, 0.169189453125, 0.03448486328125, 0.05792236328125, 0.016082763671875, 0.085693359375, 0.036376953125, 0.1297607421875, 0.1185302734375, 0.07720947265625, 0.002349853515625, 0.036529541015625, 0.268798828125, 0.1053466796875, 0.24365234375, 0.10186767578125, 0.22009...
embed
31470754_c0
31470754
ruby
0
Title: Filter an array of hashes Ruby Problem title: Filter an array of hashes Ruby Tags: ruby-on-rails, ruby Problem: Filter an array of hashes Ruby Code signals: Filter, Ruby
Filter an array of hashes Ruby Filter an array of hashes Ruby ruby-on-rails ruby Filter Ruby Filter an array of hashes Ruby I have an array of hashes: I need to get this new filtered array: In other words "delete key/value if value equals to right before value".
[ 0.01031494140625, 0.015625, -0.0181884765625, -0.0093994140625, -0.00174713134765625, -0.014404296875, -0.0169677734375, 0.032470703125, -0.00872802734375, -0.0020599365234375, -0.01312255859375, -0.016845703125, 0.006134033203125, 0.039306640625, -0.00347900390625, 0.00106048583984375...
[ 128896, 142, 10298, 53, 111, 256, 114942, 158189, 21922, 191, 68823, 765, 3871, 2046, 903, 3525, 46312, 297, 34153, 8520, 67, 22799, 64, 27494, 2174, 34292, 105950, 47, 7108, 8108, 740 ]
[ 0.29443359375, 0.0186309814453125, 0.197021484375, 0.1243896484375, 0.072265625, 0.2047119140625, 0.2459716796875, 0.2469482421875, 0.146240234375, 0.1356201171875, 0.2044677734375, 0.02044677734375, 0.0869140625, 0.02996826171875, 0.02288818359375, 0.0738525390625, 0.24755859375, ...
embed
35281705_c0
35281705
ruby
0
Title: Variable redefinition warning Problem title: Variable redefinition warning Tags: ruby Problem: Variable redefinition warning Code signals: Variable, gets.to_i, test.rb:7
Variable redefinition warning Variable redefinition warning ruby Variable gets.to_i test.rb:7 Variable redefinition warning I got warning in the following code: When running, I get: How can I redefine it without error? Why is it defined as a constant and not a variable?
[ -0.01708984375, -0.0037689208984375, -0.01324462890625, 0.017578125, 0.01141357421875, -0.003662109375, -0.014892578125, 0.03076171875, 0.005340576171875, 0.0022430419921875, -0.01104736328125, -0.00506591796875, -0.01153564453125, 0.00177001953125, 0.00494384765625, 0.005889892578125,...
[ 84572, 2886, 456, 49919, 1631, 592, 21922, 53, 62163, 188, 14, 3034, 13471, 966, 25632, 18151, 51042, 2046, 11249, 831, 15265, 64552, 442, 15490, 18499, 44084, 83, 61924, 71, 237, 10, 53697, 136, 959, 77336 ]
[ 0.193115234375, 0.1650390625, 0.1395263671875, 0.21826171875, 0.1558837890625, 0.08282470703125, 0.1351318359375, 0.109619140625, 0.1014404296875, 0.1507568359375, 0.0970458984375, 0.1282958984375, 0.072998046875, 0.057952880859375, 0.036834716796875, 0.09991455078125, 0.148193359375...
embed
652874_c0
652874
ruby
0
Title: combine regex in ruby Problem title: combine regex in ruby Tags: parsing, regex, text, ruby Problem: combine regex in ruby Code signals: F004, text.scan, form_and_fields
combine regex in ruby combine regex in ruby parsing regex text ruby F004 text.scan form_and_fields combine regex in ruby Given this text: how do I parse it into this array: [ ["F004"],["0309"],["/* field 1 */\n/* field 2 */"], ["F004"],["0409"],["/* field 1 */\n/* field 2 */"] ] I got code working to parse the first tw...
[ 0.001373291015625, 0.011962890625, -0.00970458984375, 0.0286865234375, -0.00860595703125, 0.01080322265625, 0.0032501220703125, 0.0458984375, 0.0240478515625, -0.005401611328125, 0.00031280517578125, 0.00408935546875, 0.0194091796875, 0.004791259765625, -0.00537109375, 0.00259399414062...
[ 70163, 6835, 3355, 23, 21922, 53, 366, 6953, 7986, 135401, 4398, 3173, 28394, 3642, 184, 3934, 903, 10298, 919, 9513, 6463, 1639, 44457, 106, 116, 7709, 18151, 20697, 6626, 55769, 17262, 35782, 56649, 18499, 51711, 135545, 192 ]
[ 0.2271728515625, 0.149169921875, 0.20068359375, 0.073486328125, 0.177490234375, 0.17041015625, 0.14404296875, 0.014434814453125, 0.086669921875, 0.2044677734375, 0.090576171875, 0.1162109375, 0.09674072265625, 0.029815673828125, 0.120849609375, 0.11669921875, 0.048187255859375, 0.1...
embed
27747372_c0
27747372
ruby
0
Title: Ruby code order Problem title: Ruby code order Tags: ruby Problem: Ruby code order Code signals: Ruby, Library, add_game, WoW, SC2, Library.new, lib.games, lib.add_game, Titan
Ruby code order Ruby code order ruby Ruby Library add_game WoW SC2 Library.new lib.games lib.add_game Titan Ruby code order Why can the following part # def games # @games = games # end come at the very end (bottom) of the code and still work? I thought Ruby reads the code from top to bottom. If I do not define games a...
[ 0.013916015625, -0.0031280517578125, 0.0052490234375, 0.0142822265625, 0.002044677734375, 0.0042724609375, -0.0029449462890625, 0.00262451171875, 0.000576019287109375, 0.01007080078125, 0.0017547607421875, -0.0223388671875, 0.01031494140625, 0.00000768899917602539, -0.0150146484375, -0...
[ 158189, 18151, 12989, 21922, 53, 103835, 15190, 35311, 13787, 1456, 17715, 304, 25474, 129675, 4028, 75764, 44084, 831, 25632, 2831, 468, 8, 420, 27528, 1374, 2203, 3564, 1380, 99, 4552, 9190, 5928, 7464, 4488, 17569, 12301, 1295, 2663, 47,...
[ 0.25537109375, 0.2049560546875, 0.189697265625, 0.1279296875, 0.0899658203125, 0.1365966796875, 0.055633544921875, 0.1060791015625, 0.0614013671875, 0.083251953125, 0.05377197265625, 0.08294677734375, 0.0789794921875, 0.189697265625, 0.0186614990234375, 0.2159423828125, 0.03970336914...
embed
3768480_c0
3768480
ruby
0
Title: how to a regex for similar string Problem title: how to a regex for similar string Tags: regex, ruby Problem: how to a regex for similar string Code signals: test.php, str.gsub
how to a regex for similar string how to a regex for similar string regex ruby test.php str.gsub how to a regex for similar string i have this string or I want to a regex get this example: before: question: so.. two "http://" Any ideas anyone? thanks
[ -0.0167236328125, 0.010498046875, -0.00145721435546875, 0.0079345703125, 0.002899169921875, 0.0074462890625, -0.0015716552734375, 0.03173828125, 0.037841796875, -0.0003490447998046875, 0.0081787109375, 0.01214599609375, -0.00286865234375, -0.01116943359375, 0.00909423828125, -0.0161132...
[ 3642, 47, 10, 6835, 3355, 100, 21373, 79315, 21922, 53, 3034, 3958, 7704, 22144, 27781, 8108, 9655, 221, 6626, 5475, 696 ]
[ 0.057373046875, 0.12890625, 0.0897216796875, 0.141845703125, 0.251708984375, 0.08837890625, 0.208251953125, 0.1912841796875, 0.10736083984375, 0.069580078125, 0.168212890625, 0.0887451171875, 0.07781982421875, 0.1903076171875, 0.09173583984375, 0.072265625, 0.06134033203125, 0.0256...
embed
45596824_c0
45596824
ruby
0
Title: JSON to HTML in ruby Problem title: JSON to HTML in ruby Tags: html, sinatra, ruby, json Problem: JSON to HTML in ruby Code signals: JSON, HTML, Introduction, Text, Text-2, Some
JSON to HTML in ruby JSON to HTML in ruby html sinatra ruby json JSON HTML Introduction Text Text-2 Some JSON to HTML in ruby I have some data that is being displayed in JSON format as shown below. I want to convert this JSON data into HTML table/format. Can someone tell me what options I have, I am using Ruby and Sina...
[ 0.0137939453125, -0.004638671875, 0.0230712890625, -0.0022735595703125, -0.0284423828125, -0.0074462890625, -0.0057373046875, 0.01214599609375, 0.0028228759765625, -0.0206298828125, -0.007415771484375, 0.01446533203125, -0.01531982421875, 0.0048828125, 0.0250244140625, -0.0025482177734...
[ 821, 58627, 47, 19097, 23, 21922, 53, 7693, 8223, 1517, 1647, 1681, 44891, 24129, 5428, 2053, 44116, 9384, 35064, 3444, 96760, 3934, 23180, 64, 51727, 14192, 50717, 17368, 158189, 136, 51178, 237, 170846 ]
[ 0.1260986328125, 0.2431640625, 0.14111328125, 0.2467041015625, 0.0609130859375, 0.151611328125, 0.1795654296875, 0.174072265625, 0.100830078125, 0.1854248046875, 0.06964111328125, 0.1890869140625, 0.085693359375, 0.07867431640625, 0.0679931640625, 0.101318359375, 0.091552734375, 0....
embed
5676039_c0
5676039
ruby
0
Title: Dynamic body id Problem title: Dynamic body id Tags: ruby, ruby-on-rails Problem: Dynamic body id How can I set ID for body tag in Rails? <body id="login"> Code signals: Dynamic
Dynamic body id Dynamic body id ruby ruby-on-rails Dynamic Dynamic body id How can I set ID for body tag in Rails?
[ 0.0235595703125, 0.006988525390625, 0.0196533203125, 0.0004405975341796875, 0.01275634765625, -0.000835418701171875, -0.0057373046875, 0.0230712890625, 0.01190185546875, -0.0751953125, -0.006866455078125, 0.00012683868408203125, -0.015625, -0.0311279296875, 0.02734375, -0.0008468627929...
[ 73327, 21068, 14361, 3447, 21922, 53, 191, 68823, 5423, 11338, 7909, 23, 85736, 7 ]
[ 0.1480712890625, 0.08282470703125, 0.2081298828125, 0.16796875, 0.1080322265625, 0.10791015625, 0.130615234375, 0.18701171875, 0.1214599609375, 0.2122802734375, 0.2010498046875, 0.0182952880859375, 0.2421875, 0.1339111328125 ]
embed
69566606_c0
69566606
ruby
0
Title: how to group ruby array Problem title: how to group ruby array Tags: ruby-on-rails, ruby Problem: how to group ruby array Code signals: Minh, Vien, Bangkok, Nai, Shanghai, ABC, Long
how to group ruby array how to group ruby array ruby-on-rails ruby Minh Vien Bangkok Nai Shanghai ABC Long how to group ruby array I have an array like this: and i want to generate a hash function with key based on first element of array elements as follows how can i do this?
[ 0.01239013671875, -0.0042724609375, -0.00189208984375, -0.01611328125, -0.00201416015625, -0.0002288818359375, -0.0106201171875, 0.00567626953125, -0.0023040771484375, 0.02783203125, -0.00238037109375, -0.01361083984375, -0.0020904541015625, 0.0155029296875, -0.0205078125, -0.001838684...
[ 3642, 47, 21115, 21922, 53, 10298, 191, 68823, 7, 13985, 31937, 75673, 353, 14, 128291, 47457, 14407, 1884, 903, 3444, 139392, 1556, 127, 32354, 678, 22799, 35509, 5117, 12830, 80854, 28960, 54 ]
[ 0.0775146484375, 0.05908203125, 0.24755859375, 0.193603515625, 0.1751708984375, 0.2249755859375, 0.1427001953125, 0.187255859375, 0.014862060546875, 0.10357666015625, 0.1429443359375, 0.130126953125, 0.051727294921875, 0.014892578125, 0.136474609375, 0.109375, 0.1114501953125, 0.03...
embed
31195461_c4
31195461
ruby
4
85cb3b18503837dac61ace6b, fd1d1c029e836c12577fd7ca, b2e5d924c67443e1a6252a80, Sent, JID-4a7b6d697095ecd670a00078, JID-2f072b313a0fbe1b3413a466, JID-29e7553ccab09cada3a0c919, gNPKPSs.jpgSent
85cb3b18503837dac61ace6b, fd1d1c029e836c12577fd7ca, b2e5d924c67443e1a6252a80, Sent, JID-4a7b6d697095ecd670a00078, JID-2f072b313a0fbe1b3413a466, JID-29e7553ccab09cada3a0c919, gNPKPSs.jpgSent
[ 0.015869140625, 0.007720947265625, -0.01116943359375, 0.020263671875, 0.0145263671875, 0.0123291015625, 0.0024566650390625, 0.00958251953125, 0.000545501708984375, 0.0123291015625, 0.0179443359375, 0.0157470703125, -0.0281982421875, 0.007171630859375, 0.004608154296875, 0.0140991210937...
[ 9365, 238, 275, 363, 146111, 9513, 180882, 85, 11540, 8509, 910, 4, 1238, 71, 418, 9550, 1126, 13, 188319, 1530, 165467, 420, 966, 408, 876, 304, 758, 2357, 18197, 126384, 11, 10837, 12744, 4836, 63999, 821, 7146, 11565, 14212, 8821, 32...
[ 0.224609375, 0.10528564453125, 0.11865234375, 0.0994873046875, 0.1778564453125, 0.103271484375, 0.2061767578125, 0.0885009765625, 0.1728515625, 0.08251953125, 0.09967041015625, 0.0902099609375, 0.052520751953125, 0.1224365234375, 0.0728759765625, 0.03363037109375, 0.042510986328125, ...
embed
63365713_c0
63365713
ruby
0
Title: How to detect concurrent dates Problem title: How to detect concurrent dates Tags: ruby, date, date-range, algorithm, arrays Problem: How to detect concurrent dates Code signals: How
How to detect concurrent dates How to detect concurrent dates ruby date date-range algorithm arrays How How to detect concurrent dates I need an algorithm which looks simple, but I still can't think about a well optimised way to do to do this. I have the following json object: As you can see, the second object is insid...
[ 0.007598876953125, -0.0164794921875, -0.01092529296875, 0.013427734375, -0.0089111328125, -0.004119873046875, -0.01116943359375, 0.0185546875, -0.004180908203125, -0.035400390625, -0.00909423828125, 0.0281982421875, 0.015380859375, 0.006011962890625, -0.00537109375, -0.00732421875, -...
[ 11249, 96391, 133244, 112474, 47, 21922, 53, 5622, 94250, 234873, 10298, 4778, 3871, 33342, 8781, 5351, 15572, 25632, 1647, 1681, 36746, 1957, 17932, 46132, 37457, 5117, 8560, 30646, 79612, 5465, 6324, 214, 12638, 5809, 8306, 645, 27060, 1345...
[ 0.068603515625, 0.2197265625, 0.284423828125, 0.198486328125, 0.0165863037109375, 0.1343994140625, 0.1492919921875, 0.132080078125, 0.1590576171875, 0.19677734375, 0.1260986328125, 0.0811767578125, 0.052001953125, 0.0816650390625, 0.0777587890625, 0.004669189453125, 0.055694580078125...
embed
55962222_c0
55962222
ruby
0
Title: Ruby time multiplication Problem title: Ruby time multiplication Tags: time, ruby-on-rails, ruby, activesupport Problem: Ruby time multiplication Code signals: Ruby, Time.now.utc, UTC
Ruby time multiplication Ruby time multiplication time ruby-on-rails ruby activesupport Ruby Time.now.utc UTC Ruby time multiplication Can some break this down for me? In my mind 5 minutes squared is 25 minutes
[ -0.017822265625, 0.00653076171875, 0.0263671875, -0.004608154296875, -0.007049560546875, -0.03173828125, -0.004150390625, 0.02099609375, -0.002471923828125, -0.043212890625, -0.0003108978271484375, -0.006805419921875, 0.0045166015625, 0.0301513671875, -0.0274658203125, -0.0061645507812...
[ 158189, 1733, 127664, 1363, 21922, 53, 191, 68823, 7, 36457, 105363, 19055, 35613, 1003, 99577, 4171, 3060, 36356, 903, 7565, 163, 7086, 190, 14633, 6, 108047, 71, 83, 714 ]
[ 0.26953125, 0.2171630859375, 0.22314453125, 0.03912353515625, 0.1484375, 0.1112060546875, 0.1654052734375, 0.192138671875, 0.016387939453125, 0.13525390625, 0.187255859375, 0.1807861328125, 0.09765625, 0.037384033203125, 0.1307373046875, 0.0260162353515625, 0.021759033203125, 0.094...
embed
10543031_c0
10543031
ruby
0
Title: String manipulation in Ruby Problem title: String manipulation in Ruby Tags: regex, string, ruby Problem: String manipulation in Ruby Code signals: Ruby, tags_array, tags_array.collect
String manipulation in Ruby String manipulation in Ruby regex string ruby Ruby tags_array tags_array.collect String manipulation in Ruby Given an array : how can operate on it to have back (exactly) the following String ? ... i get a try with this : but I really want [/^one/i, /^two/i] without double quote.
[ 0.0038299560546875, 0.000812530517578125, 0.01373291015625, 0.01165771484375, -0.0024566650390625, 0.00335693359375, 0.0034332275390625, 0.00982666015625, 0.0186767578125, 0.00946044921875, 0.01531982421875, -0.002716064453125, -0.0166015625, 0.0048828125, 0.00982666015625, -0.00335693...
[ 23351, 214, 45258, 1363, 23, 158189, 6835, 3355, 79315, 21922, 53, 69141, 19305, 196352, 77878, 10298, 3642, 831, 160404, 98, 47, 765, 4420, 47013, 25632, 9790, 903, 6183, 3444, 64, 8353, 3630, 14, 248, 55547, 15490, 41929, 66747 ]
[ 0.1993408203125, 0.1063232421875, 0.1964111328125, 0.0308837890625, 0.039306640625, 0.2432861328125, 0.114013671875, 0.1083984375, 0.1478271484375, 0.1243896484375, 0.10675048828125, 0.1309814453125, 0.09222412109375, 0.1767578125, 0.0201873779296875, 0.1634521484375, 0.0498657226562...
embed
44153710_c0
44153710
ruby
0
Title: Ruby make a date key hash Problem title: Ruby make a date key hash Tags: ruby, hash, ruby-on-rails Problem: Ruby make a date key hash Code signals: Ruby, start_date, Date.new, end_date
Ruby make a date key hash Ruby make a date key hash ruby hash ruby-on-rails Ruby start_date Date.new end_date Ruby make a date key hash How to quickly make a hash contains date key Like How to get
[ 0.0035247802734375, -0.0128173828125, -0.000759124755859375, -0.00555419921875, -0.015380859375, 0.01043701171875, -0.020751953125, 0.0177001953125, 0.008056640625, 0.002410888671875, -0.0166015625, 0.0024871826171875, 0.042236328125, 0.0478515625, -0.0185546875, -0.03662109375, -0.0...
[ 158189, 3249, 10, 5622, 22799, 1556, 127, 21922, 53, 191, 68823, 7, 4034, 17489, 25512, 5, 54936, 3564, 69405, 70541, 18852, 2046 ]
[ 0.2457275390625, 0.074462890625, 0.015960693359375, 0.1590576171875, 0.1875, 0.192138671875, 0.1734619140625, 0.127197265625, 0.1141357421875, 0.1444091796875, 0.18017578125, 0.0164642333984375, 0.06109619140625, 0.13232421875, 0.114013671875, 0.008636474609375, 0.0246124267578125, ...
embed
32033694_c0
32033694
ruby
0
Title: Ruby Array of Hashes Problem title: Ruby Array of Hashes Tags: hash, ruby-on-rails, ruby Problem: Ruby Array of Hashes Code signals: Ruby, Array, Hashes, item_id, created_at, updated_at
Ruby Array of Hashes Ruby Array of Hashes hash ruby-on-rails ruby Ruby Array Hashes item_id created_at updated_at Ruby Array of Hashes I have a group of records being returned by an Active Record query. I need to somehow iterate over these to build an array of hashes that sort of looks like: The records returned will b...
[ 0.004669189453125, -0.0250244140625, -0.00579833984375, -0.00250244140625, 0.01153564453125, 0.0157470703125, -0.021484375, 0.005859375, -0.0084228515625, -0.0108642578125, 0.0150146484375, -0.0272216796875, 0.006744384765625, 0.0296630859375, 0.0012054443359375, -0.029052734375, -0....
[ 158189, 69253, 53, 111, 162087, 90, 1556, 127, 21922, 191, 68823, 7, 35735, 532, 75935, 150011, 21115, 115923, 176377, 88441, 54877, 41, 1294, 3871, 209303, 8560, 645, 45367, 10298, 256, 114942, 33342, 1884, 3173, 19441, 138, 5117, 106, 171...
[ 0.2449951171875, 0.174560546875, 0.1513671875, 0.1143798828125, 0.185302734375, 0.1112060546875, 0.2071533203125, 0.138671875, 0.1590576171875, 0.1556396484375, 0.2081298828125, 0.010498046875, 0.161865234375, 0.0595703125, 0.110107421875, 0.1273193359375, 0.0977783203125, 0.198242...
embed
33087111_c0
33087111
ruby
0
Title: Ruby step function giving unexpected result Problem title: Ruby step function giving unexpected result Tags: ruby Problem: Ruby step function giving unexpected result Code signals: Ruby
Ruby step function giving unexpected result Ruby step function giving unexpected result ruby Ruby Ruby step function giving unexpected result When I run the following commands, I get the following return: What is the best way to avoid this roundoff error? Update: My question about why this occurs has been previously an...
[ 0.00885009765625, 0.00848388671875, -0.01031494140625, -0.0001888275146484375, -0.007354736328125, 0.007049560546875, 0.000812530517578125, 0.005401611328125, -0.0029144287109375, 0.0205078125, 0.00506591796875, 0.01116943359375, -0.00014781951904296875, 0.0269775390625, 0.01263427734375...
[ 158189, 29954, 32354, 68772, 241957, 16750, 21922, 53, 11675, 25632, 75101, 2046, 30646, 2965, 3917, 47, 71864, 903, 68807, 16713, 18499, 15400, 74918, 21917, 26518, 6275, 48909, 148431 ]
[ 0.254638671875, 0.2174072265625, 0.158935546875, 0.1097412109375, 0.195556640625, 0.1597900390625, 0.1351318359375, 0.1051025390625, 0.11083984375, 0.07562255859375, 0.1971435546875, 0.012725830078125, 0.1865234375, 0.042755126953125, 0.0286102294921875, 0.009857177734375, 0.13000488...
embed
41505597_c0
41505597
ruby
0
Title: How to sum 2-dimensional arrays Problem title: How to sum 2-dimensional arrays Tags: arrays, sketchup, ruby, matrix Problem: How to sum 2-dimensional arrays Code signals: How, new_array
How to sum 2-dimensional arrays How to sum 2-dimensional arrays arrays sketchup ruby matrix How new_array How to sum 2-dimensional arrays I have a two-dimensional array with sub-arrays of equal size, for example: I would like to create a new array by summing the corresponding elements of every 4th sub-array, i.e. the e...
[ -0.008056640625, -0.01007080078125, -0.004058837890625, 0.0166015625, -0.01348876953125, 0.0230712890625, -0.01080322265625, 0.01336669921875, 0.0240478515625, 0.0024566650390625, 0.01202392578125, -0.029296875, 0.00897216796875, -0.01336669921875, -0.0133056640625, -0.0159912109375, ...
[ 11249, 47, 10554, 4720, 157955, 10298, 4778, 63926, 206, 2037, 21922, 53, 50944, 425, 3525, 19305, 6626, 1614, 105950, 13267, 1884, 28282, 166, 58838, 42518, 80854, 11907, 201, 927, 191, 2663, 111, 12638, 3789, 27781, 8561, 150679 ]
[ 0.07586669921875, 0.05633544921875, 0.2333984375, 0.1375732421875, 0.1934814453125, 0.198486328125, 0.1358642578125, 0.0823974609375, 0.038330078125, 0.1295166015625, 0.1177978515625, 0.1602783203125, 0.1134033203125, 0.0592041015625, 0.1312255859375, 0.1749267578125, 0.096435546875,...
embed
7749488_c0
7749488
ruby
0
Title: Confused about file locations of ruby gems Problem title: Confused about file locations of ruby gems Tags: ruby Problem: Confused about file locations of ruby gems Code signals: Confused
Confused about file locations of ruby gems Confused about file locations of ruby gems ruby Confused Confused about file locations of ruby gems
[ 0.00714111328125, -0.004852294921875, -0.0128173828125, -0.007598876953125, 0.000286102294921875, 0.015380859375, 0.0186767578125, 0.0223388671875, 0.0064697265625, 0.013916015625, 0.0011749267578125, 0.0037841796875, -0.0018310546875, 0.01544189453125, 0.00167083740234375, 0.003829956...
[ 106161, 33740, 1672, 11435, 31913, 7, 111, 21922, 53, 30203 ]
[ 0.1595458984375, 0.120849609375, 0.055084228515625, 0.219482421875, 0.19775390625, 0.0657958984375, 0.0282440185546875, 0.1668701171875, 0.1419677734375, 0.240966796875 ]
embed
53661021_c0
53661021
ruby
0
Title: Ruby array to html table with two lines Problem title: Ruby array to html table with two lines Tags: ruby-on-rails, ruby Problem: Ruby array to html table with two lines Code signals: Ruby
Ruby array to html table with two lines Ruby array to html table with two lines ruby-on-rails ruby Ruby Ruby array to html table with two lines I have the following array: I need to have a table like this: How can I do that with that array ? is it a better option convert to hash and work with keys and values?
[ 0.019287109375, -0.00848388671875, -0.007171630859375, -0.004486083984375, -0.00201416015625, 0.00433349609375, 0.0024566650390625, 0.01544189453125, 0.000446319580078125, 0.00372314453125, -0.01129150390625, 0.004425048828125, -0.00787353515625, 0.0130615234375, -0.01544189453125, -0....
[ 158189, 10298, 53, 47, 7693, 23180, 678, 6626, 124519, 21922, 191, 68823, 7, 765, 25632, 3871, 1884, 903, 11249, 831, 54, 450, 11522, 35829, 96760, 1556, 127, 4488, 22799, 142424 ]
[ 0.2420654296875, 0.203125, 0.13623046875, 0.136474609375, 0.22802734375, 0.2371826171875, 0.048675537109375, 0.15380859375, 0.18017578125, 0.1484375, 0.136474609375, 0.1861572265625, 0.00933837890625, 0.0379638671875, 0.0474853515625, 0.085205078125, 0.0714111328125, 0.030960083007...
embed
2292815_c0
2292815
ruby
0
Title: save an active records array Problem title: save an active records array Tags: ruby-on-rails, ruby Problem: save an active records array I have an array like this a = [] Code signals: B.new
save an active records array save an active records array ruby-on-rails ruby B.new save an active records array I have an array like this How i can save it at once?
[ 0.00555419921875, 0.0093994140625, 0.000156402587890625, 0.01251220703125, -0.004241943359375, 0.002166748046875, -0.0196533203125, 0.00909423828125, 0.03662109375, -0.020263671875, -0.00994873046875, 0.01806640625, -0.0029144287109375, 0.0079345703125, 0.00127410888671875, -0.02941894...
[ 30098, 142, 36457, 115923, 10298, 53, 21922, 191, 68823, 7, 335, 5, 54936, 87, 765, 1884, 903, 11249, 17, 831, 442, 99, 24145 ]
[ 0.211181640625, 0.06884765625, 0.2200927734375, 0.23486328125, 0.226806640625, 0.1544189453125, 0.1678466796875, 0.192138671875, 0.22119140625, 0.03887939453125, 0.1378173828125, 0.0098419189453125, 0.1605224609375, 0.00597381591796875, 0.08270263671875, 0.1314697265625, 0.1166381835...
embed
13447229_c0
13447229
ruby
0
Title: How do I delete a key from a hash? Problem title: How do I delete a key from a hash? Tags: hash-of-hashes, ruby Problem: How do I delete a key from a hash? Code signals: a, How, deck_of_cards
How do I delete a key from a hash? How do I delete a key from a hash? hash-of-hashes ruby a How deck_of_cards How do I delete a key from a hash? I have a hash of hashes representing a deck of cards, I am trying to figure out how I would delete a specific card from the deck. Please let me know any suggestions or methods...
[ -0.01263427734375, 0.0057373046875, -0.01422119140625, -0.00640869140625, -0.01068115234375, 0.0023345947265625, 0.004669189453125, -0.01336669921875, 0.00958251953125, -0.021728515625, -0.000522613525390625, 0.0244140625, 0.0120849609375, 0.03955078125, 0.004547119140625, -0.007995605...
[ 11249, 54, 87, 154109, 22799, 1295, 1556, 127, 10, 4390, 126234, 90, 21922, 53, 8, 2594, 38931, 111, 256, 114942, 33636, 126381, 31577, 26366, 3642, 29458, 20596, 30607, 157666, 150624, 52080, 4358 ]
[ 0.0999755859375, 0.036895751953125, 0.03131103515625, 0.24169921875, 0.236083984375, 0.15087890625, 0.188720703125, 0.188720703125, 0.039886474609375, 0.11279296875, 0.1358642578125, 0.06646728515625, 0.09783935546875, 0.09600830078125, 0.146728515625, 0.107666015625, 0.138916015625,...
embed
71957153_c0
71957153
ruby
0
Title: How to refactor round method with 3 digits Problem title: How to refactor round method with 3 digits Tags: ruby Problem: How to refactor round method with 3 digits Code signals: How, round_km
How to refactor round method with 3 digits How to refactor round method with 3 digits ruby How round_km How to refactor round method with 3 digits I would like to round float numbers like this : I have do a method, how can I refactor it ?
[ -0.030029296875, -0.01385498046875, 0.013671875, -0.0191650390625, -0.00133514404296875, -0.0184326171875, 0.01019287109375, -0.00159454345703125, 0.0169677734375, 0.01434326171875, -0.002838134765625, -0.0019989013671875, -0.00921630859375, 0.023681640625, -0.00168609619140625, 0.0103...
[ 11249, 47, 456, 144810, 68807, 55300, 678, 138, 153939, 21922, 53, 6401, 2806, 1884, 21917, 257, 101935, 903, 765, 54, 3642, 831 ]
[ 0.08087158203125, 0.0802001953125, 0.14990234375, 0.267578125, 0.2305908203125, 0.2142333984375, 0.097412109375, 0.19580078125, 0.205810546875, 0.1331787109375, 0.1319580078125, 0.22119140625, 0.046051025390625, 0.088623046875, 0.1485595703125, 0.1026611328125, 0.1524658203125, 0.0...
embed
29929866_c40
29929866
ruby
40
J9fq4PbIxhXgDt2z6pEqhPHiiAdzoesKxW38g22DFSrnYwryekslCqlQhVkdAkoDULSlR5gz4SQyVobvWalGpAo2MEwmLaT70qItgCHv0TVGvmQRyTzK201LGrd8slwwmHl9yYiQgu2nrNC3WvetveHdAP7UlhnY1CtNG9tQFHzmefW6ohg9v0, text.gsub, to_a
J9fq4PbIxhXgDt2z6pEqhPHiiAdzoesKxW38g22DFSrnYwryekslCqlQhVkdAkoDULSlR5gz4SQyVobvWalGpAo2MEwmLaT70qItgCHv0TVGvmQRyTzK201LGrd8slwwmHl9yYiQgu2nrNC3WvetveHdAP7UlhnY1CtNG9tQFHzmefW6ohg9v0, text.gsub, to_a
[ 0.008544921875, -0.0123291015625, -0.006927490234375, 0.0089111328125, -0.006988525390625, 0.019775390625, -0.0016021728515625, 0.02099609375, 0.01287841796875, -0.015625, 0.0264892578125, 0.0234375, -0.00982666015625, -0.01397705078125, -0.0179443359375, -0.0032806396484375, -0.0012...
[ 821, 1126, 420, 864, 617, 683, 275, 425, 127, 910, 254, 54259, 1573, 95201, 90, 10991, 177, 4015, 38997, 1723, 21998, 24861, 99247, 2737, 856, 92, 71, 284, 18431, 294, 53, 97207, 724, 31, 10611, 618, 5757, 334, 2389, 5343, 39, 1052, ...
[ 0.1480712890625, 0.171630859375, 0.06097412109375, 0.04400634765625, 0.07757568359375, 0.0296630859375, 0.03314208984375, 0.00616455078125, 0.0732421875, 0.00347900390625, 0.0008544921875, 0.060791015625, 0.03277587890625, 0.10693359375, 0.0175323486328125, 0.1668701171875, 0.0844116...
embed
52295313_c0
52295313
ruby
0
Title: Get key name from Map Problem title: Get key name from Map Tags: ruby Problem: Get key name from Map Code signals: Map, Get, AMOUNT_LIMITS, online_banking, bank_payout, transaction_type.to_sym
Get key name from Map Get key name from Map ruby Map Get AMOUNT_LIMITS online_banking bank_payout transaction_type.to_sym Get key name from Map I have this Ruby structure How I can get the currency type from the map? For example: I need only the key for example cny as a String.
[ 0.01806640625, -0.0299072265625, 0.0184326171875, -0.0179443359375, -0.0172119140625, -0.007232666015625, 0.0003147125244140625, 0.027587890625, 0.0238037109375, 0.01953125, 0.0189208984375, -0.0050048828125, -0.0150146484375, 0.0078125, 0.01300048828125, 0.007110595703125, 0.0089721...
[ 20779, 22799, 9351, 1295, 42719, 21922, 53, 120862, 64163, 83318, 119119, 1118, 9802, 214, 4620, 21284, 6056, 124161, 50986, 188, 4650, 903, 158189, 45646, 831, 2046, 226649, 10644, 22288, 27781, 3871, 4734, 501, 299, 237, 23351 ]
[ 0.09814453125, 0.1761474609375, 0.17431640625, 0.133056640625, 0.227783203125, 0.135986328125, 0.14208984375, 0.039703369140625, 0.0830078125, 0.1400146484375, 0.049560546875, 0.102783203125, 0.0579833984375, 0.0806884765625, 0.07666015625, 0.06109619140625, 0.10723876953125, 0.125...
embed
30008987_c0
30008987
ruby
0
Title: ruby issue with float point iteration Problem title: ruby issue with float point iteration Tags: ruby, floating-point Problem: ruby issue with float point iteration When I run the code count = 0
ruby issue with float point iteration ruby issue with float point iteration ruby floating-point ruby issue with float point iteration When I run the code I would expect I have however been getting can anyone help explain this?
[ 0.011962890625, -0.0205078125, -0.0123291015625, -0.0086669921875, 0.000713348388671875, -0.0167236328125, -0.00457763671875, -0.0024871826171875, 0.0078125, -0.0030670166015625, -0.003631591796875, -0.016845703125, 0.0225830078125, 0.00933837890625, 0.0162353515625, -0.00909423828125,...
[ 21922, 53, 31089, 678, 21917, 6275, 17, 720, 2320, 257, 26518, 38496, 11675, 70, 18151, 87, 2806, 41206, 765, 49903, 2809, 20949, 831, 35672, 4358, 73342, 903 ]
[ 0.18359375, 0.15478515625, 0.184326171875, 0.095458984375, 0.1585693359375, 0.1243896484375, 0.06103515625, 0.2025146484375, 0.0139617919921875, 0.0167694091796875, 0.025848388671875, 0.1207275390625, 0.08148193359375, 0.015716552734375, 0.1439208984375, 0.01348876953125, 0.041961669...
embed
8822764_c0
8822764
ruby
0
Title: Why will a Range not work when descending? Problem title: Why will a Range not work when descending? Tags: ruby, range Problem: Why will a Range not work when descending? Code signals: Why, Range
Why will a Range not work when descending? Why will a Range not work when descending? ruby range Why Range Why will a Range not work when descending? Why will (1..5).each iterate over 1,2,3,4,5 , but (5..1) will not? It returns the Range instead.
[ 0.01251220703125, 0.004669189453125, 0.0022430419921875, 0.0159912109375, 0.00469970703125, 0.0191650390625, -0.0025482177734375, 0.0002956390380859375, 0.00445556640625, 0.046630859375, 0.00457763671875, 0.002288818359375, 0.0242919921875, -0.00384521484375, 0.0022735595703125, -0.011...
[ 44084, 1221, 10, 142462, 959, 4488, 3229, 60887, 214, 21922, 53, 37457, 5, 43317, 41581, 17, 8560, 645, 25568, 363, 80389, 1284, 11516, 17727, 30646, 64457 ]
[ 0.160400390625, 0.15185546875, 0.060699462890625, 0.295166015625, 0.1605224609375, 0.1927490234375, 0.1065673828125, 0.241455078125, 0.132568359375, 0.1744384765625, 0.1627197265625, 0.2379150390625, 0.034820556640625, 0.144775390625, 0.1241455078125, 0.053924560546875, 0.21337890625...
embed
33770268_c0
33770268
ruby
0
Title: How to remove elements from a 3D array in ruby Problem title: How to remove elements from a 3D array in ruby Tags: ruby Problem: How to remove elements from a 3D array in ruby Code signals: a, How
How to remove elements from a 3D array in ruby How to remove elements from a 3D array in ruby ruby a How How to remove elements from a 3D array in ruby I am trying to remove first element from the every 1D array in the 1st, 2nd and 5th column. The 3D array looks like Desired 3D array should look like I am not sure what...
[ -0.00177001953125, 0.01495361328125, -0.01495361328125, 0.005889892578125, -0.024169921875, -0.00775146484375, 0.00396728515625, 0.0035552978515625, 0.000579833984375, 0.00067901611328125, 0.00408935546875, -0.0260009765625, 0.00482177734375, 0.0087890625, -0.0277099609375, -0.00134277...
[ 11249, 87388, 80854, 1295, 138, 397, 10298, 53, 21922, 47, 23, 31577, 5117, 12830, 11907, 106, 190, 3365, 316, 33342, 56656, 2822, 6713, 2965 ]
[ 0.043304443359375, 0.1807861328125, 0.18408203125, 0.118408203125, 0.1827392578125, 0.13720703125, 0.183837890625, 0.1611328125, 0.1591796875, 0.000823974609375, 0.0224456787109375, 0.0198516845703125, 0.071533203125, 0.1448974609375, 0.02783203125, 0.0079345703125, 0.06793212890625,...
embed
50776286_c0
50776286
ruby
0
Title: Insert into a nested array Problem title: Insert into a nested array Tags: ruby, arrays Problem: Insert into a nested array INPUT arr =[] Code signals: Insert, CAR, Audi, XXX, XXXXX, OUTPUT, INPUT
Insert into a nested array Insert into a nested array ruby arrays Insert CAR Audi XXX XXXXX OUTPUT INPUT Insert into a nested array I have cars described in a file in this form: I want to insert the cars from this file into a 10 x 10 nested array. The second line are coordinates (R x C) from the left top point for the ...
[ -0.0078125, -0.0076904296875, 0.0030670166015625, 0.017578125, -0.0040283203125, 0.0299072265625, -0.004974365234375, -0.0220947265625, 0.00933837890625, 0.012939453125, -0.01519775390625, -0.0233154296875, -0.02294921875, 0.01409912109375, -0.0107421875, -0.0113525390625, 0.01336669...
[ 360, 33657, 3934, 10, 8512, 71, 10298, 53, 21922, 4778, 42476, 21679, 44585, 1193, 205378, 52001, 5881, 765, 2258, 7, 151552, 11435, 3173, 3444, 183540, 209, 1022, 17932, 13315, 621, 176866, 1052, 313, 25737, 2663, 6275, 4034, 111, 198387, ...
[ 0.12353515625, 0.2364501953125, 0.2371826171875, 0.07489013671875, 0.276611328125, 0.1707763671875, 0.2156982421875, 0.16796875, 0.1522216796875, 0.102783203125, 0.2188720703125, 0.2386474609375, 0.0845947265625, 0.010040283203125, 0.1318359375, 0.1031494140625, 0.12158203125, 0.00...
embed
23484691_c1
23484691
ruby
1
8000OK1L, xB2441J5, xB5, xB0, u0003, xB9, x91, u0018, Read, Zlib::GzipReader.open, reader.read, xC8, u0011, x97N, xB82, x9E, x89, xC9, xD6dFp, x80, u0005, xB2y, xC6, xF94, u0006, xF1, x83, u000F, xC4, xF0
8000OK1L, xB2441J5, xB5, xB0, u0003, xB9, x91, u0018, Read, Zlib::GzipReader.open, reader.read, xC8, u0011, x97N, xB82, x9E, x89, xC9, xD6dFp, x80, u0005, xB2y, xC6, xF94, u0006, xF1, x83, u000F, xC4, xF0
[ 0.00799560546875, 0.021728515625, 0.006927490234375, -0.004547119140625, 0.0123291015625, 0.00014019012451171875, -0.0147705078125, -0.006072998046875, 0.0042724609375, 0.0419921875, 0.0250244140625, 0.037109375, -0.0008087158203125, -0.039794921875, 0.00089263916015625, 0.007629394531...
[ 81821, 9092, 418, 866, 4, 1022, 571, 2357, 8894, 1375, 758, 2389, 75, 9508, 363, 1126, 12183, 7049, 1819, 4764, 567, 5612, 12, 724, 50836, 31345, 56, 5, 59636, 155255, 39116, 441, 1019, 1662, 14773, 839, 12012, 647, 18949, 92046, 254, ...
[ 0.271240234375, 0.1898193359375, 0.06781005859375, 0.14013671875, 0.04888916015625, 0.05743408203125, 0.0938720703125, 0.11279296875, 0.140625, 0.076904296875, 0.1041259765625, 0.0665283203125, 0.04473876953125, 0.12890625, 0.082763671875, 0.122802734375, 0.179443359375, 0.04122924...
embed
10367781_c0
10367781
ruby
0
Title: Ruby scan regex will not match optional Problem title: Ruby scan regex will not match optional Tags: ruby, regex Problem: Ruby scan regex will not match optional Code signals: Ruby, a.scan, a-z_0-9
Ruby scan regex will not match optional Ruby scan regex will not match optional ruby regex Ruby a.scan a-z_0-9 Ruby scan regex will not match optional Take this string. But how come this next string gets nothing? How can I have it so both strings output into a 3 count array?
[ -0.0169677734375, -0.005767822265625, 0.006622314453125, 0.038330078125, -0.0341796875, 0.004913330078125, 0.0023193359375, 0.00775146484375, 0.0233154296875, 0.0625, 0.0086669921875, 0.016845703125, -0.00144195556640625, -0.003326416015625, 0.01312255859375, -0.004302978515625, 0.02...
[ 158189, 44954, 6835, 3355, 959, 14858, 35829, 289, 1221, 21922, 53, 10, 7, 4398, 169, 2389, 15205, 46673, 79315, 1380, 11737, 62163, 33720, 15044, 140992, 138, 54529, 10298 ]
[ 0.2222900390625, 0.1846923828125, 0.1097412109375, 0.1724853515625, 0.086669921875, 0.1451416015625, 0.133056640625, 0.021453857421875, 0.0308837890625, 0.08526611328125, 0.0640869140625, 0.03179931640625, 0.011566162109375, 0.1512451171875, 0.059967041015625, 0.0237579345703125, 0.1...
embed
48780739_c0
48780739
ruby
0
Title: How to expand a two dimentioanl array Problem title: How to expand a two dimentioanl array Tags: ruby, multidimensional-array, arrays Problem: How to expand a two dimentioanl array Code signals: How
How to expand a two dimentioanl array How to expand a two dimentioanl array ruby multidimensional-array arrays How How to expand a two dimentioanl array is there easy way that we can pad zero's around two dimensional ruby array ? to this
[ 0.0255126953125, 0.00665283203125, -0.0218505859375, 0.0546875, 0.00311279296875, -0.0003299713134765625, -0.00213623046875, 0.0216064453125, 0.00115966796875, -0.006927490234375, 0.0286865234375, -0.0218505859375, -0.005096435546875, 0.01336669921875, -0.0279541015625, -0.001708984375...
[ 11249, 47, 71062, 6626, 45, 12445, 10298, 53, 141, 21922, 6024, 157955, 19305, 4778, 23468, 3917, 7922, 45234, 10932 ]
[ 0.0750732421875, 0.05572509765625, 0.221435546875, 0.1494140625, 0.04486083984375, 0.0615234375, 0.172607421875, 0.1170654296875, 0.0198211669921875, 0.1529541015625, 0.028533935546875, 0.1407470703125, 0.0938720703125, 0.029022216796875, 0.0665283203125, 0.0266876220703125, 0.144653...
embed
38937634_c0
38937634
ruby
0
Title: How to read a list into an array in Ruby? Problem title: How to read a list into an array in Ruby? Tags: arrays, ruby, list Problem: How to read a list into an array in Ruby? Code signals: How, Ruby
How to read a list into an array in Ruby? How to read a list into an array in Ruby? arrays ruby list How Ruby How to read a list into an array in Ruby? I've got a .txt file like this: How do I pass this into an array and then access it's elements by index?
[ 0.004608154296875, -0.0034027099609375, 0.0074462890625, 0.0213623046875, -0.00860595703125, 0.0123291015625, -0.0010986328125, 0.00921630859375, -0.000545501708984375, 0.004608154296875, 0.0118408203125, -0.02783203125, -0.00830078125, 0.00701904296875, -0.003997802734375, -0.02685546...
[ 11249, 47, 12301, 5303, 3934, 142, 10298, 53, 23, 158189, 4778, 21922, 10, 124326, 11435, 903, 27875, 17203, 80854, 63262 ]
[ 0.070068359375, 0.028564453125, 0.20458984375, 0.2208251953125, 0.161376953125, 0.0447998046875, 0.188720703125, 0.1796875, 0.063720703125, 0.250244140625, 0.0775146484375, 0.1182861328125, 0.01861572265625, 0.167236328125, 0.07904052734375, 0.00189208984375, 0.089599609375, 0.1174...
embed
22887465_c0
22887465
ruby
0
Title: Ruby greater than operand weird behaviour Problem title: Ruby greater than operand weird behaviour Tags: ruby-2.1, ruby Problem: Ruby greater than operand weird behaviour Code signals: Ruby, ruby-2.1
Ruby greater than operand weird behaviour Ruby greater than operand weird behaviour ruby-2.1 ruby Ruby ruby-2.1 Ruby greater than operand weird behaviour Can someone please explain me why this can be happening Why is "10" > "3" returning false ?
[ 0.0152587890625, 0.00927734375, -0.0024261474609375, 0.00543212890625, -0.00439453125, -0.001678466796875, 0.0032501220703125, 0.0235595703125, 0.0123291015625, 0.0186767578125, 0.023193359375, -0.00341796875, 0.00848388671875, -0.012939453125, 0.01190185546875, -0.006439208984375, -...
[ 158189, 117396, 3501, 6264, 2208, 179459, 224833, 21922, 53, 68107, 22936, 73342, 15400, 903, 831, 123087, 44084, 83, 963, 977, 363, 30646, 214, 98320 ]
[ 0.20947265625, 0.10260009765625, 0.04296875, 0.105224609375, 0.0186767578125, 0.1474609375, 0.14990234375, 0.1275634765625, 0.0748291015625, 0.1351318359375, 0.004734039306640625, 0.0740966796875, 0.07366943359375, 0.048370361328125, 0.0295562744140625, 0.062103271484375, 0.041107177...
embed
6468105_c0
6468105
ruby
0
Title: Ruby array strange behaviour Problem title: Ruby array strange behaviour Tags: arrays, ruby Problem: Ruby array strange behaviour Code signals: Ruby, sample_data, to_a, sample_data.clone, matrix.each
Ruby array strange behaviour Ruby array strange behaviour arrays ruby Ruby sample_data to_a sample_data.clone matrix.each Ruby array strange behaviour I misunderstand Array behaviour When i created this matrix I have this result Instead the expected result What wrong ?
[ 0.01214599609375, 0.025390625, -0.0005340576171875, 0.0162353515625, -0.0096435546875, 0.01251220703125, -0.0064697265625, 0.00830078125, 0.015625, 0.0167236328125, 0.002044677734375, 0.00616455078125, 0.0034942626953125, -0.0020751953125, 0, -0.00872802734375, -0.003875732421875, ...
[ 158189, 10298, 53, 114453, 224833, 4778, 21922, 121413, 10135, 47, 63499, 86, 50944, 425, 5, 41581, 1239, 24658, 5165, 69253, 75935, 903, 16750, 175399, 84751, 4865, 44691 ]
[ 0.2509765625, 0.1981201171875, 0.13916015625, 0.1580810546875, 0.1497802734375, 0.00543212890625, 0.1474609375, 0.16552734375, 0.10498046875, 0.08270263671875, 0.1114501953125, 0.049407958984375, 0.15283203125, 0.0982666015625, 0.036651611328125, 0.080322265625, 0.0457763671875, 0....
embed
7608687_c0
7608687
ruby
0
Title: How can I index duplicate items in an array? Problem title: How can I index duplicate items in an array? Tags: ruby Problem: How can I index duplicate items in an array? Code signals: How, example.org
How can I index duplicate items in an array? How can I index duplicate items in an array? ruby How example.org How can I index duplicate items in an array? Starting with the following array (of hashes): How can I add an index of the duplicate urls like so:
[ -0.0036468505859375, 0.001312255859375, -0.0091552734375, -0.0166015625, 0.0029754638671875, 0.002227783203125, -0.00457763671875, -0.007293701171875, 0.0098876953125, -0.0250244140625, -0.0166015625, -0.009521484375, 0.00762939453125, 0.03955078125, -0.0011749267578125, 0.001434326171...
[ 11249, 831, 87, 63262, 171763, 67, 55769, 23, 10298, 53, 142, 21922, 27781, 1478, 13794, 678, 25632, 4390, 256, 114942, 15190, 25002, 1884, 221 ]
[ 0.0767822265625, 0.094482421875, 0.06451416015625, 0.257080078125, 0.266357421875, 0.1683349609375, 0.1796875, 0.09393310546875, 0.183837890625, 0.1446533203125, 0.0229034423828125, 0.09228515625, 0.1510009765625, 0.0731201171875, 0.0289154052734375, 0.011260986328125, 0.038818359375...
embed
14986487_c0
14986487
ruby
0
Title: Ruby subsecond time addition incorrect Problem title: Ruby subsecond time addition incorrect Tags: time, ruby Problem: Ruby subsecond time addition incorrect Code signals: Ruby, t1.strftime, t2.strftime
Ruby subsecond time addition incorrect Ruby subsecond time addition incorrect time ruby Ruby t1.strftime t2.strftime Ruby subsecond time addition incorrect I am having an issue with adding floating point numbers to time in ruby. In the example below, how is t2 not equal to 2013-02-15T01:17:17.996000000?
[ 0.003326416015625, 0.0037078857421875, 0.0087890625, 0.0118408203125, -0.01104736328125, -0.0152587890625, -0.013671875, 0.0181884765625, -0.0057373046875, 0.0142822265625, 0.0223388671875, 0.017822265625, 0.01031494140625, 0.032470703125, -0.0062255859375, -0.004608154296875, 0.0133...
[ 158189, 1614, 191633, 1733, 66044, 214552, 21922, 53, 808, 418, 9297, 420, 6032, 5442, 31089, 154107, 21917, 26518, 6275, 101935, 47, 27781, 35064, 3642, 83, 304, 959, 105950, 1210, 43627, 1837, 22950, 185245, 197094 ]
[ 0.2498779296875, 0.1617431640625, 0.1884765625, 0.176513671875, 0.142578125, 0.1636962890625, 0.1627197265625, 0.166015625, 0.1365966796875, 0.0263519287109375, 0.03155517578125, 0.01824951171875, 0.1419677734375, 0.1474609375, 0.0418701171875, 0.0810546875, 0.1048583984375, 0.0667...
embed
24622911_c0
24622911
ruby
0
Title: Why is Fixnum#size equal to 8? Problem title: Why is Fixnum#size equal to 8? Tags: ruby Problem: Why is Fixnum#size equal to 8? Why does nil.to_i.size return 8 ? Code signals: Why, Fixnum, nil.to_i.size
Why is Fixnum#size equal to 8? Why is Fixnum#size equal to 8? ruby Why Fixnum nil.to_i.size Why is Fixnum#size equal to 8? Why does nil.to_i.size return 8 ?
[ 0.0224609375, -0.00994873046875, 0.025146484375, 0.01080322265625, -0.026611328125, 0.01495361328125, 0.0033111572265625, 0.007293701171875, 0.00616455078125, 0.005706787109375, 0.02587890625, -0.02783203125, -0.004486083984375, 0.0157470703125, 0.018798828125, -0.02197265625, 0.0291...
[ 44084, 83, 96746, 2606, 4904, 62539, 105950, 382, 47, 21922, 53, 17324, 188, 14, 6, 30646 ]
[ 0.155029296875, 0.052947998046875, 0.22900390625, 0.23486328125, 0.143798828125, 0.1978759765625, 0.1199951171875, 0.1934814453125, 0.04510498046875, 0.0589599609375, 0.025543212890625, 0.1771240234375, 0.1392822265625, 0.1126708984375, 0.02520751953125, 0.1134033203125 ]
embed
36632162_c0
36632162
ruby
0
Title: How does `get` work? Problem title: How does `get` work? Tags: ruby, database, ruby-on-rails, get Problem: How does `get` work? I saw this: get '/:key' do |key| I want to know its use. Code signals: How
How does `get` work? How does `get` work? ruby database ruby-on-rails get How How does `get` work? I saw this: I want to know its use.
[ -0.014404296875, -0.0037994384765625, -0.0023040771484375, -0.0291748046875, -0.01336669921875, -0.005645751953125, -0.00130462646484375, -0.00970458984375, 0.01275634765625, -0.05810546875, 0.01239013671875, -0.0179443359375, -0.02001953125, -0.005706787109375, -0.0205078125, -0.02221...
[ 11249, 14602, 3794, 1135, 4488, 9473, 21922, 53, 63399, 191, 68823, 7, 2046, 24124, 3444, 3714, 6863, 4527 ]
[ 0.1397705078125, 0.1300048828125, 0.2496337890625, 0.0849609375, 0.1798095703125, 0.0173187255859375, 0.104736328125, 0.1234130859375, 0.1773681640625, 0.131591796875, 0.1591796875, 0.021484375, 0.200927734375, 0.05474853515625, 0.025604248046875, 0.0272979736328125, 0.0771484375, ...
embed
13947817_c0
13947817
ruby
0
Title: Numeric literals prepended with `0` Problem title: Numeric literals prepended with `0` Tags: ruby, number-literal Problem: Numeric literals prepended with `0` Code signals: Numeric, Array, myarray.insert
Numeric literals prepended with `0` Numeric literals prepended with `0` ruby number-literal Numeric Array myarray.insert Numeric literals prepended with `0` Using insert , I push values to an Array as: If do the following, I get: 020 becomes 16 ? If I do the following, I get: 0200 becomes 128 ? May I know the reason fo...
[ -0.006011962890625, -0.037109375, -0.0252685546875, 0.000637054443359375, -0.01806640625, 0.00677490234375, 0.00009393692016601562, -0.0147705078125, 0.0172119140625, 0.0159912109375, -0.0005950927734375, 0.00054168701171875, -0.018798828125, -0.018798828125, 0.004364013671875, -0.0114...
[ 93511, 1771, 15659, 16765, 479, 26885, 71, 678, 2389, 21922, 53, 14012, 39798, 289, 69253, 759, 19305, 73, 33657, 345, 183540, 87, 25944, 142424, 47, 142, 237, 4263, 54, 25632, 2046, 113266, 24209, 7, 611, 757, 5955, 26560, 4347, 3714, ...
[ 0.1402587890625, 0.092529296875, 0.1934814453125, 0.169677734375, 0.1068115234375, 0.1923828125, 0.0380859375, 0.0948486328125, 0.20751953125, 0.1639404296875, 0.153564453125, 0.1143798828125, 0.15234375, 0.09149169921875, 0.1400146484375, 0.09149169921875, 0.1162109375, 0.06213378...
embed
15676113_c0
15676113
ruby
0
Title: Ruby robotic control Problem title: Ruby robotic control Tags: ruby, robotics Problem: Ruby robotic control How would a person use Ruby to control a robot or some other robotic device? Code signals: Ruby
Ruby robotic control Ruby robotic control ruby robotics Ruby Ruby robotic control How would a person use Ruby to control a robot or some other robotic device?
[ 0.02197265625, 0.02197265625, 0.005645751953125, 0.01611328125, -0.0012664794921875, -0.00592041015625, 0.017578125, -0.00408935546875, -0.0004062652587890625, -0.027587890625, 0.0098876953125, -0.0281982421875, -0.000766754150390625, 0.006195068359375, -0.00909423828125, 0.00601196289...
[ 158189, 11329, 1771, 6226, 21922, 53, 28021, 11249, 2806, 10, 3445, 4527, 47, 707, 3789, 75186, 32 ]
[ 0.29052734375, 0.2237548828125, 0.12469482421875, 0.2393798828125, 0.1724853515625, 0.1602783203125, 0.08587646484375, 0.06622314453125, 0.1156005859375, 0.06884765625, 0.10369873046875, 0.1551513671875, 0.12841796875, 0.0037288665771484375, 0.0291748046875, 0.130859375, 0.0139770507...
embed
23425726_c1
23425726
ruby
1
33333333333333 # => 1.8333333333333333 1.93333333333333333333 # => 1.9333333333333333 Is it a bug or just precision undefined behavior? Code signals: Float, X3333333333333333, X333333333333334, X333333333333333
33333333333333 # => 1.8333333333333333 1.93333333333333333333 # => 1.9333333333333333 Is it a bug or just precision undefined behavior? Code signals: Float, X3333333333333333, X333333333333334, X333333333333333
[ -0.00341796875, -0.005096435546875, -0.0206298828125, -0.0130615234375, -0.010498046875, 0.00848388671875, 0.00433349609375, 0.0018310546875, 0.0478515625, 0.041015625, -0.004119873046875, -0.00811767578125, 0.01409912109375, 0.00457763671875, 0.01458740234375, 0.01220703125, 0.01544...
[ 3912, 66000, 468, 44357, 79875, 615, 11591, 99420, 2071, 442, 10, 54608, 707, 1660, 22619, 1830, 9232, 5983, 123166, 28864, 26073, 7, 38699, 257, 1193, 363, 124618 ]
[ 0.2138671875, 0.29248046875, 0.15478515625, 0.1402587890625, 0.182861328125, 0.06103515625, 0.216552734375, 0.16552734375, 0.016204833984375, 0.0694580078125, 0.02734375, 0.2440185546875, 0.0282745361328125, 0.0174560546875, 0.25341796875, 0.1241455078125, 0.09344482421875, 0.19458...
embed
32390742_c0
32390742
ruby
0
Title: Implementing incremental search in mysql Problem title: Implementing incremental search in mysql Tags: ruby-on-rails, mysql, ruby Problem: Implementing incremental search in mysql Code signals: Implementing
Implementing incremental search in mysql Implementing incremental search in mysql ruby-on-rails mysql ruby Implementing Implementing incremental search in mysql I want to implement an incremental search in MySQL. That search will be from left to right. I have the following data in MySQL. Test database: http://sqlfiddle...
[ 0.0009002685546875, 0.000682830810546875, 0.01422119140625, -0.000560760498046875, -0.0040283203125, 0.01348876953125, 0.00653076171875, -0.0235595703125, -0.00173187255859375, -0.0419921875, -0.00128173828125, -0.015869140625, -0.013916015625, 0.01068115234375, 0.007354736328125, 0.00...
[ 153941, 214, 145322, 141, 33938, 23, 759, 7, 99247, 21922, 53, 191, 68823, 3444, 29479, 157146, 1221, 186, 1295, 25737, 47, 7108, 25632, 2053, 8647, 63399, 1029, 4028, 133, 3742, 11583, 152365, 456, 3996, 3134, 756, 18151, 450, 765, 617, ...
[ 0.202392578125, 0.0155029296875, 0.2364501953125, 0.1571044921875, 0.253662109375, 0.0869140625, 0.126220703125, 0.06182861328125, 0.212646484375, 0.122314453125, 0.1357421875, 0.1624755859375, 0.1712646484375, 0.081787109375, 0.1981201171875, 0.235595703125, 0.00341796875, 0.01321...
embed
27173525_c3
27173525
ruby
3
64, ruby-1.8.7.299-5.el6_0.1.x86_64, el6_0.1, ruby-1.8.7.299-7.el6.x86_64, ruby-1.8.7.299-7.el6_1.1.x86_64, el6_1.1, ruby-1.8.7.352-3.el6.x86_64, ruby-1.8.7.352-4.el6_2.x86_64, el6_2, ruby-1.8.7.352-7.el6_2.x86_64
64, ruby-1.8.7.299-5.el6_0.1.x86_64, el6_0.1, ruby-1.8.7.299-7.el6.x86_64, ruby-1.8.7.299-7.el6_1.1.x86_64, el6_1.1, ruby-1.8.7.352-3.el6.x86_64, ruby-1.8.7.352-4.el6_2.x86_64, el6_2, ruby-1.8.7.352-7.el6_2.x86_64
[ 0.00482177734375, -0.00860595703125, 0.005218505859375, -0.00250244140625, 0.0120849609375, 0.006011962890625, -0.0185546875, -0.0142822265625, 0.007537841796875, 0.0260009765625, 0.01458740234375, -0.01141357421875, -0.0029144287109375, -0.000324249267578125, -0.0255126953125, -0.0049...
[ 7911, 4, 21922, 53, 9, 119044, 5, 179642, 5046, 10342, 583, 910, 454, 102014, 425, 15276, 13307, 88, 16709, 115187, 22892, 92134, 53489, 5843, 102038, 145515, 12744, 11565, 5442, 304 ]
[ 0.290283203125, 0.098876953125, 0.248291015625, 0.239501953125, 0.1280517578125, 0.25341796875, 0.1583251953125, 0.18212890625, 0.253662109375, 0.159912109375, 0.1495361328125, 0.1805419921875, 0.0902099609375, 0.1993408203125, 0.05438232421875, 0.280517578125, 0.28125, 0.163208007...
embed
38223385_c0
38223385
ruby
0
Title: what is this error in ruby on rails? Problem title: what is this error in ruby on rails? Tags: ruby, ruby-on-rails Problem: what is this error in ruby on rails? I'm sorry for this question. tks for reading.
what is this error in ruby on rails? what is this error in ruby on rails? ruby ruby-on-rails what is this error in ruby on rails? I'm sorry for this question. tks for reading.
[ 0.01202392578125, 0.006134033203125, -0.0093994140625, -0.01470947265625, 0.0140380859375, 0.01080322265625, -0.01239013671875, 0.01043701171875, -0.0081787109375, -0.055419921875, -0.0013580322265625, -0.0341796875, 0.004547119140625, 0.03173828125, 0.000904083251953125, -0.0003452301...
[ 2367, 83, 903, 18499, 23, 21922, 53, 98, 673, 7870, 32, 191, 68823, 7, 59090, 16454 ]
[ 0.06903076171875, 0.0655517578125, 0.1502685546875, 0.1962890625, 0.08563232421875, 0.1507568359375, 0.15478515625, 0.1976318359375, 0.1279296875, 0.15625, 0.006378173828125, 0.1834716796875, 0.18310546875, 0.046844482421875, 0.0214080810546875, 0.00885009765625 ]
embed
15230715_c1
15230715
ruby
1
0.0435 What I expect: 4217 4217,11045842,11027563,15055960,12556773,10317812,21268053,14982717,12560416,21684075,12177392,878710,21777845,11045966,17109375,15701596,10312162,11045878 Code signals: Parsing, CSV, X:1
0.0435 What I expect: 4217 4217,11045842,11027563,15055960,12556773,10317812,21268053,14982717,12560416,21684075,12177392,878710,21777845,11045966,17109375,15701596,10312162,11045878 Code signals: Parsing, CSV, X:1
[ -0.006195068359375, -0.00145721435546875, -0.007781982421875, 0.0302734375, 0.00738525390625, 0.01953125, 0.010498046875, 0.0184326171875, 0.0068359375, 0.0205078125, 0.0018463134765625, -0.0179443359375, -0.0037384033203125, 0.002166748046875, 0.0036773681640625, -0.0021209716796875, ...
[ 89678, 123141, 4865, 87, 41206, 12, 4828, 2489, 4, 36053, 4633, 181045, 3768, 13683, 363, 19236, 160443, 4598, 63652, 162082, 13574, 63620, 139305, 1530, 91092, 14226, 2592, 16665, 193438, 2485, 93657, 2839, 6873, 198416, 128341, 963, 170702, ...
[ 0.1683349609375, 0.211181640625, 0.0789794921875, 0.132080078125, 0.24609375, 0.043121337890625, 0.196533203125, 0.2425537109375, 0.060211181640625, 0.077392578125, 0.101318359375, 0.1358642578125, 0.069091796875, 0.060577392578125, 0.07354736328125, 0.068115234375, 0.078857421875, ...
embed
3400064_c0
3400064
ruby
0
Title: render a view within a view Problem title: render a view within a view Tags: ruby-on-rails, ruby Problem: render a view within a view How do I render a view within another view... in rails... is it possible?
render a view within a view render a view within a view ruby-on-rails ruby render a view within a view How do I render a view within another view... in rails... is it possible?
[ -0.01141357421875, 0.0076904296875, -0.0194091796875, -0.00830078125, 0.01300048828125, -0.017578125, -0.0322265625, -0.0079345703125, 0.005157470703125, -0.07080078125, -0.0164794921875, -0.000457763671875, -0.00506591796875, 0.0027923583984375, -0.004425048828125, 0.005157470703125, ...
[ 89159, 21455, 28032, 10, 21922, 53, 191, 68823, 7, 54, 15700, 23, 673, 7870, 7722 ]
[ 0.2578125, 0.2578125, 0.21337890625, 0.04571533203125, 0.12939453125, 0.12298583984375, 0.12127685546875, 0.1978759765625, 0.0538330078125, 0.014617919921875, 0.11004638671875, 0.06494140625, 0.19091796875, 0.203857421875, 0.1312255859375 ]
embed
991909_c0
991909
ruby
0
Title: ruby refactoring cheatsheet? Problem title: ruby refactoring cheatsheet? Tags: ruby Problem: ruby refactoring cheatsheet? is there any free cheatsheet on ruby refactoring that i can print and put on the wall?
ruby refactoring cheatsheet? ruby refactoring cheatsheet? ruby ruby refactoring cheatsheet? is there any free cheatsheet on ruby refactoring that i can print and put on the wall?
[ 0.0035552978515625, 0.00604248046875, 0.0115966796875, -0.01422119140625, 0.01104736328125, 0.0167236328125, -0.015625, -0.007080078125, -0.00323486328125, 0.024658203125, 0.00836181640625, -0.010986328125, 0.01055908203125, 0.0341796875, -0.0087890625, 0.0064697265625, -0.0033111572...
[ 21922, 53, 456, 144810, 214, 290, 257, 7816, 126, 32, 4092, 831, 28412, 3884, 98, 58982 ]
[ 0.15625, 0.15576171875, 0.1591796875, 0.224609375, 0.1103515625, 0.1773681640625, 0.1104736328125, 0.2177734375, 0.1212158203125, 0.0176239013671875, 0.1075439453125, 0.001983642578125, 0.118896484375, 0.0245208740234375, 0.007232666015625, 0.1165771484375 ]
embed
16097690_c0
16097690
ruby
0
Title: inserting hash into a specific array location Problem title: inserting hash into a specific array location Tags: ruby, hash Problem: inserting hash into a specific array location Code signals: key1, key2, key3
inserting hash into a specific array location inserting hash into a specific array location ruby hash key1 key2 key3 inserting hash into a specific array location I'd like to insert a hash into a specific location in an array. I have this: and would like to insert this hash into the array So that the result is Can anyo...
[ -0.015380859375, -0.01153564453125, -0.031494140625, 0.00506591796875, -0.00714111328125, -0.01092529296875, -0.01373291015625, 0.0142822265625, 0.00860595703125, 0.0224609375, -0.005096435546875, -0.00750732421875, 0.01385498046875, -0.01300048828125, -0.00823974609375, -0.00485229492...
[ 183540, 214, 1556, 127, 3934, 29458, 10298, 53, 31913, 21922, 22799, 418, 304, 363, 71, 1884, 23, 765, 903, 2806, 47, 450, 16750, 35672, 4358, 22936 ]
[ 0.20458984375, 0.07952880859375, 0.2130126953125, 0.1954345703125, 0.1474609375, 0.19091796875, 0.162353515625, 0.1256103515625, 0.1912841796875, 0.1337890625, 0.1434326171875, 0.008636474609375, 0.03900146484375, 0.108642578125, 0.0032958984375, 0.088134765625, 0.029541015625, 0.0...
embed
53156687_c0
53156687
ruby
0
Title: REXML ruby next element Problem title: REXML ruby next element Tags: xml, rexml, ruby Problem: REXML ruby next element Code signals: REXML, ARGV, File.new, Document.new, doc.elements.each, i.next, i.attributes
REXML ruby next element REXML ruby next element xml rexml ruby REXML ARGV File.new Document.new doc.elements.each i.next i.attributes REXML ruby next element I'm trying to get element and next element from XML Here what I have tried to do, but instead of "puts i.attributes["ref"]" I need something like "puts "#{i.attri...
[ -0.006622314453125, 0.01239013671875, -0.00927734375, 0.0164794921875, 0.0133056640625, 0.01904296875, 0.005615234375, 0.00506591796875, 0.00372314453125, 0.01531982421875, 0.006744384765625, -0.01324462890625, -0.00811767578125, -0.0244140625, -0.0216064453125, -0.00946044921875, 0....
[ 9069, 1542, 39456, 21922, 53, 11737, 12830, 131492, 456, 13685, 75166, 42724, 54936, 43101, 51584, 62766, 41581, 17, 86, 29062, 257, 191145, 31577, 47, 2046, 136, 1295, 92537, 11853, 37842, 64457, 7077, 29087, 3871, 14, 33079, 21748, 100582, ...
[ 0.08984375, 0.1019287109375, 0.1995849609375, 0.162841796875, 0.1640625, 0.19970703125, 0.20849609375, 0.25390625, 0.095947265625, 0.048095703125, 0.1802978515625, 0.10546875, 0.0231475830078125, 0.06048583984375, 0.05194091796875, 0.153076171875, 0.06048583984375, 0.1153564453125,...
embed
15722325_c0
15722325
ruby
0
Title: how and when are Ruby variables instantiated Problem title: how and when are Ruby variables instantiated Tags: ruby, ruby-on-rails Problem: how and when are Ruby variables instantiated Code signals: Ruby, Rails
how and when are Ruby variables instantiated how and when are Ruby variables instantiated ruby ruby-on-rails Ruby Rails how and when are Ruby variables instantiated from rails console: my question is, why the does variable kol get instantiated to nil even though the condition (1==2) fails?
[ 0.033447265625, 0.0028533935546875, 0.01092529296875, -0.0079345703125, 0.00897216796875, 0.0128173828125, -0.0034332275390625, 0.0042724609375, 0.0016326904296875, -0.004180908203125, 0.00482177734375, -0.0277099609375, -0.0034637451171875, 0.024169921875, -0.00994873046875, 0.0039367...
[ 3642, 136, 3229, 158189, 77336, 7, 34648, 14, 27686, 621, 21922, 53, 191, 68823, 85736, 1295, 673, 7870, 130250, 15400, 5812, 2046, 47, 17324, 35431, 69112, 10461, 35782 ]
[ 0.04473876953125, 0.0455322265625, 0.0576171875, 0.2276611328125, 0.25634765625, 0.07940673828125, 0.1214599609375, 0.08843994140625, 0.06939697265625, 0.009246826171875, 0.0999755859375, 0.0882568359375, 0.0947265625, 0.1270751953125, 0.1717529296875, 0.013427734375, 0.107177734375,...
embed
14248113_c0
14248113
ruby
0
Title: Iterate through dynamic JSON keys Problem title: Iterate through dynamic JSON keys Tags: ruby, ruby-on-rails Problem: Iterate through dynamic JSON keys Code signals: Iterate, JSON, JSON.parse, response.read_body
Iterate through dynamic JSON keys Iterate through dynamic JSON keys ruby ruby-on-rails Iterate JSON JSON.parse response.read_body Iterate through dynamic JSON keys Using: Returned this hash: The problem is that the Date keys can be any date value. I want the sum of all values.
[ 0.007110595703125, -0.006927490234375, 0.0034637451171875, -0.0244140625, -0.004547119140625, 0.0142822265625, -0.0045166015625, 0.01116943359375, -0.00909423828125, -0.0115966796875, -0.01104736328125, 0.01080322265625, -0.00341796875, -0.0262451171875, 0.01068115234375, 0.01019287109...
[ 8560, 67, 8305, 84079, 821, 58627, 22799, 87, 7, 21922, 53, 191, 68823, 2500, 57553, 39116, 37873, 173340, 903, 1556, 127, 2967, 25512, 831, 186, 2499, 5622, 34292, 3444, 10554, 111, 756, 142424 ]
[ 0.2301025390625, 0.0804443359375, 0.111572265625, 0.2066650390625, 0.1212158203125, 0.198974609375, 0.1866455078125, 0.0199737548828125, 0.033050537109375, 0.1024169921875, 0.113037109375, 0.149169921875, 0.196533203125, 0.058624267578125, 0.1533203125, 0.103759765625, 0.1484375, 0...
embed
22270021_c0
22270021
ruby
0
Title: ruby adds no path to gems Problem title: ruby adds no path to gems Tags: rake, rvm, ruby Problem: ruby adds no path to gems Code signals: ruby1.9, LOAD_PATH, ruby-1.9.3-p545, site_ruby, x86_64-linux, vendor_ruby
ruby adds no path to gems ruby adds no path to gems rake rvm ruby ruby1.9 LOAD_PATH ruby-1.9.3-p545 site_ruby x86_64-linux vendor_ruby ruby adds no path to gems I use: rvm 1.25.19 (stable) ruby 1.9.3p545 I install gem rake command I understand that $LOAD_PATH should contain the paths: I execute command: output: why pat...
[ -0.00921630859375, 0.023193359375, -0.0157470703125, 0.00335693359375, -0.016357421875, 0.01708984375, -0.00701904296875, 0.018310546875, 0.00079345703125, -0.0002613067626953125, 0.0069580078125, -0.01153564453125, -0.00567626953125, 0.01446533203125, -0.0130615234375, 0.0074768066406...
[ 21922, 53, 15190, 110, 60875, 47, 30203, 7, 15807, 13, 33760, 39, 158304, 22215, 65135, 758, 4633, 882, 1272, 15276, 13307, 2397, 6077, 116366, 2588, 2947, 22819, 99420, 363, 20600, 75101, 28219, 17014, 12351, 841, 70541, 71924, 140992, 154...
[ 0.1715087890625, 0.1517333984375, 0.1292724609375, 0.09765625, 0.21875, 0.0941162109375, 0.2054443359375, 0.1158447265625, 0.149658203125, 0.140380859375, 0.107421875, 0.1080322265625, 0.1649169921875, 0.054656982421875, 0.1263427734375, 0.054901123046875, 0.1484375, 0.095703125, ...
embed
48587884_c0
48587884
ruby
0
Title: Merge array of hashes where condition is met Problem title: Merge array of hashes where condition is met Tags: ruby Problem: Merge array of hashes where condition is met Code signals: Merge, Sun, Aug, Mon, Fri, Sat
Merge array of hashes where condition is met Merge array of hashes where condition is met ruby Merge Sun Aug Mon Fri Sat Merge array of hashes where condition is met I have the following code: I want to merge / add :slots where :date is equal
[ -0.00014781951904296875, -0.0020904541015625, -0.00994873046875, -0.00144195556640625, -0.0164794921875, 0.00012302398681640625, -0.006103515625, 0.01287841796875, 0.016357421875, 0.05517578125, -0.0035247802734375, 0.024658203125, 0.0023345947265625, 0.00927734375, 0.00201416015625, 0...
[ 6035, 429, 10298, 53, 256, 114942, 7440, 35431, 83, 435, 111, 21922, 7550, 23177, 7465, 9173, 20745, 18151, 3444, 42564, 15190, 12631, 17489, 105950 ]
[ 0.2100830078125, 0.1419677734375, 0.1962890625, 0.1607666015625, 0.1900634765625, 0.1976318359375, 0.0697021484375, 0.22021484375, 0.0201873779296875, 0.1500244140625, 0.045501708984375, 0.172119140625, 0.141845703125, 0.156005859375, 0.1103515625, 0.16015625, 0.1553955078125, 0.14...
embed
77928967_c0
77928967
ruby
0
Title: RBS optional block handling Problem title: RBS optional block handling Tags: types, steep, ruby, rbs Problem: RBS optional block handling Code signals: RBS, some_method, block.call, Type, Diagnostic, Ruby::NoMethod
RBS optional block handling RBS optional block handling types steep ruby rbs RBS some_method block.call Type Diagnostic Ruby::NoMethod RBS optional block handling I'm trying to add RBS information to a ruby gem and am wondering if there is a way to make this work. Take this code: and this signature: When I run it throu...
[ -0.005401611328125, 0.03271484375, 0.0001983642578125, -0.000354766845703125, -0.0019378662109375, 0.00152587890625, 0.0281982421875, -0.0106201171875, 0.01409912109375, 0.0286865234375, -0.0036163330078125, -0.0017547607421875, 0.003082275390625, -0.0012359619140625, -0.017822265625, ...
[ 627, 20429, 35829, 289, 46389, 45064, 52895, 2288, 4517, 21922, 53, 13471, 3060, 1928, 7352, 85763, 60457, 128198, 158189, 5021, 78572, 15190, 4677, 30203, 3917, 4488, 18151, 138256, 11675, 8305, 12765, 18499, 26008, 1884, 903, 4127, 103608, ...
[ 0.1116943359375, 0.225341796875, 0.2054443359375, 0.16455078125, 0.2310791015625, 0.2093505859375, 0.1298828125, 0.1385498046875, 0.1832275390625, 0.1265869140625, 0.1259765625, 0.1400146484375, 0.010162353515625, 0.03668212890625, 0.117919921875, 0.1802978515625, 0.1063232421875, ...
embed
72978847_c1
72978847
ruby
1
ggSkAgEAAoIBAQDd, deZ6ncdwxUH, Qlt2IV0LAZLEouWv7ntukG2FNhouvSW7xTi3JXTio7aBnPHUVCJdN41U1cVwfbtn, f5SDrfUDnuALz6YBiwf8vvCl1RSV2jB9yWKxGK9FG7iT96dBM1CYQMMx6xD204YL, Q5PCKGOTWxOQSpLvctN3U, END, OpenSSL::X509::CertificateError
ggSkAgEAAoIBAQDd, deZ6ncdwxUH, Qlt2IV0LAZLEouWv7ntukG2FNhouvSW7xTi3JXTio7aBnPHUVCJdN41U1cVwfbtn, f5SDrfUDnuALz6YBiwf8vvCl1RSV2jB9yWKxGK9FG7iT96dBM1CYQMMx6xD204YL, Q5PCKGOTWxOQSpLvctN3U, END, OpenSSL::X509::CertificateError
[ -0.00543212890625, 0.0218505859375, -0.01324462890625, 0.00099945068359375, -0.0047607421875, -0.00174713134765625, -0.0002536773681640625, 0.000308990478515625, 0.0079345703125, 0.02001953125, 0.0009918212890625, -0.008056640625, 0.016845703125, 0.01287841796875, -0.0162353515625, -0....
[ 9815, 294, 92, 54431, 24040, 88049, 397, 71, 4, 8, 910, 8766, 38164, 60148, 1277, 15583, 15300, 13708, 13885, 334, 683, 839, 8894, 856, 19, 758, 141, 170, 11648, 425, 147758, 92898, 1062, 6, 39015, 13527, 30508, 1542, 2525, 1126, 56, ...
[ 0.130126953125, 0.07733154296875, 0.030364990234375, 0.033203125, 0.0404052734375, 0.1051025390625, 0.002593994140625, 0.068115234375, 0.049072265625, 0.1470947265625, 0.051788330078125, 0.05706787109375, 0.045684814453125, 0.1363525390625, 0.0210723876953125, 0.05584716796875, 0.008...
embed
27599153_c0
27599153
ruby
0
Title: Comparing elements inside array of ranges Problem title: Comparing elements inside array of ranges Tags: ruby, data-structures Problem: Comparing elements inside array of ranges Code signals: Comparing, Mon, Dec, PST
Comparing elements inside array of ranges Comparing elements inside array of ranges ruby data-structures Comparing Mon Dec PST Comparing elements inside array of ranges So given that I have this array of ranges: How do I compare ranges that have the same minimum value and remove that element if the maximum value is gre...
[ -0.02490234375, 0.0093994140625, 0.00177001953125, 0.0164794921875, 0.008056640625, -0.00933837890625, -0.00113677978515625, -0.00171661376953125, -0.009765625, 0.04248046875, 0.00081634521484375, 0.023193359375, 0.0184326171875, -0.00811767578125, 0.007568359375, -0.00982666015625, ...
[ 113307, 214, 80854, 46132, 10298, 53, 111, 37457, 21922, 2053, 137656, 7465, 25755, 8545, 11249, 69101, 5701, 15440, 34292, 87388, 12830, 2174, 38132, 117396, 3789 ]
[ 0.1995849609375, 0.0582275390625, 0.17431640625, 0.1650390625, 0.17236328125, 0.098388671875, 0.09429931640625, 0.2275390625, 0.08624267578125, 0.05615234375, 0.1148681640625, 0.0250396728515625, 0.07763671875, 0.046600341796875, 0.0234527587890625, 0.2225341796875, 0.0811767578125, ...
embed
2488658_c0
2488658
ruby
0
Title: Recursive stack size Problem title: Recursive stack size Tags: recursion, ruby, stack Problem: Recursive stack size How i can know the current method stack frame while a recursive call in ruby? Code signals: Recursive
Recursive stack size Recursive stack size recursion ruby stack Recursive Recursive stack size How i can know the current method stack frame while a recursive call in ruby?
[ -0.0001430511474609375, 0.02197265625, -0.0089111328125, -0.0023956298828125, 0.01263427734375, -0.00567626953125, 0.00019931793212890625, 0.0291748046875, 0.006439208984375, -0.0308837890625, -0.004180908203125, -0.035400390625, -0.00531005859375, 0.0198974609375, 0.0247802734375, 0.0...
[ 853, 48650, 5844, 177261, 13267, 195625, 1830, 21922, 53, 17, 831, 3714, 43581, 55300, 123789, 12960, 11782, 23 ]
[ 0.056854248046875, 0.178466796875, 0.1881103515625, 0.2142333984375, 0.2091064453125, 0.1904296875, 0.08514404296875, 0.1622314453125, 0.1756591796875, 0.029754638671875, 0.06787109375, 0.135009765625, 0.169921875, 0.1707763671875, 0.2374267578125, 0.041259765625, 0.139892578125, 0...
embed
36750308_c0
36750308
ruby
0
Title: Extract values from an array of hashes Problem title: Extract values from an array of hashes Tags: ruby Problem: Extract values from an array of hashes Code signals: an, Extract, diaria_media, room_night, valor_periodo
Extract values from an array of hashes Extract values from an array of hashes ruby an Extract diaria_media room_night valor_periodo Extract values from an array of hashes I need to extract values from an array of hashes: I need to get all the :room night fields and add the values. What is the best way to achieve that?
[ -0.00098419189453125, 0.0014190673828125, -0.005889892578125, 0.003387451171875, -0.0048828125, 0.0038604736328125, -0.0230712890625, 0.0216064453125, 0.0045166015625, 0.01129150390625, -0.01318359375, -0.00787353515625, 0.01458740234375, 0.016357421875, -0.007049560546875, 0.000040531...
[ 31501, 15390, 142424, 1295, 10298, 53, 111, 256, 114942, 21922, 142, 166013, 12333, 17155, 54350, 6053, 131692, 31, 3871, 47, 125663, 2046, 28905, 17431, 44457, 15190, 2965, 3917, 69307 ]
[ 0.1888427734375, 0.087890625, 0.2022705078125, 0.0885009765625, 0.1575927734375, 0.09771728515625, 0.06817626953125, 0.1844482421875, 0.2156982421875, 0.14453125, 0.002899169921875, 0.1771240234375, 0.1165771484375, 0.1495361328125, 0.15966796875, 0.1651611328125, 0.1424560546875, ...
embed
6055844_c0
6055844
ruby
0
Title: Issues with firewatir Problem title: Issues with firewatir Tags: ruby, watir-webdriver, browser-automation, firewatir, watir Problem: Issues with firewatir Is jssh extension for firefox 4 available? Code signals: Issues
Issues with firewatir Issues with firewatir ruby watir-webdriver browser-automation firewatir watir Issues Issues with firewatir Is jssh extension for firefox 4 available?
[ 0.0009765625, 0.0250244140625, -0.01153564453125, -0.00750732421875, -0.035888671875, -0.0223388671875, 0.000835418701171875, 0.0120849609375, -0.018310546875, 0.0087890625, 0.01318359375, 0.00909423828125, -0.01519775390625, 0.0238037109375, 0.00762939453125, -0.015869140625, 0.0170...
[ 223317, 678, 11476, 634, 2826, 21922, 53, 793, 481, 14051, 33926, 56, 31842, 52344, 1647, 7, 1495, 111938, 147797, 201, 19882 ]
[ 0.172119140625, 0.07550048828125, 0.1246337890625, 0.1290283203125, 0.232666015625, 0.11865234375, 0.0948486328125, 0.1324462890625, 0.1988525390625, 0.020355224609375, 0.165283203125, 0.0096435546875, 0.1256103515625, 0.177490234375, 0.110595703125, 0.053955078125, 0.2236328125, 0...
embed
31284988_c3
31284988
ruby
3
z2JbQsDCTPz70, C6iPYdkvOyqji18ysLjBbGcHw1j45YItcurVxp0FChxXrnHZwu6m430xKEp7ONxvgEZurt3T8qAjrkrbHfd8jRjDydUXYsMoa, n3qp6jzHwZkXWSMW3VBF:jitqBjBmlZbrgcEgY7Od, clear_string_from_data, Base64.decode64, Zlib::Inflate.inflate, base64
z2JbQsDCTPz70, C6iPYdkvOyqji18ysLjBbGcHw1j45YItcurVxp0FChxXrnHZwu6m430xKEp7ONxvgEZurt3T8qAjrkrbHfd8jRjDydUXYsMoa, n3qp6jzHwZkXWSMW3VBF:jitqBjBmlZbrgcEgY7Od, clear_string_from_data, Base64.decode64, Zlib::Inflate.inflate, base64
[ 0.01336669921875, 0.00164031982421875, -0.0093994140625, 0.025390625, 0.0034637451171875, 0.00811767578125, 0.02001953125, -0.006256103515625, 0.004180908203125, -0.0054931640625, -0.020751953125, -0.00433349609375, 0.0177001953125, 0.017333984375, -0.003173828125, 0.0177001953125, 0...
[ 97, 304, 1375, 2737, 21960, 23658, 169, 5757, 4, 910, 5740, 658, 1819, 170, 724, 238, 4633, 87166, 16820, 856, 425, 1542, 42, 16612, 1197, 254, 334, 177, 107611, 420, 71, 1052, 9083, 11, 841, 434, 1511, 919, 29676, 71115, 34735, 91693...
[ 0.109375, 0.0667724609375, 0.060028076171875, 0.033935546875, 0.0260162353515625, 0.08349609375, 0.063720703125, 0.1986083984375, 0.061187744140625, 0.07196044921875, 0.001922607421875, 0.04852294921875, 0.0718994140625, 0.0709228515625, 0.0257110595703125, 0.052642822265625, 0.05563...
embed
19678219_c0
19678219
ruby
0
Title: Customize error in rails 3 Problem title: Customize error in rails 3 Tags: ruby-on-rails-3, ruby Problem: Customize error in rails 3 Code signals: Customize, user.errors.messages, to_json, Email, Username, ruby-on-rails-3
Customize error in rails 3 Customize error in rails 3 ruby-on-rails-3 ruby Customize user.errors.messages to_json Email Username ruby-on-rails-3 Customize error in rails 3 I have messages error from render :json=> {"status"=>"failed",:errors=>@user.errors.messages}.to_json But i want to custom error: Please help me to ...
[ 0.024658203125, 0.0230712890625, -0.0181884765625, -0.02880859375, 0.0152587890625, -0.0016021728515625, -0.02099609375, 0.02783203125, -0.0019989013671875, -0.0130615234375, -0.01275634765625, -0.0181884765625, 0.003143310546875, 0.012451171875, 0.00872802734375, 0.015869140625, 0.0...
[ 130664, 20650, 18499, 23, 673, 7870, 138, 21922, 53, 191, 68823, 7, 8316, 38937, 188800, 74157, 4188, 47, 170, 1681, 14886, 53400, 11627, 765, 89914, 1295, 89159, 45215, 120540, 981, 65918, 188, 17, 3444, 114122, 4358, 103608, 8060 ]
[ 0.226806640625, 0.1199951171875, 0.231201171875, 0.0655517578125, 0.156005859375, 0.1522216796875, 0.1839599609375, 0.12548828125, 0.1234130859375, 0.1451416015625, 0.1708984375, 0.048431396484375, 0.1654052734375, 0.1212158203125, 0.2147216796875, 0.137939453125, 0.08599853515625, ...
embed
11572675_c0
11572675
ruby
0
Title: Unable to install MYSQL using brew install mysql Problem title: Unable to install MYSQL using brew install mysql Tags: ruby, mysql Problem: Unable to install MYSQL using brew install mysql Code signals: brew, Unable, MYSQL
Unable to install MYSQL using brew install mysql Unable to install MYSQL using brew install mysql ruby mysql brew Unable MYSQL Unable to install MYSQL using brew install mysql I am having problem on installing MYSQL using homebrew My system info are as follows. Fresh Install of MAC OSX 10.7.4 RUBY 1.9.3-p125 XCODE 4.3....
[ -0.00396728515625, 0.013427734375, 0.032958984375, 0.01513671875, -0.003814697265625, 0.024169921875, -0.0174560546875, -0.00714111328125, -0.0224609375, 0.021484375, 0.01025390625, -0.0361328125, 0.00927734375, -0.004486083984375, -0.015869140625, 0.005401611328125, -0.0126953125, ...
[ 992, 2886, 20600, 54133, 158897, 17368, 143006, 759, 7, 99247, 21922, 53, 2967, 5368, 3004, 133540, 107951, 78826, 11787, 1542, 209, 53489, 617, 46845, 36354, 99420, 63652, 1193, 9688, 1398, 134693, 75101, 25632, 18499, 59058, 10187, 53418, 9...
[ 0.0828857421875, 0.162353515625, 0.19287109375, 0.1490478515625, 0.2646484375, 0.0994873046875, 0.275146484375, 0.11962890625, 0.028289794921875, 0.20556640625, 0.1495361328125, 0.158935546875, 0.0289459228515625, 0.06884765625, 0.020050048828125, 0.0001220703125, 0.0775146484375, ...
embed
453578_c0
453578
ruby
0
Title: interactive console for Ruby, PHP Problem title: interactive console for Ruby, PHP Tags: ruby, php Problem: interactive console for Ruby, PHP How do you start the Interactive Console for ruby and php Code signals: Ruby, PHP
interactive console for Ruby, PHP interactive console for Ruby, PHP ruby php Ruby PHP interactive console for Ruby, PHP How do you start the Interactive Console for ruby and php
[ 0.004669189453125, 0.007537841796875, 0.01177978515625, 0.031982421875, -0.01068115234375, 0.0252685546875, -0.000881195068359375, 0.003509521484375, -0.003387451171875, -0.00921630859375, 0.006591796875, 0.00225830078125, 0.003173828125, 0.036376953125, 0.01361083984375, -0.0081787109...
[ 212398, 130250, 100, 158189, 4, 47302, 21922, 53, 6, 3958, 11249, 54, 398, 4034, 70, 5337, 71232, 1657, 40777, 136 ]
[ 0.2177734375, 0.263427734375, 0.109375, 0.26220703125, 0.042144775390625, 0.2291259765625, 0.162353515625, 0.16162109375, 0.02587890625, 0.2113037109375, 0.004150390625, 0.0372314453125, 0.0115966796875, 0.1358642578125, 0.0308380126953125, 0.1553955078125, 0.2100830078125, 0.11047...
embed
17321128_c0
17321128
ruby
0
Title: Sorting array of array in ruby Problem title: Sorting array of array in ruby Tags: ruby Problem: Sorting array of array in ruby Code signals: ArgumentError, Sorting, Meters, Feet, Yards, arr.sort_by, a.nil, NilClass, sort_by
Sorting array of array in ruby Sorting array of array in ruby ruby ArgumentError Sorting Meters Feet Yards arr.sort_by a.nil NilClass sort_by Sorting array of array in ruby How can I sort an array like the one below : I'd like to sort it so the first element of arrays array who is nil comes to the last place like this ...
[ 0.007049560546875, -0.005859375, -0.006805419921875, -0.005279541015625, -0.01220703125, -0.00677490234375, 0.00433349609375, -0.016357421875, 0.01092529296875, 0.03271484375, -0.003875732421875, 0.01220703125, 0.000762939453125, -0.0126953125, -0.003936767578125, -0.031005859375, -0...
[ 53666, 214, 10298, 53, 111, 23, 21922, 112140, 18468, 72812, 4221, 990, 99397, 187, 42, 62351, 1272, 10, 17324, 77175, 140803, 12096, 831, 1884, 35064, 5117, 12830, 4778, 2750, 83, 32497, 47, 4568, 3687, 903, 37842, 390, 55300, 147, 759, ...
[ 0.1861572265625, 0.029754638671875, 0.163330078125, 0.1478271484375, 0.0860595703125, 0.0238189697265625, 0.1627197265625, 0.1719970703125, 0.06365966796875, 0.1468505859375, 0.08203125, 0.0288238525390625, 0.052642822265625, 0.0279693603515625, 0.05865478515625, 0.1968994140625, 0.1...
embed
7040617_c0
7040617
ruby
0
Title: Ruby maintain Hash insertion order Problem title: Ruby maintain Hash insertion order Tags: hashtable, ruby Problem: Ruby maintain Hash insertion order Code signals: Ruby, Hash, February, March, May, July, June, August, April
Ruby maintain Hash insertion order Ruby maintain Hash insertion order hashtable ruby Ruby Hash February March May July June August April Ruby maintain Hash insertion order I am looking for a way to maintain the insert order for a Hash that I am using in Ruby. My data is coming from a database and is already grouped/ord...
[ 0.000530242919921875, 0.00015354156494140625, 0.0002002716064453125, -0.00555419921875, -0.00677490234375, -0.0203857421875, -0.017578125, 0.0076904296875, 0.00616455078125, 0.036865234375, -0.01513671875, -0.00102996826171875, 0.023193359375, 0.01019287109375, 0.005889892578125, 0.017...
[ 158189, 76104, 162087, 241860, 12989, 1556, 127, 22819, 21922, 53, 22482, 11994, 4347, 20414, 18237, 8055, 7071, 16487, 100, 3917, 47, 70, 183540, 17368, 23, 2053, 38162, 63399, 21771, 37769, 80596, 3444, 22027, 18, 142027, 297, 11389, 615, ...
[ 0.259033203125, 0.258056640625, 0.2392578125, 0.1756591796875, 0.228271484375, 0.151611328125, 0.07415771484375, 0.186279296875, 0.1717529296875, 0.140380859375, 0.16552734375, 0.097900390625, 0.06591796875, 0.060272216796875, 0.052093505859375, 0.0765380859375, 0.1319580078125, 0....
embed
28239735_c0
28239735
ruby
0
Title: `@` symbol in string causes unexpected results Problem title: `@` symbol in string causes unexpected results Tags: string-interpolation, ruby Problem: `@` symbol in string causes unexpected results Code signals: XXX, X123, XX1
`@` symbol in string causes unexpected results `@` symbol in string causes unexpected results string-interpolation ruby XXX X123 XX1 `@` symbol in string causes unexpected results It seems that, when the @ symbol is paired with a # symbol is starts ignoring certain characters. It even does this inside the %{} delimiter...
[ 0.00439453125, -0.004241943359375, -0.028076171875, -0.005767822265625, -0.0250244140625, 0.0167236328125, 0.0086669921875, 0.0113525390625, 0.0247802734375, 0.01495361328125, 0.01129150390625, -0.00909423828125, 0.0244140625, 0.0078125, 0.01025390625, 0.01513671875, -0.006103515625,...
[ 981, 26582, 23, 79315, 113660, 241957, 50339, 1135, 10433, 5877, 21922, 53, 44585, 48636, 14214, 418, 37202, 1374, 80836, 678, 468, 47438, 214, 24233, 124850, 46132, 1745, 8, 93343, 56 ]
[ 0.2005615234375, 0.22509765625, 0.059967041015625, 0.22216796875, 0.1243896484375, 0.130615234375, 0.1177978515625, 0.0079345703125, 0.033660888671875, 0.0880126953125, 0.086669921875, 0.08612060546875, 0.05242919921875, 0.1370849609375, 0.018280029296875, 0.020721435546875, 0.018005...
embed
3692030_c0
3692030
ruby
0
Title: Why is this Time.parse failing Problem title: Why is this Time.parse failing Tags: ruby-on-rails, ruby Problem: Why is this Time.parse failing Code signals: NoMethodError, Why, Time.parse, events.first.datetime, Wed, Sep, Time
Why is this Time.parse failing Why is this Time.parse failing ruby-on-rails ruby NoMethodError Why Time.parse events.first.datetime Wed Sep Time Why is this Time.parse failing
[ -0.01220703125, 0.01458740234375, 0.0113525390625, 0.005706787109375, -0.021728515625, -0.00982666015625, -0.00106048583984375, -0.00011157989501953125, 0.00086212158203125, -0.043701171875, -0.006195068359375, 0.0096435546875, -0.005828857421875, 0.0191650390625, -0.017578125, -0.0144...
[ 44084, 83, 903, 19055, 2500, 184, 35782, 214, 21922, 53, 191, 68823, 7, 438, 78572, 7352, 18468, 31611, 47353, 13448, 271, 17489, 6032, 1401, 71, 21693 ]
[ 0.1077880859375, 0.05029296875, 0.1434326171875, 0.1923828125, 0.1661376953125, 0.1651611328125, 0.16259765625, 0.1009521484375, 0.1275634765625, 0.1455078125, 0.1702880859375, 0.190673828125, 0.043121337890625, 0.0306854248046875, 0.071533203125, 0.0743408203125, 0.0355224609375, ...
embed
5118745_c0
5118745
ruby
0
Title: Is SystemExit a special kind of Exception? Problem title: Is SystemExit a special kind of Exception? Tags: ruby, exception, exit Problem: Is SystemExit a special kind of Exception? Code signals: SystemExit, Exception, Silently
Is SystemExit a special kind of Exception? Is SystemExit a special kind of Exception? ruby exception exit SystemExit Exception Silently Is SystemExit a special kind of Exception? How does SystemExit behave differently from other Exception s? I think I understand some of the reasoning about why it wouldn't be good to ra...
[ 0.005828857421875, 0.0308837890625, -0.00311279296875, -0.008056640625, -0.002227783203125, 0.016845703125, -0.0031585693359375, -0.01300048828125, -0.015869140625, 0.029052734375, -0.0062255859375, 0.0172119140625, -0.01318359375, 0.0198974609375, -0.0240478515625, -0.01336669921875, ...
[ 2071, 12353, 19279, 217, 5361, 8562, 5443, 63928, 10, 111, 21922, 53, 131527, 82230, 602, 22042, 538, 186, 68991, 12921, 28219, 31635, 15400, 4127, 138804, 27798, 68746, 3444, 114453, 3642, 114777, 13, 124962, 55738 ]
[ 0.04754638671875, 0.197509765625, 0.2117919921875, 0.2093505859375, 0.15576171875, 0.1478271484375, 0.099853515625, 0.2093505859375, 0.03155517578125, 0.0271148681640625, 0.1517333984375, 0.16552734375, 0.171142578125, 0.21728515625, 0.0694580078125, 0.1580810546875, 0.0545654296875,...
embed
45487350_c0
45487350
ruby
0
Title: value assigned to all hash Problem title: value assigned to all hash Tags: arrays, ruby, hash Problem: value assigned to all hash Code signals: tickets.each, d_d, Date.strptime, n_c, to_s, all.each, e.each, pair.each, nom.to_s
value assigned to all hash value assigned to all hash arrays ruby hash tickets.each d_d Date.strptime n_c to_s all.each e.each pair.each nom.to_s value assigned to all hash My script is assigning an element (tickets[4])to a hash. array of hash looks like this Array tickets looks like this After the script runs it shoul...
[ 0.00121307373046875, -0.0103759765625, -0.009765625, 0.00775146484375, -0.0057373046875, -0.0130615234375, -0.03076171875, 0.0255126953125, 0.010986328125, 0.0281982421875, 0.0078125, 0.01446533203125, 0.007232666015625, 0.0086669921875, -0.006927490234375, -0.0240478515625, -0.00793...
[ 34292, 95486, 297, 47, 756, 1556, 127, 10298, 4778, 21922, 53, 137384, 41581, 71, 25512, 6032, 7, 28, 80836, 9901, 188, 26499, 214, 12830, 149562, 68714, 111, 33342, 1884, 903, 69253, 70, 127877, 16750, 175399, 87, 765, 1650, 116, 100, ...
[ 0.2325439453125, 0.22412109375, 0.0799560546875, 0.138427734375, 0.1912841796875, 0.208984375, 0.19921875, 0.1444091796875, 0.0872802734375, 0.1361083984375, 0.129150390625, 0.2349853515625, 0.103271484375, 0.052978515625, 0.057373046875, 0.1124267578125, 0.000457763671875, 0.04592...
embed
19300588_c0
19300588
ruby
0
Title: puppet regsubst multiple substitutions Problem title: puppet regsubst multiple substitutions Tags: puppet, regex, ruby Problem: puppet regsubst multiple substitutions Code signals: drdev-ams-1, name.sub, drdev-ams-2, my_string-1
puppet regsubst multiple substitutions puppet regsubst multiple substitutions puppet regex ruby drdev-ams-1 name.sub drdev-ams-2 my_string-1 puppet regsubst multiple substitutions I need to swap the last digit in $name from 1 to 2 or 2 to 1 In Ruby (irb) I have got it working like this How is the same achieved in puppe...
[ -0.008056640625, -0.0162353515625, 0.0026397705078125, 0.034423828125, 0.006927490234375, -0.006256103515625, -0.0050048828125, 0.0084228515625, 0.032958984375, 0.01336669921875, 0.005706787109375, 0.021240234375, 0.01312255859375, 0.000133514404296875, 0.000629425048828125, 0.00872802...
[ 2638, 58134, 6835, 196842, 48716, 161740, 17514, 3355, 21922, 53, 3568, 18548, 8256, 5759, 9351, 22144, 5428, 759, 91693, 3871, 47, 202317, 70, 4568, 153939, 23, 3650, 11627, 1295, 106, 116, 707, 360, 158189, 481, 275, 4163, 20697, 1884, ...
[ 0.14111328125, 0.2425537109375, 0.1732177734375, 0.21044921875, 0.20068359375, 0.201171875, 0.0794677734375, 0.1290283203125, 0.123779296875, 0.10040283203125, 0.07293701171875, 0.21923828125, 0.07965087890625, 0.10308837890625, 0.09881591796875, 0.11328125, 0.07476806640625, 0.075...
embed
32241529_c0
32241529
ruby
0
Title: convert array to CSV file on ruby Problem title: convert array to CSV file on ruby Tags: arrays, ruby, csv, ruby-on-rails, database Problem: convert array to CSV file on ruby Code signals: CSV, Tue, Jun, KST, user_id, created_at
convert array to CSV file on ruby convert array to CSV file on ruby arrays ruby csv ruby-on-rails database CSV Tue Jun KST user_id created_at convert array to CSV file on ruby Given array: And I want to convert this array to a new CSV file WITH NEW COLUMNS which would look like: How can I do this in Ruby? Thanks in adv...
[ 0.01300048828125, -0.017578125, 0.0157470703125, 0.009521484375, -0.007232666015625, 0.007232666015625, -0.0220947265625, 0.008544921875, -0.01226806640625, -0.0062255859375, -0.0137939453125, -0.0123291015625, -0.00086212158203125, 0.027099609375, -0.00946044921875, -0.02197265625, ...
[ 96760, 10298, 53, 47, 313, 43486, 11435, 98, 21922, 20763, 334, 191, 68823, 7, 63399, 1371, 13328, 8545, 38937, 532, 75935, 77878, 3444, 3525, 80111, 8244, 80134, 22479, 6713, 11249, 831, 54, 903, 23, 158189, 129745 ]
[ 0.1485595703125, 0.2188720703125, 0.163330078125, 0.083740234375, 0.092041015625, 0.289306640625, 0.15283203125, 0.0645751953125, 0.1712646484375, 0.0936279296875, 0.148193359375, 0.1558837890625, 0.1590576171875, 0.03546142578125, 0.14453125, 0.022705078125, 0.048370361328125, 0.0...
embed
25594719_c0
25594719
ruby
0
Title: Dealing with many [...] in Ruby Problem title: Dealing with many [...] in Ruby Tags: json, ruby Problem: Dealing with many [...] in Ruby Code signals: Dealing, Ruby, JSON.parse, result.body_str, ke1, key2, key3, key4, key1, to_i
Dealing with many [...] in Ruby Dealing with many [...] in Ruby json ruby Dealing Ruby JSON.parse result.body_str ke1 key2 key3 key4 key1 to_i Dealing with many [...] in Ruby In a pure ruby script I have this: Is there any way to simplify this?
[ 0.0194091796875, 0.0218505859375, -0.0194091796875, -0.0244140625, 0.0191650390625, 0.004547119140625, 0.014892578125, 0.01708984375, 0.03857421875, -0.0035858154296875, 0.00103759765625, -0.0242919921875, 0.0159912109375, 0.0017547607421875, 0.00518798828125, -0.00604248046875, 0.00...
[ 90943, 214, 678, 5941, 1449, 23, 158189, 1647, 1681, 21922, 53, 821, 58627, 2500, 16750, 37873, 9297, 311, 418, 22799, 304, 363, 617, 47, 14, 34166, 26499, 765, 903, 3917, 112892, 18929 ]
[ 0.1671142578125, 0.05267333984375, 0.12939453125, 0.1748046875, 0.1392822265625, 0.073486328125, 0.240478515625, 0.093505859375, 0.175537109375, 0.131103515625, 0.143798828125, 0.09423828125, 0.1998291015625, 0.09796142578125, 0.1470947265625, 0.162841796875, 0.1376953125, 0.095153...
embed
52068107_c0
52068107
ruby
0
Title: Split string by comma but exclude commas in brackets Problem title: Split string by comma but exclude commas in brackets Tags: ruby, split, string Problem: Split string by comma but exclude commas in brackets Code signals: Split
Split string by comma but exclude commas in brackets Split string by comma but exclude commas in brackets ruby split string Split Split string by comma but exclude commas in brackets I have a string: I want to split it as below: I have this regex to get the contents of v2 : but I cannot get the other content details.
[ -0.0040283203125, 0.0111083984375, -0.0208740234375, 0.012451171875, -0.0016632080078125, 0.0091552734375, 0.0036468505859375, 0.005340576171875, 0.01068115234375, 0.0035552978515625, -0.016845703125, -0.018310546875, 0.0002918243408203125, 0.01220703125, -0.0020294189453125, -0.009399...
[ 46474, 79315, 390, 96117, 1284, 39041, 112, 375, 1510, 23, 1620, 27853, 21922, 53, 65450, 765, 3444, 47, 35064, 903, 6835, 3355, 2046, 10941, 81, 304, 53418, 41653 ]
[ 0.1793212890625, 0.241943359375, 0.044586181640625, 0.2318115234375, 0.06964111328125, 0.1239013671875, 0.032562255859375, 0.1156005859375, 0.1121826171875, 0.0191192626953125, 0.1187744140625, 0.135498046875, 0.1357421875, 0.13232421875, 0.1795654296875, 0.000335693359375, 0.0451965...
embed
1346257_c0
1346257
ruby
0
Title: Round a ruby float up or down to the nearest 0.05 Problem title: Round a ruby float up or down to the nearest 0.05 Tags: floating-point, rounding, ruby Problem: Round a ruby float up or down to the nearest 0.05 Code signals: Round
Round a ruby float up or down to the nearest 0.05 Round a ruby float up or down to the nearest 0.05 floating-point rounding ruby Round Round a ruby float up or down to the nearest 0.05 I'm getting numbers like How would I get Ruby to round these numbers up (or down) to the nearest 0.05?
[ -0.00141143798828125, 0.0026397705078125, 0.0017547607421875, -0.044189453125, -0.00099945068359375, -0.000453948974609375, -0.006103515625, 0.00537109375, 0.02197265625, 0.0147705078125, -0.00897216796875, -0.02197265625, 0.0006561279296875, 0.04052734375, 0.0072021484375, 0.006439208...
[ 162856, 10, 21922, 53, 21917, 257, 1257, 707, 7565, 47, 43573, 525, 89678, 758, 26518, 38496, 68807, 214, 20949, 101935, 1884, 11249, 2806, 2046, 158189, 6097, 748 ]
[ 0.1910400390625, 0.0517578125, 0.18408203125, 0.17626953125, 0.1759033203125, 0.08184814453125, 0.1324462890625, 0.0242919921875, 0.17138671875, 0.08935546875, 0.12548828125, 0.1085205078125, 0.149658203125, 0.2027587890625, 0.0054931640625, 0.0936279296875, 0.20166015625, 0.043914...
embed
48629526_c0
48629526
ruby
0
Title: Error when comparing binary strings Problem title: Error when comparing binary strings Tags: binary, rspec, ruby-on-rails, ruby Problem: Error when comparing binary strings Code signals: Error, x01, x00, x00l, u0001, u0000, u0000l
Error when comparing binary strings Error when comparing binary strings binary rspec ruby-on-rails ruby Error x01 x00 x00l u0001 u0000 u0000l Error when comparing binary strings I have the following problem that is breaking my rspec test suite: Why does this comparison return false since they are the same strings? 1) A...
[ 0.0029449462890625, 0.00008058547973632812, -0.00946044921875, 0.00095367431640625, -0.004058837890625, 0.004119873046875, 0.0128173828125, -0.006378173828125, 0.01708984375, 0.052001953125, 0.013671875, -0.021240234375, 0.03271484375, 0.0255126953125, -0.0029449462890625, -0.009643554...
[ 212059, 3229, 37397, 214, 2394, 6635, 79315, 1690, 16711, 21922, 53, 191, 68823, 7, 6746, 7049, 141, 75, 188735, 28568, 2967, 116987, 3034, 14947, 44084, 225490, 30646, 98320, 621, 5701, 2393, 133, 24447, 137989, 121137, 56, 150624, 158559, ...
[ 0.1597900390625, 0.04705810546875, 0.19091796875, 0.0965576171875, 0.1695556640625, 0.1256103515625, 0.2230224609375, 0.038726806640625, 0.219970703125, 0.137451171875, 0.1209716796875, 0.1702880859375, 0.193603515625, 0.06103515625, 0.13818359375, 0.1495361328125, 0.079833984375, ...
embed
53509761_c0
53509761
ruby
0
Title: Sort array of string with digits and characters in ruby Problem title: Sort array of string with digits and characters in ruby Tags: ruby, sorting Problem: Sort array of string with digits and characters in ruby Code signals: Sort
Sort array of string with digits and characters in ruby Sort array of string with digits and characters in ruby ruby sorting Sort Sort array of string with digits and characters in ruby I have an array with the given strings How can I sort the array so that it goes in numerical order, then alphabetical order so the arr...
[ 0.0002994537353515625, -0.006866455078125, -0.01104736328125, -0.004730224609375, -0.0267333984375, -0.0263671875, -0.007110595703125, -0.002838134765625, 0.01165771484375, 0.0201416015625, -0.017578125, 0.000843048095703125, 0.006561279296875, 0.009765625, -0.01611328125, -0.020629882...
[ 53666, 10298, 53, 79315, 678, 153939, 136, 124850, 21922, 111, 23, 12096, 214, 34475, 831, 54744, 12989, 229231, 21533, 44116, 1884, 221 ]
[ 0.17138671875, 0.15869140625, 0.1402587890625, 0.204345703125, 0.0689697265625, 0.1729736328125, 0.07537841796875, 0.1470947265625, 0.15283203125, 0.0347900390625, 0.0265960693359375, 0.203857421875, 0.0205535888671875, 0.01788330078125, 0.000396728515625, 0.0982666015625, 0.12158203...
embed
6664270_c0
6664270
ruby
0
Title: Ruby get tables from HTML Problem title: Ruby get tables from HTML Tags: ruby, html, html-table Problem: Ruby get tables from HTML Is there a module in Ruby which gives me the tables stored within an HTML? Code signals: HTML, Ruby
Ruby get tables from HTML Ruby get tables from HTML ruby html html-table HTML Ruby Ruby get tables from HTML Is there a module in Ruby which gives me the tables stored within an HTML?
[ 0.0196533203125, 0.0177001953125, -0.002899169921875, -0.007568359375, 0.003997802734375, 0.005828857421875, 0.011962890625, -0.00201416015625, -0.0245361328125, -0.046630859375, 0.00095367431640625, 0.0007476806640625, -0.02099609375, 0.01708984375, -0.003143310546875, -0.000568389892...
[ 158189, 2046, 23180, 7, 1295, 19097, 21922, 53, 7693, 22819, 88996, 76199, 163, 4343, 28032 ]
[ 0.2269287109375, 0.07275390625, 0.2213134765625, 0.05511474609375, 0.0902099609375, 0.21337890625, 0.1175537109375, 0.1126708984375, 0.169189453125, 0.1619873046875, 0.1734619140625, 0.03277587890625, 0.03851318359375, 0.07916259765625, 0.06378173828125 ]
embed
19024516_c0
19024516
ruby
0
Title: Understanding bytes unpack Problem title: Understanding bytes unpack Tags: server-side, ruby, network-programming Problem: Understanding bytes unpack Code signals: Understanding, data.size, data.unpack, CCnC4a, x5b, user.index, x5a
Understanding bytes unpack Understanding bytes unpack server-side ruby network-programming Understanding data.size data.unpack CCnC4a x5b user.index x5a Understanding bytes unpack I found such code in: https://github.com/mojombo/proxymachine/ What does this code do? Especially these lines: data.unpack("CCnC4a*") return...
[ 0.0125732421875, 0.01153564453125, 0.01177978515625, 0.042236328125, -0.003662109375, 0.0174560546875, -0.01397705078125, 0.00872802734375, 0.0306396484375, -0.009033203125, 0.01806640625, -0.03466796875, 0.0091552734375, 0.0247802734375, -0.017822265625, 0.0026397705078125, 0.023193...
[ 9626, 144057, 390, 1636, 51, 29102, 10723, 8752, 21922, 53, 33120, 28966, 2053, 62539, 309, 21581, 19, 441, 617, 11, 758, 275, 38937, 4711, 14037, 18151, 15769, 32102, 88227, 7567, 64101, 103149, 14602, 54, 60975, 124519, 13709, 1639, 30646...
[ 0.1475830078125, 0.1396484375, 0.146240234375, 0.132080078125, 0.1337890625, 0.294189453125, 0.081298828125, 0.05633544921875, 0.1378173828125, 0.1451416015625, 0.09130859375, 0.095458984375, 0.1556396484375, 0.12548828125, 0.1279296875, 0.058807373046875, 0.063720703125, 0.0597534...
embed
2941005_c0
2941005
ruby
0
Title: How to remove installed ri and rdoc? Problem title: How to remove installed ri and rdoc? Tags: rubygems, ruby Problem: How to remove installed ri and rdoc? How can I remove the ri and rdoc of installed gems? Thanks Code signals: How
How to remove installed ri and rdoc? How to remove installed ri and rdoc? rubygems ruby How How to remove installed ri and rdoc? How can I remove the ri and rdoc of installed gems? Thanks
[ -0.0220947265625, 0.0189208984375, -0.0002994537353515625, -0.006927490234375, -0.0133056640625, 0.0072021484375, -0.000606536865234375, 0.0081787109375, -0.00555419921875, 0.001129150390625, 0.0181884765625, -0.0264892578125, -0.005767822265625, 0.0012359619140625, -0.00994873046875, ...
[ 11249, 47, 87388, 20600, 297, 1427, 136, 1690, 29713, 21922, 53, 14716, 7, 831, 70, 111, 30203 ]
[ 0.0980224609375, 0.09490966796875, 0.1943359375, 0.181640625, 0.1173095703125, 0.1903076171875, 0.1947021484375, 0.1109619140625, 0.2509765625, 0.1318359375, 0.0899658203125, 0.1712646484375, 0.1097412109375, 0.0173797607421875, 0.0650634765625, 0.016265869140625, 0.195556640625 ]
embed
51735341_c0
51735341
ruby
0
Title: Ruby .reject after .split behaves weirdly Problem title: Ruby .reject after .split behaves weirdly Tags: ruby, ruby-on-rails Problem: Ruby .reject after .split behaves weirdly Code signals: Ruby, string.split, entry1, entry2, entry3
Ruby .reject after .split behaves weirdly Ruby .reject after .split behaves weirdly ruby ruby-on-rails Ruby string.split entry1 entry2 entry3 Ruby .reject after .split behaves weirdly In order to split a string on , or ; I use this simple code It works well for strings such as these but the problem is with "entry1," (s...
[ 0.0079345703125, -0.005645751953125, -0.009521484375, 0.0179443359375, -0.0106201171875, 0.007232666015625, 0.00360107421875, 0.00946044921875, 0.0150146484375, 0.0303955078125, -0.001068115234375, 0.002288818359375, 0.01177978515625, 0.015625, 0.00445556640625, 0.01068115234375, 0.0...
[ 158189, 107, 75161, 7103, 7008, 4353, 186, 68991, 179459, 538, 21922, 53, 191, 68823, 79315, 42805, 418, 304, 363, 65450, 98, 707, 2819, 4527, 903, 8781, 18151, 43240, 2967, 33, 15123, 6953, 12830, 134629, 390, 10, 96117, 27781 ]
[ 0.2490234375, 0.120849609375, 0.266357421875, 0.1019287109375, 0.037322998046875, 0.1715087890625, 0.0118408203125, 0.1124267578125, 0.11572265625, 0.031707763671875, 0.125732421875, 0.123046875, 0.12353515625, 0.1590576171875, 0.2333984375, 0.1324462890625, 0.0550537109375, 0.0132...
embed
28704249_c3
28704249
ruby
3
1c40, Runtime, Attr:0x3fe545c51b8c, Element:0x3fe545c51038, FeatureType, Attr:0x3fe545c50f98, Name, FeatureFilm, Film, Element:0x3fe54616158c, OrderNumber, LIG00000075, Element:0x3fe546160d80, ArticleCode, LHE28409261, xml_rec.xpath, xml_rec
1c40, Runtime, Attr:0x3fe545c51b8c, Element:0x3fe545c51038, FeatureType, Attr:0x3fe545c50f98, Name, FeatureFilm, Film, Element:0x3fe54616158c, OrderNumber, LIG00000075, Element:0x3fe546160d80, ArticleCode, LHE28409261, xml_rec.xpath, xml_rec
[ 0.006378173828125, 0.00048828125, -0.003326416015625, -0.0250244140625, 0.02880859375, 0.001739501953125, 0.00555419921875, 0.01202392578125, 0.0072021484375, -0.0159912109375, 0.0027313232421875, -0.027099609375, -0.01953125, -0.0034332275390625, -0.004058837890625, 0.0023651123046875...
[ 106, 238, 2839, 4, 28398, 6032, 9208, 42, 53861, 425, 2242, 4633, 11703, 48325, 963, 10991, 106594, 196707, 2525, 16665, 15757, 102278, 3847, 155670, 2485, 137197, 81206, 18444, 26278, 6, 52786, 197094, 6873, 37321, 4836, 24241, 114211, 339, ...
[ 0.170654296875, 0.1845703125, 0.345458984375, 0.125244140625, 0.185302734375, 0.2296142578125, 0.077392578125, 0.1358642578125, 0.1005859375, 0.061187744140625, 0.06549072265625, 0.1285400390625, 0.04376220703125, 0.24462890625, 0.03179931640625, 0.174072265625, 0.274169921875, 0.2...
embed
1616600_c0
1616600
ruby
0
Title: Recreate array so that array[x][y] become newarray[y][x] Problem title: Recreate array so that array[x][y] become newarray[y][x] Tags: arrays, ruby Problem: Recreate array so that array[x][y] become newarray[y][x] Code signals: Recreate
Recreate array so that array[x][y] become newarray[y][x] Recreate array so that array[x][y] become newarray[y][x] arrays ruby Recreate Recreate array so that array[x][y] become newarray[y][x] Is there a standard method to create a new array from a two dimensional array so that array[x][y] would be accessed as [y][x] on...
[ 0.0098876953125, -0.0040283203125, -0.000774383544921875, 0.00848388671875, -0.0096435546875, 0.00182342529296875, -0.00982666015625, 0.02001953125, 0.0098876953125, 0.0341796875, 0.00494384765625, -0.000621795654296875, -0.00186920166015625, -0.003753662109375, -0.0281982421875, 0.004...
[ 48224, 1283, 67, 10298, 53, 221, 450, 425, 24209, 108, 4205, 7092, 4778, 21922, 2071, 2685, 10, 5570, 55300, 47, 28282, 3525, 1295, 6626, 157955, 2806, 17203, 237, 29839, 98, 154559 ]
[ 0.0977783203125, 0.198974609375, 0.0877685546875, 0.204833984375, 0.16455078125, 0.1209716796875, 0.04656982421875, 0.0997314453125, 0.1588134765625, 0.1048583984375, 0.0592041015625, 0.220703125, 0.039306640625, 0.126220703125, 0.00390625, 0.0180206298828125, 0.02923583984375, 0.1...
embed
617166_c0
617166
ruby
0
Title: Do threads work in Ruby Shoes yet? Problem title: Do threads work in Ruby Shoes yet? Tags: ruby, shoes Problem: Do threads work in Ruby Shoes yet? Any work going on to get other ruby threads working with Shoes? Code signals: Ruby, Shoes
Do threads work in Ruby Shoes yet? Do threads work in Ruby Shoes yet? ruby shoes Ruby Shoes Do threads work in Ruby Shoes yet? Any work going on to get other ruby threads working with Shoes?
[ 0.007049560546875, 0.0004444122314453125, -0.006011962890625, 0.01708984375, -0.00051116943359375, 0.00421142578125, 0.0172119140625, -0.01007080078125, -0.01104736328125, -0.0301513671875, 0.005401611328125, -0.0174560546875, -0.0128173828125, 0.01324462890625, -0.0086669921875, 0.005...
[ 984, 86997, 7, 4488, 23, 158189, 17779, 90, 14373, 21922, 53, 148100, 3789, 20697, 678 ]
[ 0.042724609375, 0.22412109375, 0.1307373046875, 0.1397705078125, 0.07769775390625, 0.232421875, 0.1964111328125, 0.0877685546875, 0.134033203125, 0.12646484375, 0.0933837890625, 0.146728515625, 0.00299072265625, 0.0816650390625, 0.06341552734375 ]
embed
10441826_c0
10441826
ruby
0
Title: ruby, how can I remove a space at the end with gsub? Problem title: ruby, how can I remove a space at the end with gsub? Tags: regex, ruby, string Problem: ruby, how can I remove a space at the end with gsub? Code signals: SyntaxError, 0
ruby, how can I remove a space at the end with gsub? ruby, how can I remove a space at the end with gsub? regex ruby string SyntaxError 0 ruby, how can I remove a space at the end with gsub? This removes all spaces: but I want just to remove the space at the end, something like but I get: n.b. I can't use truncate, tri...
[ -0.0027313232421875, 0.02294921875, -0.000507354736328125, -0.000579833984375, -0.017333984375, 0.00142669677734375, -0.00921630859375, 0.0235595703125, -0.0250244140625, 0.011962890625, 0.0177001953125, 0.0159912109375, -0.0078125, -0.002166748046875, 0.00154876708984375, -0.000965118...
[ 21922, 53, 3642, 831, 87388, 32628, 99, 70, 3564, 678, 706, 22144, 6835, 3355, 79315, 86531, 756, 3444, 275, 4527, 14617, 19, 33478, 85247, 673, 7870, 4358, 1314 ]
[ 0.141357421875, 0.1395263671875, 0.044219970703125, 0.0352783203125, 0.161865234375, 0.248291015625, 0.0855712890625, 0.024261474609375, 0.15673828125, 0.050750732421875, 0.109375, 0.2568359375, 0.095703125, 0.101318359375, 0.1422119140625, 0.058380126953125, 0.04559326171875, 0.03...
embed
5726418_c0
5726418
ruby
0
Title: named scope vs module in ruby on rails Problem title: named scope vs module in ruby on rails Tags: ruby-on-rails, ruby Problem: named scope vs module in ruby on rails Please explain with example difference between named scope and module.
named scope vs module in ruby on rails named scope vs module in ruby on rails ruby-on-rails ruby named scope vs module in ruby on rails Please explain with example difference between named scope and module.
[ 0.01287841796875, -0.00885009765625, 0.0047607421875, 0.01904296875, 0.01080322265625, 0.00787353515625, 0.011474609375, 0.01458740234375, -0.004058837890625, -0.0177001953125, 0.005584716796875, -0.01055908203125, 0.0196533203125, 0.004364013671875, 0.0003032684326171875, -0.001876831...
[ 24, 4806, 70820, 20209, 88996, 23, 21922, 53, 98, 673, 7870, 191, 68823, 73342, 27781, 60212, 17721, 6, 136 ]
[ 0.1624755859375, 0.1993408203125, 0.240478515625, 0.157958984375, 0.280517578125, 0.0242767333984375, 0.1114501953125, 0.093505859375, 0.14697265625, 0.10595703125, 0.1014404296875, 0.1397705078125, 0.12548828125, 0.1107177734375, 0.1214599609375, 0.1610107421875, 0.079833984375, 0...
embed
963420_c0
963420
ruby
0
Title: Undo scaffolding in Rails Problem title: Undo scaffolding in Rails Tags: ruby, ruby-on-rails, scaffolding Problem: Undo scaffolding in Rails Is there any way to 'undo' the effects of a scaffold command in Rails? Code signals: Undo, Rails
Undo scaffolding in Rails Undo scaffolding in Rails ruby ruby-on-rails scaffolding Undo Rails Undo scaffolding in Rails Is there any way to 'undo' the effects of a scaffold command in Rails?
[ -0.0146484375, 0.021728515625, 0.0120849609375, 0.00787353515625, -0.0067138671875, 0.010009765625, 0.0029144287109375, 0.007659912109375, -0.00860595703125, 0.006805419921875, -0.000762939453125, -0.01324462890625, -0.01361083984375, 0.0269775390625, 0.000545501708984375, -0.007202148...
[ 5533, 31, 9023, 2407, 42822, 214, 85736, 7, 23, 21922, 53, 191, 68823, 3917, 47, 34, 557, 25, 70, 93425, 75101 ]
[ 0.1639404296875, 0.178466796875, 0.07373046875, 0.1055908203125, 0.1793212890625, 0.06829833984375, 0.1934814453125, 0.1156005859375, 0.00909423828125, 0.07672119140625, 0.09228515625, 0.09649658203125, 0.1534423828125, 0.0251922607421875, 0.0190277099609375, 0.048828125, 0.194458007...
embed