qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,567,456
<p>I need to break from a for loop on a given UI event. I worked out the approach shown below; however, it is unpredictable and I have a sense that this is not the right way to do this.</p> <p>In this minimal example I break from the for loop when the user clicks the document by awaiting a setTimeout at each iteration...
[ { "answer_id": 74567501, "author": "Đạt Huỳnh", "author_id": 20595083, "author_profile": "https://Stackoverflow.com/users/20595083", "pm_score": 2, "selected": false, "text": "function Rotate(str){\n return str.substring(1)+str[0]\n}\n" }, { "answer_id": 74567509, "author"...
2022/11/25
[ "https://Stackoverflow.com/questions/74567456", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12465038/" ]
74,567,521
<p>I am wondering why this brute force approach to a Maximum Sum Subarray of Size K problem is of time complexity n<em>k instead of (n-k)k. Given that we are subtracting K elements from the outer most loop wouldn't the latter be more appropriate? The text solution mentions n</em>k and confuses me slightly.</p> <p>I hav...
[ { "answer_id": 74567748, "author": "sean", "author_id": 20261837, "author_profile": "https://Stackoverflow.com/users/20261837", "pm_score": 1, "selected": false, "text": "def max_sub_array_of_size_k(k, arr):\n s = [0]\n for i in range(len(arr)):\n # sum[i] = sum of arr[0] + ... ...
2022/11/25
[ "https://Stackoverflow.com/questions/74567521", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7214510/" ]
74,567,576
<p>I have following regex.</p> <pre><code>^(.*[^0-9])([0-9A-Fa-f]{8}[-]?[0-9A-Fa-f]{4}[-]?[0-9A-Fa-f]{4}[-]?[0-9A-Fa-f]{4}[-]?[0-9A-Fa-f]{12})(.*)$ </code></pre> <p>It splits a given text into 3 groups. <code>1:Pre-GUID</code>, <code>2:GUID</code> and <code>3:post-GUID</code> text.</p> <pre><code>Input: /user/questions...
[ { "answer_id": 74567748, "author": "sean", "author_id": 20261837, "author_profile": "https://Stackoverflow.com/users/20261837", "pm_score": 1, "selected": false, "text": "def max_sub_array_of_size_k(k, arr):\n s = [0]\n for i in range(len(arr)):\n # sum[i] = sum of arr[0] + ... ...
2022/11/25
[ "https://Stackoverflow.com/questions/74567576", "https://Stackoverflow.com", "https://Stackoverflow.com/users/971741/" ]
74,567,578
<pre><code>Dictionary = {File1: &quot;location1&quot;, File2: &quot;location2&quot;, File3: &quot;location3&quot;} def fancy_function1(location, file): df = pd.read_csv(location) df[&quot;new_column&quot;] = df[file] return df </code></pre> <p><strong>need help needed writing this for loop or any other su...
[ { "answer_id": 74567748, "author": "sean", "author_id": 20261837, "author_profile": "https://Stackoverflow.com/users/20261837", "pm_score": 1, "selected": false, "text": "def max_sub_array_of_size_k(k, arr):\n s = [0]\n for i in range(len(arr)):\n # sum[i] = sum of arr[0] + ... ...
2022/11/25
[ "https://Stackoverflow.com/questions/74567578", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14877482/" ]
74,567,593
<p>Trying to create a responsive sidebar, i want some things to be hidden when it's closed, and show when it's opened. I trying to do it with the get, set and remove Attribute, but it doesn't work. The tags already have the hidden attribute in them.</p> <pre><code>const menu = document.querySelector(&quot;.menu&quot;);...
[ { "answer_id": 74567614, "author": "flyingfox", "author_id": 3176419, "author_profile": "https://Stackoverflow.com/users/3176419", "pm_score": 2, "selected": false, "text": "hidden document.querySelectorAll setAttribute function show(){\n for(let i=0;i<hidden.length;i++){\n hi...
2022/11/25
[ "https://Stackoverflow.com/questions/74567593", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20594073/" ]
74,567,597
<p>Hello guys I'm learning Angular and we created a HeroesApp but my routerLink doesn't work, I imported and exported my routerModule and I don't know how can I fix it. <a href="https://i.stack.imgur.com/KU1A6.png" rel="nofollow noreferrer"><code>auth-routing.module.ts</code></a> <a href="https://i.stack.imgur.com/GhxZ...
[ { "answer_id": 74567614, "author": "flyingfox", "author_id": 3176419, "author_profile": "https://Stackoverflow.com/users/3176419", "pm_score": 2, "selected": false, "text": "hidden document.querySelectorAll setAttribute function show(){\n for(let i=0;i<hidden.length;i++){\n hi...
2022/11/25
[ "https://Stackoverflow.com/questions/74567597", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16023118/" ]
74,567,629
<p><strong>Problem</strong></p> <p>I mad a <code>AccesCheck</code> Mixin, and view named <code>ListFormView</code> that inherits <code>AccessCheck</code>, <code>FormView</code> and <code>ListView</code> to show list and create/update <code>Worker</code> objects. But when I try to add new data by POST method, django kee...
[ { "answer_id": 74571026, "author": "nigel222", "author_id": 5246906, "author_profile": "https://Stackoverflow.com/users/5246906", "pm_score": 0, "selected": false, "text": "object class AccessCheckMixin(LoginRequiredMixin, UserPassesTestMixin):\n # merging two mixins and adding method...
2022/11/25
[ "https://Stackoverflow.com/questions/74567629", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7098264/" ]
74,567,638
<p>i have this piece of code in testing currently</p> <pre><code>from_api_response_data = [ { &quot;active&quot;: True, &quot;available&quot;: True, &quot;test1&quot;: True, &quot;test2&quot;: &quot;Testing Only&quot;, &quot;test3&quot;: False, &quot;test_name&quot;: &quot;Tester 1&quot;, ...
[ { "answer_id": 74567667, "author": "Maxwell D. Dorliea", "author_id": 12906648, "author_profile": "https://Stackoverflow.com/users/12906648", "pm_score": 2, "selected": true, "text": "{ \"last_updated_date\": \"2022-11-25T09:48:12.765296\" } get for test in test_file_json_read:\n if t...
2022/11/25
[ "https://Stackoverflow.com/questions/74567638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1897151/" ]
74,567,654
<p>I have been trying to delete lines from a file without loading in memory all the file, because it's too large (~1Gb). How i do it without leaving a blank line in the file?</p> <p>For example:</p> <p>I want this</p> <pre><code>foo bar this is the line to be removed foo bar foo bar </code></pre> <p>To this:</p> <pre><...
[ { "answer_id": 74568034, "author": "bn_ln", "author_id": 10535824, "author_profile": "https://Stackoverflow.com/users/10535824", "pm_score": 0, "selected": false, "text": "with open('file.txt', 'r+') as f:\n r_pos = w_pos = f.tell()\n while True:\n f.seek(r_pos)\n lin...
2022/11/25
[ "https://Stackoverflow.com/questions/74567654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15810134/" ]
74,567,680
<p>My data looks like this:</p> <pre><code>company_name &lt;- c(&quot;A&quot;,&quot;A&quot;,&quot;A&quot;,&quot;A&quot;,&quot;B&quot;,&quot;B&quot;,&quot;B&quot;) year &lt;- c(1985, 1986, 1987, 1988, 1985, 1986, 1987) value &lt;- c(0, 1, 0, 0, 1, 0, 0) df &lt;- data.frame(company_name, year, value) </code></pre> <p>If...
[ { "answer_id": 74568034, "author": "bn_ln", "author_id": 10535824, "author_profile": "https://Stackoverflow.com/users/10535824", "pm_score": 0, "selected": false, "text": "with open('file.txt', 'r+') as f:\n r_pos = w_pos = f.tell()\n while True:\n f.seek(r_pos)\n lin...
2022/11/25
[ "https://Stackoverflow.com/questions/74567680", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18509162/" ]
74,567,688
<p>I am attempting to perform an inner merge of two large dataframes having columns 'ID' and 'Date'. A sample of each is shown below:</p> <p>df1</p> <pre><code> ID Date 0 RHD78 2022-08-05 1 RHD78 2022-08-06 2 RHD78 2022-08-09 3 RHD78 2022-08-11 4 RHD78 2022-08-12 5 RHD78 2022-08-14 6 R...
[ { "answer_id": 74567734, "author": "jhso", "author_id": 10475762, "author_profile": "https://Stackoverflow.com/users/10475762", "pm_score": 2, "selected": false, "text": "df df2 merge = df2.merge(df,how='cross')\nmerge['timedelta'] = pd.to_datetime(merge['Date_x']) - \\\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74567688", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19872294/" ]
74,567,753
<p>I know the current window can be used with &quot;this&quot; but is there anything I can use to call the previous window?</p> <p>For example I have this code going off when I press a button</p> <pre><code>Buyer_Login BuyerWindow = new Buyer_Login(); Visibility= Visibility.Hidden; BuyerWindow.S...
[ { "answer_id": 74567734, "author": "jhso", "author_id": 10475762, "author_profile": "https://Stackoverflow.com/users/10475762", "pm_score": 2, "selected": false, "text": "df df2 merge = df2.merge(df,how='cross')\nmerge['timedelta'] = pd.to_datetime(merge['Date_x']) - \\\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74567753", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17978542/" ]
74,567,795
<p>I’m trying to run a Dijkstra algorithm on bigquery using 2 tables. The first table has the node information (ID, Latitude, Longitude) The second table has the vertex information (Start_node_ID, End_node_ID, Distance between nodes) . I’m not really sure how to start this project, I don’t have that much experience wit...
[ { "answer_id": 74567734, "author": "jhso", "author_id": 10475762, "author_profile": "https://Stackoverflow.com/users/10475762", "pm_score": 2, "selected": false, "text": "df df2 merge = df2.merge(df,how='cross')\nmerge['timedelta'] = pd.to_datetime(merge['Date_x']) - \\\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74567795", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20359554/" ]
74,567,804
<p>I have data from a questionnaire that has a column for year of birth. So the range of data was too large and my mapping became confusing. I'm now trying to take the years, group them up by decade decade, and then chart them. But I don't know how to group them.</p> <p>my data is like:</p> <pre><code>birth_year &lt;- ...
[ { "answer_id": 74567734, "author": "jhso", "author_id": 10475762, "author_profile": "https://Stackoverflow.com/users/10475762", "pm_score": 2, "selected": false, "text": "df df2 merge = df2.merge(df,how='cross')\nmerge['timedelta'] = pd.to_datetime(merge['Date_x']) - \\\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74567804", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20422380/" ]
74,567,828
<p>I'm beginner in Swift. I have made a document picker at my task. But I see the documentation it was deprecated to used <code>open var documentPickerMode: UIDocumentPickerMode { get }</code>. While the project in my task runs with minimum deployment of IOS13. <a href="https://i.stack.imgur.com/ZcHLZ.png" rel="nofollo...
[ { "answer_id": 74569743, "author": "Muhammad Manzar", "author_id": 16153772, "author_profile": "https://Stackoverflow.com/users/16153772", "pm_score": -1, "selected": false, "text": " func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentAt url: URL) {\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74567828", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20325604/" ]
74,567,833
<p>I have a Python dataframe with multiple rows and columns, a sample of which I have shared below -</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>DocName</th> <th>Content</th> </tr> </thead> <tbody> <tr> <td>Doc1</td> <td>Hi how you are doing ? Hope you are well. I hear the food is great...
[ { "answer_id": 74568147, "author": "ZeThey", "author_id": 17451973, "author_profile": "https://Stackoverflow.com/users/17451973", "pm_score": 0, "selected": false, "text": "doc1.dict[\"food\"]\ndoc2.dict[\"food\"]\n...\n" }, { "answer_id": 74570234, "author": "Timus", "au...
2022/11/25
[ "https://Stackoverflow.com/questions/74567833", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6510332/" ]
74,567,850
<p>It is possible to add when or if condition on Ansible variable? For example we have 2 jenkins server (server A and server B), we want to apply different plugins version for both of them.</p> <p>Example:</p> <pre><code>jenkins_plugins: - name: plugin-x version: &quot;1.1&quot; {&quot;if server == A&quot;} - n...
[ { "answer_id": 74568147, "author": "ZeThey", "author_id": 17451973, "author_profile": "https://Stackoverflow.com/users/17451973", "pm_score": 0, "selected": false, "text": "doc1.dict[\"food\"]\ndoc2.dict[\"food\"]\n...\n" }, { "answer_id": 74570234, "author": "Timus", "au...
2022/11/25
[ "https://Stackoverflow.com/questions/74567850", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15865474/" ]
74,567,875
<p>Trying to create a mask for my dataframe but can not compare the upper bound / lower bound datetimes to the index of the dataframe due to it being datetime64[ns]. I have seen the solution be to convert via pd.Timestamp - however I still get a value error.</p> <p>Additionally I have tried to convert the index and am ...
[ { "answer_id": 74568147, "author": "ZeThey", "author_id": 17451973, "author_profile": "https://Stackoverflow.com/users/17451973", "pm_score": 0, "selected": false, "text": "doc1.dict[\"food\"]\ndoc2.dict[\"food\"]\n...\n" }, { "answer_id": 74570234, "author": "Timus", "au...
2022/11/25
[ "https://Stackoverflow.com/questions/74567875", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16701789/" ]
74,567,879
<p>Ask the user to enter their name and current age. Write code to print a personalised greeting and tell them how old they will be on their next birthday.</p> <p>e.g. If the user enters &quot;Kelly&quot; and &quot;43&quot;, your program should output:</p> <p>&quot;Hello Kelly, on your next birthday you will be 44.&quo...
[ { "answer_id": 74567914, "author": "jmcilhinney", "author_id": 584183, "author_profile": "https://Stackoverflow.com/users/584183", "pm_score": 2, "selected": false, "text": "\"Hello \" + name + \", on your next birthday you will be \"+age +1\n + age age = age + 1;\n \"Hello \" + name + ...
2022/11/25
[ "https://Stackoverflow.com/questions/74567879", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20511862/" ]
74,567,946
<p>I am pretty new to PHP so please go easy on me.</p> <p>I am receiving this error &quot;SQLSTATE[HY093]: Invalid parameter...&quot; when I am preparing my SQL statement and binding the values.</p> <p>I have a function that takes three parameters: $table, $data, $id</p> <p>Where $table is simply the table to update in...
[ { "answer_id": 74567914, "author": "jmcilhinney", "author_id": 584183, "author_profile": "https://Stackoverflow.com/users/584183", "pm_score": 2, "selected": false, "text": "\"Hello \" + name + \", on your next birthday you will be \"+age +1\n + age age = age + 1;\n \"Hello \" + name + ...
2022/11/25
[ "https://Stackoverflow.com/questions/74567946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20595433/" ]
74,567,962
<p>I really like the debug console feature in VScode, it makes it a lot easier for me to do Python writing. How do I get it to stay on? Is it possible to write launch.json so that the code runs without closing the run afterwards?</p> <p>I can use 'time.sleep()' to continue this console on. Can I edit the'launch.json'? ...
[ { "answer_id": 74567914, "author": "jmcilhinney", "author_id": 584183, "author_profile": "https://Stackoverflow.com/users/584183", "pm_score": 2, "selected": false, "text": "\"Hello \" + name + \", on your next birthday you will be \"+age +1\n + age age = age + 1;\n \"Hello \" + name + ...
2022/11/25
[ "https://Stackoverflow.com/questions/74567962", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20595530/" ]
74,567,964
<p>I'm would like to use Array Formula to use the data from another sheet and obtain only the Date from the Date and Time Data.</p> <p>Example, In Sheet 1, there will be a list of date and time date.</p> <ul> <li>Nov 15, 2022, 2:34 PM</li> </ul> <p>In Sheet 2, I would like to use a formula to return the date without th...
[ { "answer_id": 74567914, "author": "jmcilhinney", "author_id": 584183, "author_profile": "https://Stackoverflow.com/users/584183", "pm_score": 2, "selected": false, "text": "\"Hello \" + name + \", on your next birthday you will be \"+age +1\n + age age = age + 1;\n \"Hello \" + name + ...
2022/11/25
[ "https://Stackoverflow.com/questions/74567964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20595599/" ]
74,567,984
<p>I have a huge dataframe around 5000 rows, I need to find out how many times a pattern occur in a column and add a new column for it, I am able to use np.where to get the pattern to 1 but I don't know how to count the pattern and add to new column, I did a search online try to use loop but I can't figure out how to u...
[ { "answer_id": 74571172, "author": "Frodnar", "author_id": 15534441, "author_profile": "https://Stackoverflow.com/users/15534441", "pm_score": 1, "selected": true, "text": "df.iterrows() import pandas as pd\nimport numpy as np\n\ndf = pd.DataFrame({'Date': {0: '2015-02-24', 1: '2015-02-2...
2022/11/25
[ "https://Stackoverflow.com/questions/74567984", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14517795/" ]
74,567,993
<blockquote> <p>Is word &quot;python&quot; and 'python' are different expression??</p> </blockquote> <p>I want to know the differnecce between the type of the expressions &quot;python&quot; and ’python’</p>
[ { "answer_id": 74568046, "author": "njt121", "author_id": 20595651, "author_profile": "https://Stackoverflow.com/users/20595651", "pm_score": 0, "selected": false, "text": "'python's' \n \"python's\"\n" }, { "answer_id": 74568092, "author": "Minhaj98", "author_id": 107529...
2022/11/25
[ "https://Stackoverflow.com/questions/74567993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20173161/" ]
74,568,013
<p>I installed <code>chartjs</code> and <code>react-chartjs-2</code> using <code>yarn add react-chartjs-2 chart.js</code>. However, when I import any components from the <code>react-chartjs-2</code> library, this error is thrown:</p> <pre><code>The path &quot;react-chartjs-2&quot; is imported in [path]\chart.tsx but &q...
[ { "answer_id": 74568046, "author": "njt121", "author_id": 20595651, "author_profile": "https://Stackoverflow.com/users/20595651", "pm_score": 0, "selected": false, "text": "'python's' \n \"python's\"\n" }, { "answer_id": 74568092, "author": "Minhaj98", "author_id": 107529...
2022/11/25
[ "https://Stackoverflow.com/questions/74568013", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20586887/" ]
74,568,043
<p>I want to know why the second print function can print a? and the third print function not print a?</p> <pre><code>#include &lt;stdio.h&gt; int main() { int i = 97; // a printf(&amp;i); // a:print content in address &amp;i printf(&quot;\n%s\n&quot;, &amp;i); // why print a? printf(&quot;%c\n&quot...
[ { "answer_id": 74568071, "author": "Mark Ransom", "author_id": 5987, "author_profile": "https://Stackoverflow.com/users/5987", "pm_score": 2, "selected": false, "text": "%c" }, { "answer_id": 74568232, "author": "Jeremy Friesner", "author_id": 131930, "author_profile"...
2022/11/25
[ "https://Stackoverflow.com/questions/74568043", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20595610/" ]
74,568,049
<p>Am a bit lost and been scratching my head for a couple of days, I am getting this error</p> <blockquote> <p>Null check operator used on a null value</p> </blockquote> <p>On this piece of code</p> <pre><code> percent = (scores[section] ?? 0 / totalPerSection[section]!) * 100; </code></pre> <p>the section inside here ...
[ { "answer_id": 74568071, "author": "Mark Ransom", "author_id": 5987, "author_profile": "https://Stackoverflow.com/users/5987", "pm_score": 2, "selected": false, "text": "%c" }, { "answer_id": 74568232, "author": "Jeremy Friesner", "author_id": 131930, "author_profile"...
2022/11/25
[ "https://Stackoverflow.com/questions/74568049", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14236206/" ]
74,568,063
<p>I would like to find out the most utilized location for the date of 2/1/2022.</p> <h2>Data</h2> <pre><code>ID location total marks_free marks_utilized date 1 NY 6 5 1 2/1/2022 2 NY 10 5 5 2/1/2022 3 NY 2 1 ...
[ { "answer_id": 74568148, "author": "BENY", "author_id": 7964527, "author_profile": "https://Stackoverflow.com/users/7964527", "pm_score": 1, "selected": false, "text": "df.groupby(['location','date']).apply(lambda x : x['marks_utilized'].sum()/x['total'].sum()).\\\n mul(100).reset_ind...
2022/11/25
[ "https://Stackoverflow.com/questions/74568063", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5942100/" ]
74,568,074
<p>I have a useState called isPackage which is a boolean that starts as false. I use this hook in a simple JSX select, which when isPackage is true requires it to be enabled but when it is false it is disabled. The problem starts from the rendering since although usPackage is false, the select is shown enabled. This is...
[ { "answer_id": 74568148, "author": "BENY", "author_id": 7964527, "author_profile": "https://Stackoverflow.com/users/7964527", "pm_score": 1, "selected": false, "text": "df.groupby(['location','date']).apply(lambda x : x['marks_utilized'].sum()/x['total'].sum()).\\\n mul(100).reset_ind...
2022/11/25
[ "https://Stackoverflow.com/questions/74568074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8977748/" ]
74,568,085
<p>Could you please tell me how can I remove &quot;)&quot; from strings in a list without converting the list to a string? Example:</p> <p>Input:</p> <pre><code>list =[ 'ABDDDDC 1,000 IWJBCKNBCDVV', 'BDISJBJ 2,000 DBFIAJDBDIAJ', 'JDBISJB 5,000 AHSBIEFEWEFJ)', # there is a parenthesis at the end 'CONDDDD 7,000 4DJVB...
[ { "answer_id": 74568148, "author": "BENY", "author_id": 7964527, "author_profile": "https://Stackoverflow.com/users/7964527", "pm_score": 1, "selected": false, "text": "df.groupby(['location','date']).apply(lambda x : x['marks_utilized'].sum()/x['total'].sum()).\\\n mul(100).reset_ind...
2022/11/25
[ "https://Stackoverflow.com/questions/74568085", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20470864/" ]
74,568,104
<p>So i'm trying to make a program which create and print an array made of 29 index with 5 of those being &quot;A&quot; and the 24 others being &quot;-&quot;. I've ran across the problem where it's either giving me an outofbound error or just not putting 5 &quot;A&quot; on the board.</p> <p>Here is what i've tried so f...
[ { "answer_id": 74568354, "author": "william beaudin", "author_id": 20162945, "author_profile": "https://Stackoverflow.com/users/20162945", "pm_score": 1, "selected": false, "text": "static String[] placeRandomAppleAroundBoard(String[] board) throws java.lang.ArrayIndexOutOfBoundsExceptio...
2022/11/25
[ "https://Stackoverflow.com/questions/74568104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20162945/" ]
74,568,130
<p>Here is the code</p> <pre><code>&lt;?php $servername = &quot;localhost&quot;; $usrname = &quot;root&quot;; $pwd = &quot;&quot;; $db = &quot;test_db&quot;; // connect to the database $conn= mysqli_connect($servername, $usrname, $pwd,$db); if (!$conn){ die('connection failed' . mysqli_connect_error()); } // Crea...
[ { "answer_id": 74568354, "author": "william beaudin", "author_id": 20162945, "author_profile": "https://Stackoverflow.com/users/20162945", "pm_score": 1, "selected": false, "text": "static String[] placeRandomAppleAroundBoard(String[] board) throws java.lang.ArrayIndexOutOfBoundsExceptio...
2022/11/25
[ "https://Stackoverflow.com/questions/74568130", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13636544/" ]
74,568,158
<p>I need some help combing the styling of this span-button which is provided by the website I use. I don't think I can change the button type to another type, and since im using Squarespace to add the button to the site, the whole code needs to be in HTML.</p> <p>The code for the button is provided, and a link to how ...
[ { "answer_id": 74568354, "author": "william beaudin", "author_id": 20162945, "author_profile": "https://Stackoverflow.com/users/20162945", "pm_score": 1, "selected": false, "text": "static String[] placeRandomAppleAroundBoard(String[] board) throws java.lang.ArrayIndexOutOfBoundsExceptio...
2022/11/25
[ "https://Stackoverflow.com/questions/74568158", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14934468/" ]
74,568,182
<p>I am new to Terraform and its CDK. I am confuse about the following:</p> <p>When I try to run the <code>tf.json</code> generated through <code>cdktf synth</code> using <code>cdktf deploy</code>, <code>terraform plan</code> or <code>terraform apply</code>, the console keeps telling me that all attributes inside the <...
[ { "answer_id": 74596588, "author": "Hong", "author_id": 13037561, "author_profile": "https://Stackoverflow.com/users/13037561", "pm_score": 0, "selected": false, "text": "access_config \"access_config\":[{\n \"nat_ip\":\"google_compute_address.some_name.address\",\n \"public_ptr_do...
2022/11/25
[ "https://Stackoverflow.com/questions/74568182", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13037561/" ]
74,568,184
<p>I wish to add dollar symbol in front of all the values in my column.</p> <h2>Data</h2> <pre><code>ID Price aa 800 bb 2 cc 300 cc 4 </code></pre> <h2>Desired</h2> <pre><code>ID Price aa $800 bb $2 cc $300 cc $4 </code></pre> <h2>Doing</h2> <pre><code>df.loc[&quot;Price&quot;] ='$'+ df[&quot;Price&quot;].map...
[ { "answer_id": 74568215, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 1, "selected": false, "text": "str.replace df[\"Price\"] = df[\"Price\"].astype(str).str.replace(r'^', '$', regex=True)\n" }, { "an...
2022/11/25
[ "https://Stackoverflow.com/questions/74568184", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5942100/" ]
74,568,189
<p>I am trying to use netlify serverless functions with svelte/vite using netlify dev. Im running svelte 3.52.0, vite 3.2.3, node 16.14.0, netlify-cli 12.2.7 (Windows).</p> <p>When I run netlify dev and choose either &quot;Svelte npm run dev&quot; or Svelte npm run build it &quot;hangs&quot; constantly displaying &quot...
[ { "answer_id": 74606842, "author": "Pick Avana", "author_id": 10936092, "author_profile": "https://Stackoverflow.com/users/10936092", "pm_score": 1, "selected": true, "text": "[build]\n publish=\"dist\"\n[dev]\n command = \"npm run dev\"\n targetPort=5173\n port=8888\n[functions]\nnod...
2022/11/25
[ "https://Stackoverflow.com/questions/74568189", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10936092/" ]
74,568,196
<p>I want to search a list of group of strings inside a text file (.txt or .log).</p> <ol> <li>it must include group A or B (or CDE..).</li> <li>group A OR B each words need in the same line but not near by. (eg. [&quot;123456&quot;, &quot;Login&quot;] or [&quot;123457&quot;, &quot;Login&quot;] if in the same line then...
[ { "answer_id": 74606842, "author": "Pick Avana", "author_id": 10936092, "author_profile": "https://Stackoverflow.com/users/10936092", "pm_score": 1, "selected": true, "text": "[build]\n publish=\"dist\"\n[dev]\n command = \"npm run dev\"\n targetPort=5173\n port=8888\n[functions]\nnod...
2022/11/25
[ "https://Stackoverflow.com/questions/74568196", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19646944/" ]
74,568,229
<p>i am making a digital clock but my javascript code is not working but console.log is working i have checked my code i can't find any error java script : <a href="https://i.stack.imgur.com/vXByd.png" rel="nofollow noreferrer">enter image description here</a> and the java script is working bec u can see in the website...
[ { "answer_id": 74606842, "author": "Pick Avana", "author_id": 10936092, "author_profile": "https://Stackoverflow.com/users/10936092", "pm_score": 1, "selected": true, "text": "[build]\n publish=\"dist\"\n[dev]\n command = \"npm run dev\"\n targetPort=5173\n port=8888\n[functions]\nnod...
2022/11/25
[ "https://Stackoverflow.com/questions/74568229", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20595835/" ]
74,568,332
<p>I pass in a string, &quot;--pl-&quot; into the function, wordle. I would like the function to return a set of strings with all possible 5 letter words with 'p' as 3rd letter and 'l' as 4th letter. This would mean that the set would return 26^3 different strings.</p> <p>I am trying to use recursion to do this but am ...
[ { "answer_id": 74568525, "author": "Rulle", "author_id": 1008794, "author_profile": "https://Stackoverflow.com/users/1008794", "pm_score": 1, "selected": false, "text": "floating dict #include <vector>\n#include <string>\n\nstd::vector<std::string> combine(\n const std::vector<std::stri...
2022/11/25
[ "https://Stackoverflow.com/questions/74568332", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20585987/" ]
74,568,352
<p>tl;dr questions:</p> <ol> <li>how to parse MIME content into threads (thus lists of individual replies &amp; forwards)</li> <li>any libraries that do that?</li> <li>Does Mime-Version: 1.0 standardize the way threads are represented?</li> </ol> <p>I'm analyzing enron dataset (<a href="https://www.cs.cmu.edu/%7E./enro...
[ { "answer_id": 74568525, "author": "Rulle", "author_id": 1008794, "author_profile": "https://Stackoverflow.com/users/1008794", "pm_score": 1, "selected": false, "text": "floating dict #include <vector>\n#include <string>\n\nstd::vector<std::string> combine(\n const std::vector<std::stri...
2022/11/25
[ "https://Stackoverflow.com/questions/74568352", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12314390/" ]
74,568,366
<p>I downloaded and run a C++ project for Digital-persona-sdk <a href="https://github.com/iamonuwa/Digital-Persona-SDK/" rel="nofollow noreferrer">https://github.com/iamonuwa/Digital-Persona-SDK/</a> finger print project.That have two projects in after install the sdk. That project only Capture and Verification functio...
[ { "answer_id": 74568525, "author": "Rulle", "author_id": 1008794, "author_profile": "https://Stackoverflow.com/users/1008794", "pm_score": 1, "selected": false, "text": "floating dict #include <vector>\n#include <string>\n\nstd::vector<std::string> combine(\n const std::vector<std::stri...
2022/11/25
[ "https://Stackoverflow.com/questions/74568366", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19718656/" ]
74,568,387
<p>I have <code>object</code> as following format :</p> <pre><code>let objs = [ {Name : 'A', Y1 : '1', Y2 : '1',Y3 : '1'} {Name : 'B', Y1 : '2', Y2 : '3',Y3 : '3'} {Name : 'C', Y1 : '1', Y2 : '1',Y3 : '6'} ] </code></pre> <p>I want to achive an object as following :</p> <pre><code>{Name : 'Total', Y1 : ...
[ { "answer_id": 74568401, "author": "flyingfox", "author_id": 3176419, "author_profile": "https://Stackoverflow.com/users/3176419", "pm_score": 1, "selected": false, "text": "reduce reduce let objs = [\n {Name : 'A', Y1 : '1', Y2 : '1',Y3 : '1'},\n {Name : 'B', Y1 : '2', Y2 : '3',Y3...
2022/11/25
[ "https://Stackoverflow.com/questions/74568387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6681701/" ]
74,568,388
<p>I have created a flask application of the soccer tournament. I am having issues with the form page, the submit button should display a text &quot;Hello&quot; + string + &quot;for submitting!&quot;. I created a additional html page named display that displays this. Once, I filled out the form it did not do nothing.<...
[ { "answer_id": 74568443, "author": "Zac Anger", "author_id": 5774952, "author_profile": "https://Stackoverflow.com/users/5774952", "pm_score": 0, "selected": false, "text": "{{feedback}} render_template render_template render_template(\"form.html\", feedback=feedback) name form.html comm...
2022/11/25
[ "https://Stackoverflow.com/questions/74568388", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20482343/" ]
74,568,402
<p>I have a problem when creating express JS router.</p> <p>I can not passing req and res to my class method.</p> <p><strong>Not Work</strong> <code>app.get('/', controller.index)</code></p> <p><strong>Work</strong> <code>app.get('/', (res,req) =&gt; controller.index(req,res)</code></p> <p>The following is the flow of ...
[ { "answer_id": 74568443, "author": "Zac Anger", "author_id": 5774952, "author_profile": "https://Stackoverflow.com/users/5774952", "pm_score": 0, "selected": false, "text": "{{feedback}} render_template render_template render_template(\"form.html\", feedback=feedback) name form.html comm...
2022/11/25
[ "https://Stackoverflow.com/questions/74568402", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3354612/" ]
74,568,411
<p>Finding examples for ICU is difficult, but here is what I'm trying to do. I need to be able to carve graphemes out of strings. In order to do this, I need to get the sequence of grapheme lengths in bytes from the string, so I'm trying to do this using a BreakIterator.</p> <p>I decided to test this with 3 character...
[ { "answer_id": 74568443, "author": "Zac Anger", "author_id": 5774952, "author_profile": "https://Stackoverflow.com/users/5774952", "pm_score": 0, "selected": false, "text": "{{feedback}} render_template render_template render_template(\"form.html\", feedback=feedback) name form.html comm...
2022/11/25
[ "https://Stackoverflow.com/questions/74568411", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3821565/" ]
74,568,425
<p>I am trying to create a program which takes an input of a list of lists, and gives an output of lists with only distinct elements. For example, if I had this list:</p> <pre><code>[[1,2,3,4],[1,3,6,7],[5,8,9]] </code></pre> <p>my output should just be</p> <pre><code>[5,8,9] </code></pre> <p>because only [5,8,9] conta...
[ { "answer_id": 74568502, "author": "kaya3", "author_id": 12299000, "author_profile": "https://Stackoverflow.com/users/12299000", "pm_score": 1, "selected": false, "text": "collections.Counter itertools.chain.from_iterable from collections import Counter\nfrom itertools import chain\n\nli...
2022/11/25
[ "https://Stackoverflow.com/questions/74568425", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19286514/" ]
74,568,430
<p>I have some 2d double-type arrays in my c code and I want to select between them. The solution I have used so far is to create another 2d array and fill it with a for{ for{}}.</p> <pre><code>if (some condition) for() for() temp[i][j]=arr1[i][j]; else if (another condition) for() for(...
[ { "answer_id": 74568510, "author": "Allan Wind", "author_id": 9706, "author_profile": "https://Stackoverflow.com/users/9706", "pm_score": 1, "selected": false, "text": "double (*temp)[4][4]; * [][] #include <stdio.h>\n\n#define ROWS 4\n#define COLS 4\n\nint main(void) {\n double (*tem...
2022/11/25
[ "https://Stackoverflow.com/questions/74568430", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14761672/" ]
74,568,469
<p>I have been trying to solve printing down left side star(*) pattern in Javascript using recursion, i think my logic is correct but my syntax and concept might be wrong</p> <pre><code>// * * * * * // * * * * // * * * // * * // * </code></pre> <p>This is my code solution so far</p> <pre><code>var triangle = function (...
[ { "answer_id": 74568530, "author": "Hao Wu", "author_id": 10289265, "author_profile": "https://Stackoverflow.com/users/10289265", "pm_score": 1, "selected": false, "text": "console.log() document.write var triangle = function (row, col) {\n if(row == 0){\n return\n }\n if...
2022/11/25
[ "https://Stackoverflow.com/questions/74568469", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4570550/" ]
74,568,506
<p>By running this program on my computer, I'm getting same addresses. I'm for case of <code>array</code> and <code>&amp;array[0]</code> I understand that name of <code>array</code> points to the address of first item in the <code>array</code>. And both of them are same.</p> <p>But I'm <strong><em>unable</em></strong> ...
[ { "answer_id": 74568566, "author": "dbush", "author_id": 1687119, "author_profile": "https://Stackoverflow.com/users/1687119", "pm_score": 4, "selected": true, "text": "array sizeof & array &array[0] &array &array[0] char * &array char (*)[3] char" }, { "answer_id": 74569001, ...
2022/11/25
[ "https://Stackoverflow.com/questions/74568506", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15672315/" ]
74,568,521
<p>I want to get the name of all tags of nested tag. here is the code that I tried</p> <pre><code>soup = BeautifulSoup(''' &lt;AlternativeIdentifiers&gt; &lt;NationalLocationCode&gt;513100&lt;/NationalLocationCode&gt; &lt;/AlternativeIdentifiers&gt; &lt;Name&gt;Abbey Wood&lt;/Name&gt; &lt;SixteenCharacterName&gt;ABB...
[ { "answer_id": 74568632, "author": "Fazlul", "author_id": 12848411, "author_profile": "https://Stackoverflow.com/users/12848411", "pm_score": 1, "selected": true, "text": "find_all from bs4 import BeautifulSoup\n\nsoup = BeautifulSoup('''\n<AlternativeIdentifiers>\n <NationalLocationCo...
2022/11/25
[ "https://Stackoverflow.com/questions/74568521", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17158889/" ]
74,568,573
<p>i want to get rid of if else with lookup or hashmap.</p> <p>currently I am using below code.</p> <pre><code>if min&lt;=60: print('The rating for time is 10') elif 60&lt;min&lt;=120: print('The rating for time is 8.34') elif 120&lt;min&lt;=180: print('The rating for time is 6.68') elif 180&lt;min&lt;=240:...
[ { "answer_id": 74568632, "author": "Fazlul", "author_id": 12848411, "author_profile": "https://Stackoverflow.com/users/12848411", "pm_score": 1, "selected": true, "text": "find_all from bs4 import BeautifulSoup\n\nsoup = BeautifulSoup('''\n<AlternativeIdentifiers>\n <NationalLocationCo...
2022/11/25
[ "https://Stackoverflow.com/questions/74568573", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20595723/" ]
74,568,593
<p>I am trying to find files along with the matching password pattern under a given directory on linux using egrep. The pattern found in the files is typically as follows</p> <ol> <li><code>password=value</code></li> <li><code>pwd=value</code></li> <li><code>pass=value</code></li> </ol> <ul> <li><p>A file that is matc...
[ { "answer_id": 74570173, "author": "Abhishek G", "author_id": 12071682, "author_profile": "https://Stackoverflow.com/users/12071682", "pm_score": 1, "selected": true, "text": "(password|pwd|pass) *= *+((?=\".*\")\"[^&{][^\\s]*\"|(?='.*')'[^&{][^\\s]*'|(?=[^\"'{&].*)[^\\s]*)$\n (password|...
2022/11/25
[ "https://Stackoverflow.com/questions/74568593", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2417881/" ]
74,568,603
<p>I have below sample javascript array object -</p> <pre><code>[ {id:&quot;B1&quot;,name:&quot;Belacost&quot;,group:&quot;Quim&quot;}, {id:&quot;B1&quot;,name:&quot;Medtown&quot;,group:&quot;Bik&quot;}, {id:&quot;B1&quot;,name:&quot;Regkim&quot;,group:&quot;Dum&quot;}, {id:&quot;C1&quot;,name:&quot;CSet&quot;,gr...
[ { "answer_id": 74568625, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 4, "selected": true, "text": "reduce const list = [ {id:\"B1\",name:\"Belacost\",group:\"Quim\"},\n {id:\"B1\",name:\"Medtown\",group:\"B...
2022/11/25
[ "https://Stackoverflow.com/questions/74568603", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2536611/" ]
74,568,634
<p>so I was working on this <a href="https://leetcode.com/problems/binary-tree-level-order-traversal/description/" rel="nofollow noreferrer">leet code problem</a>.</p> <p>and here is the solution</p> <pre><code>var levelOrder = function(root) { let q = [root], ans = [] while (q[0]) { let qlen = q.l...
[ { "answer_id": 74568682, "author": "Jonathan Bernal", "author_id": 20596150, "author_profile": "https://Stackoverflow.com/users/20596150", "pm_score": 2, "selected": false, "text": "while(q[0]) q.shift()" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74568634", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15453019/" ]
74,568,652
<p>I have a node application which handles JSON files: it reads, parses files and writes new files. And sometimes, by necessary, the files become a massive swarm. First, I think current reading speed looks reasonalbe, but writing speed seems little bit slow.</p> <p>I'd like to improve this processing speed.</p> <p>Befo...
[ { "answer_id": 74569079, "author": "Davidsamuel", "author_id": 2918907, "author_profile": "https://Stackoverflow.com/users/2918907", "pm_score": 0, "selected": false, "text": "const fs = require('fs');\nlet sourceFileStream = fs.createReadStream('./file1.json')\nlet destinationFileStream...
2022/11/25
[ "https://Stackoverflow.com/questions/74568652", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18340106/" ]
74,568,659
<p>How to change the color of a div tag in HTML with JavaScript code</p>
[ { "answer_id": 74568724, "author": "Mohammad Sultani", "author_id": 12753061, "author_profile": "https://Stackoverflow.com/users/12753061", "pm_score": 0, "selected": false, "text": "// selecting the html element using id\n\nvar div = document.getElementById(\"apple\");\ndiv.style.color ...
2022/11/25
[ "https://Stackoverflow.com/questions/74568659", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19460211/" ]
74,568,737
<p>im new in flutter and i have this button error that wont navigate to different pages.</p> <p>so i have a &quot;HomePage&quot; that have a button to navigate to &quot;ReminderHomePage&quot;. but when i try to press it it show this error:</p> <pre><code>══╡ EXCEPTION CAUGHT BY GESTURE ╞════════════════════════════════...
[ { "answer_id": 74568782, "author": "Jasmin Sojitra", "author_id": 11557906, "author_profile": "https://Stackoverflow.com/users/11557906", "pm_score": 0, "selected": false, "text": " Navigator.push(\n context,\n MaterialPageRoute(builder: (context) => const ReminderHomePage()),\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74568737", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20229067/" ]
74,568,751
<p>I am facing this issue from yesterday. This is the exact error: Failed to start feature-config: A e2-micro VM instance is currently unavailable in the us-central1-a zone. Alternatively, you can try your request again with a different VM hardware configuration or at a later time. For more information, see the trouble...
[ { "answer_id": 74605721, "author": "Ferregina", "author_id": 12265927, "author_profile": "https://Stackoverflow.com/users/12265927", "pm_score": 0, "selected": false, "text": "us-central1" }, { "answer_id": 74605955, "author": "Dharmaraj", "author_id": 13130697, "auth...
2022/11/25
[ "https://Stackoverflow.com/questions/74568751", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13337398/" ]
74,568,752
<p>I am trying to set the firstDay in the calendar in TableCalendar to be the first day of the current month. I am not sure how to set it.</p> <p>Here is how it is formated now:</p> <pre><code> TableCalendar( firstDay: DateTime.utc(2022, 11, 01), last...
[ { "answer_id": 74568873, "author": "Paulo", "author_id": 15649348, "author_profile": "https://Stackoverflow.com/users/15649348", "pm_score": 2, "selected": true, "text": "var date = DateTime.now();\n\nTableCalendar(\n firstDay: DateTime.utc(date.year, date.month, 1),\n lastDay: Dat...
2022/11/25
[ "https://Stackoverflow.com/questions/74568752", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13176726/" ]
74,568,765
<p>I have two table, [table a] and [table b]. So basically, I need work_week from [table a] therefore I want to join the columns together, shift_begin_datetime from [table a] and shift_start_datetime from [table b] as both of them have the same data type but they have different name.</p> <pre><code>[table a] ...
[ { "answer_id": 74569332, "author": "Thorsten Kettner", "author_id": 2270762, "author_profile": "https://Stackoverflow.com/users/2270762", "pm_score": 0, "selected": false, "text": "CAST select\n shift_begin_datetime as shift_start_dt,\n work_week,\n cast(null as varchar(100)) as b_nam...
2022/11/25
[ "https://Stackoverflow.com/questions/74568765", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20595724/" ]
74,568,772
<p>Hello I am fairly new to java! I really struggle to solve this error and I can't finde anything on the internet. if I do: <code>long test = (long) (2147483647 + 1);</code> it sets <em>test</em> to an int even though I used long. why?</p> <p>I tryed it using max int value but still it doesn't worked. <code>long test ...
[ { "answer_id": 74569332, "author": "Thorsten Kettner", "author_id": 2270762, "author_profile": "https://Stackoverflow.com/users/2270762", "pm_score": 0, "selected": false, "text": "CAST select\n shift_begin_datetime as shift_start_dt,\n work_week,\n cast(null as varchar(100)) as b_nam...
2022/11/25
[ "https://Stackoverflow.com/questions/74568772", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20240448/" ]
74,568,785
<h2>I have a json variable looks like this</h2> <p>json_data=</p> <pre><code>[ { &quot;authType&quot;: &quot;ldap&quot;, &quot;password&quot;: &quot;&quot;, &quot;permissions&quot;: [ { &quot;collections&quot;: [ &quot;aks9099&quot;, ...
[ { "answer_id": 74569332, "author": "Thorsten Kettner", "author_id": 2270762, "author_profile": "https://Stackoverflow.com/users/2270762", "pm_score": 0, "selected": false, "text": "CAST select\n shift_begin_datetime as shift_start_dt,\n work_week,\n cast(null as varchar(100)) as b_nam...
2022/11/25
[ "https://Stackoverflow.com/questions/74568785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20252882/" ]
74,568,837
<p>I have a list of dataframes</p> <p>li = [df1, df2,..]</p> <p>All the dataframes in the list have common headers. I am appending the list of dataframes into a single df as follows:</p> <pre><code>path =&quot;...&quot; all_files=glob.glob(path+&quot;*.csv&quot;) all_files li = [] for filename in all_files: df=pd.r...
[ { "answer_id": 74569332, "author": "Thorsten Kettner", "author_id": 2270762, "author_profile": "https://Stackoverflow.com/users/2270762", "pm_score": 0, "selected": false, "text": "CAST select\n shift_begin_datetime as shift_start_dt,\n work_week,\n cast(null as varchar(100)) as b_nam...
2022/11/25
[ "https://Stackoverflow.com/questions/74568837", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14703852/" ]
74,568,858
<p>i am trying to create a react native project i have 2 android devices 1 is running android 9 and 1 is running android 12 my app is getting is installing and running on device that has android 9 but my app is not running on android 12</p> <p>i get the following error</p> <pre><code>&gt; Task :app:installDebug Install...
[ { "answer_id": 74649105, "author": "Marcos Veloso", "author_id": 13594410, "author_profile": "https://Stackoverflow.com/users/13594410", "pm_score": -1, "selected": false, "text": "android cd android\n .\\gradlew clean\n" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74568858", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17814678/" ]
74,568,885
<p>I am working to create automatic Archiving system where i need to automatically sort the files folder wise. I am now able to create the folders automatically by mentioning the names of folder in excel sheet. Now i only need to copy the files with the similar names in that respective folder. E.g. A folder is created ...
[ { "answer_id": 74649105, "author": "Marcos Veloso", "author_id": 13594410, "author_profile": "https://Stackoverflow.com/users/13594410", "pm_score": -1, "selected": false, "text": "android cd android\n .\\gradlew clean\n" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74568885", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20141828/" ]
74,568,889
<p>I updated my android project from compileSdkVersion 31 to compileSdkVersion 33. I have the next code to launch the permissions that I need in the app, but it is not working</p> <pre><code>import android.Manifest import android.app.Activity import android.content.pm.PackageInfo import android.content.pm.PackageMana...
[ { "answer_id": 74649105, "author": "Marcos Veloso", "author_id": 13594410, "author_profile": "https://Stackoverflow.com/users/13594410", "pm_score": -1, "selected": false, "text": "android cd android\n .\\gradlew clean\n" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74568889", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7949704/" ]
74,568,890
<p>I have a react app and I want to persist the array of favorites when the page refreshes.</p> <p>The data is set correctly, I can see it in the dev tools. But when i refresh the page, the data is removed. Any ideas why this may be?</p> <p>Link to sandbox - <a href="https://codesandbox.io/s/sad-surf-sqgo0q?file=/src/A...
[ { "answer_id": 74649105, "author": "Marcos Veloso", "author_id": 13594410, "author_profile": "https://Stackoverflow.com/users/13594410", "pm_score": -1, "selected": false, "text": "android cd android\n .\\gradlew clean\n" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74568890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19932692/" ]
74,568,896
<p>I have this code to showing value from database as well as checking the checkbox that have the value :</p> <pre><code>&lt;?php $result = mysqli_query($kon,&quot;SELECT jenis FROM pasien WHERE nopemeriksaan = $nopemeriksaan&quot;); while($row = mysqli_fetch_array($result)) { $jenis = explode(&quot;,&...
[ { "answer_id": 74569783, "author": "bero", "author_id": 12552428, "author_profile": "https://Stackoverflow.com/users/12552428", "pm_score": 0, "selected": false, "text": "while($row = mysqli_fetch_array($result)) {\n $jenis = explode(\",\", $row['jenis']);\n" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74568896", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20457503/" ]
74,568,913
<p>From a given list of strings I need to use LINQ to generate a new sequence of strings, where each string consists of the first and last characters of the corresponding string in the original list.</p> <p>Example:</p> <pre><code>stringList: new[] { &quot;ehgrtthrehrehrehre&quot;, &quot;fjjgoerugrjgrehg&quot;, &quot;j...
[ { "answer_id": 74569783, "author": "bero", "author_id": 12552428, "author_profile": "https://Stackoverflow.com/users/12552428", "pm_score": 0, "selected": false, "text": "while($row = mysqli_fetch_array($result)) {\n $jenis = explode(\",\", $row['jenis']);\n" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74568913", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20569938/" ]
74,568,979
<p>I've recently upgraded a project from using spring-security <code>6.0.0-M6</code> to <code>6.0.0</code>, <a href="https://github.com/au-research/raido-v2/blob/f0b5de3e1c60fcf9450030564263f1bb0c682080/settings.gradle#L19" rel="nofollow noreferrer">gradle config</a> if you want to see it. This project does not use spr...
[ { "answer_id": 74569783, "author": "bero", "author_id": 12552428, "author_profile": "https://Stackoverflow.com/users/12552428", "pm_score": 0, "selected": false, "text": "while($row = mysqli_fetch_array($result)) {\n $jenis = explode(\",\", $row['jenis']);\n" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74568979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/924597/" ]
74,568,981
<p>Is it possible to append a second child into the first appendchild created in a single line of code?</p> <p>Something like this:</p> <pre><code>document.body.appendChild(document.createElement('p').appendChild(document.createTextNode('Some Text))); </code></pre> <p>This works fine, but i want to know why it doesn't ...
[ { "answer_id": 74569783, "author": "bero", "author_id": 12552428, "author_profile": "https://Stackoverflow.com/users/12552428", "pm_score": 0, "selected": false, "text": "while($row = mysqli_fetch_array($result)) {\n $jenis = explode(\",\", $row['jenis']);\n" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74568981", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20533111/" ]
74,569,048
<p>How I can scan my array within array if there is equal array element. I want to check if its true or false</p> <pre><code>// the array to be scan const array = [ [0, 1, 2], [3, 4, 5], [6, 7, 8], ] // the new array const newArray = [0, 1, 2] </code></pre>
[ { "answer_id": 74569783, "author": "bero", "author_id": 12552428, "author_profile": "https://Stackoverflow.com/users/12552428", "pm_score": 0, "selected": false, "text": "while($row = mysqli_fetch_array($result)) {\n $jenis = explode(\",\", $row['jenis']);\n" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74569048", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19172472/" ]
74,569,082
<p>I'm new to macOS development, so pardon my simplistic question. Say, if I have a function. Let's take <code>SCError</code> for example. From the <a href="https://developer.apple.com/documentation/systemconfiguration/1516922-scerror?language=objc" rel="nofollow noreferrer">documentation</a> I can see that I need to a...
[ { "answer_id": 74569783, "author": "bero", "author_id": 12552428, "author_profile": "https://Stackoverflow.com/users/12552428", "pm_score": 0, "selected": false, "text": "while($row = mysqli_fetch_array($result)) {\n $jenis = explode(\",\", $row['jenis']);\n" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74569082", "https://Stackoverflow.com", "https://Stackoverflow.com/users/843732/" ]
74,569,097
<p>Trying to create an archive to make a release apk of my app, and whenever I click archive all, it instantly says the archive is completed, nothing shows in the archive manager, and there are no errors or absolutely anything for that matter shown for output.</p> <p>I suspect it may have something to do with the versi...
[ { "answer_id": 74569783, "author": "bero", "author_id": 12552428, "author_profile": "https://Stackoverflow.com/users/12552428", "pm_score": 0, "selected": false, "text": "while($row = mysqli_fetch_array($result)) {\n $jenis = explode(\",\", $row['jenis']);\n" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74569097", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11366868/" ]
74,569,100
<p>I am working on an already existing webpage and want to resize some elements using CSS media queries like width but i only have access to the script file, is there a way to do this without injecting CSS in my js file?</p> <p>As of now i've tried injecting my css file line by line in my js file</p>
[ { "answer_id": 74569783, "author": "bero", "author_id": 12552428, "author_profile": "https://Stackoverflow.com/users/12552428", "pm_score": 0, "selected": false, "text": "while($row = mysqli_fetch_array($result)) {\n $jenis = explode(\",\", $row['jenis']);\n" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74569100", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12766362/" ]
74,569,126
<p>I have a function in my shell script that takes options. It works fine, until I try to pass '-n' option, then the function cannot read the arg.</p> <pre class="lang-bash prettyprint-override"><code>func () { for arg in &quot;$@&quot; do echo $arg done } func -p #works func -e #works func -n #doesn't work, func cann...
[ { "answer_id": 74569783, "author": "bero", "author_id": 12552428, "author_profile": "https://Stackoverflow.com/users/12552428", "pm_score": 0, "selected": false, "text": "while($row = mysqli_fetch_array($result)) {\n $jenis = explode(\",\", $row['jenis']);\n" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74569126", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20330157/" ]
74,569,129
<p>I am currently building a data visualization for a class using Vega and I would like to be able to print the data so I can see my transform results for debugging purposes. I have had no problem with this when the data is in JSON format but for whatever reason when the data is in CSV format the method returns null. T...
[ { "answer_id": 74569783, "author": "bero", "author_id": 12552428, "author_profile": "https://Stackoverflow.com/users/12552428", "pm_score": 0, "selected": false, "text": "while($row = mysqli_fetch_array($result)) {\n $jenis = explode(\",\", $row['jenis']);\n" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74569129", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13161316/" ]
74,569,136
<p>This is the code where I'm calling a function</p> <pre><code>masterCredsResponse.data.forEach((masterCred) =&gt; { // Check Login status masterCredsArray.push({ master: masterCred.parent, loginCheck: Promise.resolve(getSessionID()()) }) }) </code></pre> <p>Here I get</p> <pre><code>loginCheck: Promise ...
[ { "answer_id": 74569274, "author": "Jake Fried", "author_id": 4032930, "author_profile": "https://Stackoverflow.com/users/4032930", "pm_score": 2, "selected": false, "text": "Promise.resolve await forEach async await masterCredsResponse.data.forEach(async (masterCred) => {\n masterCreds...
2022/11/25
[ "https://Stackoverflow.com/questions/74569136", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19734367/" ]
74,569,148
<p>I'm new to stack overflow and new to dev.. and have been teaching myself to code using react and Express... so, apologies if this question is foundationally in-plausiable.. I have fundamental gaps in my knowledge :)</p> <p>I have a bunch (25 + likely to grow) collections in a mongoDB, and each collection has a mongo...
[ { "answer_id": 74569274, "author": "Jake Fried", "author_id": 4032930, "author_profile": "https://Stackoverflow.com/users/4032930", "pm_score": 2, "selected": false, "text": "Promise.resolve await forEach async await masterCredsResponse.data.forEach(async (masterCred) => {\n masterCreds...
2022/11/25
[ "https://Stackoverflow.com/questions/74569148", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20596595/" ]
74,569,169
<p>I have one active subscription. Now I want to add new subscription item to that subscription but that on free trial while other items on that subscription are active.</p> <p>How do I achieve this thing.</p> <p>I read the documentation where we can set <code>trail_end</code> for subscription but there is no field for...
[ { "answer_id": 74569274, "author": "Jake Fried", "author_id": 4032930, "author_profile": "https://Stackoverflow.com/users/4032930", "pm_score": 2, "selected": false, "text": "Promise.resolve await forEach async await masterCredsResponse.data.forEach(async (masterCred) => {\n masterCreds...
2022/11/25
[ "https://Stackoverflow.com/questions/74569169", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16685135/" ]
74,569,171
<p>I want to convert this Json to list in c#.</p> <p>Here's my JSON string and class</p> <pre><code>{&quot;Headers&quot;:[{&quot;KeyValue&quot;:&quot;Hello AA&quot;},{&quot;KeyValue&quot;:&quot;Hello BB&quot;}],&quot;Footers&quot;:[{&quot;KeyValue&quot;:&quot;Wifi Password : 11112222&quot;}]} </code></pre> <pre><code>p...
[ { "answer_id": 74569274, "author": "Jake Fried", "author_id": 4032930, "author_profile": "https://Stackoverflow.com/users/4032930", "pm_score": 2, "selected": false, "text": "Promise.resolve await forEach async await masterCredsResponse.data.forEach(async (masterCred) => {\n masterCreds...
2022/11/25
[ "https://Stackoverflow.com/questions/74569171", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18177344/" ]
74,569,207
<p>I have checked the official doc and realised we cannot directly use Hooks inside the class-based component. So, I have tried the HOC method to use react-hook-form with a class-based component.</p> <p>But this case is also not working in my case.</p> <p>My HOC Component::</p> <pre><code>import React from &quot;react&...
[ { "answer_id": 74569274, "author": "Jake Fried", "author_id": 4032930, "author_profile": "https://Stackoverflow.com/users/4032930", "pm_score": 2, "selected": false, "text": "Promise.resolve await forEach async await masterCredsResponse.data.forEach(async (masterCred) => {\n masterCreds...
2022/11/25
[ "https://Stackoverflow.com/questions/74569207", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6487762/" ]
74,569,226
<p>I am using groovy to execute a set of groovy scripts, which works fine when the runtime jar is deployed with the webapp and the runtime executes the groovy scripts present under C:\jboss-eap-7.4\bin (java working directory). Due to portability and other constraints now we need to move these groovy scripts as part of...
[ { "answer_id": 74606781, "author": "GPT-3", "author_id": 20562957, "author_profile": "https://Stackoverflow.com/users/20562957", "pm_score": 0, "selected": false, "text": "GroovyClassLoader classLoader = new GroovyClassLoader();\nClass scriptClass = classLoader.parseClass(new File(\"path...
2022/11/25
[ "https://Stackoverflow.com/questions/74569226", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10966421/" ]
74,569,229
<p>I'm trying to create a combination of concentrations of two chemicals for an experiment. Since I want to see which combination of both is the best I want to create an overview how much I need to add of each at a given concentration. So far I managed to create two pivot_tables/dataframes of each but Im somehow don't ...
[ { "answer_id": 74606781, "author": "GPT-3", "author_id": 20562957, "author_profile": "https://Stackoverflow.com/users/20562957", "pm_score": 0, "selected": false, "text": "GroovyClassLoader classLoader = new GroovyClassLoader();\nClass scriptClass = classLoader.parseClass(new File(\"path...
2022/11/25
[ "https://Stackoverflow.com/questions/74569229", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18484775/" ]
74,569,233
<p>I'm trying to set image files to the variable with applescript, like this:</p> <p><code>set targetImg to choose file with prompt &quot;select image&quot; of type {&quot;public.image&quot;} with multiple selections allowed</code></p> <p>With this command, I can set the files with pop-up finder.</p> <p>But I want to s...
[ { "answer_id": 74606781, "author": "GPT-3", "author_id": 20562957, "author_profile": "https://Stackoverflow.com/users/20562957", "pm_score": 0, "selected": false, "text": "GroovyClassLoader classLoader = new GroovyClassLoader();\nClass scriptClass = classLoader.parseClass(new File(\"path...
2022/11/25
[ "https://Stackoverflow.com/questions/74569233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20594773/" ]
74,569,240
<p>I would like to checkout to <code>dev</code> branch in a merge request pipeline that is opened for merging to <code>dev</code> with some other branch. I am going to check somethings in this job and then continue with some other jobs depending on the success of this one. Is it possible to do such thing or do I always...
[ { "answer_id": 74569315, "author": "VonC", "author_id": 6309, "author_profile": "https://Stackoverflow.com/users/6309", "pm_score": 0, "selected": false, "text": "git branch -avv origin/dev git checkout git switch checkout" }, { "answer_id": 74602956, "author": "iRestMyCaseYo...
2022/11/25
[ "https://Stackoverflow.com/questions/74569240", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2980481/" ]
74,569,246
<p>I want to replace a space to underscore, if the space is in between double quotes. Example:</p> <pre><code>given = 'hello &quot;welcome to&quot; python &quot;blog&quot;' expected = 'hello &quot;welcome_to&quot; python &quot;blog&quot;' </code></pre> <p>My actual string is in SQL code and I need to transform it to...
[ { "answer_id": 74569335, "author": "Samathingamajig", "author_id": 12101554, "author_profile": "https://Stackoverflow.com/users/12101554", "pm_score": 4, "selected": true, "text": "inp = 'hello \"welcome to\" python \"blog\"'\ndata = inp.split('\"')\nfor i, part in enumerate(data[:-1]):\...
2022/11/25
[ "https://Stackoverflow.com/questions/74569246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5619729/" ]
74,569,250
<p>The api changed some of it´s security configurations tonight, but i have been doing server side calls for a few months so i discard this being a problem in the server.</p> <p>This is my configuration in postman</p> <p><a href="https://i.stack.imgur.com/R9z7g.png" rel="nofollow noreferrer"><img src="https://i.stack.i...
[ { "answer_id": 74569834, "author": "Alex Karamfilov", "author_id": 7031148, "author_profile": "https://Stackoverflow.com/users/7031148", "pm_score": 1, "selected": false, "text": "User-Agent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/1...
2022/11/25
[ "https://Stackoverflow.com/questions/74569250", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12631570/" ]
74,569,252
<p>Please assist me to stop this from removing the &quot;.php&quot; extension in sub directories eg: <code>https://www.example.com/enquire/contactmail</code> instead of: <code>https://www.example.com/enquire/contactmail.php</code></p> <pre><code>RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d \###...
[ { "answer_id": 74569327, "author": "Saud Ahmad", "author_id": 12752265, "author_profile": "https://Stackoverflow.com/users/12752265", "pm_score": 0, "selected": false, "text": "IndexIgnore * # prevent directory listing\nOrder deny,allow\nAllow from *\n\n# --------------------------------...
2022/11/25
[ "https://Stackoverflow.com/questions/74569252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6870075/" ]
74,569,262
<p>Here is a simplified Typescript function:</p> <pre class="lang-js prettyprint-override"><code>function x(y: 1 | 2 | 3) : string { if (y === 1) return &quot;a&quot;; if (y === 2) return &quot;b&quot;; if (y === 3) return &quot;c&quot;; } </code></pre> <p>Typescript checker returns this error:</p> <blockquote> <...
[ { "answer_id": 74569570, "author": "lpizzinidev", "author_id": 13211263, "author_profile": "https://Stackoverflow.com/users/13211263", "pm_score": 0, "selected": false, "text": "switch function x(y: 1 | 2 | 3) : string {\n switch (y) {\n case 1:\n return \"a\";\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74569262", "https://Stackoverflow.com", "https://Stackoverflow.com/users/978690/" ]
74,569,350
<p>I add my codes below. What is my fault, can anyone help me? I want to when SpawnRandomBall function run two times, spawnInternal turn into spawnInternal2. So I create a new variable, called 'check'. The variable increase when SpawnRandomBall function run. I set the variable as a public. In this way I can see that 'c...
[ { "answer_id": 74569490, "author": "Enigmativity", "author_id": 259769, "author_profile": "https://Stackoverflow.com/users/259769", "pm_score": 0, "selected": false, "text": "Start else if else if check SpawnRandomBall // Start is called before the first frame update\nvoid Start()\n{\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74569350", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20596929/" ]
74,569,378
<p>So I have a code, which scraps names+prices of minerals from 14 pages (so far) and saves it to .txt file. I tried with Page1 first only, then I wanted to add more pages for more data. But then code was grabbing something it should not grab - a random name/string. I didn't expect it to grab that one, but it did, and ...
[ { "answer_id": 74569490, "author": "Enigmativity", "author_id": 259769, "author_profile": "https://Stackoverflow.com/users/259769", "pm_score": 0, "selected": false, "text": "Start else if else if check SpawnRandomBall // Start is called before the first frame update\nvoid Start()\n{\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74569378", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20396568/" ]
74,569,385
<p>Say, there are multiple elements and their and multiple child elements. I have selected the parent elements and from the code the I want to select the child elements.</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;div&gt; This is div 1 &lt;p&gt; This is paragraph 1 under div 1. &lt;/p&gt; &lt;/div&...
[ { "answer_id": 74569605, "author": "ggeorge", "author_id": 5276946, "author_profile": "https://Stackoverflow.com/users/5276946", "pm_score": 2, "selected": false, "text": "@FindBy(xpath=\"(//div)[1]\")\nWebElement parent;\n\nWebElement child = parent.findElement(By.xpath(\"./p\"));\n" ...
2022/11/25
[ "https://Stackoverflow.com/questions/74569385", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12396842/" ]
74,569,391
<p>I am trying to run a simple program that spawns a vim process.</p> <p>The user should be able (when the <code>exec.Command</code> starts) to switch to <code>vim</code> window and the process execution should halt there.</p> <p>When user closes <code>vim</code> (<code>wq!</code>) the program execution should resume f...
[ { "answer_id": 74570060, "author": "jabr", "author_id": 19972197, "author_profile": "https://Stackoverflow.com/users/19972197", "pm_score": 0, "selected": false, "text": "Stdin Stdout cmd package main\n\nimport (\n \"log\"\n \"os\"\n \"os/exec\"\n)\n\nfunc main() {\n\n cmd :=...
2022/11/25
[ "https://Stackoverflow.com/questions/74569391", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2409793/" ]
74,569,409
<p>I'm working on a fullstack app having spring boot v2.7.5 as backend and Angular v15 as frontend. I use IntelliJ IDEA IDE for development. Locally, springboot runs on http://localhost:8080 and angular runs on http://localhost:4200. I use gradle to build the project a single war file and which would be deployed on ext...
[ { "answer_id": 74570060, "author": "jabr", "author_id": 19972197, "author_profile": "https://Stackoverflow.com/users/19972197", "pm_score": 0, "selected": false, "text": "Stdin Stdout cmd package main\n\nimport (\n \"log\"\n \"os\"\n \"os/exec\"\n)\n\nfunc main() {\n\n cmd :=...
2022/11/25
[ "https://Stackoverflow.com/questions/74569409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9145082/" ]
74,569,424
<p>I have the following data frame:</p> <pre><code>df &lt;- structure(list( peptide = structure(c( 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 5L, 5L, 5L, 5L ), levels = c( &quot;P1&quot;, &quot;P2&quot;, &quot;P3&quot;, &quot;P4&quot;, &quot;P5&quot; ), class = &quot;factor&qu...
[ { "answer_id": 74570060, "author": "jabr", "author_id": 19972197, "author_profile": "https://Stackoverflow.com/users/19972197", "pm_score": 0, "selected": false, "text": "Stdin Stdout cmd package main\n\nimport (\n \"log\"\n \"os\"\n \"os/exec\"\n)\n\nfunc main() {\n\n cmd :=...
2022/11/25
[ "https://Stackoverflow.com/questions/74569424", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8391698/" ]
74,569,440
<p>I have a two-dimensional <code>char</code> array (an array of strings). When I try to assign a string to an element, an error occurs saying &quot;array type 'char *[8]' is not assignable&quot;.</p> <p>This is my code:</p> <pre><code>int main() { char array[4][8]; array[0] = &quot;test&quot;; } </code></pre> ...
[ { "answer_id": 74569498, "author": "Allan Wind", "author_id": 9706, "author_profile": "https://Stackoverflow.com/users/9706", "pm_score": 0, "selected": false, "text": "array[0] char *[8] array[0][0] char * strdup() #include <string.h>\n// ...\nchar *array[4][8];\narray[0][0] = strdup(\"...
2022/11/25
[ "https://Stackoverflow.com/questions/74569440", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17607692/" ]
74,569,449
<p>I was given a macro by a predecessor.</p> <p>I would like to add automatic colouring of the font (white on dark colours, black on light colours).</p> <p>I have no experience with visual basic.</p> <pre class="lang-vb prettyprint-override"><code>Sub colourProgress() Dim c As Word.Cell If Selection.Information...
[ { "answer_id": 74569498, "author": "Allan Wind", "author_id": 9706, "author_profile": "https://Stackoverflow.com/users/9706", "pm_score": 0, "selected": false, "text": "array[0] char *[8] array[0][0] char * strdup() #include <string.h>\n// ...\nchar *array[4][8];\narray[0][0] = strdup(\"...
2022/11/25
[ "https://Stackoverflow.com/questions/74569449", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20596997/" ]
74,569,452
<p>I am restoring a postgres database via .backup file from one postgres-14 instance to another:</p> <p><code>pg_restore -h localhost -p 5432 -U postgres -d mydatabase -v &quot;mybackupfile.backup&quot;</code></p> <p>The backup fails, complaining about</p> <p><code>pg_restore: error: could not execute query: ERROR: fu...
[ { "answer_id": 74569498, "author": "Allan Wind", "author_id": 9706, "author_profile": "https://Stackoverflow.com/users/9706", "pm_score": 0, "selected": false, "text": "array[0] char *[8] array[0][0] char * strdup() #include <string.h>\n// ...\nchar *array[4][8];\narray[0][0] = strdup(\"...
2022/11/25
[ "https://Stackoverflow.com/questions/74569452", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1297780/" ]
74,569,456
<p>I have some reports that need to be modified by deleting some specific cells such as blank cells or highlights in the background</p> <p>I have tried to record Macro to delete the special cells. however, the position will be changed regarding the difference of the row numbers. I could not specify the certain position...
[ { "answer_id": 74569498, "author": "Allan Wind", "author_id": 9706, "author_profile": "https://Stackoverflow.com/users/9706", "pm_score": 0, "selected": false, "text": "array[0] char *[8] array[0][0] char * strdup() #include <string.h>\n// ...\nchar *array[4][8];\narray[0][0] = strdup(\"...
2022/11/25
[ "https://Stackoverflow.com/questions/74569456", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20579718/" ]