qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,471,015
<p>This is the code I am trying with:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>const arr = ['a' , 'b' ,'c', 'd'] const func = async () =&gt; { let i = 0 let i...
[ { "answer_id": 74471225, "author": "talent-jsdev", "author_id": 15087608, "author_profile": "https://Stackoverflow.com/users/15087608", "pm_score": 2, "selected": false, "text": "const arr = ['a', 'b', 'c', 'd']\n\nconst func = () => new Promise((resolve, reject) => {\n\n let i = 0\n ...
2022/11/17
[ "https://Stackoverflow.com/questions/74471015", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20527086/" ]
74,471,023
<p>In the simplified code at the bottom of this post, I believe it is js that is used for formatting outputs of the table rendered using rhandsontable. I play around with row/column formatting with some success in the js section of the code. However, as illustrated below, how would I format row 2 of the table so that i...
[ { "answer_id": 74471225, "author": "talent-jsdev", "author_id": 15087608, "author_profile": "https://Stackoverflow.com/users/15087608", "pm_score": 2, "selected": false, "text": "const arr = ['a', 'b', 'c', 'd']\n\nconst func = () => new Promise((resolve, reject) => {\n\n let i = 0\n ...
2022/11/17
[ "https://Stackoverflow.com/questions/74471023", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19657749/" ]
74,471,030
<p>Currently, I have a DB table called mytable which looks like this</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>id</th> <th>startTime</th> <th>result</th> </tr> </thead> <tbody> <tr> <td>100</td> <td>2022-11-17 06:19:00</td> <td>pass</td> </tr> <tr> <td>101</td> <td>2022-11-17 07:19:00...
[ { "answer_id": 74471149, "author": "Barbaros Özhan", "author_id": 5841306, "author_profile": "https://Stackoverflow.com/users/5841306", "pm_score": 2, "selected": false, "text": "DATE(startTime) SELECT DATE(startTime) AS `date`, \n SUM(result = 'pass') AS `pass`, \n SUM(resul...
2022/11/17
[ "https://Stackoverflow.com/questions/74471030", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20526962/" ]
74,471,046
<p>How I can implement a 2-dimensional array with different column sizes dynamically in C?</p> <p>I tried many ways to implement a 2-dimensional array dynamically with different column sizes in c but I can't get it.</p> <p>Please tell me one suggestion...</p>
[ { "answer_id": 74471623, "author": "Imran", "author_id": 19443172, "author_profile": "https://Stackoverflow.com/users/19443172", "pm_score": -1, "selected": false, "text": "//Hemanth you can find the below code,\n#include <stdio.h>\n#include <stdlib.h> \nint main() {\n int row = 2, col...
2022/11/17
[ "https://Stackoverflow.com/questions/74471046", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20527044/" ]
74,471,049
<pre class="lang-java prettyprint-override"><code>public class test2 { public static void main(String[] args) { A a = new A(); int y = 5; System.out.println(a.foo(y)); } } class A{ public A() { } public int foo(int x) { return x+1; } public static i...
[ { "answer_id": 74471242, "author": "Sagar Gandhi", "author_id": 6722664, "author_profile": "https://Stackoverflow.com/users/6722664", "pm_score": 1, "selected": false, "text": "public int foo(int x){\n return x;\n }\n\n public static float foo(float y){\n return y;\n ...
2022/11/17
[ "https://Stackoverflow.com/questions/74471049", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10627189/" ]
74,471,072
<p>I am in the process of converting Python 2 code into Python 3. Currently I am facing difficulty in converting the following code to Python 3. Please help.</p> <pre><code>print 'Data cache hit ratio: %4.2f%%' % ratio </code></pre> <p>Also, what %4.2f%% means?</p> <p>Tried to rewrite the code with format().</p>
[ { "answer_id": 74471242, "author": "Sagar Gandhi", "author_id": 6722664, "author_profile": "https://Stackoverflow.com/users/6722664", "pm_score": 1, "selected": false, "text": "public int foo(int x){\n return x;\n }\n\n public static float foo(float y){\n return y;\n ...
2022/11/17
[ "https://Stackoverflow.com/questions/74471072", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7182741/" ]
74,471,100
<p>I am trying understand Artificial Intelligence Neural Network and I am self-learner. Hope anyone would help me in understanding on how to solve this problem</p> <p><strong>If this post should be posted here. Please comment instead of degrading the post. Appreciate for this as well.</strong></p> <p>I have a question ...
[ { "answer_id": 74471242, "author": "Sagar Gandhi", "author_id": 6722664, "author_profile": "https://Stackoverflow.com/users/6722664", "pm_score": 1, "selected": false, "text": "public int foo(int x){\n return x;\n }\n\n public static float foo(float y){\n return y;\n ...
2022/11/17
[ "https://Stackoverflow.com/questions/74471100", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3481508/" ]
74,471,134
<p>I understand I can code like single loop to build widget like;</p> <pre><code>final icon =[&quot;lock.png&quot;,&quot;map.png&quot;,&quot;stake.png&quot;,&quot;cheer.png&quot;,&quot;sushi.png&quot;]; // omit Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ for(int i = 0; i &lt; icon.le...
[ { "answer_id": 74471205, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 2, "selected": true, "text": "class _CustomTitleWidgetState extends State<CustomTitleWidget> {\n final icon = [\n \"lock.png\",\n \"ma...
2022/11/17
[ "https://Stackoverflow.com/questions/74471134", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6843543/" ]
74,471,143
<p>I have two tables named <code>property</code> and <code>equipment_type</code>.</p> <pre><code>CREATE TABLE IF NOT EXISTS equipment_type ( class_code class_code NOT NULL, major_code character(2) NOT NULL, minor_code character(2) NOT NULL, e...
[ { "answer_id": 74471267, "author": "a_horse_with_no_name", "author_id": 330315, "author_profile": "https://Stackoverflow.com/users/330315", "pm_score": 3, "selected": true, "text": "select ... other columns ....,\n CURRENT_DATE - p.date_acquired > et.estimated_useful_life as is_bey...
2022/11/17
[ "https://Stackoverflow.com/questions/74471143", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9988159/" ]
74,471,161
<p>I need to be able to move the turtle cursor to its current coordinates +10<em>y</em>.</p> <p>For example, if the turtle is at <strong>(0.00,0.00)</strong> I would need it to read its own coordinates and add 10 to the <em>y</em> value making it <strong>(0.00,10.00)</strong>.</p> <p>I already know how to find the Turt...
[ { "answer_id": 74471223, "author": "Bluffyyy", "author_id": 19754899, "author_profile": "https://Stackoverflow.com/users/19754899", "pm_score": 1, "selected": false, "text": "current_y = t.ycor()\nt.sety(current_y + 10)\n" } ]
2022/11/17
[ "https://Stackoverflow.com/questions/74471161", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19754899/" ]
74,471,168
<p>I'm trying to show how many time went since the creation on a post! after searching I found that I have to use momentJs. The time is stored like this:</p> <p><a href="https://i.stack.imgur.com/bMoXz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bMoXz.png" alt="enter image description here" /></a...
[ { "answer_id": 74471223, "author": "Bluffyyy", "author_id": 19754899, "author_profile": "https://Stackoverflow.com/users/19754899", "pm_score": 1, "selected": false, "text": "current_y = t.ycor()\nt.sety(current_y + 10)\n" } ]
2022/11/17
[ "https://Stackoverflow.com/questions/74471168", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17342280/" ]
74,471,211
<p>Hope everyone doing well. I am new in flutter I want to know how to give shape of an image like this, I have attached the sample... The image is coming from database</p> <p><a href="https://i.stack.imgur.com/aiex9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aiex9.jpg" alt="Shape Image Like thi...
[ { "answer_id": 74471256, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 3, "selected": true, "text": "Stack(\n clipBehavior: Clip.hardEdge,\n children: [\n Positioned(\n top: -30, //negative value will...
2022/11/17
[ "https://Stackoverflow.com/questions/74471211", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17863927/" ]
74,471,213
<p><a href="https://i.stack.imgur.com/IdOon.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IdOon.jpg" alt="enter image description here" /></a> Text is all white here. I do nothing yesterday everything was okay. Can someone help?</p>
[ { "answer_id": 74471256, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 3, "selected": true, "text": "Stack(\n clipBehavior: Clip.hardEdge,\n children: [\n Positioned(\n top: -30, //negative value will...
2022/11/17
[ "https://Stackoverflow.com/questions/74471213", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19918265/" ]
74,471,229
<p><a href="https://file:///C:/Users/abc/Downloads/lf30_editor_c25ykyq1.json" rel="nofollow noreferrer">enter link description here</a></p> <p>Above link is json file of gif</p> <p>How do I load this gif via json file.</p> <p>I tried in Iamage.asset but it didn't work</p>
[ { "answer_id": 74471600, "author": "Mansoor Malik", "author_id": 12790690, "author_profile": "https://Stackoverflow.com/users/12790690", "pm_score": 0, "selected": false, "text": "assets Lottie.asset('assets/gif.json'),\n" } ]
2022/11/17
[ "https://Stackoverflow.com/questions/74471229", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14299145/" ]
74,471,238
<p>I have an accordion where it has a flex-row textbox and it has icons on its right. I need to add the menu positioned as shown in the image below</p> <p><a href="https://i.stack.imgur.com/qPp6Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qPp6Y.png" alt="enter image description here" /></a></p> ...
[ { "answer_id": 74472134, "author": "sapna singh", "author_id": 18544206, "author_profile": "https://Stackoverflow.com/users/18544206", "pm_score": -1, "selected": false, "text": " <div class=\"btn-group\">\n\n <button type=\"button\" class=\"btn btn-sm dropdown-toggle\" data-bs...
2022/11/17
[ "https://Stackoverflow.com/questions/74471238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5549354/" ]
74,471,241
<p>Hi in my flutter app have FutureBuilder that return listview, my list listview create some button for update the hive table. when I click the first time on one of buttons everything is run smoothly, but when I click on same button again my hive key turn to null and program show my this error: &quot;type 'Null' is no...
[ { "answer_id": 74472134, "author": "sapna singh", "author_id": 18544206, "author_profile": "https://Stackoverflow.com/users/18544206", "pm_score": -1, "selected": false, "text": " <div class=\"btn-group\">\n\n <button type=\"button\" class=\"btn btn-sm dropdown-toggle\" data-bs...
2022/11/17
[ "https://Stackoverflow.com/questions/74471241", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20492111/" ]
74,471,273
<p>I'm trying to get the top 10 movie name recommendations that match the search term 'Africa', based on the IMDB API demo here <a href="https://developer.imdb.com/documentation/api-documentation/sample-queries/search/?ref_=side_nav" rel="nofollow noreferrer">https://developer.imdb.com/documentation/api-documentation/s...
[ { "answer_id": 74472134, "author": "sapna singh", "author_id": 18544206, "author_profile": "https://Stackoverflow.com/users/18544206", "pm_score": -1, "selected": false, "text": " <div class=\"btn-group\">\n\n <button type=\"button\" class=\"btn btn-sm dropdown-toggle\" data-bs...
2022/11/17
[ "https://Stackoverflow.com/questions/74471273", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3639372/" ]
74,471,291
<p>I mean i am reading a txt file, For every line in txt file i want a new label.</p> <pre><code> root = tk.Tk() #here it opens the file with open(&quot;/file.txt&quot;, &quot;r&quot;) as openedFile: allLines = openedFile.readlines() for line in allLines: textInLine = line testText = Label(ro...
[ { "answer_id": 74472134, "author": "sapna singh", "author_id": 18544206, "author_profile": "https://Stackoverflow.com/users/18544206", "pm_score": -1, "selected": false, "text": " <div class=\"btn-group\">\n\n <button type=\"button\" class=\"btn btn-sm dropdown-toggle\" data-bs...
2022/11/17
[ "https://Stackoverflow.com/questions/74471291", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18025253/" ]
74,471,322
<pre><code>public static void CategoryX(string categories) { string[] codes = { &quot;A&quot;, &quot;B&quot;, &quot;C&quot;, &quot;D&quot;, &quot;E&quot; }; string[] names = { &quot;FIRST LETTER&quot;, &quot;SECOND LETTER&quot;, &quot;THIRD LETTER&quot;, &quot;FOURTH LETTER&quot;, &quot;FIFTH LETTER&quot; }; } ...
[ { "answer_id": 74472134, "author": "sapna singh", "author_id": 18544206, "author_profile": "https://Stackoverflow.com/users/18544206", "pm_score": -1, "selected": false, "text": " <div class=\"btn-group\">\n\n <button type=\"button\" class=\"btn btn-sm dropdown-toggle\" data-bs...
2022/11/17
[ "https://Stackoverflow.com/questions/74471322", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20527253/" ]
74,471,343
<p>I have custom error pages e.g. resources/views/errors/404.blade.php everything is working just fine but the localization is not working for error pages. If I change website language the error pages still show in default language I tried in many way but its not working, Can anyone please help me make this work thanks...
[ { "answer_id": 74471398, "author": "Ramil Huseynov", "author_id": 6711823, "author_profile": "https://Stackoverflow.com/users/6711823", "pm_score": 1, "selected": false, "text": "\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\n\n \npublic function render($request...
2022/11/17
[ "https://Stackoverflow.com/questions/74471343", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4435216/" ]
74,471,359
<p>I've just started learning XML/XSL and I've hit a roadblock in one of my assignments. Tried Googling and searching over here but I can't seem to find a question that has a solution that is basic. so what I am trying is to display rows of bucket-type and room-types associated with it. can somebody please help</p> <pr...
[ { "answer_id": 74471398, "author": "Ramil Huseynov", "author_id": 6711823, "author_profile": "https://Stackoverflow.com/users/6711823", "pm_score": 1, "selected": false, "text": "\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\n\n \npublic function render($request...
2022/11/17
[ "https://Stackoverflow.com/questions/74471359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20526920/" ]
74,471,390
<p>Good day all</p> <p>I have a strange query. Let's say I have a table with a composite primary key (2 columns).</p> <pre><code>CREATE TABLE `testtable` ( `ifk1` INT(10) NOT NULL, `ifk2` INT(10) NOT NULL, `data1` VARCHAR(10) DEFAULT NULL, PRIMARY KEY (`ifk1`,`ifk2`), UNIQUE KEY `keyName` (`data1`) ) ENGINE=I...
[ { "answer_id": 74471961, "author": "Ozan Sen", "author_id": 19469088, "author_profile": "https://Stackoverflow.com/users/19469088", "pm_score": 0, "selected": false, "text": "mysql> SELECT * FROM testtable WHERE ifk1 > 0 AND ifk2 > 0 LIMIT 2,2;\n+------+------+-------+\n| ifk1 | ifk2 | d...
2022/11/17
[ "https://Stackoverflow.com/questions/74471390", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6029416/" ]
74,471,413
<h1>I have imported the component of Name <strong>StoryBook</strong> that is exported default name.</h1> <h1>But is also works as <strong>StoryBookX</strong>.</h1> <p>e.g</p> <p>import StoryBook from 'storybook', // This is <strong>default name.</strong> import StoryBookX from 'storybook, ...
[ { "answer_id": 74471961, "author": "Ozan Sen", "author_id": 19469088, "author_profile": "https://Stackoverflow.com/users/19469088", "pm_score": 0, "selected": false, "text": "mysql> SELECT * FROM testtable WHERE ifk1 > 0 AND ifk2 > 0 LIMIT 2,2;\n+------+------+-------+\n| ifk1 | ifk2 | d...
2022/11/17
[ "https://Stackoverflow.com/questions/74471413", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17911211/" ]
74,471,417
<p>I am working with Reactjs and i am using nextjs,Right now i am trying to integrate/fetch slider data,Problem is i want to add class &quot;active&quot; to first slide only,So i am trying to use {post.id},But how can i use condition(add &quot;active&quot; class where id=&quot;1&quot;) ?So how can i do this using loop/...
[ { "answer_id": 74471465, "author": "KcH", "author_id": 11737596, "author_profile": "https://Stackoverflow.com/users/11737596", "pm_score": 0, "selected": false, "text": "index <>\n <div className={`carousel-item ${index === 0 ? \"active\" : \"\"}`}></div>\n</>;\n <>\n <div className={`...
2022/11/17
[ "https://Stackoverflow.com/questions/74471417", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5308126/" ]
74,471,434
<pre><code>#include &lt;stdio.h&gt; #include &lt;omp.h&gt; static double num = 1; double func1(){ for (int i=0; i&lt;100; i++){ num += 1; for (int j=0; j&lt;100; j++){ num -= 1; for (int k=0; k&lt;100; k++){ num += 1; if (num == 1000){ ...
[ { "answer_id": 74471465, "author": "KcH", "author_id": 11737596, "author_profile": "https://Stackoverflow.com/users/11737596", "pm_score": 0, "selected": false, "text": "index <>\n <div className={`carousel-item ${index === 0 ? \"active\" : \"\"}`}></div>\n</>;\n <>\n <div className={`...
2022/11/17
[ "https://Stackoverflow.com/questions/74471434", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20527299/" ]
74,471,452
<p>Strange behaviour of data.table.</p> <pre><code>library(data.table) d&lt;-data.table(a=1,b=2) n&lt;-names(d) d[,c:=3,] print(n) </code></pre> <p>Output:</p> <pre><code> [1] &quot;a&quot; &quot;b&quot; &quot;c&quot; </code></pre> <p>This seems rather strange to me. Somehow the vector n is modified when adding columns...
[ { "answer_id": 74471465, "author": "KcH", "author_id": 11737596, "author_profile": "https://Stackoverflow.com/users/11737596", "pm_score": 0, "selected": false, "text": "index <>\n <div className={`carousel-item ${index === 0 ? \"active\" : \"\"}`}></div>\n</>;\n <>\n <div className={`...
2022/11/17
[ "https://Stackoverflow.com/questions/74471452", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1901305/" ]
74,471,453
<p>Hi everyone i am using java swing now. I have a problem like this: I have a pretty long piece of text and put it in a label with the <code>&lt;html&gt;</code> tag.</p> <p><code>&lt;html&gt; My text &lt;/html&gt;</code></p> <p>If the text is too long, it will break the line according to the width of the label. How to...
[ { "answer_id": 74472500, "author": "Gilbert Le Blanc", "author_id": 300257, "author_profile": "https://Stackoverflow.com/users/300257", "pm_score": 1, "selected": false, "text": "JTextArea JTextArea JScrollPane JTextArea JScrollPane import java.awt.BorderLayout;\n\nimport javax.swing.Bor...
2022/11/17
[ "https://Stackoverflow.com/questions/74471453", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16804601/" ]
74,471,550
<p>I have an array of object like this</p> <pre><code>let data = [ { text: 'label' }, { text: 'username' }, { text: 'category' }, { text: 'book' }, { text: 'john' }, { text: 'education' }, { text: 'car' }, ...
[ { "answer_id": 74471654, "author": "sm3sher", "author_id": 8845480, "author_profile": "https://Stackoverflow.com/users/8845480", "pm_score": 0, "selected": false, "text": "switch-case % const transformData = (data) => {\n let result = [];\n let tmpObj = {};\n data.forEach((element, id...
2022/11/17
[ "https://Stackoverflow.com/questions/74471550", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12330085/" ]
74,471,552
<p>I have sql query which will calculate the cumulative sum and etc. Below is the query</p> <pre><code>SELECT GRP, category, price, units, CASE WHEN customers &gt; 10 THEN customers ELSE 0 END AS customers_adj, 1.00000 *( SUM(customers_adj) OVER(PARTITION BY grp, category ORDER BY FIGURE ...
[ { "answer_id": 74471654, "author": "sm3sher", "author_id": 8845480, "author_profile": "https://Stackoverflow.com/users/8845480", "pm_score": 0, "selected": false, "text": "switch-case % const transformData = (data) => {\n let result = [];\n let tmpObj = {};\n data.forEach((element, id...
2022/11/17
[ "https://Stackoverflow.com/questions/74471552", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18158837/" ]
74,471,560
<p>I have two lists:</p> <pre><code>let cities = [&quot;Istanbul&quot;, &quot;Ankara&quot;, &quot;Izmir&quot;]; let filterVals = [true, false, false]; </code></pre> <p>I need to filter cities using filterVals array.</p> <p>In the example, I'm expecting only &quot;Istanbul&quot; for example.</p>
[ { "answer_id": 74471591, "author": "connexo", "author_id": 3744304, "author_profile": "https://Stackoverflow.com/users/3744304", "pm_score": 3, "selected": true, "text": "cities.filter((city, index) => filterVals[index])\n const cities = [\"Istanbul\", \"Ankara\", \"Izmir\"];\nconst filt...
2022/11/17
[ "https://Stackoverflow.com/questions/74471560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8589270/" ]
74,471,576
<p>Let's say I have a custom view inside of a sheet, something like this</p> <pre><code>VStack { Text(&quot;Title&quot;) Text(&quot;Some very long text ...&quot;) } .padding() .presentationDetents([.height(250)]) </code></pre> <p>How can I get the exact height of the VStack and pass it to the presentationDetents ...
[ { "answer_id": 74471639, "author": "jnpdx", "author_id": 560942, "author_profile": "https://Stackoverflow.com/users/560942", "pm_score": 1, "selected": false, "text": "GeometryReader PreferenceKey struct ContentView: View {\n @State private var showSheet = false\n @State private va...
2022/11/17
[ "https://Stackoverflow.com/questions/74471576", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8250930/" ]
74,471,616
<p>I'm working on a project using Webforms in Visual Studio where I'm building a quiz. Right now, I have all the questions on a single page. However, I want to transition this to have one question on the screen at a time, with a next and back button to let me switch between questions.</p> <p>However, I want to try to k...
[ { "answer_id": 74471639, "author": "jnpdx", "author_id": 560942, "author_profile": "https://Stackoverflow.com/users/560942", "pm_score": 1, "selected": false, "text": "GeometryReader PreferenceKey struct ContentView: View {\n @State private var showSheet = false\n @State private va...
2022/11/17
[ "https://Stackoverflow.com/questions/74471616", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19199808/" ]
74,471,621
<p>I am trying to develop a device that changes the RGB led strips according to the colour of my display. To this, I am planning on screenshotting the screen and normalising/taking the mean of the colours of individual pixels in the display. I am having trouble normalising the image and taking out the average colour of...
[ { "answer_id": 74472602, "author": "Cryptc_Slaughtr", "author_id": 3572008, "author_profile": "https://Stackoverflow.com/users/3572008", "pm_score": 1, "selected": false, "text": "import pandas as pd\nfrom scipy.cluster.vq import whiten\nfrom scipy.cluster.vq import kmeans\n# import matp...
2022/11/17
[ "https://Stackoverflow.com/questions/74471621", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19715706/" ]
74,471,632
<p>I got this code below to test out but it doesn't work the way it's supposed to.</p> <p>Note that I'm using MacM1 and use vscode as IDE.</p> <pre><code>fin = open(&quot;file.txt&quot;, &quot;rt&quot;) #output file to write the result to fout = open(&quot;out.txt&quot;, &quot;wt&quot;) #for each line in the input fi...
[ { "answer_id": 74471703, "author": "hide1nbush", "author_id": 19825642, "author_profile": "https://Stackoverflow.com/users/19825642", "pm_score": 1, "selected": false, "text": "open \"t\" t text mode # main.py\nwith open(\"file.txt\", \"r\") as fin, open(\"out.txt\", \"w\") as fout:\n ...
2022/11/17
[ "https://Stackoverflow.com/questions/74471632", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20527509/" ]
74,471,635
<p>I want the content of <code>{todo.title}</code> to be clickable and after clicked it should route to different page and display some more information. I want this to happen using <code>&lt;link&gt;</code> tag, route, and not <code>&lt;a&gt;</code>. I have done this using react and wanted url-param to be utilized whi...
[ { "answer_id": 74471703, "author": "hide1nbush", "author_id": 19825642, "author_profile": "https://Stackoverflow.com/users/19825642", "pm_score": 1, "selected": false, "text": "open \"t\" t text mode # main.py\nwith open(\"file.txt\", \"r\") as fin, open(\"out.txt\", \"w\") as fout:\n ...
2022/11/17
[ "https://Stackoverflow.com/questions/74471635", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14595121/" ]
74,471,657
<p>I use the python library Nvdlib which aims to extract information from Nist. Among these informations, I'm interested in the CPE and especially the api output. Here is my code :</p> <pre><code>import nvdlib r = nvdlib.searchCVE(cveId='CVE-2019-19781')[0] conf = r.configurations #list in ouput for x in conf: t...
[ { "answer_id": 74471872, "author": "Sin Han Jinn", "author_id": 12128167, "author_profile": "https://Stackoverflow.com/users/12128167", "pm_score": -1, "selected": false, "text": "nIndex = x.find('cpe')\n\nprint ((x[nIndex:].split())[0][:-2])\n list=[] list.append(\"your output\")" }, ...
2022/11/17
[ "https://Stackoverflow.com/questions/74471657", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20511383/" ]
74,471,659
<p>I have an API that gets <code>count</code>. whenever user clicks on <code>IconButton</code> I must send the <code>count</code> to my server, but it always sends previous value. like if <code>count</code> is 1 it sends 0.</p> <pre><code> const { fetchCalculatedService, response } = useCalcService(); const [count, ...
[ { "answer_id": 74471749, "author": "Ali Sattarzadeh", "author_id": 11434567, "author_profile": "https://Stackoverflow.com/users/11434567", "pm_score": 0, "selected": false, "text": " onClick={() => {\n setCount((prev) => {\n fetchCalculatedService(\n Date,\n ...
2022/11/17
[ "https://Stackoverflow.com/questions/74471659", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19869211/" ]
74,471,666
<p>I am having <code>xlsx</code> file under the path <code>src/excel/data.xlsx</code> .</p> <p>So I am trying to get the data from this excel and form array.</p> <p><strong>Code tried:</strong></p> <pre><code>import * as XLSX from &quot;xlsx&quot;; export function App() { fetch(&quot;./excel/data.xlsx&quot;) .th...
[ { "answer_id": 74471713, "author": "Dream Bold", "author_id": 12743692, "author_profile": "https://Stackoverflow.com/users/12743692", "pm_score": 1, "selected": false, "text": "React.js public import * as XLSX from \"xlsx\";\n\nexport function App() {\n function Upload() {\n var url ...
2022/11/17
[ "https://Stackoverflow.com/questions/74471666", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15916627/" ]
74,471,696
<p>The latest version of spring boot is 2.7.5 from the Maven Repo is released .</p> <p><a href="https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter" rel="nofollow noreferrer">https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter</a></p> <p>Is spring boot 2.7.5 versi...
[ { "answer_id": 74471713, "author": "Dream Bold", "author_id": 12743692, "author_profile": "https://Stackoverflow.com/users/12743692", "pm_score": 1, "selected": false, "text": "React.js public import * as XLSX from \"xlsx\";\n\nexport function App() {\n function Upload() {\n var url ...
2022/11/17
[ "https://Stackoverflow.com/questions/74471696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10005690/" ]
74,471,768
<p>How to convert more than 3 level N nested dictionary to levelled dataframe?</p> <pre><code>input_dict = { '.Stock': { '.No[0]': '3241512)', '.No[1]': '1111111111', '.No[2]': '444444444444', ...
[ { "answer_id": 74471713, "author": "Dream Bold", "author_id": 12743692, "author_profile": "https://Stackoverflow.com/users/12743692", "pm_score": 1, "selected": false, "text": "React.js public import * as XLSX from \"xlsx\";\n\nexport function App() {\n function Upload() {\n var url ...
2022/11/17
[ "https://Stackoverflow.com/questions/74471768", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11742456/" ]
74,471,770
<p>In this <a href="https://stackoverflow.com/a/40067240/16237416">answer</a>, the user gave a very clear example on how classes and methods work together.</p> <p>I will reprint the example here:</p> <pre class="lang-lisp prettyprint-override"><code> (defclass human () ()) (defclass dog () ()) (defmethod greet ((thing...
[ { "answer_id": 74471992, "author": "Rainer Joswig", "author_id": 69545, "author_profile": "https://Stackoverflow.com/users/69545", "pm_score": 2, "selected": false, "text": "FUNCTION" }, { "answer_id": 74472874, "author": "coredump", "author_id": 124319, "author_profi...
2022/11/17
[ "https://Stackoverflow.com/questions/74471770", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16237416/" ]
74,471,797
<p>If I have array of string like</p> <pre><code>const arrayOfString=[&quot;Ajay Choudhary&quot;,&quot;Charlli Chouhan&quot;,&quot;Kerri Cilce&quot;,&quot;Dalis Menary&quot;]; </code></pre> <p>How to get name which has startswith C and surname startswith C like my output will be</p> <pre><code>Ajay Choudhary Charlli Ch...
[ { "answer_id": 74471846, "author": "Justinas", "author_id": 1346234, "author_profile": "https://Stackoverflow.com/users/1346234", "pm_score": 1, "selected": false, "text": "C const arrayOfString=[\"Ajay Choudhary\",\"Charlli Chouhan\",\"Kerri Cilce\",\"Dalis Menary\", \"Karoline-Celvin B...
2022/11/17
[ "https://Stackoverflow.com/questions/74471797", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19812559/" ]
74,471,816
<p>I am really not sure why I am seeing this error. I know it's something simple and right in my face . My issue is how I am passing on the <code>subnet_id</code> in the subnet_mapping block. This is the code below:</p> <p><code>main.tf</code></p> <pre><code>resource &quot;aws_lb&quot; &quot;lb&quot; { name ...
[ { "answer_id": 74471846, "author": "Justinas", "author_id": 1346234, "author_profile": "https://Stackoverflow.com/users/1346234", "pm_score": 1, "selected": false, "text": "C const arrayOfString=[\"Ajay Choudhary\",\"Charlli Chouhan\",\"Kerri Cilce\",\"Dalis Menary\", \"Karoline-Celvin B...
2022/11/17
[ "https://Stackoverflow.com/questions/74471816", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12678186/" ]
74,471,856
<p>I'm working on a Google Sheets spreadsheet that uses MAXIFS, MINIFS, etc. I have one table that contains primary keys and non-unique numerical values associated with each key. I also have a filtered list of primary keys that I want to search. The following examples are simplified versions of what I have:</p> <p><str...
[ { "answer_id": 74471846, "author": "Justinas", "author_id": 1346234, "author_profile": "https://Stackoverflow.com/users/1346234", "pm_score": 1, "selected": false, "text": "C const arrayOfString=[\"Ajay Choudhary\",\"Charlli Chouhan\",\"Kerri Cilce\",\"Dalis Menary\", \"Karoline-Celvin B...
2022/11/17
[ "https://Stackoverflow.com/questions/74471856", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20526820/" ]
74,471,889
<pre><code>$ourfilesdata = Get-Content &quot;P:\myfiles\details.txt&quot; foreach ($i in $ourfilesdata ) { if ( $i -match '\Mobile\b') {continue) { Write-Output &quot;$i&quot; } } </code></pre> <p>**My input is like 50 lines **</p> <pre><code>aaaaaaa bbbbb Req...
[ { "answer_id": 74471846, "author": "Justinas", "author_id": 1346234, "author_profile": "https://Stackoverflow.com/users/1346234", "pm_score": 1, "selected": false, "text": "C const arrayOfString=[\"Ajay Choudhary\",\"Charlli Chouhan\",\"Kerri Cilce\",\"Dalis Menary\", \"Karoline-Celvin B...
2022/11/17
[ "https://Stackoverflow.com/questions/74471889", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9299447/" ]
74,471,905
<p>My prettier can't auto wrap line and add bracket,</p> <p>before I save:</p> <pre><code>function MyApp({ Component, pageProps }) { return (&lt;Layout&gt;&lt;Component {...pageProps} /&gt;&lt;/Layout&gt;) } </code></pre> <p>I want the code become like this when save:</p> <pre><code>function MyApp({ Component, pagePr...
[ { "answer_id": 74471846, "author": "Justinas", "author_id": 1346234, "author_profile": "https://Stackoverflow.com/users/1346234", "pm_score": 1, "selected": false, "text": "C const arrayOfString=[\"Ajay Choudhary\",\"Charlli Chouhan\",\"Kerri Cilce\",\"Dalis Menary\", \"Karoline-Celvin B...
2022/11/17
[ "https://Stackoverflow.com/questions/74471905", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19876880/" ]
74,471,921
<p>I want to simplify a process where a non-privileged person needs to encrypt data with a symmetric key (AES-GCM) and give me the result. Non-privileged simply means the person has no access to the encryption key.</p> <p>With asymmetric cryptos like RSA and EC, giving anyone the public key is of course part of the who...
[ { "answer_id": 74471846, "author": "Justinas", "author_id": 1346234, "author_profile": "https://Stackoverflow.com/users/1346234", "pm_score": 1, "selected": false, "text": "C const arrayOfString=[\"Ajay Choudhary\",\"Charlli Chouhan\",\"Kerri Cilce\",\"Dalis Menary\", \"Karoline-Celvin B...
2022/11/17
[ "https://Stackoverflow.com/questions/74471921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1226020/" ]
74,471,941
<p>Hey I am working on an application Where I have two Buttons &quot;Call Now&quot; and &quot;Chat Now&quot;. Generally We only show one button &quot;Chat Now&quot;. If User Provide check &quot;show call button&quot; option then we will show both buttons. Otherwise only Chat Now Button will show. But the problem is in ...
[ { "answer_id": 74472147, "author": "Somnath", "author_id": 15660680, "author_profile": "https://Stackoverflow.com/users/15660680", "pm_score": 1, "selected": false, "text": "<LinearLayout\n android:id=\"@+id/callNowLayout\"\n android:layout_width=\"match_parent\"\n android:layou...
2022/11/17
[ "https://Stackoverflow.com/questions/74471941", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20397293/" ]
74,471,946
<p>H1 I have written a little process to save data before <code>Application.Terminate</code> using <code>OnCloseQuery</code>. I was wondering whether this is sufficient in the event of a power failure or a computer crash.</p> <pre><code>type TForm1 = class(TForm) abs: TABSDatabase; ABSTable1: TABSTa...
[ { "answer_id": 74479437, "author": "AmigoJack", "author_id": 4299358, "author_profile": "https://Stackoverflow.com/users/4299358", "pm_score": 1, "selected": false, "text": "OnCloseQuery procedure TCustomForm.WMQueryEndSession(var Message: TWMQueryEndSession);\nbegin\n Message.Result :=...
2022/11/17
[ "https://Stackoverflow.com/questions/74471946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14878056/" ]
74,471,962
<p>I am using pandas and np.where to fill a new column if multiple conditions are met.</p> <p>For this I am using the following database (but then 100 times bigger).</p> <p><a href="https://i.stack.imgur.com/6s6dv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6s6dv.png" alt="enter image description...
[ { "answer_id": 74472030, "author": "ILS", "author_id": 10017662, "author_profile": "https://Stackoverflow.com/users/10017662", "pm_score": 2, "selected": false, "text": "condition = (df['year'] >= 2018) & (df['year'] <= 2022) & (df['price'] > 30000) \\\n & (df['fuel descriptio...
2022/11/17
[ "https://Stackoverflow.com/questions/74471962", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13680411/" ]
74,471,970
<p>I am new to bash and just ran into</p> <pre><code>local name=; name = $(&quot;something&quot;, &quot;something&quot;) </code></pre> <p>Can someone please explain what =; means?</p> <p>I have tried to google it, but cannot find any explanation.</p>
[ { "answer_id": 74472013, "author": "Some programmer dude", "author_id": 440558, "author_profile": "https://Stackoverflow.com/users/440558", "pm_score": 1, "selected": false, "text": "; local name=\nname=$(\"something\", \"something\")\n" }, { "answer_id": 74472054, "author": ...
2022/11/17
[ "https://Stackoverflow.com/questions/74471970", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15611043/" ]
74,472,004
<p>I've a mysql table with me</p> <p><a href="https://i.stack.imgur.com/5Ak6E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5Ak6E.png" alt="enter image description here" /></a></p> <p>Now we want to do some calculations like this</p> <ul> <li>count date wise for all courses enrolled</li> <li>count ...
[ { "answer_id": 74472013, "author": "Some programmer dude", "author_id": 440558, "author_profile": "https://Stackoverflow.com/users/440558", "pm_score": 1, "selected": false, "text": "; local name=\nname=$(\"something\", \"something\")\n" }, { "answer_id": 74472054, "author": ...
2022/11/17
[ "https://Stackoverflow.com/questions/74472004", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2349594/" ]
74,472,032
<p>I'm trying to download PDF with SVG content using jsPDF library, it is able to download the file, but there is no content inside it, it is empty PDF.</p> <p>This is my code:</p> <pre><code>const downloadPDF = (goJSDiagram) =&gt; { const svg = goJSDiagram.makeSvg({scale: 1, background: &quot;white&quot;}); const ...
[ { "answer_id": 74475305, "author": "this.srivastava", "author_id": 6909182, "author_profile": "https://Stackoverflow.com/users/6909182", "pm_score": 2, "selected": true, "text": " const waitForImage = imgElem => new Promise(resolve => imgElem.complete ? resolve() : imgElem.onload = imgE...
2022/11/17
[ "https://Stackoverflow.com/questions/74472032", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6909182/" ]
74,472,039
<p>I am pushing Div element in an array and then iterating each one by one, but when I came out of first each section the array length becomes 0 and i am unable to enter into for loop.</p> <p>in for loop, i want to click a section in each div and perform an assertation and go back to the previous section.</p> <pre clas...
[ { "answer_id": 74472283, "author": "Mikhail Bolotov", "author_id": 13109074, "author_profile": "https://Stackoverflow.com/users/13109074", "pm_score": 1, "selected": false, "text": "then let Array =[]\ncy.get('.tag-wrapper-item').each(($pills) => {\n cy.log($pills)\n // cy.log('Suc...
2022/11/17
[ "https://Stackoverflow.com/questions/74472039", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12450434/" ]
74,472,061
<p>why CssProviderLeaf lasts about 1600 milliseconds?</p> <pre><code>julia&gt; using Gtk julia&gt; name =&quot;FieldName&quot; &quot;FieldName&quot; julia&gt; @time Gtk.CssProviderLeaf(data=&quot;#$name {background:#C0C0C0;border-width:2px}&quot;) 3.397363 seconds (118.32 k allocations: 5.960 MiB, 7.66% compilation...
[ { "answer_id": 74472283, "author": "Mikhail Bolotov", "author_id": 13109074, "author_profile": "https://Stackoverflow.com/users/13109074", "pm_score": 1, "selected": false, "text": "then let Array =[]\ncy.get('.tag-wrapper-item').each(($pills) => {\n cy.log($pills)\n // cy.log('Suc...
2022/11/17
[ "https://Stackoverflow.com/questions/74472061", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4605440/" ]
74,472,091
<p>I'm using an arraylist to append inputs and send the arraylist elements to file. However, everytime I exit the program and run it again, the contents in the written in the file becomes empty.</p> <pre><code>ArrayList&lt;String&gt; memory = new ArrayList&lt;String&gt;(); public void fileHandling() { try ...
[ { "answer_id": 74472283, "author": "Mikhail Bolotov", "author_id": 13109074, "author_profile": "https://Stackoverflow.com/users/13109074", "pm_score": 1, "selected": false, "text": "then let Array =[]\ncy.get('.tag-wrapper-item').each(($pills) => {\n cy.log($pills)\n // cy.log('Suc...
2022/11/17
[ "https://Stackoverflow.com/questions/74472091", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20429783/" ]
74,472,188
<p>I have don't have a lot of experiance with SQLs. I have two tables with prices from to different comanpies. I want to select the MIN price from each company and put them in a table together.</p> <pre><code>|Company |Start city| Stop city| Price | | -------- | -------- | -------- | -------- | | A | HONG...
[ { "answer_id": 74472273, "author": "trillion", "author_id": 12513693, "author_profile": "https://Stackoverflow.com/users/12513693", "pm_score": 2, "selected": false, "text": "with main as (\n\nselect * from table1\nunion all\nselect * from table2\n),finding_min as (\nselect \ncompany,\ns...
2022/11/17
[ "https://Stackoverflow.com/questions/74472188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20471057/" ]
74,472,202
<p>In VS code how can I see the current value of a specify setting variable?</p> <p>For example: I have the <em>Code Runner</em> extension installed. In the Feature contribution page I saw that it has a setting variable</p> <p><code>code-runner.executorMap</code> (Set the executor of each language.)</p> <p>How can see...
[ { "answer_id": 74472357, "author": "QuidalTHF", "author_id": 13982632, "author_profile": "https://Stackoverflow.com/users/13982632", "pm_score": 0, "selected": false, "text": "const myWorkbench = vscode.workspace.getConfiguration('myWorkbench')\nconst yourConfigValue = myWorkbench.get('y...
2022/11/17
[ "https://Stackoverflow.com/questions/74472202", "https://Stackoverflow.com", "https://Stackoverflow.com/users/65889/" ]
74,472,214
<pre><code>inputTuple = ({'mobile': '91245555555', 'email': 'xyz@gmail.com', 'name': 'xyz', 'app_registration': 1},) print(type(inputTuple)) # &lt;class 'tuple'&gt; my_dict = dict(inputTuple) print(my_dict) #ValueError: dictionary update sequence element #0 has length 4; 2 is required mobile = my_dict.get(&quot;mobi...
[ { "answer_id": 74472272, "author": "LegendWK", "author_id": 11350541, "author_profile": "https://Stackoverflow.com/users/11350541", "pm_score": 1, "selected": false, "text": "my_dict = inputTuple[0]\ndata = my_dict['mobile']\nprint(data) \n" }, { "answer_id": 74489677, "autho...
2022/11/17
[ "https://Stackoverflow.com/questions/74472214", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,472,232
<p>I have a string that is being dynamically created. As a result, sometimes the end of the string might have one dash or sometimes it might have more. I don't know how many dashes will be at the end; however, no matter how many dashes are at the end, I need to drop them all. So a few examples:</p> <p>This: 101-23920...
[ { "answer_id": 74472259, "author": "Anggara", "author_id": 12196486, "author_profile": "https://Stackoverflow.com/users/12196486", "pm_score": 4, "selected": true, "text": "- $number = \"101-239204-9230---\";\necho rtrim($number, '-');\n" }, { "answer_id": 74472269, "author":...
2022/11/17
[ "https://Stackoverflow.com/questions/74472232", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20527879/" ]
74,472,274
<p><a href="https://i.stack.imgur.com/t4Ptk.jpg" rel="nofollow noreferrer">enter image description here</a></p> <p>I want to program motion as described in the drawing above. The angle changes according to this equation:<code>theta = Amp*np.sin(2*np.pi*ftheta*p)</code> . I am looping through p(time) and that is the onl...
[ { "answer_id": 74472259, "author": "Anggara", "author_id": 12196486, "author_profile": "https://Stackoverflow.com/users/12196486", "pm_score": 4, "selected": true, "text": "- $number = \"101-239204-9230---\";\necho rtrim($number, '-');\n" }, { "answer_id": 74472269, "author":...
2022/11/17
[ "https://Stackoverflow.com/questions/74472274", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20447735/" ]
74,472,275
<p>Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click</p> <pre><code> pro = &quot;Provider=Microsoft.ACE.OLEDB.12.0;Data Source=&quot; + &quot;D:\FINAL PROJECT VB INVENTORY MANAGEMENT\Inventory.accdb;&quot; connstring = pro myconnection.ConnectionStrin...
[ { "answer_id": 74472259, "author": "Anggara", "author_id": 12196486, "author_profile": "https://Stackoverflow.com/users/12196486", "pm_score": 4, "selected": true, "text": "- $number = \"101-239204-9230---\";\necho rtrim($number, '-');\n" }, { "answer_id": 74472269, "author":...
2022/11/17
[ "https://Stackoverflow.com/questions/74472275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20527966/" ]
74,472,284
<p>I have a simple webpage with a simple menu.</p> <p>Each page of the webpage (for example, index.php, page-01.php etc) pulls the menu in using the include function:</p> <pre><code>&lt;?php include 'menu.php'; ?&gt; </code></pre> <p>I want the menu item for the current page formatted, so I'm trying to get the menu t...
[ { "answer_id": 74472259, "author": "Anggara", "author_id": 12196486, "author_profile": "https://Stackoverflow.com/users/12196486", "pm_score": 4, "selected": true, "text": "- $number = \"101-239204-9230---\";\necho rtrim($number, '-');\n" }, { "answer_id": 74472269, "author":...
2022/11/17
[ "https://Stackoverflow.com/questions/74472284", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8269695/" ]
74,472,295
<p>We have a nodejs monorepo project with &gt;179 packages where each package may have &gt;30 files. It also contains proxy with routing and several forked processes (as usual). So, when we packed all of this stuff into Docker image and moved it into CloudRun (with min instance = 1, max instance &gt;10, concurrency=100...
[ { "answer_id": 74475047, "author": "Anton Komarov", "author_id": 5966911, "author_profile": "https://Stackoverflow.com/users/5966911", "pm_score": 0, "selected": false, "text": "const path = require('path');\nconst nodeExternals = require('webpack-node-externals');\n\nmodule.exports = (...
2022/11/17
[ "https://Stackoverflow.com/questions/74472295", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5966911/" ]
74,472,299
<p>I have a database with buildings, with their names and heights. I want a query that gives me the names of the buildigs that differ less than 100 meters height from the average of all building.</p> <p>I have tried:</p> <pre><code>SELECT Name FROM building WHERE Height BETWEEN ABS((AVG(Height)) - 100) AND ABS(AVG(Hei...
[ { "answer_id": 74472369, "author": "CthenB", "author_id": 1885199, "author_profile": "https://Stackoverflow.com/users/1885199", "pm_score": 1, "selected": false, "text": "avg SELECT Name FROM mountain \nWHERE Height BETWEEN ( select ABS((AVG(Height)) from mountain) - 100) AND (select ABS...
2022/11/17
[ "https://Stackoverflow.com/questions/74472299", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,472,319
<p>As the name suggests, I have a problem with the clock() function.</p> <p>I want the time of each step in the loop to be printed.</p> <p>For example, I have code:</p> <pre><code>#include&lt;time.h&gt; int main() { clock_t start,end; for(int i=0;i&lt;number_of_elements;i++) { start=clock(); ...
[ { "answer_id": 74472369, "author": "CthenB", "author_id": 1885199, "author_profile": "https://Stackoverflow.com/users/1885199", "pm_score": 1, "selected": false, "text": "avg SELECT Name FROM mountain \nWHERE Height BETWEEN ( select ABS((AVG(Height)) from mountain) - 100) AND (select ABS...
2022/11/17
[ "https://Stackoverflow.com/questions/74472319", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20485697/" ]
74,472,354
<p>I have a file &quot;test.js&quot; in my &quot;/constants&quot; folder with the following content:</p> <pre><code>const test = &quot;test!&quot; export default test </code></pre> <p>My page in the &quot;/pages&quot; folder should read the string from &quot;test.js&quot; and print it</p> <pre><code>import { test } fr...
[ { "answer_id": 74472392, "author": "ThomasSquall", "author_id": 2569789, "author_profile": "https://Stackoverflow.com/users/2569789", "pm_score": 3, "selected": true, "text": "import { test } from \"../constants/test\"\n import test from \"../constants/test\"\n" }, { "answer_id":...
2022/11/17
[ "https://Stackoverflow.com/questions/74472354", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1931996/" ]
74,472,379
<pre><code>import * as React from &quot;react&quot;; // import &quot;./style.css&quot;; export default function App() { let [width, setWidth] = React.useState(window.innerWidth); let [height, setHeight] = React.useState(window.innerHeight); React.useEffect(() =&gt; { console.log(&quot;useEff...
[ { "answer_id": 74472443, "author": "Ali Sattarzadeh", "author_id": 11434567, "author_profile": "https://Stackoverflow.com/users/11434567", "pm_score": 0, "selected": false, "text": "addEventListener useEffect" }, { "answer_id": 74472475, "author": "Kuncheria", "author_id"...
2022/11/17
[ "https://Stackoverflow.com/questions/74472379", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16909739/" ]
74,472,419
<p>I am trying to UPDATE table value where meta key value _stock_status and id value list of ids, but i got an error (You can't specify target table 'wpp' for update in FROM clause). please advise here is my query</p> <pre><code>UPDATE meta_post AS wpp SET wpp.meta_value = 'instock' WHERE wpp.meta_key = '_stock_status...
[ { "answer_id": 74472443, "author": "Ali Sattarzadeh", "author_id": 11434567, "author_profile": "https://Stackoverflow.com/users/11434567", "pm_score": 0, "selected": false, "text": "addEventListener useEffect" }, { "answer_id": 74472475, "author": "Kuncheria", "author_id"...
2022/11/17
[ "https://Stackoverflow.com/questions/74472419", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14393908/" ]
74,472,423
<pre><code>In [1]: x = set() In [2]: pos = collections.namedtuple('Position', ['x','y']) In [4]: x.add(pos(1,1)) In [5]: x Out[5]: {Position(x=1, y=1)} In [6]: pos(1,1) in x Out[6]: True In [8]: pos(1,2) in x Out[8]: False </code></pre> <p>I was not expecting Line 6 <code>pos(1,1) in x</code> to work. Since it does see...
[ { "answer_id": 74472472, "author": "Abdul Niyas P M", "author_id": 6699447, "author_profile": "https://Stackoverflow.com/users/6699447", "pm_score": 3, "selected": false, "text": "__eq__ hash >>> hash(pos(1, 1)) == hash(pos(1, 1))\nTrue\n>>> pos(1, 1) == pos(1, 1)\nTrue\n set().__contain...
2022/11/17
[ "https://Stackoverflow.com/questions/74472423", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3646408/" ]
74,472,453
<pre><code> ElevatedButton( style: ElevatedButton.styleFrom( shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10))), onPressed: () { cubit.addItemToCart( id: cubit.getCartModel!.data[index].id); }, child: Text(LocaleKeys.addToCart.tr(...
[ { "answer_id": 74472472, "author": "Abdul Niyas P M", "author_id": 6699447, "author_profile": "https://Stackoverflow.com/users/6699447", "pm_score": 3, "selected": false, "text": "__eq__ hash >>> hash(pos(1, 1)) == hash(pos(1, 1))\nTrue\n>>> pos(1, 1) == pos(1, 1)\nTrue\n set().__contain...
2022/11/17
[ "https://Stackoverflow.com/questions/74472453", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19247628/" ]
74,472,503
<p>Could anyone help me out here please, all I'm trying to do here is to show popup modal confirmation for delete action, but every time I clicked on **Yes **btn to confirm my delete action the last product on the list always get deleted instead. I need help from anyone please?</p> <p>Here is my code for handling th...
[ { "answer_id": 74472472, "author": "Abdul Niyas P M", "author_id": 6699447, "author_profile": "https://Stackoverflow.com/users/6699447", "pm_score": 3, "selected": false, "text": "__eq__ hash >>> hash(pos(1, 1)) == hash(pos(1, 1))\nTrue\n>>> pos(1, 1) == pos(1, 1)\nTrue\n set().__contain...
2022/11/17
[ "https://Stackoverflow.com/questions/74472503", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18330870/" ]
74,472,536
<p>Suppose I have a file(local.tfvars) which consists of:</p> <pre><code>Car { } Bus { } </code></pre> <p>Now I want to replace car in this file with</p> <pre><code>Car { Audi, Mercedes, } Bus { } </code></pre> <p>through the script.</p> <p>I am fetching the local file through</p> <pre><code> $localfile = Get...
[ { "answer_id": 74472632, "author": "KojTug", "author_id": 15589792, "author_profile": "https://Stackoverflow.com/users/15589792", "pm_score": 0, "selected": false, "text": "$result = @'\n{\n\nCar {\n}\nBus {\n}\n\n}\n'@\n\n$result = $result.Replace(\"Car {\", \"Car {`r`nAudi,`r`nMercedes...
2022/11/17
[ "https://Stackoverflow.com/questions/74472536", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20527922/" ]
74,472,538
<p>I've an array which contains the objects including various key and values. I'm going to pick out the certain values from the Array and check if the specific value is included or not in the Array.</p> <pre><code>function groupByName (contract) { const { age } = contract; const groups = [ {name: 'John', age: 30},...
[ { "answer_id": 74472656, "author": "R4ncid", "author_id": 14326899, "author_profile": "https://Stackoverflow.com/users/14326899", "pm_score": 3, "selected": true, "text": "filter const groups = [\n {name: 'John', age: 30},\n {name: 'Jack', age: 33},\n {name: 'Tom', age: 40}\n ]\n \n...
2022/11/17
[ "https://Stackoverflow.com/questions/74472538", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16525519/" ]
74,472,540
<p>How can I make a list of prices that I got from my API.</p> <pre><code>{ product: { items: { price1: {} price2: {} price3: {} } } } var productPrices = response.data </code></pre> <p>I have tried this one to get the prices but I would like a help to convert it to a List so I ca...
[ { "answer_id": 74472708, "author": "Onur Kağan Aldemir", "author_id": 7335273, "author_profile": "https://Stackoverflow.com/users/7335273", "pm_score": 1, "selected": false, "text": "(jsonDecode(data)['product']['items'] as Map).values.toList()\n" }, { "answer_id": 74472709, ...
2022/11/17
[ "https://Stackoverflow.com/questions/74472540", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3352042/" ]
74,472,542
<p>Say I want to make a simple method which takes in a collection and cuts the number of its elements:</p> <pre><code> public static &lt;T extends Collection&lt;?&gt;&gt; T limit(T collection, long limit){ return collection.stream().limit(limit).collect(Collectors.toCollection(???)); } </code></pre> <p>I...
[ { "answer_id": 74472708, "author": "Onur Kağan Aldemir", "author_id": 7335273, "author_profile": "https://Stackoverflow.com/users/7335273", "pm_score": 1, "selected": false, "text": "(jsonDecode(data)['product']['items'] as Map).values.toList()\n" }, { "answer_id": 74472709, ...
2022/11/17
[ "https://Stackoverflow.com/questions/74472542", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16959486/" ]
74,472,549
<p>I have a pandas dataframe like so:</p> <pre><code>df = pd.DataFrame({'column': [[np.nan, np.nan, np.nan], [1, np.nan, np.nan], [2, 3, np.nan], [3, 2, 1]]}) column 0 [nan, nan, nan] 1 [1, nan, nan] 2 [2, 3, nan] 3 [3, 2, 1] </code></pre> <p>Note that there is never the same value twice in a row.</p> <p>I wis...
[ { "answer_id": 74472708, "author": "Onur Kağan Aldemir", "author_id": 7335273, "author_profile": "https://Stackoverflow.com/users/7335273", "pm_score": 1, "selected": false, "text": "(jsonDecode(data)['product']['items'] as Map).values.toList()\n" }, { "answer_id": 74472709, ...
2022/11/17
[ "https://Stackoverflow.com/questions/74472549", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8814131/" ]
74,472,557
<p>Here I am trying to get user Info from redux state to the homepage after signing in but the problem is that the component refreshes and lose all the redux data stored because of the <code>useEffect</code> hook, and I can't use the <code>checkUser()</code> method which retrieve user data without that hook because it ...
[ { "answer_id": 74472708, "author": "Onur Kağan Aldemir", "author_id": 7335273, "author_profile": "https://Stackoverflow.com/users/7335273", "pm_score": 1, "selected": false, "text": "(jsonDecode(data)['product']['items'] as Map).values.toList()\n" }, { "answer_id": 74472709, ...
2022/11/17
[ "https://Stackoverflow.com/questions/74472557", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17862094/" ]
74,472,565
<p>I have a 4 different configurations to be used and these configuration values are stored in a property file. The properties for all the configurations are same, but the values are different for each.</p> <p>Ex: The property file configurations I am using:</p> <pre><code>####Config1#### conf1.password=admin conf1.use...
[ { "answer_id": 74474892, "author": "Positronator", "author_id": 20527747, "author_profile": "https://Stackoverflow.com/users/20527747", "pm_score": 1, "selected": false, "text": "HashMap<String, HashMap<String, String>> conf = new HashMap<>();\n\nfor(int i = 1; i <= 4; i++) {\n String...
2022/11/17
[ "https://Stackoverflow.com/questions/74472565", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15170229/" ]
74,472,578
<p>I have a list that has the keys and values of a dictionary as elements. I want to change it into a dictionary. Any help would be appreciated. I am new to programming.</p> <pre class="lang-py prettyprint-override"><code>List=[key1,key2,value2,value2,key3,value3,value3,key4,value4] </code></pre> <p>I want to change it...
[ { "answer_id": 74472911, "author": "Tranbi", "author_id": 13525512, "author_profile": "https://Stackoverflow.com/users/13525512", "pm_score": 1, "selected": true, "text": "list_in = [\"key1\",\"key2\",\"value2\",\"value2\",\"key3\",\"value3\",\"value3\",\"key4\",\"value4\"]\ndict_out = {...
2022/11/17
[ "https://Stackoverflow.com/questions/74472578", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12863170/" ]
74,472,595
<p>When I call fetch function - I get the correct token from backend application. But everytime in this program , even when I get the incorrect token - the program moves to StudentLobby (and that need to happen only when i get the correct token).</p> <p>what i'm missing?</p> <p><a href="https://i.stack.imgur.com/8HMjR....
[ { "answer_id": 74472911, "author": "Tranbi", "author_id": 13525512, "author_profile": "https://Stackoverflow.com/users/13525512", "pm_score": 1, "selected": true, "text": "list_in = [\"key1\",\"key2\",\"value2\",\"value2\",\"key3\",\"value3\",\"value3\",\"key4\",\"value4\"]\ndict_out = {...
2022/11/17
[ "https://Stackoverflow.com/questions/74472595", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16454734/" ]
74,472,596
<p>I want to subtract count of a metric from now and for example 5 min ago. how can I do that?</p> <p>This is not work:</p> <pre><code>count(istio_requests_total{destination_workload=~&quot;production-api&quot;) - count(istio_requests_total{destination_workload=~&quot;production-api&quot;) [5m:5m] </code></pre> <p>Eac...
[ { "answer_id": 74472911, "author": "Tranbi", "author_id": 13525512, "author_profile": "https://Stackoverflow.com/users/13525512", "pm_score": 1, "selected": true, "text": "list_in = [\"key1\",\"key2\",\"value2\",\"value2\",\"key3\",\"value3\",\"value3\",\"key4\",\"value4\"]\ndict_out = {...
2022/11/17
[ "https://Stackoverflow.com/questions/74472596", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10306090/" ]
74,472,598
<p>I'm a beginner and I'm trying to make a console <strong>login, registration and forgot password</strong>. The code simply works and it looks like this..</p> <p><a href="https://i.stack.imgur.com/CzUvq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CzUvq.png" alt="How the output looks like" /></a>...
[ { "answer_id": 74472876, "author": "nick", "author_id": 20213170, "author_profile": "https://Stackoverflow.com/users/20213170", "pm_score": 2, "selected": false, "text": " else {\n system(\"cls\");\n cout << \"Account doesn't exist!\\n\" << endl;\n ...
2022/11/17
[ "https://Stackoverflow.com/questions/74472598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18143615/" ]
74,472,601
<p>how is the procedure to transfer one plugin to site A to B with the plugin data included? I am able to transfer the FTP data for sure but I need the saved files of the plugin also. So I need to do some actions in the database.</p> <p>Where do I find the plugins database, where to extract and import it? Did not find ...
[ { "answer_id": 74472876, "author": "nick", "author_id": 20213170, "author_profile": "https://Stackoverflow.com/users/20213170", "pm_score": 2, "selected": false, "text": " else {\n system(\"cls\");\n cout << \"Account doesn't exist!\\n\" << endl;\n ...
2022/11/17
[ "https://Stackoverflow.com/questions/74472601", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20528237/" ]
74,472,620
<p>After creating an exe of a script (the script was working on its own) with py2exe I got the following error:</p> <pre><code>Traceback (most recent call last): File &quot;script.py&quot;, line 3, in &lt;module&gt; File &quot;zipextimporter.pyc&quot;, line 167, in exec_module File &quot;src\import_clixml.pyc&quo...
[ { "answer_id": 74472876, "author": "nick", "author_id": 20213170, "author_profile": "https://Stackoverflow.com/users/20213170", "pm_score": 2, "selected": false, "text": " else {\n system(\"cls\");\n cout << \"Account doesn't exist!\\n\" << endl;\n ...
2022/11/17
[ "https://Stackoverflow.com/questions/74472620", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9296093/" ]
74,472,642
<p>I'm executing a script with the PowerShell SDK, which makes use of all different streams (information, warning, verbose, ..). I can capture the output from them correctly, but not in the sequence they are generated. As an example, here is a console app (C#, .NET 7, installed the NuGet package <em>Microsoft.PowerShel...
[ { "answer_id": 74474772, "author": "Thomas Glaser", "author_id": 1244910, "author_profile": "https://Stackoverflow.com/users/1244910", "pm_score": 0, "selected": false, "text": "instance.Commands.Commands[0].MergeMyResults(PipelineResultTypes.All,PipelineResultTypes.Output);\n instance.I...
2022/11/17
[ "https://Stackoverflow.com/questions/74472642", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1244910/" ]
74,472,700
<p>I have a <code>.csv</code> file that contains 2500 unique request id like &quot;4485-182-65846&quot;. I want to run a elasticsearch query command that contain this request Id. my query be like:</p> <pre class="lang-bash prettyprint-override"><code>curl -XGET 127.0.0.1:9200/_search?pretty -d ' { &quot;query&quo...
[ { "answer_id": 74474772, "author": "Thomas Glaser", "author_id": 1244910, "author_profile": "https://Stackoverflow.com/users/1244910", "pm_score": 0, "selected": false, "text": "instance.Commands.Commands[0].MergeMyResults(PipelineResultTypes.All,PipelineResultTypes.Output);\n instance.I...
2022/11/17
[ "https://Stackoverflow.com/questions/74472700", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19068624/" ]
74,472,714
<p>I have a constant Enum class that looks something like this:</p> <pre><code>class Animals(Enum): Dog= 'dog' Cat= 'cat' Chicken = 'chicken' Horse = 'horse' </code></pre> <p>I need to find a simple and efficient way to find the index of one of the members of the Enum. so I came up with the following on...
[ { "answer_id": 74474772, "author": "Thomas Glaser", "author_id": 1244910, "author_profile": "https://Stackoverflow.com/users/1244910", "pm_score": 0, "selected": false, "text": "instance.Commands.Commands[0].MergeMyResults(PipelineResultTypes.All,PipelineResultTypes.Output);\n instance.I...
2022/11/17
[ "https://Stackoverflow.com/questions/74472714", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11239996/" ]
74,472,720
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>function myfunc(){ document.getElementById("bob").innerText += "azerty"; }</code></pre> <pre class="snippet-code-css lang-cs...
[ { "answer_id": 74472943, "author": "jeremy-denis", "author_id": 3054722, "author_profile": "https://Stackoverflow.com/users/3054722", "pm_score": 1, "selected": false, "text": "bob.dataset.modified = true;\nbob.classList.add('modified');\n function myfuncClass() {\n const bob = document...
2022/11/17
[ "https://Stackoverflow.com/questions/74472720", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4015022/" ]
74,472,746
<p>the close isnt working, the dialogRef.close() is undefined??</p> <p>Here is the code template</p> <pre><code> &lt;button mat-raised-button (click)=&quot;openModal()&quot;&gt;Open Project Specifics&lt;/button&gt; </code></pre> <p>TS</p> <pre><code> openModal(){ let dialogRef = this.dialog.open(ProjectSpecificC...
[ { "answer_id": 74472943, "author": "jeremy-denis", "author_id": 3054722, "author_profile": "https://Stackoverflow.com/users/3054722", "pm_score": 1, "selected": false, "text": "bob.dataset.modified = true;\nbob.classList.add('modified');\n function myfuncClass() {\n const bob = document...
2022/11/17
[ "https://Stackoverflow.com/questions/74472746", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19198215/" ]
74,472,761
<p>I have 3 table: <code>tasks</code>, <code>users</code>, <code>group</code>, and a pivot table <code>group_user</code>.</p> <p>A task has <code>user_id</code>, <code>group_id</code></p> <p>A group_user pivot table has <code>user_id</code>, <code>group_id</code></p> <p>I want to query the tasks if the task belongs to ...
[ { "answer_id": 74473486, "author": "Devon Ray", "author_id": 10037470, "author_profile": "https://Stackoverflow.com/users/10037470", "pm_score": 0, "selected": false, "text": "\n$query->whereHas('user', function($q2) use ($userId) {\n $q2->where('user_id', $userId);\n});\n" }, { ...
2022/11/17
[ "https://Stackoverflow.com/questions/74472761", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20178708/" ]
74,472,768
<p>I would like to refactor my method. I also need to get which value was first? So which anyOf? Is it possible to get it from here?</p> <p>Example:</p> <pre><code>List&lt;string&gt; anyOf = new List&lt;string&gt;(){&quot;at&quot;, &quot;near&quot;, &quot;by&quot;, &quot;above&quot;}; string source = &quot;South Branch...
[ { "answer_id": 74472919, "author": "Tim Schmelter", "author_id": 284240, "author_profile": "https://Stackoverflow.com/users/284240", "pm_score": 3, "selected": true, "text": "public static (int index, string? firstMatch) IndexOfAny(this string source, IEnumerable<string> anyOf, StringCom...
2022/11/17
[ "https://Stackoverflow.com/questions/74472768", "https://Stackoverflow.com", "https://Stackoverflow.com/users/267679/" ]
74,472,777
<p>I need a help with code, when i compile code, evrething ok, when i choose remove, evrething ok, but when i write my val, i see that error &quot;Exception thrown: Read access violation. front was nullptr.&quot;</p> <p>In main can be something problems, its because i send not all code, just part when i use my function...
[ { "answer_id": 74472919, "author": "Tim Schmelter", "author_id": 284240, "author_profile": "https://Stackoverflow.com/users/284240", "pm_score": 3, "selected": true, "text": "public static (int index, string? firstMatch) IndexOfAny(this string source, IEnumerable<string> anyOf, StringCom...
2022/11/17
[ "https://Stackoverflow.com/questions/74472777", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20528299/" ]
74,472,796
<p>I have a requirement to build a regex pattern to validate a String in Java. Hence I build a pattern <code>[A-Z][a-z]*\s?[A-Z]?[a-z]*$</code> for the conditions:</p> <ul> <li>Should start with caps</li> <li>Every other Word should start with caps</li> <li>No numbers included</li> <li>no consecutive two spaces allowed...
[ { "answer_id": 74472858, "author": "Wiktor Stribiżew", "author_id": 3832970, "author_profile": "https://Stackoverflow.com/users/3832970", "pm_score": 0, "selected": false, "text": "Pattern.matches(\"[A-Z][a-z]*(?:\\\\s[A-Z][a-z]*)*\",\"Joe V\")\nPattern.matches(\"\\\\p{Lu}\\\\p{Ll}*(?:\\...
2022/11/17
[ "https://Stackoverflow.com/questions/74472796", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19839205/" ]
74,472,807
<p>I would like to format a text differently within a &quot;p&quot; tag with a class. There is a line break by &quot;br&quot; and the following text should be formatted differently. Is there a solution for this from css?<br /> Below is the code example.</p> <p>To-Do: Format ${getDate(loadStoredTasks())}&quot; different...
[ { "answer_id": 74472925, "author": "corcre", "author_id": 19954006, "author_profile": "https://Stackoverflow.com/users/19954006", "pm_score": 0, "selected": false, "text": ".list-task-notes{\n font-weight: normal;\n}\n.list-task-notes::first-line {\n font-weight: bold;\n}\n" }, ...
2022/11/17
[ "https://Stackoverflow.com/questions/74472807", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16460726/" ]
74,472,823
<p>There are two PCs with Visual Studio 2017 installed. I'm running a simple program on both of them, one that lists the name of modules (exes/DLLs) inside its own process. But I get wildly different results. On one PC, I only get 7 modules:</p> <pre><code> Lab7_1.exe ntdll.dll KERNEL32.DLL KERNELBASE.dl...
[ { "answer_id": 74472925, "author": "corcre", "author_id": 19954006, "author_profile": "https://Stackoverflow.com/users/19954006", "pm_score": 0, "selected": false, "text": ".list-task-notes{\n font-weight: normal;\n}\n.list-task-notes::first-line {\n font-weight: bold;\n}\n" }, ...
2022/11/17
[ "https://Stackoverflow.com/questions/74472823", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2201663/" ]
74,472,843
<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>.editor { width: 100%; min-height: 100%; height: 100%; background-color: black; col...
[ { "answer_id": 74472925, "author": "corcre", "author_id": 19954006, "author_profile": "https://Stackoverflow.com/users/19954006", "pm_score": 0, "selected": false, "text": ".list-task-notes{\n font-weight: normal;\n}\n.list-task-notes::first-line {\n font-weight: bold;\n}\n" }, ...
2022/11/17
[ "https://Stackoverflow.com/questions/74472843", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20426234/" ]
74,472,849
<p>Weird title, but the question is pretty complex. (Please don't hesitate to change the title if you know a better one)</p> <p>I need to create a fresh new list with altered keys from other list, substrings from keys to check key name of other list and match these key substrings with another key from list.</p> <p>I ho...
[ { "answer_id": 74472925, "author": "corcre", "author_id": 19954006, "author_profile": "https://Stackoverflow.com/users/19954006", "pm_score": 0, "selected": false, "text": ".list-task-notes{\n font-weight: normal;\n}\n.list-task-notes::first-line {\n font-weight: bold;\n}\n" }, ...
2022/11/17
[ "https://Stackoverflow.com/questions/74472849", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19664607/" ]
74,472,855
<p>I am new to C and recently encountered this problem.</p> <p>I have two pieces of code:</p> <pre><code> #include &lt;stdio.h&gt; #include &lt;string.h&gt; int main() { char x = 'a'; // char *y=&amp;x; printf(&quot;%ld\n&quot;, strlen(&amp;x)); // output: 1 return 0; } </code></pre> <pre><code>#include...
[ { "answer_id": 74472897, "author": "Codo", "author_id": 413337, "author_profile": "https://Stackoverflow.com/users/413337", "pm_score": 0, "selected": false, "text": "strlen() char x strlen()" } ]
2022/11/17
[ "https://Stackoverflow.com/questions/74472855", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20528109/" ]
74,472,882
<p>When I run the command <code>kubectl get pods | grep &quot;apisix&quot;</code>, I get the following data</p> <pre><code>apisix-dev-78549978b7-pvh2v 1/1 Running 6 (4m19s ago) 8m14s apisix-dev-dashboard-646df79bf-mwkpc 1/1 Running 6 (4m35s ag...
[ { "answer_id": 74473042, "author": "Prafull Ladha", "author_id": 6843187, "author_profile": "https://Stackoverflow.com/users/6843187", "pm_score": 1, "selected": false, "text": "kubectl delete pod $(kubectl get pod | grep apisix | awk '{print $1}')\n" }, { "answer_id": 74473187, ...
2022/11/17
[ "https://Stackoverflow.com/questions/74472882", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12635985/" ]