qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,554,142
<p>I was given a &quot;simple&quot; assignment and can't seem to get it to work and the docs are not helpful at all.</p> <p>Assignment:</p> <ol> <li>create a POST function that receives a string and then returns the same string</li> <li>create a static site (just an html form) that allows a user to submit a string whic...
[ { "answer_id": 74554399, "author": "Bill", "author_id": 4282847, "author_profile": "https://Stackoverflow.com/users/4282847", "pm_score": 2, "selected": false, "text": "randcomplex() = (c = Complex(rand(2)...); c / abs(c))\n\nrandcomplex(numwanted) = [randcomplex() for _ in 1:numwanted]\...
2022/11/23
[ "https://Stackoverflow.com/questions/74554142", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12380096/" ]
74,554,147
<p>Consider the following structure called <code>x</code> whose output is a vector in R:</p> <pre><code>&gt; x A A A B B C </code></pre> <p>I'd like to use <code>split</code> to split <code>x</code> into 3 groups A, B, and C where A has 3 elements, B has 2, and C has 1.</p> <p>What should the gr...
[ { "answer_id": 74554318, "author": "AndS.", "author_id": 9778513, "author_profile": "https://Stackoverflow.com/users/9778513", "pm_score": 2, "selected": true, "text": "vals <- c(\">COLFG678-14|MZ630002|Agabus|adpressus|AEC6988|COI-5P\",\n \">CZLFG631-11|MZ730009|Agabus|a...
2022/11/23
[ "https://Stackoverflow.com/questions/74554147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8183972/" ]
74,554,158
<p>We post a message to a slack channel every time a customer does a specific task. We want to change the bot Icon based on what is being posted in the channel.</p> <p>Is this possible?</p> <pre><code>public static function send_to_slack($message,$title = null){ $body = array(); $body['text'] = ''; $body['...
[ { "answer_id": 74554459, "author": "user16034511", "author_id": 16034511, "author_profile": "https://Stackoverflow.com/users/16034511", "pm_score": 0, "selected": false, "text": " public static function send_to_slack($message,$title = null){\n\n $ch = curl_init(\"https://slack.com/api...
2022/11/23
[ "https://Stackoverflow.com/questions/74554158", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16034511/" ]
74,554,167
<p>I have the following object with a set of colors for each shape:</p> <pre><code>const design = { designId: 1, shapes: [ { shapeId: 'basic-square', color: { r: 255, g: 255, b: 255 }}, { shapeId: 'basic-circle', color: { r: 255, g: 255, b: 255 }}, { shapeId: 'basic-diamond', color: ...
[ { "answer_id": 74554238, "author": "symlink", "author_id": 818326, "author_profile": "https://Stackoverflow.com/users/818326", "pm_score": 0, "selected": false, "text": "Array.map() average() const design = {\n designId: 1,\n shapes: [\n { shapeId: 'basic-square', color:...
2022/11/23
[ "https://Stackoverflow.com/questions/74554167", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20547034/" ]
74,554,191
<p>I know this sounds a bit stupid but I am extending a text-based game and I'm trying to figure out a way to print out the items that are in the room. I have made an arrayList for the room and added and &quot;Item&quot; into it by using a separate class called Item.</p> <pre><code>import java.util.ArrayList; import ja...
[ { "answer_id": 74554324, "author": "f1sh", "author_id": 214525, "author_profile": "https://Stackoverflow.com/users/214525", "pm_score": 0, "selected": false, "text": "ArrayList<Item> assemblyHallList Room assemblyHall = new Room(\"in the assembly hall\", \"assemblyHallList\");\n String l...
2022/11/23
[ "https://Stackoverflow.com/questions/74554191", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12178509/" ]
74,554,198
<p>I am trying to empty the database of any data, while keeping the relationships and tables as they are</p> <p>I have no idea if my thinking is right or wrong</p>
[ { "answer_id": 74554324, "author": "f1sh", "author_id": 214525, "author_profile": "https://Stackoverflow.com/users/214525", "pm_score": 0, "selected": false, "text": "ArrayList<Item> assemblyHallList Room assemblyHall = new Room(\"in the assembly hall\", \"assemblyHallList\");\n String l...
2022/11/23
[ "https://Stackoverflow.com/questions/74554198", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18595527/" ]
74,554,229
<p>I have a large image centered like this: <a href="https://i.stack.imgur.com/xDX4Y.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xDX4Y.jpg" alt="enter image description here" /></a></p> <p>I want to image to bleed with a blur on the sides like this:</p> <p><a href="https://i.stack.imgur.com/sLGPf...
[ { "answer_id": 74555067, "author": "Ethan Anderson", "author_id": 19455904, "author_profile": "https://Stackoverflow.com/users/19455904", "pm_score": 2, "selected": true, "text": "import './App.css'\n\nexport default function App() {\n return (\n <main>\n <div className='contain...
2022/11/24
[ "https://Stackoverflow.com/questions/74554229", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19455904/" ]
74,554,237
<p>I'm trying to get the nested values from my locally stored json file with Flutter.</p> <p>I can get the &quot;outer&quot; values, but I haven't been able to get the &quot;inner&quot; ones. I have googled and searched here, but I still can't make it work, so any help is much appreciated.</p> <p>I put the code in a sa...
[ { "answer_id": 74554307, "author": "Amarghosh", "author_id": 165297, "author_profile": "https://Stackoverflow.com/users/165297", "pm_score": 1, "selected": false, "text": "List<UserModel> models = [];\nfor (var item in list) {\n models.addAll(item.map((e) => UserModel.fromJson(e['id'], ...
2022/11/24
[ "https://Stackoverflow.com/questions/74554237", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13867582/" ]
74,554,246
<p>I'am trying to do a mobile app which is about crypto currencies.</p> <p>I want to make two <code>TextFields</code> like USDT and BTC, And they are supposed to work like:</p> <p>Let me say that BTC is equal to 15$,</p> <p>And USDT is equal to 1$,</p> <p>Now those text fields should be editable. so if I write 1 on BTC...
[ { "answer_id": 74554373, "author": "JerZaw", "author_id": 15973134, "author_profile": "https://Stackoverflow.com/users/15973134", "pm_score": 1, "selected": false, "text": "void updateValues(float BTC, var USDT)\n FocusNode TextFields onChanged FocusNode" }, { "answer_id": 745547...
2022/11/24
[ "https://Stackoverflow.com/questions/74554246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20277639/" ]
74,554,248
<p>Reading through the URI syntax description (<a href="https://www.rfc-editor.org/rfc/rfc3986" rel="nofollow noreferrer">RFC 3986</a>) and trying to understand what their syntax descriptions mean.</p> <p>For example, a URI has to have a schema part, which is restricted by the following syntax description:</p> <pre><co...
[ { "answer_id": 74554274, "author": "Daniel A. White", "author_id": 23528, "author_profile": "https://Stackoverflow.com/users/23528", "pm_score": 2, "selected": true, "text": "/ *" } ]
2022/11/24
[ "https://Stackoverflow.com/questions/74554248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10821861/" ]
74,554,255
<p>I am trying to use pandas to select some data from an Oracle database. The column in question has the data type <code>TIMESTAMP(6) WITH TIME ZONE</code>. I am in the same time zone as the database, but it contains data that is recorded from a different time zone.</p> <pre><code>Oracle version: Oracle Database 12c En...
[ { "answer_id": 74554727, "author": "Christopher Jones", "author_id": 4799035, "author_profile": "https://Stackoverflow.com/users/4799035", "pm_score": 1, "selected": false, "text": "# create table t (c TIMESTAMP(6) WITH TIME ZONE);\n# insert into t (c) values (systimestamp);\n# commit;\n...
2022/11/24
[ "https://Stackoverflow.com/questions/74554255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6672746/" ]
74,554,287
<p>I need help with sorting in Express working with mongooose db. When i use sort({'price':1}) everythink is good, but when i pass JSON.stringify(sort) which contains and logs out {&quot;price&quot;:1} it stops working. Any ideas why?</p> <pre><code> if(req.query.sortOption){ const str = req.query.sortOption.sp...
[ { "answer_id": 74554727, "author": "Christopher Jones", "author_id": 4799035, "author_profile": "https://Stackoverflow.com/users/4799035", "pm_score": 1, "selected": false, "text": "# create table t (c TIMESTAMP(6) WITH TIME ZONE);\n# insert into t (c) values (systimestamp);\n# commit;\n...
2022/11/24
[ "https://Stackoverflow.com/questions/74554287", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19294299/" ]
74,554,295
<p>I am trying to find a way to know if an action will trigger an effect at runtime.</p> <p>I can see the Effects Class at runtime and I can see the created effects in the class members as well but I have no idea how to find out the action that may trigger the effect before the effect is fired.</p> <p>Any ideas if this...
[ { "answer_id": 74554727, "author": "Christopher Jones", "author_id": 4799035, "author_profile": "https://Stackoverflow.com/users/4799035", "pm_score": 1, "selected": false, "text": "# create table t (c TIMESTAMP(6) WITH TIME ZONE);\n# insert into t (c) values (systimestamp);\n# commit;\n...
2022/11/24
[ "https://Stackoverflow.com/questions/74554295", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4475288/" ]
74,554,329
<p>I have found this sql that help avoid high_value long type column.</p> <pre><code>--VER HIGH VALUE col partition_name for a30 col high_value for a120 col PARTITION for a20 WITH xml AS ( SELECT dbms_xmlgen.getxmltype('SELECT table_name,partition_name,partition_position,high_value F...
[ { "answer_id": 74556806, "author": "d r", "author_id": 19023353, "author_profile": "https://Stackoverflow.com/users/19023353", "pm_score": 1, "selected": false, "text": "Select \n TABLE_NAME, \n PARTITION_NAME, \n PARTITION_POSITION,\n CASE WHEN HIGH_VALUE != 'MAXVALUE' THEN ...
2022/11/24
[ "https://Stackoverflow.com/questions/74554329", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9616557/" ]
74,554,341
<p>I have below <code>array</code> and <code>list</code> in JavaScript.</p> <pre><code>const headr = [H1, H2 ,H3, H4] const Year = ['1Y', '2Y' ,'3Y', '4Y'] let arr_ = { H1 : Array(3) 0 : {Year: '1Y', Type: 'TypeA', Value: -41445643364} 1 : {Year: '2Y', Type: 'TypeA', Value: -11928080380} 2 : {Year: '3Y'...
[ { "answer_id": 74556806, "author": "d r", "author_id": 19023353, "author_profile": "https://Stackoverflow.com/users/19023353", "pm_score": 1, "selected": false, "text": "Select \n TABLE_NAME, \n PARTITION_NAME, \n PARTITION_POSITION,\n CASE WHEN HIGH_VALUE != 'MAXVALUE' THEN ...
2022/11/24
[ "https://Stackoverflow.com/questions/74554341", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6681701/" ]
74,554,355
<p>I have a nested vector</p> <pre><code>$a $a$age [1] -2702 -2621 -2945 $a$gen [1] 109 109 105 $b $b$age [1] -2702 -2702 -2702 $b$gen [1] 109 109 109 </code></pre> <p>I want to divide the elements of $a$age to 25, round them up and the result write in $a$gen, as well as do the same with $b$age and result write in $b$...
[ { "answer_id": 74556806, "author": "d r", "author_id": 19023353, "author_profile": "https://Stackoverflow.com/users/19023353", "pm_score": 1, "selected": false, "text": "Select \n TABLE_NAME, \n PARTITION_NAME, \n PARTITION_POSITION,\n CASE WHEN HIGH_VALUE != 'MAXVALUE' THEN ...
2022/11/24
[ "https://Stackoverflow.com/questions/74554355", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16756939/" ]
74,554,371
<p>Basically, I want to know how to replace every A, + and - in a string of A's,+'s and -'s based on rules inputted. So if I have a chain of the characters mentioned above, and I input that every A will become A+A, every - will become -+-, every + will become A-+. How do I &quot;choose&quot; every single one of the cha...
[ { "answer_id": 74554425, "author": "Metahuman Flash", "author_id": 14694240, "author_profile": "https://Stackoverflow.com/users/14694240", "pm_score": 0, "selected": false, "text": "chain = input('Initial chain: ')\nr1 = input('What does A become? ')\nr2 = input('What does + become? ')\n...
2022/11/24
[ "https://Stackoverflow.com/questions/74554371", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20586276/" ]
74,554,376
<p>EDIT: I took one observation out from the data frame of the original post and changed some values so writing manually is easier. I am also adding the desired output, so my question is easier to read.</p> <p>This is a continuation to a question I made in another post:</p> <p><a href="https://stackoverflow.com/questio...
[ { "answer_id": 74554593, "author": "AndS.", "author_id": 9778513, "author_profile": "https://Stackoverflow.com/users/9778513", "pm_score": 2, "selected": true, "text": "df <- data.frame(id1 = c(\"A\",\"A\",\"A\",\"A\",\"B\",\"B\",\"B\",\"B\"),\n id2 = c(\"a\", \"b\", \"c\...
2022/11/24
[ "https://Stackoverflow.com/questions/74554376", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19991656/" ]
74,554,408
<p>I'm following the latest <a href="https://getstream.io/tutorials/swiftui-chat/" rel="nofollow noreferrer">tutorial</a> from Stream Chat, which looks great.</p> <p>Looks like I followed it to the letter except for I replaced the <code>apiKey</code> with one created for me in the dashboard. This was provided when I re...
[ { "answer_id": 74554523, "author": "somethingsomethingswift", "author_id": 19913478, "author_profile": "https://Stackoverflow.com/users/19913478", "pm_score": 0, "selected": false, "text": "apiKey token" } ]
2022/11/24
[ "https://Stackoverflow.com/questions/74554408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19913478/" ]
74,554,431
<p>I have an array like this:</p> <pre><code>[1, 2, 3, 4, 5, nil, 7, 8, 9, nil, nil, 12] </code></pre> <p>How can i get an array of the sums of these numbers in groups of 4, so that when a nil is encountered, it's treated as zero?</p> <p>So that the outcome would be:</p> <pre><code>[10, 20, 21] </code></pre>
[ { "answer_id": 74554493, "author": "markets", "author_id": 3033649, "author_profile": "https://Stackoverflow.com/users/3033649", "pm_score": 4, "selected": true, "text": "array = [1, 2, 3, 4, 5, nil, 7, 8, 9, nil, nil, 12]\n\narray.each_slice(4).map { |slice| slice.sum(&:to_i) }\n#=> [10...
2022/11/24
[ "https://Stackoverflow.com/questions/74554431", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1580201/" ]
74,554,443
<p>I am trying to query an on-premises SQL Server database using a power automate variable.</p> <p>Is there any suggestions or is this even possible for the time being?</p> <p>I have attempted the following:</p> <ol> <li>Using “Execute a SQL query (V2)” with an on-prem gateway connection. Not supported!</li> <li>Using ...
[ { "answer_id": 74573150, "author": "SwethaKandikonda", "author_id": 15969981, "author_profile": "https://Stackoverflow.com/users/15969981", "pm_score": 1, "selected": false, "text": "Execute a SQL query (V2) SELECT * from dbo.ReproTable where Country = '@{outputs('Compose')}'\n" } ]
2022/11/24
[ "https://Stackoverflow.com/questions/74554443", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20177593/" ]
74,554,458
<p>I have recently shifted to <code>MongoDB</code> and <code>Mongoose</code> with <code>Node.js</code>. And I am wrapping my head around it all coming from <code>SQL</code>.</p> <p>I have a collection where documents have a similar structure to the following:</p> <pre><code>{ name: String rank: Number } </code>...
[ { "answer_id": 74555216, "author": "alphadmon", "author_id": 972399, "author_profile": "https://Stackoverflow.com/users/972399", "pm_score": 0, "selected": false, "text": "aggregate const duplicates = await collectionName.aggregate([\n {\n $group: {\n _id: \"$name\",\n dups...
2022/11/24
[ "https://Stackoverflow.com/questions/74554458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/972399/" ]
74,554,483
<p>I want to display data without adding lines, but I don't want print to increment to the right. instead of editing an existing one, <a href="https://i.stack.imgur.com/4APiP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4APiP.png" alt="enter image description here" /></a> how to do like docker bui...
[ { "answer_id": 74554510, "author": "sharon", "author_id": 19132574, "author_profile": "https://Stackoverflow.com/users/19132574", "pm_score": 1, "selected": false, "text": "import 'dart:io';\n \nvoid main() {\n var i = 1;\n while (i <= 20) {\n stdout.write(i);\n stdout.write(' ')...
2022/11/24
[ "https://Stackoverflow.com/questions/74554483", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20259643/" ]
74,554,503
<p>Goodnight,</p> <p>I have this code that identifies the ActiveCell and sends the value of that cell to &quot;I6&quot;. With the change of the values ​​that appear in &quot;I6&quot;, the corresponding photographs of the students will change.</p> <pre><code>Private Sub Worksheet_SelectionChange(ByVal Target As Range) ...
[ { "answer_id": 74554510, "author": "sharon", "author_id": 19132574, "author_profile": "https://Stackoverflow.com/users/19132574", "pm_score": 1, "selected": false, "text": "import 'dart:io';\n \nvoid main() {\n var i = 1;\n while (i <= 20) {\n stdout.write(i);\n stdout.write(' ')...
2022/11/24
[ "https://Stackoverflow.com/questions/74554503", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18649290/" ]
74,554,576
<p>I'm trying to hit one api to retrieve a specific string which is then stored in a variable and passed to another http api call but the problem is the api call that needs the argument runs and never sends the correct request. (noobie here btw)</p> <p>here are the two calls, removed some personal info from it but it s...
[ { "answer_id": 74556462, "author": "Eli Porush", "author_id": 14598976, "author_profile": "https://Stackoverflow.com/users/14598976", "pm_score": -1, "selected": false, "text": "this.matchId = (await this.api.getMatches()).items[0].match_id;\n\nthis.latestMap = (await \n this.api.getMat...
2022/11/24
[ "https://Stackoverflow.com/questions/74554576", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14159384/" ]
74,554,590
<pre><code>let ar = ['٠', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', '٩'] let nm = 13 let result = '' console.log(result) </code></pre> <p>how to customize nm variable with index of ar</p> <p>ex: when nm = 1 so the result is index 1 of ar variable = ١</p> <p>And nm = 13 , the result is combined index 1 and 3 of ar varia...
[ { "answer_id": 74556462, "author": "Eli Porush", "author_id": 14598976, "author_profile": "https://Stackoverflow.com/users/14598976", "pm_score": -1, "selected": false, "text": "this.matchId = (await this.api.getMatches()).items[0].match_id;\n\nthis.latestMap = (await \n this.api.getMat...
2022/11/24
[ "https://Stackoverflow.com/questions/74554590", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20490929/" ]
74,554,601
<p>There is a web page that I would like to scrape some information from.</p> <p>I start off with gathering a bunch of HTML Elements.</p> <pre><code>var theSearch = document.getElementsByClassName('theID'); </code></pre> <p>I then take that HTML Collection and turn it into an array.</p> <pre><code>var arr = Array.proto...
[ { "answer_id": 74556462, "author": "Eli Porush", "author_id": 14598976, "author_profile": "https://Stackoverflow.com/users/14598976", "pm_score": -1, "selected": false, "text": "this.matchId = (await this.api.getMatches()).items[0].match_id;\n\nthis.latestMap = (await \n this.api.getMat...
2022/11/24
[ "https://Stackoverflow.com/questions/74554601", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2359796/" ]
74,554,605
<p>Hey im working on a litle project right now and i need to turn a list of json string into List&lt;TaskStruct.cs&gt; I have included all the needed code if something is missing let me know!</p> <p>im getting the json with flurl if that helps</p> <p>The important bits:</p> <p>This should get the list from my api:</p> ...
[ { "answer_id": 74554726, "author": "tymtam", "author_id": 581076, "author_profile": "https://Stackoverflow.com/users/581076", "pm_score": 1, "selected": false, "text": "foreach(var task in tasks) List<TaskStruct> public async Task<List<TaskStruct>> GetTasks()\n{\n var json = await Get...
2022/11/24
[ "https://Stackoverflow.com/questions/74554605", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9897638/" ]
74,554,633
<p>I am trying to aggregate A into a list of dictionaries. Oracle's <code>LISTAGG()</code> works but does run into the 4k max char limit. I tried with <code>XMLAGG</code> but now I'm getting &quot;and quot;&quot; instead of &quot;&quot;. Please suggest the best way of resolving this. <code>XMLCAST</code> ? Will the fin...
[ { "answer_id": 74556098, "author": "astentx", "author_id": 2778710, "author_profile": "https://Stackoverflow.com/users/2778710", "pm_score": 2, "selected": false, "text": "xmlcast XMLQUERY XMLCAST with sample(col, rn) as (\n select column_value, rownum\n from sys.odcivarchar2list(\n ...
2022/11/24
[ "https://Stackoverflow.com/questions/74554633", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12048975/" ]
74,554,644
<p>I'm trying to add a loginLoading observable where any component can subscribe to it to find weather a user is currently logging in or not.</p> <p>In my <code>app.component.html</code>:</p> <pre class="lang-html prettyprint-override"><code>&lt;mat-toolbar [ngClass]=&quot;{'disable-pointer': loginLoading}&quot;&gt; ...
[ { "answer_id": 74556098, "author": "astentx", "author_id": 2778710, "author_profile": "https://Stackoverflow.com/users/2778710", "pm_score": 2, "selected": false, "text": "xmlcast XMLQUERY XMLCAST with sample(col, rn) as (\n select column_value, rownum\n from sys.odcivarchar2list(\n ...
2022/11/24
[ "https://Stackoverflow.com/questions/74554644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16198850/" ]
74,554,660
<p>Suppose I have a table as follows:</p> <pre><code>symbol date price volume GE 2017.01.03 31.82 2,300 GE 2017.01.03 31.69 3,500 GE 2017.01.04 31.92 3,700 GE 2017.01.04 31.8 2,100 GE 2017.01.04 31.75 1,200 GE 2017.01.04 31.76 4,600 MSFT 2017.01.03 63.12 1,800 MSFT 2017.01.03 62...
[ { "answer_id": 74554678, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 2, "selected": false, "text": "SELECT AVG(price) AS avgPrice, SUM(volume) AS sumVol\nFROM yourTable\nWHERE symbol = 'MSFT';\n SELECT symbol...
2022/11/24
[ "https://Stackoverflow.com/questions/74554660", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15526999/" ]
74,554,667
<p>What I want to have is nested data grouped by the day number.</p> <p>This is an example of a array that I want to group. I am using the lodash plugin.</p> <pre><code>[{ &quot;Pnl&quot;: 29.0035635, &quot;date&quot;: &quot;11/14/2022&quot;, &quot;dayNumber&quot;: 1, &quot;translationDayOfWeek&quot;: &quot;Mon...
[ { "answer_id": 74554725, "author": "danh", "author_id": 294949, "author_profile": "https://Stackoverflow.com/users/294949", "pm_score": 0, "selected": false, "text": "reduce() let data = [{\n \"Pnl\": 29.0035635,\n \"date\": \"11/14/2022\",\n \"dayNumber\": 1,\n \"translationDayOfWee...
2022/11/24
[ "https://Stackoverflow.com/questions/74554667", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20374959/" ]
74,554,671
<p>I'm learning and trying to add parameters when calling parameters in functions when getting data from the API, but I'm a bit confused about how I call them in widgets.</p> <pre><code>static Future&lt;Map&lt;String, DataKuliahModel&gt;&gt; getDataKuliah(String smt) async { String url = Constant.baseURL; Strin...
[ { "answer_id": 74554790, "author": "Soliev", "author_id": 19945688, "author_profile": "https://Stackoverflow.com/users/19945688", "pm_score": 2, "selected": true, "text": "import 'package:flutter/material.dart';\n\nclass Services {\n static Future<String> greeting(String name) async {\n...
2022/11/24
[ "https://Stackoverflow.com/questions/74554671", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19132574/" ]
74,554,704
<p>I get these errors when I try to statically link my Go program that uses Gopacket:</p> <pre><code>/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libpcap.a(pcap-dbus.o): in function `dbus_write': (.text+0x103): undefined reference to `dbus_message_demarshal' /usr/bin/ld: (.text+0x119): undefi...
[ { "answer_id": 74554790, "author": "Soliev", "author_id": 19945688, "author_profile": "https://Stackoverflow.com/users/19945688", "pm_score": 2, "selected": true, "text": "import 'package:flutter/material.dart';\n\nclass Services {\n static Future<String> greeting(String name) async {\n...
2022/11/24
[ "https://Stackoverflow.com/questions/74554704", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2233706/" ]
74,554,710
<p>Let's say I have two files <code>video.webm</code> and <code>audio.webm</code>. These two files are supposed to be one file combined together, which will become a 'regular' video + audio file. Is this possible using JavaScript?</p> <p>Example (these are not the actual fetch)</p> <pre class="lang-js prettyprint-overr...
[ { "answer_id": 74554790, "author": "Soliev", "author_id": 19945688, "author_profile": "https://Stackoverflow.com/users/19945688", "pm_score": 2, "selected": true, "text": "import 'package:flutter/material.dart';\n\nclass Services {\n static Future<String> greeting(String name) async {\n...
2022/11/24
[ "https://Stackoverflow.com/questions/74554710", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13538357/" ]
74,554,750
<p>So I have 2 different true or false results that tested the same column. So test 1 has the wrong results and test 2 has the correct results. Is there python code that can compare these two results and obtain a confusion matrix result (true positives, false positives, false negatives, and true negatives)?</p> <p>For ...
[ { "answer_id": 74554790, "author": "Soliev", "author_id": 19945688, "author_profile": "https://Stackoverflow.com/users/19945688", "pm_score": 2, "selected": true, "text": "import 'package:flutter/material.dart';\n\nclass Services {\n static Future<String> greeting(String name) async {\n...
2022/11/24
[ "https://Stackoverflow.com/questions/74554750", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20558532/" ]
74,554,763
<p>It seems that all the examples in the search result are using binding, updating the bound variable oninput. Is this the only approved way other than using external JavaScript? I mean, if I have assigned a <code>@ref</code>, can't I get the current value using the @ref variable, hypothetically like</p> <pre><code>&lt...
[ { "answer_id": 74554790, "author": "Soliev", "author_id": 19945688, "author_profile": "https://Stackoverflow.com/users/19945688", "pm_score": 2, "selected": true, "text": "import 'package:flutter/material.dart';\n\nclass Services {\n static Future<String> greeting(String name) async {\n...
2022/11/24
[ "https://Stackoverflow.com/questions/74554763", "https://Stackoverflow.com", "https://Stackoverflow.com/users/455796/" ]
74,554,765
<p>I have an iterator of characters, and I want to add a newline every N characters:</p> <pre><code>let iter = &quot;abcdefghijklmnopqrstuvwxyz&quot;.chars(); let iter_with_newlines = todo!(); let string: String = iter_with_newlines.collect(); assert_eq(&quot;abcdefghij\nklmnopqrst\nuvwxyz&quot;, string); </code></pre>...
[ { "answer_id": 74554890, "author": "Caesar", "author_id": 401059, "author_profile": "https://Stackoverflow.com/users/401059", "pm_score": 1, "selected": false, "text": "chunks itertools Vec Vec use itertools::Itertools;\niter\n .chunks(3)\n .into_iter()\n .map(|chunk| chunk.coll...
2022/11/24
[ "https://Stackoverflow.com/questions/74554765", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15478835/" ]
74,554,767
<p>I am trying to loop a picture/logo which I want to go into each sheet, which contains a rectangle in the top left corner.</p> <p>Logo successfully fills into the rectangle, however I want to check each sheet if (Rectangle A&quot;) is present and then paste the shape which contains the image</p> <p>I have made an err...
[ { "answer_id": 74554890, "author": "Caesar", "author_id": 401059, "author_profile": "https://Stackoverflow.com/users/401059", "pm_score": 1, "selected": false, "text": "chunks itertools Vec Vec use itertools::Itertools;\niter\n .chunks(3)\n .into_iter()\n .map(|chunk| chunk.coll...
2022/11/24
[ "https://Stackoverflow.com/questions/74554767", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16664439/" ]
74,554,798
<p>I have a sheet to apply Query function to get the respective search data row by row. But I need to apply ArrayFormula to automate this search process. I want to know how should I do.</p> <p><strong>Expected Result</strong></p> <p>Check phrase Result 1 Result 2 Result 3 Result 4 Apple Apple Ice Apple ...
[ { "answer_id": 74554890, "author": "Caesar", "author_id": 401059, "author_profile": "https://Stackoverflow.com/users/401059", "pm_score": 1, "selected": false, "text": "chunks itertools Vec Vec use itertools::Itertools;\niter\n .chunks(3)\n .into_iter()\n .map(|chunk| chunk.coll...
2022/11/24
[ "https://Stackoverflow.com/questions/74554798", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3717079/" ]
74,554,870
<p><strong>I want to close a specified dialog.</strong></p> <p>My case:</p> <ul> <li>Open 2 dialogs (1) and (2), and 2 dialogs are showing at the same time. (2) is overriding (1) and I want to close (1) first.</li> </ul> <p>With Android: I can assign each dialog to a variable and use <code>dialog.dismiss()</code>.</p> ...
[ { "answer_id": 74555144, "author": "manhtuan21", "author_id": 8921450, "author_profile": "https://Stackoverflow.com/users/8921450", "pm_score": 1, "selected": false, "text": "OverLayEntry class _MyHomePageState extends State<MyHomePage> {\n OverlayEntry? _overlayEntry1;\n OverlayEntry?...
2022/11/24
[ "https://Stackoverflow.com/questions/74554870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7592717/" ]
74,554,876
<p>I'm trying to get the image + text in the grid from this picture to be centered, how do i do that?<a href="https://i.stack.imgur.com/qxqcd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qxqcd.png" alt="Gridbox" /></a></p>
[ { "answer_id": 74555144, "author": "manhtuan21", "author_id": 8921450, "author_profile": "https://Stackoverflow.com/users/8921450", "pm_score": 1, "selected": false, "text": "OverLayEntry class _MyHomePageState extends State<MyHomePage> {\n OverlayEntry? _overlayEntry1;\n OverlayEntry?...
2022/11/24
[ "https://Stackoverflow.com/questions/74554876", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20515851/" ]
74,554,897
<p>I need some help with the query below - I am trying to pull information regarding price and multiply with the quantity &amp; insert the sum into the table. So far I have,</p> <pre><code>update passenger_baggage SET passenger_baggage.total_baggage_cost=passenger_baggage.passenger_baggage_quantity*baggage_type.baggag...
[ { "answer_id": 74554920, "author": "Paul T.", "author_id": 7644018, "author_profile": "https://Stackoverflow.com/users/7644018", "pm_score": 3, "selected": true, "text": "FROM UPDATE update passenger_baggage\nINNER JOIN baggage_type\nON passenger_baggage.passenger_baggage_id = baggage_ty...
2022/11/24
[ "https://Stackoverflow.com/questions/74554897", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20586670/" ]
74,554,906
<p>I came across an issue when implementing input type range on my site, i tried to set the background color for the -webkit-slider-thumb to be transparent, but it is not working on the ios device (iphone and ipad) safari, the safari inspector still showing the user agent style instead of the style i already implement ...
[ { "answer_id": 74607678, "author": "Wing Chi", "author_id": 20616686, "author_profile": "https://Stackoverflow.com/users/20616686", "pm_score": 2, "selected": false, "text": "background: transparent; //Assign input range's id into variable\nconst range = document.querySelector('#r-input'...
2022/11/24
[ "https://Stackoverflow.com/questions/74554906", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11920674/" ]
74,554,916
<p>I am trying to learn c, but everytime i run a code that needs user imput i get segfault error My os is arch linux it was compiled with &quot;gcc -o test1 test1.c&quot; Appearently it happens because the program cannot allocate memory, but none of the tutorials i saw did any extra thing.</p> <p>here is the code i was...
[ { "answer_id": 74555042, "author": "Nathan Mills", "author_id": 8890345, "author_profile": "https://Stackoverflow.com/users/8890345", "pm_score": 1, "selected": false, "text": "scanf() age scanf() scanf(\"%d\", &age);\n age age" }, { "answer_id": 74565353, "author": "Ray", ...
2022/11/24
[ "https://Stackoverflow.com/questions/74554916", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20586637/" ]
74,554,925
<p>so i try to render an array of object into react js component like below:</p> <pre><code>import React, { useState } from &quot;react&quot;; import { Route, Link } from &quot;react-router-dom&quot;; import { MdOutlineSpaceDashboard, MdOutlineStorage, MdOutlineFactCheck, MdOutlineCalculate, MdStickyNote2, ...
[ { "answer_id": 74555042, "author": "Nathan Mills", "author_id": 8890345, "author_profile": "https://Stackoverflow.com/users/8890345", "pm_score": 1, "selected": false, "text": "scanf() age scanf() scanf(\"%d\", &age);\n age age" }, { "answer_id": 74565353, "author": "Ray", ...
2022/11/24
[ "https://Stackoverflow.com/questions/74554925", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16136595/" ]
74,554,928
<p>I am working with a data frame of 100m rows, that I would like to partition into 100 Parquet files of 1m rows each. I do not want to partition on any particular column value: I just want 100 chunks of 1m rows.</p> <p>I know that this is possible by adding a &quot;dummy&quot; column, and passing that to <code>partiti...
[ { "answer_id": 74555042, "author": "Nathan Mills", "author_id": 8890345, "author_profile": "https://Stackoverflow.com/users/8890345", "pm_score": 1, "selected": false, "text": "scanf() age scanf() scanf(\"%d\", &age);\n age age" }, { "answer_id": 74565353, "author": "Ray", ...
2022/11/24
[ "https://Stackoverflow.com/questions/74554928", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2954547/" ]
74,554,968
<p>I'm a biologist, with no coding knowledge, trying to create a script that reads every *rprt.txt file in a folder.</p> <p>In line 11 of each file, the fifth word is a number, If that number is 6000&lt;number&lt;14000 then I want to read the fifth word in line 13 and if that number is greater than 600. Copy the file i...
[ { "answer_id": 74555866, "author": "SomethingDark", "author_id": 4158862, "author_profile": "https://Stackoverflow.com/users/4158862", "pm_score": 1, "selected": false, "text": "1 GTR LSS @echo off\nsetlocal enabledelayedexpansion\n\nset \"input_directory=%~dp0\\input\"\nset \"output_dir...
2022/11/24
[ "https://Stackoverflow.com/questions/74554968", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20586533/" ]
74,554,989
<p>Should I do traditional copy paste the header and footer on every page, or is there any way that I can display it using JavaScript on every page!</p> <p>Just expecting that if I would save some kilobytes on my .html files by rendering my header and footer on each page via JavaScript?</p>
[ { "answer_id": 74555304, "author": "DoGzTheFiGhTeR", "author_id": 17655556, "author_profile": "https://Stackoverflow.com/users/17655556", "pm_score": 2, "selected": true, "text": "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <meta http-...
2022/11/24
[ "https://Stackoverflow.com/questions/74554989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20180952/" ]
74,555,003
<p>I have the following dictionary in python:</p> <pre><code>dict={('M1 ', 'V1'): 5, ('M1 ', 'V2'): 5, ('M1 ', 'V3'): 5, ('M1 ', 'V4'): 5, ('M2', 'V1'): 5, ('M2', 'V2'): 5, ('M2', 'V3'): 5, ('M2', 'V4'): 5, ('M3', 'V1'): 5, ('M3', 'V2'): 5, ('M3', 'V3'): 5, ('M3', 'V4'): 5} </code></pre> <p>For contextualiza...
[ { "answer_id": 74555046, "author": "Ahmed Aredah", "author_id": 5800005, "author_profile": "https://Stackoverflow.com/users/5800005", "pm_score": 1, "selected": false, "text": "#let's get a list of your keys first\nl = [] #a placeholder for the dict keys that has 'M1' in source\nfor k ...
2022/11/24
[ "https://Stackoverflow.com/questions/74555003", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10634518/" ]
74,555,008
<p>I'm trying to make the red square on top of the table. I read the articles about Z-index Stacking Context and this stack overflow <a href="https://stackoverflow.com/questions/19850037/override-css-z-index-stacking-context">Override CSS Z-Index Stacking Context</a>. I guess there's a way to solve it using the transfo...
[ { "answer_id": 74555141, "author": "Aaron Magpantay", "author_id": 6553004, "author_profile": "https://Stackoverflow.com/users/6553004", "pm_score": 0, "selected": false, "text": ".top {\n position: relative;\n}\n.bottom {\n position: relative;\n}\ntable,\ntd {\n border: 1px solid #33...
2022/11/24
[ "https://Stackoverflow.com/questions/74555008", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16477447/" ]
74,555,012
<p>I have multiple polygon maps (made up of lines and arcs). I am using turf.lineArc() to calculate points on an arc and to do this the start and end points of the arc need to be <strong>clockwise</strong>, if not they need to be swapped around. I have the following code to swap the start and end points around (but it ...
[ { "answer_id": 74555141, "author": "Aaron Magpantay", "author_id": 6553004, "author_profile": "https://Stackoverflow.com/users/6553004", "pm_score": 0, "selected": false, "text": ".top {\n position: relative;\n}\n.bottom {\n position: relative;\n}\ntable,\ntd {\n border: 1px solid #33...
2022/11/24
[ "https://Stackoverflow.com/questions/74555012", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15502957/" ]
74,555,018
<p>for example i have <code>excel header</code> list like this</p> <pre><code>excel_headers = [ 'Name', 'Age', 'Sex', ] </code></pre> <p>and i have another <code>list</code> to check againt it.</p> <pre><code>headers = {'Name' : 1, 'Age': 2, 'Sex': 3, 'Whatever': 4} </code></pre> <p>i dont care if <code>headers</cod...
[ { "answer_id": 74555141, "author": "Aaron Magpantay", "author_id": 6553004, "author_profile": "https://Stackoverflow.com/users/6553004", "pm_score": 0, "selected": false, "text": ".top {\n position: relative;\n}\n.bottom {\n position: relative;\n}\ntable,\ntd {\n border: 1px solid #33...
2022/11/24
[ "https://Stackoverflow.com/questions/74555018", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11823123/" ]
74,555,028
<p>I am getting this error whenrunning on expo. The uid is in firebase.</p> <p><a href="https://i.stack.imgur.com/tawi7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tawi7.png" alt="enter image description here" /></a></p>
[ { "answer_id": 74555141, "author": "Aaron Magpantay", "author_id": 6553004, "author_profile": "https://Stackoverflow.com/users/6553004", "pm_score": 0, "selected": false, "text": ".top {\n position: relative;\n}\n.bottom {\n position: relative;\n}\ntable,\ntd {\n border: 1px solid #33...
2022/11/24
[ "https://Stackoverflow.com/questions/74555028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19991906/" ]
74,555,059
<p>How can I tell the compiler that <code>U</code> is equivalent to either <code>std::vector&lt;T&gt;</code> or <code>T</code>?</p> <pre><code>template&lt;typename T, typename U&gt; std::vector&lt;T&gt; foo(T t, U){return std::vector&lt;T&gt;{};} </code></pre>
[ { "answer_id": 74555193, "author": "John", "author_id": 13611002, "author_profile": "https://Stackoverflow.com/users/13611002", "pm_score": 0, "selected": false, "text": "std::enable_if #include <iostream>\n#include <vector>\n \ntemplate<typename T, typename U, typename = typename std::e...
2022/11/24
[ "https://Stackoverflow.com/questions/74555059", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13611002/" ]
74,555,061
<p>I have this controller</p> <pre><code>&lt;?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Category; class CategoriesController extends Controller { public function index() { $categories = Category::all(); return view('home', ['categories'=&gt; $ca...
[ { "answer_id": 74555193, "author": "John", "author_id": 13611002, "author_profile": "https://Stackoverflow.com/users/13611002", "pm_score": 0, "selected": false, "text": "std::enable_if #include <iostream>\n#include <vector>\n \ntemplate<typename T, typename U, typename = typename std::e...
2022/11/24
[ "https://Stackoverflow.com/questions/74555061", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20586781/" ]
74,555,081
<p>I am from Javascript developer and start developing on flutter for company use. I currently facing an issue about setting profile value to gui.</p> <pre><code>//profile.dart import 'package:flutter/material.dart'; import 'package:profile/profile.dart'; import 'package:cs_app/models/user.dart'; import 'package:cs_app...
[ { "answer_id": 74555193, "author": "John", "author_id": 13611002, "author_profile": "https://Stackoverflow.com/users/13611002", "pm_score": 0, "selected": false, "text": "std::enable_if #include <iostream>\n#include <vector>\n \ntemplate<typename T, typename U, typename = typename std::e...
2022/11/24
[ "https://Stackoverflow.com/questions/74555081", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13127102/" ]
74,555,095
<p>I am working on a to-do list application for a project. I would like to change the value of a string in an observableCollection. I am able to change the string in the same window but I would like to change the value from a textbox in a secondary window.</p> <p>So what I tried to do was is change a string in the firs...
[ { "answer_id": 74555193, "author": "John", "author_id": 13611002, "author_profile": "https://Stackoverflow.com/users/13611002", "pm_score": 0, "selected": false, "text": "std::enable_if #include <iostream>\n#include <vector>\n \ntemplate<typename T, typename U, typename = typename std::e...
2022/11/24
[ "https://Stackoverflow.com/questions/74555095", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18482853/" ]
74,555,146
<p>I have this list:</p> <pre><code>t=['a','b','c'] </code></pre> <p>and want to create the output such as:</p> <pre><code>['a'] ['a','b'] ['a','b','c'] </code></pre> <p>I am not sure how to adjust this loop:</p> <pre><code>for i in t: print(i) </code></pre> <p>I am not sure how to write the loop to create this appen...
[ { "answer_id": 74555193, "author": "John", "author_id": 13611002, "author_profile": "https://Stackoverflow.com/users/13611002", "pm_score": 0, "selected": false, "text": "std::enable_if #include <iostream>\n#include <vector>\n \ntemplate<typename T, typename U, typename = typename std::e...
2022/11/24
[ "https://Stackoverflow.com/questions/74555146", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19321677/" ]
74,555,149
<p>I have two nested array of objects, how to compare two array of objects by</p> <p><code>id</code> from arrobj1 and <code>assignId</code> from arrobj2 using javascript</p> <p>So, I would to know how to compare array of objects by id and assignId and return array of objects using javascript</p> <pre><code> Tried cons...
[ { "answer_id": 74555166, "author": "Zac Anger", "author_id": 5774952, "author_profile": "https://Stackoverflow.com/users/5774952", "pm_score": 1, "selected": false, "text": "return const result = arrobj1.filter(arr1 =>\n arrobj2.find(arr2 => arr2.assignId === arr1.id)\n)\n// or\nconst r...
2022/11/24
[ "https://Stackoverflow.com/questions/74555149", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18567253/" ]
74,555,158
<p>I'm trying to check if user input is one of the letters in the chosen word by the CPU. Let me know if this is not possible the way I'm trying to do it, thanks.</p> <pre class="lang-py prettyprint-override"><code>import random test_list = [ 'yes', 'no'] # guessing list print(&quot;Original list is : &quot; + str(test...
[ { "answer_id": 74555224, "author": "Dash", "author_id": 11542834, "author_profile": "https://Stackoverflow.com/users/11542834", "pm_score": 0, "selected": false, "text": "letter in userinput userinput letter if letter in cpu_choice:" }, { "answer_id": 74555273, "author": "Met...
2022/11/24
[ "https://Stackoverflow.com/questions/74555158", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20150432/" ]
74,555,171
<p>Suppose I have a class called <code>Circuit</code>, and a dictionary containing data about each circuit component:</p> <pre class="lang-py prettyprint-override"><code>components = { 'V1': [ ... ], 'L1': [ ... ], 'R1': [ ... ], 'R2': [ ... ], ... } </code></pre> <p>I want to define child objec...
[ { "answer_id": 74555241, "author": "ishao", "author_id": 18925629, "author_profile": "https://Stackoverflow.com/users/18925629", "pm_score": 0, "selected": false, "text": "class Component:\n V1 = 0\n ... \n\nCircuit = Component() \nCircuit.V1 = 2\n" }, { "answer_id": 745552...
2022/11/24
[ "https://Stackoverflow.com/questions/74555171", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14095457/" ]
74,555,185
<p>I have some data that I would like to split into <strong>four groups</strong> based upon particular points in time - the points in time being given by particular dates.</p> <p>The data I have is this (assume that <code>df</code> has already been created):</p> <pre><code>df[&quot;date&quot;] = pd.to_datetime(df[&quot...
[ { "answer_id": 74561736, "author": "Vini", "author_id": 6927944, "author_profile": "https://Stackoverflow.com/users/6927944", "pm_score": 2, "selected": false, "text": "pd.cut # toy data\ndf = pd.DataFrame(pd.date_range('2020-01-01', '2022-01-01'), columns = ['date'])\n\n date\n...
2022/11/24
[ "https://Stackoverflow.com/questions/74555185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18937753/" ]
74,555,218
<p>This is my code:</p> <pre><code>render() { return ( &lt;div className='btndiv'&gt; &lt;button className='btn'&gt;Hide&lt;/button&gt; &lt;/div&gt; ); } </code></pre> <p>When I click the button I want the class of the div to change from .btn.div to .btn divhidden, which basically dissapear...
[ { "answer_id": 74555248, "author": "rb612", "author_id": 3813411, "author_profile": "https://Stackoverflow.com/users/3813411", "pm_score": 2, "selected": false, "text": "export default function App() {\n const [isVisible, setIsVisible] = useState(true);\n\n const handleClick = () => se...
2022/11/24
[ "https://Stackoverflow.com/questions/74555218", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19273829/" ]
74,555,254
<p>I currently have a single page in my React app that renders all the components on one page. I would like to have a button open a new component that takes up the whole page, almost like opening a new site.</p> <p>Is there a way I could do this? Below is my code.</p> <p><strong>App.js:</strong></p> <pre><code>import {...
[ { "answer_id": 74555467, "author": "Ali Nauman", "author_id": 9917250, "author_profile": "https://Stackoverflow.com/users/9917250", "pm_score": 0, "selected": false, "text": "Router react-router-dom App function App() {\n\n return (\n // Add an import for this\n <BrowserRouter>\n ...
2022/11/24
[ "https://Stackoverflow.com/questions/74555254", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20422283/" ]
74,555,272
<p>I'm creating a flashcard game to ask CompSci questions.</p> <p>I'm trying to retrieve a random &quot;CardFront&quot; which acts as a varchar stored in an SQLite3 DB table, and output that result to a messagebox to &quot;Prompt&quot; the user with the question.</p> <p>Only problem I can't seem to figure out is why it...
[ { "answer_id": 74555306, "author": "Gwendal Delisle Arnold", "author_id": 6327854, "author_profile": "https://Stackoverflow.com/users/6327854", "pm_score": -1, "selected": true, "text": "__repr__ from tkinter import *\nimport sqlite3\nfrom tkinter import messagebox\n\ndef retrieve_random...
2022/11/24
[ "https://Stackoverflow.com/questions/74555272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20543836/" ]
74,555,289
<p>This is my Entity Role class</p> <pre><code>@Entity @AllArgsConstructor @NoArgsConstructor @Data public class Role implements GrantedAuthority { @Id @GeneratedValue private Integer id; @Column() private RoleName roleName; @Override public String getAuthority() { return roleName....
[ { "answer_id": 74555306, "author": "Gwendal Delisle Arnold", "author_id": 6327854, "author_profile": "https://Stackoverflow.com/users/6327854", "pm_score": -1, "selected": true, "text": "__repr__ from tkinter import *\nimport sqlite3\nfrom tkinter import messagebox\n\ndef retrieve_random...
2022/11/24
[ "https://Stackoverflow.com/questions/74555289", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18736248/" ]
74,555,314
<p>How can I average a matrix every 24 values? And how can I find the maximum and minimum value for every 24 numbers and compute the maximum minus the minimum?</p> <pre><code>data &lt;- as.matrix(rnorm(240,8,6)) </code></pre>
[ { "answer_id": 74555436, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 1, "selected": false, "text": "set.seed(13)\n\ndata2 <- matrix(data, nrow = 24)\n\ncolMeans(data2)\n# [1] 9.253395 5.994996 8.587498 6.640410 8.4...
2022/11/24
[ "https://Stackoverflow.com/questions/74555314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17418925/" ]
74,555,343
<p>I am using Azure Data Factory script to create parameterized SQL query. I understand that the Index specifies the position in which the parameter's value should go in the SQL command. However, I don't know how to handle the situation where pipeline().parameters are used multiple times in the SQL query. In my example...
[ { "answer_id": 74555436, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 1, "selected": false, "text": "set.seed(13)\n\ndata2 <- matrix(data, nrow = 24)\n\ncolMeans(data2)\n# [1] 9.253395 5.994996 8.587498 6.640410 8.4...
2022/11/24
[ "https://Stackoverflow.com/questions/74555343", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7586562/" ]
74,555,353
<p>Why is the label not showing while using datalist in html if anyone have any idea of why this is not running then please help me..</p> <p>i tried the same code in another new file then it worked perfectly but when run in this it won't show the label. p.s. i am using brave browser but it won't show in other browsers ...
[ { "answer_id": 74555436, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 1, "selected": false, "text": "set.seed(13)\n\ndata2 <- matrix(data, nrow = 24)\n\ncolMeans(data2)\n# [1] 9.253395 5.994996 8.587498 6.640410 8.4...
2022/11/24
[ "https://Stackoverflow.com/questions/74555353", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20314680/" ]
74,555,443
<p>I have two data frames that I want to merge on a same column name but the values can have different variations of a values.</p> <p>Examples. Variations of a value :</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Variations</th> </tr> </thead> <tbody> <tr> <td>USA</td> </tr> <tr> <td>US<...
[ { "answer_id": 74555959, "author": "PTQuoc", "author_id": 11850322, "author_profile": "https://Stackoverflow.com/users/11850322", "pm_score": 1, "selected": false, "text": "reftable df = pd.DataFrame({'name':['USA', 'US', 'United States', 'FR', 'France'],\n 'val':[1,2,3...
2022/11/24
[ "https://Stackoverflow.com/questions/74555443", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20587008/" ]
74,555,451
<p>I'm looking at the <a href="https://docs.uniswap.org/concepts/protocol/oracle#tick-accumulator" rel="nofollow noreferrer">uniswap docs</a> which states this example:</p> <blockquote> <p>An example of finding the price of WETH in a WETH / USDC pool, where WETH is token0 and USDC is token1:</p> <p>You have an oracle r...
[ { "answer_id": 74555612, "author": "Yilmaz", "author_id": 10262805, "author_profile": "https://Stackoverflow.com/users/10262805", "pm_score": 1, "selected": false, "text": "TIME WEIGHTED AVERAGE PRICE TWAP consult function consult(address pool, uint32 secondsAgo)\n internal\n ...
2022/11/24
[ "https://Stackoverflow.com/questions/74555451", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19361853/" ]
74,555,461
<p>I'm trying to use @include. But i got this error : <code>Undefined variable: bookOther (View: /home/infinitr/pinus.infinitree.eco/modules/Tour/Views/frontend/guest_list.blade.php)</code></p> <p>How can i fix it?</p> <p>The Controller :</p> <pre><code>public function guests_list($id){ $booking = Booking::...
[ { "answer_id": 74555951, "author": "Muh Raswan Sualdi", "author_id": 20551663, "author_profile": "https://Stackoverflow.com/users/20551663", "pm_score": -1, "selected": false, "text": "return view('Tour::frontend.guest_list', ['booking'=>$booking, 'bookOther'=>$bookOther, 'layout'=>'gues...
2022/11/24
[ "https://Stackoverflow.com/questions/74555461", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18460864/" ]
74,555,485
<p>I'm writing an android app that is designed for multiple phones to be able to interface with a google sheet at the same time. but I'm getting this error on one of my test phones:</p> <pre><code>FATAL EXCEPTION: DefaultDispatcher-worker-2 Process: com.example.frcscout22sheets, PID: 9729 java.lang.IllegalArgumentExcep...
[ { "answer_id": 74555951, "author": "Muh Raswan Sualdi", "author_id": 20551663, "author_profile": "https://Stackoverflow.com/users/20551663", "pm_score": -1, "selected": false, "text": "return view('Tour::frontend.guest_list', ['booking'=>$booking, 'bookOther'=>$bookOther, 'layout'=>'gues...
2022/11/24
[ "https://Stackoverflow.com/questions/74555485", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17792511/" ]
74,555,512
<p>We are using drools rule engine 5x We have a rule configured like</p> <p>Fact {A,B,C}, Action [X] Fact {A,B}, Action [Z]</p> <p>When I pass {A,B,C} I am getting both actions [X],[Z]. Is it expected behaviour from drools engine? Can it be possible to define C as optional fact, in which case, can this be possible?</p>...
[ { "answer_id": 74555951, "author": "Muh Raswan Sualdi", "author_id": 20551663, "author_profile": "https://Stackoverflow.com/users/20551663", "pm_score": -1, "selected": false, "text": "return view('Tour::frontend.guest_list', ['booking'=>$booking, 'bookOther'=>$bookOther, 'layout'=>'gues...
2022/11/24
[ "https://Stackoverflow.com/questions/74555512", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8451184/" ]
74,555,529
<p>I have a problem, when I look for the id of an xpath it changes every time I enter the web</p> <p>how can i use selenium webdriver python browser.find_element(By.ID,) if the id changes every time I consult it</p> <p>first</p> <pre><code>&lt;span data-dojo-attach-point=&quot;containerNode,focusNode&quot; class=&quot...
[ { "answer_id": 74555951, "author": "Muh Raswan Sualdi", "author_id": 20551663, "author_profile": "https://Stackoverflow.com/users/20551663", "pm_score": -1, "selected": false, "text": "return view('Tour::frontend.guest_list', ['booking'=>$booking, 'bookOther'=>$bookOther, 'layout'=>'gues...
2022/11/24
[ "https://Stackoverflow.com/questions/74555529", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8748656/" ]
74,555,545
<p>There is a part of my app where I send an email using a button but for some reason the Intent doesn't work and I don't understand why.</p> <pre><code>binding.IvMail.setOnClickListener { val email = Intent(Intent.ACTION_SEND) .setType(&quot;text/plain&quot;) .putExtra(Intent.EXTRA_SUBJECT, getStri...
[ { "answer_id": 74555951, "author": "Muh Raswan Sualdi", "author_id": 20551663, "author_profile": "https://Stackoverflow.com/users/20551663", "pm_score": -1, "selected": false, "text": "return view('Tour::frontend.guest_list', ['booking'=>$booking, 'bookOther'=>$bookOther, 'layout'=>'gues...
2022/11/24
[ "https://Stackoverflow.com/questions/74555545", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20587187/" ]
74,555,575
<p>currently i update my node and npm version for stencil bigcommerce when i make bundle for my old project i'm facing this type of problem. can anyone solve my this issue?</p> <h1>Error: No input specified: provide a file name or a source string to process</h1> <p>---------WARNING--------- We are currently in the proc...
[ { "answer_id": 74555951, "author": "Muh Raswan Sualdi", "author_id": 20551663, "author_profile": "https://Stackoverflow.com/users/20551663", "pm_score": -1, "selected": false, "text": "return view('Tour::frontend.guest_list', ['booking'=>$booking, 'bookOther'=>$bookOther, 'layout'=>'gues...
2022/11/24
[ "https://Stackoverflow.com/questions/74555575", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20546671/" ]
74,555,577
<p>My JavaScript files don't seem like it is linked to my PHP file.</p> <p>I am building a WordPress website. I have header.php and calling this header.php file by including</p> in my main.php file. I added JS path in the head tag in header.php, but it doesn't seem like it's working(the JS files I added are for a caro...
[ { "answer_id": 74555951, "author": "Muh Raswan Sualdi", "author_id": 20551663, "author_profile": "https://Stackoverflow.com/users/20551663", "pm_score": -1, "selected": false, "text": "return view('Tour::frontend.guest_list', ['booking'=>$booking, 'bookOther'=>$bookOther, 'layout'=>'gues...
2022/11/24
[ "https://Stackoverflow.com/questions/74555577", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20113706/" ]
74,555,592
<p>If I have:</p> <p>-- public<br /> -- csv<br /> exampleCSV.csv</p> <p>i.e. /public/csv/exampleCSV.csv</p> <p>and then:</p> <pre><code>fetch('csv/exampleCSV.csv') .then(response =&gt; { console.log(response); response.blob().then(blob =&gt; { let url = window.URL.createObjectURL(blob); ...
[ { "answer_id": 74555951, "author": "Muh Raswan Sualdi", "author_id": 20551663, "author_profile": "https://Stackoverflow.com/users/20551663", "pm_score": -1, "selected": false, "text": "return view('Tour::frontend.guest_list', ['booking'=>$booking, 'bookOther'=>$bookOther, 'layout'=>'gues...
2022/11/24
[ "https://Stackoverflow.com/questions/74555592", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13696540/" ]
74,555,621
<p>I have a string that has characters and numbers string is like</p> <pre><code>iPhone8s </code></pre> <p>i want the output to be <code>iPhone 8s</code> I have written this code</p> <pre><code>s = 'iPhone8s' re.sub('(\d+(\.\d+)?)', r' \1 ', s).strip() </code></pre> <p>but it outputs <code>iPhone 8 s</code> how can i m...
[ { "answer_id": 74555677, "author": "KapBytes Technologies", "author_id": 20518474, "author_profile": "https://Stackoverflow.com/users/20518474", "pm_score": 0, "selected": false, "text": "result='iphone8s'.lower().replace('iphone','iPhone ')\n#iPhone 8s\n" }, { "answer_id": 74556...
2022/11/24
[ "https://Stackoverflow.com/questions/74555621", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10159065/" ]
74,555,640
<p>I have this button whenever I click this button, I want to append new data to a struct on another viewcontroller and show it on tableview and when I go back to add more data the prev data wont gone. In my case, I can only add 1 data, after I go back and add more data, the previous one is gone.</p> <p>ViewController ...
[ { "answer_id": 74555677, "author": "KapBytes Technologies", "author_id": 20518474, "author_profile": "https://Stackoverflow.com/users/20518474", "pm_score": 0, "selected": false, "text": "result='iphone8s'.lower().replace('iphone','iPhone ')\n#iPhone 8s\n" }, { "answer_id": 74556...
2022/11/24
[ "https://Stackoverflow.com/questions/74555640", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20587227/" ]
74,555,652
<p>I have a dataframe</p> <pre><code>city = pd.DataFrame({'id': [1,2,3,4], 'city': ['NRTH CAROLINA','NEW WST AMSTERDAM','EAST TOKYO','LONDON STH']}) </code></pre> <p>How can I change NRTH to NORTH, WST to WEST, and STH to SOUTH, so the output will be like this</p> <pre><code>id city 1 NORTH...
[ { "answer_id": 74555677, "author": "KapBytes Technologies", "author_id": 20518474, "author_profile": "https://Stackoverflow.com/users/20518474", "pm_score": 0, "selected": false, "text": "result='iphone8s'.lower().replace('iphone','iPhone ')\n#iPhone 8s\n" }, { "answer_id": 74556...
2022/11/24
[ "https://Stackoverflow.com/questions/74555652", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20341621/" ]
74,555,691
<p>We have variable group in Pipeline and it has below input</p> <blockquote> <p>Input: Instance1,Instance2,Inastance3</p> <p>Expected Output: Instance1 Instance2 Inastance3</p> </blockquote> <p>We tried below YAML Code</p> <pre><code>trigger: - main pool: vmImage: ubuntu-latest variables: - group: &quot;DevInstance...
[ { "answer_id": 74556339, "author": "Dilly B", "author_id": 2670623, "author_profile": "https://Stackoverflow.com/users/2670623", "pm_score": 0, "selected": false, "text": "- powershell: |\n \n $results = \"$(InstancesList)\".Split(\" \")\n $result[0]\n $result[1]\n $result[2]\n...
2022/11/24
[ "https://Stackoverflow.com/questions/74555691", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10867777/" ]
74,555,698
<p>I'm using this code to get featured image from post. This is my whole code every thing else is working rather than the image i'm trying to display featured image also the posttype i'm using is custom post type. Can anyone tell what I'm doing wrong?</p> <pre><code> add_shortcode('get-video-post-type','videos_cpt')...
[ { "answer_id": 74556339, "author": "Dilly B", "author_id": 2670623, "author_profile": "https://Stackoverflow.com/users/2670623", "pm_score": 0, "selected": false, "text": "- powershell: |\n \n $results = \"$(InstancesList)\".Split(\" \")\n $result[0]\n $result[1]\n $result[2]\n...
2022/11/24
[ "https://Stackoverflow.com/questions/74555698", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20517109/" ]
74,555,717
<p>How do you pick a word from a string or scanner input, say for instance a search engine search?</p> <p>I looked up indexOf() for a string but I’m not finding how to make a public void word class from finding a word from a line of text. Hoping every word can be a variable.</p>
[ { "answer_id": 74556339, "author": "Dilly B", "author_id": 2670623, "author_profile": "https://Stackoverflow.com/users/2670623", "pm_score": 0, "selected": false, "text": "- powershell: |\n \n $results = \"$(InstancesList)\".Split(\" \")\n $result[0]\n $result[1]\n $result[2]\n...
2022/11/24
[ "https://Stackoverflow.com/questions/74555717", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20587317/" ]
74,555,718
<p>hey guys I need some help here</p> <p>the goal: take input as long is inputs != 999, print greatest sum of 3 consecutive numbers (999 excluded). if less than 3 inputs entered, print all inputs' sum.</p> <p>can't use arrays</p> <p>for example</p> <p><code>7 2 **9 8 7** 6 7 5 9 999 </code></p> <p>The max sum is 24</p>...
[ { "answer_id": 74556339, "author": "Dilly B", "author_id": 2670623, "author_profile": "https://Stackoverflow.com/users/2670623", "pm_score": 0, "selected": false, "text": "- powershell: |\n \n $results = \"$(InstancesList)\".Split(\" \")\n $result[0]\n $result[1]\n $result[2]\n...
2022/11/24
[ "https://Stackoverflow.com/questions/74555718", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20587243/" ]
74,555,728
<p>In Java, we can use the <code>instance initialization block</code> to keep track of count of any class objects.</p> <p>So, in dart how can we do that for a class with <code>const Constructor</code>?</p> <p>I know that for a non-constant Constructor, we can achieve that by creating a <code>static variable</code> the...
[ { "answer_id": 74556339, "author": "Dilly B", "author_id": 2670623, "author_profile": "https://Stackoverflow.com/users/2670623", "pm_score": 0, "selected": false, "text": "- powershell: |\n \n $results = \"$(InstancesList)\".Split(\" \")\n $result[0]\n $result[1]\n $result[2]\n...
2022/11/24
[ "https://Stackoverflow.com/questions/74555728", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17031796/" ]
74,555,777
<p>I am a newbie trying to understand list comprehensions in python. My question is different from another posts.</p> <p>I was asked to write list comprehension code to get the following output:</p> <p>All odd numbers from 1 to 30 (both inclusive). Those that are multiples of 5 will be marked with an 'x'.</p> <blockquo...
[ { "answer_id": 74555811, "author": "DYZ", "author_id": 4492932, "author_profile": "https://Stackoverflow.com/users/4492932", "pm_score": 2, "selected": false, "text": "[(n if n%5 else f'{n}x') for n in range(1,31) if n%2]\n" }, { "answer_id": 74555889, "author": "Simon", ...
2022/11/24
[ "https://Stackoverflow.com/questions/74555777", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4728238/" ]
74,555,787
<p>I have a tablix form that has a list of equipment whose names contain a specific prefix. There are, for example, chlorine filters from 1 to 10 with name like 'Filter #1 cl., Filter #2 cl. and there are cement filters from 1 to 8 with names like 'Filter #1 cmt' etc.</p> <p>I need the equipment list to be sorted by eq...
[ { "answer_id": 74556000, "author": "Olsgaard", "author_id": 11148296, "author_profile": "https://Stackoverflow.com/users/11148296", "pm_score": 1, "selected": false, "text": "SELECT\n RIGHT(filter_column, Charindex(' ', Reverse(filter_column)) - 1) AS filter_name\nFROM filters_table\n" ...
2022/11/24
[ "https://Stackoverflow.com/questions/74555787", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20587361/" ]
74,555,791
<p>According the <a href="https://doc.rust-lang.org/std/vec/struct.Vec.html" rel="nofollow noreferrer">documentation for <code>std::Vec</code></a>, calling <code>shrink_to_fit()</code> will cause the <code>Vec</code>'s capacity to &quot;drop down as close as possible to the length but the allocator may still inform the...
[ { "answer_id": 74556233, "author": "Kevin Reid", "author_id": 99692, "author_profile": "https://Stackoverflow.com/users/99692", "pm_score": 3, "selected": true, "text": "Vec<T> Box<[T]> Vec::into_boxed_slice()" }, { "answer_id": 74557112, "author": "tedtanner", "author_id...
2022/11/24
[ "https://Stackoverflow.com/questions/74555791", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8297052/" ]
74,555,803
<p>I am trying to add a click event handler to a button that will cause it to change the CSS display property of a sign-in form to 'none'.</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-ove...
[ { "answer_id": 74555837, "author": "Zac Anger", "author_id": 5774952, "author_profile": "https://Stackoverflow.com/users/5774952", "pm_score": 3, "selected": true, "text": "document.getElementById(\"initSignUpBtn\") querySelector document.querySelector(\".btn.signup-btn\") document.query...
2022/11/24
[ "https://Stackoverflow.com/questions/74555803", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20587367/" ]
74,555,826
<p>Hello i am new to programming and i have a problem on system in which i am trying to make a Booking system.</p> <p>I want to remove a chunk of objects with same id from an array while clicking a btn. Here is an array..</p> <pre><code>array = [ { id: 1, futsal: &quot;4&quot;, time: &quot;06:00 - 09:00&quot;, … }, ​ {...
[ { "answer_id": 74555882, "author": "ray", "author_id": 636077, "author_profile": "https://Stackoverflow.com/users/636077", "pm_score": -1, "selected": false, "text": "const array = [\n { id: 1, futsal: \"4\", time: \"06:00 - 09:00\" },\n { id: 1, futsal: \"4\", time: \"06:00 - 09:00\" ...
2022/11/24
[ "https://Stackoverflow.com/questions/74555826", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17218747/" ]
74,555,873
<p>I have two collections <strong>Post</strong> (belongs to posts database) and <strong>User</strong> (belongs to account database). My requirements to do join on these two collection. But I am unable to reproduce my requirements.</p> <p>I am expecting joins on two collections.</p>
[ { "answer_id": 74555882, "author": "ray", "author_id": 636077, "author_profile": "https://Stackoverflow.com/users/636077", "pm_score": -1, "selected": false, "text": "const array = [\n { id: 1, futsal: \"4\", time: \"06:00 - 09:00\" },\n { id: 1, futsal: \"4\", time: \"06:00 - 09:00\" ...
2022/11/24
[ "https://Stackoverflow.com/questions/74555873", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20587422/" ]
74,555,881
<p>I added a mesh to a <code>pyvista.Plotter()</code> with</p> <pre class="lang-py prettyprint-override"><code>p.add_mesh(mesh, show_edges=True, color='linen', pbr=True, metallic=0.8, roughness=0.1, diffuse=1) </code></pre> <p>but it displays with a discontinuity (where the mesh started and ended) <a href="https://i.st...
[ { "answer_id": 74566839, "author": "Andras Deak -- Слава Україні", "author_id": 5067311, "author_profile": "https://Stackoverflow.com/users/5067311", "pm_score": 1, "selected": false, "text": "phi = 0 +x phi = 2*pi +x mesh.extract_feature_edges(boundary_edges=True, non_manifold_edges=Tru...
2022/11/24
[ "https://Stackoverflow.com/questions/74555881", "https://Stackoverflow.com", "https://Stackoverflow.com/users/258279/" ]
74,555,886
<p>I'm writing something that will create a .csv file in memory and email it as an attachment. The code below successfully emails a .csv file, but it is empty. I'm sure I'm missing something simple...</p> <pre><code> MemoryStream memoryStream = new MemoryStream(); TextWriter tw = new StreamWriter(memoryS...
[ { "answer_id": 74558841, "author": "Yash Gupta", "author_id": 5498542, "author_profile": "https://Stackoverflow.com/users/5498542", "pm_score": 2, "selected": false, "text": " tw.WriteLine(\"test,hello\");\n tw.WriteLine(\"1234,543\");\n MemoryStream tw.Flush();\n MemoryStream Memo...
2022/11/24
[ "https://Stackoverflow.com/questions/74555886", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3965828/" ]
74,555,902
<p>I have a nested object which can be of any depth</p> <pre><code>[ { &quot;id&quot;: &quot;3&quot;, &quot;user_id&quot;: &quot;1479&quot;, &quot;folder_id&quot;: &quot;2&quot;, &quot;is_folder&quot;: true, &quot;folder_name&quot;: &quot;folder 3&quot;, &quot;unique_...
[ { "answer_id": 74558841, "author": "Yash Gupta", "author_id": 5498542, "author_profile": "https://Stackoverflow.com/users/5498542", "pm_score": 2, "selected": false, "text": " tw.WriteLine(\"test,hello\");\n tw.WriteLine(\"1234,543\");\n MemoryStream tw.Flush();\n MemoryStream Memo...
2022/11/24
[ "https://Stackoverflow.com/questions/74555902", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11998509/" ]
74,555,904
<p>This function is not working properly and is showing this error:</p> <p><code>Uncaught TypeError: Cannot read properties of undefined (reading 'map')</code></p> <pre><code>{users.map((users) =&gt; { return ( &lt;div&gt; &lt;h2&gt;Name : {users.name}&lt;/h2&gt; &lt;p&gt;Age : {users.age}&lt;/p&gt; ...
[ { "answer_id": 74555934, "author": "Shilpe Saxena", "author_id": 13265113, "author_profile": "https://Stackoverflow.com/users/13265113", "pm_score": -1, "selected": false, "text": "key={users.id}" }, { "answer_id": 74555946, "author": "Jay Vaghasiya", "author_id": 1056208...
2022/11/24
[ "https://Stackoverflow.com/questions/74555904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15998452/" ]
74,555,956
<p>I'm getting an error for a piece of python code I wrote that shouldn't</p> <p>This is the function I wrote and the input I gave it.</p> <pre><code>#turn list of ints into set, remove val from set, and return the length of the set without val. def foo(nums,val): sett = set(nums) sett_without_val = sett.remove...
[ { "answer_id": 74555934, "author": "Shilpe Saxena", "author_id": 13265113, "author_profile": "https://Stackoverflow.com/users/13265113", "pm_score": -1, "selected": false, "text": "key={users.id}" }, { "answer_id": 74555946, "author": "Jay Vaghasiya", "author_id": 1056208...
2022/11/24
[ "https://Stackoverflow.com/questions/74555956", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20488228/" ]
74,555,961
<p>Hello my currenct code is doing sum on numbers after + including 10 I need it only after, now is doing like 10 + 10 = 20 then 20 +11 = 31 and etc which is wrong, when I change my i with 11 it adds 1 more interaction to the correct and makes the number more than 1000.</p> <pre><code> `` ` int i = 10; ...
[ { "answer_id": 74555934, "author": "Shilpe Saxena", "author_id": 13265113, "author_profile": "https://Stackoverflow.com/users/13265113", "pm_score": -1, "selected": false, "text": "key={users.id}" }, { "answer_id": 74555946, "author": "Jay Vaghasiya", "author_id": 1056208...
2022/11/24
[ "https://Stackoverflow.com/questions/74555961", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20587541/" ]