qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,524,159 | <p>I am trying to pass a concatenated columns from a LINQ statement to a select list using view bag.</p>
<p>Controller:</p>
<pre><code>var translators = bidsinfo1.Select(x => new { Name = x.TranslatorFirstName + " " + x.TranslatorLastName} ).ToList();
ViewBag.TranslatorList = translators;
</code></pre>
<p>... | [
{
"answer_id": 74524975,
"author": "Marko E",
"author_id": 8343484,
"author_profile": "https://Stackoverflow.com/users/8343484",
"pm_score": 2,
"selected": false,
"text": "data \"aws_vpc\" \"accepter\" {\n provider = aws.accepter # <--- missing aliased provider\n id = var.accepter_... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15726579/"
] |
74,524,178 | <p>I'm having a problem getting string part in ElasticSearch. Below is the configuration of index.</p>
<pre><code>PUT exemplo
{
"settings": {
"analysis": {
"analyzer": {
"portuguese_br": {
"type": "portuguese"
}
}
... | [
{
"answer_id": 74524975,
"author": "Marko E",
"author_id": 8343484,
"author_profile": "https://Stackoverflow.com/users/8343484",
"pm_score": 2,
"selected": false,
"text": "data \"aws_vpc\" \"accepter\" {\n provider = aws.accepter # <--- missing aliased provider\n id = var.accepter_... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5936418/"
] |
74,524,232 | <p>Given a string of numbers like 123456, I want to find all the possibilities they can be paired in by 2 or by itself. For example, from the string <code>123456</code> I would like to get the following:</p>
<pre><code>12 3 4 5 6, 12 34 5 6, 1 23 4 56, etc.
</code></pre>
<p>The nearest I was able to come to was this:</... | [
{
"answer_id": 74524975,
"author": "Marko E",
"author_id": 8343484,
"author_profile": "https://Stackoverflow.com/users/8343484",
"pm_score": 2,
"selected": false,
"text": "data \"aws_vpc\" \"accepter\" {\n provider = aws.accepter # <--- missing aliased provider\n id = var.accepter_... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20566173/"
] |
74,524,245 | <p>I receive the error message:</p>
<blockquote>
<p>django.urls.exceptions.NoReverseMatch: Reverse for 'journalrep' with arguments '('',)' not found. 2 pattern(s) tried: ['reports/journalrep/(?P[^/]+)/(?P[^/]+)\Z', 'reports/journalrep/\Z']</p>
</blockquote>
<p>My urls.py contains:</p>
<pre><code>from django.urls import... | [
{
"answer_id": 74524975,
"author": "Marko E",
"author_id": 8343484,
"author_profile": "https://Stackoverflow.com/users/8343484",
"pm_score": 2,
"selected": false,
"text": "data \"aws_vpc\" \"accepter\" {\n provider = aws.accepter # <--- missing aliased provider\n id = var.accepter_... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14016548/"
] |
74,524,271 | <p>I receive a date like 1.01.2022 h:00, m:00, s:00, ms: 00</p>
<p>What is the best approach to get the date at the end of the day, something like: 01.01.2022 h:23, m:59, s:59, ms: 999?</p>
<p>I tried those 2 ways:</p>
<p><code>var endOfDay = new TimeSpan(0, 23, 59, 59, 999);</code><br />
<code> time = time.Add(endOfDa... | [
{
"answer_id": 74524333,
"author": "Kit",
"author_id": 64348,
"author_profile": "https://Stackoverflow.com/users/64348",
"pm_score": 3,
"selected": true,
"text": "dateAndTime dateAndTime.Date.AddDays(1).AddTicks(-1);\n"
},
{
"answer_id": 74524410,
"author": "Dmitry Bychenko",... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14938011/"
] |
74,524,280 | <p>I have a legacy system interfacing issue that my team has elected to solve by standing up a .NET 7 <a href="https://learn.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis?view=aspnetcore-7.0" rel="nofollow noreferrer">Minimal API</a> which needs to accept a file upload. It should work for small and large f... | [
{
"answer_id": 74554205,
"author": "Wolfspirit",
"author_id": 5193262,
"author_profile": "https://Stackoverflow.com/users/5193262",
"pm_score": 2,
"selected": false,
"text": "app.MapPost(\n \"DocumentStorage/CreateDocument2/{documentId:int}\",\n [RequestSizeLimit(1_000_000_000)] as... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524280",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3241128/"
] |
74,524,281 | <p>I'm using Java Springboot to read the inbox of a Microsoft Exchange account (I am already able to send emails programmatically). When I try to read the inbox folder I receive a general error:</p>
<pre><code>javax.mail.MessagingException: Connection dropped by server?
</code></pre>
<p>Username and password are of cou... | [
{
"answer_id": 74584561,
"author": "tquadrat",
"author_id": 1554195,
"author_profile": "https://Stackoverflow.com/users/1554195",
"pm_score": 0,
"selected": false,
"text": "Properties mailProps = new Properties();\nmailProps.setProperty(\"mail.transport.protocol\",\"imaps\");\nmailProps.... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2260835/"
] |
74,524,297 | <p>I just created an indicator and also backtested it using strategy tester. Now I wish to run it automated with a 3rd party application. How can i add their webhook url in alert programmatically? any code snippets would be amazing!! I am new to pinescript</p>
| [
{
"answer_id": 74584561,
"author": "tquadrat",
"author_id": 1554195,
"author_profile": "https://Stackoverflow.com/users/1554195",
"pm_score": 0,
"selected": false,
"text": "Properties mailProps = new Properties();\nmailProps.setProperty(\"mail.transport.protocol\",\"imaps\");\nmailProps.... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20537640/"
] |
74,524,306 | <p>For example there is a list:</p>
<pre><code>list = [{'brand': 'Ford', 'Model': 'Mustang', 'year': 1964}, {'brand': 'Nissan', 'model': 'Skyline', 'year': 1969} ...]
</code></pre>
<p>I want to count there are how many model from each. How can I do it?</p>
<p>By the way sorry for the bad formatting I am new here yet.</... | [
{
"answer_id": 74584561,
"author": "tquadrat",
"author_id": 1554195,
"author_profile": "https://Stackoverflow.com/users/1554195",
"pm_score": 0,
"selected": false,
"text": "Properties mailProps = new Properties();\nmailProps.setProperty(\"mail.transport.protocol\",\"imaps\");\nmailProps.... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20566223/"
] |
74,524,342 | <p>Trying to click next button from navigation bar of website "https://uk.trustpilot.com/categories/bars_cafes?subcategories=cafe" using selenium in python.</p>
<pre><code>from selenium.webdriver import Chrome
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.common.by import By... | [
{
"answer_id": 74525183,
"author": "Barry the Platipus",
"author_id": 19475185,
"author_profile": "https://Stackoverflow.com/users/19475185",
"pm_score": 1,
"selected": false,
"text": "from selenium.webdriver.common.by import By\nfrom selenium.webdriver.support.ui import WebDriverWait\nf... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18483849/"
] |
74,524,351 | <p>Hello I'm using the code below which is from:
<a href="https://mui.com/material-ui/react-autocomplete/#country-select" rel="nofollow noreferrer">https://mui.com/material-ui/react-autocomplete/#country-select</a>
to create my countries select dropdown however I can not figure out how to get a default value of the Uni... | [
{
"answer_id": 74524426,
"author": "Blundering Philosopher",
"author_id": 2430414,
"author_profile": "https://Stackoverflow.com/users/2430414",
"pm_score": 1,
"selected": false,
"text": "Autocomplete defaultValue <Autocomplete\n id=\"country-select-demo\"\n options={countries}\n defau... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3827252/"
] |
74,524,362 | <p>Hello I am trying to create a new instance of a class via reflection:</p>
<p>In the example below the following applies:</p>
<ol>
<li>This is a method in a subclass of Arg1</li>
<li>Data is an object which stores class references which are associated with each other</li>
</ol>
<pre><code> public <T extends Arg... | [
{
"answer_id": 74642297,
"author": "Mr.Typo",
"author_id": 14790684,
"author_profile": "https://Stackoverflow.com/users/14790684",
"pm_score": 2,
"selected": true,
"text": "ClassLoaders Foo app ClassLoader Foo ClassLoader import com.google.gson.Gson;\n\nimport java.io.ByteArrayOutputStre... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14774086/"
] |
74,524,363 | <p>im making a python script that can manage my google projects.
im having a insue with one part
when i try to exclude the project its can return to me many errors.</p>
<p>i did a peace of code to get this exception:</p>
<pre><code> try:
# Initialize request argument(s)
request = DeleteP... | [
{
"answer_id": 74524567,
"author": "Mazlum Tosun",
"author_id": 9261558,
"author_profile": "https://Stackoverflow.com/users/9261558",
"pm_score": 3,
"selected": true,
"text": "Python try:\n # Initialize request argument(s)\n\n request = DeleteProjectRequest(... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524363",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10413299/"
] |
74,524,377 | <p>What would the time complexity be for the below recursive function?</p>
<p>I am using the the below T(n) but not sure if I created the correct equation for this function</p>
<p>T(n)=T(n-1)+n -> o(n^2)</p>
<pre><code>public static int test2(int n){
if(n<=0){
return 0;
}
for(int i =0; i<=n... | [
{
"answer_id": 74524724,
"author": "Alexander Ivanchenko",
"author_id": 17949945,
"author_profile": "https://Stackoverflow.com/users/17949945",
"pm_score": 0,
"selected": false,
"text": "O(n^2) test(n) n + 1 n = 2 t(2)\n / | \\\n / | \\\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10869670/"
] |
74,524,384 | <p>It's quite simple: I have</p>
<ul>
<li>a datadog-dashbaord</li>
<li>a <a href="https://docs.datadoghq.com/dashboards/template_variables/" rel="nofollow noreferrer">template-variable</a> named <code>env</code>, which can have following values <code>['prod', 'test']</code></li>
</ul>
<p><a href="https://i.stack.imgur.... | [
{
"answer_id": 74524724,
"author": "Alexander Ivanchenko",
"author_id": 17949945,
"author_profile": "https://Stackoverflow.com/users/17949945",
"pm_score": 0,
"selected": false,
"text": "O(n^2) test(n) n + 1 n = 2 t(2)\n / | \\\n / | \\\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524384",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/842302/"
] |
74,524,386 | <p>I have an array of Ids, I need to iterate through all the Ids, and for each Ids of the array make an async call to retrieve a value from DB, then sums all the value gathered. I did something like this</p>
<pre><code> let quantity = 0;
for (const id of [1,2,3,4]) {
const subQuantity = await getSubQuantityById(... | [
{
"answer_id": 74524496,
"author": "Thomas Zimmermann",
"author_id": 13527621,
"author_profile": "https://Stackoverflow.com/users/13527621",
"pm_score": 1,
"selected": false,
"text": "async forEach for let totalQuantity = 0;\nfor (const id of arrayOfIds) {\n totalQuantity += await getSu... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18542993/"
] |
74,524,389 | <p>Let's say I have an example dataframe in the following format:</p>
<pre><code>df <- data.frame( c(1,2,3,1,2,3,1,2,3),
c(3,3,3,2,2,2,1,1,1),
c(23,23,34,134,134,NA,45,NA,NA)
)
colnames(df) <- c("id", "year", "fte_wage")
df <- df[is.na(df$fte_w... | [
{
"answer_id": 74524481,
"author": "Dan Adams",
"author_id": 13210554,
"author_profile": "https://Stackoverflow.com/users/13210554",
"pm_score": 2,
"selected": true,
"text": "group_by(id) row_number() > 1 library(tidyverse)\n\ndf <- data.frame(\"id\" = c(1,2,3,1,2,3,1,2,3),\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14232205/"
] |
74,524,402 | <p>I am trying to use Java to read a file, scan for Unicode as an escape sequence, convert to English readable, then write the replacement to the file.
As an example I make a similar script. The normalizer works if the input is a string, but if I build the string through an array or from a stringBuilder the output is l... | [
{
"answer_id": 74524481,
"author": "Dan Adams",
"author_id": 13210554,
"author_profile": "https://Stackoverflow.com/users/13210554",
"pm_score": 2,
"selected": true,
"text": "group_by(id) row_number() > 1 library(tidyverse)\n\ndf <- data.frame(\"id\" = c(1,2,3,1,2,3,1,2,3),\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19987639/"
] |
74,524,413 | <p>When using images in react, there is either a problem with typescript, or the image breaks on the site.</p>
<p>To solve the problem, I tried:</p>
<ol>
<li>Add url-loader and file-loader to the webpack.config.js</li>
</ol>
<pre><code>const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin... | [
{
"answer_id": 74524481,
"author": "Dan Adams",
"author_id": 13210554,
"author_profile": "https://Stackoverflow.com/users/13210554",
"pm_score": 2,
"selected": true,
"text": "group_by(id) row_number() > 1 library(tidyverse)\n\ndf <- data.frame(\"id\" = c(1,2,3,1,2,3,1,2,3),\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20566211/"
] |
74,524,425 | <p>I want to change my image size with my style.css but it doesn't apply.</p>
<p>Here is my style:</p>
<pre><code> .headerImage {
width: 100px;
height: 100px;
}
</code></pre>
<p>And here is how I'm trying to insert my image:</p>
<pre><code><div class="headerImage">
<img src=&qu... | [
{
"answer_id": 74524448,
"author": "JellyTheTitan",
"author_id": 20523676,
"author_profile": "https://Stackoverflow.com/users/20523676",
"pm_score": -1,
"selected": false,
"text": "<div> <div class=\"headerImage\">\n <img src=\"/images/header-image.png\" alt=\"your image\">\n</div>\n"... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524425",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20548073/"
] |
74,524,437 | <p>I am trying to convert a string that is only 1s and 0s to a decimal value. The variable <code>value</code> is initialized to 0 and is never updated. I suspect the problem is that <code>binaryString[i]</code> is treated as a string and therefore the athematic function doesn't work. How can I fix this?</p>
<pre><code>... | [
{
"answer_id": 74524516,
"author": "john",
"author_id": 882003,
"author_profile": "https://Stackoverflow.com/users/882003",
"pm_score": 2,
"selected": false,
"text": "binaryString[i] '0' binaryString[i] - '0'\n pow(2,i) 1 << i\n + * value += (1 << i) * (binaryString[i] - '0');\n int bina... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14487175/"
] |
74,524,438 | <p>I've switched from .grid() to .place() in my program, so I decided to remove a frame that contained the grid widgets:</p>
<pre><code>BackButtonR = Button(registerPage, text="Back", command=lambda: show_frame(Menu))
BackButtonR.grid(row=0, column=0, sticky=W)
Button2F3 = Button(registerPage, text="Find... | [
{
"answer_id": 74526634,
"author": "acw1668",
"author_id": 5317403,
"author_profile": "https://Stackoverflow.com/users/5317403",
"pm_score": 0,
"selected": false,
"text": "root.grid_rowconfigure(0, weight=1) root.grid_columnconfigure(0, weight=1) root Menu.grid_columnconfigure(0, weight=... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17235593/"
] |
74,524,444 | <p><a href="https://soulandwolf.com.au/blog/what-is-document-flow/" rel="nofollow noreferrer">This website</a> uses the word "Definition" but never defines it:</p>
<blockquote>
<p>Document flow is the arrangement of page elements, as defined by CSS positioning statements, and the order of HTML elements. this ... | [
{
"answer_id": 74526634,
"author": "acw1668",
"author_id": 5317403,
"author_profile": "https://Stackoverflow.com/users/5317403",
"pm_score": 0,
"selected": false,
"text": "root.grid_rowconfigure(0, weight=1) root.grid_columnconfigure(0, weight=1) root Menu.grid_columnconfigure(0, weight=... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8386132/"
] |
74,524,526 | <p>could someone help with this?
i have four articles and i want them to be organized like this:</p>
<pre><code> first one
second one third one fourth one
</code></pre>
<p>but i don't understand what is the problem??</p>
<pre><code>body {
background-colo... | [
{
"answer_id": 74524884,
"author": "itaycode",
"author_id": 3726834,
"author_profile": "https://Stackoverflow.com/users/3726834",
"pm_score": 2,
"selected": false,
"text": ".container {\n display: grid; \n grid-template-columns: 1fr 1fr 1fr; \n grid-template-rows: 1fr 1fr; \n gap: 0p... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20566320/"
] |
74,524,527 | <div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Route</th>
<th>Incident</th>
<th>delay_minute</th>
</tr>
</thead>
<tbody>
<tr>
<td>63</td>
<td>Operator</td>
<td>60</td>
</tr>
<tr>
<td>63</td>
<td>Operator</td>
<td>24</td>
</tr>
<tr>
<td>63</td>
<td>Mechanical</td>
<td>89</td>
</tr>
<tr>
<td>54<... | [
{
"answer_id": 74524669,
"author": "Sergey",
"author_id": 14535517,
"author_profile": "https://Stackoverflow.com/users/14535517",
"pm_score": 0,
"selected": false,
"text": "SELECT Z.Route,Z.Incident FROM\n(\n SELECT C.Route,C.Incident,\n ROW_NUMBER()OVER(PARTITION BY C.Route,C.Incide... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18408564/"
] |
74,524,544 | <p>I'm trying to run stable diffusion on my local pc. It's a macbook pro m1. Even though I did follow every single step, I keep getting an import error. What might possibly be the reason and how may I fix it?</p>
<p>ImportError: cannot import name 'WatermarkEncoder' from 'imWatermark'</p>
<p>I was referring an online t... | [
{
"answer_id": 74590767,
"author": "Kate Scshegoleva",
"author_id": 20615086,
"author_profile": "https://Stackoverflow.com/users/20615086",
"pm_score": 0,
"selected": false,
"text": "from imWatermark import WatermarkEncoder from imwatermark import WatermarkEncoder"
}
] | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10354991/"
] |
74,524,574 | <pre><code>class TaskInput:
def __init__(self):
self.cfg = my_config #### Question: How do I do this only once?
class TaskA(TaskInput):
def __init__(self):
pass
class TaskB (TaskInput):
def __init__(self):
pass
</code></pre>
<ul>
<li>There are many tasks like <code>TaskA</code>, <c... | [
{
"answer_id": 74524676,
"author": "kindall",
"author_id": 416467,
"author_profile": "https://Stackoverflow.com/users/416467",
"pm_score": 2,
"selected": false,
"text": "__init__ class TaskInput:\n cfg = my_config\n self.cfg TaskInput"
},
{
"answer_id": 74526579,
"author":... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/167814/"
] |
74,524,585 | <p>I have a <code>base.html</code> which my <code>options.html</code> extends from like this</p>
<pre class="lang-html prettyprint-override"><code>//options.html
{% extends "webpage/base.html" %}
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'webpage/opti... | [
{
"answer_id": 74524939,
"author": "SamSparx",
"author_id": 18799377,
"author_profile": "https://Stackoverflow.com/users/18799377",
"pm_score": 3,
"selected": true,
"text": "<head>\n...\n{% block htmlhead %}\n{% endblock htmlhead %}\n</head>\n {% block htmlhead %}\n{% load static %}\n<li... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6224975/"
] |
74,524,610 | <p><strong>EDIT: although this question has been closed, it is helpful to note that the answers provided use a very different approach (with dplyr) than the original question asked in 2012(!). These new answers may be helpful for different users.</strong></p>
<p>I have a datasets of sites with the min and max years wh... | [
{
"answer_id": 74524725,
"author": "Andre Wildberg",
"author_id": 9462095,
"author_profile": "https://Stackoverflow.com/users/9462095",
"pm_score": 3,
"selected": true,
"text": "dplyr summarize library(dplyr)\n\ndf %>% \n rowwise() %>% \n summarize(site, year = seq(minY, maxY, 1))\n# A... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524610",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3220999/"
] |
74,524,638 | <p>I currently have this
how can I get it so it checks for a float and uses a while loop</p>
<pre><code>def get_float():
number = input('Input a decimal number ')
while number != float:
print('bad input ')
number = input('Input a decimal number ')
else:
return number
get_flo... | [
{
"answer_id": 74524666,
"author": "Silvio Mayolo",
"author_id": 2288659,
"author_profile": "https://Stackoverflow.com/users/2288659",
"pm_score": 2,
"selected": false,
"text": "def get_float():\n while True:\n number = input('Input a number ')\n try:\n return... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20566386/"
] |
74,524,640 | <p>I have to implement a mini-router in VHDL. The design requirements for this are:</p>
<p><img src="https://i.stack.imgur.com/7zqJn.png" alt="design requirements" /></p>
<p>I've written the implementation, and a testbench. However, looking at the simulation waveform, some of my initial signals are undefined and I'm no... | [
{
"answer_id": 74524931,
"author": "the busybee",
"author_id": 11294831,
"author_profile": "https://Stackoverflow.com/users/11294831",
"pm_score": 1,
"selected": false,
"text": "rising_edge(clk) if reset = '0' then\n -- reset statements\n elsif rising_edge(clk) then\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20563102/"
] |
74,524,687 | <p>I’m checking to see if a token is not a phone number or email because it has to be one of those.</p>
<p>I know how to do email:</p>
<pre><code>Token NOT LIKE ‘%@%’
</code></pre>
<p>Not sure how remove phone numbers that have 10 characters length.</p>
<p>All is being coded in Oracle SQL.</p>
<p>I tried:</p>
<pre><cod... | [
{
"answer_id": 74524931,
"author": "the busybee",
"author_id": 11294831,
"author_profile": "https://Stackoverflow.com/users/11294831",
"pm_score": 1,
"selected": false,
"text": "rising_edge(clk) if reset = '0' then\n -- reset statements\n elsif rising_edge(clk) then\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18431091/"
] |
74,524,715 | <p>I am trying to import a pandas dataframe in a Streamlit app (the goal being to run a Machine Learning model based on this dataframe when clicking a button). I use the usual way:</p>
<pre><code>import pandas as pd
import streamlit as st
df = pd.read_csv('/data/metabolic_syndrome.csv')
if (st.button('Click on this fan... | [
{
"answer_id": 74524931,
"author": "the busybee",
"author_id": 11294831,
"author_profile": "https://Stackoverflow.com/users/11294831",
"pm_score": 1,
"selected": false,
"text": "rising_edge(clk) if reset = '0' then\n -- reset statements\n elsif rising_edge(clk) then\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14820215/"
] |
74,524,739 | <p>I hope you are well. I am looking to convert the following XML URL into a pandas dataframe.</p>
<p>You can view the XML here; <a href="https://clients2.google.com/complete/search?hl=en&output=toolbar&q=how%20garage%20doors" rel="nofollow noreferrer">https://clients2.google.com/complete/search?hl=en&outpu... | [
{
"answer_id": 74524931,
"author": "the busybee",
"author_id": 11294831,
"author_profile": "https://Stackoverflow.com/users/11294831",
"pm_score": 1,
"selected": false,
"text": "rising_edge(clk) if reset = '0' then\n -- reset statements\n elsif rising_edge(clk) then\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13056765/"
] |
74,524,754 | <p>I have a data frame like this and I am doing this on R. My problems can be divided into two steps.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>SUBID</th>
<th>ABC</th>
<th>BCD</th>
<th>DEF</th>
</tr>
</thead>
<tbody>
<tr>
<td>192838</td>
<td>4</td>
<td>-3</td>
<td>2</td>
</tr>
<tr>
<t... | [
{
"answer_id": 74524820,
"author": "Jilber Urbina",
"author_id": 1315767,
"author_profile": "https://Stackoverflow.com/users/1315767",
"pm_score": 2,
"selected": false,
"text": " df$output <-apply(df[,-1], 1, function(x) paste(names(df)[-1][x<0], collapse = \",\"))\n df\n SUBID ABC BCD... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20005378/"
] |
74,524,792 | <blockquote>
<p><strong>A Challenging One: How to convert a singly linked list into a staggered linked list using C language?</strong>
By Modifying the order of a linked list in the following pattern, adding the current node to the result list after every step:</p>
<ul>
<li>Start at the head</li>
<li>Take two steps for... | [
{
"answer_id": 74524820,
"author": "Jilber Urbina",
"author_id": 1315767,
"author_profile": "https://Stackoverflow.com/users/1315767",
"pm_score": 2,
"selected": false,
"text": " df$output <-apply(df[,-1], 1, function(x) paste(names(df)[-1][x<0], collapse = \",\"))\n df\n SUBID ABC BCD... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20021859/"
] |
74,524,803 | <p>I am having a hard time following this solution. I understand we set a prefix, and loop through the remainder of the array and keep chopping the prefix until prefix fully exists in each string but why are we doing <code>strs[i].indexOf(output) != 0</code> in the while loop?</p>
<pre><code>public String longestCommon... | [
{
"answer_id": 74524869,
"author": "Joop Eggen",
"author_id": 984823,
"author_profile": "https://Stackoverflow.com/users/984823",
"pm_score": 3,
"selected": true,
"text": "startWith while (!strs[i].startsWith(output)) {\n output = output.substring(0, output.length() - 1);\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2624866/"
] |
74,524,863 | <p>I'm wondering if it has something that works like static variable inside a function in C.</p>
<p>In C language we have this:</p>
<pre><code>void next_x()
{
static int x = 0;
x++;
}
</code></pre>
<p>Variable <code>x</code> is declared and initialized inside a function. As far I know C - it can be used only i... | [
{
"answer_id": 74524949,
"author": "Sweeper",
"author_id": 5133585,
"author_profile": "https://Stackoverflow.com/users/5133585",
"pm_score": 2,
"selected": false,
"text": "object static invoke object NextX {\n private var x = 0\n operator fun invoke() = x++\n}\n object fun main() {... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1215291/"
] |
74,524,880 | <p>20/11/2022 12:00:52 2 X 15.95 15.95 USD 57 5 689 5 689 1 4111 0 Amazing Lego Team</p>
<p>I need to get the position of No 4111 in the above text string, As an excel beginner any help will be greatly appreciated. Thanks.</p>
<p>All of the Text Strings will have a 4 digit number like 4111 whi... | [
{
"answer_id": 74524949,
"author": "Sweeper",
"author_id": 5133585,
"author_profile": "https://Stackoverflow.com/users/5133585",
"pm_score": 2,
"selected": false,
"text": "object static invoke object NextX {\n private var x = 0\n operator fun invoke() = x++\n}\n object fun main() {... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524880",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19833096/"
] |
74,524,902 | <p>The following:</p>
<pre><code>print(type(0x01))
</code></pre>
<p>Returns:</p>
<pre><code><class 'int'>
</code></pre>
<p>Whereas, the following:</p>
<pre><code>print(0x01)
</code></pre>
<p>Returns</p>
<pre><code>1
</code></pre>
<p>Now let's say we have:</p>
<pre><code>x = "0x01"
</code></pre>
<p>How d... | [
{
"answer_id": 74525063,
"author": "user3273429",
"author_id": 3273429,
"author_profile": "https://Stackoverflow.com/users/3273429",
"pm_score": 1,
"selected": false,
"text": "x = \"0x01\"\nprint(x)\nx = int(x, 16)\nprint(x)\n 0x01\n1\n"
},
{
"answer_id": 74546305,
"author": ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8840978/"
] |
74,524,907 | <p>So i have fresh Manjaro installation and only software i have is ws code and some bloatware.</p>
<p>But when i want to search for extesions like C/C++ it find somethink but not what i need.</p>
<p>This is what i get</p>
<p><a href="https://i.stack.imgur.com/QAv8a.png" rel="nofollow noreferrer">my output</a></p>
<p><... | [
{
"answer_id": 74525149,
"author": "Berry",
"author_id": 8996406,
"author_profile": "https://Stackoverflow.com/users/8996406",
"pm_score": 1,
"selected": false,
"text": "Extensions: Install from VSIX... ctrl + shift + p"
}
] | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20371135/"
] |
74,524,911 | <pre><code>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <ctype.h>
#include <fcntl.h>
#define PATH_LINE 128
void get_pid(){
char full_path[PATH_LINE]="";
int fd;
char pid[6];
for(int i=0 ;i <99999; i++){
... | [
{
"answer_id": 74525880,
"author": "tedo3637",
"author_id": 5740753,
"author_profile": "https://Stackoverflow.com/users/5740753",
"pm_score": 0,
"selected": false,
"text": "find /proc/ -maxdepth 1 -type d 2>/dev/null /proc/ close(fd); ulimit -n"
},
{
"answer_id": 74539346,
"a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20539260/"
] |
74,524,913 | <p>I've been asked to write what this codes does:</p>
<pre><code>int main()
{
int var1,var2, *ptr;
ptr=&var1;
var2=12;
*ptr=var2;
var1=var1/ *ptr;
printf("%d %d", var1,var2);
}
</code></pre>
<p>Now my question is what does this means. At first ptr stores the address of var1. Then v... | [
{
"answer_id": 74524957,
"author": "Eric Postpischil",
"author_id": 298225,
"author_profile": "https://Stackoverflow.com/users/298225",
"pm_score": 3,
"selected": true,
"text": "ptr=&var1; &var1 var1 ptr = &var1 ptr var2 = 12; var2 *ptr = var2; var2 *ptr var2 *ptr ptr var1 *ptr var1 *ptr... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524990/"
] |
74,524,917 | <p>I use R. I have dataframe like this:</p>
<pre><code>dat <- data.frame(
group = c(1,1,1,1,1,1,2,2,2,2,2),
horizon = c(1,3,5,6,7,10,1,3,5,9,10),
value = c(1.0,0.9,0.8,0.6,0.3,0.0,0.5,0.6,0.8,0.9,0.8)
other = c(a,a,a,a,a,a,b,b,b,b,b)
)
</code></pre>
<p>And i would like to add row for every horizon that is m... | [
{
"answer_id": 74524957,
"author": "Eric Postpischil",
"author_id": 298225,
"author_profile": "https://Stackoverflow.com/users/298225",
"pm_score": 3,
"selected": true,
"text": "ptr=&var1; &var1 var1 ptr = &var1 ptr var2 = 12; var2 *ptr = var2; var2 *ptr var2 *ptr ptr var1 *ptr var1 *ptr... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20566156/"
] |
74,524,974 | <p>I making scroll animation progress bars, when the scroll reaches the element's width change from 0 to 78%. but there is one problem whenever I scroll again in the same height condition my width reset.
I know why this happens. in fact, the range variable(i comment in JS) reassigns to 0 whenever I scroll, I don't kno... | [
{
"answer_id": 74525517,
"author": "c0m1t",
"author_id": 5289334,
"author_profile": "https://Stackoverflow.com/users/5289334",
"pm_score": 2,
"selected": true,
"text": "const SEORange = document.getElementById(\"SEO\");\nlet intervalId;\nlet range = 0;\n\nwindow.addEventListener(\"scroll... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524974",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17620112/"
] |
74,524,983 | <p>I want my site to look like this (not with the same text layout on the img) but the won't line up with the and there is a gap which I can't remove.</p>
<p><a href="https://i.stack.imgur.com/7fwGP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7fwGP.png" alt="enter image description here" /></a>... | [
{
"answer_id": 74525144,
"author": "Alen Vlahovljak",
"author_id": 14085882,
"author_profile": "https://Stackoverflow.com/users/14085882",
"pm_score": 0,
"selected": false,
"text": "position: absolute body, html {\n margin: 0 auto;\n font-family: Verdana, Arial, Helvetica, sans-serif;\... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524983",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19612400/"
] |
74,525,000 | <p>If in x or y is NA, I want to keep this row containing NA and discard the rows, where both, x and y are not NA. I tried with <code>dplyr::filter()</code>, <code>purrr::keep()</code> and more but nothing worked.
It is essential to do that conditionally and not by the row number since my data set is too large for that... | [
{
"answer_id": 74525105,
"author": "MrFlick",
"author_id": 2372064,
"author_profile": "https://Stackoverflow.com/users/2372064",
"pm_score": 4,
"selected": true,
"text": "filter() if_any df %>% filter(if_any(everything(), is.na))\n df %>% filter(if_any(c(x, y), is.na))\ndf %>% filter(if_... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14736368/"
] |
74,525,003 | <p>I need to access <code>my_key</code> in a Pydantic <code>Field</code>, as shown below:</p>
<pre><code>
class MyModel(BaseModel):
x: str = Field(default=None, my_key=7)
def print_field_objects(self):
for obj in self.something_something: # What do I use here
print(obj.my_key) ... | [
{
"answer_id": 74525112,
"author": "Hedde van der Heide",
"author_id": 911519,
"author_profile": "https://Stackoverflow.com/users/911519",
"pm_score": 2,
"selected": false,
"text": "self.__class__.__fields__ self.x"
},
{
"answer_id": 74532350,
"author": "Gino Mempin",
"au... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19674402/"
] |
74,525,008 | <p>I am using windows</p>
<pre><code> import cv2
ModuleNotFoundError: No module named 'cv2'
</code></pre>
<p>how to fix it?</p>
<p>I tried</p>
<pre><code>pip install opencv-contrib-python
</code></pre>
<pre><code>pip3 install opencv-python
</code></pre>
<pre><code>pip install opencv-python
</code></pre>
<p>etc etc, ... | [
{
"answer_id": 74525112,
"author": "Hedde van der Heide",
"author_id": 911519,
"author_profile": "https://Stackoverflow.com/users/911519",
"pm_score": 2,
"selected": false,
"text": "self.__class__.__fields__ self.x"
},
{
"answer_id": 74532350,
"author": "Gino Mempin",
"au... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17919391/"
] |
74,525,059 | <p>It's probably easiest to explain if I post some code:</p>
<pre><code><article>
<img class="service_pic" src="image.png" title="UNFILLED" /> <!-- I WANT THIS (ODD) IMAGE FLOATED RIGHT -->
<div class="service_text">
<h2>TITLE</h2>... | [
{
"answer_id": 74525204,
"author": "YasinDemirkol",
"author_id": 20540015,
"author_profile": "https://Stackoverflow.com/users/20540015",
"pm_score": 1,
"selected": false,
"text": "article:nth-child(odd){\nfloat: right;\n}\n\narticle:nth-child(even){\nfloat: left;\n}\n"
},
{
"answ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18522786/"
] |
74,525,090 | <p>I have a function that runs several commands and each of them take awhile to finish. I added <code>set -x</code> at the beginning so that I can see exactly which command is executing while it's running. Then at the end I disable it with <code>set +x</code>.</p>
<pre><code>function toolong() {
set -x;
takes_a_lon... | [
{
"answer_id": 74525211,
"author": "KamilCuk",
"author_id": 9072753,
"author_profile": "https://Stackoverflow.com/users/9072753",
"pm_score": 2,
"selected": false,
"text": "toolong() {\n (\n set -x;\n takes_a_long_time &&\n takes_also_a_long_time &&\n takes_more time\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/147390/"
] |
74,525,116 | <p>I have Russian and English language dictionary and I want to sync them dynamically.</p>
<p>Let's say I have two objects:</p>
<pre><code>const ru = {
'page.main.hello': 'Привет!'
}
</code></pre>
<pre><code>const en = {
'page.main.hello': 'Hi!'
}
</code></pre>
<p>If I add key to "ru" object then I need that ... | [
{
"answer_id": 74525199,
"author": "Drew Pereli",
"author_id": 6789286,
"author_profile": "https://Stackoverflow.com/users/6789286",
"pm_score": 1,
"selected": true,
"text": "interface Language {\n 'page.main.hello': string;\n 'page.main.bye': string;\n}\n\nconst ru: Language = {\n //... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20566186/"
] |
74,525,137 | <p>i want to take a random string of the array and should count the consonants of the random string.
Problem is it did not count the letters from array_rand()
Here is what i get at this point:</p>
<pre><code><?php
$woerter = ["Maus", "Automobil", "Schifffahrt",
"Hund&q... | [
{
"answer_id": 74525201,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 3,
"selected": true,
"text": "$word = $woerter[$random];\nfor ($i = 0; $i < strlen($word); $i++) {\n if (in_array($word[$i], $konsonanten)) {\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525137",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20342816/"
] |
74,525,138 | <p>I have a set of objects (product data) that I have sorted from an API - the objects contain repeat keys and repeat arrays of information as a product can have many categories and subcategories.</p>
<pre><code>{
"category":"e-liquid",
"subcategories":[
{
"attrib... | [
{
"answer_id": 74525480,
"author": "Andrew Parks",
"author_id": 5898421,
"author_profile": "https://Stackoverflow.com/users/5898421",
"pm_score": 2,
"selected": true,
"text": "const data = [{\"category\":\"e-liquid\",\"subcategories\":[{\"attributes\":{\"name\":\"50ml\",\"id\":19}},{\"at... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525138",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3430526/"
] |
74,525,159 | <p>I am extremely new to vba, I have a column A in sheet 1 and column B in sheet 2. I want if a cell in column A sheet 1 changes, then a cell in column B sheet 2 should change also.</p>
<pre><code>Private Sub Worksheet_Change (ByVal Target As Range)
If Not Intersect(Target, Range("A:A")) Is Nothing Then
Sheet... | [
{
"answer_id": 74525480,
"author": "Andrew Parks",
"author_id": 5898421,
"author_profile": "https://Stackoverflow.com/users/5898421",
"pm_score": 2,
"selected": true,
"text": "const data = [{\"category\":\"e-liquid\",\"subcategories\":[{\"attributes\":{\"name\":\"50ml\",\"id\":19}},{\"at... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20566736/"
] |
74,525,217 | <p>I have a data.table with two columns "From" and "To" as follows:</p>
<pre><code>data.table(From = c(1,1,1,1,2,2,2,2,3,3,3,4,4,5),
To = c(3,4,5,6,3,4,5,6,4,5,6,5,6,6))
</code></pre>
<p>The data.table will always be sorted as shown in the example above, with "From" and "To... | [
{
"answer_id": 74525414,
"author": "ThomasIsCoding",
"author_id": 12158757,
"author_profile": "https://Stackoverflow.com/users/12158757",
"pm_score": 3,
"selected": true,
"text": "dt %>%\n group_by(From) %>%\n slice_min(To) %>%\n graph_from_data_frame() %>%\n ego(\n order = sum((m... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6720088/"
] |
74,525,244 | <p>I am working on a page of mine.
The aim is that when I click on the image of apples, everything except for the rest of my images gets set to a display of none.</p>
<p>Here is my code:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pr... | [
{
"answer_id": 74525414,
"author": "ThomasIsCoding",
"author_id": 12158757,
"author_profile": "https://Stackoverflow.com/users/12158757",
"pm_score": 3,
"selected": true,
"text": "dt %>%\n group_by(From) %>%\n slice_min(To) %>%\n graph_from_data_frame() %>%\n ego(\n order = sum((m... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525244",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20132110/"
] |
74,525,251 | <p>When I try to get a product and command it I get "Illuminate\Database\QueryException
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null (SQL: insert into <code>commande</code> (<code>name</code>, <code>familyname</code>, <code>quantity</code>, <code>mobile</code>, <code>ville</co... | [
{
"answer_id": 74526774,
"author": "Dicky Agusputra",
"author_id": 8859333,
"author_profile": "https://Stackoverflow.com/users/8859333",
"pm_score": -1,
"selected": false,
"text": "$commande = new AppComande();\n"
},
{
"answer_id": 74602048,
"author": "Malik Kadri",
"auth... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11281627/"
] |
74,525,259 | <p>:)</p>
<p>I am starting a new Laravel project with <a href="https://lighthouse-php.com/" rel="nofollow noreferrer">Lighthouse</a> and have been problems with resolving non root fields.<br />
According to the <a href="https://lighthouse-php.com/5/the-basics/fields.html#resolving-non-root-fields" rel="nofollow norefer... | [
{
"answer_id": 74529495,
"author": "mostafa",
"author_id": 19372996,
"author_profile": "https://Stackoverflow.com/users/19372996",
"pm_score": 0,
"selected": false,
"text": "type Query {\n version: Version @field(resolver: \"App\\GraphQL\\Queries\\Version\")\n}\n"
},
{
"answer... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8092143/"
] |
74,525,272 | <p>I have a method defined that wraps fetch in order to automatically handle certain edge cases and provide a unified response class alerting system. I don't want to automatically parse responses as json (the platform will not only be requesting JSON) and came up with the idea to add to the fetch method's prototype a .... | [
{
"answer_id": 74525434,
"author": "Alex Wayne",
"author_id": 62076,
"author_profile": "https://Stackoverflow.com/users/62076",
"pm_score": 1,
"selected": false,
"text": "prototype const foo = () => 123\nfoo.bar = () => 'hello'\n\nfoo() // 123\nfoo.bar() // \"hello\"\n"
},
{
"ans... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82333/"
] |
74,525,295 | <p>I made a SearchViewController with tableView. I put some data in tableView from server (pictures of cats). But now I want to show not only all pictures, but also filtered by certain categories images. For this I suppose I need to push my second array with category's images into the tableView. I guess that to achieve... | [
{
"answer_id": 74612857,
"author": "teja_D",
"author_id": 9109095,
"author_profile": "https://Stackoverflow.com/users/9109095",
"pm_score": 0,
"selected": false,
"text": "self.tableView.dataSource = myData as? any UITableViewDataSource\n self.tableView.dataSource = self\n"
},
{
"... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525295",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14506424/"
] |
74,525,297 | <p>I am a bit rusty in HTML and CSS.
Can somebody suggest, how to create a line(in in the middle, and text on left and right?</p>
<p><img src="https://i.stack.imgur.com/R6Xh8.png" alt="Center" /></p>
<p>Ive tried one div with left: 50; second div right:50 and text align right</p>
| [
{
"answer_id": 74525336,
"author": "Oliver Kucharzewski",
"author_id": 1224963,
"author_profile": "https://Stackoverflow.com/users/1224963",
"pm_score": 2,
"selected": false,
"text": "border-left: 1px solid black;\nleft: 35%;\ntop: 0;\nbottom: 0;\nposition: absolute;\n position: relative... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19127095/"
] |
74,525,304 | <p>pretty new to python, but I'm trying to have the mouse click on a point within an image using PyAutoGUI. However the project requires I simulate a "human pattern". So what I'm going for is an "accurate-like" accuracy, where most of the points are in the middle and it gets more sparse the further ... | [
{
"answer_id": 74525336,
"author": "Oliver Kucharzewski",
"author_id": 1224963,
"author_profile": "https://Stackoverflow.com/users/1224963",
"pm_score": 2,
"selected": false,
"text": "border-left: 1px solid black;\nleft: 35%;\ntop: 0;\nbottom: 0;\nposition: absolute;\n position: relative... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872757/"
] |
74,525,311 | <pre><code>L1 = ['a','b','c','a','b','c']
L2 = ['Cat','Fish','Crow','Dog','Frog','Eagle']
Desired Output 1: D1 = {'a':['Cat','Dog'],
'b':['Fish','Frog'],
'c':['Crow','Eagle']}
Desired Output 2: DF1 = A B C
Cat Fish Crow
... | [
{
"answer_id": 74525354,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 3,
"selected": true,
"text": "L1 = [\"a\", \"b\", \"c\", \"a\", \"b\", \"c\"]\nL2 = [\"Cat\", \"Fish\", \"Crow\", \"Dog\", \"Frog\", \"Eagl... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20566834/"
] |
74,525,326 | <p>I am trying to save a dict as json in azure data lake/databricks however I am getting a File not found error. Any clue what I am doing wrong?</p>
<pre><code>import json
test_config = {
"expectations": [
{
"kwargs": {
"column": "role",
"value_s... | [
{
"answer_id": 74525507,
"author": "Remzinho",
"author_id": 2484591,
"author_profile": "https://Stackoverflow.com/users/2484591",
"pm_score": 1,
"selected": false,
"text": "os.path.ismount json.dumps indent=2"
},
{
"answer_id": 74529798,
"author": "Rakesh Govindula",
"aut... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9473505/"
] |
74,525,368 | <p>I would like to patch a class in Python in unit testing. The main code is this (<code>mymath.py</code>):</p>
<pre><code>class MyMath:
def my_add(self, a, b):
return a + b
def add_three_and_two():
my_math = MyMath()
return my_math.my_add(3, 2)
</code></pre>
<p>The test class is this:</p>
<pre><c... | [
{
"answer_id": 74525521,
"author": "Yaakov Bressler",
"author_id": 10521959,
"author_profile": "https://Stackoverflow.com/users/10521959",
"pm_score": 2,
"selected": false,
"text": "my_add self my_add class MyMath:\n\n @classmethod\n def my_add(cls, a, b):\n return a + b\n\n... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19280082/"
] |
74,525,386 | <p>I'm currently learning about arrays and the different ways to manipulate them. I was asked to: "multiply 5 to the given array using the forEach function"</p>
<p>Here is my code so far.</p>
<p>It looks as if everything works when I console.log in the forEach function, but when I log the console for the arra... | [
{
"answer_id": 74525418,
"author": "Oliver Kucharzewski",
"author_id": 1224963,
"author_profile": "https://Stackoverflow.com/users/1224963",
"pm_score": 1,
"selected": false,
"text": "let multiplyArray = [1, 11, 7, 3, 8, 2, 3, 2, 10, 3, 6, 2, 5];\n\nfunction multiplyNumbers() {\n multip... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9277512/"
] |
74,525,402 | <p>I have a class 'Foo' (not under my control) which I wish to use as a key in a kotlin (java) hashmap.
The problem is that the 'equals' method for 'Foo' does value equivalence.
For my situation value equivalence is too loose.
I need object equivalence.</p>
<p>What are the ways to force force the use of object equivale... | [
{
"answer_id": 74525458,
"author": "AterLux",
"author_id": 4931630,
"author_profile": "https://Stackoverflow.com/users/4931630",
"pm_score": 4,
"selected": true,
"text": "IdentityHashMap equals hashCode"
},
{
"answer_id": 74525738,
"author": "phreed",
"author_id": 345427,... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/345427/"
] |
74,525,412 | <p>The first table below shows how much each person owes and who pays it (it's part of a larger model so I simplified it for our purposes here).</p>
<p>Our goal in the second table below is to give a sum when both the column and row value match.</p>
<p>For example: A (column C) paid $244.17 (D36:H48) in expenses for B ... | [
{
"answer_id": 74526482,
"author": "JB-007",
"author_id": 13607672,
"author_profile": "https://Stackoverflow.com/users/13607672",
"pm_score": 0,
"selected": false,
"text": "=SUM($C$4:$E$6*($C$3:$E$3=C$8)*($B$4:$B$6=$B9))\n"
},
{
"answer_id": 74527082,
"author": "David Leal",
... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19740382/"
] |
74,525,432 | <p>There is an array of arrays filled with numbers and letters. I want to collect the isolated ones in array of arrays. So, for example, if I call a function called findIsolated(type, matrix) with the "M" type and the matrix shown below, I would like it to return an array of arrays:
[ [ {x:0,y:0},{x:0,y:1} ],... | [
{
"answer_id": 74528327,
"author": "Peter Thoeny",
"author_id": 7475450,
"author_profile": "https://Stackoverflow.com/users/7475450",
"pm_score": 1,
"selected": false,
"text": "function findIsolated(target, matrix) {\n let result = [];\n matrix.forEach((row, rIdx) => {\n row.forEach... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12783473/"
] |
74,525,433 | <p>I am creating something like google drive or some cloud using PHP and HTML where you can save your files but i have problem with saving files to binary code and uploading it to database. I mean i want to do something like that:</p>
<p>User is uploading file by form in html -> converting file to binary -> savin... | [
{
"answer_id": 74528327,
"author": "Peter Thoeny",
"author_id": 7475450,
"author_profile": "https://Stackoverflow.com/users/7475450",
"pm_score": 1,
"selected": false,
"text": "function findIsolated(target, matrix) {\n let result = [];\n matrix.forEach((row, rIdx) => {\n row.forEach... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20557059/"
] |
74,525,437 | <p>I can't figure our how to delete rows with duplicated value of the column dates and, choose to delete the row which has missing value (NA) of inst, grouped by id.</p>
<p>A minimal working example of my data is :</p>
<pre><code>id <- c("N101", "N102", "N103", "N103", "N... | [
{
"answer_id": 74525532,
"author": "thelatemail",
"author_id": 496803,
"author_profile": "https://Stackoverflow.com/users/496803",
"pm_score": 2,
"selected": false,
"text": "o <- order(df1$id, df1$dates, is.na(df1$inst))\ndf1[o,][!duplicated(df1[o, c(\"id\",\"dates\")]),]\n# id ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2856536/"
] |
74,525,449 | <p>I'm getting an error while translating a site using the ngx translate package. core.mjs:7643 ERROR Error: NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'May add up less than 3 characters'. Current value: 'Use at least 3 symbols'. When simply transla... | [
{
"answer_id": 74525532,
"author": "thelatemail",
"author_id": 496803,
"author_profile": "https://Stackoverflow.com/users/496803",
"pm_score": 2,
"selected": false,
"text": "o <- order(df1$id, df1$dates, is.na(df1$inst))\ndf1[o,][!duplicated(df1[o, c(\"id\",\"dates\")]),]\n# id ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20466118/"
] |
74,525,477 | <p>I have two arrays--one of strings and one of objects. I find duplicates in the first array and get a count. I want to add the integer value i found in the counts object to the pbentry using the Product2Id as the key. I honestly haven't been able to figure it out and hours of google-fu has resulted in nothing.</p>
<... | [
{
"answer_id": 74525625,
"author": "jsN00b",
"author_id": 13658816,
"author_profile": "https://Stackoverflow.com/users/13658816",
"pm_score": -1,
"selected": false,
"text": "const myTransform = (countArr, infoArr) => (\n // iterate over the infoArr\n infoArr?.map(({Product2Id, ...rest}... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10101412/"
] |
74,525,492 | <p>Suppose, I have a float value [<code>-12.3456</code>]. I want to show it like [<code> -12.34</code>].</p>
<p>I wrote the following:</p>
<pre><code> public override string ToString()
{
return $"{x:0.00, 8}{y:0.00, 8}{z:0.00, 8}";
}
</code></pre>
<p>but, the output is not what I expect.</... | [
{
"answer_id": 74525575,
"author": "user366312",
"author_id": 159072,
"author_profile": "https://Stackoverflow.com/users/159072",
"pm_score": 0,
"selected": false,
"text": "using System;\n\npublic class HelloWorld\n{\n public static void Main(string[] args)\n {\n Console.Wri... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/159072/"
] |
74,525,506 | <p>I created a form where a user selects options from a checkbox list. So when a user selects an option in the checkbox, I use a function to show the value of the input field using onchange within inner HTML. My question is, how do we remove that same inner HTML content if the user un-selects those options? So when the... | [
{
"answer_id": 74525550,
"author": "epascarello",
"author_id": 14104,
"author_profile": "https://Stackoverflow.com/users/14104",
"pm_score": 2,
"selected": true,
"text": "function functionOne(cb) {\n var x = cb.checked ? cb.value : '';\n document.getElementById(\"demo\").innerHTML = x;... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16513652/"
] |
74,525,516 | <p>I am trying to compare column values of each rows of dataframe with predefined list of dictionary, and do filtering. I tried <code>pandas</code> to compare column value by row-wise with list of dictionary, but it is not quite working, I got type error. I think I may need to convert dataframe into dictionary then com... | [
{
"answer_id": 74525925,
"author": "Tim Roberts",
"author_id": 1883316,
"author_profile": "https://Stackoverflow.com/users/1883316",
"pm_score": 1,
"selected": false,
"text": "all {0:'5',2:'98'...} 0 2 for row in indf_dict:\n for rno,rule in enumerate(rules_list):\n print(\"New... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7114383/"
] |
74,525,533 | <p>*/ write a function daysPastThisYear that takes the current date as the name of the current month and the current day, e.g., daysPastThisYear(month: "May", day: 12), and returns how many days have past since the beginning of the year. Use a "while" loop. Ignore leap years. You may user the follo... | [
{
"answer_id": 74525925,
"author": "Tim Roberts",
"author_id": 1883316,
"author_profile": "https://Stackoverflow.com/users/1883316",
"pm_score": 1,
"selected": false,
"text": "all {0:'5',2:'98'...} 0 2 for row in indf_dict:\n for rno,rule in enumerate(rules_list):\n print(\"New... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543632/"
] |
74,525,555 | <p>I want my integer variable to be rounded to 4 decimal places. A number like 3.345679 should be represented as 3.3457.Additionally, the value zero must be represented as 0 and not any other representation.(e.g., -0.0, 0.0, 0.00000). Additionally, I do not want to add extra 0s to floating point numbers. For example, 3... | [
{
"answer_id": 74525925,
"author": "Tim Roberts",
"author_id": 1883316,
"author_profile": "https://Stackoverflow.com/users/1883316",
"pm_score": 1,
"selected": false,
"text": "all {0:'5',2:'98'...} 0 2 for row in indf_dict:\n for rno,rule in enumerate(rules_list):\n print(\"New... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20562561/"
] |
74,525,646 | <p>so basically my dir looks like this:</p>
<p>/node:</p>
<p>~/libs/lib.js</p>
<p>~/projects/main/script.js</p>
<p>and i want to import (the entire file) "lib" [\Node\libs\lib.js] into "script" [\Node\Projects\main\script.js],
how do i do that?</p>
<p>thanks in advance,
-Gzrespect</p>
| [
{
"answer_id": 74525925,
"author": "Tim Roberts",
"author_id": 1883316,
"author_profile": "https://Stackoverflow.com/users/1883316",
"pm_score": 1,
"selected": false,
"text": "all {0:'5',2:'98'...} 0 2 for row in indf_dict:\n for rno,rule in enumerate(rules_list):\n print(\"New... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525646",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20540822/"
] |
74,525,648 | <p>I started learning Ruby from scratch, from the preliminary preparation there is a certain knowledge of HTML and CSS. For training I use Code Academy. I have questions and can't always find an answer I can understand I need help understanding the following:</p>
<pre><code>user_input = gets.chomp
user_input.downcase!
... | [
{
"answer_id": 74526261,
"author": "tadman",
"author_id": 87189,
"author_profile": "https://Stackoverflow.com/users/87189",
"pm_score": 2,
"selected": false,
"text": "= x = 1\ny = x\n y x x=y nil gets String chomp downcase gets.chomp"
},
{
"answer_id": 74536549,
"author": "Ab... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18877788/"
] |
74,525,668 | <p>I have a text that I use for taking data. I want to take this "line" and make it numpy list. My data is string but it has numbers and E letters. Because of this I can't convert it to float and taking it to list.</p>
<pre><code>import numpy as np
import re
with open("FEMMeshGmsh.inp", "r&q... | [
{
"answer_id": 74526261,
"author": "tadman",
"author_id": 87189,
"author_profile": "https://Stackoverflow.com/users/87189",
"pm_score": 2,
"selected": false,
"text": "= x = 1\ny = x\n y x x=y nil gets String chomp downcase gets.chomp"
},
{
"answer_id": 74536549,
"author": "Ab... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14613755/"
] |
74,525,689 | <p>I want to print pattern like this, but it prints like second one?</p>
<pre><code> *
* *
* * *
* * * *
* * * * *
</code></pre>
<p><a href="https://i.stack.imgur.com/fJ0jK.png" rel="nofollow noreferrer">enter image description here</a> -- here is my script</p>
<pre><code>*
* *
* * *
* * * *
* *... | [
{
"answer_id": 74526261,
"author": "tadman",
"author_id": 87189,
"author_profile": "https://Stackoverflow.com/users/87189",
"pm_score": 2,
"selected": false,
"text": "= x = 1\ny = x\n y x x=y nil gets String chomp downcase gets.chomp"
},
{
"answer_id": 74536549,
"author": "Ab... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525689",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19529424/"
] |
74,525,746 | <p>How do i get both of the values from each map into another map? One map has the name of the ingredient as key. keywordsToIds has the ID as value and firstCounter has the occurance of the ingredient as value. I want to have a map of ID as key and occurance as value. The keys work but the values don't. I hope someone ... | [
{
"answer_id": 74526261,
"author": "tadman",
"author_id": 87189,
"author_profile": "https://Stackoverflow.com/users/87189",
"pm_score": 2,
"selected": false,
"text": "= x = 1\ny = x\n y x x=y nil gets String chomp downcase gets.chomp"
},
{
"answer_id": 74536549,
"author": "Ab... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20242740/"
] |
74,525,749 | <p>To place a video in one or more categories I have the following tables:</p>
<ul>
<li><code>Video (id, url, title, viewCount) </code> ~1,000,000 rows</li>
<li><code>VideoCategory (id, videoId, categoryId</code> ~6,000,000 rows</li>
<li><code>Category (id, name)</code> ~200 rows</li>
</ul>
<p>Index on <code>VideoCateg... | [
{
"answer_id": 74526261,
"author": "tadman",
"author_id": 87189,
"author_profile": "https://Stackoverflow.com/users/87189",
"pm_score": 2,
"selected": false,
"text": "= x = 1\ny = x\n y x x=y nil gets String chomp downcase gets.chomp"
},
{
"answer_id": 74536549,
"author": "Ab... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525749",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20566879/"
] |
74,525,775 | <pre><code>SELECT
SP.SITE,
SYS.COMPANY,
SYS.ADDRESS,
SP.CUSTOMER,
SP.STATUS,
DATEDIFF(MONTH,SP.MEMBERSINCE, SP.EXPIRES) AS MONTH_COUNT
CASE WHEN(MONTH_COUNT = 0 THEN MONTH_COUNT = DATEDIFF(DAY,SP.MEMBERSINCE, SP.EXPIRES) AS DAY_COUNT)
ELSE NULL
END
FROM SALEPASSES AS ... | [
{
"answer_id": 74525820,
"author": "Stu",
"author_id": 15332650,
"author_profile": "https://Stackoverflow.com/users/15332650",
"pm_score": 1,
"selected": false,
"text": "Case DAY_COUNT =\n CASE WHEN DATEDIFF(MONTH,SP.MEMBERSINCE, SP.EXPIRES) = 0 \n THEN DATEDIFF(DAY,SP.MEMBERSINCE, SP.EX... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20567178/"
] |
74,525,780 | <p>I want to create a graph with date and time on the x axis and values on the y axis. This works if the data has 'x' as the key in the data. My data has the label 'date_time' as the key. I have tried to specify the the name of the key using the xAxisKey parameter in the parsing options but this results in a blank char... | [
{
"answer_id": 74525820,
"author": "Stu",
"author_id": 15332650,
"author_profile": "https://Stackoverflow.com/users/15332650",
"pm_score": 1,
"selected": false,
"text": "Case DAY_COUNT =\n CASE WHEN DATEDIFF(MONTH,SP.MEMBERSINCE, SP.EXPIRES) = 0 \n THEN DATEDIFF(DAY,SP.MEMBERSINCE, SP.EX... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5097329/"
] |
74,525,811 | <p>I am processing strings in R which are supposed to contain zero or one pair of parentheses. If there are nested parentheses I need to delete the inner pair. Here is an example where I need to delete the parentheses around <em>big bent nachos</em> but not the other/outer parentheses.</p>
<pre><code>test <- c(
... | [
{
"answer_id": 74525875,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 1,
"selected": false,
"text": "gsub() output <- gsub(\"\\\\(\\\\s*(.*?)\\\\s*\\\\(.*?\\\\)(.*?)\\\\s*\\\\)\", \"(\\\\1\\\\2)\", test)\noutp... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8729030/"
] |
74,525,813 | <p>i have a table with number :</p>
<pre><code><td id="table-number">{{ $loop->index + 1 }}</td>
</code></pre>
<p>now i want to get the number of "9" from the table row</p>
<p>Here is what i do :</p>
<pre><code>const number = document.getElementById('table-number');
if(number.textCo... | [
{
"answer_id": 74525875,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 1,
"selected": false,
"text": "gsub() output <- gsub(\"\\\\(\\\\s*(.*?)\\\\s*\\\\(.*?\\\\)(.*?)\\\\s*\\\\)\", \"(\\\\1\\\\2)\", test)\noutp... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5663877/"
] |
74,525,830 | <p>I am attempting to find recursively all files with the extension .raw and then sort them in ascending order of CreationTime. After that, I would like to copy each file to a new directory where the names are IMG_001_0001.jpg ... IMG_001_0099.jpg where I am using 4 digits in ascending order. It is important that the f... | [
{
"answer_id": 74526056,
"author": "Santiago Squarzon",
"author_id": 15339544,
"author_profile": "https://Stackoverflow.com/users/15339544",
"pm_score": 2,
"selected": false,
"text": "$count = @{ Value = 0 }\nGet-ChildItem 'F:\\Downloads\\raw-20221121T200702Z-001.zip' -Recurse -Filter *.... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525830",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5373636/"
] |
74,525,850 | <p>I have the following code:</p>
<pre><code>struct ContentView: View {
@State var show = false
var body: some View {
VStack {
ZStack {
Color.black
if show {
RoundedRectangle... | [
{
"answer_id": 74525965,
"author": "flanker",
"author_id": 3218273,
"author_profile": "https://Stackoverflow.com/users/3218273",
"pm_score": 0,
"selected": false,
"text": "struct ContentView: View {\n @State var show = false\n \n var body: some View {\n VStack {\n Z... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/728246/"
] |
74,525,861 | <p>I am working on a python practice, it is about trying to check the availability of products in a json file, the condition is that if Key is equal to 1, then it means that producs is available, so if the product is available, then print key names. The Json format looks like:</p>
<pre><code>product={"FooBox"... | [
{
"answer_id": 74525894,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 2,
"selected": true,
"text": "product for x in product: x product.items() product={\"FooBox\": \"1\", \"ZeroB\": \"0\", \"Birk\": \"1\", \"pjy\": \"... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20567162/"
] |
74,525,863 | <p>I'm trying to update an elevated PowerShell script that's using StartProcess on a BAT file that runs RunAs on PowerShell.exe to run another PowerShell script without elevation in order to clone a git repository so that the directory is created in a way that a normal non-elevated user will be able to use.</p>
<ul>
<l... | [
{
"answer_id": 74621096,
"author": "BlueMonkMN",
"author_id": 78162,
"author_profile": "https://Stackoverflow.com/users/78162",
"pm_score": 1,
"selected": false,
"text": "function IsAdmin{\n $currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.Windows... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78162/"
] |
74,525,865 | <p>Hi I am just starting to learn cpp and I have two examples of getting the size of a vector in the for statements both seem to work but which is right and why? sizeof(vector) or vector.size()?</p>
<p>Thanks</p>
<p>Brian</p>
<pre><code>void print_vector(vector<string> vector_to_print){
cout << "\n... | [
{
"answer_id": 74526013,
"author": "tedo3637",
"author_id": 5740753,
"author_profile": "https://Stackoverflow.com/users/5740753",
"pm_score": 0,
"selected": false,
"text": ".size() .size() sizeof() vector size_t .size()"
},
{
"answer_id": 74526081,
"author": "wigi426",
"a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15510512/"
] |
74,525,869 | <h1>The Ask:</h1>
<p>Please help me understand my conceptual error in the use of <code>scale_x_binned()</code> in ggplot2 as it relates to centering breaks beneath the appropriate bin in a <code>geom_histogram()</code>.</p>
<h2>Starting Example:</h2>
<pre class="lang-r prettyprint-override"><code>library(ggplot2)
df &... | [
{
"answer_id": 74526013,
"author": "tedo3637",
"author_id": 5740753,
"author_profile": "https://Stackoverflow.com/users/5740753",
"pm_score": 0,
"selected": false,
"text": ".size() .size() sizeof() vector size_t .size()"
},
{
"answer_id": 74526081,
"author": "wigi426",
"a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3601357/"
] |
74,525,884 | <p>In jQuery - how can I check to see if a <code><li></code> that follows another has a class or not.</p>
<p>Markup is:</p>
<pre><code><ul>
<li><a href"#">Title 1</a></li>
<li class="LI_sector_child"><a href"#">Title 2</a></li>
&l... | [
{
"answer_id": 74526013,
"author": "tedo3637",
"author_id": 5740753,
"author_profile": "https://Stackoverflow.com/users/5740753",
"pm_score": 0,
"selected": false,
"text": ".size() .size() sizeof() vector size_t .size()"
},
{
"answer_id": 74526081,
"author": "wigi426",
"a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1197577/"
] |
74,525,911 | <p>This started about a month ago, that random images in my browser have been replaced by crazy things, usually a seagull picture. It is very distracting.</p>
<p>I've tried everything. Chrome, Firefox, Safari. I've cleared all my internet history.</p>
| [
{
"answer_id": 74526013,
"author": "tedo3637",
"author_id": 5740753,
"author_profile": "https://Stackoverflow.com/users/5740753",
"pm_score": 0,
"selected": false,
"text": ".size() .size() sizeof() vector size_t .size()"
},
{
"answer_id": 74526081,
"author": "wigi426",
"a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20567305/"
] |
74,525,954 | <p>Needing help for a RegEx (using Oracle REGEXP_LIKE) to identify strings that:</p>
<ol>
<li>Start with any of the following:</li>
</ol>
<ul>
<li>P</li>
<li>C</li>
<li>(P)</li>
<li>(C)</li>
<li>©</li>
</ul>
<ol start="2">
<li>are then followed by a space</li>
<li>are then followed by any 4-digit numbers, where the fir... | [
{
"answer_id": 74526013,
"author": "tedo3637",
"author_id": 5740753,
"author_profile": "https://Stackoverflow.com/users/5740753",
"pm_score": 0,
"selected": false,
"text": ".size() .size() sizeof() vector size_t .size()"
},
{
"answer_id": 74526081,
"author": "wigi426",
"a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20567274/"
] |
74,525,967 | <p>I have the following line in a file that I need to replace 2 parts of. This is the original line:</p>
<pre><code>'display min(min(sindex,lon=%lon1%,lon=%lon2%),lat=%lat1%,lat=%lat2%)'
</code></pre>
<p>I need to replace it with this:</p>
<pre><code>'display amin(actualPrecip,lon=%lon1%,lon=%lon2%,lat=%lat1%,lat=%lat... | [
{
"answer_id": 74526013,
"author": "tedo3637",
"author_id": 5740753,
"author_profile": "https://Stackoverflow.com/users/5740753",
"pm_score": 0,
"selected": false,
"text": ".size() .size() sizeof() vector size_t .size()"
},
{
"answer_id": 74526081,
"author": "wigi426",
"a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10422281/"
] |
74,525,993 | <p>I am trying to create a sign up with Django but after filling the form, I keep getting this <code>ValueError at /register</code> as an error requesting that the username be set. I am new to Django and I don't seem to understand what is expected.
Below are my codes for signup form, the views.py and the resulting erro... | [
{
"answer_id": 74526013,
"author": "tedo3637",
"author_id": 5740753,
"author_profile": "https://Stackoverflow.com/users/5740753",
"pm_score": 0,
"selected": false,
"text": ".size() .size() sizeof() vector size_t .size()"
},
{
"answer_id": 74526081,
"author": "wigi426",
"a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74525993",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20567350/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.