qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,451,565
<p>I want to get the index of min, I tried ways like getIndexOf etc. but none of them worked. How can I do this?</p> <pre><code>import java.util.Arrays; class getIndexOfMin { public static void main(String[] args) { double arr[] = {263.5, 393.75, 5.0, 289.75}; double min = Arrays.stream(arr).min()...
[ { "answer_id": 74451608, "author": "Cole Henrich", "author_id": 14921272, "author_profile": "https://Stackoverflow.com/users/14921272", "pm_score": 1, "selected": false, "text": "int index;\nfor (int i = 0; i < arr.length; i++){\n double d = arr[i];\n if (d == min){\n index =...
2022/11/15
[ "https://Stackoverflow.com/questions/74451565", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20036187/" ]
74,451,583
<p>I have a global object that store 2 custom class objects, something like this:</p> <pre><code> /////// Separated object file //////// object ApplicationData { var profiledata:ProfileData = ProfileData(null) var OVOlists = ArrayList&lt;OVOList&gt;() } /////// Separated class file //////// class OVOLis...
[ { "answer_id": 74463911, "author": "OVO Cuenta", "author_id": 19861170, "author_profile": "https://Stackoverflow.com/users/19861170", "pm_score": 0, "selected": false, "text": "object ApplicationData {\nvar profiledata:ProfileData = ProfileData(null)\nvar OVOlists = ArrayList<OVOList>()\...
2022/11/15
[ "https://Stackoverflow.com/questions/74451583", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19861170/" ]
74,451,606
<p>I have a div, which has an image inside another div. I would like to place the inner div over the second div. So the arrow in the image below should go over the red. Is this possible?</p> <p><a href="https://i.stack.imgur.com/3jep9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3jep9.png" alt="en...
[ { "answer_id": 74451658, "author": "Skin_phil", "author_id": 13258195, "author_profile": "https://Stackoverflow.com/users/13258195", "pm_score": 1, "selected": false, "text": "position:relative" }, { "answer_id": 74451811, "author": "matteominin", "author_id": 13922670, ...
2022/11/15
[ "https://Stackoverflow.com/questions/74451606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14052161/" ]
74,451,619
<p>I was given the task to code the following recursive method. midresult is supposed to be 0 when I call the method. It works if I call the method just once, but because I have this midresult variable, as soon as I call it more than once in a row it returns wrong values because it adds up midresult.</p> <p>How do I se...
[ { "answer_id": 74451689, "author": "human bean", "author_id": 17186475, "author_profile": "https://Stackoverflow.com/users/17186475", "pm_score": 2, "selected": false, "text": "midresult if(x == 0) {\n return y + midresult;\n}\n if(x == 0) {\n int temp = y + midresult;\n midresu...
2022/11/15
[ "https://Stackoverflow.com/questions/74451619", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19293033/" ]
74,451,647
<p>Hello everyone I want to make a matrix that looks like the image, what I did first was to create a matrix of zeros and then with a for I made the diagonal of the matrix but now I need to make the diagonals that are above and below the -2 but in those there is not a single value, those have zeros and ones so I am not...
[ { "answer_id": 74451689, "author": "human bean", "author_id": 17186475, "author_profile": "https://Stackoverflow.com/users/17186475", "pm_score": 2, "selected": false, "text": "midresult if(x == 0) {\n return y + midresult;\n}\n if(x == 0) {\n int temp = y + midresult;\n midresu...
2022/11/15
[ "https://Stackoverflow.com/questions/74451647", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20326515/" ]
74,451,654
<p>I am creating a trigger in SQL to sum up all the values in a column after a change is made. I am stuck and encountering an error when I try this: `</p> <pre><code>CREATE OR REPLACE TRIGGER GET_NUM_ATHLETES AFTER DELETE OR UPDATE OF NUM_ATHLETES OR INSERT ON DELEGATION BEGIN SELECT SUM(&quot;A1&quot;.&quot;NU...
[ { "answer_id": 74451689, "author": "human bean", "author_id": 17186475, "author_profile": "https://Stackoverflow.com/users/17186475", "pm_score": 2, "selected": false, "text": "midresult if(x == 0) {\n return y + midresult;\n}\n if(x == 0) {\n int temp = y + midresult;\n midresu...
2022/11/15
[ "https://Stackoverflow.com/questions/74451654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18627693/" ]
74,451,663
<p>I have 4 lists of couples of numbers and a list that contains all the 4 lists. I need to create a list with 4 numbers in total, in which <strong>only one</strong> couple is from the list_couples and the rest are randomly generated (for example:[1,21,5,6]). Does anyone have an idea how to make a condition of checkin...
[ { "answer_id": 74451689, "author": "human bean", "author_id": 17186475, "author_profile": "https://Stackoverflow.com/users/17186475", "pm_score": 2, "selected": false, "text": "midresult if(x == 0) {\n return y + midresult;\n}\n if(x == 0) {\n int temp = y + midresult;\n midresu...
2022/11/15
[ "https://Stackoverflow.com/questions/74451663", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17835716/" ]
74,451,764
<p>I would like to write some code like the following:</p> <pre><code>using int_list_t = std::initializer_list&lt;int&gt;; struct ThreeDimensionalBox { static constexpr int_list_t kDims = {1, 2, 3}; }; struct FourDimensionalBox { static constexpr int_list_t kDims = {4, 5, 6, 7}; }; template&lt;typename Box1, typ...
[ { "answer_id": 74452066, "author": "user17732522", "author_id": 17732522, "author_profile": "https://Stackoverflow.com/users/17732522", "pm_score": 3, "selected": true, "text": "std::initializer_list std::initializer_list std::initializer_list std::initializer_list std::initializer_list ...
2022/11/15
[ "https://Stackoverflow.com/questions/74451764", "https://Stackoverflow.com", "https://Stackoverflow.com/users/543913/" ]
74,451,770
<p>I am having two arrays,</p> <p>the first array contains:</p> <pre><code>1, 2, 3, 4, 5 </code></pre> <p>and the second one contains:</p> <pre><code>100, 200, 300, 400, 500 </code></pre> <p>the result should be:</p> <pre><code>[ [ '1', '100' ], [ '2', '200' ], [ '3', '300' ], [ '4', '400' ], [ '5', '500' ] ] <...
[ { "answer_id": 74452066, "author": "user17732522", "author_id": 17732522, "author_profile": "https://Stackoverflow.com/users/17732522", "pm_score": 3, "selected": true, "text": "std::initializer_list std::initializer_list std::initializer_list std::initializer_list std::initializer_list ...
2022/11/15
[ "https://Stackoverflow.com/questions/74451770", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20513823/" ]
74,451,774
<p>I have 2 tables name and match. The name and match table have columns type. The columns and data in the name table</p> <pre><code>ID| type | --| ---- | 1| 1ABC | 2| 2DEF | 3| 3DEF | 4| 4IJK | </code></pre> <p>The columns and data in match table is</p> <div class="s-table-container"> <table class="s-table">...
[ { "answer_id": 74457849, "author": "d r", "author_id": 19023353, "author_profile": "https://Stackoverflow.com/users/19023353", "pm_score": 0, "selected": false, "text": "WITH \n tbl_name AS\n (\n Select 1 \"ID\", '1ABC' \"A_TYPE\" From Dual Union All\n Select 2 ...
2022/11/15
[ "https://Stackoverflow.com/questions/74451774", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9290911/" ]
74,451,798
<p>I'm trying to build a project using vanilla CSS and React Js and I need help writing a &quot;conditional&quot; css.</p> <p>In a previous project I wrote a conditional css using tailwind:</p> <pre><code>&lt;p&gt; className={`text-cyan-600 font-medium text-sm ${ post.description.length &gt; 300 ? &qu...
[ { "answer_id": 74451886, "author": "RedhaBenKortbi", "author_id": 17743517, "author_profile": "https://Stackoverflow.com/users/17743517", "pm_score": 2, "selected": false, "text": "text.active{color:red;} (Text.length > 300 && Text.classList.add(\"active\"))\n" }, { "answer_id": ...
2022/11/15
[ "https://Stackoverflow.com/questions/74451798", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20029377/" ]
74,451,808
<p>I am using VBA in my Access DB to launch a batch file which is linked to PS1 script.</p> <p>That all works as intended. The issue is that I want to run some queries after that action is completed, but as it stands I need to babysit the whole thing. So I am looking for a solution to keep the VBA paused while the batc...
[ { "answer_id": 74456922, "author": "Erik A", "author_id": 7296893, "author_profile": "https://Stackoverflow.com/users/7296893", "pm_score": 3, "selected": true, "text": "/WAIT START /wait PowerShell.exe -ExecutionPolicy Bypass -Command \"& 'C:\\Users\\Rip\\PS1\\OfflineFAQ_Update.ps1' \"\...
2022/11/15
[ "https://Stackoverflow.com/questions/74451808", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10177803/" ]
74,451,818
<p>I would like to make a sql query than return me the distance between two cities.</p> <pre><code>SELECT c1.name, c2.name, d.distance FROM cities_distance d, city c1, city c2 WHERE c1.name = d.name_city1 AND c2.name = d.name_city2 AND c1.id = c2.id AND (c1.name = 'paris' AND c2.name = 'berlin') or (c...
[ { "answer_id": 74451873, "author": "Johnny Bones", "author_id": 2174085, "author_profile": "https://Stackoverflow.com/users/2174085", "pm_score": 0, "selected": false, "text": "SELECT \n c1.name, \n c2.name, \n d.distance\nFROM cities_distance d, city c1, city c2\nWHERE \n c1.i...
2022/11/15
[ "https://Stackoverflow.com/questions/74451818", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7867717/" ]
74,451,820
<p>When I try kicking someone from an account that has no kick permissions, the bot says &quot;the application did not respond&quot;. The code I'm using:</p> <pre><code>@bot.slash_command(description = &quot;Kickar alguém&quot;, guild_ids=[1041057700823449682]) @has_permissions(kick_members=True) @option(&quot;member&q...
[ { "answer_id": 74451873, "author": "Johnny Bones", "author_id": 2174085, "author_profile": "https://Stackoverflow.com/users/2174085", "pm_score": 0, "selected": false, "text": "SELECT \n c1.name, \n c2.name, \n d.distance\nFROM cities_distance d, city c1, city c2\nWHERE \n c1.i...
2022/11/15
[ "https://Stackoverflow.com/questions/74451820", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20417932/" ]
74,451,822
<p>I need write dataframe to snowflake, by using snowflake.snowpark. I have some pandas.DataFrame, have some transformation (corr matrix, description stats, model output,...), but I cant write it back to my snowflake database. Thanks for help.</p> <pre><code>from snowflake.snowpark import Session from snowflake.snowpar...
[ { "answer_id": 74463539, "author": "clb", "author_id": 20521809, "author_profile": "https://Stackoverflow.com/users/20521809", "pm_score": 2, "selected": false, "text": "session.write_pandas(df) create_dataframe .write.mode..." } ]
2022/11/15
[ "https://Stackoverflow.com/questions/74451822", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7676365/" ]
74,451,834
<p>This is my query so far, struggling with how not to display the JONES record though...</p> <p>SELECT SNAME, JOB FROM STAFF WHERE JOB IN (SELECT JOB FROM STAFF WHERE SNAME = 'JONES');</p> <p>Result...</p> <p>SNAME JOB</p> <hr /> <p>JONES MANAGER<br /> HAYAT MANAGER<br /> CLARK MANAGER</p>
[ { "answer_id": 74463539, "author": "clb", "author_id": 20521809, "author_profile": "https://Stackoverflow.com/users/20521809", "pm_score": 2, "selected": false, "text": "session.write_pandas(df) create_dataframe .write.mode..." } ]
2022/11/15
[ "https://Stackoverflow.com/questions/74451834", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,451,862
<p>I have a 11 columns x 13,470,621 rows pytable. The first column of the table contains a unique identifier to each row (this identifier is always only present once in the table).</p> <p>This is how I select rows from the table at the moment:</p> <pre><code>my_annotations_table = h5r.root.annotations # Loop through t...
[ { "answer_id": 74466936, "author": "julio514", "author_id": 4792074, "author_profile": "https://Stackoverflow.com/users/4792074", "pm_score": 0, "selected": false, "text": "expectedrows=<int> table = h5w.create_table(\"/\", 'annotations', \n DataDescr, \"Annotation table unindexed\", ...
2022/11/15
[ "https://Stackoverflow.com/questions/74451862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4792074/" ]
74,451,998
<p>Let's assume that we have this small code:</p> <pre><code>template&lt;typename T&gt; struct Test { Test(T t) : m_t(t) {} T m_t; }; int main() { Test t = 1; } </code></pre> <p>This code easily compiles with <code>[T=int]</code> for <code>Test</code> class. Now if I write a code like this:</p> <pre><code>...
[ { "answer_id": 74452068, "author": "NathanOliver", "author_id": 4342498, "author_profile": "https://Stackoverflow.com/users/4342498", "pm_score": 3, "selected": false, "text": "struct S {\n Test t = 1;\n};\n Test t = 1; t struct S {\n S() : t(1) {} // created by the compiler\n T...
2022/11/15
[ "https://Stackoverflow.com/questions/74451998", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5529197/" ]
74,452,015
<p>I have columns of probabilities in a pandas dataframe as an output from multiclass machine learning.</p> <p>I am looking to filter rows for which the model had very close probabilities between the classes for that row, and ideally only care about similar values that are similar to the highest value in that row, but ...
[ { "answer_id": 74452275, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 3, "selected": true, "text": "numpy itertools.combinations N from itertools import combinations\nimport numpy as np\n\ndf2 = df.set_index('ID')\n\...
2022/11/15
[ "https://Stackoverflow.com/questions/74452015", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8831033/" ]
74,452,036
<p>So I have this text file</p> <pre><code>(1, 15), 'indice3 = [4, 5, 6]' (7, 1), &quot;indice1 = {3: 'A B C'}&quot; (11, 7), &quot;indice4 = '(1, 2)'&quot; (11, 17), 'typage = mode de déclaration des types de variable' (23, 5), &quot;indice5 = '(3, 4)'&quot; (25, 1), '27 * 37 = 999' </code></pre> <p>As you can see, th...
[ { "answer_id": 74452096, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 2, "selected": false, "text": "ast.literal_eval from ast import literal_eval\n\n\nout = []\nwith open(\"your_file.txt\", \"r\") as f_in:\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74452036", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18129904/" ]
74,452,049
<p>Here is my file name text and it has below contents</p> <pre><code>system { host name $HOSTNAME value 25 as 635 } </code></pre> <p>I am writing below code to read the file :</p> <pre><code>set HOSTNAME &quot;NEw york&quot; set cf [open text r] foreach line [split [read $cf] \n] { puts $line close $cf </code></pre>...
[ { "answer_id": 74452312, "author": "Chris Heithoff", "author_id": 16350882, "author_profile": "https://Stackoverflow.com/users/16350882", "pm_score": 2, "selected": false, "text": "subst set HOSTNAME \"New York\"\nset line {host name $HOSTNAME}\n\nputs $line \n --> \"host name $HOSTNAME...
2022/11/15
[ "https://Stackoverflow.com/questions/74452049", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20513967/" ]
74,452,054
<p>Want a simple htaccess to redirect html root filename to a sub-directory.</p> <p><a href="http://www.xyz.com/About****.php" rel="nofollow noreferrer">www.xyz.com/About****.php</a> where **** is arbitrary. The words &quot;About&quot; and &quot;.php&quot; are fixed</p> <p>convert to <a href="http://www.xyz.com/coach/...
[ { "answer_id": 74452154, "author": "Valeriu Ciuca", "author_id": 4527645, "author_profile": "https://Stackoverflow.com/users/4527645", "pm_score": 2, "selected": false, "text": "About****.php coach/articles/About****.php RewriteEngine On\nRewriteRule ^About(.*).php$ coach/articles/About$...
2022/11/15
[ "https://Stackoverflow.com/questions/74452054", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20513908/" ]
74,452,083
<p>I'm currently working on trying to separate values inside of a .txt file into tuples. This is so that, later on, I want to create a simple database using these tuples to look up the data. Here is my current code:</p> <pre><code>with open(&quot;data.txt&quot;) as load_file: data = [tuple(line.split()) for line in...
[ { "answer_id": 74452154, "author": "Valeriu Ciuca", "author_id": 4527645, "author_profile": "https://Stackoverflow.com/users/4527645", "pm_score": 2, "selected": false, "text": "About****.php coach/articles/About****.php RewriteEngine On\nRewriteRule ^About(.*).php$ coach/articles/About$...
2022/11/15
[ "https://Stackoverflow.com/questions/74452083", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17360950/" ]
74,452,088
<p>I am trying to make a interactive rating component. I have no clue how I can return the result on a span element after a rating is chosen.</p> <p>When I enter the rating on buttons:</p> <p><img src="https://i.stack.imgur.com/gUJi6.png" alt="enter image description here" /></p> <p>After I submit the rating:</p> <p><i...
[ { "answer_id": 74452288, "author": "h0r53", "author_id": 5199418, "author_profile": "https://Stackoverflow.com/users/5199418", "pm_score": 0, "selected": false, "text": "id num id class <ul>\n <li><button class=\"btn\"><p class=\"num\">1</p></button></li>\n <li><button class=\"btn\...
2022/11/15
[ "https://Stackoverflow.com/questions/74452088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19156627/" ]
74,452,129
<p>Various R functions make it easy to use group_by and summarize to pull a value from a grouped variable. So in the resulting dataframe, I can use group_by and summarise to create, for example, a new column that contains the maximum or minimum value of a variable within each group. Meaning, with this data:</p> <pre><...
[ { "answer_id": 74452271, "author": "Juan C", "author_id": 9462829, "author_profile": "https://Stackoverflow.com/users/9462829", "pm_score": 1, "selected": false, "text": "df %>% group_by(name) %>% arrange(desc(value)) %>% slice(2)\n a = 'name value\nFoo 100\nFoo 200\nFoo 300\nBar 400\nBa...
2022/11/15
[ "https://Stackoverflow.com/questions/74452129", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5176356/" ]
74,452,136
<p>I need a way to prevent showing duplicated content in angular template. I have an array of data, and some of those data share the same formId. In my template I am showing the name of the array, and if the formId is unique, then after there is a divider line, but if the array share the same formId the divider line is...
[ { "answer_id": 74452271, "author": "Juan C", "author_id": 9462829, "author_profile": "https://Stackoverflow.com/users/9462829", "pm_score": 1, "selected": false, "text": "df %>% group_by(name) %>% arrange(desc(value)) %>% slice(2)\n a = 'name value\nFoo 100\nFoo 200\nFoo 300\nBar 400\nBa...
2022/11/15
[ "https://Stackoverflow.com/questions/74452136", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19744898/" ]
74,452,150
<p>i want use loop correctly inside function</p> <p>This is my code :</p> <pre><code>def test(): for i in range(1,10): return i def check(): print(test()) check() </code></pre> <p>output is 1</p> <p>i want to full iteration output : 1 ,2,4....10</p>
[ { "answer_id": 74452182, "author": "wizzwizz4", "author_id": 5223757, "author_profile": "https://Stackoverflow.com/users/5223757", "pm_score": 0, "selected": false, "text": "return return yield def test():\n for i in range(1,10):\n yield i\n print * def check():\n print(*tes...
2022/11/15
[ "https://Stackoverflow.com/questions/74452150", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20315528/" ]
74,452,169
<p>I am currently attempting to turn a list into a frequency dictionary. I am reading a file, separating the file into each individual words on a line and attempting to turn each word into its own frequency dictionary in order to find how many times it occurs. I was wondering how I would accomplish this. This is what I...
[ { "answer_id": 74452217, "author": "Tim Roberts", "author_id": 1883316, "author_profile": "https://Stackoverflow.com/users/1883316", "pm_score": 2, "selected": false, "text": "Counter from collections import Counter\nwith open(file, 'r', encoding='utf-8') as fp:\n counts = Counter(fp....
2022/11/15
[ "https://Stackoverflow.com/questions/74452169", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20481720/" ]
74,452,183
<p>What option is recommended in C to return an array from a function?</p> <p><strong>Option 1:</strong></p> <pre><code>void function_a(int *return_array){ return_array[0] = 1; return_array[1] = 0; } </code></pre> <p><strong>Option 2:</strong></p> <pre><code>int* function_b(){ int return_array[2]; retur...
[ { "answer_id": 74452218, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 3, "selected": true, "text": "int* function_b(){\n int return_array[2];\n return_array[0] = 1;\n return_array[1] = 0;\n return...
2022/11/15
[ "https://Stackoverflow.com/questions/74452183", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16350154/" ]
74,452,205
<p>I have created a <code>BottomNavigationBar</code> with my app, but when I navigate to a new page by clicking on <code>Profile</code> the <code>BottomNavigationBar</code> goes away. I have been working on this for hours and I am about to give up lol. Any ideas?</p> <p><code>app.dart</code></p> <pre><code>@override ...
[ { "answer_id": 74452218, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 3, "selected": true, "text": "int* function_b(){\n int return_array[2];\n return_array[0] = 1;\n return_array[1] = 0;\n return...
2022/11/15
[ "https://Stackoverflow.com/questions/74452205", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20453098/" ]
74,452,212
<p>I've got an incoming bytestream of blocks of 16 uint8_t that I need to expand into 4x uint32x4_t neon registers for further processing. This is going to run on a core based on Cortex-A55. Here's an example bytestream: {0x0,0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xA,0xB,0xC,0xD,0xF}.</p> <p>Here's what I've got so far:<...
[ { "answer_id": 74452694, "author": "solidpixel", "author_id": 533037, "author_profile": "https://Stackoverflow.com/users/533037", "pm_score": 0, "selected": false, "text": "q0 = 16 packed byte values\nq1 = Zeros\nq2 = Zeros\nq3 = Zeros\n\nvzip.u8 q0, q2 // Interleave u8 and zeros to get...
2022/11/15
[ "https://Stackoverflow.com/questions/74452212", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1125660/" ]
74,452,216
<p>I wrote this sample code to show only a single image after passing it to my model. The model should have only one convolutional layer and one pooling layer. Or in another way, how can I visualize a single image by passing it to a simple neural network that has one convolutional and one pooling layer?</p> <pre class=...
[ { "answer_id": 74452694, "author": "solidpixel", "author_id": 533037, "author_profile": "https://Stackoverflow.com/users/533037", "pm_score": 0, "selected": false, "text": "q0 = 16 packed byte values\nq1 = Zeros\nq2 = Zeros\nq3 = Zeros\n\nvzip.u8 q0, q2 // Interleave u8 and zeros to get...
2022/11/15
[ "https://Stackoverflow.com/questions/74452216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20252189/" ]
74,452,220
<p>I am trying to get the resource limits &amp; requests for Kubernetes pods. I am attempting to output to a comma delimited row that lists the namespace, pod name, container name and then the mem &amp; CPU limits/requests for each container. Running into issues when there's multiple containers per pod.</p> <p>The clos...
[ { "answer_id": 74452694, "author": "solidpixel", "author_id": 533037, "author_profile": "https://Stackoverflow.com/users/533037", "pm_score": 0, "selected": false, "text": "q0 = 16 packed byte values\nq1 = Zeros\nq2 = Zeros\nq3 = Zeros\n\nvzip.u8 q0, q2 // Interleave u8 and zeros to get...
2022/11/15
[ "https://Stackoverflow.com/questions/74452220", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20514037/" ]
74,452,229
<p>I have <code>Prolog</code> database with airplane schedules. Here is how it looks like:</p> <pre><code>fly(id, from, to, days(1, 0, 1, 0, 1, 0, 1)). </code></pre> <p>As you can see there are 7 values in <code>days</code> predicate - from Monday to Sunday. What I want to do is to print every day, where value is <code...
[ { "answer_id": 74452679, "author": "dokichan", "author_id": 16732680, "author_profile": "https://Stackoverflow.com/users/16732680", "pm_score": 3, "selected": true, "text": "loop iterate_weeks([], _).\niterate_weeks([H|T], [X|Y]) :- H = 1, write(X), nl, iterate_weeks(T, Y).\niterate_week...
2022/11/15
[ "https://Stackoverflow.com/questions/74452229", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16732680/" ]
74,452,242
<p>I created an iframe in vex6.html and a js file in styles.gq/test.js and in that file there is the link and id but when I try to call the code in html it does not work.</p> <p>Here is my code for vex6.html</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Page Title&lt;/title&gt; &lt;/head&g...
[ { "answer_id": 74452499, "author": "Stefan Scharinger", "author_id": 16052813, "author_profile": "https://Stackoverflow.com/users/16052813", "pm_score": 2, "selected": true, "text": "<script type=\"text/javascript\" src=\"https://styles.gq/test.js</script>" }, { "answer_id": 7445...
2022/11/15
[ "https://Stackoverflow.com/questions/74452242", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19333152/" ]
74,452,337
<p>I imported some custom checkboxes but they're displaying vertically and I want them to be displayed horizontally in a row</p> <p>I tried changing the flex-direction and some other things but none of that has changed anything. Here is my code:</p> <pre><code>import { Pressable, StyleSheet, Text, View } from &quot;rea...
[ { "answer_id": 74452667, "author": "David Scholz", "author_id": 14969281, "author_profile": "https://Stackoverflow.com/users/14969281", "pm_score": 0, "selected": false, "text": "flexDirection column row topMargin title \nconst styles = StyleSheet.create({\n container: {\n justifyCon...
2022/11/15
[ "https://Stackoverflow.com/questions/74452337", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20513383/" ]
74,452,364
<p>Im new to React and im trying build a live chat website , but i got stuck in the section of login and registration , im just trying to navigate between these 2 pages i will put my code under , if i did something wrong don't hesitate please :</p> <p><strong>App.js :</strong> `</p> <pre><code>import './App.css'; impor...
[ { "answer_id": 74452632, "author": "mmender22", "author_id": 19346492, "author_profile": "https://Stackoverflow.com/users/19346492", "pm_score": 0, "selected": false, "text": "<Route></Route>\n \n<Route />\n" }, { "answer_id": 74545774, "author": "mohammad ali", "author_i...
2022/11/15
[ "https://Stackoverflow.com/questions/74452364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19431629/" ]
74,452,367
<p>I am really new to javascript so forgive any mistakes in my presentation of my question. I have the following object and am trying to figure out how to find the sum quantity of all items. I am looking for the output of &quot;17&quot;.</p> <p>Here is the object:</p> <pre><code>const cart = { &quot;tax&quot;: .10,...
[ { "answer_id": 74452632, "author": "mmender22", "author_id": 19346492, "author_profile": "https://Stackoverflow.com/users/19346492", "pm_score": 0, "selected": false, "text": "<Route></Route>\n \n<Route />\n" }, { "answer_id": 74545774, "author": "mohammad ali", "author_i...
2022/11/15
[ "https://Stackoverflow.com/questions/74452367", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20504727/" ]
74,452,368
<p>I am creating a shuffle game and for that, I have set 3 levels of the grid,</p> <p>I have taken a fixed-sized container of 300x300 and I don't want to change its size,</p> <p>here I want to place all grid buttons properly inside a grid but I am getting space at top of the grid view and due to that, the buttons are n...
[ { "answer_id": 74455286, "author": "Kasymbek R. Tashbaev", "author_id": 14891973, "author_profile": "https://Stackoverflow.com/users/14891973", "pm_score": 3, "selected": true, "text": "GridView EdgeInsets.zero GridView.builder(\n padding: EdgeInsets.zero,\n ...\n)\n" }, { "ans...
2022/11/15
[ "https://Stackoverflow.com/questions/74452368", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18817235/" ]
74,452,388
<p>I would like to write a simple function (I'm beginner), in my script, to check and test user's API KEY from VirusTotal.</p> <p>That's my idea:</p> <p>Firstly, I would like to check if user type his API KEY in code or field is empty.</p> <p>Secondly, I would like to check if API KEY is correct. I had no idea how to c...
[ { "answer_id": 74455286, "author": "Kasymbek R. Tashbaev", "author_id": 14891973, "author_profile": "https://Stackoverflow.com/users/14891973", "pm_score": 3, "selected": true, "text": "GridView EdgeInsets.zero GridView.builder(\n padding: EdgeInsets.zero,\n ...\n)\n" }, { "ans...
2022/11/15
[ "https://Stackoverflow.com/questions/74452388", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20509308/" ]
74,452,411
<p>How may I find in two (or more) arrays duplicates and show it ?</p> <p>I want to use filter, It's a good idea to use it ?</p> <p>This is what I tried <strong>:</strong></p> <pre><code>let monday = [&quot;task1&quot;, &quot;task2&quot;, &quot;task3&quot;, &quot;task4&quot;, &quot;taks5&quot;, &quot;task6&quot;, &quot...
[ { "answer_id": 74452711, "author": "esQmo_", "author_id": 5374691, "author_profile": "https://Stackoverflow.com/users/5374691", "pm_score": 0, "selected": false, "text": "let monday = [\"task1\", \"task2\", \"task3\", \"task4\", \"taks5\", \"task6\", \"taks7\"];\nlet tuesday = [\"task2\"...
2022/11/15
[ "https://Stackoverflow.com/questions/74452411", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19792261/" ]
74,452,418
<p>Here is my config file:</p> <pre><code>{ &quot;credentials&quot;: { &quot;server&quot;: &quot;0.1.2.3,6666&quot;, &quot;database&quot;: &quot;db&quot;, &quot;username&quot;: &quot;user&quot;, &quot;password&quot;: &quot;password&quot; } } </code></pre> <p>Here is my python script in a separate f...
[ { "answer_id": 74452711, "author": "esQmo_", "author_id": 5374691, "author_profile": "https://Stackoverflow.com/users/5374691", "pm_score": 0, "selected": false, "text": "let monday = [\"task1\", \"task2\", \"task3\", \"task4\", \"taks5\", \"task6\", \"taks7\"];\nlet tuesday = [\"task2\"...
2022/11/15
[ "https://Stackoverflow.com/questions/74452418", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20412585/" ]
74,452,431
<p>I'm sorry if this is a duplicate post but search seemed to yield no useful results...or maybe I'm such a noob that I'm not understanding what is being said in the answers.</p> <p>I wrote this small code for practice (following &quot;learning Python the hard way&quot;). I tried to make a shorter version of a code whi...
[ { "answer_id": 74452475, "author": "partizanos", "author_id": 4061637, "author_profile": "https://Stackoverflow.com/users/4061637", "pm_score": -1, "selected": false, "text": "echo \"a\" > test_file\n wc -m\n" }, { "answer_id": 74452517, "author": "cafce25", "author_id": ...
2022/11/15
[ "https://Stackoverflow.com/questions/74452431", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20514139/" ]
74,452,443
<p>so I am trying to make a object parameter optional, with optional props, and have a default value at the same time:</p> <pre><code>const myfunc = ({ stop = false }: { stop?: boolean } = { stop: false }) =&gt; { // do stuff with &quot;stop&quot; } </code></pre> <p>this works fine, but notice that crazy function d...
[ { "answer_id": 74452502, "author": "CollinD", "author_id": 5298696, "author_profile": "https://Stackoverflow.com/users/5298696", "pm_score": 3, "selected": true, "text": "interface MyFuncOptions {\n stop: boolean;\n}\nconst myFunc = (options: Partial<MyFuncOptions> = {}) => {\n const d...
2022/11/15
[ "https://Stackoverflow.com/questions/74452443", "https://Stackoverflow.com", "https://Stackoverflow.com/users/376947/" ]
74,452,453
<p>I am creating a kafka instance creation script and I want to gather the bootstrap server from a describe command.</p> <p>The command to gather the kafka instance details is.</p> <pre><code>rhoas kafka describe </code></pre> <p>the output looks something like this</p> <pre><code>&quot;admin_api_server_url&quot;: &quo...
[ { "answer_id": 74452506, "author": "Arnaud Valmary", "author_id": 6255757, "author_profile": "https://Stackoverflow.com/users/6255757", "pm_score": 2, "selected": true, "text": "rhoas kafka describe | grep bootstrap_server_host | cut -d \\\" -f 4\n" }, { "answer_id": 74452654, ...
2022/11/15
[ "https://Stackoverflow.com/questions/74452453", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20281834/" ]
74,452,460
<p>My app has different parts and I want them to have different theme colors, including for all the subroutes in the navigation.</p> <p>But if I use a Theme, it's not applied to the widgets in the subroutes. I also tried to use nested MaterialApps but this won't work because I can't pop back to the root menu. I'd prefe...
[ { "answer_id": 74452531, "author": "Gwhyyy", "author_id": 18670641, "author_profile": "https://Stackoverflow.com/users/18670641", "pm_score": 2, "selected": false, "text": "ThemeData Theme Theme(\n data: ThemeData.light().copyWith(\n primaryColor: Colors.purple,\n ),\n child: YourW...
2022/11/15
[ "https://Stackoverflow.com/questions/74452460", "https://Stackoverflow.com", "https://Stackoverflow.com/users/639722/" ]
74,452,463
<p>I am fairly new to working with python and finally encountered a problem I cannot circumvent. I will make this fairly simple.</p> <p>I have a csv file with many lines that looks like this once I create a list variable:</p> <pre><code>['1\t10000\t11000\tabcdef\t1\t+\t10000\t11000\t&quot;0,0,0&quot;\t1\t1000\t0\n'] </...
[ { "answer_id": 74452531, "author": "Gwhyyy", "author_id": 18670641, "author_profile": "https://Stackoverflow.com/users/18670641", "pm_score": 2, "selected": false, "text": "ThemeData Theme Theme(\n data: ThemeData.light().copyWith(\n primaryColor: Colors.purple,\n ),\n child: YourW...
2022/11/15
[ "https://Stackoverflow.com/questions/74452463", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20330606/" ]
74,452,533
<p>Given this dataframe:</p> <pre><code>+-----+-----+----+ |num_a|num_b| sum| +-----+-----+----+ | 1| 1| 2| | 12| 15| 27| | 56| 11|null| | 79| 3| 82| | 111| 114| 225| +-----+-----+----+ </code></pre> <p>How would you fill up <code>Null</code> values in sum column if the value can be gathered fr...
[ { "answer_id": 74452531, "author": "Gwhyyy", "author_id": 18670641, "author_profile": "https://Stackoverflow.com/users/18670641", "pm_score": 2, "selected": false, "text": "ThemeData Theme Theme(\n data: ThemeData.light().copyWith(\n primaryColor: Colors.purple,\n ),\n child: YourW...
2022/11/15
[ "https://Stackoverflow.com/questions/74452533", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13608873/" ]
74,452,544
<p>A task: Write a function that takes an array and a number n. Then output an array in which there are no elements that are repeated more than n times.<br /> Example:<br /> Input:<br /> n = 3;<br /> arr = [1, 2, 4, 4, 4, 2, 2, 2, 2]<br /> Output:<br /> result = [1, 2, 4, 4, 4, 2, 2]</p> <p>Tried to do something like t...
[ { "answer_id": 74452622, "author": "CertainPerformance", "author_id": 9515207, "author_profile": "https://Stackoverflow.com/users/9515207", "pm_score": 2, "selected": true, "text": "const arr = [1, 2, 4, 4, 4, 2, 2, 2, 2]\nlet n = 3;\n\nconst counts = {};\nconst result = [];\nfor (const ...
2022/11/15
[ "https://Stackoverflow.com/questions/74452544", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8840199/" ]
74,452,565
<p>I am trying to write this scalar UDF:</p> <pre><code>CREATE FUNCTION [dbo].[DAYSADDNOWK](@addDate AS DATE, @numDays AS INT) RETURNS DATETIME AS BEGIN WHILE @numDays&gt;0 BEGIN SET @addDate=DATEADD(d,1,@addDate) IF DATENAME(DW,@addDate)='saturday' SET @addDate=DATEADD(d,1,@addDate) IF DAT...
[ { "answer_id": 74452836, "author": "John Cappelletti", "author_id": 1570000, "author_profile": "https://Stackoverflow.com/users/1570000", "pm_score": 2, "selected": true, "text": "CREATE FUNCTION [dbo].[YourFunctionName] (@D date,@I int)\nReturns Table\nReturn (\n\nSelect WorkDate = D\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74452565", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10362066/" ]
74,452,567
<p>I am making a function to categorize data, but i am recieving this error: ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().</p> <pre><code>import pandas as pd df=pd.read_csv(r'C:\Users\gabri\Downloads\credit_scoring_eng.csv') def economic_class(valor): ...
[ { "answer_id": 74452816, "author": "Carson Whitley", "author_id": 9982613, "author_profile": "https://Stackoverflow.com/users/9982613", "pm_score": 2, "selected": false, "text": "import pandas as pd\n\ndata = {'Name':['Bob','Kyle','Kevin','Dave'],\n 'Value':[1000,20000,40000,30000...
2022/11/15
[ "https://Stackoverflow.com/questions/74452567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18439954/" ]
74,452,582
<p>I have a dataframe where I have a date and a time column. Each row describes some event. I want to calculate the timespan for each different day and add it as new row. The actual calculation is not that important (which units etc.), I just want to know, how I can the first and last row for each date, to access the t...
[ { "answer_id": 74452720, "author": "Ricardo", "author_id": 16353662, "author_profile": "https://Stackoverflow.com/users/16353662", "pm_score": 0, "selected": false, "text": "df['Start time'] = df.apply(lambda row: df[df['Date'] == row['Date']]['Time'].max(), axis=1)\ndf\n import datetime...
2022/11/15
[ "https://Stackoverflow.com/questions/74452582", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8929547/" ]
74,452,586
<pre><code>def reversed_list(lst1, lst2): for index in range(len(lst1)): if lst1[index] != lst2[len(lst2) - 1- index]: return False else: return True </code></pre> <p>It should copmare first element of the lst1 and the last element of lst2. When I run with next comands:</p> <pre><code>print(rever...
[ { "answer_id": 74452720, "author": "Ricardo", "author_id": 16353662, "author_profile": "https://Stackoverflow.com/users/16353662", "pm_score": 0, "selected": false, "text": "df['Start time'] = df.apply(lambda row: df[df['Date'] == row['Date']]['Time'].max(), axis=1)\ndf\n import datetime...
2022/11/15
[ "https://Stackoverflow.com/questions/74452586", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20514295/" ]
74,452,595
<p>Trying to sort lines in a file. The column1 is HH:MM:SS format and col2 is AM/PM. Need to arrange lines from AM to PM firstly and then progressive time.</p> <p>Current :</p> <pre><code>11:36:48 AM col3 ... 11:32:00 AM col3 ... 03:18:54 PM col3 ... 02:26:40 PM col3 ... 01:51:56 PM col3 ... 12:55:58 PM col3 ... 11:58:...
[ { "answer_id": 74452893, "author": "markp-fuso", "author_id": 7366100, "author_profile": "https://Stackoverflow.com/users/7366100", "pm_score": 1, "selected": false, "text": "12:xx 01:xx 12:xx 00:xx 00:xx 12:xx sed | sort | sed $ sed 's/^12/00/' sample.log | sort -k2,2 -k1,1 | sed 's/^00...
2022/11/15
[ "https://Stackoverflow.com/questions/74452595", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4450504/" ]
74,452,596
<p>Sorry for the title, but don't know how to explain it. (.NET ASP MVC) So what I'm trying is to create a payment request via TripleA API(redirect on their page), if the payment is successful, they will redirect on my success page with some parameters, how can I handle those parameters?</p> <p>What I've tried:</p> <pr...
[ { "answer_id": 74452893, "author": "markp-fuso", "author_id": 7366100, "author_profile": "https://Stackoverflow.com/users/7366100", "pm_score": 1, "selected": false, "text": "12:xx 01:xx 12:xx 00:xx 00:xx 12:xx sed | sort | sed $ sed 's/^12/00/' sample.log | sort -k2,2 -k1,1 | sed 's/^00...
2022/11/15
[ "https://Stackoverflow.com/questions/74452596", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20372223/" ]
74,452,611
<p>We are porting some code from SSIS to Python. As part of this project, I'm recreating some packages but I'm having issues with the database access. I've managed to query the DB like this:</p> <p>employees_table = (spark.read <br> .format(&quot;jdbc&quot;)<br> .option(&quot;url&quot;, &quot;jdbc:sqlserver://dev.datab...
[ { "answer_id": 74452893, "author": "markp-fuso", "author_id": 7366100, "author_profile": "https://Stackoverflow.com/users/7366100", "pm_score": 1, "selected": false, "text": "12:xx 01:xx 12:xx 00:xx 00:xx 12:xx sed | sort | sed $ sed 's/^12/00/' sample.log | sort -k2,2 -k1,1 | sed 's/^00...
2022/11/15
[ "https://Stackoverflow.com/questions/74452611", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4385614/" ]
74,452,631
<p>Upper only letters that I have indexes on the list (PYTHON)</p> <pre><code>s = &quot;string&quot; l = [1,3] # output is: sTrIng </code></pre> <p>Tried this but it wont work</p> <pre><code>for i in l: s[i] = s[i].upper() </code></pre> <pre><code></code></pre>
[ { "answer_id": 74452963, "author": "KEHINDE ELELU", "author_id": 12917476, "author_profile": "https://Stackoverflow.com/users/12917476", "pm_score": -1, "selected": false, "text": "s = \"string\"\nl = [1,3]\n\nfor i in l:\n newStr = s[i]\n print(newStr.upper())\n" }, { "answe...
2022/11/15
[ "https://Stackoverflow.com/questions/74452631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20514345/" ]
74,452,643
<p>I've written my own std::any implementation that has configurable small value optimization (STL has no configuration for this and default values are very small, e. g. in GCC it's just one pointer size).</p> <pre><code>#pragma once #include &lt;cstddef&gt; #include &lt;cstring&gt; #include &lt;typeinfo&gt; #include...
[ { "answer_id": 74452880, "author": "ALX23z", "author_id": 10803671, "author_profile": "https://Stackoverflow.com/users/10803671", "pm_score": 1, "selected": false, "text": "template<typename T> Any(T &&value) Any Any const T& std::forward template<typename T, std::enable_if_t<!is_Any_v<s...
2022/11/15
[ "https://Stackoverflow.com/questions/74452643", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7549594/" ]
74,452,655
<p>Issue: I cannot get a clickable variable that points the chosen anime title. The title is an tag that has a tag that contains the anime name. What I want to do is: 1)Get all anime that appear from the website 2)Select the anime that has the same name as the input variable &quot;b&quot; 3)Get the chosen anime title...
[ { "answer_id": 74452880, "author": "ALX23z", "author_id": 10803671, "author_profile": "https://Stackoverflow.com/users/10803671", "pm_score": 1, "selected": false, "text": "template<typename T> Any(T &&value) Any Any const T& std::forward template<typename T, std::enable_if_t<!is_Any_v<s...
2022/11/15
[ "https://Stackoverflow.com/questions/74452655", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20507887/" ]
74,452,666
<p>I would like an elegant way to safely read data in a field which is wrapped in &quot;nullable types&quot; such as std::optional and std::shared_ptr. Take as example:</p> <pre><code>#include &lt;iostream&gt; #include &lt;memory&gt; #include &lt;optional&gt; struct Entry { std::optional&lt;std::string&gt; name; }...
[ { "answer_id": 74452880, "author": "ALX23z", "author_id": 10803671, "author_profile": "https://Stackoverflow.com/users/10803671", "pm_score": 1, "selected": false, "text": "template<typename T> Any(T &&value) Any Any const T& std::forward template<typename T, std::enable_if_t<!is_Any_v<s...
2022/11/15
[ "https://Stackoverflow.com/questions/74452666", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1812722/" ]
74,452,672
<p>I have an array which consists of 10 random integers, what will be the fastest way to sort it from the largest to the smallest?</p> <pre><code>public class Main { public static void main(String args[]) { int [] array = new int[10]; array[0] = ((int)(Math.random()*100+1)); array[1] = ...
[ { "answer_id": 74452707, "author": "OscarRyz", "author_id": 20654, "author_profile": "https://Stackoverflow.com/users/20654", "pm_score": 1, "selected": false, "text": " array = Arrays.stream(array) // turn into an IntStream\n .boxed() // Then into a Stream<...
2022/11/15
[ "https://Stackoverflow.com/questions/74452672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20514343/" ]
74,452,683
<p>How can I create a new column (like below) to separate out values if they start with a number? I've attempted utilizing variations of isdigit() and slicing the value to look at the first character [:1], but I haven't been able to get this to work. <code>df.apply(lambda x: x if x['attr'][:1].isdigit()==False)</code><...
[ { "answer_id": 74452707, "author": "OscarRyz", "author_id": 20654, "author_profile": "https://Stackoverflow.com/users/20654", "pm_score": 1, "selected": false, "text": " array = Arrays.stream(array) // turn into an IntStream\n .boxed() // Then into a Stream<...
2022/11/15
[ "https://Stackoverflow.com/questions/74452683", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9982613/" ]
74,452,706
<p>I need to modify my CSS styles to make the design look exactly like the following picture</p> <p><a href="https://i.stack.imgur.com/Bwwhz.png" rel="nofollow noreferrer">enter image description here</a></p> <p>At the moment my design looks like this</p> <p><a href="https://i.stack.imgur.com/5ISyH.png" rel="nofollow n...
[ { "answer_id": 74452707, "author": "OscarRyz", "author_id": 20654, "author_profile": "https://Stackoverflow.com/users/20654", "pm_score": 1, "selected": false, "text": " array = Arrays.stream(array) // turn into an IntStream\n .boxed() // Then into a Stream<...
2022/11/15
[ "https://Stackoverflow.com/questions/74452706", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14134518/" ]
74,452,708
<p>I have the requirement to set particular time of the day to Date Object. The Time is in String and is CET, so &quot;16:00&quot; means &quot;15:00&quot; in UTC in Winter time. The following code does the job in node.js on my local machine which is in CET Timezone:</p> <pre><code>addTimetoDate(new Date(),&quot;16:00&q...
[ { "answer_id": 74458591, "author": "MatnikR", "author_id": 5177123, "author_profile": "https://Stackoverflow.com/users/5177123", "pm_score": -1, "selected": false, "text": "function addTimetoDate(theDate,theTime){\nvar d = new Date();\nvar hourLocal = d.toLocaleString({timezone:'Europe/B...
2022/11/15
[ "https://Stackoverflow.com/questions/74452708", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5177123/" ]
74,452,719
<p>I am currently working on converting, refactoring, and optimizing a code base from R to Python.</p> <p>The R code base uses the <code>source()</code> function a lot. From my understanding this is similar to importing a python file.</p> <p>In python I can do the following: <br/> <code>import</code> <em>myFile</em> <b...
[ { "answer_id": 74452905, "author": "Gwang-Jin Kim", "author_id": 9690090, "author_profile": "https://Stackoverflow.com/users/9690090", "pm_score": 0, "selected": false, "text": "source() import exec(open('filename').read()) with open('filename') as f:\n exec(f.read())\n source_as_ns <...
2022/11/15
[ "https://Stackoverflow.com/questions/74452719", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15773858/" ]
74,452,722
<p>When compiling with Microsoft's <code>/analyze</code> static analysis command line option for <code>cl.exe</code>, I get the warning</p> <pre><code>warning C6011: Dereferencing NULL pointer 'foo' </code></pre> <p>on a code path that calls a trivial function that guarantees that <code>foo</code> is not NULL where the...
[ { "answer_id": 74452790, "author": "lorro", "author_id": 6292621, "author_profile": "https://Stackoverflow.com/users/6292621", "pm_score": 1, "selected": false, "text": "template<typename Then, typename Else>\nvoid if_check_ptr(Foo* ptr, Then then, Else els)\n{\n if (!ptr)\n {\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74452722", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6345/" ]
74,452,724
<p>I am trying to implement a trait for types such that the reference to the type is convertible into an iterator with <code>Item</code> implementing a specific trait</p> <p>Specifically, consider the following code:</p> <pre class="lang-rust prettyprint-override"><code>struct Arena; pub trait Scan { fn scan(&amp;...
[ { "answer_id": 74453043, "author": "rodrigo", "author_id": 865874, "author_profile": "https://Stackoverflow.com/users/865874", "pm_score": 3, "selected": true, "text": "impl<'a, 'b, Iterable, Item> Scan for Iterable\n Iterable Item Item impl<'a, 'b, Iterable> Scan for Iterable\nwhere\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74452724", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6187172/" ]
74,452,725
<p>I have been using code from <a href="https://stackoverflow.com/a/74048270/45375">this answer</a> to check for additions/changes to class rosters from MS Teams:</p> <pre><code>$set = [System.Collections.Generic.HashSet[string]]::new( [string[]] (Import-CSV -Path stundent.csv).UserPrincipalName, [System.String...
[ { "answer_id": 74453277, "author": "Santiago Squarzon", "author_id": 15339544, "author_profile": "https://Stackoverflow.com/users/15339544", "pm_score": 2, "selected": false, "text": "Source1.csv $csv1 Source2.csv $csv2 Export2.csv HashSet<T> $set = [System.Collections.Generic.HashSet[st...
2022/11/15
[ "https://Stackoverflow.com/questions/74452725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19848263/" ]
74,452,730
<p>If I have this url address</p> <p><a href="https://googledroids.com/post.html?limit=25&amp;since=1374196005&amp;md5=d8959d12ab687ed5db978cb078f1e&amp;time=0dfdbac117" rel="nofollow noreferrer">https://googledroids.com/post.html?limit=25&amp;since=1374196005&amp;md5=d8959d12ab687ed5db978cb078f1e&amp;time=0dfdbac117</...
[ { "answer_id": 74452731, "author": "Jorgesys", "author_id": 250260, "author_profile": "https://Stackoverflow.com/users/250260", "pm_score": 1, "selected": false, "text": "import android.net.Uri\n uri.getQueryParameter() val url = \"https://googledroids.com/post.html?limit=25&since=13...
2022/11/15
[ "https://Stackoverflow.com/questions/74452730", "https://Stackoverflow.com", "https://Stackoverflow.com/users/250260/" ]
74,452,738
<p>I need some help consolidating columns in R</p> <p>I have ~130 columns, some of which have a similar name. For example, I have ~25 columns called &quot;pathogen&quot;. However, after importing my datasheet into R, these colums are now listed as follows : pathogen..1, pathogen...2, etc. Because of how R renamed these...
[ { "answer_id": 74452731, "author": "Jorgesys", "author_id": 250260, "author_profile": "https://Stackoverflow.com/users/250260", "pm_score": 1, "selected": false, "text": "import android.net.Uri\n uri.getQueryParameter() val url = \"https://googledroids.com/post.html?limit=25&since=13...
2022/11/15
[ "https://Stackoverflow.com/questions/74452738", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17371915/" ]
74,452,744
<p>I am having input data as below, I need to phrase it to be a JSON. Working on a legacy node and don't have <code>jq</code>(mentioning in advance)</p> <pre><code>e1 status: up temp: 140 alarm: none e2 status: down temp: 141 alarm: none e3 status: up temp: 144 alarm: 2 e4 status: up temp: 65 alarm: 2 region: us-east <...
[ { "answer_id": 74453026, "author": "markp-fuso", "author_id": 7366100, "author_profile": "https://Stackoverflow.com/users/7366100", "pm_score": 4, "selected": true, "text": "awk awk/out awk -F':' ' # input field delimiter is \":\"\nNF==1 { if (ou...
2022/11/15
[ "https://Stackoverflow.com/questions/74452744", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5584716/" ]
74,452,784
<p>I wrote an onEdit script that takes values from one spreadsheet and sets them in another. I have used SpreadsheetApp.openById on other onOpen scrips without any issues. But only for this specific new script it tells me I don't have the permissions to use openById. I read other answers that said to change the oauthSc...
[ { "answer_id": 74452920, "author": "pgSystemTester", "author_id": 11732320, "author_profile": "https://Stackoverflow.com/users/11732320", "pm_score": 0, "selected": false, "text": "onEdit() LIMITED /** @OnlyCurrentDoc*/ onEdit SpreadsheetApp.openById(targetID); =IMPORTRANGE(\"14VgIUDG7m0...
2022/11/15
[ "https://Stackoverflow.com/questions/74452784", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13470816/" ]
74,452,794
<p>I am trying to disable button and input-field through angular directive based on the permission. I have tried few ways but it doesn't help</p> <pre><code>if (this.permission==true) { this.viewContainer.createEmbeddedView(this.templateRef); } else { const viewRootElement : HTMLElement = this.v...
[ { "answer_id": 74452920, "author": "pgSystemTester", "author_id": 11732320, "author_profile": "https://Stackoverflow.com/users/11732320", "pm_score": 0, "selected": false, "text": "onEdit() LIMITED /** @OnlyCurrentDoc*/ onEdit SpreadsheetApp.openById(targetID); =IMPORTRANGE(\"14VgIUDG7m0...
2022/11/15
[ "https://Stackoverflow.com/questions/74452794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11104519/" ]
74,452,839
<p>Why can't python seem to find the <code>InterfaceWithNoMenu</code> class</p> <pre><code>class Settings(Screen): class SettingsWithNoMenu(kivy.uix.settings.SettingsWithNoMenu): def __init__(self, *args, **kwargs): self.interface_cls = InterfaceWithNoMenu ...
[ { "answer_id": 74452868, "author": "Noscere", "author_id": 10728583, "author_profile": "https://Stackoverflow.com/users/10728583", "pm_score": 0, "selected": false, "text": "InterfaceWithNoMenu SettingWithNoMenu" }, { "answer_id": 74452898, "author": "Samwise", "author_id...
2022/11/15
[ "https://Stackoverflow.com/questions/74452839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1174102/" ]
74,452,857
<p>I'm struggeling a bit with arrays and user what's inside with loops. I have this question for example (ignore what's inside of the previewOrder method, i was trying stuff out):</p> <pre><code> public class Ex1_19 { final static String NAMES[]= {&quot;Spa reine 25 &quot;,&quot;Bru plate 50&quot;,&quot;Bru pét 50&...
[ { "answer_id": 74452868, "author": "Noscere", "author_id": 10728583, "author_profile": "https://Stackoverflow.com/users/10728583", "pm_score": 0, "selected": false, "text": "InterfaceWithNoMenu SettingWithNoMenu" }, { "answer_id": 74452898, "author": "Samwise", "author_id...
2022/11/15
[ "https://Stackoverflow.com/questions/74452857", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9022721/" ]
74,452,864
<p>How to find all permutations of positive integers for a given <em>sum</em> and given <em>number of elements</em>.</p> <p>For example,</p> <pre><code>Input: sum = 4, number of elements = 2. Output: (1,3), (3,1), (2,2) </code></pre> <p>My thinking is, since I know the number of elements is <code>N</code>, I will cre...
[ { "answer_id": 74452868, "author": "Noscere", "author_id": 10728583, "author_profile": "https://Stackoverflow.com/users/10728583", "pm_score": 0, "selected": false, "text": "InterfaceWithNoMenu SettingWithNoMenu" }, { "answer_id": 74452898, "author": "Samwise", "author_id...
2022/11/15
[ "https://Stackoverflow.com/questions/74452864", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1382745/" ]
74,452,872
<p>When I use my GPS module in u-center, I get latitude of 11.27000000 and longitude of 100.34000000. But when I read and format the nmea messages in a python script I see latitude of 100.00000000 and longitude of 100.00000000. These are for example, but the difference of approximately 1.27... degrees latitude and 0.34...
[ { "answer_id": 74460768, "author": "Sam Mason", "author_id": 1358308, "author_profile": "https://Stackoverflow.com/users/1358308", "pm_score": 0, "selected": false, "text": "data = ['$GNRMC', '...', '...', \"5416.89\", \"S\", \"03630.48\", \"W\", ...]\n -53.7185 -35.4920 S W SIGN_NSEW = ...
2022/11/15
[ "https://Stackoverflow.com/questions/74452872", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20171448/" ]
74,452,882
<p>I am trying to fill my variable 'test' with items from 'mylist'. If the condition <code>totaltime &lt; 6</code> is met, the iteration starts over at mylist[0], so the lists never get beyond '3' (2nd indice in mylist). However, I want that if the condition is met, then the iteration will continue filling the second l...
[ { "answer_id": 74460768, "author": "Sam Mason", "author_id": 1358308, "author_profile": "https://Stackoverflow.com/users/1358308", "pm_score": 0, "selected": false, "text": "data = ['$GNRMC', '...', '...', \"5416.89\", \"S\", \"03630.48\", \"W\", ...]\n -53.7185 -35.4920 S W SIGN_NSEW = ...
2022/11/15
[ "https://Stackoverflow.com/questions/74452882", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20330710/" ]
74,452,891
<p>I'm very new to HTML and have been struggling to get my dropdown to work for a few hours now. I've searched many posts facing similar issues but I still can't find and resolve the issue. I'm unsure if the issue is caused by my scripts as well</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console=...
[ { "answer_id": 74460768, "author": "Sam Mason", "author_id": 1358308, "author_profile": "https://Stackoverflow.com/users/1358308", "pm_score": 0, "selected": false, "text": "data = ['$GNRMC', '...', '...', \"5416.89\", \"S\", \"03630.48\", \"W\", ...]\n -53.7185 -35.4920 S W SIGN_NSEW = ...
2022/11/15
[ "https://Stackoverflow.com/questions/74452891", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20514344/" ]
74,452,909
<p>I am trying to unit test the following function. As you can see the function output is dependent on the value of count. What is the appropriate syntax and functions to be used to test this type of function? I am very new to Jest and javascript.</p> <pre><code>function greetings(){ if(count == 0){ return...
[ { "answer_id": 74460768, "author": "Sam Mason", "author_id": 1358308, "author_profile": "https://Stackoverflow.com/users/1358308", "pm_score": 0, "selected": false, "text": "data = ['$GNRMC', '...', '...', \"5416.89\", \"S\", \"03630.48\", \"W\", ...]\n -53.7185 -35.4920 S W SIGN_NSEW = ...
2022/11/15
[ "https://Stackoverflow.com/questions/74452909", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20370018/" ]
74,452,927
<p>I am trying to use GNU Parallel to run a script that has multiple binary flags. I would like to enable/disable these as follows:</p> <p>Given a script named &quot;<code>sample.py</code>&quot;, with two options, &quot;<code>--seed</code>&quot; which takes an integer and &quot;<code>--something</code>&quot; which is a...
[ { "answer_id": 74456942, "author": "root", "author_id": 10678955, "author_profile": "https://Stackoverflow.com/users/10678955", "pm_score": 0, "selected": false, "text": "> bash$ cat sample.py \n#!/usr/bin/python3\n\nimport sys\nimport time\n\ntime.sleep(0.2)\nprint(sys.argv)\n> bash$ ca...
2022/11/15
[ "https://Stackoverflow.com/questions/74452927", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4364569/" ]
74,452,932
<p>I create a repository in Github and on my local machine I ran the code:</p> <pre><code>git init git branch -m main git remote add origin https://github.com/.../Project.git git push -u origin main </code></pre> <p>Instead of using <code>master</code> branch I want to use <code>main</code> branch.</p> <p>When running ...
[ { "answer_id": 74453011, "author": "Noscere", "author_id": 10728583, "author_profile": "https://Stackoverflow.com/users/10728583", "pm_score": 2, "selected": false, "text": " git pull --rebase origin main\n git push origin main\n git push -u origin main" }, { "answer_id": 7...
2022/11/15
[ "https://Stackoverflow.com/questions/74452932", "https://Stackoverflow.com", "https://Stackoverflow.com/users/577805/" ]
74,452,950
<p>I have this query in my rails application where I get the <code>name</code> of the <code>Books</code>.</p> <pre><code>Book.where(:name =&gt; @name_list).pluck(:name) </code></pre> <p>Basically it find the <code>Book</code> whose name is present in the <code>@name_list</code> and then return an array of their <code>n...
[ { "answer_id": 74455276, "author": "spickermann", "author_id": 2483313, "author_profile": "https://Stackoverflow.com/users/2483313", "pm_score": 1, "selected": false, "text": "books.name add_index :books, :name\n" } ]
2022/11/15
[ "https://Stackoverflow.com/questions/74452950", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19574843/" ]
74,452,974
<p>I created a custom PropertyDrawer that for a certain field decorated with my attribute, shows the parameters from the animator object referenced in the same script.</p> <p>That way, I can make sure the field's value is a valid parameter in the referenced animator.</p> <p>This is my code:</p> <pre><code> public class...
[ { "answer_id": 74454127, "author": "Milan Egon Votrubec", "author_id": 8051819, "author_profile": "https://Stackoverflow.com/users/8051819", "pm_score": 1, "selected": false, "text": "AnimationPropertyDrawer Animator animator = field?.GetValue(targetObject) as Animator;\nif ( animator ==...
2022/11/15
[ "https://Stackoverflow.com/questions/74452974", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9977758/" ]
74,452,982
<pre><code>import random def foo(): list_of_odd_num = [] for i in range (1, 10000, 2): list_of_odd_num.append(i) return list_of_odd_num def bar(): list_of_uppercase_letters = [] for k in range(1, 100): rand_num = random.randint(65, 90) letter = chr(rand_num) k = ...
[ { "answer_id": 74454127, "author": "Milan Egon Votrubec", "author_id": 8051819, "author_profile": "https://Stackoverflow.com/users/8051819", "pm_score": 1, "selected": false, "text": "AnimationPropertyDrawer Animator animator = field?.GetValue(targetObject) as Animator;\nif ( animator ==...
2022/11/15
[ "https://Stackoverflow.com/questions/74452982", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20513406/" ]
74,452,987
<p>I want to know that when we open localhost:4200/signin?url=login at that time I want to open login component and when we open localhost:4200/signin?url=register at that time I have to load register component. So what is the best way to achieve this functionality.</p>
[ { "answer_id": 74454127, "author": "Milan Egon Votrubec", "author_id": 8051819, "author_profile": "https://Stackoverflow.com/users/8051819", "pm_score": 1, "selected": false, "text": "AnimationPropertyDrawer Animator animator = field?.GetValue(targetObject) as Animator;\nif ( animator ==...
2022/11/15
[ "https://Stackoverflow.com/questions/74452987", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3978465/" ]
74,453,047
<p>I am creating a menu for a billing program with tuples inside lists, how would you do to delete a data requested by the user deleting all its values?</p> <pre><code>menu = &quot;&quot;&quot; (1) Añadir Cliente (2) Eliminar Cliente (3) Añadir Factura (4) Procesar facturacion del mes (5) Listar todos los clientes (6) ...
[ { "answer_id": 74453169, "author": "wallbloggerbeing", "author_id": 16581025, "author_profile": "https://Stackoverflow.com/users/16581025", "pm_score": 1, "selected": false, "text": "nom_remove = lista_nom[:nom] + lista_nom[(nom+1):]\n" }, { "answer_id": 74453474, "author": "...
2022/11/15
[ "https://Stackoverflow.com/questions/74453047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13926648/" ]
74,453,055
<p>Can someone explain the following, please?</p> <ol> <li>this compiles (explanation: NLL <code>y</code> not referenced after initial definition?)</li> </ol> <pre><code>fn main() { let mut x = 5; let y = &amp;x; let z = &amp;mut x; println!(&quot;z: {}&quot;, z); } </code></pre> <ol start="2"> <li>this...
[ { "answer_id": 74453176, "author": "Adam Smith", "author_id": 3058609, "author_profile": "https://Stackoverflow.com/users/3058609", "pm_score": 2, "selected": true, "text": "// example one\nfn main() {\n let mut x = 5;\n let y = &x; // y is declared here, but never used\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74453055", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2333690/" ]
74,453,141
<p>I am having problems implementing the <a href="https://laravel-vue-pagination.org/guide/quick-start.html" rel="nofollow noreferrer">gilbertron laravel vue pagination package</a></p> <p>I followed the instructions as far as I can tell to implement it, however I am re-learning javascript after 20 years hiatus from dev...
[ { "answer_id": 74453176, "author": "Adam Smith", "author_id": 3058609, "author_profile": "https://Stackoverflow.com/users/3058609", "pm_score": 2, "selected": true, "text": "// example one\nfn main() {\n let mut x = 5;\n let y = &x; // y is declared here, but never used\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74453141", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20413406/" ]
74,453,149
<p>The route should be resolved only for the given params list (Validate params)</p> <p>e.g. valid names [&quot;Sam&quot;, &quot;Alice&quot;]</p> <pre><code>//route { path: &quot;/customers/:names&quot; } // expectation path = /customers/Sam =&gt; matched path = /customers/Alice =&gt; matched path = /custom...
[ { "answer_id": 74453176, "author": "Adam Smith", "author_id": 3058609, "author_profile": "https://Stackoverflow.com/users/3058609", "pm_score": 2, "selected": true, "text": "// example one\nfn main() {\n let mut x = 5;\n let y = &x; // y is declared here, but never used\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74453149", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2247677/" ]
74,453,157
<p>This works to select top 100 columns, but it gives me all of the columns</p> <p><code>select top 100 * from dw.test</code></p> <p>This works, but it gives me endless rows,</p> <p><code>select Slot, ID from dw.test</code></p> <p>I need to select top 100 rows that only show these two columns <code>Slot, ID</code></p> ...
[ { "answer_id": 74453291, "author": "Brandt", "author_id": 687896, "author_profile": "https://Stackoverflow.com/users/687896", "pm_score": 0, "selected": false, "text": "SELECT TOP(100) Slot, ID FROM dw.test;\n Limit SELECT Slot, ID FROM dw.test LIMIT 100;\n" }, { "answer_id": 744...
2022/11/15
[ "https://Stackoverflow.com/questions/74453157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2056201/" ]
74,453,170
<p>When i scroll on the website the image and nav bar mix together. The image goes through the navigation bar and it looks like the background of the navigation bar is the image.</p> <p>i put the position of the nav bar fixed and the z-index 1 and the div of the image position relative and z-index 0</p> <pre><code> ...
[ { "answer_id": 74453291, "author": "Brandt", "author_id": 687896, "author_profile": "https://Stackoverflow.com/users/687896", "pm_score": 0, "selected": false, "text": "SELECT TOP(100) Slot, ID FROM dw.test;\n Limit SELECT Slot, ID FROM dw.test LIMIT 100;\n" }, { "answer_id": 744...
2022/11/15
[ "https://Stackoverflow.com/questions/74453170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20136506/" ]
74,453,212
<p>Is there any way to execute the set method when an instance is created?. I have this piece of code:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>class CoffeeMachine { ...
[ { "answer_id": 74453372, "author": "epascarello", "author_id": 14104, "author_profile": "https://Stackoverflow.com/users/14104", "pm_score": 2, "selected": false, "text": "power class CoffeeMachine {\n #power;\n \n constructor(power) {\n console.log(`contructor called with value ${...
2022/11/15
[ "https://Stackoverflow.com/questions/74453212", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18111526/" ]
74,453,226
<p>Various R functions make it easy to use group_by and summarize to pull a value from a grouped variable. So in the resulting dataframe, I can use group_by and summarise to create, for example, a new column that contains the maximum or minimum value of a variable within each group. Meaning, with this data:</p> <pre><c...
[ { "answer_id": 74453372, "author": "epascarello", "author_id": 14104, "author_profile": "https://Stackoverflow.com/users/14104", "pm_score": 2, "selected": false, "text": "power class CoffeeMachine {\n #power;\n \n constructor(power) {\n console.log(`contructor called with value ${...
2022/11/15
[ "https://Stackoverflow.com/questions/74453226", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5176356/" ]
74,453,286
<p>I have a series of functions that I need to call, and all the calls are of the form:</p> <pre><code>StartingFunctionName[Thing]Callback(&amp;[Thing]); </code></pre> <p>Where <code>[Thing]</code> is the same thing each time for example, I have to call</p> <pre><code>StartingFunctionNameMyFunctionCallback(&amp;MyFunct...
[ { "answer_id": 74453365, "author": "Erdal Küçük", "author_id": 11867590, "author_profile": "https://Stackoverflow.com/users/11867590", "pm_score": 2, "selected": false, "text": "StartingFunctionName[Thing]Callback(&[Thing]);\n #define foo(Thing) \\\n StartingFunctionName##Thing##Callb...
2022/11/15
[ "https://Stackoverflow.com/questions/74453286", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12705701/" ]
74,453,306
<p>I have a matrix (two-dimensional list) filled with dictionary-type variable in the entire scope containing <code>&quot;val&quot;: False</code></p> <p>The problem is when I want to change only one item in the matrix and chanhge the value to True for this one paticular item.</p> <p>Somehow this part of code: <code>mat...
[ { "answer_id": 74453386, "author": "Lorenz Hetterich", "author_id": 20473701, "author_profile": "https://Stackoverflow.com/users/20473701", "pm_score": 1, "selected": false, "text": "row.append(defval) defval blah = [1]\nsome_list = [blah, blah]\nsome_list[0][0] = 2\nprint(some_list)\n# ...
2022/11/15
[ "https://Stackoverflow.com/questions/74453306", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1850012/" ]
74,453,346
<p>I'm trying to display an image I have saved as a resource under the properties category. This property however returns a <code>byte[]</code> which can't be displayed by <code>&lt;Image&gt;</code> since it can't convert it to <code>ImageSource</code>. The code looks like this:</p> <pre class="lang-cs prettyprint-over...
[ { "answer_id": 74453386, "author": "Lorenz Hetterich", "author_id": 20473701, "author_profile": "https://Stackoverflow.com/users/20473701", "pm_score": 1, "selected": false, "text": "row.append(defval) defval blah = [1]\nsome_list = [blah, blah]\nsome_list[0][0] = 2\nprint(some_list)\n# ...
2022/11/15
[ "https://Stackoverflow.com/questions/74453346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20453719/" ]
74,453,395
<p>In a .NET 7 project, I use Serilog (the latest <a href="https://www.nuget.org/packages/Serilog.Extensions.Logging.File/3.0.0" rel="nofollow noreferrer"><code>Serilog.Extensions.Logging.File v3.0.0</code></a>) and get a bunch of errors <code>NU1605</code> when trying to compile the project with <code>dotnet publish</...
[ { "answer_id": 74453386, "author": "Lorenz Hetterich", "author_id": 20473701, "author_profile": "https://Stackoverflow.com/users/20473701", "pm_score": 1, "selected": false, "text": "row.append(defval) defval blah = [1]\nsome_list = [blah, blah]\nsome_list[0][0] = 2\nprint(some_list)\n# ...
2022/11/15
[ "https://Stackoverflow.com/questions/74453395", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1768303/" ]
74,453,409
<p>this is part of the database. The extention is .sql</p> <pre><code>-- phpMyAdmin SQL Dump -- version 3.2.0.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 20, 2011 at 05:08 PM -- Server version: 5.1.36 -- PHP Version: 5.2.9-2 SET SQL_MODE=&quot;NO_AUTO_VALUE_ON_ZERO&quot;; /*!40101 SE...
[ { "answer_id": 74454039, "author": "user11717481", "author_id": 11717481, "author_profile": "https://Stackoverflow.com/users/11717481", "pm_score": 0, "selected": false, "text": "name_id firstname lastname # settings.py \nDATABASES = {\n 'default': {\n 'ENGINE': 'django.db.back...
2022/11/15
[ "https://Stackoverflow.com/questions/74453409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20514833/" ]
74,453,422
<p>I am having trouble adding hulls to my plot. I have added a photo for reference + my existing script below.</p> <p><a href="https://i.stack.imgur.com/33s3u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/33s3u.png" alt="enter image description here" /></a></p> <p>The X and Y axes represent the PC1...
[ { "answer_id": 74454361, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 0, "selected": false, "text": "chull() geom_polygon() library(ggplot2)\n\nggplot(mpg, aes(cty, hwy)) +\n geom_point() +\n geom_polygon(data = m...
2022/11/15
[ "https://Stackoverflow.com/questions/74453422", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20514821/" ]