qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,540,458 | <p>I have a managed library that wraps a native library which has binaries for both 32-bit and 64-bit.</p>
<p>Currently, I have to do the following:</p>
<p>First, build the native library 32-bit and 64-bit builds using <a href="https://learn.microsoft.com/en-us/visualstudio/ide/how-to-build-multiple-configurations-simu... | [
{
"answer_id": 74540681,
"author": "Greg Pavlik",
"author_id": 12756381,
"author_profile": "https://Stackoverflow.com/users/12756381",
"pm_score": 2,
"selected": false,
"text": "system$wait select system$wait(5);\n"
},
{
"answer_id": 74622383,
"author": "Speedy",
"author_... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/361899/"
] |
74,540,504 | <p>I am currently using the random.sample function to extract individuals from a population.</p>
<p>ex:</p>
<p>n = range(1,1501)</p>
<p>result = random.sample(n, 500)
print(result)</p>
<p>in this example I draw 500 persons among 1500. So far, so good..</p>
<p>Now, I want to go further and launch a search with a list of... | [
{
"answer_id": 74540681,
"author": "Greg Pavlik",
"author_id": 12756381,
"author_profile": "https://Stackoverflow.com/users/12756381",
"pm_score": 2,
"selected": false,
"text": "system$wait select system$wait(5);\n"
},
{
"answer_id": 74622383,
"author": "Speedy",
"author_... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19767241/"
] |
74,540,508 | <p>After I migrated my project to <code>.NET 7</code> I had to add the <code>TrustServerCertificate=true;</code> setting in the connection string otherwise the following error is thrown: <code>SqlException: A connection was successfully established with the server, but then an error occurred during the login process</... | [
{
"answer_id": 74645037,
"author": "Subarata Talukder",
"author_id": 3018627,
"author_profile": "https://Stackoverflow.com/users/3018627",
"pm_score": 0,
"selected": false,
"text": "\"ConnectionStrings\": {\n \"DefaultConnection\": \"Server=SERVER_NAME;Database=DB_NAME;Trusted_Connect... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5137138/"
] |
74,540,525 | <p>I am trying to edit the input entered for each day. I have created an input_sales_day function that contains a number of products to enter for a day, an input_sales function that takes the number of products and days as parameters, where I think the problem lies, and a final function that just prints. I've tried usi... | [
{
"answer_id": 74540565,
"author": "Michael M.",
"author_id": 13376511,
"author_profile": "https://Stackoverflow.com/users/13376511",
"pm_score": 3,
"selected": true,
"text": "p input_sales_day p def input_sales_day(nbp):\n p = []\n for i in range(nbp):\n np = input(\"Produc... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540525",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20489036/"
] |
74,540,559 | <p>I'm trying to prevent the user from liking photos more than once when refreshing the page.</p>
<p>So the current <strong>incorrect</strong> flow is: click like on desired photo > number increments > refresh the page > <code>click like on desired photo > number increments > refresh the page > *rinse... | [
{
"answer_id": 74540565,
"author": "Michael M.",
"author_id": 13376511,
"author_profile": "https://Stackoverflow.com/users/13376511",
"pm_score": 3,
"selected": true,
"text": "p input_sales_day p def input_sales_day(nbp):\n p = []\n for i in range(nbp):\n np = input(\"Produc... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9903235/"
] |
74,540,584 | <p>I am developing a web app using React.JS.</p>
<p>I would like the input to be a default value, but the input can't be uneditable.</p>
<p>I have tried :</p>
<pre><code>let [inputValue, setInputValue] = useState<string>('Value of Input')
return (
<div className = "App">
<input valu... | [
{
"answer_id": 74540629,
"author": "Gia Huy Nguyễn",
"author_id": 20485039,
"author_profile": "https://Stackoverflow.com/users/20485039",
"pm_score": 0,
"selected": false,
"text": "<input value={inputValue} onChange={(e) => setInputValue(e.target.value)}></input>\n"
},
{
"answer_... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19317235/"
] |
74,540,587 | <p>So, I wrote the following program to determine the max element in a 2D array using LISP. Note, this is my first time using the language, so I am unfamiliar with many aspects.</p>
<p>The function should return the coordinates of the largest element in row-major order. In the below example, the largest element, 7, is ... | [
{
"answer_id": 74541118,
"author": "Chris",
"author_id": 15261315,
"author_profile": "https://Stackoverflow.com/users/15261315",
"pm_score": 1,
"selected": false,
"text": "0 max max max max (defun find-max-in-row (lst &optional (pos 0) (max '()))\n (cond ((null lst) \n max)\... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17971741/"
] |
74,540,592 | <p>I want to convert the long to wide format of my data using data.table. Normally I use <code>unstack()</code>, but I don't know how to do it in data.table. Below is an example. As output I expect three columns and three rows.</p>
<pre><code>library(data.table)
set.seed(1)
df <- data.frame(class = factor(rep(c(&quo... | [
{
"answer_id": 74540750,
"author": "M.Viking",
"author_id": 10276092,
"author_profile": "https://Stackoverflow.com/users/10276092",
"pm_score": 3,
"selected": true,
"text": "dcast(dt, rowid(class) ~ class)\n# class A B C\n#1: 1 0.2655087 0.3721239 0.5728534... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11868027/"
] |
74,540,601 | <p>I am struggling in a python undergraduate class that should have had fewer modules: for a grade, I have a code that reads a formatted file and "prints" a table. The problem is, the last entry of the table has a trailing space at the end. My print statement is</p>
<pre><code>for time in movieTiming[m]:
... | [
{
"answer_id": 74540658,
"author": "chepner",
"author_id": 1126841,
"author_profile": "https://Stackoverflow.com/users/1126841",
"pm_score": 1,
"selected": false,
"text": "print ' '.join print(' '.join(movieTiming[m]))\n join print(movieTiming[m][0], end='')\nfor t in movieTiming[m][1:]:... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20577208/"
] |
74,540,610 | <p>Hi how can I display selected folder name in textbox. I have 3 Folder. It display the 2 folders in the textbox but the other one it won't display.</p>
<p>For example:</p>
<blockquote>
<p>C:\EmpRecord\Details\Name\MiddleName\Lastname</p>
</blockquote>
<p>The 2 folder name display without a problem.</p>
<p>For the Mid... | [
{
"answer_id": 74540658,
"author": "chepner",
"author_id": 1126841,
"author_profile": "https://Stackoverflow.com/users/1126841",
"pm_score": 1,
"selected": false,
"text": "print ' '.join print(' '.join(movieTiming[m]))\n join print(movieTiming[m][0], end='')\nfor t in movieTiming[m][1:]:... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540610",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20267940/"
] |
74,540,614 | <p>I have a SQL table <code>Products</code> with 2 columns as below.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>ID</th>
<th>ProductDetails</th>
</tr>
</thead>
<tbody>
<tr>
<td>2</td>
<td><code><XML></code></td>
</tr>
<tr>
<td>3</td>
<td><code><XML></code></td>
</tr>
</tbody... | [
{
"answer_id": 74540841,
"author": "T N",
"author_id": 12637193,
"author_profile": "https://Stackoverflow.com/users/12637193",
"pm_score": 0,
"selected": false,
"text": ".nodes() .value() SELECT P.*, X.N.value('text()[1]', 'nvarchar(max)')\nFROM @Products P\nCROSS APPLY @ProductXml.nodes... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4045046/"
] |
74,540,632 | <p>Here's the code that's causing the issue:</p>
<pre><code>DROP TABLE customers;
--1 create tables
CREATE TABLE customers (
customer_id NUMBER(10),
last_name VARCHAR2(25),
first_name VARCHAR2(25),
home_phone VARCHAR2(12),
address VARCHAR2(100),
city VARCHAR2(30),
state VARCHAR2(2),
email VARCHAR2(25)... | [
{
"answer_id": 74540841,
"author": "T N",
"author_id": 12637193,
"author_profile": "https://Stackoverflow.com/users/12637193",
"pm_score": 0,
"selected": false,
"text": ".nodes() .value() SELECT P.*, X.N.value('text()[1]', 'nvarchar(max)')\nFROM @Products P\nCROSS APPLY @ProductXml.nodes... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17654954/"
] |
74,540,633 | <p>For example:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Team</th>
<th>User</th>
</tr>
</thead>
<tbody>
<tr>
<td>USA</td>
<td>Mark</td>
</tr>
<tr>
<td>England</td>
<td>Sean</td>
</tr>
<tr>
<td>India</td>
<td>Sri</td>
</tr>
</tbody>
</table>
</div>
<p>assigning users to different team... | [
{
"answer_id": 74540841,
"author": "T N",
"author_id": 12637193,
"author_profile": "https://Stackoverflow.com/users/12637193",
"pm_score": 0,
"selected": false,
"text": ".nodes() .value() SELECT P.*, X.N.value('text()[1]', 'nvarchar(max)')\nFROM @Products P\nCROSS APPLY @ProductXml.nodes... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20577197/"
] |
74,540,642 | <p>I keep reading things like <a href="https://www.reddit.com/r/FlutterDev/comments/a53afv/when_should_we_extend_an_existing_component/" rel="nofollow noreferrer">this post</a> explaining how Flutter heavily prefers composition over inheritance. While I partially understand why, I question what to do in scenarios where... | [
{
"answer_id": 74540841,
"author": "T N",
"author_id": 12637193,
"author_profile": "https://Stackoverflow.com/users/12637193",
"pm_score": 0,
"selected": false,
"text": ".nodes() .value() SELECT P.*, X.N.value('text()[1]', 'nvarchar(max)')\nFROM @Products P\nCROSS APPLY @ProductXml.nodes... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20027466/"
] |
74,540,663 | <p>I added this to the csproj file</p>
<pre class="lang-xml prettyprint-override"><code><ItemGroup>
<None Update="Assets/*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
</code></pre>
<p>so I can access the asset folder after an inst... | [
{
"answer_id": 74540841,
"author": "T N",
"author_id": 12637193,
"author_profile": "https://Stackoverflow.com/users/12637193",
"pm_score": 0,
"selected": false,
"text": ".nodes() .value() SELECT P.*, X.N.value('text()[1]', 'nvarchar(max)')\nFROM @Products P\nCROSS APPLY @ProductXml.nodes... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540663",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13264143/"
] |
74,540,688 | <p>How can I get the value of param2 based on name in angular?</p>
<p>http://localhost:4200/home#parma1=value1&param2=value2&param3=value3</p>
<p>Tried Below:</p>
<pre><code>constructor(
private router: Router,
private route: ActivatedRoute) { }
ngOnInit(): void {
this.route.queryParams
.subscribe(params =&... | [
{
"answer_id": 74541916,
"author": "bhathiya.m",
"author_id": 1080820,
"author_profile": "https://Stackoverflow.com/users/1080820",
"pm_score": 0,
"selected": false,
"text": "this.route.queryParams.subscribe(params => { this.name = params['name']; });"
},
{
"answer_id": 74542624,... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540688",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4689560/"
] |
74,540,719 | <p>When I click the submit button on my form the value of Submit is not displaying and at the same time my input fields at the top are still not autofilling like I'd like them to. I'm also trying to use the eye icon to hide the value on post request and clicking the eye icon will reveal the value on textbox.</p>
<p>ind... | [
{
"answer_id": 74541916,
"author": "bhathiya.m",
"author_id": 1080820,
"author_profile": "https://Stackoverflow.com/users/1080820",
"pm_score": 0,
"selected": false,
"text": "this.route.queryParams.subscribe(params => { this.name = params['name']; });"
},
{
"answer_id": 74542624,... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9748930/"
] |
74,540,761 | <p>I am trying to save a csv generated from a table.</p>
<p>If I 'Export all as CSV' from QPAD the file is 22MB.</p>
<p>If I do <code> `:path.csv 0: csv 0: table</code> the file is 496MB.</p>
<p>The file contains same data.</p>
<p>I do have some columns which are list of dates, list of symbols which cause some issues w... | [
{
"answer_id": 74545042,
"author": "Matt Moore",
"author_id": 11828860,
"author_profile": "https://Stackoverflow.com/users/11828860",
"pm_score": 3,
"selected": false,
"text": "([]a:3#enlist til 1000;b:3#enlist til 1000)\n 30j, 31j ..."
},
{
"answer_id": 74545830,
"author": "... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4463305/"
] |
74,540,765 | <p>I have to write a program that requests a file name from the user and then counts all of the words in the file. The hypothetical file has 55 words in it, but my program counts 56 words.</p>
<p>Every change I've tried making to my code has only gotten me farther from the correct answer, either resulting in 0 words or... | [
{
"answer_id": 74540928,
"author": "waltermitty",
"author_id": 8020836,
"author_profile": "https://Stackoverflow.com/users/8020836",
"pm_score": 0,
"selected": false,
"text": "#include <fstream>\n#include <iostream>\n\nusing namespace std;\n\nint main() {\n char filename[20];\n\n cout ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20577241/"
] |
74,540,816 | <p>I have the <strong>cars_tables</strong> and in its <strong>name</strong> column I have names with special characters, for example:</p>
<pre><code>car_names = Car.pluck :name
=> ["Cárrozería", "Óther Cars", "Forede Lúis", "Ságara Mbobe"]
</code></pre>
<p>The values are aut... | [
{
"answer_id": 74541000,
"author": "Samuel D.",
"author_id": 19189637,
"author_profile": "https://Stackoverflow.com/users/19189637",
"pm_score": 0,
"selected": false,
"text": "cart_name = \"carrozería\"\n\nCar.find_by(\"lower(unaccent(name)) LIKE ?\", \"%#{cart_name}%\")\n"
},
{
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19189637/"
] |
74,540,843 | <p>I've tried writing my sql query to select multiple records on to one row but it isn't working the way I expected it to
Currently my table looks something like this</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>person id</th>
<th>fruit</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>app... | [
{
"answer_id": 74541000,
"author": "Samuel D.",
"author_id": 19189637,
"author_profile": "https://Stackoverflow.com/users/19189637",
"pm_score": 0,
"selected": false,
"text": "cart_name = \"carrozería\"\n\nCar.find_by(\"lower(unaccent(name)) LIKE ?\", \"%#{cart_name}%\")\n"
},
{
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14180750/"
] |
74,540,861 | <blockquote>
<p>Unhandled Exception: type 'String' is not a subtype of type 'int' in
type cast</p>
</blockquote>
<pre><code>else if (value is List<int>) {
prefs.setStringList(
"itemsToLoanCats", [...value.map((e) => e.toString())]);
}
</code></pre>
<p>type of 'value' =... | [
{
"answer_id": 74541000,
"author": "Samuel D.",
"author_id": 19189637,
"author_profile": "https://Stackoverflow.com/users/19189637",
"pm_score": 0,
"selected": false,
"text": "cart_name = \"carrozería\"\n\nCar.find_by(\"lower(unaccent(name)) LIKE ?\", \"%#{cart_name}%\")\n"
},
{
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2514402/"
] |
74,540,869 | <p>I am sending email when a job is posted. Emails are currently going well. The problem is Full Name of the users is going in emails, whereas i need to send the first name as full and only 1 initial of second name. Like John D.</p>
<p>Here is how i am doing in angular. By this way, my email sends and working properly.... | [
{
"answer_id": 74540989,
"author": "Alexander Dyriavin",
"author_id": 8198671,
"author_profile": "https://Stackoverflow.com/users/8198671",
"pm_score": 0,
"selected": false,
"text": "// Your User Model \n public function nameForEmail()\n {\n $userName = explode(' ', $this->n... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18853102/"
] |
74,540,891 | <p>So im trying to force the user to give me purely an input between 1 and 0 and I managed to do so for the most part but it'll only work if all three inputs are above that and my code only gives me and input for a</p>
<pre class="lang-py prettyprint-override"><code>def AND(a, b):
return a and b
def OR(a, b):
... | [
{
"answer_id": 74541007,
"author": "blhsing",
"author_id": 6890912,
"author_profile": "https://Stackoverflow.com/users/6890912",
"pm_score": 0,
"selected": false,
"text": "while for values = {}\nfor name in 'a', 'b', 'c':\n while True:\n try:\n value = input(f'for {n... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20016166/"
] |
74,540,896 | <p>I'd like to extract weight values from strings with the unit and the time of measurement using tidyverse.</p>
<p>My dataset is like as below:</p>
<pre><code>df <- tibble(ID = c("A","B","C"),
Weight = c("45kg^20221120", "51.5kg^20221015", "66.05k... | [
{
"answer_id": 74541007,
"author": "blhsing",
"author_id": 6890912,
"author_profile": "https://Stackoverflow.com/users/6890912",
"pm_score": 0,
"selected": false,
"text": "while for values = {}\nfor name in 'a', 'b', 'c':\n while True:\n try:\n value = input(f'for {n... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20375862/"
] |
74,540,930 | <p>Here is my my program:</p>
<pre><code>def word_frequencies(words):
l=[]
l=words.split()
wordfreq=[l.count(p) for p in l]
return(dict(zip(l,wordfreq)))
if __name__ == '__main__':
words = input("Enter a sentence: ")
your_dictionary = word_frequencies(words)
sorted_keys = sorted(y... | [
{
"answer_id": 74541007,
"author": "blhsing",
"author_id": 6890912,
"author_profile": "https://Stackoverflow.com/users/6890912",
"pm_score": 0,
"selected": false,
"text": "while for values = {}\nfor name in 'a', 'b', 'c':\n while True:\n try:\n value = input(f'for {n... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20577449/"
] |
74,540,931 | <p>I have a data frame...</p>
<pre><code>example <- data.frame(obs_val= c(20,15,3,7,5), patient = c("pt1","pt2","pt3","pt4","pt5"))
</code></pre>
<p>... where every row or "patient" is a unique observation.</p>
<p>My goal is to generate a data frame that su... | [
{
"answer_id": 74541007,
"author": "blhsing",
"author_id": 6890912,
"author_profile": "https://Stackoverflow.com/users/6890912",
"pm_score": 0,
"selected": false,
"text": "while for values = {}\nfor name in 'a', 'b', 'c':\n while True:\n try:\n value = input(f'for {n... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11381129/"
] |
74,540,976 | <p>I have two lists let's say</p>
<pre><code>list1 = ["apple","banana"]
list2 = ["M","T","W","TR","F","S"]
</code></pre>
<p>I want to create a data frame of two columns fruit and day so that the result will look something like this</p>
<div... | [
{
"answer_id": 74541586,
"author": "ziying35",
"author_id": 16755671,
"author_profile": "https://Stackoverflow.com/users/16755671",
"pm_score": 2,
"selected": true,
"text": "from itertools import product\nimport pandas as pd\n\n\nlist1 = [\"apple\",\"banana\"]\nlist2 = [\"M\",\"T\",\"W\"... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2813612/"
] |
74,540,996 | <p>I'd like to extract the numbers from the string. (E.g. I want the <code>24</code> and <code>380</code> from the string <code>24:380</code>) I'd like to assign it in respective variables. Is there any way I could do that?</p>
<p>I couldn't find any solution to this problem.</p>
| [
{
"answer_id": 74541586,
"author": "ziying35",
"author_id": 16755671,
"author_profile": "https://Stackoverflow.com/users/16755671",
"pm_score": 2,
"selected": true,
"text": "from itertools import product\nimport pandas as pd\n\n\nlist1 = [\"apple\",\"banana\"]\nlist2 = [\"M\",\"T\",\"W\"... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74540996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16773147/"
] |
74,541,055 | <p>I'm not sure if I am fighting with something impossible in PHP</p>
<p>I was trying to redirect and download or download and redirect, but either doesn't work.</p>
<p>After the user download the PDF, I want to redirect back to the main page</p>
<p>I've tried</p>
<pre><code>header("Location: https://www.main-page... | [
{
"answer_id": 74541128,
"author": "Muh Raswan Sualdi",
"author_id": 20551663,
"author_profile": "https://Stackoverflow.com/users/20551663",
"pm_score": -1,
"selected": false,
"text": "Response::download($file,\"file.pdf\", $headers); return redirect(\"path location you want to redirect\... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4480164/"
] |
74,541,080 | <p>I feel like there is an easy fix for this but I am not finding it. After I first open the page, type a number in the input and hit submit I get an empty array in the console and no number is displayed. When I hit enter again it works. How do I get the number to display the first time?</p>
<pre><code>import React fro... | [
{
"answer_id": 74541128,
"author": "Muh Raswan Sualdi",
"author_id": 20551663,
"author_profile": "https://Stackoverflow.com/users/20551663",
"pm_score": -1,
"selected": false,
"text": "Response::download($file,\"file.pdf\", $headers); return redirect(\"path location you want to redirect\... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20384603/"
] |
74,541,082 | <p>I have a database with over 30,000,000 entries. When performing queries (including an <code>ORDER BY</code> clause) on a <code>text</code> field, the <code>=</code> operator results in relatively fast results. However we have noticed that when using the <code>LIKE</code> operator, the query becomes remarkably slow, ... | [
{
"answer_id": 74541228,
"author": "Erwin Brandstetter",
"author_id": 939860,
"author_profile": "https://Stackoverflow.com/users/939860",
"pm_score": 2,
"selected": false,
"text": "LIKE COLLATE \"C\""
},
{
"answer_id": 74564640,
"author": "SQLpro",
"author_id": 12659872,
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8685016/"
] |
74,541,098 | <p>I am using an array of 51 positions, the same one that I traverse with map but I need it to be displayed only from position 2 to the end in order to avoid index 0 and 1 being displayed.</p>
<p>This is my code:</p>
<pre><code> <select
defaultValue={'DEFAULT'}
... | [
{
"answer_id": 74541228,
"author": "Erwin Brandstetter",
"author_id": 939860,
"author_profile": "https://Stackoverflow.com/users/939860",
"pm_score": 2,
"selected": false,
"text": "LIKE COLLATE \"C\""
},
{
"answer_id": 74564640,
"author": "SQLpro",
"author_id": 12659872,
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541098",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8977748/"
] |
74,541,100 | <p>I'm having a hard time understanding the following <a href="https://docs.flutter.dev/development/ui/layout/constraints#:%7E:text=paints%20it%20red.-,Example%202,-content_copy" rel="nofollow noreferrer">example from the official Flutter docs</a>:</p>
<p><a href="https://i.stack.imgur.com/rRsWb.png" rel="nofollow nore... | [
{
"answer_id": 74541271,
"author": "pmatatias",
"author_id": 12838877,
"author_profile": "https://Stackoverflow.com/users/12838877",
"pm_score": 3,
"selected": true,
"text": "Aligment Center Alignment.center"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541100",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4241959/"
] |
74,541,221 | <p>I'm using Cypress for its component tests. These are integration-style tests, I mount my whole app (React) and then click through it. All API calls are mocked using the Cypress Intercept feature. So far this has been an incredibly powerful solution, far more robust than any other FE testing suite I've worked with.</... | [
{
"answer_id": 74542167,
"author": "Jay Swan",
"author_id": 20578569,
"author_profile": "https://Stackoverflow.com/users/20578569",
"pm_score": 2,
"selected": false,
"text": "cy.wait(300) cy.wait('@myApi') cy.get('@myApi') cy.get('#myButton').click()\ncy.wait('@myApi')\ncy.get('@myApi.al... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2223059/"
] |
74,541,230 | <p>Right now I am trying to delete all the lines of the file that has number 80000 or greater at the end of the line</p>
<p>For example</p>
<p>Jennifer Cowan:548-834-2348:583 Laurel Ave., Kingsville, TX 83745:10/1/35:58900<br />
Jon DeLoach:408-253-3122:123 Park St., San Jose, CA 04086:7/25/53:85100</p>
<p>When I run s... | [
{
"answer_id": 74541365,
"author": "Andy Lester",
"author_id": 8454,
"author_profile": "https://Stackoverflow.com/users/8454",
"pm_score": 0,
"selected": false,
"text": "awk -F\":\" '$5 < 80000' datebook.txt\n -F\":\" $5"
},
{
"answer_id": 74541577,
"author": "jared_mamrot",
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11645616/"
] |
74,541,251 | <p>I have a ASP.NET Core 6 Web API with this disposable service class:</p>
<pre class="lang-cs prettyprint-override"><code>public interface IMyService: IDisposable { }
public class MyService: IMyService
{
public void Dispose() => Console.WriteLine("Disposing..."); // never called
}
</code></pre>
<p>In... | [
{
"answer_id": 74543048,
"author": "Xinran Shen",
"author_id": 17438579,
"author_profile": "https://Stackoverflow.com/users/17438579",
"pm_score": 0,
"selected": false,
"text": "using using (MyService service = new MyService())\n{\n service.xxxxxx();\n}\n Dispose() AddSingleton<IMyS... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/628661/"
] |
74,541,262 | <p>How to get filter based data rows from Genre column coming from another dataframe?</p>
<p>I have a movies dataframe as follows:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">Movie_Name</th>
<th style="text-align: center;">Genre</th>
<th style="text-align: righ... | [
{
"answer_id": 74541541,
"author": "ziying35",
"author_id": 16755671,
"author_profile": "https://Stackoverflow.com/users/16755671",
"pm_score": 2,
"selected": false,
"text": "pattern = user['Genre'].str.replace(', ', '|')[0]\nresult = movies.query('Genre.str.contains(@pattern)')\nprint(r... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17652342/"
] |
74,541,264 | <p>I installed Python3.11 which is located <code>usr/local/bin/python3</code>, which came without pip. The old Python3.10 was located in <code>usr/bin/python3</code>.
I tried to install pip with <code>sudo apt-install python3-pip</code>, but it seems to be attached to the old Python3.10. If I check <code>pip --version<... | [
{
"answer_id": 74541356,
"author": "xunjie liu",
"author_id": 16934422,
"author_profile": "https://Stackoverflow.com/users/16934422",
"pm_score": 1,
"selected": false,
"text": "❯ pyenv global 3.10.5\n\n❯ pyenv versions\n system\n 3.7.10\n* 3.10.5 (set by /home/xunjie/.pyenv/version)\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17851346/"
] |
74,541,297 | <p>i want to ask whether or not if it's possible to detect a website that isn't available or a website can't be reach in python?
<a href="https://i.stack.imgur.com/nxNzJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nxNzJ.png" alt="Odoo" /></a></p>
<p>And there is also a site where it says "Th... | [
{
"answer_id": 74541356,
"author": "xunjie liu",
"author_id": 16934422,
"author_profile": "https://Stackoverflow.com/users/16934422",
"pm_score": 1,
"selected": false,
"text": "❯ pyenv global 3.10.5\n\n❯ pyenv versions\n system\n 3.7.10\n* 3.10.5 (set by /home/xunjie/.pyenv/version)\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20465007/"
] |
74,541,361 | <p>I keep running into a "character string is not in a standard unambiguous format" error.</p>
<ul>
<li>I have multiple dataframes (close to 100) with several different <em>'Date'</em> columns, including some called <em>'Period'</em>... these are formatted slightly differently</li>
<li>The goal is to quickly ... | [
{
"answer_id": 74541356,
"author": "xunjie liu",
"author_id": 16934422,
"author_profile": "https://Stackoverflow.com/users/16934422",
"pm_score": 1,
"selected": false,
"text": "❯ pyenv global 3.10.5\n\n❯ pyenv versions\n system\n 3.7.10\n* 3.10.5 (set by /home/xunjie/.pyenv/version)\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10686274/"
] |
74,541,363 | <p>I want to remove the underscore <strong>"_"</strong> from the column entries of <strong>col1</strong> only when the underscore is the last character.</p>
<p>Example:</p>
<pre><code>data1 <- c("foo_bar_","bar_foo","apple_","apple__beer_")
df <- data.frame("... | [
{
"answer_id": 74541356,
"author": "xunjie liu",
"author_id": 16934422,
"author_profile": "https://Stackoverflow.com/users/16934422",
"pm_score": 1,
"selected": false,
"text": "❯ pyenv global 3.10.5\n\n❯ pyenv versions\n system\n 3.7.10\n* 3.10.5 (set by /home/xunjie/.pyenv/version)\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541363",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15891880/"
] |
74,541,368 | <p>when the batch job finish, what will the ApplicationCluster state suppose to be?
Is 'increase restartNonce' a by designed way to re-run the job?</p>
<p>i am trying to use flink operator to deploy a flink batch job, and trigger it with a kubernetes cronjob every day at a certain time</p>
| [
{
"answer_id": 74556544,
"author": "gix",
"author_id": 15058454,
"author_profile": "https://Stackoverflow.com/users/15058454",
"pm_score": 0,
"selected": false,
"text": "2022-11-24 06:14:30,314 INFO org.apache.flink.runtime.executiongraph.ExecutionGraph [] - Job Streaming WordCoun... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15058454/"
] |
74,541,372 | <p>I have a pandas dataframe that looks like this...</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>index</th>
<th>my_column</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td></td>
</tr>
<tr>
<td>1</td>
<td></td>
</tr>
<tr>
<td>2</td>
<td></td>
</tr>
<tr>
<td>3</td>
<td></td>
</tr>
<tr>
<td>... | [
{
"answer_id": 74556544,
"author": "gix",
"author_id": 15058454,
"author_profile": "https://Stackoverflow.com/users/15058454",
"pm_score": 0,
"selected": false,
"text": "2022-11-24 06:14:30,314 INFO org.apache.flink.runtime.executiongraph.ExecutionGraph [] - Job Streaming WordCoun... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2443317/"
] |
74,541,391 | <p>I need a css flex way to set 2 items per row and in each row the second item to expand with width auto.</p>
<p>I tried a lot of things, like setting margin-right:auto for second item in each row, but is not working.</p>
<p>Here is what I have now:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-con... | [
{
"answer_id": 74541818,
"author": "John Li",
"author_id": 20436957,
"author_profile": "https://Stackoverflow.com/users/20436957",
"pm_score": 1,
"selected": false,
"text": "<style> <style>\ndiv {\n /* edit left span width here */\n --left-span-width: 150px;\n /* edit gap of span he... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7551933/"
] |
74,541,396 | <p>I wanted a div to show after a number of seconds, thus I have made it into two parts, one is a php that echoes that div, and the second is a javascript that replaces the div with another div after some seconds. The problem is before that javascript is executed, The div code shows for 2-3 seconds. Which I do not want... | [
{
"answer_id": 74541603,
"author": "foder",
"author_id": 15083460,
"author_profile": "https://Stackoverflow.com/users/15083460",
"pm_score": 3,
"selected": true,
"text": "welcome style=\"display: none\" welcomeButton.style.display = \"none\";"
},
{
"answer_id": 74541638,
"aut... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13913390/"
] |
74,541,416 | <p>How can I remove text(e.g ["88664734","88639280","88676217"]) from a strReviewers string which contains list of Reviewers separated by semicolon and then join the whole string again either using JavaScript or jQuery?</p>
<p>I get a dynamic string(strReviewers) which contains multiple us... | [
{
"answer_id": 74541507,
"author": "CertainPerformance",
"author_id": 9515207,
"author_profile": "https://Stackoverflow.com/users/9515207",
"pm_score": 3,
"selected": true,
"text": "| .match(/.*?\\*;\\*/g) .split(\";\") * ,*;* var strReviewers = \"88664734*,*Andrew Farmer*,*19042*,**,*,1... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541416",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/603380/"
] |
74,541,421 | <p>To preface this question, I'm a hobby programmer that's been learning on/off for the past 7 years, and mostly dabbled with Node.JS in several different settings and projects. I now decided to take the leap to another major language and picked up C# to start learning game development and the likes. I am in the proces... | [
{
"answer_id": 74541507,
"author": "CertainPerformance",
"author_id": 9515207,
"author_profile": "https://Stackoverflow.com/users/9515207",
"pm_score": 3,
"selected": true,
"text": "| .match(/.*?\\*;\\*/g) .split(\";\") * ,*;* var strReviewers = \"88664734*,*Andrew Farmer*,*19042*,**,*,1... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11689154/"
] |
74,541,429 | <p>I was trying to make a customizable grid (by default 16x16) but when it's created there's gaps in between cells.</p>
<p>CSS:</p>
<pre><code>#container{
position: relative;
margin: auto;
width: 800px;
height: 800px;
border: none;
outline: 2px solid red;
padding: 0;
}
.grid{
margin: 0;... | [
{
"answer_id": 74541507,
"author": "CertainPerformance",
"author_id": 9515207,
"author_profile": "https://Stackoverflow.com/users/9515207",
"pm_score": 3,
"selected": true,
"text": "| .match(/.*?\\*;\\*/g) .split(\";\") * ,*;* var strReviewers = \"88664734*,*Andrew Farmer*,*19042*,**,*,1... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541429",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20434868/"
] |
74,541,460 | <p>I would like to get the bare minimum amount of words that would be needed to create a collection of strings. For
example:</p>
<p>"hi hello hello",
"hello",
"bye",
"bye bye",
"hello hello",</p>
<p>The intended output for this example would be string[] {"bye"... | [
{
"answer_id": 74541791,
"author": "Tim Jarosz",
"author_id": 2452207,
"author_profile": "https://Stackoverflow.com/users/2452207",
"pm_score": -1,
"selected": false,
"text": "string[] strList = new string[] { \"hi hello hello\", \"hello\", \"bye\", \"bye bye\", \"hello hello\" };\n\nLis... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541460",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8261220/"
] |
74,541,463 | <p>I'd like to be able to do something like...</p>
<pre><code>typedef struct{
int type;
}foo_t;
foo_t *foo = foo_init();
*(int*)foo = 1;
</code></pre>
<p>or</p>
<pre><code>typedef struct{
int type;
}bar_t;
typedef struct{
bar_t header;
}foo_t;
foo_t *foo = foo_init();
((bar_t*)foo)->type = 1;
</code... | [
{
"answer_id": 74541695,
"author": "Joop Eggen",
"author_id": 984823,
"author_profile": "https://Stackoverflow.com/users/984823",
"pm_score": 0,
"selected": false,
"text": "foo->type = 1;\n\nfoo->header.type = 1;\n"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2418731/"
] |
74,541,484 | <p>I have a set of APIs purely for my own app, so I just have a simple API to create access token, when user provided the <code>email</code> and <code>password</code></p>
<p><code>/api/access_token</code> (return <code>access_token</code> when <code>email</code> and <code>password</code> matched)</p>
<p>The <code>acces... | [
{
"answer_id": 74634792,
"author": "regex",
"author_id": 9470979,
"author_profile": "https://Stackoverflow.com/users/9470979",
"pm_score": 0,
"selected": false,
"text": "/api/access_token /api/logout"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/398230/"
] |
74,541,506 | <p>I have a date which look like this "Corporate Services\Corporate Affairs & Communications(DP19)"</p>
<p>I want to the result to be like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Column A</th>
<th>Column B</th>
</tr>
</thead>
<tbody>
<tr>
<td>Corporate Service</t... | [
{
"answer_id": 74634792,
"author": "regex",
"author_id": 9470979,
"author_profile": "https://Stackoverflow.com/users/9470979",
"pm_score": 0,
"selected": false,
"text": "/api/access_token /api/logout"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16302625/"
] |
74,541,535 | <p>I have a table. In one of the columns of the table , the values have this form:</p>
<p><code>Value1(12) Value2(45) Value3(35) Value4(37) Value5(17)</code></p>
<p>How to delete the opening parenthesis, the value inside the parentheses and the closing parenthesis? So that after updating the values would take this form... | [
{
"answer_id": 74634792,
"author": "regex",
"author_id": 9470979,
"author_profile": "https://Stackoverflow.com/users/9470979",
"pm_score": 0,
"selected": false,
"text": "/api/access_token /api/logout"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19980395/"
] |
74,541,585 | <p>I have some patterns which detect questions and splits on top of that. there are some assumptions which I'm using like:</p>
<ol>
<li>Every pattern starts with a <code>\n</code></li>
<li>Every pattern ends with <code>\s+</code></li>
</ol>
<p>And how I define a pattern is like:</p>
<pre><code><NUM>.
Q <NUM>... | [
{
"answer_id": 74541693,
"author": "dc-ddfe",
"author_id": 18709498,
"author_profile": "https://Stackoverflow.com/users/18709498",
"pm_score": 0,
"selected": false,
"text": "^(\\d+\\.|Q \\d+\\.|Q \\d+|Q\\.\\d+\\.|\\d+|Question \\d+|Example( \\d+)?|Problem \\d+|Problem:|[A-Z]\\d\\.|EXAMPL... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11725056/"
] |
74,541,604 | <p>I have four textfields, a title field, a details field, a date field, and a time field. Both the date and time fields are wrapped within a gesture detector, and onTap calls a <code>pickDateAndTime</code> method. The problem is that when I click on the date field and try to manually change the time through the input ... | [
{
"answer_id": 74541703,
"author": "Texv",
"author_id": 10841432,
"author_profile": "https://Stackoverflow.com/users/10841432",
"pm_score": 0,
"selected": false,
"text": "FocusNode focusNode = FocusNode();\n\nTextField(\n focusNode: focusNode,\n);\n FocusScope.of(context).requestFocus... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15747757/"
] |
74,541,629 | <p>I have a hash, i want to know if any param does not exist or is empty</p>
<p>how is does not exist? in this case does not exist the param 'b'</p>
<pre><code> {"a"=>"first", "c"=>"5"}
</code></pre>
<p>and empty element is like this: <code>"a"=>""</c... | [
{
"answer_id": 74541678,
"author": "Rajagopalan",
"author_id": 9043475,
"author_profile": "https://Stackoverflow.com/users/9043475",
"pm_score": 2,
"selected": true,
"text": "h = { \"a\" => \"\", \"c\" => \"5\" }\n\nkeys = h.keys\nmissed_keys = [*keys.first..keys.last] - keys\n\nputs 'Mi... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541629",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20503335/"
] |
74,541,634 | <p>The regex contains a capture group, but the substitution pattern is not interpolated to reference the match variable <code>$1</code> in</p>
<pre><code>use strict;
use warnings;
my $regex = '([^ ]+)e s';
my $subst = '$1 ';
my $text = 'fine sand';
print $text =~ s/$regex/$subst/r;
print "\n";
</code></pre... | [
{
"answer_id": 74541817,
"author": "craigb",
"author_id": 20236884,
"author_profile": "https://Stackoverflow.com/users/20236884",
"pm_score": 2,
"selected": false,
"text": "$\\d+ $subst $subst use strict;\nuse warnings;\n\nmy $regex = '([^ ]+)e s';\nmy $subst = '$1 ';\n\nmy $text = 'fine... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541634",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/889976/"
] |
74,541,649 | <p>I have a db with 100 tables. I want to delete data from all tables using mysql command or in phpmyadmin</p>
| [
{
"answer_id": 74541689,
"author": "Gowtham",
"author_id": 4082319,
"author_profile": "https://Stackoverflow.com/users/4082319",
"pm_score": 1,
"selected": false,
"text": "select concat('delete from ',TABLE_NAME,';') from information_schema.TABLES where TABLE_SCHEMA='databasename';\n"
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541649",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19981866/"
] |
74,541,671 | <p>I want to do some operations two seconds after every time a certain state is set.</p>
<p><em>Code inside viewModel:</em></p>
<pre><code>var isLoading = mutableStateOf(LoadingState.NONE)
set(value) {
Timber.d("Custom Setter") //Not Firing
//Do something when the state is set to success.... | [
{
"answer_id": 74542032,
"author": "Arpit Shukla",
"author_id": 13308991,
"author_profile": "https://Stackoverflow.com/users/13308991",
"pm_score": 4,
"selected": true,
"text": "Flow State var isLoading by mutableStateOf(LoadingState.NONE)\n private set\n\ninit {\n viewModelScope.l... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3520225/"
] |
74,541,684 | <p>I am using Webview_Flutter.
The header of the site overlaps the position of the statusbar and I would like to add padding to avoid this.</p>
<p>This is the process of inserting padding to avoid the statusbar if the webview is opened or if there is a scroll position at the top.</p>
<pre><code> body: Padding(
... | [
{
"answer_id": 74552880,
"author": "i.AGUIR",
"author_id": 16349770,
"author_profile": "https://Stackoverflow.com/users/16349770",
"pm_score": 0,
"selected": false,
"text": "class _HomeScreenState extends State<HomeScreen> {\n WebViewController? _webViewController;\n ScrollControll... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18096205/"
] |
74,541,705 | <p>I have .txt file containing data like this. The first element is the column names sepparated by whitespace, and the next element is the data.</p>
<pre><code>['n Au[%] Ag[%] Cu[%] Zn[%] Ni[%] Pd[%] Fe[%] Cd[%] mq[ ]',
'1 71.085 4.6578 22.468 1.6971 0.0292 0.0000 ... | [
{
"answer_id": 74552880,
"author": "i.AGUIR",
"author_id": 16349770,
"author_profile": "https://Stackoverflow.com/users/16349770",
"pm_score": 0,
"selected": false,
"text": "class _HomeScreenState extends State<HomeScreen> {\n WebViewController? _webViewController;\n ScrollControll... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9903641/"
] |
74,541,707 | <p>I have <code>price</code> variable and which can contain:</p>
<pre><code>USD12.34
USD12,34
12,34
23.34
</code></pre>
<p>Now the output should be -</p>
<pre><code>USD12.34 - false
USD12,34 - false
12,34 - true
23.34 - true
</code></pre>
<p>Now, Using JavaScript I want to validate above data as integer which should a... | [
{
"answer_id": 74552880,
"author": "i.AGUIR",
"author_id": 16349770,
"author_profile": "https://Stackoverflow.com/users/16349770",
"pm_score": 0,
"selected": false,
"text": "class _HomeScreenState extends State<HomeScreen> {\n WebViewController? _webViewController;\n ScrollControll... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1091439/"
] |
74,541,711 | <p>I'm trying to apply use a loop to use the function fastp on a nextflow block, but I'm not sure how to set up a loop with two variables. I would want to change --in1 and --in2 to be the forward and reverse read pair to get an outputted file for each.</p>
<pre><code>#!/usr/bin/env nextflow
nextflow.enable.dsl=2
work... | [
{
"answer_id": 74552880,
"author": "i.AGUIR",
"author_id": 16349770,
"author_profile": "https://Stackoverflow.com/users/16349770",
"pm_score": 0,
"selected": false,
"text": "class _HomeScreenState extends State<HomeScreen> {\n WebViewController? _webViewController;\n ScrollControll... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541711",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19926037/"
] |
74,541,744 | <p>I'm trying to get all constraint <code>DDL</code> from <code>ALL_CONSTRAINTS</code> using <code>SQL PLUS</code>. But <code>ORA-31603</code> arise. Like this constraint there have more constraint where name are same but their Owner are different.</p>
<p>I try this by following query</p>
<pre><code>-- Run this script ... | [
{
"answer_id": 74542380,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 1,
"selected": false,
"text": "all_constraints all_objects SQL> select constraint_name from user_constraints;\n\nCONSTRAINT_NAME\n--------------... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19930892/"
] |
74,541,750 | <p>I have here a <code>map</code> function for an array of object
and also added some condition</p>
<pre><code> userList.map((item) => {
const newFilter = dailyData.filter((value) => {
return value.author == item.MSM;
});
let obj_idx = userList.findIndex(
(obj) => obj.MSM == newFilter[0]?.author... | [
{
"answer_id": 74542380,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 1,
"selected": false,
"text": "all_constraints all_objects SQL> select constraint_name from user_constraints;\n\nCONSTRAINT_NAME\n--------------... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17634969/"
] |
74,541,759 | <p>I am writing some numerical value in a matplotlib textbox as</p>
<pre><code> textst = "$En_1={0:.4e}$".format(
*popt)
plt.text(.950,
.100,
textst,
bbox=props,
ha='right',
va='bottom',
transform=ax.transAxes)
</code></pre>
<p>Problem... | [
{
"answer_id": 74542380,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 1,
"selected": false,
"text": "all_constraints all_objects SQL> select constraint_name from user_constraints;\n\nCONSTRAINT_NAME\n--------------... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2005559/"
] |
74,541,763 | <p>I created a git bare repo today, and added some dotfiles and configs. The thing that mattered the most was my qtile config, since I worked a lot on it.</p>
<p>After adding everything, I pushed and all was good.</p>
<p>I did this because I was planning to distro hop, and I whipped my disk clean after that (all other ... | [
{
"answer_id": 74541827,
"author": "Pankaj Chandravanshi",
"author_id": 17743521,
"author_profile": "https://Stackoverflow.com/users/17743521",
"pm_score": 0,
"selected": false,
"text": "git reflog git reset git push git push --force"
},
{
"answer_id": 74541846,
"author": "Le... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14433131/"
] |
74,541,772 | <p>I have a list of key value pairs here.</p>
<p>stat = [{'id': 1, 'status': 'Not Fixed'}, {'id': 2, 'status': 'Not Fixed'}, {'id': 4, 'status': 'Not Fixed'}, {'id': 5, 'status': 'Not Fixed'}, {'id': 6, 'status': 'Not Fixed'}, {'id': 7, 'status': 'Not Fixed'}]</p>
<p>The id in this list represents the id(primary key... | [
{
"answer_id": 74541786,
"author": "Đào Minh Hạt",
"author_id": 2281853,
"author_profile": "https://Stackoverflow.com/users/2281853",
"pm_score": 3,
"selected": true,
"text": "update_objects = []\nfor update_item in stat:\n update_objects.append(bug(**update_item))\n\nbug.objects.bulk... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20529531/"
] |
74,541,779 | <p>I want a phone number in the text file to show in the textbox without <code>input type="file"</code> in the website I have a text file name phone.txt inside <code>.txt</code> including one phone number like 8769382349 is possible?</p>
<pre><code><input type="number" class="form-control&qu... | [
{
"answer_id": 74541786,
"author": "Đào Minh Hạt",
"author_id": 2281853,
"author_profile": "https://Stackoverflow.com/users/2281853",
"pm_score": 3,
"selected": true,
"text": "update_objects = []\nfor update_item in stat:\n update_objects.append(bug(**update_item))\n\nbug.objects.bulk... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20571374/"
] |
74,541,851 | <p>I have used widely used packages(installed via pip) for a while in Jupyter notebook without any issues. I tried to do Python coding in VScode,but it somehow cannot load those packages.</p>
<p>I have tried changing python interpreter, but it did solve the issue. Does anyone know how to resolve this issue?</p>
| [
{
"answer_id": 74542062,
"author": "Erik Sandoval",
"author_id": 17416260,
"author_profile": "https://Stackoverflow.com/users/17416260",
"pm_score": 0,
"selected": false,
"text": "pip install --upgrade pip\n"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541851",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18254760/"
] |
74,541,877 | <p>I have two dataframes - the first contains a single column with 180k rows(i.e. 1x180k) and the other has a single row with 13 columns containing 13 growth rates (i.e. 13x1)</p>
<p>I am trying to multiply these dataframes so that I have a single dataframe that shows the growth of these values overtime.</p>
<p>I can m... | [
{
"answer_id": 74542065,
"author": "zephryl",
"author_id": 17303805,
"author_profile": "https://Stackoverflow.com/users/17303805",
"pm_score": 3,
"selected": true,
"text": "# example data\nvalues <- data.frame(x0 = 1:10 * 100)\nrates <- data.frame(r1 = .1, r2 = .01, r3 = .05)\n\nfor (i i... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541877",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20578202/"
] |
74,541,878 | <p>I have installed Linoor theme which contains a post type called 'Events'. I want to implement the Events submission form for admin as well as visitors. The plugin Events Manager provides this facility for visitors to submit their events with admin approval. However, the plugin doesn't override the post type created ... | [
{
"answer_id": 74542065,
"author": "zephryl",
"author_id": 17303805,
"author_profile": "https://Stackoverflow.com/users/17303805",
"pm_score": 3,
"selected": true,
"text": "# example data\nvalues <- data.frame(x0 = 1:10 * 100)\nrates <- data.frame(r1 = .1, r2 = .01, r3 = .05)\n\nfor (i i... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14420014/"
] |
74,541,894 | <p>Trying to install Scipy latest version (1.9.3) on python3.8-alpine image</p>
<pre><code>tiangolo/uwsgi-nginx-flask:python3.8-alpine
</code></pre>
<p>is not successful.</p>
<p>Scipy tries to install numpy 1.8.5 and it fails with following error.</p>
<pre><code>ImportError: cannot import name 'Log' from 'distutils.log... | [
{
"answer_id": 74542737,
"author": "Antoine Dubuis",
"author_id": 4574633,
"author_profile": "https://Stackoverflow.com/users/4574633",
"pm_score": 1,
"selected": false,
"text": "python:3.8-alpine python:3.8-slim"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6448778/"
] |
74,541,899 | <p>I'm a beginner in Flutter.</p>
<p>I designed this page:</p>
<p><a href="https://i.stack.imgur.com/dLYLS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dLYLS.jpg" alt="enter image description here" /></a></p>
<p>Instead of repeating the entire Listview.builder. I would like to use two instances of... | [
{
"answer_id": 74542737,
"author": "Antoine Dubuis",
"author_id": 4574633,
"author_profile": "https://Stackoverflow.com/users/4574633",
"pm_score": 1,
"selected": false,
"text": "python:3.8-alpine python:3.8-slim"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11878615/"
] |
74,541,901 | <p>I have two python dictionaries like below :</p>
<pre><code>d1 ={'k1':{'a':100}, 'k2':{'b':200}, 'k3':{'b':300}, 'k4':{'c':400}}
d2 ={'k1':{'a':101}, 'k2':{'b':200}, 'k3':{'b':302}, 'k4':{'c':399}}
</code></pre>
<p>I want to compare same keys and find out the difference like below:</p>
<pre><code>{'k1':{'diff':1}, 'k... | [
{
"answer_id": 74541973,
"author": "veekxt",
"author_id": 5417267,
"author_profile": "https://Stackoverflow.com/users/5417267",
"pm_score": 1,
"selected": false,
"text": "d1 = {'k1': {'a': 100}, 'k2': {'b': 200}, 'k3': {'b': 300}, 'k4': {'c': 400}}\nd2 = {'k1': {'a': 101}, 'k2': {'b': 20... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2122502/"
] |
74,541,908 | <p>I have an type with props that can be optional depending on a generic type:</p>
<pre><code>type MyType<R extends Record<string, string> | undefined, A extends string[] | undefined> = {
record: R
array: A
}
</code></pre>
<p>I have a function that takes a <code>MyType</code> object</p>
<pre><code>const... | [
{
"answer_id": 74541973,
"author": "veekxt",
"author_id": 5417267,
"author_profile": "https://Stackoverflow.com/users/5417267",
"pm_score": 1,
"selected": false,
"text": "d1 = {'k1': {'a': 100}, 'k2': {'b': 200}, 'k3': {'b': 300}, 'k4': {'c': 400}}\nd2 = {'k1': {'a': 101}, 'k2': {'b': 20... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6592293/"
] |
74,541,919 | <p>I am trying to write some function of data, however, my data is like this:</p>
<pre><code>noms sommets
0000 Abbesses
0001 Alexandre Dumas
0002 Paris
0004 Nice
...
coord sommets
0000 308 536
0001 472 386
0002 193 404
</code></pre>
<p>What I want to is to access from <code>nom sommets</code> to <code>0004 Nice</code> ... | [
{
"answer_id": 74542797,
"author": "Bhargav",
"author_id": 15358800,
"author_profile": "https://Stackoverflow.com/users/15358800",
"pm_score": 2,
"selected": true,
"text": "sommets with open('text.txt') as file:\n lines = [line.rstrip() for line in file]\n\ntest_loop = []\nfor item in... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11315832/"
] |
74,541,921 | <p>I have 3 classes <code>Person</code>, <code>Hobby</code> and <code>Customer</code></p>
<pre><code>public class Person {
public string Name {get;set;}
public List<Hobby> Hobbies {get;set;}
}
public class Hobby {
public string Type {get;set;}
}
public class Customer {
public string CustomerName... | [
{
"answer_id": 74542526,
"author": "Yong Shun",
"author_id": 8017690,
"author_profile": "https://Stackoverflow.com/users/8017690",
"pm_score": 0,
"selected": false,
"text": "Hobbies CreateMap<Customer, Person>()\n .ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.CustomerNam... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541921",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3102993/"
] |
74,541,923 | <p>I try to find all elements <code><coordinates></code> into kml file, but not all of them have the same structure</p>
<p>for example:</p>
<pre><code><Placemark>
<Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates>
-103.6... | [
{
"answer_id": 74544579,
"author": "Professor Abronsius",
"author_id": 3603681,
"author_profile": "https://Stackoverflow.com/users/3603681",
"pm_score": 0,
"selected": false,
"text": "SimpleXML DOMDocument DOMXPath # This source file has multiple separate Placemarks, each with many coord... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541923",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20578287/"
] |
74,541,928 | <p>I'd like to split a csv column containing a dictionary-like structure/values into component columns. For example input/output data, see <a href="https://docs.google.com/spreadsheets/d/1LXVWTdD96-ZjjmOLjfH1crPTAYFwRVk3wCVXWyaV0IY/edit?usp=sharing" rel="nofollow noreferrer">this spreadsheet</a>. Data will always come ... | [
{
"answer_id": 74542070,
"author": "mohagali",
"author_id": 2916090,
"author_profile": "https://Stackoverflow.com/users/2916090",
"pm_score": 0,
"selected": false,
"text": "=SPLIT(REGEXREPLACE(A1,\"\"\".*\"\":|\\{|\\}|\\n|\\r\",\"\"),\",\")\n"
},
{
"answer_id": 74544974,
"aut... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10571775/"
] |
74,541,947 | <p>I want to compare last 30 mins data and display in UI. Datetime needs be UTC. I tried using Moment but i am getting error</p>
<pre><code>Javascript - Operator '>' cannot be applied to types 'Date' and 'Moment'.
</code></pre>
<p>Below is my code :</p>
<pre><code> let d = moment();
let d_utc = moment.utc();
... | [
{
"answer_id": 74541971,
"author": "Slava Knyazev",
"author_id": 4088472,
"author_profile": "https://Stackoverflow.com/users/4088472",
"pm_score": 2,
"selected": true,
"text": "Date Moment Date .toDate() moment(date) return category.uploaded_time > d_utc.toDate()\n Moments diff return mo... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74541947",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1309392/"
] |
74,542,007 | <p>I have an issue redirecting from the http site to the https site.</p>
<p>This <strong>index.php</strong> file is in the root folder, redirecting to a suburl:</p>
<pre><code><?php
header("Location: /news/");
?>
</code></pre>
<p>the url <code>https://www.example.com</code> is correctly redirecting to <... | [
{
"answer_id": 74645566,
"author": "MrCPlusPlus",
"author_id": 20614862,
"author_profile": "https://Stackoverflow.com/users/20614862",
"pm_score": 0,
"selected": false,
"text": "<VirtualHost *:80>\n RewriteEngine On\n RewriteCond %{HTTPS} !=on\n RewriteRule ^/?(.*) h... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74542007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/913867/"
] |
74,542,017 | <p>we are using ADAL to acquire tokens by a service account silently (no prompt, no redirect). This is our sample code:</p>
<pre class="lang-cs prettyprint-override"><code>var clientId = "";
var tenantDomain = "";
var userName = "";
var password = "";
var context = new Authentica... | [
{
"answer_id": 74645566,
"author": "MrCPlusPlus",
"author_id": 20614862,
"author_profile": "https://Stackoverflow.com/users/20614862",
"pm_score": 0,
"selected": false,
"text": "<VirtualHost *:80>\n RewriteEngine On\n RewriteCond %{HTTPS} !=on\n RewriteRule ^/?(.*) h... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74542017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3492807/"
] |
74,542,021 | <p>I have been trying to solve a problem where I am given a list as input and I need to show an output with 7 attached to each string value if it doesn't contain a 7 already.</p>
<p>I have created a list and for the case of 7 not included I have attached the '7' using the for loop. So for example: for the input
<code>[... | [
{
"answer_id": 74645566,
"author": "MrCPlusPlus",
"author_id": 20614862,
"author_profile": "https://Stackoverflow.com/users/20614862",
"pm_score": 0,
"selected": false,
"text": "<VirtualHost *:80>\n RewriteEngine On\n RewriteCond %{HTTPS} !=on\n RewriteRule ^/?(.*) h... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74542021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20502753/"
] |
74,542,043 | <p>My goal is to make a countdown clock with custom inputs. Current it works fine, but the requirement is to make the input fields independent to the timer. That is, currently whatever is entered into the input field, it also changes the timer. The timer should change and start only when start button is clicked.
But us... | [
{
"answer_id": 74645566,
"author": "MrCPlusPlus",
"author_id": 20614862,
"author_profile": "https://Stackoverflow.com/users/20614862",
"pm_score": 0,
"selected": false,
"text": "<VirtualHost *:80>\n RewriteEngine On\n RewriteCond %{HTTPS} !=on\n RewriteRule ^/?(.*) h... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74542043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9222818/"
] |
74,542,067 | <p>I am trying to compile an already built angular application. Upgrading to latest version is not possible but already built app should just compile fine.</p>
<p>my package.config file is</p>
<pre><code>{
"name": "my name",
"version": "1.0.0",
"description... | [
{
"answer_id": 74645566,
"author": "MrCPlusPlus",
"author_id": 20614862,
"author_profile": "https://Stackoverflow.com/users/20614862",
"pm_score": 0,
"selected": false,
"text": "<VirtualHost *:80>\n RewriteEngine On\n RewriteCond %{HTTPS} !=on\n RewriteRule ^/?(.*) h... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74542067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/316199/"
] |
74,542,081 | <p>I have one log file of mongodb. I want to display all output of grep command in greater than or less than given value"protocol:op_msg 523ms"</p>
<pre><code>sed -n '/2022-09-15T12:26/,/2022-09-15T14:03/p' mongod.log| grep "op_msg 523ms"
</code></pre>
<p>output of log file :</p>
<pre><code>7391:202... | [
{
"answer_id": 74546659,
"author": "R2D2",
"author_id": 10415047,
"author_profile": "https://Stackoverflow.com/users/10415047",
"pm_score": 1,
"selected": false,
"text": "grep -P '\\d+ms' /log/mongodb/mongos.log | while read LINE; do querytime=\"$(echo \"$LINE\" | grep -oP '\\d+ms' | gr... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74542081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20578447/"
] |
74,542,097 | <pre><code>class Plans(models.Model):
id = models.IntegerField(primary_key=True)
name = models.CharField(max_length=255)
plan_type = models.CharField(max_length=255)
class Order(models.Model):
id = models.IntegerField(primary_key=True)
selected_plan_id = models.IntegerField(primary_key=True)
</code... | [
{
"answer_id": 74542111,
"author": "ilyasbbu",
"author_id": 16475089,
"author_profile": "https://Stackoverflow.com/users/16475089",
"pm_score": 3,
"selected": true,
"text": "id id class Order(models.Model):\n selected_plan_id = models.ForeignKey(Plans, on_delete=models.CASCADE)\n"
}... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74542097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18395075/"
] |
74,542,101 | <p>Looking at posts like "How do i return the last generated number in a for loop?", "How do I return a value from within a for loop?", and "Having trouble returning a value outside of a for loop with Java" did not help because the problems described in the posts seem tangent to the post t... | [
{
"answer_id": 74542180,
"author": "cybvik",
"author_id": 5897686,
"author_profile": "https://Stackoverflow.com/users/5897686",
"pm_score": 0,
"selected": false,
"text": "public static int wordCount(String sentence) {\n int wc = 1;\n for (int a = 0; a <= sentence.length() - 1; a++) {\n... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74542101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19833360/"
] |
74,542,105 | <p>Basically, I know that 'socket.io' is a one-on-one communication between the server and the client.</p>
<p>But when I tried to do it myself, it wasn't</p>
<ol>
<li>Connect to the socket using a chrome browser.</li>
<li>Connect to the same page using the secret tab.</li>
</ol>
<p>in the same situation as described ab... | [
{
"answer_id": 74542180,
"author": "cybvik",
"author_id": 5897686,
"author_profile": "https://Stackoverflow.com/users/5897686",
"pm_score": 0,
"selected": false,
"text": "public static int wordCount(String sentence) {\n int wc = 1;\n for (int a = 0; a <= sentence.length() - 1; a++) {\n... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74542105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20578438/"
] |
74,542,115 | <p>Let's say I've got the classic "School" app within my Django project. My <code>school/models.py</code> contains models for both <code>student</code> and <code>course</code>. All my project files live within a directory I named <code>config</code>.</p>
<p>How do I write an include statement(s) within <code... | [
{
"answer_id": 74542180,
"author": "cybvik",
"author_id": 5897686,
"author_profile": "https://Stackoverflow.com/users/5897686",
"pm_score": 0,
"selected": false,
"text": "public static int wordCount(String sentence) {\n int wc = 1;\n for (int a = 0; a <= sentence.length() - 1; a++) {\n... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74542115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7045589/"
] |
74,542,123 | <pre><code>// int i=0;
// while(i<5){
// System.out.println(i);
// System.out.println("Java is great.");
// if (i==2){
// System.out.println("Ending the Loop.");
// break;
//
// }
// i++; //DOUBT:W... | [
{
"answer_id": 74542180,
"author": "cybvik",
"author_id": 5897686,
"author_profile": "https://Stackoverflow.com/users/5897686",
"pm_score": 0,
"selected": false,
"text": "public static int wordCount(String sentence) {\n int wc = 1;\n for (int a = 0; a <= sentence.length() - 1; a++) {\n... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74542123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20489939/"
] |
74,542,128 | <p>I have a javascript class and Html file for Flutter web-app. Both these files are in web folder. I'm loading these using flutter class with below code :</p>
<pre><code>class WebClass implements CommonAbstractClass {
@override
Widget build(BuildContext context) {
ui.platformViewRegistry.registerViewFactory(
... | [
{
"answer_id": 74542180,
"author": "cybvik",
"author_id": 5897686,
"author_profile": "https://Stackoverflow.com/users/5897686",
"pm_score": 0,
"selected": false,
"text": "public static int wordCount(String sentence) {\n int wc = 1;\n for (int a = 0; a <= sentence.length() - 1; a++) {\n... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74542128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3519241/"
] |
74,542,144 | <p>This is the list I have :</p>
<pre><code>list_input = [432567,876323,124356]
</code></pre>
<p>This is the Output I need :</p>
<pre><code>List_output = [321456,765212,013245]
</code></pre>
<p>like so,</p>
<pre><code>for index, number in enumerate(list_input):
one_number = list_lnput(index)
one... | [
{
"answer_id": 74542217,
"author": "Michael Ruth",
"author_id": 4583620,
"author_profile": "https://Stackoverflow.com/users/4583620",
"pm_score": 0,
"selected": false,
"text": "list_input = [432567,876323,124356]\nlist_output = [''.join(str(int(digit)-1) for digit in str(s)) \n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74542144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14294926/"
] |
74,542,181 | <p>I was learning JavaScript and kind of ran into problem that said like this :
<a href="https://i.stack.imgur.com/hStM1.png" rel="nofollow noreferrer">Error Image </a></p>
<p>Here's my package.json
<a href="https://i.stack.imgur.com/ciaeO.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>So to exp... | [
{
"answer_id": 74542217,
"author": "Michael Ruth",
"author_id": 4583620,
"author_profile": "https://Stackoverflow.com/users/4583620",
"pm_score": 0,
"selected": false,
"text": "list_input = [432567,876323,124356]\nlist_output = [''.join(str(int(digit)-1) for digit in str(s)) \n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74542181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15098194/"
] |
74,542,189 | <p>A MEX (Minimum Excluded) is the minimum non-negative integer that is excluded from the collection/list.
Eg :</p>
<pre><code>MEX [] = 0
MEX [1,2,3,4,5,10,10000] = 0
MEX [0,1,2,3,4,5,6] = 7
MEX [0,1,3,4,1000] = 2
MEX [0,2,3,4,5,6] =1
</code></pre>
<p>Given a list of non negative integers, find the MEX of the list.</p>... | [
{
"answer_id": 74542217,
"author": "Michael Ruth",
"author_id": 4583620,
"author_profile": "https://Stackoverflow.com/users/4583620",
"pm_score": 0,
"selected": false,
"text": "list_input = [432567,876323,124356]\nlist_output = [''.join(str(int(digit)-1) for digit in str(s)) \n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74542189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20414487/"
] |
74,542,196 | <p>I set <code>window.commandCenter: true</code>, but I accidentally hide <code>launch Command Center</code> <code>Go Back</code> <code>Go Forward</code>.</p>
<p>Now when I right-click the title bar, there is nothing about them.</p>
<p>It used to be like this
<a href="https://i.stack.imgur.com/vImzX.png" rel="nofollow ... | [
{
"answer_id": 74542217,
"author": "Michael Ruth",
"author_id": 4583620,
"author_profile": "https://Stackoverflow.com/users/4583620",
"pm_score": 0,
"selected": false,
"text": "list_input = [432567,876323,124356]\nlist_output = [''.join(str(int(digit)-1) for digit in str(s)) \n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74542196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20578554/"
] |
74,542,278 | <p>I need a two-column layout, where the left (sidebar) is fixed and the right (main content) is scrollable.</p>
<p>I've done so with bootstrap's flex grid/layout:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-c... | [
{
"answer_id": 74542344,
"author": "Boguz",
"author_id": 5509709,
"author_profile": "https://Stackoverflow.com/users/5509709",
"pm_score": 2,
"selected": false,
"text": "* {\n margin: 0;\n padding;\n 0;\n box-sizing: border-box;\n}\n\n.row {\n display: grid;\n grid-template-columns... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74542278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9971404/"
] |
74,542,280 | <p>I tried to create a gradient text with tailwindcss but the bottom of the string is getting cut off.</p>
<p>Letters like 'g' or 'p' that hand below the text line get partially cut off when making a string gradient with tailwindcss (see image below). I think this is happening because the gradient only goes to the bott... | [
{
"answer_id": 74542656,
"author": "Manjesh Kumar Sharma",
"author_id": 19296050,
"author_profile": "https://Stackoverflow.com/users/19296050",
"pm_score": 1,
"selected": true,
"text": "<div class=\"px-10 sm:px-10 md:px-12 bg-white border-2 border-white border-t-pglightgrey\">\n <div cl... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74542280",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20578257/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.