qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,404,629
<p>Weblinks are not responsive, they increased the mobile page width and create bad user experience.</p> <p>I am using Asona theme.</p> <p>Fix this problem, the weblinks doesn't bend and goes on next paragraph, they are just goes straight.<a href="https://i.stack.imgur.com/rLtF2.jpg" rel="nofollow noreferrer"><img src=...
[ { "answer_id": 74405747, "author": "Limey", "author_id": 13434871, "author_profile": "https://Stackoverflow.com/users/13434871", "pm_score": 0, "selected": false, "text": "df1 %>% \n arrange(C, ID, fyear) %>% \n group_by(C, ID) %>% \n mutate(\n fyear3=rowSums(list(sapply(1:3, funct...
2022/11/11
[ "https://Stackoverflow.com/questions/74404629", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479011/" ]
74,404,679
<p>I am trying to use <a href="https://lodash.com/docs/4.17.15#throttle" rel="nofollow noreferrer">lodash's throttle</a> inside a React component to make some other call. This is what I currently have:</p> <pre class="lang-js prettyprint-override"><code>const requestDetails = useCallback( throttle((someId: number) ...
[ { "answer_id": 74404744, "author": "Nick Vu", "author_id": 9201587, "author_profile": "https://Stackoverflow.com/users/9201587", "pm_score": 1, "selected": false, "text": "useRef useEffect someId const throttleRef = useRef(throttle((someId: number) => {\n dispatch(...);\n }, 3000...
2022/11/11
[ "https://Stackoverflow.com/questions/74404679", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2034128/" ]
74,404,735
<p>I want to block equal data entry in the phone number.</p> <p>I tried several methods and failed.</p> <p>I changed the code several times and I couldn't.</p> <pre><code>`const form = document.getElementById('agenda-de-contatos'); let linhas = []; form.addEventListener('submit', function (e) { e.preventDefault(); ...
[ { "answer_id": 74404744, "author": "Nick Vu", "author_id": 9201587, "author_profile": "https://Stackoverflow.com/users/9201587", "pm_score": 1, "selected": false, "text": "useRef useEffect someId const throttleRef = useRef(throttle((someId: number) => {\n dispatch(...);\n }, 3000...
2022/11/11
[ "https://Stackoverflow.com/questions/74404735", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15248306/" ]
74,404,741
<p>I am trying to take a sheet like: <a href="https://i.stack.imgur.com/skuca.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/skuca.png" alt="enter image description here" /></a> A3,B3,C3 are the sum of the 2 values above them.</p> <p>Copy this entire sheet into another sheet with only static values ...
[ { "answer_id": 74405047, "author": "pgSystemTester", "author_id": 11732320, "author_profile": "https://Stackoverflow.com/users/11732320", "pm_score": 2, "selected": true, "text": "pastespecial Public Sub CopyEntireSheetValues()\n\n Sheets(\"MAIN\").Range(\"A1:C100\").Copy\n Sheets(...
2022/11/11
[ "https://Stackoverflow.com/questions/74404741", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15316309/" ]
74,404,753
<p>I have created a function called <code>interval</code> which takes two numbers as input between 1 and 12 and if the number is less than 10, it appends a 0 to the front. e.g. 4 becomes 04, but 11 stays 11.</p> <pre><code>interval &lt;- function(month_start = 1, month_end = 12){ month_range &lt;- as.character(c(mo...
[ { "answer_id": 74404782, "author": "jpsmith", "author_id": 12109788, "author_profile": "https://Stackoverflow.com/users/12109788", "pm_score": 3, "selected": true, "text": "x <- 1:12\n\nifelse(x < 10, paste0(\"0\", x), x)\n\n# and to force a character variable, per comment from @Miff\nas...
2022/11/11
[ "https://Stackoverflow.com/questions/74404753", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2300049/" ]
74,404,756
<p>I want to generate line as like attached image using HTML/CSS</p> <p><a href="https://i.stack.imgur.com/skZOd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/skZOd.png" alt="enter image description here" /></a></p> <p>I have tried with two different divs but not generating result as expected.</p> ...
[ { "answer_id": 74404782, "author": "jpsmith", "author_id": 12109788, "author_profile": "https://Stackoverflow.com/users/12109788", "pm_score": 3, "selected": true, "text": "x <- 1:12\n\nifelse(x < 10, paste0(\"0\", x), x)\n\n# and to force a character variable, per comment from @Miff\nas...
2022/11/11
[ "https://Stackoverflow.com/questions/74404756", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20200307/" ]
74,404,771
<p>I have Categories stored in a single table.</p> <p>Where there is no limit on number of childerns.</p> <p>I want to fetch all the linked childern categories for the provided category id:</p> <p>The reason for getting the hierarchy is that I need to update the path field for each category that is either newly created...
[ { "answer_id": 74424663, "author": "Diszonaurusz", "author_id": 9339971, "author_profile": "https://Stackoverflow.com/users/9339971", "pm_score": 1, "selected": false, "text": "WITH RECURSIVE cte (id, name, parentId, path, lvl) AS (\n -- Initial step\n SELECT\n id,\n name,\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74404771", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3924832/" ]
74,404,784
<p>I'm desperately trying to populate my ListView with downloaded Graphics at runtime. So far I've tried several approaches but i couldn't get it to work properly.</p> <p>The Download and display for itself (i tested in a canvas called pic, so there's still fragments in the code) works fine, but the ListView won't disp...
[ { "answer_id": 74424663, "author": "Diszonaurusz", "author_id": 9339971, "author_profile": "https://Stackoverflow.com/users/9339971", "pm_score": 1, "selected": false, "text": "WITH RECURSIVE cte (id, name, parentId, path, lvl) AS (\n -- Initial step\n SELECT\n id,\n name,\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74404784", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14950596/" ]
74,404,785
<p>I have to write a program that takes a student ID and a number as input and then lowers all student notes by that that number except for one student based on the inputed ID. Here's what i mean: String = &quot;Simon, 12345, 75\n Nick, 23456, 85\n Frank, 34567, 97\n</p> <p>there's the students' names then their id and...
[ { "answer_id": 74405178, "author": "kladderradatsch", "author_id": 5841551, "author_profile": "https://Stackoverflow.com/users/5841551", "pm_score": 1, "selected": false, "text": "public static void decreaseGrade(String studentId, int reduction) {\n String studentRecord = \"Simon, 1234...
2022/11/11
[ "https://Stackoverflow.com/questions/74404785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20389234/" ]
74,404,833
<p>I'm building an Azure Functions App (targeting .NET 6) and trying to use my own NuGet packages for my class libraries.</p> <p>The strange thing is that if I try to use my NuGet packages, I get the following error. If I, however, just create a reference to the actual projects for my class libraries on my computer, ev...
[ { "answer_id": 74405178, "author": "kladderradatsch", "author_id": 5841551, "author_profile": "https://Stackoverflow.com/users/5841551", "pm_score": 1, "selected": false, "text": "public static void decreaseGrade(String studentId, int reduction) {\n String studentRecord = \"Simon, 1234...
2022/11/11
[ "https://Stackoverflow.com/questions/74404833", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1705266/" ]
74,404,834
<p>I'm observing a behavior that's weird to me, can anyone tell me how I can define filter once and re-use throughout my code?</p> <pre class="lang-py prettyprint-override"><code>&gt;&gt;&gt; df = pd.DataFrame([1,2,3], columns=['A']) &gt;&gt;&gt; my_filter = df.A == 2 &gt;&gt;&gt; df.loc[1] = 5 &gt;&gt;&gt; df[my_filte...
[ { "answer_id": 74405178, "author": "kladderradatsch", "author_id": 5841551, "author_profile": "https://Stackoverflow.com/users/5841551", "pm_score": 1, "selected": false, "text": "public static void decreaseGrade(String studentId, int reduction) {\n String studentRecord = \"Simon, 1234...
2022/11/11
[ "https://Stackoverflow.com/questions/74404834", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1066820/" ]
74,404,847
<p>I am trying to understand indexing in a list. I try:</p> <pre><code>x= [1,2,3,[4]] x[0]=[34] x[3][0]=95 </code></pre> <p>which gives</p> <pre><code>[1, 2, 3, [95]] </code></pre> <p>but why is it not:</p> <pre><code>[34 2, 3, [95]] </code></pre> <p>? Edit: apologies my code was:</p> <pre><code>x= [1,2,3,[4]] y=list(x...
[ { "answer_id": 74405002, "author": "Iulian St", "author_id": 19333216, "author_profile": "https://Stackoverflow.com/users/19333216", "pm_score": 0, "selected": false, "text": "[[34], 2, 3, [95]]\n" }, { "answer_id": 74424701, "author": "not a tshirt", "author_id": 1319092...
2022/11/11
[ "https://Stackoverflow.com/questions/74404847", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1773592/" ]
74,404,850
<p>I need to repeatedly replace all occurrence of <code>00000</code> with <code>0</code> in a binary string input.</p> <p>Although I'm able to achieve it to some extent, I do not know the logic when there are multiple consecutive 00000s like <strong>for example</strong>:</p> <ul> <li>25 0s should be replaced with one 0...
[ { "answer_id": 74404917, "author": "Ben Grossmann", "author_id": 2476977, "author_profile": "https://Stackoverflow.com/users/2476977", "pm_score": 1, "selected": false, "text": "0 0 00000 0 import re\n\nnew = \"00000100002000003000000004\" + \"0\"*50\nold = \"\"\n\nwhile old != new:\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74404850", "https://Stackoverflow.com", "https://Stackoverflow.com/users/713200/" ]
74,404,868
<p>I am trying to calculate a simple fibonacci sequence and then print the numbers on different lines. However I want a specific amount of numbers on each line (ex: 5 numbers on each line).</p> <pre><code>a, b = 1, 1 while b &lt; 150: print(b, &quot;\n&quot;) a, b = b, a + b </code></pre> <p>The code above calc...
[ { "answer_id": 74404917, "author": "Ben Grossmann", "author_id": 2476977, "author_profile": "https://Stackoverflow.com/users/2476977", "pm_score": 1, "selected": false, "text": "0 0 00000 0 import re\n\nnew = \"00000100002000003000000004\" + \"0\"*50\nold = \"\"\n\nwhile old != new:\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74404868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479039/" ]
74,404,871
<p>There are 2 lists and my goal is to add the element from one list before and after the delimiters of another list. Below is the example:</p> <pre class="lang-py prettyprint-override"><code>ListA = [&quot;A&quot;, &quot;B&quot;] ListB = [[1, 2, 3, 4], [5, 6, 7, 8]] </code></pre> <p>Expected Output:</p> <pre><code>[[1...
[ { "answer_id": 74404937, "author": "Swifty", "author_id": 20267366, "author_profile": "https://Stackoverflow.com/users/20267366", "pm_score": 2, "selected": true, "text": "ListA = ['A','B']\nListB = [[1,2,3,4],[5,6,7,8]]\n\nfor x, y in zip(ListB, ListA):\n for i in range(len(x)):\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74404871", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20470119/" ]
74,404,895
<p>I'm having a huge problem with the configuration/dependency injection of an application.</p> <p>I have a singleton class added through DI with AddSingleton, that has in its constructor a IRequestClient, that is scoped because <code>busConfigurator.AddRequestClient()</code> which among other things, has the same effe...
[ { "answer_id": 74404937, "author": "Swifty", "author_id": 20267366, "author_profile": "https://Stackoverflow.com/users/20267366", "pm_score": 2, "selected": true, "text": "ListA = ['A','B']\nListB = [[1,2,3,4],[5,6,7,8]]\n\nfor x, y in zip(ListB, ListA):\n for i in range(len(x)):\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74404895", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19296211/" ]
74,404,919
<p>Hey (Sorry bad english) so am going to try and make my question more clear. if i have a function let's say create_username_dict(name_list, username_list). which takes in two list's 1 being the name_list with names of people than the other list being usernames that is made out of the names of people. what i want to d...
[ { "answer_id": 74404937, "author": "Swifty", "author_id": 20267366, "author_profile": "https://Stackoverflow.com/users/20267366", "pm_score": 2, "selected": true, "text": "ListA = ['A','B']\nListB = [[1,2,3,4],[5,6,7,8]]\n\nfor x, y in zip(ListB, ListA):\n for i in range(len(x)):\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74404919", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20241890/" ]
74,404,936
<p>I've searched for days, piecing together code from other posts around Stack Overflow and from the learn.microsoft.com documentation for a solution to this and I'm struggling... It doesn't help that I'm relatively new to Outlook VBA.</p> <p>What I want to happen is that when I create a new email using the default rib...
[ { "answer_id": 74404937, "author": "Swifty", "author_id": 20267366, "author_profile": "https://Stackoverflow.com/users/20267366", "pm_score": 2, "selected": true, "text": "ListA = ['A','B']\nListB = [[1,2,3,4],[5,6,7,8]]\n\nfor x, y in zip(ListB, ListA):\n for i in range(len(x)):\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74404936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8802953/" ]
74,404,946
<p>Im working on a school project and i want to pass more then one value thru the url. The page show more then one user from the Database.</p> <p>This is what im trying to do so far, and i get a</p> <blockquote> <p>Parse error: syntax error, unexpected string content &quot;&quot;, expecting &quot;-&quot; or identifier ...
[ { "answer_id": 74405221, "author": "RiggsFolly", "author_id": 2310830, "author_profile": "https://Stackoverflow.com/users/2310830", "pm_score": 0, "selected": false, "text": "echo \"<div class='table-card'> \n <div class='table-num'>\n <div class='table'>\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74404946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14262765/" ]
74,404,984
<p>I am still new to developing integrations in OIC. I am using the Oracle ERP Adapter in OIC to update some Invoice staging tables in ERP Cloud. I accidently populated a field with a value that I didn't intend to, and now I am trying to re-update to set it back so it shows as <code>NULL</code> in the staging table. I'...
[ { "answer_id": 74405221, "author": "RiggsFolly", "author_id": 2310830, "author_profile": "https://Stackoverflow.com/users/2310830", "pm_score": 0, "selected": false, "text": "echo \"<div class='table-card'> \n <div class='table-num'>\n <div class='table'>\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74404984", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4408559/" ]
74,404,997
<p>i have defined the following custom class:</p> <pre><code>class Point(): def __init__(self, x, y, z): self.x = x self.y = y self.z = z </code></pre> <p>and I have a list of <code>Point</code> objects called <code>points</code>. I now need to plot this points in a 3D scatter. Is there a qu...
[ { "answer_id": 74405221, "author": "RiggsFolly", "author_id": 2310830, "author_profile": "https://Stackoverflow.com/users/2310830", "pm_score": 0, "selected": false, "text": "echo \"<div class='table-card'> \n <div class='table-num'>\n <div class='table'>\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74404997", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15673412/" ]
74,405,009
<p>I'm implementing the Logout action in an application. I want that when user clicks Logout, go to Login. When the user takes this path: Login -&gt; Home -&gt; Settings (where he clicks on Logout) -&gt; Login, when I press back, the app goes to the background and closes, which is the behavior I want.</p> <p>However, w...
[ { "answer_id": 74409047, "author": "Arthur Kasparian", "author_id": 19454251, "author_profile": "https://Stackoverflow.com/users/19454251", "pm_score": 1, "selected": false, "text": "// Getting your activity in a composable function\nval activity = (LocalContext.current as? Activity)\n\n...
2022/11/11
[ "https://Stackoverflow.com/questions/74405009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18215416/" ]
74,405,075
<p>I have this table and I have to sort the rest after subtraction of numbers from the started numbers 350 and break if the value is equal to 0 at the end</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>ID</th> <th>Numbers</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>10</td> </tr> <tr> <...
[ { "answer_id": 74409047, "author": "Arthur Kasparian", "author_id": 19454251, "author_profile": "https://Stackoverflow.com/users/19454251", "pm_score": 1, "selected": false, "text": "// Getting your activity in a composable function\nval activity = (LocalContext.current as? Activity)\n\n...
2022/11/11
[ "https://Stackoverflow.com/questions/74405075", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4624075/" ]
74,405,080
<p>I have the following dataframe and a vector of names.</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>name</th> <th>age</th> </tr> </thead> <tbody> <tr> <td>panda</td> <td>5</td> </tr> <tr> <td>polarbear</td> <td>7</td> </tr> <tr> <td>seahorse</td> <td>1</td> </tr> </tbody> </table> </di...
[ { "answer_id": 74409047, "author": "Arthur Kasparian", "author_id": 19454251, "author_profile": "https://Stackoverflow.com/users/19454251", "pm_score": 1, "selected": false, "text": "// Getting your activity in a composable function\nval activity = (LocalContext.current as? Activity)\n\n...
2022/11/11
[ "https://Stackoverflow.com/questions/74405080", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14495288/" ]
74,405,116
<p>I was practicing array problems and I stuck by this one:</p> <p>Given a declaration of 2D array:</p> <pre><code>int a[][2] = { {2,2}, {3,3}, {4,4} }; </code></pre> <p>write a nested for loop to print all the values of a.</p> <p>First, since 2D array is an array of rows (means each element of this array is a row vect...
[ { "answer_id": 74405196, "author": "john", "author_id": 882003, "author_profile": "https://Stackoverflow.com/users/882003", "pm_score": 3, "selected": true, "text": "for (int& x[] : a) x int[2] auto for (int (&x)[2] : a) &x" }, { "answer_id": 74405709, "author": "doug", "...
2022/11/11
[ "https://Stackoverflow.com/questions/74405116", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17754131/" ]
74,405,122
<p>I am trying to make a factory function that will be able to create objects derived from a base class using different constructors based on the given parameters. With some help from other posts here I have been able to make an example that works for a constructor that takes no parameters, but I cannot find a solution...
[ { "answer_id": 74406217, "author": "numzero", "author_id": 10992795, "author_profile": "https://Stackoverflow.com/users/10992795", "pm_score": 1, "selected": false, "text": "using Factory = BaseFactory<BaseObject, void(), void(int)>; using X = Y typedef Y X ret(args) void template <typen...
2022/11/11
[ "https://Stackoverflow.com/questions/74405122", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4924581/" ]
74,405,123
<p>I have a large data frame with 10000000 rows and 150 columns. in the dataset, there are specific rows that contain all zeros or all NAs or a combination of zeros and NAs. the sample dataframe is shown below</p> <pre><code>df &lt;- data.frame(x = c('q', 'w', 'e', 'r','t', 'y'), a = c('a','b','c','d','e','f'), b = c(...
[ { "answer_id": 74405421, "author": "langtang", "author_id": 4447540, "author_profile": "https://Stackoverflow.com/users/4447540", "pm_score": 3, "selected": true, "text": "apply() all() na.omit() df[apply(df[,-c(1,2)],1,\\(r) all(na.omit(r)!=0)),]\n x a b c d e f\n2 w b 1 3 2 5 7\n3...
2022/11/11
[ "https://Stackoverflow.com/questions/74405123", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9247629/" ]
74,405,133
<p>I have a question about deleting any string within [].</p> <p>My text data has a pattern that always start with [author name, date] or so.</p> <p>For example, &quot;[Report by Jeongho Choi: &quot;Korea's Alarms Its Citizens&quot;] [Text] Of all ~~&quot;</p> <p>The two text within [] is useless, so I want to delete [...
[ { "answer_id": 74405421, "author": "langtang", "author_id": 4447540, "author_profile": "https://Stackoverflow.com/users/4447540", "pm_score": 3, "selected": true, "text": "apply() all() na.omit() df[apply(df[,-c(1,2)],1,\\(r) all(na.omit(r)!=0)),]\n x a b c d e f\n2 w b 1 3 2 5 7\n3...
2022/11/11
[ "https://Stackoverflow.com/questions/74405133", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19907346/" ]
74,405,172
<p>I`m looking for a solution to adding social media icons to the Elementor-Menu in WordPress. Any Ideas?</p> <p>I could take a Burger Icon and add a pop up on top, but that would be my last option for me.</p>
[ { "answer_id": 74405421, "author": "langtang", "author_id": 4447540, "author_profile": "https://Stackoverflow.com/users/4447540", "pm_score": 3, "selected": true, "text": "apply() all() na.omit() df[apply(df[,-c(1,2)],1,\\(r) all(na.omit(r)!=0)),]\n x a b c d e f\n2 w b 1 3 2 5 7\n3...
2022/11/11
[ "https://Stackoverflow.com/questions/74405172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18036759/" ]
74,405,173
<p>I'm creating new variables for classes, can I do something like this?</p> <p><code>for i in range(8): s{i} = card(i, &quot;hearth&quot;) #card is class</code></p> <p>Or is there some alternative? It would be very helpful if I could do it</p> <p>I want this output</p> <p><code>s0 = card(O, &quot;hearth&quot;) s1 = ca...
[ { "answer_id": 74405198, "author": "Samwise", "author_id": 3799759, "author_profile": "https://Stackoverflow.com/users/3799759", "pm_score": 1, "selected": false, "text": "s = [card(i, \"hearth\") for i in range(8)]\n s[0] s[1]" }, { "answer_id": 74405210, "author": "Philip09...
2022/11/11
[ "https://Stackoverflow.com/questions/74405173", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479289/" ]
74,405,180
<p>Tuple in python is immutable by design, so if we try to mutate a tuple object python emits following <code>TypeError</code> which make sense.</p> <pre><code>&gt;&gt;&gt; a = (1, 2, 3) &gt;&gt;&gt; a[0] = 12 Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; TypeError: 'tup...
[ { "answer_id": 74405544, "author": "tdelaney", "author_id": 642070, "author_profile": "https://Stackoverflow.com/users/642070", "pm_score": 4, "selected": true, "text": "PyTuple_Resize if (!PyTuple_Check(op) || Py_REFCNT(op) != 1) {\n .... error ....\n" }, { "answer_id": 74405...
2022/11/11
[ "https://Stackoverflow.com/questions/74405180", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6699447/" ]
74,405,200
<p>I have this problem where I want to first select 8 elements from a mysql database ordering by id DESC. Then I want to select another group of results (8 items), this time order by date DESC but the results here I want to ensure that they are not already on the fisrt query the one for ordering by id. The data is in t...
[ { "answer_id": 74405309, "author": "Joel Coehoorn", "author_id": 3043, "author_profile": "https://Stackoverflow.com/users/3043", "pm_score": 1, "selected": false, "text": "name id SELECT p.name \nFROM Person p\nWHERE NOT EXISTS (\n SELECT 1\n FROM (SELECT id FROM Person ORDER BY id...
2022/11/11
[ "https://Stackoverflow.com/questions/74405200", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17328148/" ]
74,405,256
<p>I want to count the occurence of each letter in a string and afterwards find out the letter with the highes occurrence and then return it as a char to the main method. Im just a beginner in coding so I would appreciate simple answers and solutions without adding anything from the library. Thank you for your time, I ...
[ { "answer_id": 74405405, "author": "Dmitry Bychenko", "author_id": 2319407, "author_profile": "https://Stackoverflow.com/users/2319407", "pm_score": 0, "selected": false, "text": "using System.Linq;\n\nvar result = s\n .GroupBy(c => c)\n .MaxBy(g => g.Count())\n .Key;\n Dictionary<cha...
2022/11/11
[ "https://Stackoverflow.com/questions/74405256", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479315/" ]
74,405,260
<p>Trying to rename a column in a Data frame. I used the same line to rename the column &quot;frames&quot;</p> <p>I want to rename a column from a &quot;0&quot; to &quot;Grad&quot;</p> <pre><code>result = pd.concat([table2, tableg3], axis=1) result.rename(columns = {&quot;0&quot; : &quot;Grad&quot;}, inplace = True) re...
[ { "answer_id": 74405720, "author": "Bhargav", "author_id": 15358800, "author_profile": "https://Stackoverflow.com/users/15358800", "pm_score": 0, "selected": false, "text": "\"0\" - string\n0 - var\n {0 : \"Grad\"} result.rename(columns = {0 : \"Grad\"}, inplace = True)\n" } ]
2022/11/11
[ "https://Stackoverflow.com/questions/74405260", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20222128/" ]
74,405,265
<p>I am trying to recolor bars on a bar graph based on certain conditions of the values. (are they positive or negative? are they above or below the threshold?). Because I have do to <strong>a lot</strong> of these plots, I thought the easiest way to do that would be to create a column with the colors I want the bars t...
[ { "answer_id": 74405565, "author": "Miff", "author_id": 3379675, "author_profile": "https://Stackoverflow.com/users/3379675", "pm_score": 3, "selected": true, "text": "scale_fill_identity color species test.plot.2<- test.plot.df2 %>% \n ggplot(aes(\n reorder(x = species, species_orde...
2022/11/11
[ "https://Stackoverflow.com/questions/74405265", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18497691/" ]
74,405,269
<p>I have been tinkering with various Excel functions (MATCH/INDEX, VLOOKUP, SUMPRODUCT, AGGREGATE, etc.) to deliver the result I need, but without success. So I'm hoping someone can tell me what the best way to do this is.</p> <p>From my sample data below I need a formula that will return the row number accurately wh...
[ { "answer_id": 74405565, "author": "Miff", "author_id": 3379675, "author_profile": "https://Stackoverflow.com/users/3379675", "pm_score": 3, "selected": true, "text": "scale_fill_identity color species test.plot.2<- test.plot.df2 %>% \n ggplot(aes(\n reorder(x = species, species_orde...
2022/11/11
[ "https://Stackoverflow.com/questions/74405269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17745420/" ]
74,405,271
<p><strong>APPLICATION FAILED TO START</strong></p> <hr /> <p>Parameter 1 of constructor in Kodlama.io.Devs.business.concretes.ProgrammingLanguageManager required a bean of type 'org.modelmapper.ModelMapper' that could not be found.</p> <p>Consider defining a bean of type 'org.modelmapper.ModelMapper' in your configura...
[ { "answer_id": 74405565, "author": "Miff", "author_id": 3379675, "author_profile": "https://Stackoverflow.com/users/3379675", "pm_score": 3, "selected": true, "text": "scale_fill_identity color species test.plot.2<- test.plot.df2 %>% \n ggplot(aes(\n reorder(x = species, species_orde...
2022/11/11
[ "https://Stackoverflow.com/questions/74405271", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479398/" ]
74,405,275
<p>Using playwright with typescript I want to select the following html element:</p> <pre><code>&lt;div class=&quot;ivu-select-dropdown&quot; style=&quot;position: absolute; min-width: 180px; will-change: top, left; transform-origin: center top; top: 135px; left: 339px;&quot; x-placement=&quot;bottom-start&quot;&gt; ...
[ { "answer_id": 74405565, "author": "Miff", "author_id": 3379675, "author_profile": "https://Stackoverflow.com/users/3379675", "pm_score": 3, "selected": true, "text": "scale_fill_identity color species test.plot.2<- test.plot.df2 %>% \n ggplot(aes(\n reorder(x = species, species_orde...
2022/11/11
[ "https://Stackoverflow.com/questions/74405275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1581090/" ]
74,405,284
<p>I am using the yeoman generator to generate the 'Office Add-in Task Pane project supporting single sign-on (localhost)' example. When I run the example in Word the user name and email are pasted into the document as expected. But when I switch account by using the button in the upper-right corner of Word <a href="ht...
[ { "answer_id": 74409306, "author": "Eugene Astafiev", "author_id": 1603351, "author_profile": "https://Stackoverflow.com/users/1603351", "pm_score": 1, "selected": true, "text": "getAccessToken getAccessToken OfficeJS" } ]
2022/11/11
[ "https://Stackoverflow.com/questions/74405284", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9905988/" ]
74,405,291
<p>In a data frame similar to the one below how can I create the Concatenation column based on the date of each activity?</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: left;">Activity A</th> <th style="text-align: center;">Activity B</th> <th style="text-align: right;">...
[ { "answer_id": 74405598, "author": "Joseph Konka", "author_id": 12444125, "author_profile": "https://Stackoverflow.com/users/12444125", "pm_score": 0, "selected": false, "text": " df = pd.read_csv('sample.csv')\n df\n Activity A Activity B Activity C\n 0 1/1/2022 1/15/2022 2...
2022/11/11
[ "https://Stackoverflow.com/questions/74405291", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10230971/" ]
74,405,306
<p>I have a MUI <code>DateTimePicker</code> in my react app, and I would like to disable the text input so that it is only possible to change the date/time by clicking on the icon and launching the overlays to edit them.</p> <p>I have tried a few things, such as adding <code>disabled={true}</code> to the <code>renderIn...
[ { "answer_id": 74405802, "author": "Ricky Clark III", "author_id": 16505781, "author_profile": "https://Stackoverflow.com/users/16505781", "pm_score": 0, "selected": false, "text": "<DateTimePicker\n label=\"Date&Time picker\"\n value={value}\n onChange={handleChange}\n renderInput={...
2022/11/11
[ "https://Stackoverflow.com/questions/74405306", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343159/" ]
74,405,314
<p>I've got a problem with centering in another tag . I have no problem with horizontal align in a flexox or in a old fashion way but vertical is still a problem for me.</p> <pre><code>div { display: inline-block; background-color: green; width: 130px; height: 45px; margin-top: 20px; text-...
[ { "answer_id": 74405802, "author": "Ricky Clark III", "author_id": 16505781, "author_profile": "https://Stackoverflow.com/users/16505781", "pm_score": 0, "selected": false, "text": "<DateTimePicker\n label=\"Date&Time picker\"\n value={value}\n onChange={handleChange}\n renderInput={...
2022/11/11
[ "https://Stackoverflow.com/questions/74405314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479364/" ]
74,405,367
<pre><code> cy.get(':nth-child(1) &gt; .form-control').type(userName) cy.get(':nth-child(2) &gt; .form-control').type(email) cy.get(':nth-child(3) &gt; .form-control').type(password) </code></pre> <p>how to get userName, email, password data?</p> <p>in cypress where:</p> <p>userName</p> <p>email</p>...
[ { "answer_id": 74405802, "author": "Ricky Clark III", "author_id": 16505781, "author_profile": "https://Stackoverflow.com/users/16505781", "pm_score": 0, "selected": false, "text": "<DateTimePicker\n label=\"Date&Time picker\"\n value={value}\n onChange={handleChange}\n renderInput={...
2022/11/11
[ "https://Stackoverflow.com/questions/74405367", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479451/" ]
74,405,380
<p>this function maps letters onto another letter. Could someone explain to me what does the <code>!! 0</code> mean here in the function?</p> <pre><code>findGuess letter guessList | length guessList == 0 = (letter, letter) | letter == snd (guessList !! 0) || letter == fst (guessList !! 0) = guessList !! 0 | othe...
[ { "answer_id": 74405475, "author": "chepner", "author_id": 1126841, "author_profile": "https://Stackoverflow.com/users/1126841", "pm_score": 3, "selected": false, "text": "(!!) guessList !! 0 head guessList guessList findGuess letter [] = (letter, letter)\nfindGuess letter ((c1, c2):rest...
2022/11/11
[ "https://Stackoverflow.com/questions/74405380", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20425217/" ]
74,405,386
<p>I'm trying to display a different background color in wpf based on datatrigger and a converter.</p> <pre><code>&lt;dxg:TableView.RowStyle&gt; &lt;Style TargetType=&quot;{x:Type dxg:RowControl}&quot;&gt; &lt;Setter Property=&quot;Height&quot; Value=&quot;{StaticResource examRowHeight}&quot; /&gt; ...
[ { "answer_id": 74405475, "author": "chepner", "author_id": 1126841, "author_profile": "https://Stackoverflow.com/users/1126841", "pm_score": 3, "selected": false, "text": "(!!) guessList !! 0 head guessList guessList findGuess letter [] = (letter, letter)\nfindGuess letter ((c1, c2):rest...
2022/11/11
[ "https://Stackoverflow.com/questions/74405386", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8757789/" ]
74,405,388
<p>I have a DataFrame that contains objects and items belonging to the objects. Items have additional data (not shown) and multiple items can belong to one object.</p> <pre class="lang-py prettyprint-override"><code>df = pd.DataFrame( { &quot;object_id&quot;: [1, 1, 1, 1, 1, 2, 2, 2], &quot;item_id&...
[ { "answer_id": 74405522, "author": "Vahid the Great", "author_id": 11411596, "author_profile": "https://Stackoverflow.com/users/11411596", "pm_score": -1, "selected": false, "text": "df = (df.set_index('item_id')\n .groupby('object_id')['item_count']\n .apply(lambda x: x.re...
2022/11/11
[ "https://Stackoverflow.com/questions/74405388", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11486611/" ]
74,405,397
<p>Good Evening,</p> <p>I fitted a four parameter logistic curve using R nls function with the following equation:</p> <p>y = alpha + lambda/(1+exp(-beta(x-mu))</p> <p>I would like to determine the maximum slope of this curve and for this I would like to compute the derivative of the function. Do you know how I can fin...
[ { "answer_id": 74406955, "author": "G. Grothendieck", "author_id": 516548, "author_profile": "https://Stackoverflow.com/users/516548", "pm_score": 1, "selected": false, "text": "fder optimize fder <- function(x, alpha = 1, lambda = 2, beta = 3, mu = 4) {}\nbody(fder) <- D(expression(alph...
2022/11/11
[ "https://Stackoverflow.com/questions/74405397", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479448/" ]
74,405,403
<p>I'm hosting my bot online and sometimes messages take time to edit their own View components which is fine. The problem is when i modify a view by calling</p> <pre><code>await message.edit(view=...) </code></pre> <p>, the new button/select components are displayed instantly but their callbacks are not operational be...
[ { "answer_id": 74406955, "author": "G. Grothendieck", "author_id": 516548, "author_profile": "https://Stackoverflow.com/users/516548", "pm_score": 1, "selected": false, "text": "fder optimize fder <- function(x, alpha = 1, lambda = 2, beta = 3, mu = 4) {}\nbody(fder) <- D(expression(alph...
2022/11/11
[ "https://Stackoverflow.com/questions/74405403", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19016760/" ]
74,405,426
<p>Using just HTML is not possible. I need to download using a callback function, but it's not working.</p> <p>I need to encapsulate the button with an element like:</p> <pre><code>&lt;a href=&quot;https://path.to.your.file.com&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt; &lt;button&gt;Click&lt;/bu...
[ { "answer_id": 74406195, "author": "Alexandr Petrov", "author_id": 19905763, "author_profile": "https://Stackoverflow.com/users/19905763", "pm_score": 2, "selected": true, "text": "function downloadImage(url, name = 'newImage') {\n return fetch(url)\n .then(resp => resp.blob())...
2022/11/11
[ "https://Stackoverflow.com/questions/74405426", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19115954/" ]
74,405,427
<p>I am trying to do semi forecasting with BigQuery. I have minutely data of users, and a minute multiplier (pre calculated based on past events) that should predict the next minute's value. I created a dataset with all future minutes for the relevant timeframe, future minute will have null value, it looks like that:</...
[ { "answer_id": 74406195, "author": "Alexandr Petrov", "author_id": 19905763, "author_profile": "https://Stackoverflow.com/users/19905763", "pm_score": 2, "selected": true, "text": "function downloadImage(url, name = 'newImage') {\n return fetch(url)\n .then(resp => resp.blob())...
2022/11/11
[ "https://Stackoverflow.com/questions/74405427", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11504953/" ]
74,405,429
<p>I'm trying to extract the country codes and move them into a new column.</p> <p><strong>Example data</strong></p> <pre><code>data &lt;- data.frame(phone = c(&quot;+1 800 000 000&quot;, &quot;+257000000000&quot;, &quot;+91-00 000 00&quot;, &quot;200000 000&quot;)) </code></pre> <p>I only have a start so far. For inst...
[ { "answer_id": 74406195, "author": "Alexandr Petrov", "author_id": 19905763, "author_profile": "https://Stackoverflow.com/users/19905763", "pm_score": 2, "selected": true, "text": "function downloadImage(url, name = 'newImage') {\n return fetch(url)\n .then(resp => resp.blob())...
2022/11/11
[ "https://Stackoverflow.com/questions/74405429", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13874036/" ]
74,405,441
<p>I think that at this point I'm able to tell you the author name and accurate posting date for this question elsewhere online if you give me a piece of the error description related to Laravel's Page Expired 419 on mobile phones. So yeah, that's what this question is about too. How do I solve it?</p> <ul> <li>I found...
[ { "answer_id": 74442466, "author": "Vlad", "author_id": 20382571, "author_profile": "https://Stackoverflow.com/users/20382571", "pm_score": 2, "selected": false, "text": "handle app/Http/Middleware/VerifyCsrfToken.php public function handle($request, Closure $next)\n{\n try {\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74405441", "https://Stackoverflow.com", "https://Stackoverflow.com/users/213633/" ]
74,405,446
<p>My code has to call a few web services. To speed that up, I want to do that in parallel. However, the results of those services must be executed <em>before</em> <code>Promise.all()</code> resolves. Here's my current code:</p> <pre class="lang-js prettyprint-override"><code>const awaitors = []; if (!targetLocation) ...
[ { "answer_id": 74405499, "author": "Quentin", "author_id": 19068, "author_profile": "https://Stackoverflow.com/users/19068", "pm_score": 0, "selected": false, "text": "const promiseTargetLocation = getStorageLocation(storageID);\nconst promiseCarrierToMove = anotherSimilarCall();\nconst ...
2022/11/11
[ "https://Stackoverflow.com/questions/74405446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10406502/" ]
74,405,450
<p>Consider I have near 0% experience with typescript and now a little Hilla experience (which is going great!) please be gentle with me and provide a simple Tree Grid example.</p> <p>I was hoping to do something easy like:</p> <pre><code>export class GroceryView extends View { display a lovely tree view of master de...
[ { "answer_id": 74407968, "author": "Jouni", "author_id": 396573, "author_profile": "https://Stackoverflow.com/users/396573", "pm_score": 1, "selected": false, "text": "View LitElement LitElement View LitElement View LitElement View createRenderRoot() this this.attachShadow() GroceryView ...
2022/11/11
[ "https://Stackoverflow.com/questions/74405450", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479500/" ]
74,405,473
<p>i am trying to create a folder in the downloads folder using uwp, and in this folder i want to create pdf files. this is what is supposed to happen: the first time the button is clicked, the folder is created and so is a pdf file corresponding to a client. on the second button click, the folder must be checked to be...
[ { "answer_id": 74406065, "author": "Jason", "author_id": 1338, "author_profile": "https://Stackoverflow.com/users/1338", "pm_score": 1, "selected": false, "text": "StorageFolder newFolder = await DownloadsFolder.CreateFolderAsync(foldername, CreationCollisionOption.OpenIfExists);\n" } ...
2022/11/11
[ "https://Stackoverflow.com/questions/74405473", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10740284/" ]
74,405,519
<p>I am trying to create a simple binary tree capable of holding data of multiple types. The binary tree will be hard coded with data (compile time could work for this). Here is my code:</p> <pre class="lang-cpp prettyprint-override"><code>class BTree { template &lt;typename T&gt; struct Node { Node* left_ = nu...
[ { "answer_id": 74405675, "author": "Ben Voigt", "author_id": 103167, "author_profile": "https://Stackoverflow.com/users/103167", "pm_score": 2, "selected": true, "text": "struct NodeBase\n{\n NodeBase* left = nullptr;\n NodeBase* right = nullptr;\n};\n\ntemplate <typename T>\nstruc...
2022/11/11
[ "https://Stackoverflow.com/questions/74405519", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17968700/" ]
74,405,523
<p>Hello im trying to install phalcon and devtools but something is going wrong. I did everything I saw in tutorials installed phalcon, changed the php.ini, intalled devtools but it still doesn't no work.</p> <p><a href="https://i.stack.imgur.com/e4Urw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/...
[ { "answer_id": 74405675, "author": "Ben Voigt", "author_id": 103167, "author_profile": "https://Stackoverflow.com/users/103167", "pm_score": 2, "selected": true, "text": "struct NodeBase\n{\n NodeBase* left = nullptr;\n NodeBase* right = nullptr;\n};\n\ntemplate <typename T>\nstruc...
2022/11/11
[ "https://Stackoverflow.com/questions/74405523", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20399502/" ]
74,405,528
<p>Say I have a directive that has a selector of <code>selector: '[example-directive]'</code>. Is there a way to pass in a second input to the directive? I've been able to succeed by changing the selector to <code>selector: '[exampleDirective]'</code> and prefixing the input with exampleDirective, but I'm wondering if ...
[ { "answer_id": 74405675, "author": "Ben Voigt", "author_id": 103167, "author_profile": "https://Stackoverflow.com/users/103167", "pm_score": 2, "selected": true, "text": "struct NodeBase\n{\n NodeBase* left = nullptr;\n NodeBase* right = nullptr;\n};\n\ntemplate <typename T>\nstruc...
2022/11/11
[ "https://Stackoverflow.com/questions/74405528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11489532/" ]
74,405,529
<p>How do I add the same function to all plus button so that each time I click on any of these plus buttons, the number will increase by 1 ,in this case, 12 will become 13 then 14 etc.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre ...
[ { "answer_id": 74405675, "author": "Ben Voigt", "author_id": 103167, "author_profile": "https://Stackoverflow.com/users/103167", "pm_score": 2, "selected": true, "text": "struct NodeBase\n{\n NodeBase* left = nullptr;\n NodeBase* right = nullptr;\n};\n\ntemplate <typename T>\nstruc...
2022/11/11
[ "https://Stackoverflow.com/questions/74405529", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20464992/" ]
74,405,574
<p>How to install the latest python version <code>3.11.0</code> on ArchLinux through pacman?</p> <p><a href="https://wiki.archlinux.org/title/Python#Other_versions" rel="nofollow noreferrer">ArchLinux wiki</a> says current version is <code>3.10</code>, although python 3.11 has been officially released.</p> <p>When runn...
[ { "answer_id": 74405825, "author": "Imagine Eyes", "author_id": 14091076, "author_profile": "https://Stackoverflow.com/users/14091076", "pm_score": 2, "selected": true, "text": "yay -S python311\n" } ]
2022/11/11
[ "https://Stackoverflow.com/questions/74405574", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8534073/" ]
74,405,584
<p>Im trying to build a qsort function that will sort words in my array of pointers **allwords, uniquely. But im going wrong somewhere, what am i doing wrong? (very new to C)</p> <pre><code>static int intcmp(const void *a, const void *b) { const int *left = a; const int *right = b; return *left - *right;...
[ { "answer_id": 74405723, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 2, "selected": false, "text": "static int intcmp(const void *a, const void *b) {\n const char *left = *( const char ** )a;\n const...
2022/11/11
[ "https://Stackoverflow.com/questions/74405584", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20352716/" ]
74,405,595
<p>I have this page like image below: <a href="https://i.stack.imgur.com/nrRZJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nrRZJ.png" alt="table" /></a></p> <ul> <li>The filter has a dynamic width and is an external angular component</li> <li>the table is inside the &quot;parent&quot; component</...
[ { "answer_id": 74406671, "author": "bcngr", "author_id": 5220895, "author_profile": "https://Stackoverflow.com/users/5220895", "pm_score": 1, "selected": false, "text": "display: flex overflow: auto <div class=\"main\">\n <div class=\"filters-container\">\n <span>Filters</span>\n </...
2022/11/11
[ "https://Stackoverflow.com/questions/74405595", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19974585/" ]
74,405,630
<p>List1 and List2 are the 2 lists which I have, expected output should look like list 3, How can I use LINQ in c# to achieve this.</p> <pre><code>Input List1 = {&quot;test1&quot;, &quot;test2&quot;,&quot;test3&quot;}; Input List2 = {{&quot;name&quot;: &quot;test1&quot;, &quot;value&quot;:1},{&quot;name&quot;: &quot;te...
[ { "answer_id": 74405701, "author": "Dmitry Bychenko", "author_id": 2319407, "author_profile": "https://Stackoverflow.com/users/2319407", "pm_score": 2, "selected": false, "text": "List2 List1 Where Contains var List3 = List2\n .Where(item => List1.Contains(item.name))\n .ToList();\n" ...
2022/11/11
[ "https://Stackoverflow.com/questions/74405630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9062892/" ]
74,405,652
<p>please help me to get solve this below scenario. I am new to the SQL server management</p> <p>Table</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Request</th> <th>Obj</th> </tr> </thead> <tbody> <tr> <td>123</td> <td>483</td> </tr> <tr> <td>123</td> <td>456</td> </tr> <tr> <td>456</td>...
[ { "answer_id": 74405701, "author": "Dmitry Bychenko", "author_id": 2319407, "author_profile": "https://Stackoverflow.com/users/2319407", "pm_score": 2, "selected": false, "text": "List2 List1 Where Contains var List3 = List2\n .Where(item => List1.Contains(item.name))\n .ToList();\n" ...
2022/11/11
[ "https://Stackoverflow.com/questions/74405652", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16959411/" ]
74,405,657
<p>I have a dataframe where numbers for the variable <code>value</code> are the total funding amounts of specific programs that apply throughout a certain region. Because the funding amounts are reported as totals, the individual amount received by an area cannot be determined, and the total amount is therefore display...
[ { "answer_id": 74405710, "author": "dvera", "author_id": 18484551, "author_profile": "https://Stackoverflow.com/users/18484551", "pm_score": 3, "selected": true, "text": "library(tidyverse)\n\ndf %>%\n group_by(program) %>%\n mutate(new_value = first(value) / n())\n" }, { "answ...
2022/11/11
[ "https://Stackoverflow.com/questions/74405657", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18574641/" ]
74,405,666
<p>I have a <code>ButtonTypes</code> class:</p> <pre><code>class ButtonTypes: def __init__(self): self.textType = &quot;text&quot; self.callbackType = &quot;callback&quot; self.locationType = &quot;location&quot; self.someAnotherType = &quot;someAnotherType&quot; </code></pre> <p>And...
[ { "answer_id": 74405732, "author": "chepner", "author_id": 1126841, "author_profile": "https://Stackoverflow.com/users/1126841", "pm_score": 1, "selected": false, "text": "from enum import Enum\n\nclass ButtonType:\n TEXT = \"text\"\n CALLBACK = \"callback\"\n LOCATION = \"locat...
2022/11/11
[ "https://Stackoverflow.com/questions/74405666", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18196171/" ]
74,405,739
<p><img src="https://i.stack.imgur.com/Jr3z1.png" alt="enter image description here" /></p> <p>How do I use the QuantityFormula column to iterate over the column headers. For example to find</p> <ol> <li>where count (from QuantityFormula) == count (from headers.</li> <li>Take the value of that row</li> <li>To produce a...
[ { "answer_id": 74405732, "author": "chepner", "author_id": 1126841, "author_profile": "https://Stackoverflow.com/users/1126841", "pm_score": 1, "selected": false, "text": "from enum import Enum\n\nclass ButtonType:\n TEXT = \"text\"\n CALLBACK = \"callback\"\n LOCATION = \"locat...
2022/11/11
[ "https://Stackoverflow.com/questions/74405739", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479479/" ]
74,405,775
<p>I'm writing my first <strong>QT5</strong> app... this uses a third party map library (<a href="https://github.com/AmonRaNet/QGeoView" rel="nofollow noreferrer">QGeoView</a>). I need to draw an object (something like a stylized airplane) over this map. Following the library coding guideline I derived from the base cl...
[ { "answer_id": 74409979, "author": "Stephen Quan", "author_id": 881441, "author_profile": "https://Stackoverflow.com/users/881441", "pm_score": 1, "selected": false, "text": "translate( -origin.x, -origin.y );\nrotate( angle );\nscale( scale.x, scale y);\ntranslate( origin.x, origin.y ...
2022/11/11
[ "https://Stackoverflow.com/questions/74405775", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3058368/" ]
74,405,803
<p>I have a problem with understanding fixed-point arithmetic and its implementation in C++. I was trying to understand this code:</p> <pre><code>#define scale 16 int DoubleToFixed(double num){ return num * ((double)(1 &lt;&lt; scale)); } double FixedToDoble(int num){ return (double) num / (double)(1 &lt;&lt;...
[ { "answer_id": 74405978, "author": "Eric Postpischil", "author_id": 298225, "author_profile": "https://Stackoverflow.com/users/298225", "pm_score": 1, "selected": false, "text": "scale DoubleToFixed FixedToDouble IntToFixed DoubleToFixed int" }, { "answer_id": 74406032, "auth...
2022/11/11
[ "https://Stackoverflow.com/questions/74405803", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14501168/" ]
74,405,835
<p>I was updating my bot to discord.js 13V on the update when I mention somone I trhows me <a href="https://i.stack.imgur.com/DjkeR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DjkeR.png" alt="enter image description here" /></a></p> <p>this is the code im husing `</p> <pre><code>const galletita...
[ { "answer_id": 74405978, "author": "Eric Postpischil", "author_id": 298225, "author_profile": "https://Stackoverflow.com/users/298225", "pm_score": 1, "selected": false, "text": "scale DoubleToFixed FixedToDouble IntToFixed DoubleToFixed int" }, { "answer_id": 74406032, "auth...
2022/11/11
[ "https://Stackoverflow.com/questions/74405835", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11357461/" ]
74,405,837
<p>I have the following Main class that takes a dataStore as a constructor parameter for Foo class.</p> <p>In the Main class I want to pass to Foo only one constructor, 'dataStore', but in the Foo constructor class I want to initialize besides dataStore also a couple of other services.</p> <pre><code>public class Main ...
[ { "answer_id": 74405978, "author": "Eric Postpischil", "author_id": 298225, "author_profile": "https://Stackoverflow.com/users/298225", "pm_score": 1, "selected": false, "text": "scale DoubleToFixed FixedToDouble IntToFixed DoubleToFixed int" }, { "answer_id": 74406032, "auth...
2022/11/11
[ "https://Stackoverflow.com/questions/74405837", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11424192/" ]
74,405,839
<p>I have a table Table name - commands</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>id</th> <th>name</th> <th>status</th> <th>group_id</th> </tr> </thead> <tbody> <tr> <td>id - number</td> <td>name - string</td> <td>status - 0 or 1</td> <td>group_id - number</td> </tr> </tbody> </table>...
[ { "answer_id": 74406192, "author": "ahmed", "author_id": 12705912, "author_profile": "https://Stackoverflow.com/users/12705912", "pm_score": 0, "selected": false, "text": "EXISTS SELECT id, name, status, group_id\nFROM table_name T\nWHERE EXISTS(SELECT 1 FROM table_name D WHERE D.group_i...
2022/11/11
[ "https://Stackoverflow.com/questions/74405839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479481/" ]
74,405,840
<p>I have fragment with list of notes. When user clicks on a note, they open fragment with note page. I use navigation UI and NavOptions to navigate:</p> <pre class="lang-kotlin prettyprint-override"><code> fun toNotePage() { val navOptions: NavOptions = NavOptions.Builder() .setPopUpTo(R.id.navi...
[ { "answer_id": 74406192, "author": "ahmed", "author_id": 12705912, "author_profile": "https://Stackoverflow.com/users/12705912", "pm_score": 0, "selected": false, "text": "EXISTS SELECT id, name, status, group_id\nFROM table_name T\nWHERE EXISTS(SELECT 1 FROM table_name D WHERE D.group_i...
2022/11/11
[ "https://Stackoverflow.com/questions/74405840", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10743655/" ]
74,405,846
<pre><code>data = {'gems': [{'name': 'garnet', 'colour': 'red', 'month': 'January'}, {'name': 'emerald', 'colour': 'green', 'month': 'May'}, {'name': &quot;cat's eye&quot;, 'colour': 'yellow', 'month': 'June'}, {'name': 'sardonyx', 'colour': 'red', 'month': 'August'}, {'name': 'peridot', 'colour': 'green', 'm...
[ { "answer_id": 74405884, "author": "Celius Stingher", "author_id": 11897007, "author_profile": "https://Stackoverflow.com/users/11897007", "pm_score": 2, "selected": true, "text": "[x['month'] for x in data['gems'] if x['colour'] == 'red']\n ['January', 'August', 'December']\n" }, { ...
2022/11/11
[ "https://Stackoverflow.com/questions/74405846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479727/" ]
74,405,847
<p>I have this object in php:</p> <pre><code>$object = [ [ {&quot;catalogo&quot;: &quot;C400047&quot;, &quot;rfc_inf_aval&quot;: &quot;CIS981002NK4&quot;, }, {&quot;catalogo&quot;: &quot;C140064&quot;,&quot;rfc_inf_aval&quot;: &quot;MZT8501014S6&quot;,}, {&quot;catalogo&quot;: &quot;C400047...
[ { "answer_id": 74406053, "author": "Foobar", "author_id": 19625365, "author_profile": "https://Stackoverflow.com/users/19625365", "pm_score": 1, "selected": false, "text": " for ($i=0; $i < count($object); $i++) { \n $k = $object[$i]->catalogo.'|'.$object[$i]->rfc_inf_aval;\n $re...
2022/11/11
[ "https://Stackoverflow.com/questions/74405847", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12476660/" ]
74,405,870
<p>Clicking the red exit button removes the player from the forEach code, but not for loop.</p> <p>You click the blue button, next you click the red exit button to remove the player.</p> <p>How would I get the for loop code to work the same as the forEach code?</p> <p>This code is working.</p> <p><a href="https://jsfid...
[ { "answer_id": 74405911, "author": "Salim", "author_id": 4478946, "author_profile": "https://Stackoverflow.com/users/4478946", "pm_score": 3, "selected": true, "text": "wrappers[i].length wrappers.length i function removePlayerHandler(evt) {\nconst el = evt.target;\nconst container = e...
2022/11/11
[ "https://Stackoverflow.com/questions/74405870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17631451/" ]
74,405,878
<p>Given I have a string list in Python:</p> <pre><code>list = [&quot; banana &quot;, &quot;Cherry&quot;, &quot;apple&quot;] </code></pre> <p>I want to sort this list to be case insensitive AND ignore the whitespaces. So like this:</p> <pre><code>list = [&quot;apple&quot;, &quot; banana &quot;, &quot;Cherry&quo...
[ { "answer_id": 74405901, "author": "azro", "author_id": 7212686, "author_profile": "https://Stackoverflow.com/users/7212686", "pm_score": 2, "selected": false, "text": "values = [\" banana \", \"Cherry\", \"apple\"]\nprint(sorted(values, key=lambda x: x.replace(' ', '').casefold()))\...
2022/11/11
[ "https://Stackoverflow.com/questions/74405878", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14648381/" ]
74,405,895
<p>This is the first time I have had to use a SQL pivot table, so I'm not very proficient in getting results with the method, my pivot table is not returning the results I expected and I don't know why...</p> <p>Here is my instruction:</p> <p>&quot;Create a sql that will show the total number create [ddateCreated] of p...
[ { "answer_id": 74406397, "author": "John Cappelletti", "author_id": 1570000, "author_profile": "https://Stackoverflow.com/users/1570000", "pm_score": 1, "selected": false, "text": "Select * \n From (\n select left(datename(month, b.dDateCreated),3) as [Month] , -- Notice Jan,Feb,M...
2022/11/11
[ "https://Stackoverflow.com/questions/74405895", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15321226/" ]
74,405,899
<pre class="lang-py prettyprint-override"><code>while True: try: age = int(input(&quot;Enter your age: &quot;)) if age &lt;= 0: raise TypeError(&quot;Enter a number greater than zero&quot;) except ValueError: print(&quot;Invalid age. Must be a number.&quot;) except TypeEr...
[ { "answer_id": 74406397, "author": "John Cappelletti", "author_id": 1570000, "author_profile": "https://Stackoverflow.com/users/1570000", "pm_score": 1, "selected": false, "text": "Select * \n From (\n select left(datename(month, b.dDateCreated),3) as [Month] , -- Notice Jan,Feb,M...
2022/11/11
[ "https://Stackoverflow.com/questions/74405899", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20076579/" ]
74,405,914
<p>As mentioned in the title, I want to pass a function as an argument for another function in Julia. However, I want the passed function to be partially specified, such as:</p> <pre><code>func1(a, b) = println(a, b) func2(a, func::Function) = func(a) func2(1, func1(b=0)) # returns an error </code></pre> <p>An altern...
[ { "answer_id": 74406304, "author": "Shayan", "author_id": 11747148, "author_profile": "https://Stackoverflow.com/users/11747148", "pm_score": 2, "selected": false, "text": "func1(a, b) func1 b b func1 b=0 julia> func1(a, b) = println(a, b)\nfunc1 (generic function with 1 method)\n\njulia...
2022/11/11
[ "https://Stackoverflow.com/questions/74405914", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13241995/" ]
74,405,944
<p>I have some large .csv files of experimental data. Their sizes are in the range 30MB-3GB. I have successfully read them in using pandas and have performed some other calculations on the data. As it stands I have an extremely long 1D array which I need to take the mean of.</p> <p>By default I used statistics.mean(arr...
[ { "answer_id": 74406304, "author": "Shayan", "author_id": 11747148, "author_profile": "https://Stackoverflow.com/users/11747148", "pm_score": 2, "selected": false, "text": "func1(a, b) func1 b b func1 b=0 julia> func1(a, b) = println(a, b)\nfunc1 (generic function with 1 method)\n\njulia...
2022/11/11
[ "https://Stackoverflow.com/questions/74405944", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479771/" ]
74,405,959
<p>I am trying to do checkboxes in the list view flutter but when I select one all are selected, I want to select only the one I click not all. also, How I can know which items are selected</p> <p>here is my code:</p> <pre class="lang-dart prettyprint-override"><code> bool value = false; ListView.separated( physics: ...
[ { "answer_id": 74406042, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 1, "selected": false, "text": "class ChWL extends StatefulWidget {\n const ChWL({super.key});\n\n @override\n State<ChWL> createState() ...
2022/11/11
[ "https://Stackoverflow.com/questions/74405959", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20059879/" ]
74,405,971
<p>I have a small piece of react code which renders a list of names and their related information like age and email addresses. The code compiles fine but I see that the data is rendered twice on the page. Here is how I call the component:</p> <pre><code>const peopleData : Person[] = [{id:1,name:&quot;John&quot;,age:22...
[ { "answer_id": 74406042, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 1, "selected": false, "text": "class ChWL extends StatefulWidget {\n const ChWL({super.key});\n\n @override\n State<ChWL> createState() ...
2022/11/11
[ "https://Stackoverflow.com/questions/74405971", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6365649/" ]
74,405,998
<p>I have dataframe&quot;:</p> <pre><code>a &lt;- data.frame(b_1=c(0.03,2.241,5.72,0.3566,1.344,2.5)) </code></pre> <p>and I want to use filter like</p> <pre><code>a &lt;- a %&gt;% filter(b_1 %in% 0.) </code></pre> <p>so I exclude row that value not in 0,... in b_1.</p> <p>But the code above was not working</p> <p>The ...
[ { "answer_id": 74406027, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 3, "selected": true, "text": "%in% str_detect library(dplyr)\nlibrary(stringr)\na %>%\n filter(str_detect(b_1, '^0\\\\.'))\n base R subset(a, grepl...
2022/11/11
[ "https://Stackoverflow.com/questions/74405998", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19912522/" ]
74,406,028
<p>I am using Copy Activity for migrating the Data from On-premises Database to the on-cloud Database. Here I am using Self-Hosted Integration Runtime for both on-premises and on-cloud databases.</p> <p>The Integration run-time is different for on-premises and on-cloud Databases.</p> <p>When I execute the pipeline, it ...
[ { "answer_id": 74406027, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 3, "selected": true, "text": "%in% str_detect library(dplyr)\nlibrary(stringr)\na %>%\n filter(str_detect(b_1, '^0\\\\.'))\n base R subset(a, grepl...
2022/11/11
[ "https://Stackoverflow.com/questions/74406028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15521809/" ]
74,406,034
<p>I have a data frame called <code>df</code> of which its value counts are the following:</p> <pre><code>df.Priority.value_counts() P3 39506 P2 3038 P4 1138 P1 1117 P5 252 Name: Priority, dtype: int64 </code></pre> <p>I am trying to create a balanced dataset called <code>df_balanced</code> from <c...
[ { "answer_id": 74406027, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 3, "selected": true, "text": "%in% str_detect library(dplyr)\nlibrary(stringr)\na %>%\n filter(str_detect(b_1, '^0\\\\.'))\n base R subset(a, grepl...
2022/11/11
[ "https://Stackoverflow.com/questions/74406034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10543310/" ]
74,406,051
<p>I have</p> <pre><code> event b 0 buy 4 1 nan 2 sell 5 3 buy 3 4 nan 5 nan 6 nan 7 sell 9 </code></pre> <p>After each <code>buy</code> we have a <code>sell</code> at some unknown distance. I need to count how many times I had a profit.</p> <p>In this case, first deal earn 1 (5-4), and second...
[ { "answer_id": 74406027, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 3, "selected": true, "text": "%in% str_detect library(dplyr)\nlibrary(stringr)\na %>%\n filter(str_detect(b_1, '^0\\\\.'))\n base R subset(a, grepl...
2022/11/11
[ "https://Stackoverflow.com/questions/74406051", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18813761/" ]
74,406,070
<p>I am running a simple query to get the max ID in a table: SELECT max(ID) FROM t WHERE m=345;</p> <p>Table (t) has 20 million records and 2000 distinct values for m. There is a primary key index on ID and an index on m. For some reason the explain plan shows an &quot;Index Scan Backward&quot; on the pk index rather t...
[ { "answer_id": 74408074, "author": "user20042973", "author_id": 20042973, "author_profile": "https://Stackoverflow.com/users/20042973", "pm_score": 2, "selected": false, "text": "m 10,000 20,000,000 / 2,000 m = 345 2,000 t_pkey t_pkey ID m = 345 t_m_index m = 345 ID 2,000 10,000 ID t_pke...
2022/11/11
[ "https://Stackoverflow.com/questions/74406070", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479692/" ]
74,406,086
<p>I want to shutdown PC with C without using system() functiom</p> <pre class="lang-c prettyprint-override"><code>#include &lt;stdio.h&gt; #include &lt;Windows.h&gt; int main(){ system(&quot;shutdown -s -t1&quot;); } </code></pre> <p>I'd like to find better way.</p>
[ { "answer_id": 74406169, "author": "Andreas Wenzel", "author_id": 12149471, "author_profile": "https://Stackoverflow.com/users/12149471", "pm_score": 3, "selected": true, "text": "ExitWindowsEx EWX_SHUTDOWN EWX_POWEROFF SE_SHUTDOWN_NAME" } ]
2022/11/11
[ "https://Stackoverflow.com/questions/74406086", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19486032/" ]
74,406,142
<p>Here below is a simple model for a pet shop...</p> <p><strong>Pet Class</strong></p> <pre><code>@Getter @Setter @EqualsAndHashCode @Embeddable public abstract class Pet { @Column(name = &quot;id&quot;, nullable = false) private Long id; @Column(name = &quot;name&quot;, nullable = false) private String name...
[ { "answer_id": 74427513, "author": "Avinash gupta", "author_id": 13614048, "author_profile": "https://Stackoverflow.com/users/13614048", "pm_score": 0, "selected": false, "text": "@OneToMany(cascade = CascadeType.ALL,fetch = FetchType.Lazy, mappedBy = \"pets\")\n@JsonIgnore\nprivate List...
2022/11/11
[ "https://Stackoverflow.com/questions/74406142", "https://Stackoverflow.com", "https://Stackoverflow.com/users/278659/" ]
74,406,157
<p>I have to sort columns in single row dataframe by descending order.</p> <p>dataframe looks like:</p> <pre><code> store_1 store_2 store_3 0 11 54 28 </code></pre> <p>result should be like:</p> <pre><code> store_2 store_3 store_1 0 54 28 11 </code></pre> <p>dataframe has mor...
[ { "answer_id": 74427513, "author": "Avinash gupta", "author_id": 13614048, "author_profile": "https://Stackoverflow.com/users/13614048", "pm_score": 0, "selected": false, "text": "@OneToMany(cascade = CascadeType.ALL,fetch = FetchType.Lazy, mappedBy = \"pets\")\n@JsonIgnore\nprivate List...
2022/11/11
[ "https://Stackoverflow.com/questions/74406157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17151635/" ]
74,406,163
<p>I'm new to HTML and javascript so need assistance with some of the basics....</p> <p>I have a javascript file with an array of elements:</p> <pre><code> export let options = [ { att1: &quot;opt1&quot;, att2: &quot;some val 1&quot;, att3: 1, att4: 5, }, { att1: &quo...
[ { "answer_id": 74406264, "author": "Thiago Zazirskas", "author_id": 15187365, "author_profile": "https://Stackoverflow.com/users/15187365", "pm_score": 0, "selected": false, "text": "Document.createElement()" }, { "answer_id": 74406313, "author": "babak abdzadeh", "author...
2022/11/11
[ "https://Stackoverflow.com/questions/74406163", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13706082/" ]
74,406,193
<p>I am trying to find an elegant way to inject an Interface into the <a href="https://github.com/microsoft/tsyringe" rel="nofollow noreferrer">tsyringe</a> container based on a given value. (string/enum/Symbol)</p> <p>This is how I would do it with a <code>switch..case</code> clause:</p> <pre><code>interface IColor{ ...
[ { "answer_id": 74406264, "author": "Thiago Zazirskas", "author_id": 15187365, "author_profile": "https://Stackoverflow.com/users/15187365", "pm_score": 0, "selected": false, "text": "Document.createElement()" }, { "answer_id": 74406313, "author": "babak abdzadeh", "author...
2022/11/11
[ "https://Stackoverflow.com/questions/74406193", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3253917/" ]
74,406,194
<p>I am trying to add items inside an empty array. I am using Dio package to send post request. All others codes are working fine. But Here I am stucj with this issue. I took an empty array. Then I tried setState function to add item to the empty list. I am printing the list every time it got pressed. But I am getting ...
[ { "answer_id": 74407362, "author": "Олександр Бабіч", "author_id": 8653915, "author_profile": "https://Stackoverflow.com/users/8653915", "pm_score": 0, "selected": false, "text": "List _lists = []; build build() _CreateDisplayMobileState" }, { "answer_id": 74411156, "author":...
2022/11/11
[ "https://Stackoverflow.com/questions/74406194", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14427714/" ]
74,406,201
<p><em>Hello guys, sorry for my English it's my second language</em>. So i have a Redux state which looks something like this:</p> <pre><code>const initialState = { user: null, isLoading: false, }; </code></pre> <p>And each time i load main screen(I'm using React Native), i take a user from local storage and put it...
[ { "answer_id": 74407362, "author": "Олександр Бабіч", "author_id": 8653915, "author_profile": "https://Stackoverflow.com/users/8653915", "pm_score": 0, "selected": false, "text": "List _lists = []; build build() _CreateDisplayMobileState" }, { "answer_id": 74411156, "author":...
2022/11/11
[ "https://Stackoverflow.com/questions/74406201", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19840456/" ]
74,406,205
<p>I have one assigment.</p> <p><a href="https://i.stack.imgur.com/rDVto.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rDVto.png" alt="assigment" /></a></p> <p>Question: Do someone know an easy solution? I found no way to solve the question.</p> <pre><code>Try it: DROP TABLE IF EXISTS #Employees;...
[ { "answer_id": 74406374, "author": "ahmed", "author_id": 12705912, "author_profile": "https://Stackoverflow.com/users/12705912", "pm_score": 2, "selected": true, "text": "STRING_AGG SELECT EmpLic, STRING_AGG(EmployeeID, ',') AS EmpsWithSimilarLic\nFROM\n(\n SELECT EmployeeID,\n ST...
2022/11/11
[ "https://Stackoverflow.com/questions/74406205", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20169539/" ]
74,406,212
<pre><code>const exampleArray = [ &quot;Can't predict now&quot;, &quot;Concentrate and ask again&quot;, &quot;Don't count on it&quot;, &quot;My reply is no&quot;, &quot;My sources say no&quot;, &quot;Outlook not so good&quot;, &quot;Very doubtful&quot; ] for (i = 0; i &lt; responses.length; i++) { i...
[ { "answer_id": 74406374, "author": "ahmed", "author_id": 12705912, "author_profile": "https://Stackoverflow.com/users/12705912", "pm_score": 2, "selected": true, "text": "STRING_AGG SELECT EmpLic, STRING_AGG(EmployeeID, ',') AS EmpsWithSimilarLic\nFROM\n(\n SELECT EmployeeID,\n ST...
2022/11/11
[ "https://Stackoverflow.com/questions/74406212", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,406,222
<p>I'm trying to import a self made package into a Java project. I got it to work once with some test class. So, when I tried to change it to an official, approved class name, the compiling stopped working. I can't explain why it worked, nor why the changes made it stop working.</p> <p>This is super annoying. So, I...
[ { "answer_id": 74407751, "author": "Progman", "author_id": 286934, "author_profile": "https://Stackoverflow.com/users/286934", "pm_score": 2, "selected": false, "text": "C:\\JavaPackages\\JavaPackage>jar cvf mypackage.jar classes\\com\\company\\functions\\\nadded manifest\nadding: class...
2022/11/11
[ "https://Stackoverflow.com/questions/74406222", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2832155/" ]
74,406,225
<p>In a master i have a global variable called &quot;READ_ONLY_ON_STATES&quot; which is a dictionary</p> <p><code>READ_ONLY_ON_STATES = {&quot;on_validation&quot;:[(&quot;readonly&quot;, True)]}</code></p> <p>This is the dictionary defined in the master.</p> <p>I now want to access this dictionary on my module and add ...
[ { "answer_id": 74407371, "author": "destripador", "author_id": 13738303, "author_profile": "https://Stackoverflow.com/users/13738303", "pm_score": 0, "selected": false, "text": " self.env['ir.config_parameter'].set_param('global_variable_name', self.comite.id)\n value1 = self.env['ir...
2022/11/11
[ "https://Stackoverflow.com/questions/74406225", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16306516/" ]
74,406,248
<p>Can someome explain to me how New Array, and Array works with this loop? Also, anyone knows if is possible of doing a array and inside this array a function? Because this way of doing seem kinda wrong considering POO and SRP Here`s the link of the exercise: <a href="https://www.codewars.com/kata/569e09850a8e371ab200...
[ { "answer_id": 74406372, "author": "Davi", "author_id": 20348848, "author_profile": "https://Stackoverflow.com/users/20348848", "pm_score": 1, "selected": false, "text": "let demo = (N,f) => {\n console.log(\n Array.from(Array(N), (_, i) => f(i)),\n )\n}\n" }, { "ans...
2022/11/11
[ "https://Stackoverflow.com/questions/74406248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20348848/" ]