qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,392,997
<p>this is my first question on Stackoverflow after one year of Front-end development self-learning. I've already serached foe an answer to my doubts, but since these questions are returning for the third time, I think it's the moment to ask the Web.</p> <h1><strong>What I'm trying to build</strong></h1> <h1></h1> <p>I...
[ { "answer_id": 74394478, "author": "enxaneta", "author_id": 7897395, "author_profile": "https://Stackoverflow.com/users/7897395", "pm_score": 3, "selected": true, "text": "d fill-rule=\"evenodd\" body{background:silver} <svg width=\"200\" height=\"200\" viewBox=\"0 0 20 20\" fill=\"none\...
2022/11/10
[ "https://Stackoverflow.com/questions/74392997", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18038472/" ]
74,393,009
<p>Hi i doing a mini project of my class. I make the website book ticket for movies. I want to change color of the seat after click. But it just work for first seat. I want it work for other seat. Thank you.</p> <pre><code>const img=document.getElementById('seat') let toggle = true; img.addEventListener('click',functio...
[ { "answer_id": 74393146, "author": "Luke McCrea", "author_id": 20463789, "author_profile": "https://Stackoverflow.com/users/20463789", "pm_score": 2, "selected": false, "text": "function selectSeat(element) {\n element.classList.toggle('active');\n if (!element.classList.contains('ac...
2022/11/10
[ "https://Stackoverflow.com/questions/74393009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19636464/" ]
74,393,012
<p>I want to convert this piece of code in JUNIT 5 without using @Rule. I tried JUINT 5 TestWatcher but it doens't have starting method. tried with <a href="https://stackoverflow.com/questions/51012335/how-to-replace-wiremock-rule-annotation-in-junit-5">this </a> but not able to understand how to implement ExtendWith o...
[ { "answer_id": 74393216, "author": "Klitos Kyriacou", "author_id": 638028, "author_profile": "https://Stackoverflow.com/users/638028", "pm_score": 1, "selected": false, "text": "TestWatcher starting starting @BeforeEach testSuccessful testFailed @ExtendWith(MyTestWatcher.class)\nclass My...
2022/11/10
[ "https://Stackoverflow.com/questions/74393012", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14237523/" ]
74,393,041
<p>I have a txt file where from I can extract two strings (type and value). But, I need to cast it to the correct type. See the code bellow.</p> <pre><code>string type; string value; //example 1 //from the txt file type = &quot;int&quot;; value = &quot;25&quot;; //example 2 type = &quot;double&quot;; value = &quot;1....
[ { "answer_id": 74393268, "author": "big boy", "author_id": 17944979, "author_profile": "https://Stackoverflow.com/users/17944979", "pm_score": 2, "selected": false, "text": "object result;\nstring value = \"some value\";\nstring type = \"some type\";\nswitch(type)\n{\n case \"int\":\n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74393041", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19139784/" ]
74,393,069
<p>I have a function, that returns <code>Option&lt;Result&lt;X, String&gt;&gt;</code> and it calls some functions that return <code>Result&lt;Y, String&gt;</code>. How is it possible to use the <code>?</code> operator in a way, that it wraps the error in a <code>Some</code>?</p> <pre class="lang-rust prettyprint-overri...
[ { "answer_id": 74393601, "author": "Tyler Aldrich", "author_id": 1580425, "author_profile": "https://Stackoverflow.com/users/1580425", "pm_score": 2, "selected": false, "text": "? ? match <expr> {\n Ok(val) => val,\n Err(err) => {\n return Err(From::from(err))\n }\n}\n Err Some(err...
2022/11/10
[ "https://Stackoverflow.com/questions/74393069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3042117/" ]
74,393,089
<p>I need to join all the three tables as mentioned below</p> <pre><code>datatype id code 1 Q_1 2 Q_2 3 Q_3 4 Q_4 5 Q_5 6 Q_6 7 Q_7 8 Q_8 9 Q_9 10 Q_10 </code></pre> <pre><code>model id datatype_id values model_ex_id 1 10 0.001 ...
[ { "answer_id": 74393124, "author": "n3ko", "author_id": 6493356, "author_profile": "https://Stackoverflow.com/users/6493356", "pm_score": 0, "selected": false, "text": "CREATE TABLE datatype(id serial , code text);\nINSERT INTO datatype\nSELECT r,format('Q_%s' ,r)\nFROM generate_series(...
2022/11/10
[ "https://Stackoverflow.com/questions/74393089", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16966927/" ]
74,393,100
<p>How can I replace all '<code>NA</code>' with '<code>NULL</code>' in an <code>R</code> dataframe without specifying column names? I found <code>replace_na</code> function from <code>tidyr</code> which has an example as:</p> <pre><code># Replace NAs in a data frame df &lt;- tibble(x = c(1, 2, NA), y = c(&quot;a&quot;,...
[ { "answer_id": 74393165, "author": "br00t", "author_id": 4028717, "author_profile": "https://Stackoverflow.com/users/4028717", "pm_score": 2, "selected": true, "text": "apply(df, 2, function(x) { x[ is.na(x) ] <- 'NULL'; x}) NULL '' NA" }, { "answer_id": 74393822, "author": "...
2022/11/10
[ "https://Stackoverflow.com/questions/74393100", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11397513/" ]
74,393,116
<p>How can I extract the T3 Period, Year and maximum value?</p> <p><em>file.json</em></p> <pre><code>[ {&quot;Fecha&quot;:&quot;2022-08-01T00:00:00.000+02:00&quot;, &quot;T3_TipoDato&quot;:&quot;Avance&quot;, &quot;T3_Periodo&quot;:&quot;M08&quot;, &quot;Anyo&quot;:2022, &quot;value&quot;:10.4}, {&quot;Fecha&quot;:&quo...
[ { "answer_id": 74393165, "author": "br00t", "author_id": 4028717, "author_profile": "https://Stackoverflow.com/users/4028717", "pm_score": 2, "selected": true, "text": "apply(df, 2, function(x) { x[ is.na(x) ] <- 'NULL'; x}) NULL '' NA" }, { "answer_id": 74393822, "author": "...
2022/11/10
[ "https://Stackoverflow.com/questions/74393116", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4032510/" ]
74,393,148
<p>I have a simple table as below.</p> <pre><code>tibble( &quot;KPI&quot; =c(&quot;1 KPI&quot;,&quot;2 KPI&quot;,&quot;3 KPI&quot;,&quot;4 KPI&quot;,&quot;5 KPI&quot;), &quot;VALUE&quot; = c(1,500,1,0.20,7.88), &quot;BENCHMARK&quot; = c(0,473,0,0.39,6.8), &quot;CRITERIA&quot;= c(&quot;&gt;=90%&quot;, &quot;Lower than B...
[ { "answer_id": 74393422, "author": "pRo", "author_id": 15230150, "author_profile": "https://Stackoverflow.com/users/15230150", "pm_score": 0, "selected": false, "text": "case_when case_when(VALUE[1] >=0.9)~1,T ~ 0),\ncase_when(VALUE[2] <BENCHMARK[2])~1,T ~ 0) ...so on...\n" }, { ...
2022/11/10
[ "https://Stackoverflow.com/questions/74393148", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15230150/" ]
74,393,159
<p>I'm Trying to get only IP address from below command using Azure cli. But it always coming with extra &quot;&quot;.</p> <pre><code>az network nic ip-config list --resource-group &quot;RG_TEST&quot; --nic-name &quot;TEST_NIC6768&quot; --query &quot;[0].privateIpAddress&quot; </code></pre> <p>Output: &quot;10.244.4.4&...
[ { "answer_id": 74393177, "author": "Mathias R. Jessen", "author_id": 712649, "author_profile": "https://Stackoverflow.com/users/712649", "pm_score": 1, "selected": false, "text": "|ForEach-Object Trim '\"' \" az network nic ip-config list --resource-group \"RG_TEST\" --nic-name \"TEST_NI...
2022/11/10
[ "https://Stackoverflow.com/questions/74393159", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3757924/" ]
74,393,201
<p>I am trying to write a function to utilize memoization in a recursive fibonacci function and have the output returned as a string.</p> <p>My current code is as follows:</p> <pre><code>let cache = Hashtbl.create 100;; Hashtbl.add cache 0 0;; Hashtbl.add cache 1 1;; let rec f(n:int): string = match Hashtbl.mem cac...
[ { "answer_id": 74393177, "author": "Mathias R. Jessen", "author_id": 712649, "author_profile": "https://Stackoverflow.com/users/712649", "pm_score": 1, "selected": false, "text": "|ForEach-Object Trim '\"' \" az network nic ip-config list --resource-group \"RG_TEST\" --nic-name \"TEST_NI...
2022/11/10
[ "https://Stackoverflow.com/questions/74393201", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18075378/" ]
74,393,213
<p>I have a list and I want to find the starting and ending index of value 1. Here is the list</p> <pre><code>labels=[0,0,0,1,1,1,0,0,1,1] </code></pre> <p>The 1s index are <code>[3,5]</code> and <code>[8,9]</code></p> <p>Is there any efficient way to do this. I have tried numpy index(), but it did not work for me. Usi...
[ { "answer_id": 74393338, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 2, "selected": false, "text": "diff labels = [0,0,0,1,1,1,0,0,1,1]\n\nout = np.where(np.diff(np.pad(labels, 1))!=0)[0].reshape(-1,2)-[0,1]\n array...
2022/11/10
[ "https://Stackoverflow.com/questions/74393213", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11170350/" ]
74,393,232
<p>I have a list <code>x = [[2873, 5321, 5421], [2788, 5171, 5271], [2788, 5171, 5271]]</code>. I want to add <code>y = 400</code>, to each of the elements in the list. The output should be <code>z = [3273, 5721, 5821], 3188, 5571, 5671], [3188, 5571, 5671]]</code></p> <p>I tried by using</p> <pre><code>def add(x,y): ...
[ { "answer_id": 74393321, "author": "Vin", "author_id": 7955271, "author_profile": "https://Stackoverflow.com/users/7955271", "pm_score": 0, "selected": false, "text": "x = [[2873, 5321, 5421], [2788, 5171, 5271], [2788, 5171, 5271]]\n\ny = 400\n\nz = [[y + each for each in eachlist] for ...
2022/11/10
[ "https://Stackoverflow.com/questions/74393232", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20471057/" ]
74,393,250
<p>I am trying to run migrations in my go-fiber rest API using golang-migrate.</p> <p>I added the commands for running the migrations in a makefile. However, when I run <code>make migrateup</code>, I get the following error:</p> <pre><code>migrate -path database/postgres/migrations -database &quot;postgresql://postgres...
[ { "answer_id": 74393321, "author": "Vin", "author_id": 7955271, "author_profile": "https://Stackoverflow.com/users/7955271", "pm_score": 0, "selected": false, "text": "x = [[2873, 5321, 5421], [2788, 5171, 5271], [2788, 5171, 5271]]\n\ny = 400\n\nz = [[y + each for each in eachlist] for ...
2022/11/10
[ "https://Stackoverflow.com/questions/74393250", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8189936/" ]
74,393,286
<p>Have a problem with total count of ajax searche's results. There is a mistake &quot;Method Illuminate\Database\Eloquent\Collection::total does not exist.&quot; if I use directive for example</p> <pre><code>&lt;div class=&quot;searched-item&quot;&gt; &lt;a href=&quot;#&quot; class=&quot;searched-item-res1...
[ { "answer_id": 74393321, "author": "Vin", "author_id": 7955271, "author_profile": "https://Stackoverflow.com/users/7955271", "pm_score": 0, "selected": false, "text": "x = [[2873, 5321, 5421], [2788, 5171, 5271], [2788, 5171, 5271]]\n\ny = 400\n\nz = [[y + each for each in eachlist] for ...
2022/11/10
[ "https://Stackoverflow.com/questions/74393286", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19708349/" ]
74,393,311
<p>This is my code:</p> <pre><code>data ='{&quot;name&quot;: &quot; sani&quot;, &quot;address&quot;: &quot; Czech&quot;, &quot;Age&quot;: &quot;10&quot;, &quot;Gender&quot;: &quot;Female&quot;}' pd.read_json(data) ( I cannot execute this line, it shows that error) </code></pre> <p>i tried adding Index= 0 and it didn't ...
[ { "answer_id": 74393321, "author": "Vin", "author_id": 7955271, "author_profile": "https://Stackoverflow.com/users/7955271", "pm_score": 0, "selected": false, "text": "x = [[2873, 5321, 5421], [2788, 5171, 5271], [2788, 5171, 5271]]\n\ny = 400\n\nz = [[y + each for each in eachlist] for ...
2022/11/10
[ "https://Stackoverflow.com/questions/74393311", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20197921/" ]
74,393,350
<p>I have a Google Sheet with named ranges that extend beyond columns A-Z. The name ranges have header rows. I would like to use the <code>QUERY</code> function to select columns by their header labels.</p> <p>My formula is like this:</p> <pre><code>=QUERY(NamedRange,&quot;SELECT AZ, AX, BM where BB='student' ORDER B...
[ { "answer_id": 74393500, "author": "player0", "author_id": 5632629, "author_profile": "https://Stackoverflow.com/users/5632629", "pm_score": 3, "selected": true, "text": "=TRANSPOSE(QUERY(TRANSPOSE(A1:C), \"where Col1 matches 'bb header|student'\", ))\n =QUERY({AI1:AK6}, \"select Col2,Co...
2022/11/10
[ "https://Stackoverflow.com/questions/74393350", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3035713/" ]
74,393,390
<p>I see a two ways to setup client in Ignite:</p> <ol> <li>then Ignition.start(IgniteConfiguration.clientMode = true)</li> <li>Ignition.startClient</li> </ol> <p>but can't find any details about the first mode in docs.</p> <p>What's the difference between two ways?</p>
[ { "answer_id": 74639965, "author": "LostShepherd", "author_id": 6361239, "author_profile": "https://Stackoverflow.com/users/6361239", "pm_score": 0, "selected": false, "text": "Ignition.setClientMode(true);\nIgniteConfiguration igniteConfiguration = new IgniteConfiguration();\nIgnite ign...
2022/11/10
[ "https://Stackoverflow.com/questions/74393390", "https://Stackoverflow.com", "https://Stackoverflow.com/users/597376/" ]
74,393,391
<p>I'm using a macro that is running into an error (Invalid qualifier) pointing that there is something wrong with the i variable. Hope someone could help me improve this code.</p> <pre><code>Sub Macro6() Dim last As Long Dim i As Long With ActiveSheet last = .Cells(.Rows.Count, 1).End(xlDown).Row For ...
[ { "answer_id": 74393895, "author": "BigBen", "author_id": 9245853, "author_profile": "https://Stackoverflow.com/users/9245853", "pm_score": 2, "selected": true, "text": "Range.Find Sub DeleteAllAfterX()\n With ActiveSheet\n Dim rng As Range\n Set rng = .Range(\"A:A\").Find(...
2022/11/10
[ "https://Stackoverflow.com/questions/74393391", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12886320/" ]
74,393,426
<p>In Python, if you want to create a NaN, it must be a float, created as <code>float(&quot;nan&quot;)</code> (for ex). NaNs having to be floats is also the case in other programming languages (such as C++ or Java).</p> <p>However, it sometimes would makes sense to have NaNs in &quot;integer typed arrays&quot;.</p> <p>...
[ { "answer_id": 74393590, "author": "chrslg", "author_id": 20037042, "author_profile": "https://Stackoverflow.com/users/20037042", "pm_score": 3, "selected": true, "text": "00000000 11111111 11111111 11111111 -1" } ]
2022/11/10
[ "https://Stackoverflow.com/questions/74393426", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7094593/" ]
74,393,470
<p>I am trying to align two plots, a line plot and bar plot, but the axis is slightly shifted. Can you recommend ways in ggplot2 or patchwork or other faceted plot package. Thanks</p> <p>reproducible code</p> <pre><code>data&lt;-data.frame( Gains=c(NA,18.26,27.7,13.09,-8.36,1.73,5.57,17.1,-31.31,5.43,38.97,18.81,6.12...
[ { "answer_id": 74393590, "author": "chrslg", "author_id": 20037042, "author_profile": "https://Stackoverflow.com/users/20037042", "pm_score": 3, "selected": true, "text": "00000000 11111111 11111111 11111111 -1" } ]
2022/11/10
[ "https://Stackoverflow.com/questions/74393470", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11069510/" ]
74,393,486
<p>So let's say I have this code:</p> <pre><code>const [test, setTest] = useState(); const [test2, setTest2] = useState(); useEffect(() =&gt; { setTest2(undefined); }, [test]); const calledFunction =&gt; () { setTest(whatever); setTest2(thisIsWhatIwant); } return ( &lt;&gt; {test2} &lt;button onC...
[ { "answer_id": 74393587, "author": "Tushar Shahi", "author_id": 10140124, "author_profile": "https://Stackoverflow.com/users/10140124", "pm_score": 0, "selected": false, "text": "ref const [test, setTest] = useState();\nconst [test2, setTest2] = useState();\nconst skipSetter = useRef(fal...
2022/11/10
[ "https://Stackoverflow.com/questions/74393486", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17274803/" ]
74,393,568
<p>I want to limit value/numbers inside a text input to match the HH:MM format, possibly also limit max hrs input (i.e. max 8) while also preventing any other input format in that field. Ideally would be if a number is entered to high, instead of resetting the field/number set it back to the previous number that was al...
[ { "answer_id": 74393587, "author": "Tushar Shahi", "author_id": 10140124, "author_profile": "https://Stackoverflow.com/users/10140124", "pm_score": 0, "selected": false, "text": "ref const [test, setTest] = useState();\nconst [test2, setTest2] = useState();\nconst skipSetter = useRef(fal...
2022/11/10
[ "https://Stackoverflow.com/questions/74393568", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8719001/" ]
74,393,574
<p>Is there a way to use <strong>TOP</strong> and <strong>WHERE</strong> multiple times? similar as a for loop to create a table?</p> <p>I am using the following query to create a table that contains the top 26 records where the value of the column [code] is 11:</p> <pre><code>SELECT TOP 26 [date] ,[group] ,[code] ...
[ { "answer_id": 74393714, "author": "GRIV", "author_id": 3092847, "author_profile": "https://Stackoverflow.com/users/3092847", "pm_score": 3, "selected": true, "text": "CTE ROW_NUMBER() WHERE ROW_NUMBER() = 1 PARTITION/ORDER BY ;WITH cte AS\n(\n SELECT *,\n ROW_NUMBER() OVER (PA...
2022/11/10
[ "https://Stackoverflow.com/questions/74393574", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10624056/" ]
74,393,610
<p>i wanted to ask why my picture is not getting inside the first container when i set it as background image.</p> <p>did i made the path wrong? <a href="https://i.stack.imgur.com/lGrRW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lGrRW.png" alt="enter image description here" /></a></p> <p>this is...
[ { "answer_id": 74393632, "author": "orghu", "author_id": 2817442, "author_profile": "https://Stackoverflow.com/users/2817442", "pm_score": 1, "selected": false, "text": ".first-image {\n background-image: url(images/pattern.jpeg);\n border: 2px solid red;\n}\n" }, { "answer_id"...
2022/11/10
[ "https://Stackoverflow.com/questions/74393610", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16850827/" ]
74,393,652
<p>Hi I'm designing a grid system in NextJS using Tailwind. I'm having trouble auto sizing the grids to fit the size of the parent element.</p> <p>Below are two images to help convey my meaning.</p> <ol> <li>Mockup wireframe of the container and grids. (Red = Wrapper, Pink = Layout, Purple = Grids)</li> </ol> <p><a hre...
[ { "answer_id": 74393632, "author": "orghu", "author_id": 2817442, "author_profile": "https://Stackoverflow.com/users/2817442", "pm_score": 1, "selected": false, "text": ".first-image {\n background-image: url(images/pattern.jpeg);\n border: 2px solid red;\n}\n" }, { "answer_id"...
2022/11/10
[ "https://Stackoverflow.com/questions/74393652", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13315865/" ]
74,393,656
<p>This question is a bit tricky to explain. Say i have an variable whose length is dynamic meaning it is random,i want to change its length to the first 5 or a certain amount of characters regardless of the length of the characters existing in the variable. I hope i could explain what i am trying to do</p> <p>.______...
[ { "answer_id": 74393632, "author": "orghu", "author_id": 2817442, "author_profile": "https://Stackoverflow.com/users/2817442", "pm_score": 1, "selected": false, "text": ".first-image {\n background-image: url(images/pattern.jpeg);\n border: 2px solid red;\n}\n" }, { "answer_id"...
2022/11/10
[ "https://Stackoverflow.com/questions/74393656", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17181236/" ]
74,393,670
<p>Not quite sure what I'm doing wrong. I have</p> <pre><code>$description = addslashes($description); echo &quot;&lt;option onclick='updateTotals(`$urlOptions`,`$option_title`,`$description`)' value='&quot;.$description.&quot;' selected&gt; &quot;.$description.&quot;&lt;/option&gt;&quot;; </code></pre> <p>An example o...
[ { "answer_id": 74393632, "author": "orghu", "author_id": 2817442, "author_profile": "https://Stackoverflow.com/users/2817442", "pm_score": 1, "selected": false, "text": ".first-image {\n background-image: url(images/pattern.jpeg);\n border: 2px solid red;\n}\n" }, { "answer_id"...
2022/11/10
[ "https://Stackoverflow.com/questions/74393670", "https://Stackoverflow.com", "https://Stackoverflow.com/users/945671/" ]
74,393,671
<p>I'm pretty new to Ruby and have this scenario of writing multiple if statements. I want to optimize it and trying to find out if there are any other alternatives or better ways of writing the following conditions -</p> <pre><code> if region == &quot;uk&quot; value = 1 end ...
[ { "answer_id": 74393835, "author": "ScottM", "author_id": 1326518, "author_profile": "https://Stackoverflow.com/users/1326518", "pm_score": 2, "selected": false, "text": "case value = case region\n when 'uk'\n 1\n when 'us'\n 2\n # etc.\n end...
2022/11/10
[ "https://Stackoverflow.com/questions/74393671", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20400359/" ]
74,393,689
<p>I would like to make a custom tooltip for the element, but I have it contained in the box, which doesn't have enough space for the tooltip, so it just crops (well, technically I can scroll to reveal it because <code>overflow</code> is set to <code>auto</code>, but I would like it to be visible without doing that). I...
[ { "answer_id": 74394023, "author": "Jimmy", "author_id": 8940884, "author_profile": "https://Stackoverflow.com/users/8940884", "pm_score": 1, "selected": false, "text": ".box {\n overflow: visible;\n }\n" }, { "answer_id": 74394259, "author": "John Li", "author_id": 2043...
2022/11/10
[ "https://Stackoverflow.com/questions/74393689", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9102437/" ]
74,393,699
<p>I need a little bit of help to move my command in the same section of copy/paste (context menu).</p> <p><a href="https://i.stack.imgur.com/nAM2M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nAM2M.png" alt="enter image description here" /></a></p> <p>I tried to copy the parenting of Copy command...
[ { "answer_id": 74394023, "author": "Jimmy", "author_id": 8940884, "author_profile": "https://Stackoverflow.com/users/8940884", "pm_score": 1, "selected": false, "text": ".box {\n overflow: visible;\n }\n" }, { "answer_id": 74394259, "author": "John Li", "author_id": 2043...
2022/11/10
[ "https://Stackoverflow.com/questions/74393699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11644133/" ]
74,393,708
<p>I am able to move the directory in azure using ShareDirectoryClient successfully.</p> <pre><code>using System; using System.Threading.Tasks; using Azure.Storage.Files.Shares; namespace SO69798149 { class Program { const string MyconnectionString = &quot;DefaultEndpointsProtocol=https;AccountName=acc...
[ { "answer_id": 74420404, "author": "piotr.gradzinski", "author_id": 779084, "author_profile": "https://Stackoverflow.com/users/779084", "pm_score": 2, "selected": false, "text": "ZipFile.CreateFromDirectory ZipFile.CreateFromDirectory(\"/app/NewFolder\", \"/app/NewFolder.zip\");\n C:\\My...
2022/11/10
[ "https://Stackoverflow.com/questions/74393708", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2746601/" ]
74,393,722
<p>When you make your window smaller the the left sidebar gets in the way and the whole page just becomes a big mess. I am aiming for the left sidebar to scroll when overflown but I dont want it to stick when you scroll on the regular page.</p> <p>I have tried everything I can think of to fix this problem but I cant se...
[ { "answer_id": 74393880, "author": "Jimmy", "author_id": 8940884, "author_profile": "https://Stackoverflow.com/users/8940884", "pm_score": 1, "selected": false, "text": ".leftmain 325px .leftmain {\n width: 325px;\n}\n .leftmain {\n width: 25%;\n}\n" }, { "answer_id": 7448163...
2022/11/10
[ "https://Stackoverflow.com/questions/74393722", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20471402/" ]
74,393,725
<p>I am trying to use Realm as a database with a parent/children relationship and show the data in a hierarchical <a href="https://developer.apple.com/documentation/swiftui/list" rel="nofollow noreferrer">SwiftUI List</a> using the <code>children:</code> initializer. I oriented myself at the <a href="https://www.mongod...
[ { "answer_id": 74393880, "author": "Jimmy", "author_id": 8940884, "author_profile": "https://Stackoverflow.com/users/8940884", "pm_score": 1, "selected": false, "text": ".leftmain 325px .leftmain {\n width: 325px;\n}\n .leftmain {\n width: 25%;\n}\n" }, { "answer_id": 7448163...
2022/11/10
[ "https://Stackoverflow.com/questions/74393725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/988975/" ]
74,393,731
<p>I'm new to Angular and am trying to make an api call and return a response to my form so that I can show a success message.</p> <p>Here's the function that is living within my service file</p> <pre><code>upload(files: any): Observable&lt;any&gt; { let fileContent = ''; //set the headers const corsHeaders...
[ { "answer_id": 74393880, "author": "Jimmy", "author_id": 8940884, "author_profile": "https://Stackoverflow.com/users/8940884", "pm_score": 1, "selected": false, "text": ".leftmain 325px .leftmain {\n width: 325px;\n}\n .leftmain {\n width: 25%;\n}\n" }, { "answer_id": 7448163...
2022/11/10
[ "https://Stackoverflow.com/questions/74393731", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2016653/" ]
74,393,754
<p>i am trying to generate a list in Prolog that contains all the instances of a variable. for exemple:</p> <pre><code>entree( 'foie gras' ). entree( 'salade gourmande' ). entree( 'crudites' ). generateliste(E,L)//L should be L=[&quot;foie gras','salade gourmande,'crudites'] </code></pre> <p>I tried this:</p> <pre><c...
[ { "answer_id": 74393880, "author": "Jimmy", "author_id": 8940884, "author_profile": "https://Stackoverflow.com/users/8940884", "pm_score": 1, "selected": false, "text": ".leftmain 325px .leftmain {\n width: 325px;\n}\n .leftmain {\n width: 25%;\n}\n" }, { "answer_id": 7448163...
2022/11/10
[ "https://Stackoverflow.com/questions/74393754", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20313832/" ]
74,393,757
<p>I'm facing a problem with sveltejs. I'm trying to make a really simple frontend server with svelte to figure out if the flow of my backend in nest is ok.</p> <p>Long story short, the backend make an oauth call to handle authorization and return a session cookie if the user successfully connected.</p> <p>With insombn...
[ { "answer_id": 74393880, "author": "Jimmy", "author_id": 8940884, "author_profile": "https://Stackoverflow.com/users/8940884", "pm_score": 1, "selected": false, "text": ".leftmain 325px .leftmain {\n width: 325px;\n}\n .leftmain {\n width: 25%;\n}\n" }, { "answer_id": 7448163...
2022/11/10
[ "https://Stackoverflow.com/questions/74393757", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13101402/" ]
74,393,767
<p>I want to implement to Vectore3 values as constants values in ResourcesDictionary but sadly an error just appears saying &quot;Vector3 doesn't support direct content&quot; Is there any way to do this??</p> <p><a href="https://i.stack.imgur.com/vXlEx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/...
[ { "answer_id": 74393880, "author": "Jimmy", "author_id": 8940884, "author_profile": "https://Stackoverflow.com/users/8940884", "pm_score": 1, "selected": false, "text": ".leftmain 325px .leftmain {\n width: 325px;\n}\n .leftmain {\n width: 25%;\n}\n" }, { "answer_id": 7448163...
2022/11/10
[ "https://Stackoverflow.com/questions/74393767", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8665881/" ]
74,393,790
<p>I would like to multiply the value in one dataframe (df_a) by the values in another dataframe (df_b) and then take the sum of these values, and append them together for all values in df_a. E.g. df_a:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>col_x</th> </tr> </thead> <tbody> <tr> <...
[ { "answer_id": 74393877, "author": "I'mahdi", "author_id": 1740577, "author_profile": "https://Stackoverflow.com/users/1740577", "pm_score": 0, "selected": false, "text": "broadcasting >>> (df_a.values * df_b.values.reshape(1, -1)).sum(axis=1)\n[110, 220]\n >>> df_1.values\narray([[10],\...
2022/11/10
[ "https://Stackoverflow.com/questions/74393790", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15243986/" ]
74,393,883
<p>I have this piece of code and I feel so dumb for not knowing how to run it. Please help.</p> <pre><code>class Solution(object): def countOdds(self, low: int, high: int): if low % 2 == 0 and high % 2 == 0: return (high-low)//2 else: return (high-low)//2 + 1 </code></pre> <p...
[ { "answer_id": 74393877, "author": "I'mahdi", "author_id": 1740577, "author_profile": "https://Stackoverflow.com/users/1740577", "pm_score": 0, "selected": false, "text": "broadcasting >>> (df_a.values * df_b.values.reshape(1, -1)).sum(axis=1)\n[110, 220]\n >>> df_1.values\narray([[10],\...
2022/11/10
[ "https://Stackoverflow.com/questions/74393883", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19189038/" ]
74,393,893
<p>So if given an offline webapp made up of html5/css/js with standard directories of {[Main Folder] &gt; 0001.html, 0002.html, 0003.html, {[assets folder] &gt; [css],[js],[media]}} is it possible for a search function on 1.html to be able to search the text content of 2.html or 3.html?</p> <p>I haven't been able to fi...
[ { "answer_id": 74393877, "author": "I'mahdi", "author_id": 1740577, "author_profile": "https://Stackoverflow.com/users/1740577", "pm_score": 0, "selected": false, "text": "broadcasting >>> (df_a.values * df_b.values.reshape(1, -1)).sum(axis=1)\n[110, 220]\n >>> df_1.values\narray([[10],\...
2022/11/10
[ "https://Stackoverflow.com/questions/74393893", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19461674/" ]
74,393,899
<p>I tried the 2 solutions posted here to detect a specific words and they do work:</p> <p><strong>Solution 1</strong></p> <pre><code>const badMessages = [&quot;bad&quot;, &quot;worst&quot;]; badMessages.forEach((word) =&gt; { if (message.content.includes(word)) { message.reply(&quot;Detected.&quot;); } }) </code></pre...
[ { "answer_id": 74393877, "author": "I'mahdi", "author_id": 1740577, "author_profile": "https://Stackoverflow.com/users/1740577", "pm_score": 0, "selected": false, "text": "broadcasting >>> (df_a.values * df_b.values.reshape(1, -1)).sum(axis=1)\n[110, 220]\n >>> df_1.values\narray([[10],\...
2022/11/10
[ "https://Stackoverflow.com/questions/74393899", "https://Stackoverflow.com", "https://Stackoverflow.com/users/874737/" ]
74,393,907
<p>I am trying to get every value from the data array that is above my threshold, and put the values from data array that are above the threshold into a new array.</p> <p>I found a way to do it but I am using two for loops, that are almost similar. So I am wondering if there is a way to do it without the two loops.</p>...
[ { "answer_id": 74393999, "author": "Jared Renzullo", "author_id": 20409306, "author_profile": "https://Stackoverflow.com/users/20409306", "pm_score": 2, "selected": false, "text": "public static void main(String[] args) {\n int threshold = 4;\n int[] data = new int[]{ 1, 2, 3, 4, 5, 6,...
2022/11/10
[ "https://Stackoverflow.com/questions/74393907", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16854605/" ]
74,393,912
<p>I have the following code. It reads inputs of 2 integers and prints the sum of them. It also tries to check if the user fails to provide the correct inputs, i.e. if by mistake the user inputs string or float, the code will produce an error message and ask the user to enter new inputs again.</p> <pre><code>I1, I2 = m...
[ { "answer_id": 74393999, "author": "Jared Renzullo", "author_id": 20409306, "author_profile": "https://Stackoverflow.com/users/20409306", "pm_score": 2, "selected": false, "text": "public static void main(String[] args) {\n int threshold = 4;\n int[] data = new int[]{ 1, 2, 3, 4, 5, 6,...
2022/11/10
[ "https://Stackoverflow.com/questions/74393912", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2520186/" ]
74,393,947
<p>I have a dataclass and I want to iterate over in in a loop to spit out each of the values. I'm able to write a very short <code>__iter__()</code> within it easy enough, but is that what I should be doing? I don't see anything in the documentation about an 'iterable' parameter or anything, but I just <em>feel like</e...
[ { "answer_id": 74394017, "author": "suvayu", "author_id": 289784, "author_profile": "https://Stackoverflow.com/users/289784", "pm_score": 2, "selected": false, "text": "dataclasses.asdict In [28]: from dataclasses import asdict\nIn [29]: [v for v in asdict(MyDataClass(1, 2, 3)).values()]...
2022/11/10
[ "https://Stackoverflow.com/questions/74393947", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15804190/" ]
74,393,962
<p>I'm trying to add a <strong>str</strong> method in my models.py file to my administrative page show me the objects I've register with their own name and not like a 'UserObject(1)'</p> <p>But when I add this method that's what is happening:</p> <p>AttributeError at /admin/crud_app/user/ 'User' object has no attribute...
[ { "answer_id": 74394043, "author": "Sunderam Dubey", "author_id": 17562044, "author_profile": "https://Stackoverflow.com/users/17562044", "pm_score": 2, "selected": false, "text": "f-strings class User(models.Model):\n \"\"\"\n A normal class that represents an User object, the att...
2022/11/10
[ "https://Stackoverflow.com/questions/74393962", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19494781/" ]
74,393,971
<p>I'm building a game and there's a score which updates every 5 sec with a timer.</p> <p>Currently the score lives in a nested Component's state, but I'd like to make it available to other Components as well so it can affect their states (eg. higher score would affect the whole game's background color, the counters on...
[ { "answer_id": 74394043, "author": "Sunderam Dubey", "author_id": 17562044, "author_profile": "https://Stackoverflow.com/users/17562044", "pm_score": 2, "selected": false, "text": "f-strings class User(models.Model):\n \"\"\"\n A normal class that represents an User object, the att...
2022/11/10
[ "https://Stackoverflow.com/questions/74393971", "https://Stackoverflow.com", "https://Stackoverflow.com/users/177692/" ]
74,393,998
<p>I am trying to pull data based on multiple keywords from the same column.</p> <p>Currently I have a SQL statement that works like this.</p> <pre><code>SELECT * FROM Customers WHERE CustomerName LIKE 'a%' OR CustomerName LIKE '_r%' OR CustomerName LIKE 'si%'; </code></pre> <p>That works fine. What I am trying ...
[ { "answer_id": 74394043, "author": "Sunderam Dubey", "author_id": 17562044, "author_profile": "https://Stackoverflow.com/users/17562044", "pm_score": 2, "selected": false, "text": "f-strings class User(models.Model):\n \"\"\"\n A normal class that represents an User object, the att...
2022/11/10
[ "https://Stackoverflow.com/questions/74393998", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18795729/" ]
74,394,000
<p>I have table towns which is main table. This table contains so many rows and it became so 'dirty' (<em>someone inserted 5 milions rows</em>) that I would like to get rid of unused towns.</p> <p>There are 3 referent table that are using my town_id as reference to towns.</p> <p>And I know there are many towns that are...
[ { "answer_id": 74394451, "author": "nbk", "author_id": 5193536, "author_profile": "https://Stackoverflow.com/users/5193536", "pm_score": 0, "selected": false, "text": "IN UNION ALL UNION CREATE TABLe towns (id int , vendor_id int)\n CREATE TABLE\n CREATE tABLE banks (town_id int)\n CREAT...
2022/11/10
[ "https://Stackoverflow.com/questions/74394000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6726592/" ]
74,394,008
<p>I have a function in a controller like this:</p> <pre><code>DB::transaction(function () use ($request) { for ($parts=0; $parts &lt; count($request-&gt;name) ; $parts++) { $parts_info = new PartsInfo; $parts_info -&gt; part_id = $request -&gt; id; $parts_in...
[ { "answer_id": 74394451, "author": "nbk", "author_id": 5193536, "author_profile": "https://Stackoverflow.com/users/5193536", "pm_score": 0, "selected": false, "text": "IN UNION ALL UNION CREATE TABLe towns (id int , vendor_id int)\n CREATE TABLE\n CREATE tABLE banks (town_id int)\n CREAT...
2022/11/10
[ "https://Stackoverflow.com/questions/74394008", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15787350/" ]
74,394,024
<p>I have a local path like this <code>C:\test\1\2\3\x\z\6\7\8</code> How do I insert a <code>y</code> folder in this hierarchy between <code>x</code> and <code>z</code> folders using PowerShell, assuming the folder names are random but the hierarchy is always the same</p> <p>Tried <code>Get-ChildItem</code> <code>Spli...
[ { "answer_id": 74394066, "author": "mklement0", "author_id": 45375, "author_profile": "https://Stackoverflow.com/users/45375", "pm_score": 1, "selected": false, "text": "-replace 'C:\\test\\1\\2\\3\\x\\z\\6\\7\\8' -replace '(?<=^([^\\\\]+\\\\){6})', 'y\\'\n 6 \\ (?<=...) \\ y $ $$ 'C:\\t...
2022/11/10
[ "https://Stackoverflow.com/questions/74394024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4494816/" ]
74,394,034
<p>I am trying to send discord message to channel using python bot, but when I print it's author, it's me and not the bot. So later I can't edit it because of the author.</p> <p>How can I send message as the bot?</p> <p>My function:</p> <pre><code>@bot.command(name=&quot;send&quot;) async def send(ctx: Context) -&gt; N...
[ { "answer_id": 74394066, "author": "mklement0", "author_id": 45375, "author_profile": "https://Stackoverflow.com/users/45375", "pm_score": 1, "selected": false, "text": "-replace 'C:\\test\\1\\2\\3\\x\\z\\6\\7\\8' -replace '(?<=^([^\\\\]+\\\\){6})', 'y\\'\n 6 \\ (?<=...) \\ y $ $$ 'C:\\t...
2022/11/10
[ "https://Stackoverflow.com/questions/74394034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16806651/" ]
74,394,092
<p>I want to create a list that contains vectors that display either a 1 or a 0 depending on whether a certain character is present. The data has the following form:</p> <pre><code>list &lt;- list('a', 'b', 'c', 'd', 'e') col1 &lt;- c('ta', 'ta', 'tb', 'tb', 'tb', 'tc', 'td', 'te') </code></pre> <p>What I want is a lis...
[ { "answer_id": 74394172, "author": "Nicso", "author_id": 9215556, "author_profile": "https://Stackoverflow.com/users/9215556", "pm_score": 0, "selected": false, "text": "List <- list('a', 'b', 'c', 'd', 'e')\ncol1 <- c('ta', 'ta', 'tb', 'tb', 'tb', 'tc', 'td', 'te')\n\ntest <- list() \n...
2022/11/10
[ "https://Stackoverflow.com/questions/74394092", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15635575/" ]
74,394,095
<p>I have been trying to extract the required data from a single cell and I have tried using some common formulas but its not working for all the cells exactly.</p> <p>I would appreciate your help in this regards.</p> <p><a href="https://docs.google.com/spreadsheets/d/1WS6EKTpA02LUxKCE1t-h08VrgDhiy0mGR4AhZjScagE/edit?u...
[ { "answer_id": 74394172, "author": "Nicso", "author_id": 9215556, "author_profile": "https://Stackoverflow.com/users/9215556", "pm_score": 0, "selected": false, "text": "List <- list('a', 'b', 'c', 'd', 'e')\ncol1 <- c('ta', 'ta', 'tb', 'tb', 'tb', 'tc', 'td', 'te')\n\ntest <- list() \n...
2022/11/10
[ "https://Stackoverflow.com/questions/74394095", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16968735/" ]
74,394,115
<p>I am trying to modify a driver for an LCD display. My Makefile contains:</p> <pre><code>obj-m += dft0928.o all: make -C /usr/lib/modules/$(shell uname -r)/build M=$(PWD) modules clean: make -C /usr/lib/modules/$(shell uname -r)/build M=$(PWD) clean </code></pre> <p>When I run &quot;make&quot; in the folder ...
[ { "answer_id": 74394172, "author": "Nicso", "author_id": 9215556, "author_profile": "https://Stackoverflow.com/users/9215556", "pm_score": 0, "selected": false, "text": "List <- list('a', 'b', 'c', 'd', 'e')\ncol1 <- c('ta', 'ta', 'tb', 'tb', 'tb', 'tc', 'td', 'te')\n\ntest <- list() \n...
2022/11/10
[ "https://Stackoverflow.com/questions/74394115", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14458895/" ]
74,394,129
<p>Im trying to use onHoover and onTap of a inkwell widget, but not OnHoover together with onTap doesn't work</p> <p>I tried various combination, but with no success. please help.</p>
[ { "answer_id": 74394295, "author": "TheHumanItSelf", "author_id": 11938374, "author_profile": "https://Stackoverflow.com/users/11938374", "pm_score": 1, "selected": false, "text": "onHover onTap onTap onTap: () {} // <- doesn't do anything when clicked" } ]
2022/11/10
[ "https://Stackoverflow.com/questions/74394129", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5087676/" ]
74,394,132
<p>i try to parse website but there is error <code>You need to enable support for &lt;a href=&quot;https://yandex.ru/support/common/browsers-settings/browsers-java-js-settings.html&quot;&gt;js&lt;/a&gt; in your browser to visit this site</code></p> <p>I try this code</p> <pre><code>import requests from bs4 import Beaut...
[ { "answer_id": 74394195, "author": "Harez", "author_id": 20352132, "author_profile": "https://Stackoverflow.com/users/20352132", "pm_score": -1, "selected": false, "text": "import requests\nfrom bs4 import BeautifulSoup\n\nURL = \"https://siteurl\"\npage = requests.get(URL)\n\nsoup = Bea...
2022/11/10
[ "https://Stackoverflow.com/questions/74394132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20315528/" ]
74,394,150
<p>What is done when encountered with special letters in file path, when trying to access it?</p> <p>To open a file, we need the specific path to the location where it lies. But in cases where the file path itself contains some special characters, like <code>t</code>, just after <code>\</code>, it shows error:</p> <p><...
[ { "answer_id": 74394195, "author": "Harez", "author_id": 20352132, "author_profile": "https://Stackoverflow.com/users/20352132", "pm_score": -1, "selected": false, "text": "import requests\nfrom bs4 import BeautifulSoup\n\nURL = \"https://siteurl\"\npage = requests.get(URL)\n\nsoup = Bea...
2022/11/10
[ "https://Stackoverflow.com/questions/74394150", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15031437/" ]
74,394,157
<p>This is the Input</p> <pre><code>| Type - I | Type - II | Type - I | Type - II | |----------|-----------|----------|-----------| | 560 | 189 | 128 | 244 | | 379 | 460 | 357 | 679 | | 238 | 568 | 125 | 147 | | 389 | 357 | 780 | 459 ...
[ { "answer_id": 74394284, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 2, "selected": false, "text": "stack (df.set_axis(pd.MultiIndex.from_frame(df.groupby(axis=1, level=0)\n .c...
2022/11/10
[ "https://Stackoverflow.com/questions/74394157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4400984/" ]
74,394,174
<p>I need to add values to an int[] that are greater than a specific threshold. It does not work for me, because it returns wrong values. For example: &quot;Output for values above 78: [85, 93, 81, 79, 81, 93]&quot;, but I get [93, 93, 93, 93, 93, 93]. Why is that so? Thank you.</p> <pre><code>public int[] getValuesAbo...
[ { "answer_id": 74394315, "author": "Perillai", "author_id": 19393849, "author_profile": "https://Stackoverflow.com/users/19393849", "pm_score": 1, "selected": false, "text": " int[] a = new int[] { 58, 78, 61, 72, 93, 81, 79, 78, 75, 81, 93 };\n ArrayList<Integer> te...
2022/11/10
[ "https://Stackoverflow.com/questions/74394174", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20207972/" ]
74,394,188
<p>this problem has already been written, but it hasn't been solved, so I'll upload it again, so please understand. I made a function that registers an image in child component, and makes the image visible in parent component, and erases the image by also setting the value of url to &quot;&quot; in parent component. I ...
[ { "answer_id": 74394315, "author": "Perillai", "author_id": 19393849, "author_profile": "https://Stackoverflow.com/users/19393849", "pm_score": 1, "selected": false, "text": " int[] a = new int[] { 58, 78, 61, 72, 93, 81, 79, 78, 75, 81, 93 };\n ArrayList<Integer> te...
2022/11/10
[ "https://Stackoverflow.com/questions/74394188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20108310/" ]
74,394,214
<p>After updating to 17.4.0 I can not discover tests in test explorer. Is anyone else experiencing this? The output I see in test explorer after selecting run all tests is &quot;test discovery finished: 0 tests found&quot;. I am running .Net4.7.2, Selenium, Specflow and NUIT.</p> <ul> <li>I have searched the web w/o fi...
[ { "answer_id": 74394315, "author": "Perillai", "author_id": 19393849, "author_profile": "https://Stackoverflow.com/users/19393849", "pm_score": 1, "selected": false, "text": " int[] a = new int[] { 58, 78, 61, 72, 93, 81, 79, 78, 75, 81, 93 };\n ArrayList<Integer> te...
2022/11/10
[ "https://Stackoverflow.com/questions/74394214", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9567154/" ]
74,394,244
<p>I create a new project Microsoft Visual 2022 with the template ASP.NET Core 6.0 Web API with use of controllers.</p> <p>The endpoint is <code>https://localhost:7251/weatherforecast</code>.</p> <p>I set my <code>program.cs</code>:</p> <pre><code>string? origins = &quot;_myAllowSpecificOrigins&quot;; builder.Services....
[ { "answer_id": 74403188, "author": "HasanGundogdu", "author_id": 2170298, "author_profile": "https://Stackoverflow.com/users/2170298", "pm_score": -1, "selected": false, "text": " app.Use(async (context, next) =>\n {\n context.Response.OnStarting(() =>\n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74394244", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8550205/" ]
74,394,272
<p>I found this when I was watching a project tutorial.</p> <pre><code>let isGameOver = false; if(!isGameOver){ console.log('game goes on.') } if(isGameOver){ console.log('game over') } </code></pre> <p>Inside this block, it seems &quot;!&quot; didn't negate the return of isGameOver. It is more working like : <code>if...
[ { "answer_id": 74403188, "author": "HasanGundogdu", "author_id": 2170298, "author_profile": "https://Stackoverflow.com/users/2170298", "pm_score": -1, "selected": false, "text": " app.Use(async (context, next) =>\n {\n context.Response.OnStarting(() =>\n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74394272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19672483/" ]
74,394,280
<p>IntelliJ (2021.3.1 in this case) has a tool - via right-click, <code>Git</code>, <code>Resolve Conflicts...</code> - which provides a three-pane yours/merged/theirs tool to fix conflicts.</p> <p>However, I always find it much easier to fix the problems in situ, in the normal IDE edit pane, then flag that the conflic...
[ { "answer_id": 74394886, "author": "VonC", "author_id": 6309, "author_profile": "https://Stackoverflow.com/users/6309", "pm_score": 0, "selected": false, "text": "All Changes have been processed Apply" }, { "answer_id": 74395600, "author": "michid", "author_id": 402428, ...
2022/11/10
[ "https://Stackoverflow.com/questions/74394280", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2136767/" ]
74,394,317
<p>I just started learning C language. So, I am running into a lot of problems. I thought declaring i under for loop is enough, and I can use the value of i for outside too. But I think, that was not the case. Can someone explain the situation, please.</p> <pre><code># include &lt;stdio.h&gt; int main(void) { int ...
[ { "answer_id": 74394355, "author": "dbush", "author_id": 1687119, "author_profile": "https://Stackoverflow.com/users/1687119", "pm_score": 0, "selected": false, "text": "i for for i int i;\nfor(i= 0; i <= x; i++)\n i" }, { "answer_id": 74394361, "author": "CamS", "author_...
2022/11/10
[ "https://Stackoverflow.com/questions/74394317", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16075798/" ]
74,394,340
<p>the converted version. there must be one space between letters and two spaces between words. if the symbol is not possible to be converted into english (not in morse) there can be &quot;#&quot;</p> <pre><code>this version does not work.. ((( sign_eng = {'.-': 'a', '-...': 'b', '-.-.': 'c', '-..': ...
[ { "answer_id": 74394355, "author": "dbush", "author_id": 1687119, "author_profile": "https://Stackoverflow.com/users/1687119", "pm_score": 0, "selected": false, "text": "i for for i int i;\nfor(i= 0; i <= x; i++)\n i" }, { "answer_id": 74394361, "author": "CamS", "author_...
2022/11/10
[ "https://Stackoverflow.com/questions/74394340", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20243817/" ]
74,394,363
<p>I read like through 10 pages on how to resolve promises but i still don't get it. Info: I want to fetch a specific member of a discord server</p> <p>Currently I have a async function with the promise inside that returns it but it gives me a message with &quot;Invalid Body Form&quot;</p> <pre class="lang-js prettypri...
[ { "answer_id": 74394407, "author": "iEnis", "author_id": 19693037, "author_profile": "https://Stackoverflow.com/users/19693037", "pm_score": -1, "selected": false, "text": "async function mbr() {\n const mB = await client.guilds.cache.get(\"1037783624449282189\").members.fetch(`${arg...
2022/11/10
[ "https://Stackoverflow.com/questions/74394363", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19693037/" ]
74,394,393
<p>I need to get value for &quot;UninstallString&quot; in</p> <p>Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall {1535CAA3-9F33-414E-8987-0365169BE741}</p> <p>calling:</p> <pre><code>Get-Item -path HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{1535CAA...
[ { "answer_id": 74394559, "author": "frankM_DN", "author_id": 20034020, "author_profile": "https://Stackoverflow.com/users/20034020", "pm_score": -1, "selected": false, "text": "\"\" Registry::HKEY_LOCAL_MACHINE\\... RegistryKey GetValue(string name) UninstallString (Get-Item -path \"Regi...
2022/11/10
[ "https://Stackoverflow.com/questions/74394393", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9502952/" ]
74,394,403
<p>I am having a course about assembly language, and I bump into this question which is use the loop and xchg instruction to swap all of the element in the array the array look like this The inputStr contains these element “A”, “B”, “C”, “D”, “E”, “F”, “G”, “H”. And after use the loop and xchg, it has to look like this...
[ { "answer_id": 74399447, "author": "bitRAKE", "author_id": 478499, "author_profile": "https://Stackoverflow.com/users/478499", "pm_score": 0, "selected": false, "text": "ITEMS = 8\ninputList WORD \"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\"\n\n mov rbx, inputList\n mov ec...
2022/11/10
[ "https://Stackoverflow.com/questions/74394403", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20152569/" ]
74,394,405
<pre><code>path = '/Desktop/somefolder' for filename in os.listdir(path): with open(path+filename) as f: - read the 3-4 excel files and attach the path - be able to concat them based on a specific column </code></pre> <p>filename gives me the name of the file I have in the directory. My idea was ...
[ { "answer_id": 74399447, "author": "bitRAKE", "author_id": 478499, "author_profile": "https://Stackoverflow.com/users/478499", "pm_score": 0, "selected": false, "text": "ITEMS = 8\ninputList WORD \"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\"\n\n mov rbx, inputList\n mov ec...
2022/11/10
[ "https://Stackoverflow.com/questions/74394405", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15262691/" ]
74,394,409
<p>I have a character in unity controlled by a rigidbody. However, the jump is one jerky movement not a smooth motion. Here is my script:</p> <pre><code>using UnityEngine; using UnityEngine.InputSystem; using UnityEngine.SceneManagement; public class Controller : MonoBehaviour { [Tooltip(&quot;Rigidbody component ...
[ { "answer_id": 74399447, "author": "bitRAKE", "author_id": 478499, "author_profile": "https://Stackoverflow.com/users/478499", "pm_score": 0, "selected": false, "text": "ITEMS = 8\ninputList WORD \"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\"\n\n mov rbx, inputList\n mov ec...
2022/11/10
[ "https://Stackoverflow.com/questions/74394409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19445483/" ]
74,394,434
<p>I am looking for an easy/Pythonic way to get the elapsed time difference (in fractional seconds) between two Python datetime objects.</p> <p>In the example below, I can see the delta.seconds and delta.microseconds attributes but am not sure what they actually contain and how they relate to the value returned by tota...
[ { "answer_id": 74399447, "author": "bitRAKE", "author_id": 478499, "author_profile": "https://Stackoverflow.com/users/478499", "pm_score": 0, "selected": false, "text": "ITEMS = 8\ninputList WORD \"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\"\n\n mov rbx, inputList\n mov ec...
2022/11/10
[ "https://Stackoverflow.com/questions/74394434", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3014653/" ]
74,394,445
<p>I am running into an issue while trying to create a toggle button. It moves on click but only after two clicks. I know that I have to set it before it will slide on the first click, but my confusion stems from when I did that, it clicked to the right and wouldn't move back no matter how many times I clicked it. Is t...
[ { "answer_id": 74399447, "author": "bitRAKE", "author_id": 478499, "author_profile": "https://Stackoverflow.com/users/478499", "pm_score": 0, "selected": false, "text": "ITEMS = 8\ninputList WORD \"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\"\n\n mov rbx, inputList\n mov ec...
2022/11/10
[ "https://Stackoverflow.com/questions/74394445", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17816713/" ]
74,394,461
<p>I have dataframe:</p> <pre><code> d1 = [({'the town': 1, 'County Council s': 2, 'email':5},2), ({'Mayor': 2, 'Indiana': 2}, 4), ({'Congress': 2, 'Justice': 2,'country': 2, 'veterans':1},6) ] df1 = spark.createDataFrame(d1, ['dct', 'count']) df1.show() ignore_lst = ['County Council s', 'emal','Indiana']...
[ { "answer_id": 74399447, "author": "bitRAKE", "author_id": 478499, "author_profile": "https://Stackoverflow.com/users/478499", "pm_score": 0, "selected": false, "text": "ITEMS = 8\ninputList WORD \"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\"\n\n mov rbx, inputList\n mov ec...
2022/11/10
[ "https://Stackoverflow.com/questions/74394461", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15112773/" ]
74,394,498
<p>I'm trying to write code that can check if an input contains;</p> <ul> <li>At least 8 letters, whereas at least 1 of those is a number (0-9)</li> <li>Contains an upper and lower case character</li> </ul> <p>I keep getting stuck in a &quot;inputs password, returns true, and input password again, exit&quot; single loo...
[ { "answer_id": 74394561, "author": "PirateNinjas", "author_id": 8237877, "author_profile": "https://Stackoverflow.com/users/8237877", "pm_score": 1, "selected": false, "text": "def is_valid():\n password = input(\"Password: \")\n if not any(el.isupper() for el in password):\n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74394498", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20358629/" ]
74,394,508
<p>I am having some issues with this DIV not getting centered. I am sure it is something with CSS,</p> <p>I need some corrections to CSS below and to get rid of unnecessary CSS statements if not needed</p> <p>I would like the div to be centered and 75% wide</p> <p>Thanks,</p> <pre><code> .css_main_popup { transiti...
[ { "answer_id": 74394561, "author": "PirateNinjas", "author_id": 8237877, "author_profile": "https://Stackoverflow.com/users/8237877", "pm_score": 1, "selected": false, "text": "def is_valid():\n password = input(\"Password: \")\n if not any(el.isupper() for el in password):\n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74394508", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7375877/" ]
74,394,509
<p>I have a problem that's simple: I want to get the sum across some columns (<code>a</code> and <code>b</code> in my example) of strings equal to <code>-999</code>.</p> <pre><code>df = tibble(a = c('-999', 'b', '-999'), b = c('-999', 'a', 'b'), c = 1:3) </code></pre> <p>from this:</p> <pre><code>...
[ { "answer_id": 74394561, "author": "PirateNinjas", "author_id": 8237877, "author_profile": "https://Stackoverflow.com/users/8237877", "pm_score": 1, "selected": false, "text": "def is_valid():\n password = input(\"Password: \")\n if not any(el.isupper() for el in password):\n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74394509", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9462829/" ]
74,394,524
<p>I want to create a curried function that can either accept an argument in the outer call, or the inner one - but never both/neither (xor). Is such a thing possible? I can't quite figure out how to make it work. The following clearly doesn't work because I'm not passing on any type information to the inner function:<...
[ { "answer_id": 74394850, "author": "Andrey Tyukin", "author_id": 2707792, "author_profile": "https://Stackoverflow.com/users/2707792", "pm_score": 2, "selected": false, "text": "function outerFunc(x: string): () => string;\nfunction outerFunc(): (y: string) => string;\nfunction outerFunc...
2022/11/10
[ "https://Stackoverflow.com/questions/74394524", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3071004/" ]
74,394,532
<p>I have a Syncfusion SfDialog in my code and I need the component in the content to restart every time the dialog is open. So far I have tried this:</p> <pre><code> &lt;SfDialog Visible=&quot;_dialogTripRunAutoRoute&quot; Width=&quot;75%&quot; ShowCloseIcon=&quot;true&quot; IsModal=&quot;true&quot; AllowPr...
[ { "answer_id": 74397500, "author": "Ibrahim Timimi", "author_id": 8316900, "author_profile": "https://Stackoverflow.com/users/8316900", "pm_score": 0, "selected": false, "text": "<ComponentInTheContent @key=\"@(componentId)\">\n\n</ComponentInTheContent>\n\n@code {\n private Guid comp...
2022/11/10
[ "https://Stackoverflow.com/questions/74394532", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20064183/" ]
74,394,560
<p>Is there a way to control the spacing between edges in dot, similar to the <code>nodesep</code> attribute in the other graphviz layout engines? I would like to keep using <code>dot</code> as the layout engine.</p> <p>By edges I mean either multi-edges or multi-coloured edges, like in the following example. I would l...
[ { "answer_id": 74395605, "author": "sroush", "author_id": 12317235, "author_profile": "https://Stackoverflow.com/users/12317235", "pm_score": 1, "selected": false, "text": "digraph G {\n nodesep = \"0.15\"\n \n c -> d [dir=none color=\"green:white:white:white:red:white:white:white:blu...
2022/11/10
[ "https://Stackoverflow.com/questions/74394560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9074788/" ]
74,394,603
<p>My <code>docker-compose.yml</code></p> <pre><code># pull official base image FROM python:3.10-alpine # set work directory WORKDIR . # set environment variables ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 # install dependencies RUN pip install --upgrade pip COPY ./requirements.txt . RUN pip install -r req...
[ { "answer_id": 74395605, "author": "sroush", "author_id": 12317235, "author_profile": "https://Stackoverflow.com/users/12317235", "pm_score": 1, "selected": false, "text": "digraph G {\n nodesep = \"0.15\"\n \n c -> d [dir=none color=\"green:white:white:white:red:white:white:white:blu...
2022/11/10
[ "https://Stackoverflow.com/questions/74394603", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6213939/" ]
74,394,621
<pre><code>operation = str(input(&quot;Operation (type which operation you would like): &quot;)) if operation == &quot;division&quot;: number1 = float(input(&quot;1st Number? &quot;)) number2 = float(input(&quot;2nd Number? &quot;)) quotient = number1 / number2 print(str(number1) + &quot; / &quot; + str...
[ { "answer_id": 74395605, "author": "sroush", "author_id": 12317235, "author_profile": "https://Stackoverflow.com/users/12317235", "pm_score": 1, "selected": false, "text": "digraph G {\n nodesep = \"0.15\"\n \n c -> d [dir=none color=\"green:white:white:white:red:white:white:white:blu...
2022/11/10
[ "https://Stackoverflow.com/questions/74394621", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20472020/" ]
74,394,623
<p>I have a function that takes 2 vectors and return 2 scalars. The vectors are a part of a big array. I want to apply the function over the array, but I didn’t succeed using the apply family. I’m sure it’s possible, I just didn’t grasp the use of apply and a function and couldn't find an answer I can understand in sim...
[ { "answer_id": 74395605, "author": "sroush", "author_id": 12317235, "author_profile": "https://Stackoverflow.com/users/12317235", "pm_score": 1, "selected": false, "text": "digraph G {\n nodesep = \"0.15\"\n \n c -> d [dir=none color=\"green:white:white:white:red:white:white:white:blu...
2022/11/10
[ "https://Stackoverflow.com/questions/74394623", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11760203/" ]
74,394,631
<p>I'm a creating a blog using Remix.</p> <p>Remix supports MDX as a route, which is perfect for me, as I can just write my blog posts as <code>.mdx</code> files and they'll naturally become routes.</p> <p>However, if you access the index route - I would like to display the list of links to all the articles, (ideally s...
[ { "answer_id": 74395605, "author": "sroush", "author_id": 12317235, "author_profile": "https://Stackoverflow.com/users/12317235", "pm_score": 1, "selected": false, "text": "digraph G {\n nodesep = \"0.15\"\n \n c -> d [dir=none color=\"green:white:white:white:red:white:white:white:blu...
2022/11/10
[ "https://Stackoverflow.com/questions/74394631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1068446/" ]
74,394,635
<p>I am unable to delete PostgreSQL database in azure using the below command:</p> <pre><code>az PostgreSQL db delete </code></pre> <p>Is there any other script such as bash to clean up azure postgreSQL database?</p>
[ { "answer_id": 74395605, "author": "sroush", "author_id": 12317235, "author_profile": "https://Stackoverflow.com/users/12317235", "pm_score": 1, "selected": false, "text": "digraph G {\n nodesep = \"0.15\"\n \n c -> d [dir=none color=\"green:white:white:white:red:white:white:white:blu...
2022/11/10
[ "https://Stackoverflow.com/questions/74394635", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18538111/" ]
74,394,637
<p>I am attempting to perform a global setup in the App.razor file, which would read some data from the browser local storage and then assign it some global state class.</p> <p>However, I have run into a problem with the order of tasks being fulfilled. Consider the code below:</p> <p>This is what I currently have:</p>...
[ { "answer_id": 74395605, "author": "sroush", "author_id": 12317235, "author_profile": "https://Stackoverflow.com/users/12317235", "pm_score": 1, "selected": false, "text": "digraph G {\n nodesep = \"0.15\"\n \n c -> d [dir=none color=\"green:white:white:white:red:white:white:white:blu...
2022/11/10
[ "https://Stackoverflow.com/questions/74394637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3469841/" ]
74,394,642
<p>I'm trying to get the charindex for multiple CHAR(10) characters in a string in SQL Server.</p> <p>The first and second linebreaks are found alright, the 3rd one is a problem however.</p> <pre><code>CHARINDEX(CHAR(10),subadres) AS '1st linebreak', CHARINDEX(CHAR(10),subadres,(CHARINDEX(CHAR(10),subadres)+1)) AS '2rd...
[ { "answer_id": 74394921, "author": "John Cappelletti", "author_id": 1570000, "author_profile": "https://Stackoverflow.com/users/1570000", "pm_score": 1, "selected": false, "text": "Declare @YourTable Table ([subaddrs] varchar(50)) Insert Into @YourTable Values \n ('Line 1\nLine 2\nLine ...
2022/11/10
[ "https://Stackoverflow.com/questions/74394642", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20471977/" ]
74,394,665
<p>I am binding ObservableCollection with CollectionView.</p> <pre><code>&lt;CollectionView ItemsSource=&quot;{Binding LeftExercises}&quot;&gt; &lt;CollectionView.ItemTemplate&gt; &lt;DataTemplate x:DataType=&quot;models:ExerciseModel&quot;&gt;...
[ { "answer_id": 74394921, "author": "John Cappelletti", "author_id": 1570000, "author_profile": "https://Stackoverflow.com/users/1570000", "pm_score": 1, "selected": false, "text": "Declare @YourTable Table ([subaddrs] varchar(50)) Insert Into @YourTable Values \n ('Line 1\nLine 2\nLine ...
2022/11/10
[ "https://Stackoverflow.com/questions/74394665", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3265665/" ]
74,394,682
<p>I'm trying to make my own bubble-sort algorithm for learning purposes. I'm doing it by:</p> <ul> <li>Making a random array</li> <li>Checking if the first two indexes of the array need to be swapped</li> <li>it does this throughout the whole list</li> <li>and does it over and over until when looping through until the...
[ { "answer_id": 74394838, "author": "mexx", "author_id": 6206337, "author_profile": "https://Stackoverflow.com/users/6206337", "pm_score": 1, "selected": false, "text": "bubbleSort new new = bubbleSort(10) bubbleSort self.xyz = abc b1 = bubbleSort(10)\nb2 = bubbleSort(20)\n b1 b1.array pr...
2022/11/10
[ "https://Stackoverflow.com/questions/74394682", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20471910/" ]
74,394,699
<p>I'm trying to build a script to convert a XML file to CSV. I started following this guide <a href="https://learn.microsoft.com/en-us/answers/questions/542481/parse-xml-to-csv-help.html" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/answers/questions/542481/parse-xml-to-csv-help.html</a> but I'm stuck w...
[ { "answer_id": 74394838, "author": "mexx", "author_id": 6206337, "author_profile": "https://Stackoverflow.com/users/6206337", "pm_score": 1, "selected": false, "text": "bubbleSort new new = bubbleSort(10) bubbleSort self.xyz = abc b1 = bubbleSort(10)\nb2 = bubbleSort(20)\n b1 b1.array pr...
2022/11/10
[ "https://Stackoverflow.com/questions/74394699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1971762/" ]
74,394,745
<blockquote> <p>I found this code but this sum all the digits but i want it to ad 31 not 3+1 Output : 28 Expected : 100</p> </blockquote> <pre><code>#include&lt;stdio.h&gt; int main() { //Initializing variables. char str[100] = &quot;10+5+6+31+3+45&quot;; int i,sum = 0; //Iterating each character...
[ { "answer_id": 74394865, "author": "David Grayson", "author_id": 28128, "author_profile": "https://Stackoverflow.com/users/28128", "pm_score": 1, "selected": false, "text": "#include <stdio.h>\n#include <string.h>\n\nint main() {\n char str[] = \"10+5+6+31+3+45\";\n\n unsigned int sum ...
2022/11/10
[ "https://Stackoverflow.com/questions/74394745", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18259502/" ]
74,394,767
<p>My <code>dataframe</code> has zero elements after I use <code>dropna()</code> on a 2-dimensional array:</p> <p><a href="https://i.stack.imgur.com/7UQs2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7UQs2.png" alt="excel" /></a></p> <pre><code>data = pd.read_excel('/file.xlsx', sheet_name='Sheet1...
[ { "answer_id": 74394865, "author": "David Grayson", "author_id": 28128, "author_profile": "https://Stackoverflow.com/users/28128", "pm_score": 1, "selected": false, "text": "#include <stdio.h>\n#include <string.h>\n\nint main() {\n char str[] = \"10+5+6+31+3+45\";\n\n unsigned int sum ...
2022/11/10
[ "https://Stackoverflow.com/questions/74394767", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3340234/" ]
74,394,821
<p>I have a pandas dataframe like below</p> <pre><code>import pandas as pd data = [[5, 10], [4, 20], [15, 30], [20, 15], [12, 14], [5, 5]] df = pd.DataFrame(data, columns=['x', 'y']) </code></pre> <p>I am trying to attain the value of this expression.</p> <p><a href="https://i.stack.imgur.com/WGuHg.png" rel="nofollow n...
[ { "answer_id": 74394865, "author": "David Grayson", "author_id": 28128, "author_profile": "https://Stackoverflow.com/users/28128", "pm_score": 1, "selected": false, "text": "#include <stdio.h>\n#include <string.h>\n\nint main() {\n char str[] = \"10+5+6+31+3+45\";\n\n unsigned int sum ...
2022/11/10
[ "https://Stackoverflow.com/questions/74394821", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17939220/" ]
74,394,829
<p>I have to face some problem about my Googlesheets Data. I want to filter my googlesheets data between two dates and also filter more conditions at the same time in same sheets. Below are given some sample data.</p> <p><a href="https://docs.google.com/spreadsheets/d/1h5PW52PoMUxXtrqEmfXSCWu_OKXVO8IwUbHqcqSPRzs/edit?u...
[ { "answer_id": 74394865, "author": "David Grayson", "author_id": 28128, "author_profile": "https://Stackoverflow.com/users/28128", "pm_score": 1, "selected": false, "text": "#include <stdio.h>\n#include <string.h>\n\nint main() {\n char str[] = \"10+5+6+31+3+45\";\n\n unsigned int sum ...
2022/11/10
[ "https://Stackoverflow.com/questions/74394829", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10004780/" ]
74,394,853
<p>Literally what the title says. I don't know where I'm wrong.</p> <pre><code> import { useState, useEffect, useRef } from &quot;react&quot;; const Gameboard = () =&gt; { const [grids, setGrids] = useState([]); const [snake, setSnake] = useState([100, 101]); const [direction, setDirection] = useState('what'); ...
[ { "answer_id": 74394963, "author": "Oussama Mg", "author_id": 16626467, "author_profile": "https://Stackoverflow.com/users/16626467", "pm_score": 1, "selected": false, "text": "const switchDirection = (e) => {\n console.log(e.keyCode);\n if (e.keyCode === 37) {\n setDirection...
2022/11/10
[ "https://Stackoverflow.com/questions/74394853", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20306342/" ]
74,394,857
<p>recently my Microsoft self hosted integration runtime automatically updated and now I can't pull data from my onprem folder and transfer it to a blob storage. The error code I receive is</p> <p>Error Code 28051</p> <p>Details d could not be resolved. Activity ID: d999e0c0-cb2c-4161-aad5-e01510ca7e8f</p> <p>Has ...
[ { "answer_id": 74601778, "author": "jikuja", "author_id": 776884, "author_profile": "https://Stackoverflow.com/users/776884", "pm_score": 1, "selected": false, "text": "dmgcmd.exe -DisableLocalFolderPathValidation" }, { "answer_id": 74646611, "author": "Howard Renollet", ...
2022/11/10
[ "https://Stackoverflow.com/questions/74394857", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20053349/" ]
74,394,892
<p>I have installed perlbrew and installed two Perls with it. Now I am trying to separate libraries for modules I install with cpanm.</p> <p>I want (if possible) to switch to one Perl (within Perlbrew) (for example: 5.22.4) and once I call <code>cpanm install Some::Module</code> the module will be installed in the sepa...
[ { "answer_id": 74601778, "author": "jikuja", "author_id": 776884, "author_profile": "https://Stackoverflow.com/users/776884", "pm_score": 1, "selected": false, "text": "dmgcmd.exe -DisableLocalFolderPathValidation" }, { "answer_id": 74646611, "author": "Howard Renollet", ...
2022/11/10
[ "https://Stackoverflow.com/questions/74394892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4895979/" ]
74,394,904
<p>I'm trying to convert Likert scale survey data (e.g., &quot;Strongly Agree - 1&quot;) into numeric data for use in statistical analysis. I've got dozens of questions using the same scale.</p> <p>I found a solution, but it seems clumsy and was hoping someone could suggest an improvement for the sake of learning.</p> ...
[ { "answer_id": 74395163, "author": "Baraliuh", "author_id": 11157753, "author_profile": "https://Stackoverflow.com/users/11157753", "pm_score": 2, "selected": false, "text": "funs mutate_all dplyr # Define a set of replacements\n# What we want\nreplacements <- c(\n \"Very Dissatisfied1\...
2022/11/10
[ "https://Stackoverflow.com/questions/74394904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13199647/" ]
74,394,927
<p>I have a structure like</p> <pre><code> const test = [ { items: [ { id: &quot;tete&quot;, }, { id: &quot;tete&quot;, }, ], }, { items: [ { id: &quot;tete&quot;, }, ], }, ]; </code></pre> <p>How go...
[ { "answer_id": 74395022, "author": "caTS", "author_id": 18244921, "author_profile": "https://Stackoverflow.com/users/18244921", "pm_score": 1, "selected": false, "text": "flatMap map const test = [{items:[{id:\"tete\",},{id:\"tete\",},],},{items:[{id:\"tete\"}]}];\n\nconst result = test....
2022/11/10
[ "https://Stackoverflow.com/questions/74394927", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14568670/" ]