qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,627,930
<p>I'm trying to create a forecast which takes the previous day's 'Forecast' total and adds it to the current day's 'Appt'. Something which is straightforward in Excel but I'm struggling in pandas. At the moment all I can get in pandas using .loc is this:</p> <pre><code>pd.DataFrame({'Date': ['2022-12-01', '2022-12-0...
[ { "answer_id": 74628163, "author": "harre", "author_id": 4786466, "author_profile": "https://Stackoverflow.com/users/4786466", "pm_score": 2, "selected": true, "text": "lubridate dplyr group_split library(dplyr)\nlibrary(lubridate)\n\ndf |>\n mutate(across(everything(), ymd)) |>\n grou...
2022/11/30
[ "https://Stackoverflow.com/questions/74627930", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19996578/" ]
74,627,964
<p>I'm receiving an error while using the foreach loop in the blade.php. I have tried many things but everytime i recevie the same error while using foreachloop</p> <p>Here is my code Post.blade.php</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt; &lt;head&gt; &lt;meta charset=&quot;UTF-8&quot;...
[ { "answer_id": 74628158, "author": "Satyandra Shakya", "author_id": 12953436, "author_profile": "https://Stackoverflow.com/users/12953436", "pm_score": 3, "selected": true, "text": "public function abc(){\n $blabla = [['name' => 'abc', 'company' => 'abc company']];\n return $blabla...
2022/11/30
[ "https://Stackoverflow.com/questions/74627964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20645380/" ]
74,628,003
<p>I'm creating an application where it simulates a football album for each user, the logic is that each user can open packages and receive players that in the future can be associated with teams that the user himself created. To save all the players that a user can receive I created a Player model ( many-to-many relat...
[ { "answer_id": 74628204, "author": "Sezer BOZKIR", "author_id": 5942941, "author_profile": "https://Stackoverflow.com/users/5942941", "pm_score": -1, "selected": false, "text": "from django.db import models\n\nclass Publication(models.Model):\n title = models.CharField(max_length=30)\...
2022/11/30
[ "https://Stackoverflow.com/questions/74628003", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16401148/" ]
74,628,024
<p>i'm creating a function like this:</p> <pre><code>fun someFunction( callBack: () -&gt; Unit ){ callback.invoke() } </code></pre> <p>when i will use the function:</p> <pre><code>someFunction( callBack = callBackFun() ) </code></pre> <p>So the question is, since i don't know, how many parameter callBackFu...
[ { "answer_id": 74628208, "author": "Javlon", "author_id": 12153321, "author_profile": "https://Stackoverflow.com/users/12153321", "pm_score": 0, "selected": false, "text": "vararg List fun someFunction(\n callBack: (args: List<Any>) -> Unit\n){\n callback.invoke(listOf<Any>())\n}\n...
2022/11/30
[ "https://Stackoverflow.com/questions/74628024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19411871/" ]
74,628,044
<p>I have a dataframe that looks like this</p> <pre><code> plots &lt;- data.frame(plot=c(&quot;A&quot;, &quot;A&quot;, &quot;A&quot;, &quot;B&quot;, &quot;B&quot;, &quot;C&quot;, &quot;C&quot;, &quot;C&quot;), value= c(1,1,1,2,2,3,3,3)) plot value 1 A 1 2 A 1 3 A 1 4 B 2 5 B...
[ { "answer_id": 74628071, "author": "user2974951", "author_id": 2974951, "author_profile": "https://Stackoverflow.com/users/2974951", "pm_score": 2, "selected": true, "text": "> ave(plots$value,plots$plot,FUN=sum)\n[1] 3 3 3 4 4 9 9 9\n" }, { "answer_id": 74628122, "author": "...
2022/11/30
[ "https://Stackoverflow.com/questions/74628044", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20165603/" ]
74,628,064
<p>I am trying to cut a slice a list of images to split them over a few pages of a pdf I am generating. But im not sure what the syntax I need to use is. (or if there is a better way).</p> <pre><code> {% for page in image_pages %} // range loop for number of pages (passed from view) &lt;p style=&quot;page-break-bef...
[ { "answer_id": 74629128, "author": "nigel222", "author_id": 5246906, "author_profile": "https://Stackoverflow.com/users/5246906", "pm_score": 3, "selected": true, "text": "display = []\nfor page in image_pages:\n display.append([\n page, \n project_images[page*12:page*12...
2022/11/30
[ "https://Stackoverflow.com/questions/74628064", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14143473/" ]
74,628,074
<p>I got a school project where I need to sort numbers using linked list. I had some trouble initializing my linked list and someone gave me the folllowing solution, but I don't really understand what is happening on a line and I would like some enlightenment.</p> <p>Here's the full function :</p> <pre><code>void stack...
[ { "answer_id": 74629128, "author": "nigel222", "author_id": 5246906, "author_profile": "https://Stackoverflow.com/users/5246906", "pm_score": 3, "selected": true, "text": "display = []\nfor page in image_pages:\n display.append([\n page, \n project_images[page*12:page*12...
2022/11/30
[ "https://Stackoverflow.com/questions/74628074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19495079/" ]
74,628,098
<p>I am making a website project and I'm trying to make a function that will add new rows (<code>&lt;tr&gt;</code>) into an already existing empty table (<code>&lt;table&gt;</code>) and create cells (<code>&lt;td&gt;</code>) inside these rows containing informantion from a .json file. The first row contains certain dat...
[ { "answer_id": 74629128, "author": "nigel222", "author_id": 5246906, "author_profile": "https://Stackoverflow.com/users/5246906", "pm_score": 3, "selected": true, "text": "display = []\nfor page in image_pages:\n display.append([\n page, \n project_images[page*12:page*12...
2022/11/30
[ "https://Stackoverflow.com/questions/74628098", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20645077/" ]
74,628,099
<p>How to group tuples with adjacent indices in a python 2-dimensional tuple?</p> <p>I'm not familiar with the zip function yet. I've written the code like this, but it doesn't work very well. Any help would be appreciated. Thank you!!</p> <pre class="lang-py prettyprint-override"><code>coords = ((1, 2), (3, 4), (5, 6)...
[ { "answer_id": 74628262, "author": "Mushfirat Mohaimin", "author_id": 15760624, "author_profile": "https://Stackoverflow.com/users/15760624", "pm_score": 2, "selected": false, "text": "coords = ((1, 2), (3, 4), (5, 6), (7, 8))\ncoords = tuple([(tuple([i for i in coords[x]])+tuple([i for ...
2022/11/30
[ "https://Stackoverflow.com/questions/74628099", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19106705/" ]
74,628,100
<p>A <a href="https://www.nuget.org/packages/RimDev.Stuntman" rel="nofollow noreferrer">NuGet package</a> my program is using, is an older version of a <a href="https://www.nuget.org/packages/Microsoft.AspNetCore.Authentication.JwtBearer" rel="nofollow noreferrer">NuGet package</a> that has a <a href="https://github.co...
[ { "answer_id": 74628262, "author": "Mushfirat Mohaimin", "author_id": 15760624, "author_profile": "https://Stackoverflow.com/users/15760624", "pm_score": 2, "selected": false, "text": "coords = ((1, 2), (3, 4), (5, 6), (7, 8))\ncoords = tuple([(tuple([i for i in coords[x]])+tuple([i for ...
2022/11/30
[ "https://Stackoverflow.com/questions/74628100", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20644994/" ]
74,628,101
<p>I have strings similar to this example:</p> <pre><code>str = ' area AMW1 = 93.3 m2 '; </code></pre> <p>And I would like to only extract the floating point number (possibly with sign &quot;-&quot;) <code>93.3</code>. The float I like to extract is always surrouned by white spac...
[ { "answer_id": 74628199, "author": "Wiktor Stribiżew", "author_id": 3832970, "author_profile": "https://Stackoverflow.com/users/3832970", "pm_score": 3, "selected": true, "text": "regexp(str,'-?\\d+\\.\\d+','match')\n + regexp(str,'[-+]?\\d+\\.\\d+','match')\n regexp(str,'(?<!\\S)[-+]?\\...
2022/11/30
[ "https://Stackoverflow.com/questions/74628101", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2605073/" ]
74,628,106
<p>I have a project which is completely in C++. Also I have one more file which is in typescript ( I wasn't able to find libraries equilvelent in C++). The typescript file is doing the following: 1 It has typescript CLI code kinda of generator that will generate some functions in respective files.</p> <p>My compiler is...
[ { "answer_id": 74628199, "author": "Wiktor Stribiżew", "author_id": 3832970, "author_profile": "https://Stackoverflow.com/users/3832970", "pm_score": 3, "selected": true, "text": "regexp(str,'-?\\d+\\.\\d+','match')\n + regexp(str,'[-+]?\\d+\\.\\d+','match')\n regexp(str,'(?<!\\S)[-+]?\\...
2022/11/30
[ "https://Stackoverflow.com/questions/74628106", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20483318/" ]
74,628,191
<p>I tried to do something very simple but I do not understand why it not working for me</p> <p>so i have a component that include the details about the user are logged in and i want to request the details user and put them in the component</p> <p>so I do a axios.get to my back-end i get the detail set them in the stat...
[ { "answer_id": 74628199, "author": "Wiktor Stribiżew", "author_id": 3832970, "author_profile": "https://Stackoverflow.com/users/3832970", "pm_score": 3, "selected": true, "text": "regexp(str,'-?\\d+\\.\\d+','match')\n + regexp(str,'[-+]?\\d+\\.\\d+','match')\n regexp(str,'(?<!\\S)[-+]?\\...
2022/11/30
[ "https://Stackoverflow.com/questions/74628191", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20573874/" ]
74,628,197
<p>Flutter / Dart - I have a simple app but am new to programming, so struggling.</p> <p>Currently, the setup is with all the TextInput boxes in a Column. I would like to change this to having them in a Row. I assumed this would be easy by simply replacing the Word Column with Row on line 44. But it doesn't work and w...
[ { "answer_id": 74628199, "author": "Wiktor Stribiżew", "author_id": 3832970, "author_profile": "https://Stackoverflow.com/users/3832970", "pm_score": 3, "selected": true, "text": "regexp(str,'-?\\d+\\.\\d+','match')\n + regexp(str,'[-+]?\\d+\\.\\d+','match')\n regexp(str,'(?<!\\S)[-+]?\\...
2022/11/30
[ "https://Stackoverflow.com/questions/74628197", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15953708/" ]
74,628,228
<p>I have 3d sphere and links around as different mesh component. Can i rotate links mesh around my sphere without this sphere?</p> <p><a href="https://i.stack.imgur.com/T4Z51.jpg" rel="nofollow noreferrer">My 3d model</a></p> <p>I want to interact separately with links mesh and sphere mesh and rotate separately sphere...
[ { "answer_id": 74630358, "author": "antokhio", "author_id": 2461748, "author_profile": "https://Stackoverflow.com/users/2461748", "pm_score": 1, "selected": true, "text": "<mesh onClick={handleClick}/>\n // mesh / object reference \nconst ref = useRef()\n// cursor movement XY delta\ncons...
2022/11/30
[ "https://Stackoverflow.com/questions/74628228", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19014453/" ]
74,628,255
<p>I am trying to replace values in a list <strong>word</strong>, on indexes specified by the list <strong>positions</strong>, by sampling values that exist in a third list called <strong>letters</strong>.</p> <p>Here's an example of how my lists look like:</p> <pre><code>word &lt;- c(&quot;A&quot;,&quot;E&quot;,&quot;...
[ { "answer_id": 74630358, "author": "antokhio", "author_id": 2461748, "author_profile": "https://Stackoverflow.com/users/2461748", "pm_score": 1, "selected": true, "text": "<mesh onClick={handleClick}/>\n // mesh / object reference \nconst ref = useRef()\n// cursor movement XY delta\ncons...
2022/11/30
[ "https://Stackoverflow.com/questions/74628255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11634028/" ]
74,628,273
<p>I would like to extend the TypeScript <code>Map</code> type in my react TypeScript app to allow me to use <code>.map()</code>, in a similar way as you might with an <code>Array</code>.</p> <p>I found <a href="https://stackoverflow.com/questions/31084619/map-a-javascript-es6-map">this post</a> that describes several ...
[ { "answer_id": 74630358, "author": "antokhio", "author_id": 2461748, "author_profile": "https://Stackoverflow.com/users/2461748", "pm_score": 1, "selected": true, "text": "<mesh onClick={handleClick}/>\n // mesh / object reference \nconst ref = useRef()\n// cursor movement XY delta\ncons...
2022/11/30
[ "https://Stackoverflow.com/questions/74628273", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343159/" ]
74,628,289
<p>I am new to C# and I have encountered an error stating that: InvalidArgument=Value of '2' is not valid for 'index'.</p> <p>I want to set the items in checkedlistbox checked if there is a match in listbox. Can anyone help me with this problem.</p> <p>This the part of my code where the problems appear.</p> <pre><code>...
[ { "answer_id": 74630358, "author": "antokhio", "author_id": 2461748, "author_profile": "https://Stackoverflow.com/users/2461748", "pm_score": 1, "selected": true, "text": "<mesh onClick={handleClick}/>\n // mesh / object reference \nconst ref = useRef()\n// cursor movement XY delta\ncons...
2022/11/30
[ "https://Stackoverflow.com/questions/74628289", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20645634/" ]
74,628,302
<p>I have a <code>.net api</code> and I want to test the api from a console app. The method I am trying to test is a <code>POST</code> Method.I serialize data from my console app into a json string and I want to post it to the API, but the API does not get hit and I dont get any errors from my console app.</p> <p>My <...
[ { "answer_id": 74628347, "author": "CthenB", "author_id": 1885199, "author_profile": "https://Stackoverflow.com/users/1885199", "pm_score": 0, "selected": false, "text": "ExceptionDetails route CreateException <base url>/CreateException" }, { "answer_id": 74629796, "author": ...
2022/11/30
[ "https://Stackoverflow.com/questions/74628302", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20280508/" ]
74,628,304
<p>There is a function that takes two arguments. The first argument is the number of digits in the number. The second argument is the number itself. (5, 12345). Arguments will be passed in this format). It is necessary to take the first and last digit of this number and add them. Then return the product of these new nu...
[ { "answer_id": 74628629, "author": "Amila Senadheera", "author_id": 8510405, "author_profile": "https://Stackoverflow.com/users/8510405", "pm_score": 2, "selected": true, "text": "let a = prompt(\"Number: \");\na = Array.from(a).map((i) => Number(i));\n\nconst n = Math.floor(a.length / 2...
2022/11/30
[ "https://Stackoverflow.com/questions/74628304", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20632770/" ]
74,628,306
<p>So I have a command where for example</p> <pre><code>SELECT something, string_agg(other, ';') FROM table GROUP BY something HAVING COUNT(*)&gt;1; </code></pre> <p>but I don't know how to separate in two columns, because it doesn't see string_agg as a column.</p> <p>This is my original</p> <pre><code>something | othe...
[ { "answer_id": 74628629, "author": "Amila Senadheera", "author_id": 8510405, "author_profile": "https://Stackoverflow.com/users/8510405", "pm_score": 2, "selected": true, "text": "let a = prompt(\"Number: \");\na = Array.from(a).map((i) => Number(i));\n\nconst n = Math.floor(a.length / 2...
2022/11/30
[ "https://Stackoverflow.com/questions/74628306", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20349656/" ]
74,628,308
<p>I've been trying to parse a string and to get rid of parts of the string using the remove() function. In order to find the part which I wanted to remove I used an OR operator. However, it does not produce the outcome I expected. Can you help me?</p> <p>My code looks like this:</p> <pre><code>import numpy as np x = ...
[ { "answer_id": 74628412, "author": "Bhargav", "author_id": 15358800, "author_profile": "https://Stackoverflow.com/users/15358800", "pm_score": 3, "selected": true, "text": "x = '-1,0;1,0;0,-1;0,+1'\n\nx = x.split(';')\n\nnew = []\n\nfor i in x:\n if ('+' in i) or ('-' in i):\n ...
2022/11/30
[ "https://Stackoverflow.com/questions/74628308", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20645724/" ]
74,628,348
<p><strong>I`m using Visual Studio 2022.</strong></p> <h2>The goal</h2> <p>Run Console application (.NET Framework) - on Mono (without Unity or other tools).</p> <h3>Console Application code:</h3> <pre class="lang-cs prettyprint-override"><code>internal class Program { private static Task Main(string[] args) { ...
[ { "answer_id": 74628412, "author": "Bhargav", "author_id": 15358800, "author_profile": "https://Stackoverflow.com/users/15358800", "pm_score": 3, "selected": true, "text": "x = '-1,0;1,0;0,-1;0,+1'\n\nx = x.split(';')\n\nnew = []\n\nfor i in x:\n if ('+' in i) or ('-' in i):\n ...
2022/11/30
[ "https://Stackoverflow.com/questions/74628348", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15495138/" ]
74,628,349
<p>We have in our project one k8s cluster.</p> <p>We are trying to set up several environments: DEV, TEST, PROD.</p> <p>The idea was to install several instances of Airflow in different k8s namespaces. I am doing the fresh installation of Airflow from official Helm chart. Then I am observing very weird behavior of Airf...
[ { "answer_id": 74628412, "author": "Bhargav", "author_id": 15358800, "author_profile": "https://Stackoverflow.com/users/15358800", "pm_score": 3, "selected": true, "text": "x = '-1,0;1,0;0,-1;0,+1'\n\nx = x.split(';')\n\nnew = []\n\nfor i in x:\n if ('+' in i) or ('-' in i):\n ...
2022/11/30
[ "https://Stackoverflow.com/questions/74628349", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19059171/" ]
74,628,362
<p>I have created a custom post type called &quot;Home Page&quot; using <code>register_post_type</code> and below is my code.</p> <pre><code>$labels = array( 'name' =&gt; __( 'Home Page'), 'singular_name' =&gt; __( 'Home Page'), 'edit_item' =&gt; __( 'Edit Home Page'), ...
[ { "answer_id": 74632489, "author": "Moishy", "author_id": 1810810, "author_profile": "https://Stackoverflow.com/users/1810810", "pm_score": 1, "selected": false, "text": "register_post_type 'map_meta_cap' => true,\n'capabilities' => array(\n 'create_posts' => 'do_not_allow'\n)\n funct...
2022/11/30
[ "https://Stackoverflow.com/questions/74628362", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6829420/" ]
74,628,389
<p>I got a warning something like</p> <pre><code>warnings.warn( No local packages or working download links found for tensorflow-text~=2.11.0 error: Could not find suitable distribution for Requirement.parse('tensorflow-text~=2.11.0') </code></pre> <p>and if I run <code>pip install 'tensorflow-text~=2.11.0'</code> I g...
[ { "answer_id": 74628512, "author": "slb20", "author_id": 9902510, "author_profile": "https://Stackoverflow.com/users/9902510", "pm_score": 0, "selected": false, "text": "pip install tensorflow-text==2.11.0\n" }, { "answer_id": 74628554, "author": "Bhargav", "author_id": 1...
2022/11/30
[ "https://Stackoverflow.com/questions/74628389", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9885741/" ]
74,628,390
<p>I have a list of dates like this and want to make sure that all dates within that list are within the same month and year. How would I accomplish that?</p> <pre><code>// Should yield true IEnumerable&lt;DateTime&gt; dates1 = new List&lt;DateTime&gt;() { new DateTime(2022, 11, 30), new DateTime(2022, 11, 14), new Dat...
[ { "answer_id": 74628455, "author": "Tim Schmelter", "author_id": 284240, "author_profile": "https://Stackoverflow.com/users/284240", "pm_score": 4, "selected": true, "text": "DateTime firstDate = dates1.First();\nbool allSameMonthAndYear = dates1\n .All(d => d.Year == firstDate.Year &...
2022/11/30
[ "https://Stackoverflow.com/questions/74628390", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5203853/" ]
74,628,418
<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 apiUrl2 = `https://api.quran.com/api/v4/verses/random?language=en&amp;words=true&amp;translations=en&amp;audio=1&amp;tafsirs...
[ { "answer_id": 74628640, "author": "wei", "author_id": 7766525, "author_profile": "https://Stackoverflow.com/users/7766525", "pm_score": 3, "selected": true, "text": "function compare(a, b) {\n return a.position - b.position;\n}\n\nconst apiUrl2 = `https://api.quran.com/api/v4/verses/...
2022/11/30
[ "https://Stackoverflow.com/questions/74628418", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11189318/" ]
74,628,430
<p>actually i am trying to create a popup which allow user to see expanded view inside the popup when user click on expand view for the particular element there are series of more then one element</p> <p>Requirment:-the issue is that there are multiple elements, and whenever you click on the element, it should open ins...
[ { "answer_id": 74628635, "author": "Amr Eraky", "author_id": 13346156, "author_profile": "https://Stackoverflow.com/users/13346156", "pm_score": 0, "selected": false, "text": "ref import React from \"react\";\n\nconst Summary = () => {\n\n const [expand, SetExpand] = useState<boolean>(...
2022/11/30
[ "https://Stackoverflow.com/questions/74628430", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12205765/" ]
74,628,431
<p>I am sending props <code>month_id</code> to child component from parent component by clicking on a <code>&lt;li&gt;</code>. My child component code is like below.</p> <pre><code>&lt;script&gt; export default { props: ['mosque_id', 'month_id'], data(){ return { prayer_t...
[ { "answer_id": 74628635, "author": "Amr Eraky", "author_id": 13346156, "author_profile": "https://Stackoverflow.com/users/13346156", "pm_score": 0, "selected": false, "text": "ref import React from \"react\";\n\nconst Summary = () => {\n\n const [expand, SetExpand] = useState<boolean>(...
2022/11/30
[ "https://Stackoverflow.com/questions/74628431", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5043301/" ]
74,628,459
<p>I have coordinates on an excel sheet that are expressed as follows:</p> <pre><code>Latitude Longitude 16,5037993382 -25,0139206899 </code></pre> <ul> <li>whole part are degrees,</li> <li>first two decimals are minutes,</li> <li>decimals 3 and 4 are seconds, the rest fraction of seconds.</li> </ul> <p>Ex...
[ { "answer_id": 74628635, "author": "Amr Eraky", "author_id": 13346156, "author_profile": "https://Stackoverflow.com/users/13346156", "pm_score": 0, "selected": false, "text": "ref import React from \"react\";\n\nconst Summary = () => {\n\n const [expand, SetExpand] = useState<boolean>(...
2022/11/30
[ "https://Stackoverflow.com/questions/74628459", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20645893/" ]
74,628,477
<p>I need to verify if a chrome extension is installed or not installed on remote computers. Extension id is unique value like that &quot;234aljksdfklja3idffklsasf&quot;. I need to search &quot;HKEY_CURRENT_USER\SOFTWARE\Google\Chrome\PreferenceMACs\Default\extensions.settings&quot; direction for extension id &quot;234...
[ { "answer_id": 74636904, "author": "Ben Personick", "author_id": 3985011, "author_profile": "https://Stackoverflow.com/users/3985011", "pm_score": 2, "selected": true, "text": "WMIC REG HKCU HKLM Reg SID (reg query \"HKCU\\SOFTWARE\\Google\\Chrome\\PreferenceMACs\\Default\\extensions.set...
2022/11/30
[ "https://Stackoverflow.com/questions/74628477", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2853569/" ]
74,628,479
<p>How to send macros as parameters through a task?</p> <p>In the testbench:</p> <pre><code>`define CPU1 tb.top.dual_processor_db_wrapper_i.dual_processor_db_i.cpu1.inst `define CPU2 tb.top.dual_processor2_db_wrapper_i.dual_processor2_db_i.cpu2.inst initial begin fork cpu_init(`CPU1); cpu_init(`CPU...
[ { "answer_id": 74628892, "author": "toolic", "author_id": 197758, "author_profile": "https://Stackoverflow.com/users/197758", "pm_score": 2, "selected": true, "text": "task task task task cpu_init (input logic cpu);\n cpu `define CPU1 1'b1\ncpu_init(`CPU1);\n" }, { "answer_id": 7...
2022/11/30
[ "https://Stackoverflow.com/questions/74628479", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2971409/" ]
74,628,486
<p>I've created 2 entities in Spring with JPA annotations:</p> <p>Project:</p> <pre><code>package com.example.technologyradar.model; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import org.hibernate.annotations.GenericGenerator; import javax.persistence.*; import java.util.Ha...
[ { "answer_id": 74628892, "author": "toolic", "author_id": 197758, "author_profile": "https://Stackoverflow.com/users/197758", "pm_score": 2, "selected": true, "text": "task task task task cpu_init (input logic cpu);\n cpu `define CPU1 1'b1\ncpu_init(`CPU1);\n" }, { "answer_id": 7...
2022/11/30
[ "https://Stackoverflow.com/questions/74628486", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5244324/" ]
74,628,518
<p>I want to make a wordpress plugin, which displays my copyright at the top of the html code. so if anyone goes on my website and has a look on my website, i can display something like &quot;made with love by my name&quot;</p> <p>the text should be only visible in the code and not be shown in the front-end.</p> <p>i k...
[ { "answer_id": 74628892, "author": "toolic", "author_id": 197758, "author_profile": "https://Stackoverflow.com/users/197758", "pm_score": 2, "selected": true, "text": "task task task task cpu_init (input logic cpu);\n cpu `define CPU1 1'b1\ncpu_init(`CPU1);\n" }, { "answer_id": 7...
2022/11/30
[ "https://Stackoverflow.com/questions/74628518", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20645919/" ]
74,628,524
<p>Ok so I am very new to python and I am supposed to make a code that gives me this output</p> <blockquote> <p><code>input= -5 </code> <code>output = (-5)+(-4)+(-3)+(-2)+(-1)=-15</code> but I just can't wrap my head around it</p> </blockquote> <p>I thought I could just somehow flip this</p> <pre><code>while True: ...
[ { "answer_id": 74628892, "author": "toolic", "author_id": 197758, "author_profile": "https://Stackoverflow.com/users/197758", "pm_score": 2, "selected": true, "text": "task task task task cpu_init (input logic cpu);\n cpu `define CPU1 1'b1\ncpu_init(`CPU1);\n" }, { "answer_id": 7...
2022/11/30
[ "https://Stackoverflow.com/questions/74628524", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20645865/" ]
74,628,532
<p><strong>Story:</strong></p> <ol> <li>We have a lot of <code>microservices</code> and communication happens mostly through <code>Service Bus</code> by sending <code>serialized DTOs</code>.</li> <li>Some microservices <code>share the DB</code>, so entity <code>models</code>, for now, are <code>duplicated</code> in eac...
[ { "answer_id": 74657813, "author": "Trionia", "author_id": 1517575, "author_profile": "https://Stackoverflow.com/users/1517575", "pm_score": 2, "selected": false, "text": "http-cache dotnet nuget locals --list http-cache NUGET_HTTP_CACHE_PATH" } ]
2022/11/30
[ "https://Stackoverflow.com/questions/74628532", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10548234/" ]
74,628,539
<pre><code>class C(val string: String) { init { println(string) } } abstract class A { abstract var string: String val c = C(string) } class B : A() { override var string = &quot;string&quot; } fun main() { B() } </code></pre> <p><a href="https://pl.kotl.in/QhNaUgxyu" rel="nofollow noref...
[ { "answer_id": 74628860, "author": "MoCoding", "author_id": 11617754, "author_profile": "https://Stackoverflow.com/users/11617754", "pm_score": 3, "selected": true, "text": "Accessing non-final property string in constructor A B val c = C(string) string NullPointerException string null l...
2022/11/30
[ "https://Stackoverflow.com/questions/74628539", "https://Stackoverflow.com", "https://Stackoverflow.com/users/891814/" ]
74,628,570
<p>It says <a href="https://rpkgs.datanovia.com/rstatix/reference/anova_test.html" rel="nofollow noreferrer">here</a> that one can get one or the other or both. I have been able to get each one separately but not both together even when I set <code>effect.size = c(&quot;ges&quot;, &quot;pes&quot;)</code>. Instead, I on...
[ { "answer_id": 74629187, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 2, "selected": true, "text": "add_anova_effect_size <- function(res.anova.summary, effect.size = \"ges\", observed = NULL){\n ss.exists <- \"SS...
2022/11/30
[ "https://Stackoverflow.com/questions/74628570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17508788/" ]
74,628,578
<p>Currently im trying to transform this python dict to a html unordered list:</p> <blockquote> <p>{'dataStreamId': 'raw:com.google.nutrition:NutritionSource', 'dataStreamName': 'NutritionSource', 'type': 'raw', 'dataType': {'name': 'com.google.nutrition', 'field': [{'name': 'nutrients', 'format': 'map'}, {'name': 'mea...
[ { "answer_id": 74629187, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 2, "selected": true, "text": "add_anova_effect_size <- function(res.anova.summary, effect.size = \"ges\", observed = NULL){\n ss.exists <- \"SS...
2022/11/30
[ "https://Stackoverflow.com/questions/74628578", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20645767/" ]
74,628,603
<p>I have users table with <code>termination_date</code> column that is either <code>NULL</code> if the users are active or it has a <code>datetime</code> if the users are not active anymore.</p> <p>There is also a <code>termination_reason</code> column that describes why the user is not active anymore.</p> <p>So for a...
[ { "answer_id": 74628686, "author": "Olivier Jacot-Descombes", "author_id": 880990, "author_profile": "https://Stackoverflow.com/users/880990", "pm_score": 2, "selected": true, "text": "termination_reason country city termination_reason SELECT \n ( SELECT COUNT(*)\n FROM user_data_tab...
2022/11/30
[ "https://Stackoverflow.com/questions/74628603", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18178584/" ]
74,628,642
<p>I need to compute the mean of a 2D across one dimension. Here I keep all rows:</p> <pre><code>import numpy as np, time x = np.random.random((100000, 500)) t0 = time.time() y = x.mean(axis=0) # y.shape is (500,) as expected print(time.time() - t0) # 36 milliseconds </code></pre> <p>When I filter and select so...
[ { "answer_id": 74628686, "author": "Olivier Jacot-Descombes", "author_id": 880990, "author_profile": "https://Stackoverflow.com/users/880990", "pm_score": 2, "selected": true, "text": "termination_reason country city termination_reason SELECT \n ( SELECT COUNT(*)\n FROM user_data_tab...
2022/11/30
[ "https://Stackoverflow.com/questions/74628642", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1422096/" ]
74,628,707
<p>I need to replace 0 in a list of lists with dot &quot;.&quot;. I aslo need to replace 1 with &quot;o&quot; and 2 with &quot;*&quot; It should be something like chess board. So far I have this and I am stuck with the replacement. Thank you for your help! :)</p> <pre class="lang-py prettyprint-override"><code>chess =[...
[ { "answer_id": 74628781, "author": "Jasmin Heifa", "author_id": 17974058, "author_profile": "https://Stackoverflow.com/users/17974058", "pm_score": 1, "selected": false, "text": "def print_chess(chess):\n for line_list in chess:\n line = line_list[0]\n line = line.replac...
2022/11/30
[ "https://Stackoverflow.com/questions/74628707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20347481/" ]
74,628,719
<p>I am on Kubernetes v1.22.13. When i was trying to delete a namespace that's stuck in status <code>terminating</code>, i deleted api-service <code>v1.networking.k8s.io</code> by mistake with:</p> <pre><code>kubectl delete apiservices.apiregistration.k8s.io v1.networking.k8s.io </code></pre> <p>And now i don't have cr...
[ { "answer_id": 74628781, "author": "Jasmin Heifa", "author_id": 17974058, "author_profile": "https://Stackoverflow.com/users/17974058", "pm_score": 1, "selected": false, "text": "def print_chess(chess):\n for line_list in chess:\n line = line_list[0]\n line = line.replac...
2022/11/30
[ "https://Stackoverflow.com/questions/74628719", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8889711/" ]
74,628,727
<p><strong>What I need</strong></p> <p>I have a list of img src link. Here is an example:</p> <ul> <li><code>https://studiocake.kiev.ua/wp-content/webpc-passthru.php?src=https://studiocake.kiev.ua/wp-content/uploads/photo_2020-12-27_12-18-00-2-333x444.jpg&amp;nocache=1</code></li> <li><code>https://studiocake.kiev.ua/w...
[ { "answer_id": 74629080, "author": "Yogesh Kumar Gupta", "author_id": 4749712, "author_profile": "https://Stackoverflow.com/users/4749712", "pm_score": 2, "selected": false, "text": "from urllib.parse import urlparse, parse_qs\n\n\ndef extractSrc(strUrl):\n # Parse original URL using ur...
2022/11/30
[ "https://Stackoverflow.com/questions/74628727", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19425041/" ]
74,628,746
<p>I have the input dataframe(df1) with Ids, subids and features, having the nans in the features columns,</p> <pre><code>df1 = pd.DataFrame({'Id': ['A1', 'A2', 'A3', 'B1', 'B2'], 'Subid':['A', 'A', 'A', 'B', 'B'], 'feature1':[2.6, 6.3, np.nan, np.nan, 3.3], 'feature2':[...
[ { "answer_id": 74628798, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 3, "selected": true, "text": "merge fillna out = df1.fillna(df1[['Subid']].merge(df2, how='left'))\n Id Subid feature1 feature2 feature3 ...
2022/11/30
[ "https://Stackoverflow.com/questions/74628746", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19836382/" ]
74,628,772
<p>The date is sent from backend in this format:</p> <blockquote> <p>&quot;2022-01-01T00:00:00.00000&quot;</p> </blockquote> <p>How to display date without hours/minutes/seconds like this:</p> <blockquote> <p>2022-01-01?</p> </blockquote> <p>On my .tsx component I have InputDatepicker:</p> <pre><code> &lt;In...
[ { "answer_id": 74628799, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 0, "selected": false, "text": "var todayDate = new Date('2022-01-01T00:00:00.00000').toISOString().slice(0, 10);\nconsole.log(todayDate);"...
2022/11/30
[ "https://Stackoverflow.com/questions/74628772", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13057627/" ]
74,628,779
<p><a href="https://i.stack.imgur.com/4c4kN.png" rel="nofollow noreferrer">enter image description here</a> I'm very new to this, I can't seem to figure out why cant I drag an image to my image folder and also I don't know how to resize my image to fit my website, can someone please help me? I am using vs code <a href=...
[ { "answer_id": 74628799, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 0, "selected": false, "text": "var todayDate = new Date('2022-01-01T00:00:00.00000').toISOString().slice(0, 10);\nconsole.log(todayDate);"...
2022/11/30
[ "https://Stackoverflow.com/questions/74628779", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17215589/" ]
74,628,826
<p>I'm making a config in my Spring application and I want to define a map:</p> <pre class="lang-java prettyprint-override"><code>@Value(&quot;${ordering:#{{:}}&quot;) private Map&lt;String, List&lt;String&gt;&gt; ordering; </code></pre> <p>Here's what's in my config:</p> <pre><code>ordering = {'SOMEVALUE' : {'ONE', 'T...
[ { "answer_id": 74628799, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 0, "selected": false, "text": "var todayDate = new Date('2022-01-01T00:00:00.00000').toISOString().slice(0, 10);\nconsole.log(todayDate);"...
2022/11/30
[ "https://Stackoverflow.com/questions/74628826", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19460147/" ]
74,628,835
<p>html button</p> <pre><code>&lt;button id=&quot;styleButton&quot; class=&quot;ml-2 refreshButton&quot; (click)=&quot;removeAllFilters(appliedFilters)&quot; &gt; &lt;i class=&quot;fas fa-sync-alt&quot;&gt;&lt;/i&gt; &lt;/button&gt; </code></pre> <p>ts function</p> <pre><code>removeAllFilters() { this.ap...
[ { "answer_id": 74628799, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 0, "selected": false, "text": "var todayDate = new Date('2022-01-01T00:00:00.00000').toISOString().slice(0, 10);\nconsole.log(todayDate);"...
2022/11/30
[ "https://Stackoverflow.com/questions/74628835", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20302582/" ]
74,628,846
<p>do you know if it is possible to send responsive email through Outlook? For example to collapse some section if button are pressed? I don't find much on Internet on that. Thanks for the help</p> <p>I have tried to do some research but I don't find anything on internet.</p>
[ { "answer_id": 74628799, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 0, "selected": false, "text": "var todayDate = new Date('2022-01-01T00:00:00.00000').toISOString().slice(0, 10);\nconsole.log(todayDate);"...
2022/11/30
[ "https://Stackoverflow.com/questions/74628846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20646142/" ]
74,628,865
<p>getting an error as :</p> <p><code> TypeError: Cannot read properties of undefined (reading 'fetchPersonnelList')</code></p> <p>with my test spec.</p> <p>full code:</p> <pre><code> import { HttpClientModule } from '@angular/common/http'; import { Component } from '@angular/core'; import { async, Component...
[ { "answer_id": 74628918, "author": "ForestG", "author_id": 3486691, "author_profile": "https://Stackoverflow.com/users/3486691", "pm_score": 0, "selected": false, "text": " beforeEach(() => {\n fixture = TestBed.createComponent(ListPersonnelComponent);\n component = fixtu...
2022/11/30
[ "https://Stackoverflow.com/questions/74628865", "https://Stackoverflow.com", "https://Stackoverflow.com/users/218349/" ]
74,628,879
<p>I have to realize a project between Python and C. One of the instructions is to use <code>ctypes</code>, so I need to call my C function from Python. The latter needs me to send it two integer variables and a structure array. But I can't get the declaration to work. I don't know how to make the declaration.</p> <p>C...
[ { "answer_id": 74629789, "author": "CreepyRaccoon", "author_id": 18342123, "author_profile": "https://Stackoverflow.com/users/18342123", "pm_score": 1, "selected": false, "text": "list[reference] Array[reference] tab = (reference * 2)() import ctypes as c\n\ndef sac_dos_brute(nb_produit:...
2022/11/30
[ "https://Stackoverflow.com/questions/74628879", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20646183/" ]
74,628,883
<p>Im trying to get the id of the logged in user. When the user is clicking on the button his id need to get send to the data base, But I get an error: 1048 Column 'user_id' cannot be null.</p> <p>This is my controller function:</p> <pre><code> public function LendBook(Request $request) { $user_id = $req...
[ { "answer_id": 74629789, "author": "CreepyRaccoon", "author_id": 18342123, "author_profile": "https://Stackoverflow.com/users/18342123", "pm_score": 1, "selected": false, "text": "list[reference] Array[reference] tab = (reference * 2)() import ctypes as c\n\ndef sac_dos_brute(nb_produit:...
2022/11/30
[ "https://Stackoverflow.com/questions/74628883", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19197073/" ]
74,628,939
<p>I want to create new agents after the cutting (delay Block). I tried to use the exit and enter Block. I get this Error: The method take(Agent) is undefined for the type Main._enter_Population</p> <p>My Agents have no parameters in the Population, is this the problem? I write the code in the Enterblock and nothing in...
[ { "answer_id": 74629789, "author": "CreepyRaccoon", "author_id": 18342123, "author_profile": "https://Stackoverflow.com/users/18342123", "pm_score": 1, "selected": false, "text": "list[reference] Array[reference] tab = (reference * 2)() import ctypes as c\n\ndef sac_dos_brute(nb_produit:...
2022/11/30
[ "https://Stackoverflow.com/questions/74628939", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20632788/" ]
74,628,965
<p>I am trying to run terra::extract to sum population (from a .tif) to global regions (from a .shp). Below is a reproducible example of the code that I run. In the case below, the memory use before (A) and after (B) the extract function and after memory clearup (C) is almost similar. However, running the exact same co...
[ { "answer_id": 74630991, "author": "nukubiho", "author_id": 11868027, "author_profile": "https://Stackoverflow.com/users/11868027", "pm_score": 1, "selected": false, "text": "library(sf)\nlibrary(terra)\nlibrary(exactextractr)\n\nf <- system.file(\"ex/lux.shp\", package=\"terra\")\nv <- ...
2022/11/30
[ "https://Stackoverflow.com/questions/74628965", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5400636/" ]
74,628,978
<p>This is the part of code where I try to open the file f1.txt, it is complete path is C:\Users\Hp\Desktop\NSGA2-CDS\DataSet\f1.txt</p> <p><code>ifstream fichier(&quot;C:\Users\Hp\Desktop\NSGA2-CDS\DataSet\f1.txt&quot;, ios::in);</code></p> <p>The file cannot be opened and I don't know why?!</p> <p>NSGA2-CDS is the fo...
[ { "answer_id": 74630991, "author": "nukubiho", "author_id": 11868027, "author_profile": "https://Stackoverflow.com/users/11868027", "pm_score": 1, "selected": false, "text": "library(sf)\nlibrary(terra)\nlibrary(exactextractr)\n\nf <- system.file(\"ex/lux.shp\", package=\"terra\")\nv <- ...
2022/11/30
[ "https://Stackoverflow.com/questions/74628978", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20646120/" ]
74,628,987
<p>I have an Outlook VSTO add-in. I want to respond to incoming emails. This works quite well with the declaration</p> <pre><code>Public WithEvents items As Outlook.Items </code></pre> <p>And the definition for the items that are observed. (I'm afraid that's why only &quot;Inbox&quot; is watched):</p> <pre><code>inbox...
[ { "answer_id": 74630991, "author": "nukubiho", "author_id": 11868027, "author_profile": "https://Stackoverflow.com/users/11868027", "pm_score": 1, "selected": false, "text": "library(sf)\nlibrary(terra)\nlibrary(exactextractr)\n\nf <- system.file(\"ex/lux.shp\", package=\"terra\")\nv <- ...
2022/11/30
[ "https://Stackoverflow.com/questions/74628987", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20470372/" ]
74,629,000
<p>I have a StatelessWidget defined as:</p> <pre class="lang-dart prettyprint-override"><code>class FlexElement extends StatelessWidget { final List&lt;Widget&gt; widgets; final bool isVisible; const FlexElement({ Key? key, required this.widgets, required this.isVisible, }) : super(key: key); @ov...
[ { "answer_id": 74629293, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 2, "selected": true, "text": "children: <Widget>[...widgets.map((w)=>Flexible(child:w))],\n children:widgets.map((w)=>Flexible(child:w)).to...
2022/11/30
[ "https://Stackoverflow.com/questions/74629000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15438511/" ]
74,629,030
<p>I know that this probably is not the best way to do this. I read the question with the same title here, but it not solve my problem.</p> <p>The question is: I have a server that only will achieve a result that I wanna if I run a command line in the server. So I wanna write a test to check the state of one page befor...
[ { "answer_id": 74634760, "author": "Fody", "author_id": 16997707, "author_profile": "https://Stackoverflow.com/users/16997707", "pm_score": 1, "selected": false, "text": "cy.readFile() const SSH = require('simple-ssh');\n\nCypress.Commands.add('testSSH', () => {\n\n cy.readFile('path/to...
2022/11/30
[ "https://Stackoverflow.com/questions/74629030", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11531064/" ]
74,629,035
<p>The interpreter gives me a syntax error when it reaches elif in the code below. Why?</p> <pre><code>while walls: rand_wall = walls[int(random.random()*len(walls))-1] if rand_wall[1] != 0 and rand_wall[1] != mazeheight-1: if maze[rand_wall[0][rand_wall[1]-1] == &quot;u&quot; and maze[rand_wall[0][rand...
[ { "answer_id": 74634760, "author": "Fody", "author_id": 16997707, "author_profile": "https://Stackoverflow.com/users/16997707", "pm_score": 1, "selected": false, "text": "cy.readFile() const SSH = require('simple-ssh');\n\nCypress.Commands.add('testSSH', () => {\n\n cy.readFile('path/to...
2022/11/30
[ "https://Stackoverflow.com/questions/74629035", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20646296/" ]
74,629,049
<p>I'm trying to do a front of an HTML website by using vue.js, but I wasn't able to center an image using css.</p> <p>I wrote all of my code in the App.vue file :</p> <pre><code>&lt;template&gt; &lt;div id=&quot;container3&quot;&gt; &lt;img id=&quot;teamBackground&quot; src=&quot;./assets/bourg_palette_rounded.p...
[ { "answer_id": 74629270, "author": "Can Ozdemir", "author_id": 18617885, "author_profile": "https://Stackoverflow.com/users/18617885", "pm_score": 0, "selected": false, "text": "#container3 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n}" }, { ...
2022/11/30
[ "https://Stackoverflow.com/questions/74629049", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14507864/" ]
74,629,067
<p>I have a uniprot document with a protein sequence as well as some metadata. I need to use perl to match the sequence and print it out but for some reason the last line always comes out two times. The code I wrote is here</p> <pre><code>#!usr/bin/perl open (IN,'P30988.txt'); while (&lt;IN&gt;) { if($_=~m /^\s+(\D+)/...
[ { "answer_id": 74629461, "author": "pmqs", "author_id": 2030808, "author_profile": "https://Stackoverflow.com/users/2030808", "pm_score": 3, "selected": true, "text": "#!usr/bin/perl\nopen (IN,'P30988.txt');\nwhile (<IN>) {\n\n if ($_ =~ m /^\\s+(\\D+)/) { \n $seq = $1;\n ...
2022/11/30
[ "https://Stackoverflow.com/questions/74629067", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20141877/" ]
74,629,078
<p>I want to store 2D matrices in a another list or container.</p> <p>I have 5 different 2d matrices. Each matrix has a size <code>36 X 36</code>. I want my output as below,</p> <pre><code>big_matrix = [ [36 X 36], [36 X 36], [36 X 36], [36 X 36], [36 X 36]] </code></pre> <p>Kindly guide me.</p>
[ { "answer_id": 74629286, "author": "Jasmin Heifa", "author_id": 17974058, "author_profile": "https://Stackoverflow.com/users/17974058", "pm_score": 1, "selected": false, "text": "import numpy as np\n\n2d_matrix = np.ones((36, 36), dtype=int)\n" }, { "answer_id": 74629368, "au...
2022/11/30
[ "https://Stackoverflow.com/questions/74629078", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17289097/" ]
74,629,104
<p>I want to filter paths matching only some values ( &quot;chr1&quot; &quot;chr11&quot; &quot;chr16&quot; &quot;chr17&quot; &quot;chr2&quot; &quot;chr5&quot; &quot;chr6&quot; &quot;chr7&quot;) in a list of paths. However my results includes additional chr#</p> <p>This is the items i want to filter</p> <pre><code>&...
[ { "answer_id": 74629318, "author": "Jilber Urbina", "author_id": 1315767, "author_profile": "https://Stackoverflow.com/users/1315767", "pm_score": 1, "selected": false, "text": "sub which > filter_chr <- c(\"chr1\", \"chr11\", \"chr16\", \"chr17\", \"chr2\", \"chr5\", \"chr6\", \"chr...
2022/11/30
[ "https://Stackoverflow.com/questions/74629104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7846884/" ]
74,629,179
<p>I have two lists of dictionaries:</p> <pre class="lang-py prettyprint-override"><code>timing = [ {&quot;day_name&quot;: &quot;sunday&quot;}, {&quot;day_name&quot;: &quot;monday&quot;}, {&quot;day_name&quot;: &quot;tuesday&quot;}, {&quot;day_name&quot;: &quot;wednesday&quot;}, {&quot;day_name&quot...
[ { "answer_id": 74629333, "author": "Aymen", "author_id": 5165980, "author_profile": "https://Stackoverflow.com/users/5165980", "pm_score": 0, "selected": false, "text": "...\ndata = []\nfor time_instance in timing:\n obj = {\"timing\": time_instance}\n # use a list to store all you...
2022/11/30
[ "https://Stackoverflow.com/questions/74629179", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20286415/" ]
74,629,233
<p>if I do a POST request on Postman with my local API server it works:</p> <p><a href="https://i.stack.imgur.com/5Nfvr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5Nfvr.png" alt="enter image description here" /></a></p> <p>But if I try in python with this syntax it doesn't work: <code>requests.p...
[ { "answer_id": 74629333, "author": "Aymen", "author_id": 5165980, "author_profile": "https://Stackoverflow.com/users/5165980", "pm_score": 0, "selected": false, "text": "...\ndata = []\nfor time_instance in timing:\n obj = {\"timing\": time_instance}\n # use a list to store all you...
2022/11/30
[ "https://Stackoverflow.com/questions/74629233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15106435/" ]
74,629,244
<p>I am working on an API project that provides endpoints to front-end. There is a new field must added to related model that is &quot;organization&quot;.</p> <p>Firstly, this field must added to &quot;File&quot; model as a foreign key and other related files like populator, renderer and validator.</p> <p>Secondly, 'or...
[ { "answer_id": 74629560, "author": "matagus", "author_id": 3219121, "author_profile": "https://Stackoverflow.com/users/3219121", "pm_score": 1, "selected": false, "text": "class MyModel(models.Model):\n foreign_key = models.ForeignKey(\n '<app name>.<model name>',\n on_d...
2022/11/30
[ "https://Stackoverflow.com/questions/74629244", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10673650/" ]
74,629,296
<p>I have a dataframe that looks like this:</p> <pre><code> plot sp value sum 1 A 1a 1 3 2 A 1b 1 3 3 A 1a 1 3 4 B 1a 2 4 5 B 1a 2 4 6 C 1b 3 9 7 C 1b 3 9 8 C 1b 3 9 </code></pre> <p>I calculated then the share of <code>sum</code> for each line and got this:</p> <pre>...
[ { "answer_id": 74629560, "author": "matagus", "author_id": 3219121, "author_profile": "https://Stackoverflow.com/users/3219121", "pm_score": 1, "selected": false, "text": "class MyModel(models.Model):\n foreign_key = models.ForeignKey(\n '<app name>.<model name>',\n on_d...
2022/11/30
[ "https://Stackoverflow.com/questions/74629296", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20165603/" ]
74,629,297
<pre><code>&lt;span onClick={'event example 1'}&gt; content example 1 &lt;button onClick={'event example 1'}&gt; content example 2 &lt;/button&gt; &lt;/span&gt; </code></pre> <p>How can I press the button without also involving the span event? It's possible?</p>
[ { "answer_id": 74629406, "author": "Anatoliy Kostyuk", "author_id": 16215031, "author_profile": "https://Stackoverflow.com/users/16215031", "pm_score": 1, "selected": false, "text": "onClick(function(event){\n event.stopPropagation();\n console.log('button element');\n});\n" }, ...
2022/11/30
[ "https://Stackoverflow.com/questions/74629297", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20232762/" ]
74,629,299
<p>My URL contain a number that is assigned to a particular item so it might be 1, 2, ..., 999 and so on.</p> <p>An example: <a href="https://www.test.com/items.889218.html" rel="nofollow noreferrer">https://www.test.com/items.889218.html</a></p> <p>I want to make assertion like this:</p> <pre><code>cy.url().should('co...
[ { "answer_id": 74629418, "author": "Rohan Büchner", "author_id": 1105314, "author_profile": "https://Stackoverflow.com/users/1105314", "pm_score": 0, "selected": false, "text": "cy.location().should((loc) => {\n expect(loc).to.match(/https:\\/\\/www\\.test\\.com\\/items\\/(\\d+).html/)\...
2022/11/30
[ "https://Stackoverflow.com/questions/74629299", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19777975/" ]
74,629,301
<p>In vscode, I have a python linter setup which helps me identify if there are any errors in my code, by underlining the error prone section with red swiggly lines. I can see the error message, if I hover over that section. Is there a keyboard shortcut which can show the error message, without actually requiring me to...
[ { "answer_id": 74629492, "author": "myf", "author_id": 540955, "author_profile": "https://Stackoverflow.com/users/540955", "pm_score": 2, "selected": true, "text": "editor.action.showHover Ctrl K Ctrl I" } ]
2022/11/30
[ "https://Stackoverflow.com/questions/74629301", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8547986/" ]
74,629,308
<p>I'm new to programming and hope you can help me out with this little number comparison game that I'm trying to build.</p> <p>I have two functions. The first function creates the playing field in HTML via a button press. One of the elements created on the playing field is an input field where the player can enter the...
[ { "answer_id": 74629492, "author": "myf", "author_id": 540955, "author_profile": "https://Stackoverflow.com/users/540955", "pm_score": 2, "selected": true, "text": "editor.action.showHover Ctrl K Ctrl I" } ]
2022/11/30
[ "https://Stackoverflow.com/questions/74629308", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20643670/" ]
74,629,310
<p>I would like hide and show elements in different breakpoints. For example I could use v-if=&quot;$vuetify.breakpoint.md&quot; in the <a href="https://vuetifyjs.com/en/" rel="nofollow noreferrer">vuetify</a>. How i can do this in the <a href="https://element-plus.org/en-US/" rel="nofollow noreferrer">element-plus</a>...
[ { "answer_id": 74629492, "author": "myf", "author_id": 540955, "author_profile": "https://Stackoverflow.com/users/540955", "pm_score": 2, "selected": true, "text": "editor.action.showHover Ctrl K Ctrl I" } ]
2022/11/30
[ "https://Stackoverflow.com/questions/74629310", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6711997/" ]
74,629,382
<p>I want to mock a resttemplate.exchange() method but it is not getting mocked . It is throwing <code>NoClassDefFoundError</code></p> <p>Here's the class I want to mock:</p> <pre><code>public class userHelper { /* */ public getUserResponse(userPayload){ String url = &quot;abc/def&quot;; HttpHeaders headers = new H...
[ { "answer_id": 74629592, "author": "grekier", "author_id": 1540177, "author_profile": "https://Stackoverflow.com/users/1540177", "pm_score": 1, "selected": false, "text": "RestTemplate @SpringBootApplication\npublic class YourAppName {\n @Bean\n public RestTemplate restTemplate() {\n ...
2022/11/30
[ "https://Stackoverflow.com/questions/74629382", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11031894/" ]
74,629,401
<p>list of stowwords:</p> <p>stop_w = [&quot;in&quot;, &quot;&amp;&quot;, &quot;the&quot;, &quot;|&quot;, &quot;and&quot;, &quot;is&quot;, &quot;of&quot;, &quot;a&quot;, &quot;an&quot;, &quot;as&quot;, &quot;for&quot;, &quot;was&quot;]</p> <p>df:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> ...
[ { "answer_id": 74629508, "author": "sophocles", "author_id": 9167382, "author_profile": "https://Stackoverflow.com/users/9167382", "pm_score": 2, "selected": true, "text": "| or \\ stop_w = [\"in\", \"&\", \"the\", \"\\|\", \"and\", \"is\", \"of\", \"a\", \"an\", \"as\", \"for\", \"was\"...
2022/11/30
[ "https://Stackoverflow.com/questions/74629401", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17277677/" ]
74,629,447
<p>I'm using Django and after committing new edits I need to restart my server to see them. But every time after restart with <code>python manage.py runserver</code> my server is not loading I need to use another port to see my website</p> <p>I`m using Pycharm and Debian terminal</p> <p>I tried to reboot my pc and it h...
[ { "answer_id": 74629508, "author": "sophocles", "author_id": 9167382, "author_profile": "https://Stackoverflow.com/users/9167382", "pm_score": 2, "selected": true, "text": "| or \\ stop_w = [\"in\", \"&\", \"the\", \"\\|\", \"and\", \"is\", \"of\", \"a\", \"an\", \"as\", \"for\", \"was\"...
2022/11/30
[ "https://Stackoverflow.com/questions/74629447", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20646427/" ]
74,629,458
<p>l recently learned to make a navigation menu so I ventured on my own to make a dropdown. I did this all on my own and it seems I am weak in targeting the style properties. So I need some help.</p> <p><a href="https://i.stack.imgur.com/24rn5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/24rn5.png...
[ { "answer_id": 74629508, "author": "sophocles", "author_id": 9167382, "author_profile": "https://Stackoverflow.com/users/9167382", "pm_score": 2, "selected": true, "text": "| or \\ stop_w = [\"in\", \"&\", \"the\", \"\\|\", \"and\", \"is\", \"of\", \"a\", \"an\", \"as\", \"for\", \"was\"...
2022/11/30
[ "https://Stackoverflow.com/questions/74629458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20433010/" ]
74,629,460
<p>I have an Access DB which contains this Fields:</p> <ul> <li>ID (autonumber)</li> <li>IDArr (numeric)</li> <li>Importo (Decimal)</li> <li>Pv (numeric)</li> <li>Closed (boolean)</li> </ul> <p>I want to set the <code>Closed</code> field to true if sum of Importo is = 0 grouping by <code>IDArr</code> field and I have t...
[ { "answer_id": 74629508, "author": "sophocles", "author_id": 9167382, "author_profile": "https://Stackoverflow.com/users/9167382", "pm_score": 2, "selected": true, "text": "| or \\ stop_w = [\"in\", \"&\", \"the\", \"\\|\", \"and\", \"is\", \"of\", \"a\", \"an\", \"as\", \"for\", \"was\"...
2022/11/30
[ "https://Stackoverflow.com/questions/74629460", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5132058/" ]
74,629,505
<p>I have files that are uploaded into an onprem folder daily, from there I have a pipeline pulling it to a blob storage container (input), from there I have another pipeline from blob (input) to blob (output), here is were the dataflow is, between those two blobs. Finally, I have output linked to sql. However, I want ...
[ { "answer_id": 74629508, "author": "sophocles", "author_id": 9167382, "author_profile": "https://Stackoverflow.com/users/9167382", "pm_score": 2, "selected": true, "text": "| or \\ stop_w = [\"in\", \"&\", \"the\", \"\\|\", \"and\", \"is\", \"of\", \"a\", \"an\", \"as\", \"for\", \"was\"...
2022/11/30
[ "https://Stackoverflow.com/questions/74629505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20053349/" ]
74,629,510
<p><em>Write a program that fills an array of 10 elements with random numbers from 1 to 10, and then swaps the first element with the second, the third with the fourth, and so on. Display the original and transformed array</em></p> <p>Here is my solution, but Python doesn't want to sort the array and it stays the same:...
[ { "answer_id": 74629508, "author": "sophocles", "author_id": 9167382, "author_profile": "https://Stackoverflow.com/users/9167382", "pm_score": 2, "selected": true, "text": "| or \\ stop_w = [\"in\", \"&\", \"the\", \"\\|\", \"and\", \"is\", \"of\", \"a\", \"an\", \"as\", \"for\", \"was\"...
2022/11/30
[ "https://Stackoverflow.com/questions/74629510", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20645812/" ]
74,629,566
<p>Hi I'm making a website but I'm having two problems</p> <ol> <li>My HTML file doesn't see my CSS file. My Html file is Website/html/index.html and my CSS file is Website/css/index.css</li> <li>Even though i do <code>text-align: center;</code>(CSS file line:22) my list doesn't become straight line</li> </ol> <pre><co...
[ { "answer_id": 74629508, "author": "sophocles", "author_id": 9167382, "author_profile": "https://Stackoverflow.com/users/9167382", "pm_score": 2, "selected": true, "text": "| or \\ stop_w = [\"in\", \"&\", \"the\", \"\\|\", \"and\", \"is\", \"of\", \"a\", \"an\", \"as\", \"for\", \"was\"...
2022/11/30
[ "https://Stackoverflow.com/questions/74629566", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14880159/" ]
74,629,567
<p>I have a dictionary.</p> <pre><code>prices = {'n': 99, 'a': 99, 'c': 147} </code></pre> <p>using map () I need to receive new dictionary :</p> <pre><code>def formula(value): value = value -value * 0.05 return value </code></pre> <pre><code>new_prices = dict(map(formula, prices.values())) </code></pre> <p>bu...
[ { "answer_id": 74629622, "author": "JayPeerachai", "author_id": 12135518, "author_profile": "https://Stackoverflow.com/users/12135518", "pm_score": 1, "selected": false, "text": "map() lambda new_prices = dict(map(lambda item: (item[0], formula(item[1])), prices.items()))\n {'n': 94.05, ...
2022/11/30
[ "https://Stackoverflow.com/questions/74629567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20646670/" ]
74,629,602
<p>I want to build a button, when I click it for the first time it shows for example an Ad, when clicked again it doesn't show the ad but the content. Here is what I tried:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snipp...
[ { "answer_id": 74629622, "author": "JayPeerachai", "author_id": 12135518, "author_profile": "https://Stackoverflow.com/users/12135518", "pm_score": 1, "selected": false, "text": "map() lambda new_prices = dict(map(lambda item: (item[0], formula(item[1])), prices.items()))\n {'n': 94.05, ...
2022/11/30
[ "https://Stackoverflow.com/questions/74629602", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19241748/" ]
74,629,609
<p>I am using a custom hook from 3rd party library in my React project:</p> <pre><code>import { useProductData } from '@third/prod-data-component'; const ProductRow: React.FC&lt;MyProduct&gt; = ({ product }) =&gt; { // using the custom hook here const productData = useProductData(); }) </code></pre> <p>The signatu...
[ { "answer_id": 74629753, "author": "vashykator", "author_id": 8979230, "author_profile": "https://Stackoverflow.com/users/8979230", "pm_score": 0, "selected": false, "text": "import moduleMock from '@third/prod-data-component'\n\njest.mock('@third/prod-data-component')\n\ndescribe('test ...
2022/11/30
[ "https://Stackoverflow.com/questions/74629609", "https://Stackoverflow.com", "https://Stackoverflow.com/users/842225/" ]
74,629,613
<p>Can you help me identifying what type of wildcard I need to use to find a certain email address in my properties field?</p> <p>I know that the email I'm looking for is in the slot number 2 How can I find the email address without knowing the slot number? can I use a [*] instead of a [2]?</p> <p>Here's my query:</p> ...
[ { "answer_id": 74629753, "author": "vashykator", "author_id": 8979230, "author_profile": "https://Stackoverflow.com/users/8979230", "pm_score": 0, "selected": false, "text": "import moduleMock from '@third/prod-data-component'\n\njest.mock('@third/prod-data-component')\n\ndescribe('test ...
2022/11/30
[ "https://Stackoverflow.com/questions/74629613", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16595335/" ]
74,629,624
<p>i've been trying to create a way to generate config files for a help tool that i've been making. i would like to have the code create a config file in a specific default location that is dependant on the current user on which the code is ran.</p> <p>this is my basic setup for the code i've been trying to find a way ...
[ { "answer_id": 74629753, "author": "vashykator", "author_id": 8979230, "author_profile": "https://Stackoverflow.com/users/8979230", "pm_score": 0, "selected": false, "text": "import moduleMock from '@third/prod-data-component'\n\njest.mock('@third/prod-data-component')\n\ndescribe('test ...
2022/11/30
[ "https://Stackoverflow.com/questions/74629624", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20646731/" ]
74,629,638
<p>I want to subtract serial dates that are associated with the same value in another column. I am trying to find the time between order dates for each customer. Say, I have a dataframe:</p> <pre><code>customerid &lt;- c(&quot;A1&quot;, &quot;A1&quot;, &quot;A2&quot;, &quot;A2&quot;, &quot;A3&quot;, &quot;A3&quot;, &qu...
[ { "answer_id": 74629753, "author": "vashykator", "author_id": 8979230, "author_profile": "https://Stackoverflow.com/users/8979230", "pm_score": 0, "selected": false, "text": "import moduleMock from '@third/prod-data-component'\n\njest.mock('@third/prod-data-component')\n\ndescribe('test ...
2022/11/30
[ "https://Stackoverflow.com/questions/74629638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5901298/" ]
74,629,674
<p>The issue I'm facing is that the sound is not running in a loop, the whole sound is executed once, it does not repeat.</p> <p>So basically, I have used this method:</p> <pre><code>#include &lt;Windows.h&gt; #include &lt;thread&gt; #include &lt;iostream&gt; void play_music() { PlaySoundA(&quot;sound.wav&quot;, N...
[ { "answer_id": 74629753, "author": "vashykator", "author_id": 8979230, "author_profile": "https://Stackoverflow.com/users/8979230", "pm_score": 0, "selected": false, "text": "import moduleMock from '@third/prod-data-component'\n\njest.mock('@third/prod-data-component')\n\ndescribe('test ...
2022/11/30
[ "https://Stackoverflow.com/questions/74629674", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17162747/" ]
74,629,684
<p>Using PowerShell, can I obtain the DNS hostname of a virtual machine if I only have access to the Hyper-V host running the VM?</p> <p>I know I can get the IP of the VM and perform a reverse DNS lookup but I do not have access to the network/DNS servers that service this VM.</p> <p>I also do not have credentials for ...
[ { "answer_id": 74629753, "author": "vashykator", "author_id": 8979230, "author_profile": "https://Stackoverflow.com/users/8979230", "pm_score": 0, "selected": false, "text": "import moduleMock from '@third/prod-data-component'\n\njest.mock('@third/prod-data-component')\n\ndescribe('test ...
2022/11/30
[ "https://Stackoverflow.com/questions/74629684", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10041179/" ]
74,629,703
<p>I have table that looks like this</p> <pre><code> WO | PS | C ---------------- 12 | 1 | a 12 | 2 | b 12 | 2 | b 12 | 2 | c 13 | 1 | a </code></pre> <p>I want to find values from WO column where PS has value 1 and C value a AND PS has value 2 and C has value b. So on one column I need to have mu...
[ { "answer_id": 74629753, "author": "vashykator", "author_id": 8979230, "author_profile": "https://Stackoverflow.com/users/8979230", "pm_score": 0, "selected": false, "text": "import moduleMock from '@third/prod-data-component'\n\njest.mock('@third/prod-data-component')\n\ndescribe('test ...
2022/11/30
[ "https://Stackoverflow.com/questions/74629703", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9650071/" ]
74,629,709
<p>Due to the <code>html markup</code> I had to use <code>flex-basis</code> to improve style, so that <code>p</code> element start from the same column as the <code>title/headline</code>, and problem was fixed using <code>flex-basis</code>. <br> But as you can see in the screenshot, the image takes too much height and ...
[ { "answer_id": 74629982, "author": "Kameron", "author_id": 16496357, "author_profile": "https://Stackoverflow.com/users/16496357", "pm_score": 1, "selected": false, "text": "flex-basis .logo-image h4.headline img .wrapper display: flex; img { max-width: 100%;) .container {\n display: fl...
2022/11/30
[ "https://Stackoverflow.com/questions/74629709", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12971921/" ]
74,629,721
<p>I have JSON object like this</p> <pre><code>{ &quot;codemap&quot;:{ &quot;codeOfItem1&quot;:&quot;titleOfItem1&quot;, &quot;codeOfItem2&quot;:&quot;titleOfItem2&quot;, &quot;codeOfItem3&quot;:&quot;titleOfItem3&quot;, &quot;codeOfItem4&quot;:&quot;titleOfItem4&quot; }, &quot;items&quot;:{ &quot;titleOfItem1&quot;:{ ...
[ { "answer_id": 74635181, "author": "James Lan", "author_id": 1988349, "author_profile": "https://Stackoverflow.com/users/1988349", "pm_score": 1, "selected": false, "text": "Map data class Schema(val codemap: Map<String, String>, val items: Map<String, Item>) {\n data class Item(val a...
2022/11/30
[ "https://Stackoverflow.com/questions/74629721", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1063214/" ]
74,629,724
<p>I'm trying to set a Generic type that will accept 2 parameters and return a function.<br /> First parameter - The type of the single parameter of the returned function<br /> Second Parameter - need to get true if dev wants the returned function parameter to be required.</p> <p>Somehow it's just not working The Val i...
[ { "answer_id": 74629984, "author": "AbsoluteZero", "author_id": 20539156, "author_profile": "https://Stackoverflow.com/users/20539156", "pm_score": 0, "selected": false, "text": "ValidationFunction string | true export type ValidationFunction<T = unknown, IsMandatory = unknown> =\n <Val ...
2022/11/30
[ "https://Stackoverflow.com/questions/74629724", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19528122/" ]
74,629,746
<p>command I ran was <code>nodetool tablehistograms &lt;keyspace&gt; &lt;table&gt;</code> The bug was No SSTables exists, unable to calculate 'Partition Size' and 'Cell Count' percentiles</p> <p>I tried to calculate partition size for better selections on partition keys, but nodetool command did not work fine as the pa...
[ { "answer_id": 74633823, "author": "Paul", "author_id": 10914049, "author_profile": "https://Stackoverflow.com/users/10914049", "pm_score": 1, "selected": false, "text": "dsbulk count --stats.modes partitions --stats.numPartitions <n> -k myKeyspace -t myTable\n" }, { "answer_id":...
2022/11/30
[ "https://Stackoverflow.com/questions/74629746", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20088868/" ]
74,629,748
<p>I'm trying to create a form with a submit button, but the code i created, keeps returning an error.</p> <p>I tried this code: `</p> <pre><code>function SubmitCard() { var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); var crdSht = spreadsheet.getSheetByName(&quot;Cards&quot;); var data [[ crdSht.getRa...
[ { "answer_id": 74633823, "author": "Paul", "author_id": 10914049, "author_profile": "https://Stackoverflow.com/users/10914049", "pm_score": 1, "selected": false, "text": "dsbulk count --stats.modes partitions --stats.numPartitions <n> -k myKeyspace -t myTable\n" }, { "answer_id":...
2022/11/30
[ "https://Stackoverflow.com/questions/74629748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12287618/" ]
74,629,752
<p>Im in the process of trying to recreate a piece of python code for a simple calculator in C++,</p> <p>in python i have the following piece of code thats located in a while loop</p> <pre><code>func = str(input(&quot;which function: add, sub, div, mult&quot;)) if func in (&quot;add&quot;, &quot;sub&quot;, &quot;div&q...
[ { "answer_id": 74629897, "author": "Marek R", "author_id": 1387438, "author_profile": "https://Stackoverflow.com/users/1387438", "pm_score": 2, "selected": false, "text": "template<typename T, typename... Args>\n[[nodiscard]] constexpr bool isAnyOf(T&& a, Args&&... args) noexcept\n{\n ...
2022/11/30
[ "https://Stackoverflow.com/questions/74629752", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20349653/" ]
74,629,837
<p>as mentioned in nebula documentation here :</p> <p><a href="https://docs.nebula-graph.io/1.2.0/manual-EN/2.query-language/1.data-types/data-types/" rel="nofollow noreferrer">https://docs.nebula-graph.io/1.2.0/manual-EN/2.query-language/1.data-types/data-types/</a></p> <p><a href="https://i.stack.imgur.com/2DES6.png"...
[ { "answer_id": 74629985, "author": "saber tabatabaee yazdi", "author_id": 308578, "author_profile": "https://Stackoverflow.com/users/308578", "pm_score": 0, "selected": false, "text": "match (v:school) return v,now() limit 10;\n" }, { "answer_id": 74638584, "author": "Wey Gu"...
2022/11/30
[ "https://Stackoverflow.com/questions/74629837", "https://Stackoverflow.com", "https://Stackoverflow.com/users/308578/" ]
74,629,850
<p>I have classic bill of material table:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>PartId</th> <th>SubPartId</th> <th>Quantity</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>2</td> <td>2</td> </tr> <tr> <td>1</td> <td>3</td> <td>4</td> </tr> <tr> <td>1</td> <td>5</td> <td>8</td> </t...
[ { "answer_id": 74630233, "author": "Patrick Hurst", "author_id": 18522514, "author_profile": "https://Stackoverflow.com/users/18522514", "pm_score": 2, "selected": false, "text": "DECLARE @parts TABLE (PartID INT, SubPartID INT, Quantity INT)\nINSERT INTO @parts (PartID, SubPartID, Quant...
2022/11/30
[ "https://Stackoverflow.com/questions/74629850", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19977678/" ]
74,629,870
<p>I'm struggling to find a way to create a dictionary with 2 columns as key identifier. I can't use just one cause it wouldnt be unique. The nameRng and operRng of a row would be unique.</p> <p>Here's some code</p> <pre><code> Dim LstRw As Long, Rng As Range, cell As Range, cell2 As Range Dim Dict As Object ...
[ { "answer_id": 74630233, "author": "Patrick Hurst", "author_id": 18522514, "author_profile": "https://Stackoverflow.com/users/18522514", "pm_score": 2, "selected": false, "text": "DECLARE @parts TABLE (PartID INT, SubPartID INT, Quantity INT)\nINSERT INTO @parts (PartID, SubPartID, Quant...
2022/11/30
[ "https://Stackoverflow.com/questions/74629870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15424097/" ]