qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,608,937
<p>So I come across this simple lines of code from a tutorial on YouTube. It's about recursion.</p> <pre><code>public class whatever{ public static void main (string[] args){ factorial(7); } private static int factorial(int num){ if(num&lt;1) return 1; return num * factorial(num -1); } } </cod...
[ { "answer_id": 74608997, "author": "Dropout", "author_id": 1964272, "author_profile": "https://Stackoverflow.com/users/1964272", "pm_score": 1, "selected": false, "text": "factorial(0) 1 f(7) = n * f(6)\nn * f(6) = n * n-1 * f(5)\n .....\n f(7) = n * n-1 * n-2 * ... * n-6 + ...
2022/11/29
[ "https://Stackoverflow.com/questions/74608937", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19242261/" ]
74,608,944
<p>I have a dataframe as follows:</p> <pre><code>s = df.head().to_dict() print(s) {'BoP transfers': {1998: 12.346282212735618, 1999: 19.06438060024298, 2000: 18.24888031473687, 2001: 24.860019912667006, 2002: 32.38242225822908}, 'Current balance': {1998: -6.7953, 1999: -2.9895, 2000: -3.9694, 2001: 1.17...
[ { "answer_id": 74608960, "author": "Jason Baker", "author_id": 3249641, "author_profile": "https://Stackoverflow.com/users/3249641", "pm_score": 1, "selected": false, "text": "columns = df.columns.tolist()\ncolumns.insert(0, columns.pop(columns.index(\"Gross foreign liabilities\")))\ndf ...
2022/11/29
[ "https://Stackoverflow.com/questions/74608944", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13609298/" ]
74,608,957
<p>My problem should be a variant of N queens problem:</p> <p>Is there an algorithm to print all ways to place N queens in a k*k chessboard?</p> <p>I have tried to modify the DFS method used in the N-queens problem like the following but soon realized that I could only search the first &quot;queen_number&quot; of rows ...
[ { "answer_id": 74610912, "author": "scr", "author_id": 18781246, "author_profile": "https://Stackoverflow.com/users/18781246", "pm_score": 0, "selected": false, "text": "from typing import Dict, List, Callable, Optional\n\n\ndef create_k_by_k_board(k: int) -> Dict[int, bool]:\n # True...
2022/11/29
[ "https://Stackoverflow.com/questions/74608957", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20628945/" ]
74,608,971
<p>Looking to convey more information in a Rich Table by using colors (specifically to track which modules given classes come from).</p> <p>On the web, it's fairly easy on find color palettes that are optimized for contrast, rather than esthetics. Here's a <a href="https://www.schemecolor.com/high-contrast.php" rel="n...
[ { "answer_id": 74610912, "author": "scr", "author_id": 18781246, "author_profile": "https://Stackoverflow.com/users/18781246", "pm_score": 0, "selected": false, "text": "from typing import Dict, List, Callable, Optional\n\n\ndef create_k_by_k_board(k: int) -> Dict[int, bool]:\n # True...
2022/11/29
[ "https://Stackoverflow.com/questions/74608971", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1394353/" ]
74,609,000
<p>The antd tables work well with Input components. I have been using the editable cell example at <a href="https://ant.design/components/table#components-table-demo-edit-cell" rel="nofollow noreferrer">https://ant.design/components/table#components-table-demo-edit-cell</a> and it works well with undo / redo functional...
[ { "answer_id": 74610912, "author": "scr", "author_id": 18781246, "author_profile": "https://Stackoverflow.com/users/18781246", "pm_score": 0, "selected": false, "text": "from typing import Dict, List, Callable, Optional\n\n\ndef create_k_by_k_board(k: int) -> Dict[int, bool]:\n # True...
2022/11/29
[ "https://Stackoverflow.com/questions/74609000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20629180/" ]
74,609,005
<p>I am trying to add NavigationLink inside NavigationView in which there is a custom designed button. I want to navigate on that button tap but NavigationLink code gives compilation error. it requires localisedTitle which I don't want to display and also tried to give Custom button in place of label but not working. A...
[ { "answer_id": 74610912, "author": "scr", "author_id": 18781246, "author_profile": "https://Stackoverflow.com/users/18781246", "pm_score": 0, "selected": false, "text": "from typing import Dict, List, Callable, Optional\n\n\ndef create_k_by_k_board(k: int) -> Dict[int, bool]:\n # True...
2022/11/29
[ "https://Stackoverflow.com/questions/74609005", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13301227/" ]
74,609,041
<p>im trying to validate a column using postgresql where values in the column are (0000-ASZAS) four numerical values-five alphbets</p> <pre><code>SELECT invoice_number, CASE WHEN invoice_number = '[0-9][0-9][0-9][0-9]-[A-Z][A-Z][A-Z][A-Z][A-Z]' THEN 'valid' ELSE 'invalid' END from invoices; </code></pre> <p>also trie...
[ { "answer_id": 74609084, "author": "Lennart - Slava Ukraini", "author_id": 3592396, "author_profile": "https://Stackoverflow.com/users/3592396", "pm_score": 2, "selected": true, "text": "WHEN invoice_number ~ '[0-9][0-9][0-9][0-9]-[A-Z][A-Z][A-Z][A-Z][A-Z]' \n" }, { "answer_id": ...
2022/11/29
[ "https://Stackoverflow.com/questions/74609041", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20629273/" ]
74,609,047
<p>df</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Season</th> <th>Date</th> <th>Team</th> <th>Team_Season_Code</th> <th>TS</th> <th>L</th> <th>Opponent</th> <th>Opponent_Season_Code</th> <th>OS</th> </tr> </thead> <tbody> <tr> <td>2019</td> <td>20181109</td> <td>Abilene_Chr</td> <td>1_2...
[ { "answer_id": 74609100, "author": "Panda Kim", "author_id": 20430449, "author_profile": "https://Stackoverflow.com/users/20430449", "pm_score": 0, "selected": false, "text": "df.merge(Overall_Season_Avg, on=['Team_Season_Code', 'Team'], how='left')\n transform agg" }, { "answer_...
2022/11/29
[ "https://Stackoverflow.com/questions/74609047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19154784/" ]
74,609,065
<p>I'm writing a dissector <sup>(to be added to <code>DissectorTable.get(&quot;tcp.port&quot;)</code>)</sup> for a TCP-based application. I've gone through the Wireshark API <a href="https://www.wireshark.org/docs/wsdg_html_chunked/wsluarm_modules.html" rel="nofollow noreferrer">doc</a> but could not find out how to ge...
[ { "answer_id": 74631350, "author": "Christopher Maynard", "author_id": 2755698, "author_profile": "https://Stackoverflow.com/users/2755698", "pm_score": 2, "selected": true, "text": "local tcp_flags_syn = Field.new(\"tcp.flags.syn\")\nlocal tcp_flags_ack = Field.new(\"tcp.flags.ack\")\n\...
2022/11/29
[ "https://Stackoverflow.com/questions/74609065", "https://Stackoverflow.com", "https://Stackoverflow.com/users/900078/" ]
74,609,090
<p>I'm creating an employee leave form, with 3 categories of permissions coming from another table, namely: &quot;Terlambat&quot;, &quot;Pulang Cepat &quot;, &quot;Sakit&quot;. <a href="https://i.stack.imgur.com/8lBHy.png" rel="nofollow noreferrer">select option for categories</a></p> <p>For &quot;SAKIT&quot; category,...
[ { "answer_id": 74611477, "author": "Piyush Sapariya", "author_id": 5527729, "author_profile": "https://Stackoverflow.com/users/5527729", "pm_score": 1, "selected": false, "text": "if($validator->fails()) {\n return Redirect::back()->withErrors($validator);\n}\n @if($errors->any())\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74609090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17729116/" ]
74,609,093
<p>I have a string of the form:</p> <pre><code>Abu Dhabi1.90Morrisville Samp Army1.90 Deccan Gladiators1.40The Chennai Braves2.87 Bangla Tigers1.90Delhi Bulls1.90 New Zealand1.68India2.15 Australia1.09Draw14.00West Indies13.00 Sri Lanka1.51Afghanistan2.50 Tas Tigers1.28South Australia3.50 </code></pre> <p>Is there a re...
[ { "answer_id": 74611477, "author": "Piyush Sapariya", "author_id": 5527729, "author_profile": "https://Stackoverflow.com/users/5527729", "pm_score": 1, "selected": false, "text": "if($validator->fails()) {\n return Redirect::back()->withErrors($validator);\n}\n @if($errors->any())\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74609093", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6781859/" ]
74,609,117
<p>I want to add some extra features after new user login with a google login in Flutter.so I need to know if a user is new or not . if the user is new then I want to add some user information. other wise navigate to another page.</p> <p>So how can I check If the User is new or not?</p>
[ { "answer_id": 74609150, "author": "Frank van Puffelen", "author_id": 209103, "author_profile": "https://Stackoverflow.com/users/209103", "pm_score": 2, "selected": false, "text": "User metadata creationTime lastSignInTime" }, { "answer_id": 74609446, "author": "Ayyaz meo", ...
2022/11/29
[ "https://Stackoverflow.com/questions/74609117", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13773550/" ]
74,609,129
<p>I have about 100,000 price-table records in XML and I need to remove entries where the price amount is 0.00. The data is structured as follows:</p> <pre class="lang-xml prettyprint-override"><code>&lt;data&gt; &lt;price-table product-id=&quot;100109a&quot;&gt; &lt;amount quantity=&quot;1&quot;&gt;10.00&l...
[ { "answer_id": 74614816, "author": "Hermann12", "author_id": 12621346, "author_profile": "https://Stackoverflow.com/users/12621346", "pm_score": 1, "selected": false, "text": "type(xmltowrite) <class 'bytes'> ET.tostring(root).decode(\"Utf-8\") <class 'str'>" }, { "answer_id": 74...
2022/11/29
[ "https://Stackoverflow.com/questions/74609129", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7483676/" ]
74,609,139
<p>I am new to Docker, and as a learning exercise, I want to make a custom Python package available through a Docker image. The package is called <code>hashtable-nicolerg</code> and includes a <code>HashTable</code> class that can be imported with <code>from hashtable_nicolerg.hashtable import HashTable</code>.</p> <p>...
[ { "answer_id": 74609167, "author": "Silvio Mayolo", "author_id": 2288659, "author_profile": "https://Stackoverflow.com/users/2288659", "pm_score": 3, "selected": true, "text": "PYTHONSTARTUP PYTHONSTARTUP .bashrc # .bashrc\nexport PYTHONSTARTUP=~/.python_startup\n # .python_startup\nfrom...
2022/11/29
[ "https://Stackoverflow.com/questions/74609139", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17800293/" ]
74,609,162
<p>`Hi everyone, I am new to Swift and following a biometrics authentication tutorial to click a button and use Face ID or Touch ID.</p> <p>Nothing happens when the biometric authentication button is pressed because canEvaluate etc do not get set to true. Details below.</p> <p>variables and the relevant function</p> <p...
[ { "answer_id": 74609167, "author": "Silvio Mayolo", "author_id": 2288659, "author_profile": "https://Stackoverflow.com/users/2288659", "pm_score": 3, "selected": true, "text": "PYTHONSTARTUP PYTHONSTARTUP .bashrc # .bashrc\nexport PYTHONSTARTUP=~/.python_startup\n # .python_startup\nfrom...
2022/11/29
[ "https://Stackoverflow.com/questions/74609162", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19511822/" ]
74,609,188
<p>I want to compare all the values in column B with the values in column A using the &lt; operator, then display the results in a label..</p> <p>i got this code which counts how many data have value &lt; 0 in column A. and displays the result in label.</p> <pre><code> int Col_A = Dt.AsEnumerable().Where(x =&gt;...
[ { "answer_id": 74609167, "author": "Silvio Mayolo", "author_id": 2288659, "author_profile": "https://Stackoverflow.com/users/2288659", "pm_score": 3, "selected": true, "text": "PYTHONSTARTUP PYTHONSTARTUP .bashrc # .bashrc\nexport PYTHONSTARTUP=~/.python_startup\n # .python_startup\nfrom...
2022/11/29
[ "https://Stackoverflow.com/questions/74609188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15895383/" ]
74,609,206
<p>I have a table in below format:</p> <p>Table Name: <em>employee</em></p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>id</th> <th>code</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>e1</td> </tr> <tr> <td>2</td> <td>e2</td> </tr> </tbody> </table> </div> <p>Need help in insert command:</...
[ { "answer_id": 74609782, "author": "d r", "author_id": 19023353, "author_profile": "https://Stackoverflow.com/users/19023353", "pm_score": 1, "selected": false, "text": "INSERT INTO EMPLOYEE (ID, CODE)\n(Select Nvl(Max(ID), 0) + 1 \"NEW_ID\", 'e' || To_Char(Nvl(Max(ID), 0) + 1) \"NEW_COD...
2022/11/29
[ "https://Stackoverflow.com/questions/74609206", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1361143/" ]
74,609,236
<p>How to convert a list into map form and get results like this:</p> <pre><code>{&quot;data&quot;:[{&quot;id_pet&quot;:&quot;63&quot;,&quot;id_habit&quot;:0},{&quot;id_pet&quot;:&quot;64&quot;,&quot;id_habbit&quot;:0}]} </code></pre> <p>My code:</p> <pre><code>event.listPet.asMap(); </code></pre> <p>My list:</p> <pre>...
[ { "answer_id": 74609262, "author": "Rahul", "author_id": 16569443, "author_profile": "https://Stackoverflow.com/users/16569443", "pm_score": 0, "selected": false, "text": "return {\"data\": event.listPet.map((e) => e.toMap()).toList(),};\n toMap" }, { "answer_id": 74609292, "...
2022/11/29
[ "https://Stackoverflow.com/questions/74609236", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19646043/" ]
74,609,238
<p>I want React to render key presses from a non-React context, more specifically the string array <code>keys</code>:</p> <pre><code>import * as React from &quot;react&quot;; import { render } from &quot;react-dom&quot;; let keys: string[] = []; function handleKeypress(event: any) { keys.push(event.key); console....
[ { "answer_id": 74609264, "author": "CertainPerformance", "author_id": 9515207, "author_profile": "https://Stackoverflow.com/users/9515207", "pm_score": 3, "selected": true, "text": "function App() {\n const [keys, setKeys] = React.useState<string[]>([]);\n useEffect(() => {\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74609238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/122536/" ]
74,609,243
<p>I upgraded my Spring Boot project to Spring Boot 3.0.0 and Hibernate 6.x. The application starts without any error and when I access any table information that has <code>Instant</code> date type, I get below error</p> <pre><code>Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The conversion from datetime...
[ { "answer_id": 74609291, "author": "Pavan Jadda", "author_id": 9244861, "author_profile": "https://Stackoverflow.com/users/9244861", "pm_score": 0, "selected": false, "text": "Instant 2020-08-03 14:54:40.0000000 2020-08-03 14:54:40.0000000 +00:00 spring.jpa.properties.hibernate.type.pre...
2022/11/29
[ "https://Stackoverflow.com/questions/74609243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9244861/" ]
74,609,276
<p>I keep reading that Lisp macros are one of the most powerful features of the language. But reading over the specifications and manuals, they are just functions whose arguments are unevaluated.</p> <p>Given any macro <code>(defmacro example (arg1 ... argN) (body-forms))</code> I could just write <code>(defun example ...
[ { "answer_id": 74609291, "author": "Pavan Jadda", "author_id": 9244861, "author_profile": "https://Stackoverflow.com/users/9244861", "pm_score": 0, "selected": false, "text": "Instant 2020-08-03 14:54:40.0000000 2020-08-03 14:54:40.0000000 +00:00 spring.jpa.properties.hibernate.type.pre...
2022/11/29
[ "https://Stackoverflow.com/questions/74609276", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19484949/" ]
74,609,279
<p>May I know how to read and parse .xml file with groovy? The groovy file needs to read the xml and grab shop id and country information</p> <pre><code>&lt;?xml version=&quot;1.0&quot;?&gt; &lt;Someinformation&gt; &lt;catalog&gt; &lt;book id=&quot;bk101&quot;&gt; &lt;author&gt;Gambardella, Matthew&lt;/author&...
[ { "answer_id": 74610053, "author": "Andrej Istomin", "author_id": 1842599, "author_profile": "https://Stackoverflow.com/users/1842599", "pm_score": 1, "selected": false, "text": "def xml = new groovy.xml.XmlSlurper().parse(\"book.xml\")\n\ndef total = xml.'*'.size()\nprintln \"Total amo...
2022/11/29
[ "https://Stackoverflow.com/questions/74609279", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9960443/" ]
74,609,290
<p>The perfect answer to my question already exists as the first answer by @akrun to this question <a href="https://www.stackoverflow.com/questions/66894918/sum-variable-between-dates-in-r">Sum variable between dates in R?</a></p> <p>the answer by @akrun is exactly what I am looking for, but when I run the code with th...
[ { "answer_id": 74609426, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 2, "selected": false, "text": "fuzzyjoin match_fun library(fuzzyjoin)\nlibrary(dplyr)\n\nfuzzy_left_join(\n df2, df1,\n by = c(\n \"Date\" = ...
2022/11/29
[ "https://Stackoverflow.com/questions/74609290", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20629476/" ]
74,609,317
<p>I have a country field and a state field. I want to show the state field when the user chooses United States. Otherwise, I want it to be hidden.</p> <p>This is my js script:</p> <pre><code>@section Scripts { &lt;script type=&quot;text/javascript&quot;&gt; $(&quot;#Country&quot;).change(function () { ...
[ { "answer_id": 74609426, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 2, "selected": false, "text": "fuzzyjoin match_fun library(fuzzyjoin)\nlibrary(dplyr)\n\nfuzzy_left_join(\n df2, df1,\n by = c(\n \"Date\" = ...
2022/11/29
[ "https://Stackoverflow.com/questions/74609317", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20517307/" ]
74,609,346
<p>I'm trying to use react-router-dom v6.4+ in my project. I implemented it as a route array of objects. Its worked as routing but suddenly I got another issue realated this. I can't call any hook inside the Component which located on <code>element</code> property in route array.<br /> In the <code>route.ts</code> file...
[ { "answer_id": 74609426, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 2, "selected": false, "text": "fuzzyjoin match_fun library(fuzzyjoin)\nlibrary(dplyr)\n\nfuzzy_left_join(\n df2, df1,\n by = c(\n \"Date\" = ...
2022/11/29
[ "https://Stackoverflow.com/questions/74609346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19761597/" ]
74,609,348
<p>In Power BI, I have a table based on <code>UNION</code> of 2 different tables:</p> <pre><code>ResultTable = UNION ( SELECTCOLUMNS ( 'Table1', &quot;Name&quot;, 'Table1'[name] , &quot;Number&quot;, 'Table1'[number] ) , SELECTCOLUMNS ( 'Table...
[ { "answer_id": 74609426, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 2, "selected": false, "text": "fuzzyjoin match_fun library(fuzzyjoin)\nlibrary(dplyr)\n\nfuzzy_left_join(\n df2, df1,\n by = c(\n \"Date\" = ...
2022/11/29
[ "https://Stackoverflow.com/questions/74609348", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18443805/" ]
74,609,355
<ul> <li><p>I want to loop through an array of strings</p> </li> <li><p>When a new string, from the array, is selected I want to print out a substring of the selected string every 0.1 second</p> </li> <li><p>After the entire string is printed I want to pause and then select the next string in the array</p> </li> <li><p...
[ { "answer_id": 74609426, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 2, "selected": false, "text": "fuzzyjoin match_fun library(fuzzyjoin)\nlibrary(dplyr)\n\nfuzzy_left_join(\n df2, df1,\n by = c(\n \"Date\" = ...
2022/11/29
[ "https://Stackoverflow.com/questions/74609355", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2135210/" ]
74,609,360
<p>I have started learning linked list in python and after going through a lot material for leaning linked list. I found out that linked list is made of nodes(each node has two values namely the data and a address) and the first node is called the HEAD node and last node points towards the None value showing it to be t...
[ { "answer_id": 74609455, "author": "rootExplorr", "author_id": 4861910, "author_profile": "https://Stackoverflow.com/users/4861910", "pm_score": -1, "selected": false, "text": "L = SingleLinkedList()\n n = Node(10)\n n = Node(10)\nL.head = n\n n2 =Node(30)\nn1.link = n2\nL.display()\n" ...
2022/11/29
[ "https://Stackoverflow.com/questions/74609360", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15010931/" ]
74,609,511
<p>I had a network security class in my university. And there is a challenge for finding a secret number. Here is the code</p> <pre><code>#include &lt;stdlib.h&gt; #include &lt;time.h&gt; #include &lt;stdio.h&gt; void init() { setbuf(stdin, NULL); setbuf(stdout, NULL); } int main() { init(); srand(tim...
[ { "answer_id": 74609608, "author": "Guss", "author_id": 53538, "author_profile": "https://Stackoverflow.com/users/53538", "pm_score": 2, "selected": false, "text": "time() time() srand() time() srand() /dev/urandom" }, { "answer_id": 74610502, "author": "marco-a", "author...
2022/11/29
[ "https://Stackoverflow.com/questions/74609511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17611024/" ]
74,609,517
<p>I can limit the quantity of input if the user use the built in arrow icon inside the <code>textfield</code>. But when the user type it, it's not working</p> <p><a href="https://i.stack.imgur.com/jjogP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jjogP.png" alt="User use the keyboard" /></a></p>...
[ { "answer_id": 74610080, "author": "George Chond", "author_id": 17730652, "author_profile": "https://Stackoverflow.com/users/17730652", "pm_score": 2, "selected": true, "text": "onInput={(e) => {e.target.value > 10 ? e.target.value = 10 : e.target.value}}\n" }, { "answer_id": 746...
2022/11/29
[ "https://Stackoverflow.com/questions/74609517", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18478430/" ]
74,609,560
<p>Here is the example data I am working with. What I am trying to accomplish is 1) subtract b column from column a and 2) create the C column in front of a and b columns. I would like to loop through and create the C column for x, y and z.</p> <pre><code>import pandas as pd df = pd.DataFrame(data=[[100,200,400,500,111...
[ { "answer_id": 74609788, "author": "jezrael", "author_id": 2901002, "author_profile": "https://Stackoverflow.com/users/2901002", "pm_score": 3, "selected": true, "text": "DataFrame.xs drop_level=False rename concat DataFrame.sort_index dfa = df.xs('a', axis=1, level=1, drop_level=False)....
2022/11/29
[ "https://Stackoverflow.com/questions/74609560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18708380/" ]
74,609,659
<p><strong>The text:</strong></p> <pre><code>23 81 96 ... ... ... ...; 23 81 96 ... ... ... ... ... ... ...; 51 67 16 ... ... ... ... ... ... ... ...; 23 81 96 ... ... ... ... ... ... ... ... ... ... ...
[ { "answer_id": 74609696, "author": "blhsing", "author_id": 6890912, "author_profile": "https://Stackoverflow.com/users/6890912", "pm_score": 2, "selected": true, "text": "? . \\n 23 81 96.*?;\n" }, { "answer_id": 74609721, "author": "Guss", "author_id": 53538, "author...
2022/11/29
[ "https://Stackoverflow.com/questions/74609659", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7474282/" ]
74,609,670
<p>I have a private repository that I have already docker pushed my image into.</p> <p>Here is my one image in this repository: <a href="https://i.stack.imgur.com/hhMpo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hhMpo.png" alt="enter image description here" /></a></p> <p>However, when I got into...
[ { "answer_id": 74609696, "author": "blhsing", "author_id": 6890912, "author_profile": "https://Stackoverflow.com/users/6890912", "pm_score": 2, "selected": true, "text": "? . \\n 23 81 96.*?;\n" }, { "answer_id": 74609721, "author": "Guss", "author_id": 53538, "author...
2022/11/29
[ "https://Stackoverflow.com/questions/74609670", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19741062/" ]
74,609,707
<p>I have a posts collection and I want to return the latest posts and featured posts with 1 query.</p> <p>post document sample</p> <pre><code>{ &quot;title&quot;:&quot;Hello World&quot;, &quot;author&quot;:&quot;Bob Paul&quot;, &quot;featured&quot;:True, &quot;published&quot;:True, &quot;created_at&quot;:&quot;2019-01...
[ { "answer_id": 74609696, "author": "blhsing", "author_id": 6890912, "author_profile": "https://Stackoverflow.com/users/6890912", "pm_score": 2, "selected": true, "text": "? . \\n 23 81 96.*?;\n" }, { "answer_id": 74609721, "author": "Guss", "author_id": 53538, "author...
2022/11/29
[ "https://Stackoverflow.com/questions/74609707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9695723/" ]
74,609,719
<p>Here, I'm trying to swap the number using PHP but not able to swap. How to solve that problem.</p> <p>My Code :</p> <pre><code>&lt;?php $a = 45; $b = 78; echo &quot;Before swapping:&lt;br&gt;&lt;br&gt;&quot;; echo &quot;a =&quot;.$a.&quot; b=&quot;.$b; echo &quot;&lt;br/&gt;&lt;br/&gt;&quot;; // Swapping ...
[ { "answer_id": 74609732, "author": "Bhavik", "author_id": 20529186, "author_profile": "https://Stackoverflow.com/users/20529186", "pm_score": 3, "selected": true, "text": "// Swapping Logic \n\n $a=$a+$b; \n $b=$a-$b; \n $a=$a+$b; \n $a=$a+$b; \n $b=$a-$b; \n $a=$a-$...
2022/11/29
[ "https://Stackoverflow.com/questions/74609719", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20580686/" ]
74,609,733
<p>I've written this piece of code to see if I could convert simple numbers from decimal to, for example, binary numbers per base (e.g. binary base = 2) I know it wouldn't really be the correct number for hex, or anything above base = 9 for that matter, (that's why I added a space in <code>printf (temp[I])</code> so I ...
[ { "answer_id": 74609960, "author": "Allan Wind", "author_id": 9706, "author_profile": "https://Stackoverflow.com/users/9706", "pm_score": 0, "selected": false, "text": "main() counter = 0 for() decimal == 0 scanf() calloc() free() temp #include <stdio.h>\n#include <stdlib.h>\n\nvoid conv...
2022/11/29
[ "https://Stackoverflow.com/questions/74609733", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20630035/" ]
74,609,766
<p>Whenever my home page was reloaded my data was updated but I want to reflect data instantly. That's why I need a method that can refresh my page or method after every 1 second(flutter). pls, help me.</p>
[ { "answer_id": 74609960, "author": "Allan Wind", "author_id": 9706, "author_profile": "https://Stackoverflow.com/users/9706", "pm_score": 0, "selected": false, "text": "main() counter = 0 for() decimal == 0 scanf() calloc() free() temp #include <stdio.h>\n#include <stdlib.h>\n\nvoid conv...
2022/11/29
[ "https://Stackoverflow.com/questions/74609766", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19842804/" ]
74,609,823
<p>I am making a function that gets the students' Id, score, last name, and first name and compares them according to their Score, then the last name, and then the first name and prints the result in the descending format.</p> <p>I have used a Comparator to compare the elements of the array. The problem is that when th...
[ { "answer_id": 74609960, "author": "Allan Wind", "author_id": 9706, "author_profile": "https://Stackoverflow.com/users/9706", "pm_score": 0, "selected": false, "text": "main() counter = 0 for() decimal == 0 scanf() calloc() free() temp #include <stdio.h>\n#include <stdlib.h>\n\nvoid conv...
2022/11/29
[ "https://Stackoverflow.com/questions/74609823", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20315005/" ]
74,609,829
<p>Exercise: “Let’s go Grocery Shopping”</p> <p>A mother wants to list down the things she needs to buy, however, she needs a simple list that be run every time and can be modified whenever she changes her mind. Starting with just an empty list, write a function that creates a grocery list that does the following:</p> ...
[ { "answer_id": 74609960, "author": "Allan Wind", "author_id": 9706, "author_profile": "https://Stackoverflow.com/users/9706", "pm_score": 0, "selected": false, "text": "main() counter = 0 for() decimal == 0 scanf() calloc() free() temp #include <stdio.h>\n#include <stdlib.h>\n\nvoid conv...
2022/11/29
[ "https://Stackoverflow.com/questions/74609829", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20630177/" ]
74,609,836
<p>I am doing a node.js <a href="https://youtu.be/JmJ1WUoUIK4?t=13552" rel="nofollow noreferrer">manual</a> and trying to display the information obtained from <a href="https://jsonplaceholder.typicode.com/posts" rel="nofollow noreferrer">jsonplaceholder</a></p> <pre><code>app.get('/posts', async (req, res) =&gt; { ...
[ { "answer_id": 74610268, "author": "iiromutikainen", "author_id": 15104470, "author_profile": "https://Stackoverflow.com/users/15104470", "pm_score": 2, "selected": true, "text": "axios" } ]
2022/11/29
[ "https://Stackoverflow.com/questions/74609836", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5125876/" ]
74,609,852
<p>Hi when I assign the simple setTimeOut() function to a variable and console the variable, it produces some integer value as below:</p> <p><a href="https://i.stack.imgur.com/XBHvV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XBHvV.png" alt="enter image description here" /></a></p> <p>So, I want ...
[ { "answer_id": 74610268, "author": "iiromutikainen", "author_id": 15104470, "author_profile": "https://Stackoverflow.com/users/15104470", "pm_score": 2, "selected": true, "text": "axios" } ]
2022/11/29
[ "https://Stackoverflow.com/questions/74609852", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19541341/" ]
74,609,867
<p>Why do I get this error when I make my page an async function? everything works fine when it isn't an async function. The only difference is that it returns a pending object which isn't what I want.</p> <p>this is how I fetch the data:</p> <pre><code>const getData = async (id) =&gt; { const res = await fetch({ u...
[ { "answer_id": 74609881, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 1, "selected": false, "text": "export default function Page() { \n \n useEffect(() => { \n \n const getAll= async () ...
2022/11/29
[ "https://Stackoverflow.com/questions/74609867", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13586781/" ]
74,609,896
<p>Hello my code is basically on collision it will start the coroutine of slowing the enemy then after 3.2 seconds it reverts back to original.</p> <pre><code> private void OnTriggerEnter2D(Collider2D collision) { if (collision.tag == &quot;slowProjectile&quot;) { StartCoroutine(slowEnemy()); } } ...
[ { "answer_id": 74609999, "author": "Willard Peng", "author_id": 10259001, "author_profile": "https://Stackoverflow.com/users/10259001", "pm_score": 1, "selected": true, "text": "the Frozen effect doesn't stack public bool isFrozen = false;\n\nprivate void OnTriggerEnter2D(Collider2D coll...
2022/11/29
[ "https://Stackoverflow.com/questions/74609896", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20449786/" ]
74,609,908
<p>I have SQLite DB one table contains datetime field</p> <p>with datatype &quot;timestamp&quot; REAL value is 18696.0</p> <p><a href="https://i.stack.imgur.com/NR1j5.png" rel="nofollow noreferrer">attach image for table structure</a></p> <p>So, I want this 18696.0 value to be converted into MySQL Y-m-d format and resu...
[ { "answer_id": 74609955, "author": "Coderio", "author_id": 13379052, "author_profile": "https://Stackoverflow.com/users/13379052", "pm_score": -1, "selected": false, "text": "<?php\n echo date('Y-m-d H:i:s', 17889);\n?>\n 1970-01-01 04:58:09" }, { "answer_id": 74610034, "a...
2022/11/29
[ "https://Stackoverflow.com/questions/74609908", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20470803/" ]
74,609,923
<pre><code>const BottomTabCard=({props,navigation})=&gt; { const [isActive, setIsActive] = useState(''); return ( &lt;View style={[ styles.container, {height: props.TabHeight, width: props.TabWidth}, ]}&gt; &lt;View style={{flexDirection: 'row'}}&gt; &lt;TouchableOpacit...
[ { "answer_id": 74609955, "author": "Coderio", "author_id": 13379052, "author_profile": "https://Stackoverflow.com/users/13379052", "pm_score": -1, "selected": false, "text": "<?php\n echo date('Y-m-d H:i:s', 17889);\n?>\n 1970-01-01 04:58:09" }, { "answer_id": 74610034, "a...
2022/11/29
[ "https://Stackoverflow.com/questions/74609923", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19254334/" ]
74,609,928
<p>whenever I try to full screen my application, it doesn't scale. I've made multiple copies of this application trying different methods but none seem to work right.</p> <p>First attempt: Application was a <code>Parent</code>, it would scale the background but the elements inside wouldn't scale to screen size.</p> <p>...
[ { "answer_id": 74612801, "author": "Mr.Typo", "author_id": 14790684, "author_profile": "https://Stackoverflow.com/users/14790684", "pm_score": -1, "selected": false, "text": "import javafx.application.Application;\nimport javafx.beans.binding.Bindings;\nimport javafx.beans.binding.Object...
2022/11/29
[ "https://Stackoverflow.com/questions/74609928", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18969521/" ]
74,609,949
<p>i am trying to pass value from login and register into dashbord since sign is a unique compont i dont know how to pass log from login and register can someone help</p> <p><strong>sign.js</strong></p> <pre><code>export default function Sign({navigation}) { async function onGoogleButtonPress() { await GoogleSign...
[ { "answer_id": 74610145, "author": "rafiulah", "author_id": 17426448, "author_profile": "https://Stackoverflow.com/users/17426448", "pm_score": -1, "selected": false, "text": "async-storage react-navigation import { Text, View, Button } from 'react-native';\nimport { NavigationContainer ...
2022/11/29
[ "https://Stackoverflow.com/questions/74609949", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17814678/" ]
74,609,962
<p>I made this custom hook.</p> <pre><code>import axios from &quot;axios&quot;; import Cookies from &quot;js-cookie&quot;; import React from &quot;react&quot;; const useGetConferList= () =&gt; { let token = JSON.parse(localStorage.getItem(&quot;AuthToken&quot;)); const Idperson = JSON.parse(Cookies.get(&quot;user&q...
[ { "answer_id": 74610145, "author": "rafiulah", "author_id": 17426448, "author_profile": "https://Stackoverflow.com/users/17426448", "pm_score": -1, "selected": false, "text": "async-storage react-navigation import { Text, View, Button } from 'react-native';\nimport { NavigationContainer ...
2022/11/29
[ "https://Stackoverflow.com/questions/74609962", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20395245/" ]
74,609,978
<p>I am have a xml layout, when I set onClick in java code to imageview with the id <code>iv_contact</code> and imageview with id <code>iv_user</code>, the imageview on top doesn't work, it caught the onClick event of the bottom ImageView, how to solve this problem?</p> <p>This is my xml layout:</p> <pre><code>&lt;andr...
[ { "answer_id": 74610145, "author": "rafiulah", "author_id": 17426448, "author_profile": "https://Stackoverflow.com/users/17426448", "pm_score": -1, "selected": false, "text": "async-storage react-navigation import { Text, View, Button } from 'react-native';\nimport { NavigationContainer ...
2022/11/29
[ "https://Stackoverflow.com/questions/74609978", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,610,014
<p>The following is the exception i receive .Net core and rabbitMQ : The AMQP operation was interrupted: AMQP close-reason, initiated by Peer, code=405, text='RESOURCE_LOCKED - cannot obtain exclusive access to locked queue 'demo-queue' in vhost '/'. It could be originally declared on another connection or the exclusiv...
[ { "answer_id": 74610145, "author": "rafiulah", "author_id": 17426448, "author_profile": "https://Stackoverflow.com/users/17426448", "pm_score": -1, "selected": false, "text": "async-storage react-navigation import { Text, View, Button } from 'react-native';\nimport { NavigationContainer ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610014", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12033398/" ]
74,610,023
<p>Hazelcast cluster running in different hosts IP1, IP2... hazelcast.xml configure the TCP-IP members <a href="https://i.stack.imgur.com/RQCRa.png" rel="nofollow noreferrer">enter image description here</a></p> <p>Now I want to expanding the cluster to support more service. I install a new hazelcast in new IP3</p> <p>...
[ { "answer_id": 74610145, "author": "rafiulah", "author_id": 17426448, "author_profile": "https://Stackoverflow.com/users/17426448", "pm_score": -1, "selected": false, "text": "async-storage react-navigation import { Text, View, Button } from 'react-native';\nimport { NavigationContainer ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610023", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20630141/" ]
74,610,026
<p>I have 2 sets of URLs. I want to loop through one set and compare each value with <code>.has</code> to the 2nd set.</p> <p>To that effect I have:</p> <pre><code> urlSet1.forEach(function(value) { if (urlSet2.has(value) == false) { newUrl = value; return false; } }) </code></pre> <p>However, of...
[ { "answer_id": 74610145, "author": "rafiulah", "author_id": 17426448, "author_profile": "https://Stackoverflow.com/users/17426448", "pm_score": -1, "selected": false, "text": "async-storage react-navigation import { Text, View, Button } from 'react-native';\nimport { NavigationContainer ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610026", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1433268/" ]
74,610,032
<p>I'm migrating multiple projects from Java 8 to Java 11 and I was wondering if Java 8 is forward compatible with Java 11. In other words, is it possible to use artifacts compiled against Java 11 in Java 8 projects?</p>
[ { "answer_id": 74610145, "author": "rafiulah", "author_id": 17426448, "author_profile": "https://Stackoverflow.com/users/17426448", "pm_score": -1, "selected": false, "text": "async-storage react-navigation import { Text, View, Button } from 'react-native';\nimport { NavigationContainer ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610032", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20630375/" ]
74,610,066
<p>In the application there is column type where the type are: Users and Admin.</p> <p>I want to separate the app file of users to admin.</p> <p>I already edited the file of</p> <p><strong>AuthenticatedSessionController</strong></p> <pre><code>if($user_details-&gt;type != 0) { return redirect()-&gt;intended(RouteSe...
[ { "answer_id": 74610145, "author": "rafiulah", "author_id": 17426448, "author_profile": "https://Stackoverflow.com/users/17426448", "pm_score": -1, "selected": false, "text": "async-storage react-navigation import { Text, View, Button } from 'react-native';\nimport { NavigationContainer ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610066", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6858228/" ]
74,610,073
<p>Dear Excel masters please take a look. Here's the formula that I want to use:</p> <pre><code>Filter(A1:A4,ISNUMBER(SEARCH({&quot;aa&quot;,&quot;bb&quot;,&quot;cc&quot;,&quot;dd&quot;,&quot;ee&quot;,&quot;ff&quot;,&quot;gg&quot;},B2:B4))) </code></pre> <p>What ISNUMBER returned is a table of array that Filter functio...
[ { "answer_id": 74610145, "author": "rafiulah", "author_id": 17426448, "author_profile": "https://Stackoverflow.com/users/17426448", "pm_score": -1, "selected": false, "text": "async-storage react-navigation import { Text, View, Button } from 'react-native';\nimport { NavigationContainer ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610073", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8963010/" ]
74,610,092
<p>I am trying to build a c++ application that uses sql.</p> <p>For that I need <code>sqlite3</code> header. I have already installed sql in my system and</p> <p><code>sqlite3</code> in terminal gives:</p> <p><code>SQLite version 3.36.0 2021-06-18 18:36:39 Enter &quot;.help&quot; for usage hints. Connected to a transie...
[ { "answer_id": 74610145, "author": "rafiulah", "author_id": 17426448, "author_profile": "https://Stackoverflow.com/users/17426448", "pm_score": -1, "selected": false, "text": "async-storage react-navigation import { Text, View, Button } from 'react-native';\nimport { NavigationContainer ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610092", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15031437/" ]
74,610,101
<p>I have a matrix A of size NXN with float values and another boolean matrix B of size NXN</p> <p>For every row, I need to find the mean of all values in A belonging to indices where True is the corresponding value for that index in matrix B</p> <p>Similarly, I need to find the mean of all values in A belonging to ind...
[ { "answer_id": 74610145, "author": "rafiulah", "author_id": 17426448, "author_profile": "https://Stackoverflow.com/users/17426448", "pm_score": -1, "selected": false, "text": "async-storage react-navigation import { Text, View, Button } from 'react-native';\nimport { NavigationContainer ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610101", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4508623/" ]
74,610,105
<p>I am trying to understand how numpy handles the float32 datatype.</p> <p>The following code produces 0.25815687</p> <pre><code>print(np.float32(0.2581568658351898).astype(str)) # 0.25815687 </code></pre> <p>But an online float converter <a href="https://www.h-schmidt.net/FloatConverter/IEEE754.html" rel="nofollow no...
[ { "answer_id": 74611682, "author": "rveronese", "author_id": 4664776, "author_profile": "https://Stackoverflow.com/users/4664776", "pm_score": 0, "selected": false, "text": "print(f\"{np.float32(0.2581568658351898):.25f}\")\n :.25f" }, { "answer_id": 74612193, "author": "chux...
2022/11/29
[ "https://Stackoverflow.com/questions/74610105", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18347885/" ]
74,610,108
<p>I want the slider to not pass a certain limit. How can I set this is HTML and also change it in javascript?</p> <pre class="lang-html prettyprint-override"><code>&lt;input type=&quot;range&quot; min=&quot;0&quot; max=&quot;100&quot; value=&quot;30&quot;&gt; </code></pre> <p>I want to set it so that the slider can n...
[ { "answer_id": 74610193, "author": "Layhout", "author_id": 17308201, "author_profile": "https://Stackoverflow.com/users/17308201", "pm_score": 3, "selected": true, "text": "function test(e, el) {\n if (e.target.value > 70) el.value = 70;\n document.querySelector(\"h1\").innerHTML = \"r...
2022/11/29
[ "https://Stackoverflow.com/questions/74610108", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20173895/" ]
74,610,114
<p>i need help with my app. iam new to flutter and wanted to try to make a homepage with an intresting button. i have design my homepage in figma but i dont really know how to make the button to be the same, so here's my figma UI design that i want to implement</p> <p><a href="https://i.stack.imgur.com/Tgo2Z.png" rel="...
[ { "answer_id": 74610182, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 2, "selected": false, "text": "asset Widget buildCustomButton(String imagePath, String title, Function()? onTap) {\n return InkWell(\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20229067/" ]
74,610,117
<p>I'm using <code>ng-bootstrap</code> modal</p> <p>import { NgbModal, ModalDismissReasons } from &quot;@ng-bootstrap/ng-bootstrap&quot;;</p> <p>On button click it is opened properly</p> <pre><code>&lt;button class=&quot;btn labelbtn accountbtn customnavbtn&quot;(click)=&quot;demobutton(UploadModal)&quot; type=&quot;bu...
[ { "answer_id": 74610182, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 2, "selected": false, "text": "asset Widget buildCustomButton(String imagePath, String title, Function()? onTap) {\n return InkWell(\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610117", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3653474/" ]
74,610,150
<p>I'm trying to iterate through a nested object to retrieve a specific object identified by a string. In the sample object below, the identifier string is the &quot;label&quot; property. I don't know how to iterate down through the tree to return the appropriate object.</p> <p>My Ruby and Rails versions are pretty old...
[ { "answer_id": 74610182, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 2, "selected": false, "text": "asset Widget buildCustomButton(String imagePath, String title, Function()? onTap) {\n return InkWell(\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610150", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20519909/" ]
74,610,230
<p>I have a JS where I can detect if uppercase is being entered, but I'm unable to convert the text text to lower case. i have used CSS <code>text-transform: lowercase;</code> but this shows that it's lower but once submitted, it shows the text as normal (original format). I have tried with jquery <code>toLowerCase();<...
[ { "answer_id": 74610620, "author": "bobi", "author_id": 18990544, "author_profile": "https://Stackoverflow.com/users/18990544", "pm_score": 2, "selected": false, "text": "$('input').keyup(function(){\n let val = $(this).val().toLowerCase()\n $(this).val(val)\n}) <script src=\"https://cdn...
2022/11/29
[ "https://Stackoverflow.com/questions/74610230", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17016121/" ]
74,610,270
<p>I have a database with <code>users</code> collection which contains a <code>verified</code> field in its schema. I want users that have not been verified 5min after account creation to be deleted. How can I do this?</p> <p>I am already familiar with the <code>expires</code> option, but I am not sure how I can apply ...
[ { "answer_id": 74610620, "author": "bobi", "author_id": 18990544, "author_profile": "https://Stackoverflow.com/users/18990544", "pm_score": 2, "selected": false, "text": "$('input').keyup(function(){\n let val = $(this).val().toLowerCase()\n $(this).val(val)\n}) <script src=\"https://cdn...
2022/11/29
[ "https://Stackoverflow.com/questions/74610270", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20023779/" ]
74,610,287
<p>im trying to display my api products but it is not displaying in browser</p> <p>[1[2<a href="https://i.stack.imgur.com/LoOiL.png" rel="nofollow noreferrer">enter image description here</a>](<a href="https://i.stack.imgur.com/HsE8K.png" rel="nofollow noreferrer">https://i.stack.imgur.com/HsE8K.png</a>)](<a href="http...
[ { "answer_id": 74610620, "author": "bobi", "author_id": 18990544, "author_profile": "https://Stackoverflow.com/users/18990544", "pm_score": 2, "selected": false, "text": "$('input').keyup(function(){\n let val = $(this).val().toLowerCase()\n $(this).val(val)\n}) <script src=\"https://cdn...
2022/11/29
[ "https://Stackoverflow.com/questions/74610287", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20630578/" ]
74,610,295
<p>I have an array of objects, I want to be able to join it a string followed by having some of those array objects as part of a newly formed ordered list.</p> <p>My code:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippe...
[ { "answer_id": 74610384, "author": "Andrew Parks", "author_id": 5898421, "author_profile": "https://Stackoverflow.com/users/5898421", "pm_score": 2, "selected": false, "text": "let arr = [{\"message\":\"message 1\",\"date\":\"date 1\",\"text\":\"text 1\"},\n {\"message\":\"mess...
2022/11/29
[ "https://Stackoverflow.com/questions/74610295", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10034685/" ]
74,610,307
<p>I would like to add a description in Swagger documentation that some parameters in request body are optional.</p> <p>Should I use <code>@ApiParam</code> annotation for such description ? I tried to use <code>@ApiModelProperty(notes = &quot;&quot;)</code> but it didnt work.</p> <pre class="lang-java prettyprint-overr...
[ { "answer_id": 74610384, "author": "Andrew Parks", "author_id": 5898421, "author_profile": "https://Stackoverflow.com/users/5898421", "pm_score": 2, "selected": false, "text": "let arr = [{\"message\":\"message 1\",\"date\":\"date 1\",\"text\":\"text 1\"},\n {\"message\":\"mess...
2022/11/29
[ "https://Stackoverflow.com/questions/74610307", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7720801/" ]
74,610,334
<p>I want to write a REGEX that removes all combination of a group of characters from the end of strings. For instance removes &quot;k&quot;, &quot;t&quot;, &quot;a&quot;, &quot;u&quot; and all of their combinations from the end of the string:</p> <p><strong>Input:</strong></p> <pre><code>[&quot;Rajakatu&quot;,&quot;La...
[ { "answer_id": 74610622, "author": "Buttered_Toast", "author_id": 12522652, "author_profile": "https://Stackoverflow.com/users/12522652", "pm_score": 2, "selected": true, "text": "[ktau]{4}\\b aaaa" }, { "answer_id": 74610684, "author": "Kavya Kommuri", "author_id": 18726...
2022/11/29
[ "https://Stackoverflow.com/questions/74610334", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5116559/" ]
74,610,345
<p>Here i have created my trigger and it is working. how to call that trigger inside the procedure. please provide any solution for this.</p> <p>below is my trigger</p> <pre><code>create or replace Trigger emp_trigger Before update on Required_table Begin delete from log_table; insert into log_table(...
[ { "answer_id": 74610622, "author": "Buttered_Toast", "author_id": 12522652, "author_profile": "https://Stackoverflow.com/users/12522652", "pm_score": 2, "selected": true, "text": "[ktau]{4}\\b aaaa" }, { "answer_id": 74610684, "author": "Kavya Kommuri", "author_id": 18726...
2022/11/29
[ "https://Stackoverflow.com/questions/74610345", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18904720/" ]
74,610,358
<p>I have student and event tables linked by sid.</p> <pre><code> CREATE TABLE `students` ( `sid` int(8) NOT NULL COMMENT 'use', `active` enum('Yes','No','vac','Grad') NOT NULL DEFAULT 'Yes', `name` varchar(130) DEFAULT NULL, `bus` varchar(130) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; INSERT INTO `students` ...
[ { "answer_id": 74610393, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 3, "selected": true, "text": "ON SELECT c.name, c.sid, o.sid AS bid, c.bus\nFROM students c\nLEFT JOIN STATevent o\n ON o.sid = c.sid AN...
2022/11/29
[ "https://Stackoverflow.com/questions/74610358", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2772814/" ]
74,610,426
<p>I have a data file (<code>file.txt</code>) contains the below lines:</p> <pre class="lang-none prettyprint-override"><code>123 pro=tegs, ETA=12:00, team=xyz,user1=tom,dom=dby.com 345 pro=rbs, team=abc,user1=chan,dom=sbc.int,ETA=23:00 456 team=efg, pro=bvy,ETA=22:00,dom=sss.co.uk,user2=lis </code></pre> <p>I'm expect...
[ { "answer_id": 74610619, "author": "tripleee", "author_id": 874188, "author_profile": "https://Stackoverflow.com/users/874188", "pm_score": 2, "selected": false, "text": "cat -F $1 split awk -F 'ETA=' '$2 > 15 { split($0, n, /[ \\t]+/); print n[1] }' file.txt\n $2 12:00, team=xyz,user1=t...
2022/11/29
[ "https://Stackoverflow.com/questions/74610426", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20630621/" ]
74,610,476
<p>I want to find all files with specific name &quot;stdout.1.0&quot;, move it two/three levels up from its location. While moving it two/three levels up, I also want to rename it to &quot;testjob.out&quot;.</p> <p>All &quot;stdout.1.0&quot; files are located six levels down from parent directory.</p> <pre><code>./dirX...
[ { "answer_id": 74610537, "author": "Dominique", "author_id": 4279155, "author_profile": "https://Stackoverflow.com/users/4279155", "pm_score": 1, "selected": false, "text": "find . -type f -name stdout.1.0\n .. find . -type f -name stdout.1.0 -execdir mv {} ../../testjob.out \\;\n cp mv"...
2022/11/29
[ "https://Stackoverflow.com/questions/74610476", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20630415/" ]
74,610,486
<p>I have a sample dataframe as below</p> <p><a href="https://i.stack.imgur.com/2zCvM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2zCvM.png" alt="Column_Name Datatype FirstName string LastName string Department integer EmployeeID string" /></a></p> <p>I want this datafr...
[ { "answer_id": 74610625, "author": "Ravnclaw", "author_id": 14571316, "author_profile": "https://Stackoverflow.com/users/14571316", "pm_score": 0, "selected": false, "text": "data = pd.DataFrame({'Column_Name' : ['FirstName', 'LastName', 'Department'], 'Datatype' : ['Jane', 'Doe', 666]})...
2022/11/29
[ "https://Stackoverflow.com/questions/74610486", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4819146/" ]
74,610,494
<p>I have just started learning useContext hook and I am struck in this problem.</p> <p>I am not able use the hook itself when I am trying to print that in console its says undefined.</p> <p>This is the App.js</p> <pre><code>import &quot;./styles.css&quot;; import NoteState from &quot;./Context/Notes/NoteState&quot;; i...
[ { "answer_id": 74610646, "author": "lpizzinidev", "author_id": 13211263, "author_profile": "https://Stackoverflow.com/users/13211263", "pm_score": 0, "selected": false, "text": "NoteContext import NoteContext from './NoteContext';\n\nexport default function App() {\n return (\n <>\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610494", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19731938/" ]
74,610,527
<p>I am running Next.js 13.0.5 with Yarn 3.2.1 and Lerna 5.6.1.</p> <p>It seems like the main problem here is the build tool, because when I run the Next.js server itself (<code>yarn dev</code>) everything works perfectly.</p> <p>What error am I getting?</p> <pre><code>Type error: Cannot find module 'next/app' or its ...
[ { "answer_id": 74610646, "author": "lpizzinidev", "author_id": 13211263, "author_profile": "https://Stackoverflow.com/users/13211263", "pm_score": 0, "selected": false, "text": "NoteContext import NoteContext from './NoteContext';\n\nexport default function App() {\n return (\n <>\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610527", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1759249/" ]
74,610,553
<p>I have the following problem:</p> <p>I need to be able to log commands bound to the buttons in my code. The system that I am working on has all it's buttons as <code>RelayCommand</code>. I have found a website that explains how to do this, but with <code>RoutedCommands</code>. The link is a the button of the post. H...
[ { "answer_id": 74611509, "author": "EldHasp", "author_id": 13349759, "author_profile": "https://Stackoverflow.com/users/13349759", "pm_score": 1, "selected": false, "text": " public MainWindow()\n {\n InitializeComponent();\n\n AddHandler(ButtonBase.Cl...
2022/11/29
[ "https://Stackoverflow.com/questions/74610553", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20600659/" ]
74,610,565
<p>How would you write this without the help of any packages ? (same layout where mergeSort(int[] A) (take input of one array) and same with merge(int[] a, int[] l, int[] r)). Main issue is transalting Arrays.copyOfRange into the non -package version of java into this code. Thank you for answering this question.</p> <...
[ { "answer_id": 74610831, "author": "Rustam", "author_id": 15322661, "author_profile": "https://Stackoverflow.com/users/15322661", "pm_score": 0, "selected": false, "text": "Arrays.copyOfRange private static int[] copyArray(int[] original, int from, int to) {\n int [] res = new int[to-fr...
2022/11/29
[ "https://Stackoverflow.com/questions/74610565", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20627192/" ]
74,610,569
<p>i want to use controller and initialValue both at same time but showing error</p> <pre><code>TextFormField( controller: txtEmail, initialValue: initialValues['emailAddress'], decoration: InputDecoration( prefixIcon: Icon(Icons.email), label: Text('Email Address'), focusedBorder: UnderlineInputBorde...
[ { "answer_id": 74610831, "author": "Rustam", "author_id": 15322661, "author_profile": "https://Stackoverflow.com/users/15322661", "pm_score": 0, "selected": false, "text": "Arrays.copyOfRange private static int[] copyArray(int[] original, int from, int to) {\n int [] res = new int[to-fr...
2022/11/29
[ "https://Stackoverflow.com/questions/74610569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20377589/" ]
74,610,606
<p>How can I use observeEvent capture the HTML input id in shiny ?</p> <pre><code>shinyApp( ui = basicPage( HTML('&lt;input type=&quot;button&quot; name = &quot;b1&quot; value=&quot;Travel time&quot;/&gt;')), server = function(input, output, session) { observeEvent(input$b1, { print(paste(&quot;This will...
[ { "answer_id": 74611706, "author": "Bertil Baron", "author_id": 1951485, "author_profile": "https://Stackoverflow.com/users/1951485", "pm_score": 1, "selected": false, "text": "shinyjs shinyApp(\n ui = basicPage(\n shinyjs::useShinyjs(),\n HTML('<input type=\"button\" id = \"b1\" ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20297769/" ]
74,610,638
<p>I am trying to change the eraser icon of a slicer in power BI! is it possible to change it?</p>
[ { "answer_id": 74611706, "author": "Bertil Baron", "author_id": 1951485, "author_profile": "https://Stackoverflow.com/users/1951485", "pm_score": 1, "selected": false, "text": "shinyjs shinyApp(\n ui = basicPage(\n shinyjs::useShinyjs(),\n HTML('<input type=\"button\" id = \"b1\" ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13002545/" ]
74,610,668
<p>How do you replace numbers with np.nan in selected columns if the number falls in between 2 ranges?</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>A</th> <th>B</th> <th>C</th> <th>D</th> </tr> </thead> <tbody> <tr> <td>2</td> <td>3</td> <td>5</td> <td>7</td> </tr> <tr> <td>2</td> <td>8<...
[ { "answer_id": 74610767, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 3, "selected": true, "text": "cols = ['B', 'C']\nm = (df[cols].gt(7)|df[cols].lt(5)).reindex(columns=df.columns, fill_value=False)\n\ndf[m] = np.n...
2022/11/29
[ "https://Stackoverflow.com/questions/74610668", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10062025/" ]
74,610,682
<p>I want to write a cobol program when my input is 15.65778 then output should me 15.66 and When my input is 15.65000 then Output should be 15.65. Here rules is Basically two digits after the decimal point if its zero then output should be same otherwise input should be incremented by 0.1</p> <p>Iam expecting a soluti...
[ { "answer_id": 74615945, "author": "Roie", "author_id": 4205233, "author_profile": "https://Stackoverflow.com/users/4205233", "pm_score": 0, "selected": false, "text": "input pic 99v9(5)\ntemp pic 99v99\nres-r pic 99.99\n\nIF input(5:1) > 4 OR = ZERO \n COMPUTE temp ROUNDED = input\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610682", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20563397/" ]
74,610,692
<p>I would like to have my EKS nodes being able to host new pods only after a particular daemonSet pod is up and running. If a better way is to schedule pods only after ALL daemonsets are up, I am okay with that.</p> <p>How should I approach it?</p>
[ { "answer_id": 74615945, "author": "Roie", "author_id": 4205233, "author_profile": "https://Stackoverflow.com/users/4205233", "pm_score": 0, "selected": false, "text": "input pic 99v9(5)\ntemp pic 99v99\nres-r pic 99.99\n\nIF input(5:1) > 4 OR = ZERO \n COMPUTE temp ROUNDED = input\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610692", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9733887/" ]
74,610,700
<p>I have this class:</p> <pre><code>public class Division { public int Id { get; set; } public string Naam { get; set; } public ICollection&lt;Division&gt; Children { get; set; } } </code></pre> <p>Example of the filled object/list:</p> <pre><code> Id 1 Name &quot;HQ&quot; Children 0 Id ...
[ { "answer_id": 74610933, "author": "Fildor", "author_id": 982149, "author_profile": "https://Stackoverflow.com/users/982149", "pm_score": 0, "selected": false, "text": "// given: `Division` is a nullable reference type, probably a class\n// I am refering to the `Division` class as given ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610700", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20630814/" ]
74,610,714
<p>I am trying to read cells for a xlsx file(provided by user) using Apache POI.</p> <pre><code>val workbook: org.apache.poi.ss.usermodel = ... workbook.getName(&quot;cellname&quot;) </code></pre> <p>This works fine for one of the input file, but returns null for another file. Do we need to make any specific changes in...
[ { "answer_id": 74610933, "author": "Fildor", "author_id": 982149, "author_profile": "https://Stackoverflow.com/users/982149", "pm_score": 0, "selected": false, "text": "// given: `Division` is a nullable reference type, probably a class\n// I am refering to the `Division` class as given ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610714", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2444661/" ]
74,610,715
<p>We're using WebSphere AppServer 8.5 for Web processing, but at a specific point in time, such as 8 a.m., we get thread deadlocks and eventually the thread hangs. One hour later, the AppServer is running slowly. One hour later, however, the AppServer recovers. After checking the scheduled tasks of the operating syste...
[ { "answer_id": 74610933, "author": "Fildor", "author_id": 982149, "author_profile": "https://Stackoverflow.com/users/982149", "pm_score": 0, "selected": false, "text": "// given: `Division` is a nullable reference type, probably a class\n// I am refering to the `Division` class as given ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610715", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5358803/" ]
74,610,722
<p>I have 2 functions that read a csv file and count the following as checks:</p> <ol> <li>number of rows in that csv</li> <li>number of rows that have a null value in the 'ID' column</li> </ol> <p>I am trying to create a dataframe that looks like this</p> <div class="s-table-container"> <table class="s-table"> <thead>...
[ { "answer_id": 74610756, "author": "Koedlt", "author_id": 15405732, "author_profile": "https://Stackoverflow.com/users/15405732", "pm_score": 2, "selected": false, "text": "function1 != function1() table = {\n 'Checks' : ['Check #1', 'Check #2'],\n 'Summary' : ['Number of records on...
2022/11/29
[ "https://Stackoverflow.com/questions/74610722", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16633745/" ]
74,610,740
<p>Hi it's my first time using slick carousel. I need to change the position of the arrow, so the arrow will be at the top level like the red arrow in the picture, and not at the side of the slider. I try using similar solution I find on the forum, but no one work for me. I trying using position absolute and top proper...
[ { "answer_id": 74610871, "author": "Every Screamer", "author_id": 3863593, "author_profile": "https://Stackoverflow.com/users/3863593", "pm_score": 1, "selected": false, "text": "prevArrow: $(\"specificIDorspecificClass\")" }, { "answer_id": 74613317, "author": "Jaswinder Kau...
2022/11/29
[ "https://Stackoverflow.com/questions/74610740", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19533023/" ]
74,610,747
<p>I want to pass the props from router to component</p> <pre><code>function TestComponent({myProps: string}): { console.log(myProps) useEffect(...) return ( &lt;&gt;...&lt;/&gt; ) }; </code></pre> <p>My router use react lazy like this</p> <pre><code>import React, { lazy } from 'react'; export const route...
[ { "answer_id": 74610871, "author": "Every Screamer", "author_id": 3863593, "author_profile": "https://Stackoverflow.com/users/3863593", "pm_score": 1, "selected": false, "text": "prevArrow: $(\"specificIDorspecificClass\")" }, { "answer_id": 74613317, "author": "Jaswinder Kau...
2022/11/29
[ "https://Stackoverflow.com/questions/74610747", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12917399/" ]
74,610,777
<p>I have an entry field that stores my list to a text file when i press the button to store the info, it gets stored but i have to restart the app to see it on the options menu How do i make the app update without having to restart it? `</p> <pre><code>from tkinter import * from tkinter import messagebox root = Tk() ...
[ { "answer_id": 74610871, "author": "Every Screamer", "author_id": 3863593, "author_profile": "https://Stackoverflow.com/users/3863593", "pm_score": 1, "selected": false, "text": "prevArrow: $(\"specificIDorspecificClass\")" }, { "answer_id": 74613317, "author": "Jaswinder Kau...
2022/11/29
[ "https://Stackoverflow.com/questions/74610777", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20476093/" ]
74,610,778
<p>I have a list of dicts in which one of the dict values is also a list of dicts. I want to flatten it into a list of dicts.</p> <p>I have some working code and would like opinions on whether ot not there is a more idiomatic way of achieving this.</p> <p>Here is my code:</p> <pre class="lang-py prettyprint-override"><...
[ { "answer_id": 74610950, "author": "Usman Arshad", "author_id": 20582506, "author_profile": "https://Stackoverflow.com/users/20582506", "pm_score": 1, "selected": false, "text": "items flattened_transactions = []\nfor transaction in transactions:\n items = transaction.pop(\"items\", [...
2022/11/29
[ "https://Stackoverflow.com/questions/74610778", "https://Stackoverflow.com", "https://Stackoverflow.com/users/201657/" ]
74,610,786
<p>Let's say I want to simplify the terms</p> <p>[<img src="https://i.stack.imgur.com/h5CSU.png" alt="Differential of real(expression)" /></p> <p>where <em>u</em> and <em>v</em> are (sympy) complex variables. <em>u</em> and <em>w</em> are independent from each other and the above differentials should thereby be evaluat...
[ { "answer_id": 74610950, "author": "Usman Arshad", "author_id": 20582506, "author_profile": "https://Stackoverflow.com/users/20582506", "pm_score": 1, "selected": false, "text": "items flattened_transactions = []\nfor transaction in transactions:\n items = transaction.pop(\"items\", [...
2022/11/29
[ "https://Stackoverflow.com/questions/74610786", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20534324/" ]
74,610,787
<p>In my Oracle-database table <em>mytable</em> I have a column <em>columnx</em> with JSON-Arrays (VARCHAR2) and I would like to find all entries where the value <em>valueX</em> is inside that array.</p> <p>In native Oracle-SQL the following query is working very well: <code>SELECT * FROM mytable t WHERE JSON_EXISTS(co...
[ { "answer_id": 74616980, "author": "psaraj12", "author_id": 1297792, "author_profile": "https://Stackoverflow.com/users/1297792", "pm_score": 1, "selected": false, "text": "@Query(value = \"SELECT * FROM mytable t WHERE \nJSON_EXISTS(columnx, '$?(@ == \\\"valueX\\\")')\", \nnativeQuery =...
2022/11/29
[ "https://Stackoverflow.com/questions/74610787", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20626780/" ]
74,610,805
<p>Here's a simplified version of the script I'm trying to write:</p> <pre><code>$i = 0 Get-ChildItem -Filter *.bat| ForEach-Object { Write-Host $_.Name switch ($i) { 0 { Write-Host $_.Name} 1 { Write-Host $_.Name } 2 { Write-Host $_.Name } Default {Write-Host &quot;nothing here&...
[ { "answer_id": 74611326, "author": "arco444", "author_id": 3115685, "author_profile": "https://Stackoverflow.com/users/3115685", "pm_score": 3, "selected": true, "text": "$_ switch $i Int32 Name $temp $_ $_ Get-ChildItem -Filter *.bat |\nForEach-Object {\n Write-Host $_.gettype()\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610805", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20630743/" ]
74,610,818
<p><img src="https://i.stack.imgur.com/Jn9Bo.png" alt="enter image description here" /> I need to add a configuration and to customize accordingly. In before versions in the startup.cs there is a class specifically for configuration. I need to know how to add configuration in program.cs</p> <p>In before versions in the...
[ { "answer_id": 74610846, "author": "kosist", "author_id": 6917446, "author_profile": "https://Stackoverflow.com/users/6917446", "pm_score": 0, "selected": false, "text": "IConfiguration Microsoft.Extensions.Configuration" }, { "answer_id": 74610885, "author": "klekmek", "...
2022/11/29
[ "https://Stackoverflow.com/questions/74610818", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20597627/" ]
74,610,875
<p>My code was supposed to</p> <ul> <li>check two passwords</li> <li>check the length of the passwords</li> <li>check the first and last letters of the passwords</li> <li>and check the uppercase and lowercase of the passwords</li> </ul> <pre><code>pass1 = &quot;secret&quot; pass2 = &quot;choccie&quot; InputPassword = ...
[ { "answer_id": 74610846, "author": "kosist", "author_id": 6917446, "author_profile": "https://Stackoverflow.com/users/6917446", "pm_score": 0, "selected": false, "text": "IConfiguration Microsoft.Extensions.Configuration" }, { "answer_id": 74610885, "author": "klekmek", "...
2022/11/29
[ "https://Stackoverflow.com/questions/74610875", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20625857/" ]
74,610,876
<p>When tring to implement <code>std::vector</code>, I get confused with the implicit call to destructor.</p> <p>Then element in vector maybe:</p> <ul> <li><code>T</code> <ul> <li>a Class Object,</li> </ul> </li> <li><code>T*</code>, <code>shared_ptr&lt;T&gt;</code> <ul> <li>a Smart/Simple Pointer to Class Object</li>...
[ { "answer_id": 74610846, "author": "kosist", "author_id": 6917446, "author_profile": "https://Stackoverflow.com/users/6917446", "pm_score": 0, "selected": false, "text": "IConfiguration Microsoft.Extensions.Configuration" }, { "answer_id": 74610885, "author": "klekmek", "...
2022/11/29
[ "https://Stackoverflow.com/questions/74610876", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17864498/" ]
74,610,882
<p>I do have a file with different length of each line. E.g.:</p> <pre><code>a; 1; 2; 3; 4; b; 11; 22; c; 122; 233; 344; 45; 56; d; 13; e; 144; 25; 36; 47; 58; 69; </code></pre> <p>I try to generate a file, separated by semicolon where each line has the same amount of values. E.g.:</p> <pre><code>a; 1; 2; 3; 4;...
[ { "answer_id": 74611106, "author": "Fravadona", "author_id": 3387716, "author_profile": "https://Stackoverflow.com/users/3387716", "pm_score": 3, "selected": true, "text": "awk -F '; *' -v OFS='; ' '{$8 = $8} 1'\n" }, { "answer_id": 74611118, "author": "RavinderSingh13", ...
2022/11/29
[ "https://Stackoverflow.com/questions/74610882", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20630882/" ]
74,610,932
<p>I am trying to allow some character through regular expression. I want to allow word with special character like ( - _ &amp; spaces) in between the character. Also i am allowing number in a word along with letter.</p> <p>Valid:</p> <pre><code>a_B a_b a b a B a_btest_psom a-B a43 b a43_c </code></pre> <p>Invalid:</p>...
[ { "answer_id": 74611009, "author": "Wiktor Stribiżew", "author_id": 3832970, "author_profile": "https://Stackoverflow.com/users/3832970", "pm_score": 2, "selected": true, "text": "^[a-zA-Z][a-zA-Z0-9]*(?:[ _-][a-zA-Z0-9]+)*$\n ^ [a-zA-Z][a-zA-Z0-9]* (?:[ _-][a-zA-Z0-9]+)* _ - $" }, {...
2022/11/29
[ "https://Stackoverflow.com/questions/74610932", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3925730/" ]
74,610,948
<pre><code>error: unreachable statement </code></pre> <p>why is it not printing hello world?</p> <pre><code>public class Main { public static void main(String[] args) { final int a=10,b=20; while(a&gt;b){ System.out.print(&quot;Message&quot;); } System.out.println(&quot;H...
[ { "answer_id": 74611042, "author": "Mark Rotteveel", "author_id": 466862, "author_profile": "https://Stackoverflow.com/users/466862", "pm_score": 1, "selected": false, "text": "a>b a b final false while" }, { "answer_id": 74611057, "author": "Bas van der Linden", "author_...
2022/11/29
[ "https://Stackoverflow.com/questions/74610948", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20631126/" ]