qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,317,356
<p>I have defined a parameter called CODE.</p> <p>CODE is a list of strings, for instance 'Car', 'Bike', 'Boat' and so on.</p> <p>I need to execute SQL Querys that have the following pattern:</p> <pre><code>Select * from Table when CODE=Car </code></pre> <p>Or</p> <pre><code>Select * from Table when CODE=Bike </code></...
[ { "answer_id": 74317385, "author": "George", "author_id": 20345563, "author_profile": "https://Stackoverflow.com/users/20345563", "pm_score": 3, "selected": true, "text": "AND AND(logical_expression1, [logical_expression2, ...]) =IF(AND(B2=TRUE,D2>50),(E2*0.85),E2)" }, { "answer_...
2022/11/04
[ "https://Stackoverflow.com/questions/74317356", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11789082/" ]
74,317,378
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>#myElement { width: 50px; height: 300px; background: linear-gradient(0deg, #4a94cd, #fe49a6); display: flex; flex-dire...
[ { "answer_id": 74317385, "author": "George", "author_id": 20345563, "author_profile": "https://Stackoverflow.com/users/20345563", "pm_score": 3, "selected": true, "text": "AND AND(logical_expression1, [logical_expression2, ...]) =IF(AND(B2=TRUE,D2>50),(E2*0.85),E2)" }, { "answer_...
2022/11/04
[ "https://Stackoverflow.com/questions/74317378", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19312839/" ]
74,317,383
<p>I have <code>setLocale</code> function like below that I wrote in main.java file.</p> <p>How can I get the current <code>Locale</code> in the <code>setLocale</code> function?</p> <p>I use the <code>Locale</code> value to be able to include an &quot;if-else&quot; condition in another java file. This mean, I have 2 ta...
[ { "answer_id": 74317514, "author": "Annamalai Palanikumar", "author_id": 6784846, "author_profile": "https://Stackoverflow.com/users/6784846", "pm_score": 0, "selected": false, "text": "public Locale getLocale() {\n return getResources().getConfiguration().locale;\n}\n" }, { "...
2022/11/04
[ "https://Stackoverflow.com/questions/74317383", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20379528/" ]
74,317,387
<p>I want to sum all elements in a matrix <code>A</code> with dimension <code>n</code> times <code>n</code>. The matrix is symmetric and has 0s on the diagonal. The fastest way to do so that I have found is simply <code>sum(A)</code>. However this seems wasteful since it doesn't use the fact that I only need to calcula...
[ { "answer_id": 74317579, "author": "Sundar R", "author_id": 8127, "author_profile": "https://Stackoverflow.com/users/8127", "pm_score": 1, "selected": false, "text": "2 * sum(LowerTriangular(A))\n help?> LA.LowerTriangular\n LowerTriangular(A::AbstractMatrix)\n\n Construct a LowerTrian...
2022/11/04
[ "https://Stackoverflow.com/questions/74317387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4182596/" ]
74,317,392
<p>I have an array. As far as I know array keys are integers in javascript.</p> <pre class="lang-js prettyprint-override"><code>const array1 = ['a', 'b', 'c']; </code></pre> <p>When I get and log keys I get an array of integers.</p> <pre class="lang-js prettyprint-override"><code>console.log([...array1.keys()]); // O...
[ { "answer_id": 74317487, "author": "Felix Kling", "author_id": 218196, "author_profile": "https://Stackoverflow.com/users/218196", "pm_score": 3, "selected": true, "text": "Number Number(\"5\")\n+\"5\"\n for...in" }, { "answer_id": 74317508, "author": "Lakruwan Pathirage", ...
2022/11/04
[ "https://Stackoverflow.com/questions/74317392", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2572967/" ]
74,317,445
<p>I'm trying to select several 1000 rows from a remote database (where I can change nothing). I have (string) IDs to filter the needed data rows but I'm having performance issues.</p> <p>Using a simple sql select I can retrieve the data in ~4 s. `</p> <pre><code>SELECT myid, column2 FROM view1@remotedb WHE...
[ { "answer_id": 74317518, "author": "sankar", "author_id": 4017098, "author_profile": "https://Stackoverflow.com/users/4017098", "pm_score": 0, "selected": false, "text": "SELECT\n myid,\n column2\nFROM\n view1@remotedb\nWHERE\n myid IN ( SELECT myid from localdb)\n" } ]
2022/11/04
[ "https://Stackoverflow.com/questions/74317445", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11290225/" ]
74,317,473
<p><a href="https://en.wikipedia.org/wiki/Context_switch" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Context_switch</a></p> <blockquote> <p>In computing, a context switch is the process of storing the state of a process or thread, so that it can be restored and resume execution at a later point, and then r...
[ { "answer_id": 74318038, "author": "Dan Getz", "author_id": 3004881, "author_profile": "https://Stackoverflow.com/users/3004881", "pm_score": 2, "selected": false, "text": "read variable\nmutate value\nwrite result back to variable\n" } ]
2022/11/04
[ "https://Stackoverflow.com/questions/74317473", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19551894/" ]
74,317,484
<p>I am building a DevOps pipeline through yaml file which triggers a build for PR. Structure below:</p> <pre><code>pr: - dev2 stages: - stage: PR condition: and(eq(variables['Build.Reason'], 'PullRequest') displayName: prBuild jobs: - job: DowndSecureFile </code></pre> <p>if i raise a PR for the first time ...
[ { "answer_id": 74318038, "author": "Dan Getz", "author_id": 3004881, "author_profile": "https://Stackoverflow.com/users/3004881", "pm_score": 2, "selected": false, "text": "read variable\nmutate value\nwrite result back to variable\n" } ]
2022/11/04
[ "https://Stackoverflow.com/questions/74317484", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20263192/" ]
74,317,495
<p>In linux to create nested folders, irrespective of the intermediate folders exist or not can be done using the below command.</p> <pre><code>mkdir -p /home/user/some_non_existing_folder1/some_non_existing_folder2/somefolder </code></pre> <p>Similar to this i want to create a nested folder structure in S3 and place m...
[ { "answer_id": 74318038, "author": "Dan Getz", "author_id": 3004881, "author_profile": "https://Stackoverflow.com/users/3004881", "pm_score": 2, "selected": false, "text": "read variable\nmutate value\nwrite result back to variable\n" } ]
2022/11/04
[ "https://Stackoverflow.com/questions/74317495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2897115/" ]
74,317,496
<p>Is it possible to have one line assignments in structs as an example:</p> <pre><code>pub struct Pipe { texture: Texture2D, x: f32, y: f32, } </code></pre> <p>Instead have something like</p> <pre><code>pub struct Pipe { texture: Texture2D, (x, y): (f32, f32) } </code></pre> <p>Also an approa...
[ { "answer_id": 74317932, "author": "Oussama Gammoudi", "author_id": 3978243, "author_profile": "https://Stackoverflow.com/users/3978243", "pm_score": 0, "selected": false, "text": "pub struct Pipe {\n texture: Texture2D,\n pos: (f32, f32),\n}\n\nlet pipe = Pipe {\n texture: new_tex...
2022/11/04
[ "https://Stackoverflow.com/questions/74317496", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18784628/" ]
74,317,498
<p>Be the following DataFrame in pandas.</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>country</th> <th>ctry</th> <th>city</th> <th>cty</th> <th>other</th> <th>important</th> <th>other_important</th> <th>other_1</th> </tr> </thead> <tbody> <tr> <td>France</td> <td>France</td> <td>París</t...
[ { "answer_id": 74317522, "author": "jezrael", "author_id": 2901002, "author_profile": "https://Stackoverflow.com/users/2901002", "pm_score": 2, "selected": true, "text": "DataFrame.loc cols = ['other','other_1']\ndf.loc[df.country.ne(df.ctry) | df.city.ne(df.cty), cols] = np.nan\ndf = df...
2022/11/04
[ "https://Stackoverflow.com/questions/74317498", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18396935/" ]
74,317,543
<p>I have a dataframe that's very large (let's say 8 rows by 10,000 columns) that is filled with strings. I want to convert each unique string to a number and replace it with it.</p> <p>For example, if I had a dataframe:</p> <pre><code> X1 X2 X3 1 cat mouse rabbit 2 dog cat, dog dog </code></p...
[ { "answer_id": 74317601, "author": "Maël", "author_id": 13460602, "author_profile": "https://Stackoverflow.com/users/13460602", "pm_score": 4, "selected": true, "text": "match unique df[] <- sapply(df, match, unique(unlist(df)))\n\n#> df\n X1 X2 X3\n1 1 3 5\n2 2 4 2\n df[] <- matc...
2022/11/04
[ "https://Stackoverflow.com/questions/74317543", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1357015/" ]
74,317,567
<p>I need to create a comments board for an assignment that takes user inputs and displays them below the input field in a comments section, This is where I have gotten to but I am not sure how to finish off the script so that the inputted data is displayed</p> <p><div class="snippet" data-lang="js" data-hide="false" d...
[ { "answer_id": 74317819, "author": "Ankit", "author_id": 19757319, "author_profile": "https://Stackoverflow.com/users/19757319", "pm_score": 0, "selected": false, "text": "li let email = document.getElementById(\"email\");\nlet handle = document.getElementById(\"handle\");\nlet message =...
2022/11/04
[ "https://Stackoverflow.com/questions/74317567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20256918/" ]
74,317,614
<p>Stateless Widget</p> <pre><code>CustomButton.build( label: 'login', onPressed: () { presenter.login(context,username,password); }, ); </code></pre> <p>Presenter class (where we have all the logic)</p> <pre><code>class Presenter { Future&lt;void&gt; login(BuildContext context,String username, String passw...
[ { "answer_id": 74317819, "author": "Ankit", "author_id": 19757319, "author_profile": "https://Stackoverflow.com/users/19757319", "pm_score": 0, "selected": false, "text": "li let email = document.getElementById(\"email\");\nlet handle = document.getElementById(\"handle\");\nlet message =...
2022/11/04
[ "https://Stackoverflow.com/questions/74317614", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4646166/" ]
74,317,616
<p>In a form, I'm forming a string with java script and collecting it's result into a SQLite table the state of 12 checkboxes, under a string of binary values like &quot;000011111100&quot; .</p> <pre><code>&lt;script&gt; const checkboxes = [...document.querySelectorAll('input[type=checkbox]')]; function RegMD() { doc...
[ { "answer_id": 74317819, "author": "Ankit", "author_id": 19757319, "author_profile": "https://Stackoverflow.com/users/19757319", "pm_score": 0, "selected": false, "text": "li let email = document.getElementById(\"email\");\nlet handle = document.getElementById(\"handle\");\nlet message =...
2022/11/04
[ "https://Stackoverflow.com/questions/74317616", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20144069/" ]
74,317,629
<p>I have a requirement where I have to keep the button to be disabled initially and enable it only when the length of my input is 10.</p> <pre><code>&lt;div class=&quot;form-group&quot;&gt; &lt;label for=&quot;MSISDN_Value&quot; class=&quot;m-r-10&quot;&gt;MSISDN:&lt;/label&gt; &lt;input type=&quot;number&quot; ...
[ { "answer_id": 74317819, "author": "Ankit", "author_id": 19757319, "author_profile": "https://Stackoverflow.com/users/19757319", "pm_score": 0, "selected": false, "text": "li let email = document.getElementById(\"email\");\nlet handle = document.getElementById(\"handle\");\nlet message =...
2022/11/04
[ "https://Stackoverflow.com/questions/74317629", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13542280/" ]
74,317,635
<p>I just started studying front-end development and I'm struggling with a node.js error. Typing 'npm start' in my VSCode terminal used to work fine for simple tutorial projects with just an index.html, script.js, and style.css file. (without a package.json file)</p> <p>However after trying out React for the first time...
[ { "answer_id": 74317674, "author": "node_modules", "author_id": 6060964, "author_profile": "https://Stackoverflow.com/users/6060964", "pm_score": 2, "selected": true, "text": "package.json scripts {\n ...\n \"scripts\": {\n \"start\": \"react-scripts start\"\n }\n}\n ... npm run st...
2022/11/04
[ "https://Stackoverflow.com/questions/74317635", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20416915/" ]
74,317,647
<p>I have some data attributes on buttons that I need to send as content to a div when those buttons are clicked. A part of my code until now is this:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js pre...
[ { "answer_id": 74317705, "author": "flyingfox", "author_id": 3176419, "author_profile": "https://Stackoverflow.com/users/3176419", "pm_score": 4, "selected": true, "text": "getDiscount function init(){\n\n var buttons = document.querySelectorAll(\".form-button\");\n\n buttons.f...
2022/11/04
[ "https://Stackoverflow.com/questions/74317647", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14185251/" ]
74,317,676
<p>I try to fill dropdown menu items from API JSON. I have <code>myList</code> in code. Sometimes, this list is empty and sometimes list has data.</p> <p>If <code>myList</code> has data there is no problem. I am having trouble when <code>myList</code> is empty. How can I solve this?</p> <p>My model class:</p> <pre><cod...
[ { "answer_id": 74317705, "author": "flyingfox", "author_id": 3176419, "author_profile": "https://Stackoverflow.com/users/3176419", "pm_score": 4, "selected": true, "text": "getDiscount function init(){\n\n var buttons = document.querySelectorAll(\".form-button\");\n\n buttons.f...
2022/11/04
[ "https://Stackoverflow.com/questions/74317676", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1928396/" ]
74,317,702
<p>The title is a bit lengthy, but it's best explained by an example:</p> <p>Suppose we have the following functions in C++:</p> <pre class="lang-cpp prettyprint-override"><code>void SomeFunction(int num) { //1 } void SomeFunction(int&amp; num) { //2 } void SomeFunction(const int&amp; num) { //3 } void SomeFuncti...
[ { "answer_id": 74317884, "author": "pptaszni", "author_id": 4165552, "author_profile": "https://Stackoverflow.com/users/4165552", "pm_score": 0, "selected": false, "text": " static_cast<void(*)(int)>(SomeFunction)(i);\n static_cast<void(*)(int&)>(SomeFunction)(i);\n static_cast<...
2022/11/04
[ "https://Stackoverflow.com/questions/74317702", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4584801/" ]
74,317,725
<p>I have the following numpy array</p> <pre><code>import numpy as np arr = np.array([1,1,1,2,2,2,3,3,2,2,2,1,1,1,2,2]) </code></pre> <p>I split this array into parts, where each part has the same value <strong>consequently</strong> using <a href="https://stackoverflow.com/questions/7352684/how-to-find-the-groups-of-co...
[ { "answer_id": 74319589, "author": "chrslg", "author_id": 20037042, "author_profile": "https://Stackoverflow.com/users/20037042", "pm_score": 3, "selected": true, "text": "times_appeared_dict = dict(zip([str(l) for l in list(np.unique(arr))], [-1]*len(list(np.unique(arr))))) # dictionary...
2022/11/04
[ "https://Stackoverflow.com/questions/74317725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5868293/" ]
74,317,726
<p>I have a button, <code>onClick</code> of that button I want to make a <code>POST</code> call with some data user has filled in an input field, stored in state, and then redirect the user to another page.</p> <p>My current code looks like this, but I get an error:</p> <blockquote> <p><em>React Hook &quot;usePost&quot...
[ { "answer_id": 74319589, "author": "chrslg", "author_id": 20037042, "author_profile": "https://Stackoverflow.com/users/20037042", "pm_score": 3, "selected": true, "text": "times_appeared_dict = dict(zip([str(l) for l in list(np.unique(arr))], [-1]*len(list(np.unique(arr))))) # dictionary...
2022/11/04
[ "https://Stackoverflow.com/questions/74317726", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4942596/" ]
74,317,727
<p>I try to fetch data from a mySQL database using Axios to set the initial values of a form input generated with vue.js-formulate.</p> <p>Here is my script where I want to set the initial value of &quot;question1&quot;:</p> <pre><code>new Vue({ el: '#app', created() { this.fetch...
[ { "answer_id": 74319589, "author": "chrslg", "author_id": 20037042, "author_profile": "https://Stackoverflow.com/users/20037042", "pm_score": 3, "selected": true, "text": "times_appeared_dict = dict(zip([str(l) for l in list(np.unique(arr))], [-1]*len(list(np.unique(arr))))) # dictionary...
2022/11/04
[ "https://Stackoverflow.com/questions/74317727", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15171287/" ]
74,317,751
<p>I am trying to find out if there is the same number of occurrences <code>&quot;dog&quot;</code> and &quot;cat&quot; are in the given <code>String</code>.</p> <p>It should return <code>true</code> if they are equal, or <code>false</code> otherwise. How can I find out this <strong>without</strong> <code>while</code>, ...
[ { "answer_id": 74318054, "author": "67af7af3-67f3-48bf-98c5-d9155c", "author_id": 17856705, "author_profile": "https://Stackoverflow.com/users/17856705", "pm_score": 2, "selected": false, "text": "public static boolean catsDogs(String s) {\n Pattern pCat = Pattern.compile(\"cat\");\n ...
2022/11/04
[ "https://Stackoverflow.com/questions/74317751", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20387799/" ]
74,317,812
<p>I have two tables:</p> <pre><code>product(id, reference, name) order(id, productId, date, quantity) </code></pre> <p>Every order has one or many products. The order table can have many lines of the same product. I need to select the 5 best seller products for today in the order table. I try this join to select the...
[ { "answer_id": 74318127, "author": "jdweng", "author_id": 5015238, "author_profile": "https://Stackoverflow.com/users/5015238", "pm_score": 2, "selected": false, "text": "var results = (from order in orders on order.date equals DateTime.Today\n join product in products on product.Id eq...
2022/11/04
[ "https://Stackoverflow.com/questions/74317812", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11450029/" ]
74,317,853
<p>I have spent way more time on this than any human should, I been through at least 30 solutions on Stack before posting this, as I know it is a VERY common issue. So I apologize for making my own post but I truly cannot get it working.</p> <p>My code is below:</p> <p><div class="snippet" data-lang="js" data-hide="fal...
[ { "answer_id": 74317957, "author": "Parth M. Dave", "author_id": 12119351, "author_profile": "https://Stackoverflow.com/users/12119351", "pm_score": 0, "selected": false, "text": "<div style=\"width: 100%;display: flex;\n align-items: center;\n justify-content: center;\">\n ...
2022/11/04
[ "https://Stackoverflow.com/questions/74317853", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9599098/" ]
74,317,862
<p>I am trying to convert the date I have got using the <code>GETDATE()</code> function into <code>YY-MON-DD</code> format such as <code>04 Nov 2022</code>. I have used <code>TO_VARCHAR()</code> to convert into the date returned by the <code>GETDATE()</code> into a string. The output is correct till the <code>TO_VARCHA...
[ { "answer_id": 74317957, "author": "Parth M. Dave", "author_id": 12119351, "author_profile": "https://Stackoverflow.com/users/12119351", "pm_score": 0, "selected": false, "text": "<div style=\"width: 100%;display: flex;\n align-items: center;\n justify-content: center;\">\n ...
2022/11/04
[ "https://Stackoverflow.com/questions/74317862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20417885/" ]
74,317,867
<p>I am trying to get user input into a text file on different lines. The user input is stored in a list then the list is appended. I realize you are not suppose to use quotes since that will act as your own input. How could I go about using the user input?</p> <pre><code>def userfile(): text = [] s1 = input(&quo...
[ { "answer_id": 74317918, "author": "Raphael", "author_id": 9173710, "author_profile": "https://Stackoverflow.com/users/9173710", "pm_score": 1, "selected": false, "text": "userfile() s1 def userfile():\n text = []\n text.append(input(\"Enter sentence #1 \"))\n text.append(input(...
2022/11/04
[ "https://Stackoverflow.com/questions/74317867", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15235615/" ]
74,317,897
<p>I have a DateTime string like below:</p> <pre class="lang-js prettyprint-override"><code>&quot;11/20/2022 19.00&quot; </code></pre> <p>I just want to delete the spaces until the end, how do I do that?</p> <p>I'm expecting the below output:</p> <pre class="lang-js prettyprint-override"><code>&quot;11/20/2022&quot; </...
[ { "answer_id": 74317918, "author": "Raphael", "author_id": 9173710, "author_profile": "https://Stackoverflow.com/users/9173710", "pm_score": 1, "selected": false, "text": "userfile() s1 def userfile():\n text = []\n text.append(input(\"Enter sentence #1 \"))\n text.append(input(...
2022/11/04
[ "https://Stackoverflow.com/questions/74317897", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20278389/" ]
74,317,936
<p>As title says, I would like to send emails with my gmail account writing some java code. I have found many code examples, but none of them is working for me</p> <p>I was looking a this one: <a href="https://stackoverflow.com/questions/46663/how-can-i-send-an-email-by-java-application-using-gmail-yahoo-or-hotmail/474...
[ { "answer_id": 74317918, "author": "Raphael", "author_id": 9173710, "author_profile": "https://Stackoverflow.com/users/9173710", "pm_score": 1, "selected": false, "text": "userfile() s1 def userfile():\n text = []\n text.append(input(\"Enter sentence #1 \"))\n text.append(input(...
2022/11/04
[ "https://Stackoverflow.com/questions/74317936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/465588/" ]
74,317,958
<p>I need to trim the 'My Pet' column inside the query string. How can that be done?</p> <pre><code># Note that one cat literal has a trailing space. testDF = pd.DataFrame([{&quot;My Pet&quot;:&quot;cat &quot;, &quot;Cost&quot;:&quot;$10 &quot;, &quot;Weight&quot;:&quot;10 pounds&quot;, &quot;Name&quot;:&quot;Violet&...
[ { "answer_id": 74318017, "author": "jezrael", "author_id": 2901002, "author_profile": "https://Stackoverflow.com/users/2901002", "pm_score": 2, "selected": true, "text": "Series.str.strip engine=\"python\" catDF = testDF.query(\"`My Pet`.str.strip() == 'cat'\", engine=\"python\")\nprint ...
2022/11/04
[ "https://Stackoverflow.com/questions/74317958", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1169091/" ]
74,317,961
<p>I have an application where we have a button in index.html. So just wanted to navigate from index.html to another razor page which is in PAGES folder called</p> <pre><code>dashboard.razor </code></pre> <p>I am newbie to blazor applications,please help.</p>
[ { "answer_id": 74319449, "author": "Lex", "author_id": 548997, "author_profile": "https://Stackoverflow.com/users/548997", "pm_score": 1, "selected": false, "text": "NavigationManager @inject NavigationManager NavigationManager;\n@code {\n private void MyButtonClick()\n {\n ...
2022/11/04
[ "https://Stackoverflow.com/questions/74317961", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2355408/" ]
74,317,968
<p>I created a function that returns a new url at random, in a given amount of time from an object. I then tried to export the function so that I am able to consume the url in another React file but It's like it's not working. can anybody help out.</p> <p>``</p> <pre><code>JS FILE //create a function that will display...
[ { "answer_id": 74318184, "author": "Getabalew Tesfaye", "author_id": 18007080, "author_profile": "https://Stackoverflow.com/users/18007080", "pm_score": 1, "selected": false, "text": " const myImageArray = [\"one\", \"two\" , \"three\", \"four\", \"five\", \"six\", \"seven\", \"eight\"...
2022/11/04
[ "https://Stackoverflow.com/questions/74317968", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14743938/" ]
74,317,970
<p>I have 2 files which look like this.</p> <p>file-A</p> <pre><code>Red Green Blue Yellow </code></pre> <p>file-B</p> <pre><code>Car Bus Van Bike </code></pre> <p>I have to write content of them to <code>file-C</code> by following the <strong>defined variable</strong>. (Every time file-A and file-B line count will ...
[ { "answer_id": 74318184, "author": "Getabalew Tesfaye", "author_id": 18007080, "author_profile": "https://Stackoverflow.com/users/18007080", "pm_score": 1, "selected": false, "text": " const myImageArray = [\"one\", \"two\" , \"three\", \"four\", \"five\", \"six\", \"seven\", \"eight\"...
2022/11/04
[ "https://Stackoverflow.com/questions/74317970", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11312762/" ]
74,317,978
<p>Im trying out next js 13 and I got some error I cant fix. My code:</p> <pre><code>import { useRouter } from 'next/navigation'; async function getCheckoutInfo() { const router = useRouter(); if (router.isReady) { console.log('Router query:', router.query); } else { console.log('Router is ...
[ { "answer_id": 74318322, "author": "Sarath Adhithya", "author_id": 18233081, "author_profile": "https://Stackoverflow.com/users/18233081", "pm_score": 0, "selected": false, "text": "useRouter() import { useRouter } from 'next/router';\n\nfunction getCheckoutInfo(router) {\n if (router...
2022/11/04
[ "https://Stackoverflow.com/questions/74317978", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16176943/" ]
74,317,983
<p>I have got this error</p> <p>TypeError: string indices must be integers</p> <p>I am try to call this function</p> <pre><code>def encrypt(): text = input(&quot;Type your message:\n&quot;).lower() for i in alphabet: if i == text[range(len(text)]: print(i) alphabet = ['a', 'b', ...
[ { "answer_id": 74318322, "author": "Sarath Adhithya", "author_id": 18233081, "author_profile": "https://Stackoverflow.com/users/18233081", "pm_score": 0, "selected": false, "text": "useRouter() import { useRouter } from 'next/router';\n\nfunction getCheckoutInfo(router) {\n if (router...
2022/11/04
[ "https://Stackoverflow.com/questions/74317983", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20304483/" ]
74,318,006
<p><a href="https://i.stack.imgur.com/oOm75.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oOm75.png" alt="" /></a> I have this components</p> <p><a href="https://i.stack.imgur.com/LVpaz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LVpaz.png" alt="" /></a> and i have this code ...
[ { "answer_id": 74318322, "author": "Sarath Adhithya", "author_id": 18233081, "author_profile": "https://Stackoverflow.com/users/18233081", "pm_score": 0, "selected": false, "text": "useRouter() import { useRouter } from 'next/router';\n\nfunction getCheckoutInfo(router) {\n if (router...
2022/11/04
[ "https://Stackoverflow.com/questions/74318006", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20418013/" ]
74,318,019
<p>I am trying to connect my django app to postgres but it gives the following error.</p> <pre><code>connection to server at &quot;127.0.0.1&quot;, port 5432 failed: FATAL: database &quot;testDB&quot; does not exist </code></pre> <p>the postgres server is running I have checked it also restarted the server still I ge...
[ { "answer_id": 74319473, "author": "Anton", "author_id": 6621510, "author_profile": "https://Stackoverflow.com/users/6621510", "pm_score": 2, "selected": true, "text": "database \"testDB\" does not exist create database 'testDB';\n" } ]
2022/11/04
[ "https://Stackoverflow.com/questions/74318019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19384362/" ]
74,318,061
<p>I want to change the name of a file. The source filename is changing all the time. The produced name mus be fixed. Here is mij script:</p> <pre><code>&lt;?php $directory = '/public_html/Weercam/FI9853EP_00626EA2E6A9/snap/'; foreach (glob($directory.&quot;*.jpg&quot;) as $filename) { $file = realpath($filename); ...
[ { "answer_id": 74319473, "author": "Anton", "author_id": 6621510, "author_profile": "https://Stackoverflow.com/users/6621510", "pm_score": 2, "selected": true, "text": "database \"testDB\" does not exist create database 'testDB';\n" } ]
2022/11/04
[ "https://Stackoverflow.com/questions/74318061", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20417871/" ]
74,318,062
<p>I created a Json Server Database like this:</p> <pre><code>&quot;Time&quot;: [ { &quot;id&quot;:1, &quot;name&quot;: [ { &quot;id&quot;:1, &quot;checkin&quot;: [ { &quot;id&quot;:1, &quot;date&quot;:&quot;123&quot;, &quot;time&quot;:&...
[ { "answer_id": 74319473, "author": "Anton", "author_id": 6621510, "author_profile": "https://Stackoverflow.com/users/6621510", "pm_score": 2, "selected": true, "text": "database \"testDB\" does not exist create database 'testDB';\n" } ]
2022/11/04
[ "https://Stackoverflow.com/questions/74318062", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20291198/" ]
74,318,075
<p>Just a tought came in mind till now i have make maps of strings and vectors Like this <code>map&lt;int,int&gt; m; map &lt;int,vector&lt;int&gt;&gt; m; map &lt;string,vector&lt;int&gt;&gt; m;</code> and various combinations are possible with other data types also.</p> <p>But what will happen If I do <code>map &lt;vec...
[ { "answer_id": 74318245, "author": "Fareanor", "author_id": 11455384, "author_profile": "https://Stackoverflow.com/users/11455384", "pm_score": 3, "selected": true, "text": "std::vector<int> std::map std::map std::map std::less<Key> std::less<std::vector<int>> std::vector::operator<() st...
2022/11/04
[ "https://Stackoverflow.com/questions/74318075", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14388733/" ]
74,318,100
<p>I am newbie with Pyqt and need help with setting setData on QAbstractTableModel with QSqlRelationalTableModel table model</p> <p>I have this simple code and I dont now how to implement setData function. I can't set value to field. I'm getting TypeError: 'QSqlRelationalTableModel' object is not subscriptable error.</...
[ { "answer_id": 74318245, "author": "Fareanor", "author_id": 11455384, "author_profile": "https://Stackoverflow.com/users/11455384", "pm_score": 3, "selected": true, "text": "std::vector<int> std::map std::map std::map std::less<Key> std::less<std::vector<int>> std::vector::operator<() st...
2022/11/04
[ "https://Stackoverflow.com/questions/74318100", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14694614/" ]
74,318,106
<p>I am building a blog using React and Material UI. I have added a TinyMCE rich text field on my add posts page. The Tiny form is correctly storing the data as HTML into the JSON file; but when I try rendering a specific blog post I am getting the unformatted text with all the HTML tags. How to I turn this data into ...
[ { "answer_id": 74318245, "author": "Fareanor", "author_id": 11455384, "author_profile": "https://Stackoverflow.com/users/11455384", "pm_score": 3, "selected": true, "text": "std::vector<int> std::map std::map std::map std::less<Key> std::less<std::vector<int>> std::vector::operator<() st...
2022/11/04
[ "https://Stackoverflow.com/questions/74318106", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12441586/" ]
74,318,108
<p>Using yq (or any other tool), how can I return the full YAML path of an arbitrary line number ?</p> <p>e.g. with this file :</p> <pre class="lang-yaml prettyprint-override"><code>a: b: c: &quot;foo&quot; d: | abc def </code></pre> <p>I want to get the full path of line 2; it should yield: <code>a.b.c...
[ { "answer_id": 74318842, "author": "0stone0", "author_id": 5625547, "author_profile": "https://Stackoverflow.com/users/5625547", "pm_score": 0, "selected": false, "text": "line key 3 --> C : export searchKey=$(awk -F':' 'FNR == 3 { gsub(/ /,\"\"); print $1 }' ii)\n YQ .. path | join(\".\...
2022/11/04
[ "https://Stackoverflow.com/questions/74318108", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1891989/" ]
74,318,121
<p>My project file structure is like this,</p> <pre><code>project/src/test/myscript.py project/src/utils/file_utils.py </code></pre> <p>When I run <code>myscript.py</code>, which has <code>from utils import file_utils</code>, it gave me error:</p> <blockquote> <p>ModuleNotFoundError: No module named 'utils'</p> </block...
[ { "answer_id": 74318263, "author": "João Bonfim", "author_id": 20381775, "author_profile": "https://Stackoverflow.com/users/20381775", "pm_score": 0, "selected": false, "text": "__init__.py __init__.py" }, { "answer_id": 74318373, "author": "The Lazy Graybeard", "author_i...
2022/11/04
[ "https://Stackoverflow.com/questions/74318121", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20417812/" ]
74,318,140
<p>The time is given in string for eg &quot;23:20&quot;. However in my function I need to compare times for which I gotta convert these to time format</p> <p>I tried strptime() and it works with 12 hour format for eg when I enter &quot;12:00PM&quot;</p>
[ { "answer_id": 74318237, "author": "Aarav Shah", "author_id": 20243803, "author_profile": "https://Stackoverflow.com/users/20243803", "pm_score": 1, "selected": false, "text": " from datetime import datetime\n m2 = '1:35 PM'\n in_time = datetime.strptime(m2, \"%I:%M %p\")\n out_t...
2022/11/04
[ "https://Stackoverflow.com/questions/74318140", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20418070/" ]
74,318,158
<p>I have a matrix, and i don't know the size, because the matrix was created from a dataframe. I have 2 arrays, min_cols and max_cols, first one is for each minimum from each column, and same with the max_cols.<br /> I want to recalculate each element from the columns, with this formula:</p> <blockquote> <p>Element[li...
[ { "answer_id": 74318237, "author": "Aarav Shah", "author_id": 20243803, "author_profile": "https://Stackoverflow.com/users/20243803", "pm_score": 1, "selected": false, "text": " from datetime import datetime\n m2 = '1:35 PM'\n in_time = datetime.strptime(m2, \"%I:%M %p\")\n out_t...
2022/11/04
[ "https://Stackoverflow.com/questions/74318158", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19715327/" ]
74,318,163
<p>I am trying to write few regex . I am testing my regex on below link <a href="https://www.regextester.com/" rel="nofollow noreferrer">https://www.regextester.com/</a></p> <p><strong>Case 1</strong></p> <p>1.regex: <strong>/flow</strong></p> <p><strong>Testing string</strong> : <a href="https://example.com/flow" rel=...
[ { "answer_id": 74318237, "author": "Aarav Shah", "author_id": 20243803, "author_profile": "https://Stackoverflow.com/users/20243803", "pm_score": 1, "selected": false, "text": " from datetime import datetime\n m2 = '1:35 PM'\n in_time = datetime.strptime(m2, \"%I:%M %p\")\n out_t...
2022/11/04
[ "https://Stackoverflow.com/questions/74318163", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19883277/" ]
74,318,190
<p>I am trying to create an azure function app with two http trigger functions in it with open API specs, but both using same route but with different parameters.</p> <p>Requirement to fetch some templates from Database. first way is when customer provides id, another way when customer provides name</p> <p>Here is my f...
[ { "answer_id": 74365490, "author": "Nicolas Boisvert", "author_id": 912299, "author_profile": "https://Stackoverflow.com/users/912299", "pm_score": 1, "selected": false, "text": "http://yourApi/templates/{templateid}\n http://yourApi/templates?templateName='searchedName'\n" } ]
2022/11/04
[ "https://Stackoverflow.com/questions/74318190", "https://Stackoverflow.com", "https://Stackoverflow.com/users/954093/" ]
74,318,195
<p>I am working on a dataframe that has a category of challenges for a class. I need to be able to identify them as either being 'linux','window' or 'primer' based. I have created a dictionary as so:</p> <pre><code>import pandas as pd topic_keywords_dict = { 'Linux': { 'identification':['linux...
[ { "answer_id": 74365490, "author": "Nicolas Boisvert", "author_id": 912299, "author_profile": "https://Stackoverflow.com/users/912299", "pm_score": 1, "selected": false, "text": "http://yourApi/templates/{templateid}\n http://yourApi/templates?templateName='searchedName'\n" } ]
2022/11/04
[ "https://Stackoverflow.com/questions/74318195", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5669565/" ]
74,318,209
<p>Given I have the following configuration:</p> <pre class="lang-js prettyprint-override"><code>let config = { &quot;requests&quot;: [ { &quot;resource&quot;: &quot;foo&quot;, &quot;interval&quot;: 1000 }, { &quot;resource&quot;: &quot;bar&quot;, &quot;interval&quot;: 500 }, ...
[ { "answer_id": 74318483, "author": "Dr. Vortex", "author_id": 17637456, "author_profile": "https://Stackoverflow.com/users/17637456", "pm_score": 0, "selected": false, "text": "initRequests = () => {\n let i = -1;\n const resources = [];\n const timeoutHandler = () => {\n if(i < in...
2022/11/04
[ "https://Stackoverflow.com/questions/74318209", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1231619/" ]
74,318,222
<p>I am trying to grow on a bookstore project mentioned in the book titled</p> <blockquote> <p>Django for Professionals by Vincent</p> </blockquote> <p>As I try to grow on it my <code>requirements.txt</code> has grown to</p> <pre><code>asgiref==3.5.2 Django==4.0.4 psycopg2-binary==2.9.3 sqlparse==0.4.2 django-crispy-fo...
[ { "answer_id": 74321571, "author": "MajorPig", "author_id": 17779866, "author_profile": "https://Stackoverflow.com/users/17779866", "pm_score": 1, "selected": false, "text": "makemigrations migrate" }, { "answer_id": 74325689, "author": "Savakar Rohan", "author_id": 12379...
2022/11/04
[ "https://Stackoverflow.com/questions/74318222", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12379923/" ]
74,318,223
<p>I have a SQL Code which i am trying to Convert into Pyspark? The SQL Query looks like this: I need to Concatenate '0' at starting of 'ADDRESS_HOME' if the below Query Conditions Satisfies.</p> <pre><code> UPDATE STUDENT_DATA SET STUDENT_DATA.ADDRESS_HOME = &quot;0&quot; &amp; [STUDENT_DATA].ADDRESS_HOME WHE...
[ { "answer_id": 74320658, "author": "OdiumPura", "author_id": 16459035, "author_profile": "https://Stackoverflow.com/users/16459035", "pm_score": 1, "selected": false, "text": "df = df.filter(\n (f.col(\"STATE_ABB\").isin(f.lit(\"TURIN\"), f.lit(\"RUSH\"), f.lit(\"TURIN\"), f.l...
2022/11/04
[ "https://Stackoverflow.com/questions/74318223", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20216373/" ]
74,318,225
<p>I have two arrays, one with the original data, and another one that contains the same entries but in a new order.</p> <p>How can I sort the original array so that only items nominated in the new order array are moved?</p> <p>Original Array:</p> <pre><code>[ ['tabelle_mannschaft' =&gt; 'SV Winter'], ['tabelle...
[ { "answer_id": 74320658, "author": "OdiumPura", "author_id": 16459035, "author_profile": "https://Stackoverflow.com/users/16459035", "pm_score": 1, "selected": false, "text": "df = df.filter(\n (f.col(\"STATE_ABB\").isin(f.lit(\"TURIN\"), f.lit(\"RUSH\"), f.lit(\"TURIN\"), f.l...
2022/11/04
[ "https://Stackoverflow.com/questions/74318225", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14454384/" ]
74,318,252
<p>Is there an Excel formula I can write in Excel to separate a combination of numbers and text from a cell?</p> <p>col A is how the data is formatted, cols b - i are how I need them to be:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>col A</th> <th>col b</th> <th>col c</th> <th>col d</t...
[ { "answer_id": 74318918, "author": "JvdV", "author_id": 9758194, "author_profile": "https://Stackoverflow.com/users/9758194", "pm_score": 3, "selected": true, "text": "B1 =DROP(IFERROR(REDUCE(0,A1:A2,LAMBDA(a,b,VSTACK(a,LET(c,TEXTSPLIT(b,\"/\"),TEXTSPLIT(TEXTJOIN(\"|\",,REPLACE(c,LEN(c)-...
2022/11/04
[ "https://Stackoverflow.com/questions/74318252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15432491/" ]
74,318,261
<p>In Python, I often find myself implementing the same pattern: count the number of &quot;valid&quot; iterations while processing within a loop, where an &quot;invalid&quot; iteration is skipped over with a continue statement. I use the continue statement instead of <code>if-else</code> blocks to improve readability. ...
[ { "answer_id": 74318357, "author": "Bastian Venthur", "author_id": 2881414, "author_profile": "https://Stackoverflow.com/users/2881414", "pm_score": 1, "selected": false, "text": "count = 0\nfor item in collection:\n do_something_1(item)\n if not evaluate_some_condition(item):\n ...
2022/11/04
[ "https://Stackoverflow.com/questions/74318261", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13386085/" ]
74,318,278
<p>I tried to sort an object that contains other objects and arrays in it E.g</p> <pre><code>let object = { '2573': { results: [ { &quot;rooms&quot;: { &quot;price&quot;: 1500 }, }, { &quot;rooms&quot;: {...
[ { "answer_id": 74318588, "author": "Rickard Elimää", "author_id": 5526624, "author_profile": "https://Stackoverflow.com/users/5526624", "pm_score": 1, "selected": false, "text": "let object={2573:{results:[{rooms:{price:1500}},{rooms:{price:1700}}]},2574:{results:[{rooms:{price:1800}},{r...
2022/11/04
[ "https://Stackoverflow.com/questions/74318278", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20350508/" ]
74,318,331
<p>When I run on chrome on the computer, everything is ok, but on an Android device, there is a bug while clicking a material button on the app.</p> <p><strong>Expected results</strong>: When clicking on the button, the function must do a calculus about the total order discount or add 5000 to the total if some kind of ...
[ { "answer_id": 74318588, "author": "Rickard Elimää", "author_id": 5526624, "author_profile": "https://Stackoverflow.com/users/5526624", "pm_score": 1, "selected": false, "text": "let object={2573:{results:[{rooms:{price:1500}},{rooms:{price:1700}}]},2574:{results:[{rooms:{price:1800}},{r...
2022/11/04
[ "https://Stackoverflow.com/questions/74318331", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19640643/" ]
74,318,333
<p>I am trying to create an edit function for updating a task that was previously written.</p> <p>I have tried this so far but apparently the prompt is only for the browser. Would this even work? What are alternatives to create the prompt for react native?</p> <pre><code> const taskUpdate = (index) =&gt; { cons...
[ { "answer_id": 74318588, "author": "Rickard Elimää", "author_id": 5526624, "author_profile": "https://Stackoverflow.com/users/5526624", "pm_score": 1, "selected": false, "text": "let object={2573:{results:[{rooms:{price:1500}},{rooms:{price:1700}}]},2574:{results:[{rooms:{price:1800}},{r...
2022/11/04
[ "https://Stackoverflow.com/questions/74318333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17313643/" ]
74,318,341
<p>So I had a job interview two days ago and they used coderPad.io for it, which is pretty common for job interviews. As a matter of fact, I have another job interview coming up that uses coderPad as well, so I really need to ask this question.</p> <p>Essentially what happened was that my algorithm was written correctl...
[ { "answer_id": 74318460, "author": "Nelfeal", "author_id": 3854570, "author_profile": "https://Stackoverflow.com/users/3854570", "pm_score": 0, "selected": false, "text": "operator[]" }, { "answer_id": 74318507, "author": "MarkB", "author_id": 17841694, "author_profil...
2022/11/04
[ "https://Stackoverflow.com/questions/74318341", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18093841/" ]
74,318,352
<p>I am building an app with Swift and SwiftUI. In MainViewModel I have a function who call Api for fetching JSON from url and deserialize it. this is made under async/await protocol. the problem is the next, I have received from xcode the next comment : &quot;Publishing changes from background threads is not allowed; ...
[ { "answer_id": 74318451, "author": "Mr Developer", "author_id": 20384561, "author_profile": "https://Stackoverflow.com/users/20384561", "pm_score": 0, "selected": false, "text": "@MainActor DispatchQueue.main.async{} @MainActor func getCountries() async throws{\n ///Set above - this wi...
2022/11/04
[ "https://Stackoverflow.com/questions/74318352", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18292838/" ]
74,318,353
<p>i have tried to get user group name as value in auth/me URL, but it returns only objectId of group. How to get the group name instead of objectId.</p> <p>In my manifest i have added</p> <p>&quot;groupMembershipClaims&quot;: &quot;SecurityGroup&quot;</p> <p>optional claims also added</p> <p>i don't have any onpremise...
[ { "answer_id": 74318451, "author": "Mr Developer", "author_id": 20384561, "author_profile": "https://Stackoverflow.com/users/20384561", "pm_score": 0, "selected": false, "text": "@MainActor DispatchQueue.main.async{} @MainActor func getCountries() async throws{\n ///Set above - this wi...
2022/11/04
[ "https://Stackoverflow.com/questions/74318353", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19679562/" ]
74,318,361
<p>I have 2 columns in my google sheet - Time, and some Ids</p> <p><a href="https://i.stack.imgur.com/pBdqk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pBdqk.png" alt="enter image description here" /></a></p> <p>My aim is to calculate the number of ids reported in an hour. For example, from this ...
[ { "answer_id": 74318451, "author": "Mr Developer", "author_id": 20384561, "author_profile": "https://Stackoverflow.com/users/20384561", "pm_score": 0, "selected": false, "text": "@MainActor DispatchQueue.main.async{} @MainActor func getCountries() async throws{\n ///Set above - this wi...
2022/11/04
[ "https://Stackoverflow.com/questions/74318361", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19082958/" ]
74,318,365
<p>I see a lot of same questions with mine, but none of them worked for me. So I am trying to navigate to the url after successful subscribing, but it is not navigating to url instead it is again redirecting to beginning.</p> <pre><code>private moveToOverview(): void { this.userService.reloadUser().subscribe(() =&gt;...
[ { "answer_id": 74318451, "author": "Mr Developer", "author_id": 20384561, "author_profile": "https://Stackoverflow.com/users/20384561", "pm_score": 0, "selected": false, "text": "@MainActor DispatchQueue.main.async{} @MainActor func getCountries() async throws{\n ///Set above - this wi...
2022/11/04
[ "https://Stackoverflow.com/questions/74318365", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15148870/" ]
74,318,369
<p>I have a data frame and i am creating bins with pd.qcut as following:</p> <pre><code>us_counties['bins'] = pd.qcut(us_counties['economic connectedness'], q=10,precision=2) </code></pre> <p>The bins are:</p> <pre><code>us_counties.bins.cat.categories IntervalIndex([(0.27999999999999997, 0.58], (0.58, 0.67], (0.67, 0....
[ { "answer_id": 74318757, "author": "hsaltan", "author_id": 10905535, "author_profile": "https://Stackoverflow.com/users/10905535", "pm_score": 0, "selected": false, "text": "qcut qcut qcut apply" }, { "answer_id": 74323701, "author": "Vincent Rupp", "author_id": 4024409, ...
2022/11/04
[ "https://Stackoverflow.com/questions/74318369", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5826233/" ]
74,318,372
<p>Sample table (customer) have the following data,</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: right;">RecID</th> <th style="text-align: center;">createdDate</th> <th>UserID</th> <th style="text-align: right;">ROWNUMBER</th> <th style="text-align: center;">toCount</t...
[ { "answer_id": 74318757, "author": "hsaltan", "author_id": 10905535, "author_profile": "https://Stackoverflow.com/users/10905535", "pm_score": 0, "selected": false, "text": "qcut qcut qcut apply" }, { "answer_id": 74323701, "author": "Vincent Rupp", "author_id": 4024409, ...
2022/11/04
[ "https://Stackoverflow.com/questions/74318372", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4691159/" ]
74,318,375
<p>I have a horizontally centered column of Flex items ordered from 1 to 5 that are aligned from the top of the container like this:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-overrid...
[ { "answer_id": 74318757, "author": "hsaltan", "author_id": 10905535, "author_profile": "https://Stackoverflow.com/users/10905535", "pm_score": 0, "selected": false, "text": "qcut qcut qcut apply" }, { "answer_id": 74323701, "author": "Vincent Rupp", "author_id": 4024409, ...
2022/11/04
[ "https://Stackoverflow.com/questions/74318375", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5875416/" ]
74,318,475
<p>I'm using &quot;Web scraper apify&quot; to scrap some data from a website. The goal is to get all the texts in H2 and return an array of them. My problem is when I returned the array. This one is not correct and not usable because it separates all the letters of the different scrapped texts.</p> <p>I tried to write ...
[ { "answer_id": 74318757, "author": "hsaltan", "author_id": 10905535, "author_profile": "https://Stackoverflow.com/users/10905535", "pm_score": 0, "selected": false, "text": "qcut qcut qcut apply" }, { "answer_id": 74323701, "author": "Vincent Rupp", "author_id": 4024409, ...
2022/11/04
[ "https://Stackoverflow.com/questions/74318475", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20418105/" ]
74,318,498
<p>Joining two tables and grouping, we're trying to get the sum of a user's value but only include a user's value once if that user is represented in a grouping multiple times.</p> <p>Some sample tables:</p> <p><code>user</code> table:</p> <pre class="lang-bash prettyprint-override"><code>| id | net_worth | -----------...
[ { "answer_id": 74318630, "author": "a_horse_with_no_name", "author_id": 330315, "author_profile": "https://Stackoverflow.com/users/330315", "pm_score": 0, "selected": false, "text": "select v.location, sum(u.net_worth)\nfrom \"user\" u\n join (\n select location, user_id, \n ...
2022/11/04
[ "https://Stackoverflow.com/questions/74318498", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2595659/" ]
74,318,501
<p>I want to have a number that halves until it reaches 1, then it should return a count of how many times it halved. example:</p> <p>halve(4) 2</p> <p>halve(11) 3</p> <p>since 4/2 = 2 and 2/2= 1, hence it halved twice before reaching 1, and this is what I want it to return but my code isn't working, why? Can a modific...
[ { "answer_id": 74318540, "author": "Chris", "author_id": 15261315, "author_profile": "https://Stackoverflow.com/users/15261315", "pm_score": 1, "selected": false, "text": "import math\n\ndef halve(n):\n return math.floor(math.log(n, 2))\n n 0 range i i while def halve(n):\n i = 0 \n ...
2022/11/04
[ "https://Stackoverflow.com/questions/74318501", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20214604/" ]
74,318,512
<p>I run a query on python to get hourly price data from an API, using the get function:</p> <pre><code>result = (requests.get(url_prices, headers=headers, params={'SpotKey':'1','Fields':'hours','FromDate':'2016-05-05','ToDate':'2016-12-05','Currency':'eur','SortType':'ascending'}).json()) </code></pre> <p>where 'SpotK...
[ { "answer_id": 74348126, "author": "pwoolvett", "author_id": 7814595, "author_profile": "https://Stackoverflow.com/users/7814595", "pm_score": 3, "selected": true, "text": "Date TimeSpan def parse_time(x):\n if \"dst\" not in x:\n return x[:5]+\":00\"\n return f\"{int(x[:2])...
2022/11/04
[ "https://Stackoverflow.com/questions/74318512", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10190983/" ]
74,318,516
<p>Hi Hopefully somebody can help as i am missing something in my code.</p> <p>I am trying to loop through a dynamic row from the last knowing value to the new values, then add these new values as a column headr in starting in row 3.</p> <p>I have the first portion and can get the new values to paste into next blank c...
[ { "answer_id": 74348126, "author": "pwoolvett", "author_id": 7814595, "author_profile": "https://Stackoverflow.com/users/7814595", "pm_score": 3, "selected": true, "text": "Date TimeSpan def parse_time(x):\n if \"dst\" not in x:\n return x[:5]+\":00\"\n return f\"{int(x[:2])...
2022/11/04
[ "https://Stackoverflow.com/questions/74318516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9209543/" ]
74,318,519
<p>I'm trying to assess if an Oximeter plugged in via USB is correctly collecting heart rate data. I am using the Systole package, and some pre-writtend code sourced here (Scroll down to Recording PPG Signal :<a href="https://embodied-computation-group.github.io/systole/auto_examples/Recording/plot_RecordingPPG.html#sp...
[ { "answer_id": 74348126, "author": "pwoolvett", "author_id": 7814595, "author_profile": "https://Stackoverflow.com/users/7814595", "pm_score": 3, "selected": true, "text": "Date TimeSpan def parse_time(x):\n if \"dst\" not in x:\n return x[:5]+\":00\"\n return f\"{int(x[:2])...
2022/11/04
[ "https://Stackoverflow.com/questions/74318519", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18542744/" ]
74,318,521
<p>I have an iOS/wOS app that launched last year. Now I want to add complications to it and use the new way of doing complications with WidgetKit. I have everything in place up to the point where I'm supposed to read the data from Health to display it, where it fails with <code>Missing com.apple.developer.healthkit ent...
[ { "answer_id": 74324472, "author": "psolanki", "author_id": 5386319, "author_profile": "https://Stackoverflow.com/users/5386319", "pm_score": 0, "selected": false, "text": "<key>com.apple.developer.healthkit</key>\n<true/>\n" } ]
2022/11/04
[ "https://Stackoverflow.com/questions/74318521", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2984775/" ]
74,318,525
<p>I need a different format of strings to convert to &quot;DD.MM.YYYY&quot;.</p> <p><code>&quot;Thu, 3 Nov 2022 06:00:00 +0100&quot;</code> has to be changed to <code>&quot;03.11.2022&quot;</code></p> <p>and</p> <p><code>&quot;01.11.2022 20:00:00&quot;</code> to <code>&quot;01.11.2022&quot;</code>.</p> <p>All the form...
[ { "answer_id": 74324472, "author": "psolanki", "author_id": 5386319, "author_profile": "https://Stackoverflow.com/users/5386319", "pm_score": 0, "selected": false, "text": "<key>com.apple.developer.healthkit</key>\n<true/>\n" } ]
2022/11/04
[ "https://Stackoverflow.com/questions/74318525", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11660873/" ]
74,318,559
<p>I have some divs and if i hover them I want an popup to show. I have six divs and six popups to show but not all at once instead only one per one.</p> <p>The first function works fine but then the other do not work how can I move them all to one snippet?</p> <p><div class="snippet" data-lang="js" data-hide="false" d...
[ { "answer_id": 74318993, "author": "Barmar", "author_id": 1491895, "author_profile": "https://Stackoverflow.com/users/1491895", "pm_score": 1, "selected": false, "text": "document.addEventListener('DOMContentLoaded', function() {\n\n let popupMap = [{\n div: '#Mitarbeiter1Punkt',\n...
2022/11/04
[ "https://Stackoverflow.com/questions/74318559", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11233039/" ]
74,318,570
<p>I have example data as follows:</p> <pre><code>library(data.table) dat &lt;- fread(&quot;q1 q2 ...1 ..2 q3..1 ..1 NA response other else response other 1 4 NA NA 1 NA&quot;) </code></pre> <p>I wanted to filter out all columns that are automatically named when reading in an Excel...
[ { "answer_id": 74318603, "author": "Maël", "author_id": 13460602, "author_profile": "https://Stackoverflow.com/users/13460602", "pm_score": 3, "selected": true, "text": "^ grepl(\"^\\\\.+\", names(dat))\n#[1] FALSE FALSE TRUE TRUE FALSE TRUE\n" }, { "answer_id": 74319080, ...
2022/11/04
[ "https://Stackoverflow.com/questions/74318570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8071608/" ]
74,318,573
<p>I have an example object which is mixed of lists and dicts:</p> <pre><code>{ &quot;field_1&quot; : &quot;aaa&quot;, &quot;field_2&quot;: [ { &quot;name&quot; : &quot;bbb&quot;, ..... &quot;field_4&quot; : &quot;ccc&quot;, &quot;field_need_to_filter&quot; : False, ...
[ { "answer_id": 74321201, "author": "Swifty", "author_id": 20267366, "author_profile": "https://Stackoverflow.com/users/20267366", "pm_score": 2, "selected": true, "text": "mydict = {\n \"field_1\" : \"aaa\",\n \"field_2\": [\n {\n \"name\" : \"bbb\",\n\n \"fiel...
2022/11/04
[ "https://Stackoverflow.com/questions/74318573", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10581944/" ]
74,318,665
<p>[![import &quot;django.shortcuts&quot; could not be resolved from sauce Pylance(reportMissingModuleSoucre)</p> <pre><code>from django.shortcuts import render # Create your views here. def get_home(request): return render(request,'home.html') </code></pre> <p>i didnt try anything,i need some help</p>
[ { "answer_id": 74321201, "author": "Swifty", "author_id": 20267366, "author_profile": "https://Stackoverflow.com/users/20267366", "pm_score": 2, "selected": true, "text": "mydict = {\n \"field_1\" : \"aaa\",\n \"field_2\": [\n {\n \"name\" : \"bbb\",\n\n \"fiel...
2022/11/04
[ "https://Stackoverflow.com/questions/74318665", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20418399/" ]
74,318,682
<p>I am facing the following issue while trying to pass a value from an HTML form <code>&lt;input&gt;</code> element to the form's <code>action</code> attribute and send it to the FastAPI server.</p> <p>This is how the Jinja2 (HTML) template is loaded:</p> <pre class="lang-py prettyprint-override"><code># Test TEMPLATE...
[ { "answer_id": 74321201, "author": "Swifty", "author_id": 20267366, "author_profile": "https://Stackoverflow.com/users/20267366", "pm_score": 2, "selected": true, "text": "mydict = {\n \"field_1\" : \"aaa\",\n \"field_2\": [\n {\n \"name\" : \"bbb\",\n\n \"fiel...
2022/11/04
[ "https://Stackoverflow.com/questions/74318682", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20418391/" ]
74,318,721
<p>I am currently optimizing a piece of C code with a lot of loops and adding/multiplying two-dimensional float vectors. The code is so slow that I cannot process my data in real time on ARM Cortex-M or even ARM Cortex-A in low CPU mode. I am close to being quick enough on Cortex-A. But on cortex-M... I will need to ru...
[ { "answer_id": 74321201, "author": "Swifty", "author_id": 20267366, "author_profile": "https://Stackoverflow.com/users/20267366", "pm_score": 2, "selected": true, "text": "mydict = {\n \"field_1\" : \"aaa\",\n \"field_2\": [\n {\n \"name\" : \"bbb\",\n\n \"fiel...
2022/11/04
[ "https://Stackoverflow.com/questions/74318721", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1919173/" ]
74,318,732
<p><a href="https://i.stack.imgur.com/ui4tK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ui4tK.png" alt="enter image description here" /></a>Unknown spacing coming again and again in <code>.content &gt; div</code>, sometimes at the top and sometimes at the bottom. I tried many ways but nothing wor...
[ { "answer_id": 74321201, "author": "Swifty", "author_id": 20267366, "author_profile": "https://Stackoverflow.com/users/20267366", "pm_score": 2, "selected": true, "text": "mydict = {\n \"field_1\" : \"aaa\",\n \"field_2\": [\n {\n \"name\" : \"bbb\",\n\n \"fiel...
2022/11/04
[ "https://Stackoverflow.com/questions/74318732", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19802999/" ]
74,318,753
<p>I have a table which has a large amount of variable data with the <code>key</code> field in particular that has, at the time of writing 14 variants. The structure is as below:</p> <pre class="lang-sql prettyprint-override"><code>CREATE TABLE `device_data` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `devi...
[ { "answer_id": 74321201, "author": "Swifty", "author_id": 20267366, "author_profile": "https://Stackoverflow.com/users/20267366", "pm_score": 2, "selected": true, "text": "mydict = {\n \"field_1\" : \"aaa\",\n \"field_2\": [\n {\n \"name\" : \"bbb\",\n\n \"fiel...
2022/11/04
[ "https://Stackoverflow.com/questions/74318753", "https://Stackoverflow.com", "https://Stackoverflow.com/users/504487/" ]
74,318,756
<p>For a website internationalization project, I have a Google Sheets with countries and languages that we would like to offer within that country.</p> <p>Shortened sample sheet: <a href="https://docs.google.com/spreadsheets/d/1JNftjuEy97KeHfEH80bwl6H-40nNohPQrnQ-W_lzDZA/" rel="nofollow noreferrer">https://docs.google....
[ { "answer_id": 74321201, "author": "Swifty", "author_id": 20267366, "author_profile": "https://Stackoverflow.com/users/20267366", "pm_score": 2, "selected": true, "text": "mydict = {\n \"field_1\" : \"aaa\",\n \"field_2\": [\n {\n \"name\" : \"bbb\",\n\n \"fiel...
2022/11/04
[ "https://Stackoverflow.com/questions/74318756", "https://Stackoverflow.com", "https://Stackoverflow.com/users/595438/" ]
74,318,794
<p>I am getting this error while performing migration between postgresql single server and flexible server:</p> <pre><code>Data migration could not be started for one or more of the DBSets. Error details: PGv2RestoreError: PG Restore failed for database 'postgres' with exit code '1' and error message 'error: could not ...
[ { "answer_id": 74319673, "author": "Laurenz Albe", "author_id": 6464308, "author_profile": "https://Stackoverflow.com/users/6464308", "pm_score": 0, "selected": false, "text": "pg_catalog ALTER EXTENSION hypopg SET SCHEMA public;\n" } ]
2022/11/04
[ "https://Stackoverflow.com/questions/74318794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9494334/" ]
74,318,800
<p>I need help for my project. I try to inject Entity Manager inside my service (SendInBlueService) call with messenger, but DependencyInjection can't find doctrine.orm.entity_manager.</p> <p>My test route</p> <pre><code>#[Route('api/testSendInBlue', name: 'testsendinblue')] public function testMessenger(AsyncMethodSer...
[ { "answer_id": 74319673, "author": "Laurenz Albe", "author_id": 6464308, "author_profile": "https://Stackoverflow.com/users/6464308", "pm_score": 0, "selected": false, "text": "pg_catalog ALTER EXTENSION hypopg SET SCHEMA public;\n" } ]
2022/11/04
[ "https://Stackoverflow.com/questions/74318800", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18628733/" ]
74,318,815
<p>We are using IIS 10 I have a user that wants their site and subsites to show the full URL path when browsing. For example, if you go to mysite.domain.com/ or mysite.domain.com/subsite/ it will show you mysite.domain/file.html or mysite.domain.com/subsite/file.html in the URL Is there a way in IIS to tell it to show ...
[ { "answer_id": 74319673, "author": "Laurenz Albe", "author_id": 6464308, "author_profile": "https://Stackoverflow.com/users/6464308", "pm_score": 0, "selected": false, "text": "pg_catalog ALTER EXTENSION hypopg SET SCHEMA public;\n" } ]
2022/11/04
[ "https://Stackoverflow.com/questions/74318815", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20364737/" ]
74,318,824
<p>I want to draw a random card from a deck and validates that it's always unique. I'm using the cardGenerator() recursive function to do that. If the random card picked has been shown then it calls itself again. Need a work around or if any of yall got a better logic please let me know.</p> <pre><code>import java.util...
[ { "answer_id": 74318917, "author": "kmeh", "author_id": 20178298, "author_profile": "https://Stackoverflow.com/users/20178298", "pm_score": 0, "selected": false, "text": " for(int i = 0; i < 13; i++){\n Integer[] deckSet = {1, 1, 1, 1}; // Moved inside\n deck...
2022/11/04
[ "https://Stackoverflow.com/questions/74318824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20418428/" ]
74,318,838
<p>i want to dispatch an action after state Change in an useEffect</p> <pre><code>React.useEffect(() =&gt; { let timer = setInterval(() =&gt; { setCurrTime(activeCallTime()); /** @todo:dispatch currtime action **/ }, 1000); return () =&gt; clearInterval(timer); }, [props.st...
[ { "answer_id": 74318917, "author": "kmeh", "author_id": 20178298, "author_profile": "https://Stackoverflow.com/users/20178298", "pm_score": 0, "selected": false, "text": " for(int i = 0; i < 13; i++){\n Integer[] deckSet = {1, 1, 1, 1}; // Moved inside\n deck...
2022/11/04
[ "https://Stackoverflow.com/questions/74318838", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11051396/" ]
74,318,853
<p>I have a chrome MV3 extension that has the following manifest.json:</p> <pre><code>{ &quot;manifest_version&quot;: 3, &quot;permissions&quot;: [ &quot;scripting&quot;, &quot;tabs&quot; ], &quot;host_permissions&quot;: [&quot;&lt;all_urls&gt;&quot;] } </code></pre> <p>When I install the extension and ...
[ { "answer_id": 74319499, "author": "d-_-b", "author_id": 1166285, "author_profile": "https://Stackoverflow.com/users/1166285", "pm_score": 1, "selected": false, "text": "chrome.scripting chrome.tabs.reload(tabId) chrome.scripting" }, { "answer_id": 74319860, "author": "Thomas...
2022/11/04
[ "https://Stackoverflow.com/questions/74318853", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1166285/" ]
74,318,894
<p>I have a list where users can dynamically add items. The list looks like this :</p> <pre><code> [{author: Tsubasa Yamaguchi, created: 24 Juin 2017, total_chapter: 34, genre: seinen, pic: https://www.nautiljon.com/images/more/03/72/278427.jpg, title: Blue Period}, {author: Tsubasa Yamaguchi, created: 24 Juin 2017, to...
[ { "answer_id": 74319499, "author": "d-_-b", "author_id": 1166285, "author_profile": "https://Stackoverflow.com/users/1166285", "pm_score": 1, "selected": false, "text": "chrome.scripting chrome.tabs.reload(tabId) chrome.scripting" }, { "answer_id": 74319860, "author": "Thomas...
2022/11/04
[ "https://Stackoverflow.com/questions/74318894", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19904553/" ]
74,318,945
<p>I'm trying to take the first column from my file (all rows except header) and delete text to the left of a colon character but I get a 400 error from VBA. I don't know what's wrong with this code.</p> <p>As an example A2 (and subsequent cells in the A column) look like this: <a href="https://i.stack.imgur.com/c2SxJ....
[ { "answer_id": 74320228, "author": "dcromley", "author_id": 3361377, "author_profile": "https://Stackoverflow.com/users/3361377", "pm_score": 0, "selected": false, "text": "lastrow = Cells(Rows.Count, 1).End(xlUp).row\n" }, { "answer_id": 74320848, "author": "VBasic2008", ...
2022/11/04
[ "https://Stackoverflow.com/questions/74318945", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2800956/" ]
74,318,955
<p>Because we need to have the ability to schedule email delivery, we have migrated to using Sidekiq to send emails with the <code>deliver_later</code> method. Under the old regime that used <code>deliver_now</code>, our testing could use</p> <pre><code>ActionMailer::Base.deliveries[index] </code></pre> <p>to inspect ...
[ { "answer_id": 74320228, "author": "dcromley", "author_id": 3361377, "author_profile": "https://Stackoverflow.com/users/3361377", "pm_score": 0, "selected": false, "text": "lastrow = Cells(Rows.Count, 1).End(xlUp).row\n" }, { "answer_id": 74320848, "author": "VBasic2008", ...
2022/11/04
[ "https://Stackoverflow.com/questions/74318955", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4959100/" ]
74,319,014
<p>Need help creating a string method in java without the use of arrays. The method takes what the user typed in as a string and passes it to the new string method. Or a whole sentence and converting it into the pig latin version of it.</p> <p>Ex. the word typed in apple is shown again with quotes around it followed by...
[ { "answer_id": 74320228, "author": "dcromley", "author_id": 3361377, "author_profile": "https://Stackoverflow.com/users/3361377", "pm_score": 0, "selected": false, "text": "lastrow = Cells(Rows.Count, 1).End(xlUp).row\n" }, { "answer_id": 74320848, "author": "VBasic2008", ...
2022/11/04
[ "https://Stackoverflow.com/questions/74319014", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20417482/" ]
74,319,018
<p>I try to create project on frontendMentor and have an issue. When i complete the form and click button element form doesnt hide. There are many new lines and this element is on the bottom. What is the problem? Code:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> ...
[ { "answer_id": 74320228, "author": "dcromley", "author_id": 3361377, "author_profile": "https://Stackoverflow.com/users/3361377", "pm_score": 0, "selected": false, "text": "lastrow = Cells(Rows.Count, 1).End(xlUp).row\n" }, { "answer_id": 74320848, "author": "VBasic2008", ...
2022/11/04
[ "https://Stackoverflow.com/questions/74319018", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16881950/" ]
74,319,034
<p>I am trying to check whether the key that the user presses is equal to the key in a word. e.g. the word is &quot;flower&quot; and the user enters &quot;f&quot; the output should be true, if the user presses &quot;x&quot; the output should be false. When I try to enter a character it give me System.InvalidCastExcept...
[ { "answer_id": 74319136, "author": "Ghassen", "author_id": 4112547, "author_profile": "https://Stackoverflow.com/users/4112547", "pm_score": 0, "selected": false, "text": " private bool KeyCheck(char key)\n {\n return currentWords[0].Contains(key);\n }\n" }, { "answer_id": 7...
2022/11/04
[ "https://Stackoverflow.com/questions/74319034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20377406/" ]
74,319,047
<p>I want to make a code that receives a random list and stores only positive numbers. However, if I run it with the code I wrote, I only get positive numbers, but the order is reversed. What should I do?</p> <p>As an example of the code, [3, 2, 1, 0] is displayed. I want to print this out [0, 1, 2, 3].</p> <pre><code>...
[ { "answer_id": 74319076, "author": "Will", "author_id": 12829151, "author_profile": "https://Stackoverflow.com/users/12829151", "pm_score": 0, "selected": false, "text": "def filter(list):\n flist = []\n for i in list:\n if list[i]>=0:\n flist.appe...
2022/11/04
[ "https://Stackoverflow.com/questions/74319047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20250172/" ]
74,319,049
<p>I could not find this in the laravel docs on aggregate relationships</p> <p>I was able to do something like this</p> <pre class="lang-php prettyprint-override"><code> private function refreshUsers() { $this-&gt;users = User::withSum(['taskTimeSessions'=&gt; function ($query) { ...
[ { "answer_id": 74319076, "author": "Will", "author_id": 12829151, "author_profile": "https://Stackoverflow.com/users/12829151", "pm_score": 0, "selected": false, "text": "def filter(list):\n flist = []\n for i in list:\n if list[i]>=0:\n flist.appe...
2022/11/04
[ "https://Stackoverflow.com/questions/74319049", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14192860/" ]
74,319,091
<p>I'm trying to create a script that reads the text from a cell and converts it into a URL Handle:</p> <p>Example: This is a test -&gt; this-is-a-test</p> <p>I´ve created a code that can convert the text just like the example, but im trying to apply this to a column with 20.000+ rows and the sheet gets very slow or cr...
[ { "answer_id": 74321093, "author": "TheMaster", "author_id": 8404453, "author_profile": "https://Stackoverflow.com/users/8404453", "pm_score": 3, "selected": true, "text": "=dash_case(E2:E100)\n function DASH_CASE(arg) {\n return Array.isArray(arg) \n ? arg.map(el => DASH_CASE(el))\n...
2022/11/04
[ "https://Stackoverflow.com/questions/74319091", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20410556/" ]
74,319,112
<p>I am importing Image, ImageTk using <code>from PIL import Image, ImageTk</code> I get the error that the module doesnt exist, but when I try to install it, it says that the module is already installed.</p> <p>I get this error:</p> <pre><code> from PIL import Image, ImageTk ModuleNotFoundError: No module named 'PI...
[ { "answer_id": 74321093, "author": "TheMaster", "author_id": 8404453, "author_profile": "https://Stackoverflow.com/users/8404453", "pm_score": 3, "selected": true, "text": "=dash_case(E2:E100)\n function DASH_CASE(arg) {\n return Array.isArray(arg) \n ? arg.map(el => DASH_CASE(el))\n...
2022/11/04
[ "https://Stackoverflow.com/questions/74319112", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20297882/" ]