qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,662,673 | <p>I'm trying to implement simple <code>fread()</code> and <code>frwite()</code> example using strings. The program gives me <code>segfault</code> or <code>free(): invalid pointer</code> errors. Below is the example code I'm working with.</p>
<pre class="lang-cpp prettyprint-override"><code>#include <fstream>
#in... | [
{
"answer_id": 74662721,
"author": "pm100",
"author_id": 173397,
"author_profile": "https://Stackoverflow.com/users/173397",
"pm_score": 3,
"selected": true,
"text": "value.c_str() value.length() std::string fread char [] ifstream"
},
{
"answer_id": 74663736,
"author": "Remy ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74662673",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11372242/"
] |
74,662,684 | <p>I want to compare the input with the list, but the else loop continues infinitely even when i give it a input that matches the list.</p>
<pre><code>def check_input():
while True:
guessing_range = input("Please enter a guessing range.")
if guessing_range.isdigit:
guessing_ran... | [
{
"answer_id": 74662721,
"author": "pm100",
"author_id": 173397,
"author_profile": "https://Stackoverflow.com/users/173397",
"pm_score": 3,
"selected": true,
"text": "value.c_str() value.length() std::string fread char [] ifstream"
},
{
"answer_id": 74663736,
"author": "Remy ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74662684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20670709/"
] |
74,662,687 | <p>Three Div elements with box appearance,
when user click at any div a copy from this div will be added to the
end (the fired div wont be clickable any more, and the new div will
be clickable). And so on…..</p>
<p>I have tried this but it creates two divs at the same time and the div can be clickable again .!!</p>
<pr... | [
{
"answer_id": 74662721,
"author": "pm100",
"author_id": 173397,
"author_profile": "https://Stackoverflow.com/users/173397",
"pm_score": 3,
"selected": true,
"text": "value.c_str() value.length() std::string fread char [] ifstream"
},
{
"answer_id": 74663736,
"author": "Remy ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74662687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20606166/"
] |
74,662,717 | <p>I'm trying to type a higher order function. The basic idea is that high is passed a function fn, and it returns a function that takes the exact same parameters and gives the same return type.</p>
<p>It's an exercise in trying to understand the language better. I have something that works but erases the type from the... | [
{
"answer_id": 74662721,
"author": "pm100",
"author_id": 173397,
"author_profile": "https://Stackoverflow.com/users/173397",
"pm_score": 3,
"selected": true,
"text": "value.c_str() value.length() std::string fread char [] ifstream"
},
{
"answer_id": 74663736,
"author": "Remy ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74662717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13203487/"
] |
74,662,724 | <p>I'm trying to create a function generator prints one element in the array targets at the specified time in milliseconds in the timeArray and after the value is printed out the list will go to the next element in the time array and targets array and after the next time interval in the timeArray we print out the next ... | [
{
"answer_id": 74662721,
"author": "pm100",
"author_id": 173397,
"author_profile": "https://Stackoverflow.com/users/173397",
"pm_score": 3,
"selected": true,
"text": "value.c_str() value.length() std::string fread char [] ifstream"
},
{
"answer_id": 74663736,
"author": "Remy ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74662724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17102482/"
] |
74,662,754 | <p>I'm currently trying to code a simple game for class. Right now I want my rectangle to stay within the bounds of my canvas when i move it by using a bounce function, but it doesn't seem to be working and I cant figure out why. I have tried implementing my bounce function and calling it at the top. When I move my rec... | [
{
"answer_id": 74662721,
"author": "pm100",
"author_id": 173397,
"author_profile": "https://Stackoverflow.com/users/173397",
"pm_score": 3,
"selected": true,
"text": "value.c_str() value.length() std::string fread char [] ifstream"
},
{
"answer_id": 74663736,
"author": "Remy ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74662754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20670829/"
] |
74,662,787 | <p>I have a string like this:<br />
<code>let string = "/gb/fr/firstPage/secondPage</code>.\</p>
<p>I want to compare the <code>/gb/fr/</code> part against an array like below:</p>
<p><code>let array = [ "/fr/fr", "/de/de", "/es/es","/ro/ro", "/it/it"]</code></p>
<... | [
{
"answer_id": 74662721,
"author": "pm100",
"author_id": 173397,
"author_profile": "https://Stackoverflow.com/users/173397",
"pm_score": 3,
"selected": true,
"text": "value.c_str() value.length() std::string fread char [] ifstream"
},
{
"answer_id": 74663736,
"author": "Remy ... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74662787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19390997/"
] |
74,662,805 | <p>So I need to straight pivot my data with no aggregation. I have tried PIVOT, UNPIVOT, CROSS APPLY, and CASE statements all driving me crazy.</p>
<p>Here is my current data set</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Header</th>
<th>Contract Value</th>
<th>Total Cost</th>
<th>Pro... | [
{
"answer_id": 74662823,
"author": "Diego Lamarão",
"author_id": 11013622,
"author_profile": "https://Stackoverflow.com/users/11013622",
"pm_score": 1,
"selected": false,
"text": "PIVOT SQL PIVOT PIVOT SELECT *\nFROM yourTable\nPIVOT\n(\n MAX(ContractValue)\n FOR Header IN ([Original B... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74662805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2962869/"
] |
74,662,809 | <p>I am having a problem that I just don't know how to solve and nothing I'm finding is helping. My problem is that I have a list of names (strings), in this list I will have the same name show up more than once.</p>
<pre class="lang-py prettyprint-override"><code>lst = ['hello.com', 'hello.com', 'hello.com', 'world.co... | [
{
"answer_id": 74662823,
"author": "Diego Lamarão",
"author_id": 11013622,
"author_profile": "https://Stackoverflow.com/users/11013622",
"pm_score": 1,
"selected": false,
"text": "PIVOT SQL PIVOT PIVOT SELECT *\nFROM yourTable\nPIVOT\n(\n MAX(ContractValue)\n FOR Header IN ([Original B... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74662809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15114290/"
] |
74,662,868 | <p>In many Prolog guides the following code is used to illustrate "negation by failure" in Prolog.</p>
<pre><code>not(Goal) :- call(Goal), !, fail.
not(Goal).
</code></pre>
<p>However, those same tutorials and texts warn that this is not "logical negation".</p>
<p><strong>Question:</strong> What is... | [
{
"answer_id": 74662823,
"author": "Diego Lamarão",
"author_id": 11013622,
"author_profile": "https://Stackoverflow.com/users/11013622",
"pm_score": 1,
"selected": false,
"text": "PIVOT SQL PIVOT PIVOT SELECT *\nFROM yourTable\nPIVOT\n(\n MAX(ContractValue)\n FOR Header IN ([Original B... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74662868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20343817/"
] |
74,662,873 | <p>I have 3 dataframes with the same dimensions. I want to create a dataframe with min value from each element in 3 dataframes. Is there a more efficient way than running loop on cloumn and then row going through each element one by one?</p>
<pre><code>Dataframe X
| Column A | Column B |
| -------- | -------- |
| Cell ... | [
{
"answer_id": 74662823,
"author": "Diego Lamarão",
"author_id": 11013622,
"author_profile": "https://Stackoverflow.com/users/11013622",
"pm_score": 1,
"selected": false,
"text": "PIVOT SQL PIVOT PIVOT SELECT *\nFROM yourTable\nPIVOT\n(\n MAX(ContractValue)\n FOR Header IN ([Original B... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74662873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20670874/"
] |
74,662,901 | <p>I'm designing a Neocities site and on one of my pages the background image isn't showing up. I've tried doing it in HTML and CSS but neither will work.</p>
<p>[This] (<a href="https://maggssszzz.neocities.org/spitbucket.html" rel="nofollow noreferrer">https://maggssszzz.neocities.org/spitbucket.html</a>) is the page... | [
{
"answer_id": 74663028,
"author": "Monirul Islam",
"author_id": 10975723,
"author_profile": "https://Stackoverflow.com/users/10975723",
"pm_score": -1,
"selected": false,
"text": ".square {\ntext-align: center;\nbackground-color: #16a868;\nline-height: 70px;\nwidth: 400px;\nheight: 800p... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74662901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20670877/"
] |
74,662,904 | <p>I'd like the TypeScript compiler to infer the names of properties on an object so that it's easier to invoke the appropriate functions later. However, despite considering invoking functions, TypeScript doesn't give any intellisense of the functions I can invoke.</p>
<p>Taking into account the following example:</p>
... | [
{
"answer_id": 74663028,
"author": "Monirul Islam",
"author_id": 10975723,
"author_profile": "https://Stackoverflow.com/users/10975723",
"pm_score": -1,
"selected": false,
"text": ".square {\ntext-align: center;\nbackground-color: #16a868;\nline-height: 70px;\nwidth: 400px;\nheight: 800p... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74662904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13695382/"
] |
74,662,928 | <p>I am attempting to run python coding using vba.
However, when running using vba, it was not successful .
(i discovered that it is not running in anaconda prompt)</p>
<p>the code is attached as follow. appreciate the help.</p>
<pre><code>Sub RunPythonScript()
Dim objShell As Object
Dim PythonExePath As String, Pytho... | [
{
"answer_id": 74663028,
"author": "Monirul Islam",
"author_id": 10975723,
"author_profile": "https://Stackoverflow.com/users/10975723",
"pm_score": -1,
"selected": false,
"text": ".square {\ntext-align: center;\nbackground-color: #16a868;\nline-height: 70px;\nwidth: 400px;\nheight: 800p... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74662928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20650501/"
] |
74,662,947 | still keeping some vertical space while list-style: none is defined.
<p><a href="https://product-landing-page.freecodecamp.rocks/#how-it-works" rel="nofollow noreferrer">https://product-landing-page.freecodecamp.rocks/#how-it-works</a></p>
<p>If you check this project and scroll to pricing labels there is defined ex... | [
{
"answer_id": 74663028,
"author": "Monirul Islam",
"author_id": 10975723,
"author_profile": "https://Stackoverflow.com/users/10975723",
"pm_score": -1,
"selected": false,
"text": ".square {\ntext-align: center;\nbackground-color: #16a868;\nline-height: 70px;\nwidth: 400px;\nheight: 800p... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74662947",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20555678/"
] |
74,662,972 | <p>Inside my service I have a post method in which return type is IInfluencerRewardSetup</p>
<pre><code>influencerRewardSetup(payload: IInfluencerRewardSetup): Observable<IInfluencerRewardSetup> {
return this.httpClient.post<IInfluencerRewardSetup>(this.baseUrl, payload)
.pipe(retry(1),
this... | [
{
"answer_id": 74662981,
"author": "DotNetRussell",
"author_id": 2051392,
"author_profile": "https://Stackoverflow.com/users/2051392",
"pm_score": 0,
"selected": false,
"text": "return this.httpClient.post<IInfluencerRewardSetup>(this.baseUrl, payload)\n .pipe(\n retry(1)... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74662972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19866297/"
] |
74,662,978 | <p>Daily I’m receiving a new table (example :tablename_20220811) in the BigQuery, I want concatenate this new table data to the main_table, dataset schema are same.</p>
<p>I tried using wild cards,I don’t know how to pull the daily loaded table.</p>
| [
{
"answer_id": 74662981,
"author": "DotNetRussell",
"author_id": 2051392,
"author_profile": "https://Stackoverflow.com/users/2051392",
"pm_score": 0,
"selected": false,
"text": "return this.httpClient.post<IInfluencerRewardSetup>(this.baseUrl, payload)\n .pipe(\n retry(1)... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74662978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20670906/"
] |
74,662,980 | <pre><code>def add(a, b):
return a + b
print("choose 1 to add and 2 to subtract")
select = input("enter choice 1/2")
a = float(input("enter 1st nunber: "))
b = float(input("enter 2nd number: "))
if select == 1:
print(a, "+", b, "=", add(a, b))
</cod... | [
{
"answer_id": 74662981,
"author": "DotNetRussell",
"author_id": 2051392,
"author_profile": "https://Stackoverflow.com/users/2051392",
"pm_score": 0,
"selected": false,
"text": "return this.httpClient.post<IInfluencerRewardSetup>(this.baseUrl, payload)\n .pipe(\n retry(1)... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74662980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19841477/"
] |
74,663,013 | <p>I have the text file below:</p>
<pre><code>data:<SupplierParty
data:xmlns="xxx">
data: <cbc:CustomerAssignedAccountID schemeID="vendor-id">
data: 20750
data: </cbc:CustomerAssignedAccountID>
data: <cbc:AdditionalAccountID schemeID="cashflow:v1">151</cbc... | [
{
"answer_id": 74662981,
"author": "DotNetRussell",
"author_id": 2051392,
"author_profile": "https://Stackoverflow.com/users/2051392",
"pm_score": 0,
"selected": false,
"text": "return this.httpClient.post<IInfluencerRewardSetup>(this.baseUrl, payload)\n .pipe(\n retry(1)... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12306386/"
] |
74,663,037 | <p>I'm trying to include header files from the atmel avr folder to work with arduino. Despite trying to include the directory of the files, it still prompts me with "No such file or directory" when compyling. The files are located inside "C:\repositories\arduino_testing\include\avr"
What am I doing ... | [
{
"answer_id": 74662981,
"author": "DotNetRussell",
"author_id": 2051392,
"author_profile": "https://Stackoverflow.com/users/2051392",
"pm_score": 0,
"selected": false,
"text": "return this.httpClient.post<IInfluencerRewardSetup>(this.baseUrl, payload)\n .pipe(\n retry(1)... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13326273/"
] |
74,663,044 | <p>-----<strong><strong>START EDIT</strong></strong>-----</p>
<p>I don't know what I was doing wrong before, but the code below was somehow not working for me, and now is working, and it's exactly the same. I don't know how or what I was missing before, but both this minimal example and the real project I am working on... | [
{
"answer_id": 74663113,
"author": "DotNetRussell",
"author_id": 2051392,
"author_profile": "https://Stackoverflow.com/users/2051392",
"pm_score": 0,
"selected": false,
"text": "address contractAddress;\n(contractAddress,) = new StorageContract(_userAddress);\nuserAddressToStruct[_userAd... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663044",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7857057/"
] |
74,663,049 | <p>try to get number of rows and column from user through array but it gives Segmentation fault at run time</p>
<pre><code>#include<stdio.h>
int main(){
int rows;
int column;
int arr[rows];
int arr1[column];
printf("Enter the number of rows: ");
scanf("%d",&row... | [
{
"answer_id": 74663058,
"author": "DotNetRussell",
"author_id": 2051392,
"author_profile": "https://Stackoverflow.com/users/2051392",
"pm_score": 0,
"selected": false,
"text": "#include<stdio.h>\nint main(){\n int rows;\n int column;\n \n printf(\"Enter the number of rows: \... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663049",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20670977/"
] |
74,663,050 | <p>How can I do to type something in the field of the image below?</p>
<p>I've tried without success:</p>
<pre><code>from threading import local
import pandas as pd
import pyautogui
from time import sleep
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys impo... | [
{
"answer_id": 74663058,
"author": "DotNetRussell",
"author_id": 2051392,
"author_profile": "https://Stackoverflow.com/users/2051392",
"pm_score": 0,
"selected": false,
"text": "#include<stdio.h>\nint main(){\n int rows;\n int column;\n \n printf(\"Enter the number of rows: \... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20021812/"
] |
74,663,060 | <p>am using opensearch 2.4 and I have an index with some fields while creating , later i started saving new field to the index , now when i query on the newly created field am not getting any results</p>
<p>ex : query 1
POST abc/_search</p>
<pre><code>{
"query": {
"bool": {
"must&... | [
{
"answer_id": 74663283,
"author": "rabbitbr",
"author_id": 18778181,
"author_profile": "https://Stackoverflow.com/users/18778181",
"pm_score": 1,
"selected": false,
"text": " {\n \"terms\": {\n \"lastname.keyword\": [\n \"William\"\n... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4072009/"
] |
74,663,062 | <p>For the final input, your program prompts the user for their year of study. Once again, this is not a
required field, that is, a default value of 1 (as in 1st year of study) should be submitted if the user chooses
to leave this field blank. Additionally, you must validate the data the user provides (if provided) to ... | [
{
"answer_id": 74663132,
"author": "danh",
"author_id": 294949,
"author_profile": "https://Stackoverflow.com/users/294949",
"pm_score": 1,
"selected": false,
"text": "do {\n var yearofStudy = parseInt(prompt(\"Please enter your Year of Study\", \"1\"));\n console.log(yearofStudy)\n} ... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20392134/"
] |
74,663,097 | <p>I try to calculate the checksum of the file in c.</p>
<p>I have a file of around 100MB random and I want to calculate the checksum.</p>
<p>I try this code from here: <a href="https://stackoverflow.com/a/3464166/14888108">https://stackoverflow.com/a/3464166/14888108</a></p>
<pre><code> int CheckSumCalc(char * file... | [
{
"answer_id": 74663122,
"author": "DotNetRussell",
"author_id": 2051392,
"author_profile": "https://Stackoverflow.com/users/2051392",
"pm_score": 2,
"selected": true,
"text": "int CheckSumCalc(char * filename){\n FILE *fp = fopen(filename,\"rb\");\n if(fp == NULL)\n {\n ... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14888108/"
] |
74,663,109 | <p>I have a byte array that I made, and I am writing it to a json file. This works, but I want to have a formatted JSON file instead of a massive wall of text.</p>
<p>I have tried decoding the byte array with utf-8, but instead I get <code>UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid ... | [
{
"answer_id": 74663122,
"author": "DotNetRussell",
"author_id": 2051392,
"author_profile": "https://Stackoverflow.com/users/2051392",
"pm_score": 2,
"selected": true,
"text": "int CheckSumCalc(char * filename){\n FILE *fp = fopen(filename,\"rb\");\n if(fp == NULL)\n {\n ... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13406740/"
] |
74,663,124 | <p>I'm dealing with a ASP.NET Core Web API program.<br />
As we all know, when the url doesn't match any endpoints, the server will automatically return 404 code.</p>
<p>Now that I want the service to record these requests into a log, so I want to set a default handler for them.<br />
Is it possible? How?</p>
| [
{
"answer_id": 74663122,
"author": "DotNetRussell",
"author_id": 2051392,
"author_profile": "https://Stackoverflow.com/users/2051392",
"pm_score": 2,
"selected": true,
"text": "int CheckSumCalc(char * filename){\n FILE *fp = fopen(filename,\"rb\");\n if(fp == NULL)\n {\n ... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12692895/"
] |
74,663,148 | <p>I'd like to try to eliminate bounds checking on code generated by Rust. I have variables that are rarely zero and my code paths ensure they do not run into trouble. But because they can be, I cannot use <code>NonZeroU64</code>. When I am sure they are non-zero, how can I signal this to the compiler?</p>
<p>For examp... | [
{
"answer_id": 74663647,
"author": "Peng Guanwen",
"author_id": 5875980,
"author_profile": "https://Stackoverflow.com/users/5875980",
"pm_score": 0,
"selected": false,
"text": "trailing_zeros() use std::num::NonZeroU64;\n\npub fn g(n: NonZeroU64) -> u32 {\n n.trailing_zeros()\n}\n\npu... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1002430/"
] |
74,663,165 | <pre><code>cat Prog4CCM.py
numberArray = []
count = 0
#filename = input("Please enter the file name: ")
filename = "t.txt" # for testing purposes
file = open(filename, "r")
for each_line in file:
numberArray.append(each_line)
for i in numberArray:
print(i)
count = count ... | [
{
"answer_id": 74663647,
"author": "Peng Guanwen",
"author_id": 5875980,
"author_profile": "https://Stackoverflow.com/users/5875980",
"pm_score": 0,
"selected": false,
"text": "trailing_zeros() use std::num::NonZeroU64;\n\npub fn g(n: NonZeroU64) -> u32 {\n n.trailing_zeros()\n}\n\npu... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17215983/"
] |
74,663,179 | <p>How would I go about making a countdown clock using only HTML and JS? Problem is, there are a few features that are required:
• It must reset on a page reload
• It must count down from a certain number of hours <strong>from page load</strong> (i.e. not a universal time)</p>
<p>I realize these are a lot of demands, b... | [
{
"answer_id": 74663647,
"author": "Peng Guanwen",
"author_id": 5875980,
"author_profile": "https://Stackoverflow.com/users/5875980",
"pm_score": 0,
"selected": false,
"text": "trailing_zeros() use std::num::NonZeroU64;\n\npub fn g(n: NonZeroU64) -> u32 {\n n.trailing_zeros()\n}\n\npu... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663179",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18360691/"
] |
74,663,202 | <p>I'm looking for a similar markdown syntax to <code>&shy;</code> in HTML.</p>
<p>I know there are hard breaks in markdown, but I'm looking for something that acts like <code>&shy;</code> or similar.</p>
| [
{
"answer_id": 74663226,
"author": "haggbart",
"author_id": 15949328,
"author_profile": "https://Stackoverflow.com/users/15949328",
"pm_score": 2,
"selected": true,
"text": "­ hello world\n"
},
{
"answer_id": 74670398,
"author": "tarleb",
"author_id... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9229256/"
] |
74,663,209 | <p>i have a problem which i am trying to solve and cant for the life of me figure it out. I feel like its the simplest answer but yet i'm still stuck.</p>
<p>The instructions stated that the application must do the following:
Ask the user to input the marks for the five subjects in a list/array.
The program must ensure... | [
{
"answer_id": 74663271,
"author": "J Muzhen",
"author_id": 12341397,
"author_profile": "https://Stackoverflow.com/users/12341397",
"pm_score": 0,
"selected": false,
"text": "while marksList = []\ni = 1\n\nwhile len(marksList) < 5:\n mark = int(input(f\"Input mark {i}\"))\n if 0 <=... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663209",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20671087/"
] |
74,663,224 | <p>I'm having a hard time figuring out how to pass a function's return as a parameter to another function. I've searched a lot of threads that are deviations of this problem but I can't think of a solution from them. My code isn't good yet, but I just need help on the line where the error is occurring to start with.</p... | [
{
"answer_id": 74663271,
"author": "J Muzhen",
"author_id": 12341397,
"author_profile": "https://Stackoverflow.com/users/12341397",
"pm_score": 0,
"selected": false,
"text": "while marksList = []\ni = 1\n\nwhile len(marksList) < 5:\n mark = int(input(f\"Input mark {i}\"))\n if 0 <=... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20671018/"
] |
74,663,272 | <p>In this case, the "all_lines" variable is initalised in the context manager, and it is accessible from the function "part_1".</p>
<pre><code>total = 0
with open("advent_input.txt", "r") as txt:
all_lines = []
context_total = 0
for line in txt:
all_lines.app... | [
{
"answer_id": 74663290,
"author": "John Gordon",
"author_id": 494134,
"author_profile": "https://Stackoverflow.com/users/494134",
"pm_score": 0,
"selected": false,
"text": "all_lines"
},
{
"answer_id": 74663298,
"author": "Carcigenicate",
"author_id": 3000206,
"autho... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20671144/"
] |
74,663,274 | <p>I'm getting the error</p>
<blockquote>
<p>CS0426 "the type name 'GetRequest' does not exist in the type 'Request'</p>
</blockquote>
<p>when I'm quite sure that it does. I don't understand what I possibly did wrong here. Here's the code I'm working with:</p>
<pre><code>public class Request
{
public static Re... | [
{
"answer_id": 74663314,
"author": "SilicDev",
"author_id": 20614914,
"author_profile": "https://Stackoverflow.com/users/20614914",
"pm_score": 1,
"selected": false,
"text": "new Request.GetRequest(msg); Request.GetRequest(msg) GetRequest"
},
{
"answer_id": 74663325,
"author"... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17978542/"
] |
74,663,305 | <p>Is there a way to continue a function based on where it was last run.</p>
<p>We want each call to do something else, e.g. (first call adds 1, second adds 2, third call adds 3), and then do something else.</p>
<pre class="lang-py prettyprint-override"><code>def a_generator():
yield lambda x: x + 1
yield lambd... | [
{
"answer_id": 74663418,
"author": "Kenny Ostrom",
"author_id": 1766544,
"author_profile": "https://Stackoverflow.com/users/1766544",
"pm_score": 1,
"selected": false,
"text": "def a_generator():\n yield lambda x: x + 1\n yield lambda x: x + 2\n yield lambda x: x + 3\n yield ... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8751871/"
] |
74,663,328 | <p>Currently I was trying to do a machine learning classification of 6 time series datasets (in .csv format) using MiniRocket, an sktime machine learning package. However, when I imported the .csv files using pd.read_csv and run them through MiniRocket, the error "TypeError: X must be in an sktime compatible forma... | [
{
"answer_id": 74663418,
"author": "Kenny Ostrom",
"author_id": 1766544,
"author_profile": "https://Stackoverflow.com/users/1766544",
"pm_score": 1,
"selected": false,
"text": "def a_generator():\n yield lambda x: x + 1\n yield lambda x: x + 2\n yield lambda x: x + 3\n yield ... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20671165/"
] |
74,663,337 | <pre><code>import { useState, useRef } from 'react'
import './App.css'
function App() {
const [circle, setCircle] = useState([])
const refElement = useRef(null);
const width = 500;
const height = 500;
const circleX= Math.floor(Math.random() * 400);
const circleY = Math.floor(Math.random() * 400);
const ... | [
{
"answer_id": 74663418,
"author": "Kenny Ostrom",
"author_id": 1766544,
"author_profile": "https://Stackoverflow.com/users/1766544",
"pm_score": 1,
"selected": false,
"text": "def a_generator():\n yield lambda x: x + 1\n yield lambda x: x + 2\n yield lambda x: x + 3\n yield ... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663337",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20152076/"
] |
74,663,343 | <p>In a number without leading zeroes I would do this</p>
<pre><code>import math
num = 1001
digits = int(math.log10(num))+1
print (digits)
>>> 4
</code></pre>
<p>but if use a number with leading zeroes like "0001" I get</p>
<p><code>SyntaxError: leading zeros in decimal integer literals are not perm... | [
{
"answer_id": 74663366,
"author": "ti7",
"author_id": 4541045,
"author_profile": "https://Stackoverflow.com/users/4541045",
"pm_score": 1,
"selected": false,
"text": ">>> value = input(\"enter a number: \")\nenter a number: 0001\n>>> value_clean = value.lstrip(\"0\")\n>>> lead... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4611642/"
] |
74,663,367 | <p>When I run this:</p>
<pre><code>import pandas as pd
data = {'id': ['earn', 'earn','lose', 'earn'],
'game': ['darts', 'balloons', 'balloons', 'darts']
}
df = pd.DataFrame(data)
print(df)
print(df.loc[[1],['id']] == 'earn')
</code></pre>
<p>The output is:<br />
id game<br />
0 earn darts<br />
1 ... | [
{
"answer_id": 74663550,
"author": "Ty Batten",
"author_id": 4595201,
"author_profile": "https://Stackoverflow.com/users/4595201",
"pm_score": 1,
"selected": false,
"text": "for i,row in df.iterrows():\n if row.id == \"earn\":\n print(\"yes\")\n"
},
{
"answer_id": 74663... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20671149/"
] |
74,663,374 | <p>I need to track how long many processes take and so my code looks like this:</p>
<pre><code>console.log("Doing thing 1");
var startTime = performance.now();
var thing = doThing()
times.loadTime = performance.now() - startTime;
console.log("Doing thing 2");
startTime = performance.now();
var thin... | [
{
"answer_id": 74663386,
"author": "Diego Lamarão",
"author_id": 11013622,
"author_profile": "https://Stackoverflow.com/users/11013622",
"pm_score": 1,
"selected": false,
"text": "console.time(\"Doing thing 1\");\nvar thing = doThing()\nconsole.timeEnd(\"Doing thing 1\");\n\nconsole.time... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/441016/"
] |
74,663,376 | <p>I am trying to remove all characters that are not digit, dot (.), plus/minus sign (+/-) with empty character/string for float conversion.<br>
When I pass my string through regex_replace function I am returned an empty string.<br>
I belive something is wrong with my regex expression <code>std::regex reg_exp("\\D... | [
{
"answer_id": 74663437,
"author": "Mehmet Masa",
"author_id": 20671270,
"author_profile": "https://Stackoverflow.com/users/20671270",
"pm_score": 2,
"selected": false,
"text": "#include <iostream>\n#include <regex>\n\nusing namespace std;\n\nint main() {\n string input = \"Hello, world... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6319901/"
] |
74,663,377 | <p>This is more a design question so please bear with me.</p>
<p>I have a system that stores locations consisting of the ID, Longitude and Latitude.</p>
<p>I need to compare the distance between my current location and the locations in the database a only choose ones that are within a certain distance.</p>
<p>I have th... | [
{
"answer_id": 74669578,
"author": "Ben Thul",
"author_id": 568209,
"author_profile": "https://Stackoverflow.com/users/568209",
"pm_score": 2,
"selected": true,
"text": "DECLARE @g geography = 'POINT(-121.626 47.8315)';\n\nSELECT TOP(7) SpatialLocation.ToString(), City\nFROM Person.Addre... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2125182/"
] |
74,663,379 | <p>I have the code below:</p>
<pre><code> <ng-select [multiple]="true" [addTag]="addTag" id="fieldId" [ngClass]="formValidatorHelper.applyCssError(MyService.form.controls['fieldId'])"
formControlName="fieldId">
</ng-select>
</code... | [
{
"answer_id": 74669578,
"author": "Ben Thul",
"author_id": 568209,
"author_profile": "https://Stackoverflow.com/users/568209",
"pm_score": 2,
"selected": true,
"text": "DECLARE @g geography = 'POINT(-121.626 47.8315)';\n\nSELECT TOP(7) SpatialLocation.ToString(), City\nFROM Person.Addre... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19175887/"
] |
74,663,397 | <p>To get the minimum value in an array, I made the method minValue</p>
<pre class="lang-java prettyprint-override"><code>public int minValue() {
int smallestVal = 0; //field
if (intArray.length == 0) { //if array is empty, return 0
return 0;
}
int a = intArray[0]; //field
for... | [
{
"answer_id": 74663412,
"author": "Erik McKelvey",
"author_id": 13179199,
"author_profile": "https://Stackoverflow.com/users/13179199",
"pm_score": 1,
"selected": false,
"text": "smallestVal a int smallestVal = intArray[0]; //field\nfor (int i : intArray){\n if (i < smallestVal){\... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663397",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20671199/"
] |
74,663,441 | <p>I am using <code>flask</code> and <code>flask-restx</code> try to create a protocol to get a specific string from another service. I am wonder if there is a way I can pass the parameter from another function to server side.
For example, here's my server side:</p>
<pre><code>from flask_restx import Api,fields,Resourc... | [
{
"answer_id": 74663412,
"author": "Erik McKelvey",
"author_id": 13179199,
"author_profile": "https://Stackoverflow.com/users/13179199",
"pm_score": 1,
"selected": false,
"text": "smallestVal a int smallestVal = intArray[0]; //field\nfor (int i : intArray){\n if (i < smallestVal){\... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19574548/"
] |
74,663,469 | <p>I can collect all of the input data, but I just can't seem to do anything with it. I would like to print all of data or add or subtract the numbers, perform calculations. I am not sure how to work with nested data.</p>
<pre><code>import java.util.Scanner;
public class Names {
public static void main(String[] a... | [
{
"answer_id": 74663516,
"author": "Erik McKelvey",
"author_id": 13179199,
"author_profile": "https://Stackoverflow.com/users/13179199",
"pm_score": 0,
"selected": false,
"text": "class public class Student {\n String name;\n String[] quizzes;\n String[] midterms;\n String[] ... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20671289/"
] |
74,663,472 | <p>How do you <code>x.py install</code> rust built from git source to a prefix other than <code>/usr/local</code>?</p>
<p>I tried:</p>
<pre><code>git/rust> python x.py install --prefix=/my/prefix
</code></pre>
<p>but it doesn't work:</p>
<pre><code>error: Unrecognized option: 'prefix'
</code></pre>
| [
{
"answer_id": 74663516,
"author": "Erik McKelvey",
"author_id": 13179199,
"author_profile": "https://Stackoverflow.com/users/13179199",
"pm_score": 0,
"selected": false,
"text": "class public class Student {\n String name;\n String[] quizzes;\n String[] midterms;\n String[] ... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1131467/"
] |
74,663,485 | <p>I have a checkout cart where you have different cart items, and for each one you can change the quantity prior to purchase.</p>
<p>Here's how the code looks:</p>
<pre><code>import React, { useEffect, useState } from "react";
import PureInput from "./PureInput";
import { useForm, Controller } fro... | [
{
"answer_id": 74663770,
"author": "Andrew Shearer",
"author_id": 10688837,
"author_profile": "https://Stackoverflow.com/users/10688837",
"pm_score": 1,
"selected": false,
"text": "onChange handleSubmit react-hook-form Checkout import React, { useEffect, useState } from \"react\";\nimpor... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7317408/"
] |
74,663,489 | <p>i created a file with the colors that i want to use in my project, but when i try to used, flutter does not acept the variables as a correct color.</p>
<p>This is the colors file:</p>
<pre><code>import 'package:flutter/material.dart';
class ColorSkh {
static Color innovation = const Color.fromARGB(255, 59, 18,... | [
{
"answer_id": 74663527,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 0,
"selected": false,
"text": "Text static final SizedBox(\n *height: height * 0.10,\n child: Align(\n alignm... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663489",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19906590/"
] |
74,663,497 | <p>I want to change the color of recyclervView item that I clicked(so user can understand that already checked the detail of the item) and go detail fragment page. However this background color change must be permanent should I store it in livedata of recycler view items. I share my codes at the end I am new to android... | [
{
"answer_id": 74663527,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 0,
"selected": false,
"text": "Text static final SizedBox(\n *height: height * 0.10,\n child: Align(\n alignm... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20671278/"
] |
74,663,502 | <p>I need my C program to run in the background, so without any open window or without blocking the terminal if run from there.</p>
<p>I can't find much info on how to do it online.</p>
<p>edit: To do what i needed, i just added -mwindows to the gcc command.</p>
| [
{
"answer_id": 74663659,
"author": "Anders",
"author_id": 3501,
"author_profile": "https://Stackoverflow.com/users/3501",
"pm_score": 0,
"selected": false,
"text": "WinMain main"
}
] | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19400931/"
] |
74,663,514 | <p>I have a form that I created to make my work easier and recently figured out how to make certain fields automatically generate a comma and separates after 5 letters or numbers have been typed into it (CPT codes for medical claims that I have to look up) using the same coding you would for putting spaces between numb... | [
{
"answer_id": 74663659,
"author": "Anders",
"author_id": 3501,
"author_profile": "https://Stackoverflow.com/users/3501",
"pm_score": 0,
"selected": false,
"text": "WinMain main"
}
] | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20671218/"
] |
74,663,556 | <p>I'm trying to avoid the extremely verbose hash maps and arrays, as commonly used in powershell. Why? Because I have 100's of lines, and it just doesn't make any sense to have to wrap every single line in a <code>@(name='foo; id='bar')</code> etc.), when all I need is a CSV type of array.</p>
<pre><code>$header = @('... | [
{
"answer_id": 74663777,
"author": "aHelpfulcoder",
"author_id": 20670253,
"author_profile": "https://Stackoverflow.com/users/20670253",
"pm_score": 1,
"selected": false,
"text": "$header = @('name', 'id', 'type', 'loc')\n\n$mycsv = @(\n # name, id, type, loc\n 'Brave', 'Brave.Brav... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1147688/"
] |
74,663,566 | <p>I’m a beginner in the field of Graph Matching and Parallel Computing. I read <a href="https://arxiv.org/abs/1302.4587" rel="nofollow noreferrer">a paper</a> that talks about an efficient parallel matching algorithm. They explained the importance of the locality, but I don't know it represents what? and What is good ... | [
{
"answer_id": 74663777,
"author": "aHelpfulcoder",
"author_id": 20670253,
"author_profile": "https://Stackoverflow.com/users/20670253",
"pm_score": 1,
"selected": false,
"text": "$header = @('name', 'id', 'type', 'loc')\n\n$mycsv = @(\n # name, id, type, loc\n 'Brave', 'Brave.Brav... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663566",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20235419/"
] |
74,663,573 | <p>I am trying to make an program which will add two number and i am a beginner i got my stored in a variable but cannot convert it to number</p>
<pre><code>var num1 = Number.parseInt(num0)
</code></pre>
<p>i tried using parse int but i still dont get the correct input</p>
<p>heres my full code</p>
<pre><code><ht... | [
{
"answer_id": 74663592,
"author": "Christian Fritz",
"author_id": 1087119,
"author_profile": "https://Stackoverflow.com/users/1087119",
"pm_score": 1,
"selected": false,
"text": " function put() {\n var num0 = document.getElementById(\"text\")\n var num1 = Number(num0.value... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663573",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17969931/"
] |
74,663,591 | <p>I'm trying to remake Tic-Tac-Toe on python. But, it wont work.</p>
<p>I tried
`</p>
<pre><code>game_board = ['_'] * 9
print(game_board[0]) + " | " + (game_board[1]) + ' | ' + (game_board[2])
print(game_board[3]) + ' | ' + (game_board[4]) + ' | ' + (game_board[5])
print(game_board[6]) + ' | ' + (game_board[... | [
{
"answer_id": 74663592,
"author": "Christian Fritz",
"author_id": 1087119,
"author_profile": "https://Stackoverflow.com/users/1087119",
"pm_score": 1,
"selected": false,
"text": " function put() {\n var num0 = document.getElementById(\"text\")\n var num1 = Number(num0.value... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20671383/"
] |
74,663,611 | <p>LinkedHashMap has underlying double-linked list, which enables preservation of the insertion order during the iteration. Non-structural changes, i.e. replacement of the value of an already inserted key, does not affect iteration order. However, I am still wondering, <strong>whether remove(key) operation changes the ... | [
{
"answer_id": 74663627,
"author": "Mehmet Masa",
"author_id": 20671270,
"author_profile": "https://Stackoverflow.com/users/20671270",
"pm_score": 1,
"selected": false,
"text": "LinkedHashMap<String, Integer> map = new LinkedHashMap<>();\n\nmap.put(\"apple\", 1);\nmap.put(\"banana\", 2);... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10600152/"
] |
74,663,626 | <p>I have difficulties creating a counter (which is errorCount) for my while loop statement. I want my counter to function so that if the user answered a question incorrectly 5 times the program will terminate. furthermore, I have 3 questions for the user and I want to accumulate all the errorCounts so that if it hit 5... | [
{
"answer_id": 74663627,
"author": "Mehmet Masa",
"author_id": 20671270,
"author_profile": "https://Stackoverflow.com/users/20671270",
"pm_score": 1,
"selected": false,
"text": "LinkedHashMap<String, Integer> map = new LinkedHashMap<>();\n\nmap.put(\"apple\", 1);\nmap.put(\"banana\", 2);... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20671368/"
] |
74,663,634 | <p>Consider the following snippet:</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-css lang-css prettyprint-override"><code>#parent {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows:... | [
{
"answer_id": 74663627,
"author": "Mehmet Masa",
"author_id": 20671270,
"author_profile": "https://Stackoverflow.com/users/20671270",
"pm_score": 1,
"selected": false,
"text": "LinkedHashMap<String, Integer> map = new LinkedHashMap<>();\n\nmap.put(\"apple\", 1);\nmap.put(\"banana\", 2);... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663634",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15359157/"
] |
74,663,643 | <p>I would like my array to from index to index like thisfor example: (0,0), (1,0), (2,0) etc. I've tried what seems like it should be the right way, but my loops stop after the first column and I get an index out of bounds exception.</p>
<p>Here's what I did:</p>
<pre><code>int[][] array2d =
{
... | [
{
"answer_id": 74663726,
"author": "ProgrammingGeek11",
"author_id": 14232884,
"author_profile": "https://Stackoverflow.com/users/14232884",
"pm_score": 0,
"selected": false,
"text": " int[][] array2d =\n {\n {1,2,3,4},\n {5,6,7... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663643",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20671295/"
] |
74,663,651 | <p>I need to set margin on every page using dompdf like image below (page 2)</p>
<p><a href="https://i.stack.imgur.com/wTmLi.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wTmLi.jpg" alt="page 2" /></a></p>
<p><a href="https://pastebin.pl/view/ea972d3f" rel="nofollow noreferrer">this my fully code</... | [
{
"answer_id": 74663726,
"author": "ProgrammingGeek11",
"author_id": 14232884,
"author_profile": "https://Stackoverflow.com/users/14232884",
"pm_score": 0,
"selected": false,
"text": " int[][] array2d =\n {\n {1,2,3,4},\n {5,6,7... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663651",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12257400/"
] |
74,663,654 | <p>Say I have a table:</p>
<pre class="lang-sql prettyprint-override"><code>CREATE TABLE staff (
id INT,
name CHAR(9)
);
</code></pre>
<p>With data:</p>
<pre><code>INSERT INTO staff (id, name) VALUES (1, 'Joe');
INSERT INTO staff (id, name) VALUES (2, 'Bob');
INSERT INTO staff (id, name) VALUES (3, 'Alice');
</code... | [
{
"answer_id": 74664773,
"author": "d r",
"author_id": 19023353,
"author_profile": "https://Stackoverflow.com/users/19023353",
"pm_score": -1,
"selected": false,
"text": "SELECT vowel_count(name) FROM staff;\n create or replace Function VOWEL_COUNT_FROM_STRING(p_string VarChar2) RETURN N... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16471560/"
] |
74,663,657 | <p>My first time trying to extract data from an SVG element, following is the SVG element and the code I have tried to put up by reading stuff on the internet, I have absolutely no clue how wrong I am and why so.</p>
<pre><code><svg class="rv-xy-plot__inner" width="282" height="348">... | [
{
"answer_id": 74664377,
"author": "Fazlul",
"author_id": 12848411,
"author_profile": "https://Stackoverflow.com/users/12848411",
"pm_score": 2,
"selected": true,
"text": "for sv in driver.find_elements(By.XPATH,\"//*[local-name()='svg' and @class='rv-xy-plot__inner']//*[local-name()='g'... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1592397/"
] |
74,663,663 | <p>I have many string to match against a regex. Many strings start with the same substring. To speed up my search, I would like to check whether the regex could match a string which begins with the common substring...</p>
<h5>Example</h5>
<p>I have a regex like for instance: <code>/^(.[3e]|[o0]+)+l+$/</code> and many s... | [
{
"answer_id": 74664377,
"author": "Fazlul",
"author_id": 12848411,
"author_profile": "https://Stackoverflow.com/users/12848411",
"pm_score": 2,
"selected": true,
"text": "for sv in driver.find_elements(By.XPATH,\"//*[local-name()='svg' and @class='rv-xy-plot__inner']//*[local-name()='g'... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663663",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13948744/"
] |
74,663,667 | <p>I've been trying to get this to work forever and still no luck</p>
<p>I have:</p>
<ul>
<li>GTX 1050 Ti (on Lenovo Legion laptop)</li>
<li>the laptop also has an Intel UHD Graphics 630 (i'm not sure if maybe this is interfering?)</li>
<li>Anaconda</li>
<li>Visual Studio</li>
<li>Python 3.9.13</li>
<li>CUDA 11.2</li>
... | [
{
"answer_id": 74664377,
"author": "Fazlul",
"author_id": 12848411,
"author_profile": "https://Stackoverflow.com/users/12848411",
"pm_score": 2,
"selected": true,
"text": "for sv in driver.find_elements(By.XPATH,\"//*[local-name()='svg' and @class='rv-xy-plot__inner']//*[local-name()='g'... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20671394/"
] |
74,663,674 | <p><a href="https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html#option_mysqldump_single-transaction" rel="nofollow noreferrer">MySQL documentation</a> says</p>
<blockquote>
<p>--single-transaction</p>
</blockquote>
<blockquote>
<p>This option sets the transaction isolation mode to <strong>REPEATABLE READ</strong> an... | [
{
"answer_id": 74664377,
"author": "Fazlul",
"author_id": 12848411,
"author_profile": "https://Stackoverflow.com/users/12848411",
"pm_score": 2,
"selected": true,
"text": "for sv in driver.find_elements(By.XPATH,\"//*[local-name()='svg' and @class='rv-xy-plot__inner']//*[local-name()='g'... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12639005/"
] |
74,663,677 | <p>How to change this SQL query to PL/SQL command line or code?</p>
<pre><code>SELECT username, account_status FROM dba_users;
</code></pre>
<p>I tried</p>
<pre><code>DECLARE
user_name VARCHAR2(20) := 'username';
account_status VARCHAR2(20) := 'account_status';
BEGIN
FOR user_name IN (SELECT username FROM dba_use... | [
{
"answer_id": 74664478,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 2,
"selected": false,
"text": "SQL> select username, account_status from dba_users where rownum <= 5;\n\nUSERNAME ACCOUNT_STATUS\n--... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18434476/"
] |
74,663,708 | <p>Let's say I have a c# project Foo and a classlibrary called Bar</p>
<p>I'm wanting to develop Bar alongside Foo which will use Bar as a shared library. I'd like to keep these Foo and Bar in their own git repositories.</p>
<p>When I debug Foo, I'd like to be able to step into Bar to see what it's doing under the hood... | [
{
"answer_id": 74664478,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 2,
"selected": false,
"text": "SQL> select username, account_status from dba_users where rownum <= 5;\n\nUSERNAME ACCOUNT_STATUS\n--... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11438666/"
] |
74,663,709 | <p>I am having trouble getting multiple number vars from a read in line. For a single value I can do strtol(), but how can I get the float and long values of a sentence that is similar to as follows.</p>
<blockquote>
<p>Please aim 3.567 degrees at a height of 5 meters.</p>
</blockquote>
<p>I tried doing two different c... | [
{
"answer_id": 74664478,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 2,
"selected": false,
"text": "SQL> select username, account_status from dba_users where rownum <= 5;\n\nUSERNAME ACCOUNT_STATUS\n--... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16510301/"
] |
74,663,750 | <p>The files of both csv and xlsx contain same context, with same header and all. But would like to combine all under one file and then having another column to identify which is csv, which is xlsx. How do I go about doing so?</p>
<pre><code>extension = 'csv'
all_filenames = [i for i in glob.glob('*.{}.format(extension... | [
{
"answer_id": 74664478,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 2,
"selected": false,
"text": "SQL> select username, account_status from dba_users where rownum <= 5;\n\nUSERNAME ACCOUNT_STATUS\n--... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16768738/"
] |
74,663,754 | <p>I'm trying to add a remove method to my BST But I just can't figure out what is wrong. I have defined the <code>pointer</code> variable using <code>let</code> but it's still not working. It seems like it doesn't update the <code>root</code> object.</p>
<pre><code>const Node = (data, left = null, right = null) => ... | [
{
"answer_id": 74663996,
"author": "abney317",
"author_id": 391715,
"author_profile": "https://Stackoverflow.com/users/391715",
"pm_score": 1,
"selected": false,
"text": "let pointer = root; root pointer pointer parent.left parent.right"
},
{
"answer_id": 74675626,
"author": ... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18305265/"
] |
74,663,778 | <pre><code>export class MyComponent {
array_all: Array<{ page: any }> = [];
array_page: Array<{ id: number, name: string }> = [];
item: Array<{ id: number, name: string }> = [
{
id: 1,
name: 'Test name'
}
]
constructor(){
this.array_pa... | [
{
"answer_id": 74664075,
"author": "h.zare",
"author_id": 9628852,
"author_profile": "https://Stackoverflow.com/users/9628852",
"pm_score": 0,
"selected": false,
"text": "export class MyComponent {\n\narray_all: Array<{ page: any }> = [];\narray_page: Array<{ id: number, name: string }> ... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663778",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18895342/"
] |
74,663,785 | <p>Given one element in a list, what is the most efficient way that I can find the other elements?</p>
<p>(e.g. if a list is <code>l=["A","B","C","D"]</code> and you're given "B", it outputs "A", "C" and "D")?</p>
| [
{
"answer_id": 74663864,
"author": "Yash Mehta",
"author_id": 20172954,
"author_profile": "https://Stackoverflow.com/users/20172954",
"pm_score": 2,
"selected": true,
"text": "def method1(test_list, item):\n #List Comprehension\n res = [i for i in test_list if i != item]\n retur... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663785",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20444093/"
] |
74,663,827 | <p>I am trying to create a table that scrolls horizontally after the first column inside, I have a for loop for each column to get data from an array. I know this isn't the correct way because of how many times i am looping the same array but i cant figure out a better solution of doing this.</p>
<pre><code> struct ... | [
{
"answer_id": 74663864,
"author": "Yash Mehta",
"author_id": 20172954,
"author_profile": "https://Stackoverflow.com/users/20172954",
"pm_score": 2,
"selected": true,
"text": "def method1(test_list, item):\n #List Comprehension\n res = [i for i in test_list if i != item]\n retur... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10271922/"
] |
74,663,829 | <p>I have an array of objects as follows:</p>
<pre><code>[
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
137.89094924926758,
36.93143814715343
]
},
"properties": {
"... | [
{
"answer_id": 74663865,
"author": "Andrew Shearer",
"author_id": 10688837,
"author_profile": "https://Stackoverflow.com/users/10688837",
"pm_score": 0,
"selected": false,
"text": "replace const json = '\"data\": \"[{\\\"type\\\":\\\"Feature\\\",\\\"geometry\\\":{\\\"type\\\":\\\"Point\\... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3264461/"
] |
74,663,841 | <p>Both <code>.</code> and <code>::</code> can be used to call class methods, but, in my experience, <code>.</code> is by far the most commonly used of the two. So I am accustomed to using that form in documentation and RSpec describe/context/expect strings.</p>
<p>However, the Ruby API documentation uses <code>::</cod... | [
{
"answer_id": 74663871,
"author": "Mehmet Masa",
"author_id": 20671270,
"author_profile": "https://Stackoverflow.com/users/20671270",
"pm_score": 0,
"selected": false,
"text": "For example, consider the following class and method:\n\nclass MyClass\n # This is a class method\n def self... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/501266/"
] |
74,663,859 | <p>I am trying to figure out recursion and how it operates and I cant seem to figure out what is happening in this code.</p>
<pre><code>def printFun(test):
if (test < 1):
return
else:
print(test, end="a ")
printFun(test-1) # statement 2
print(test, end=&... | [
{
"answer_id": 74663929,
"author": "tdelaney",
"author_id": 642070,
"author_profile": "https://Stackoverflow.com/users/642070",
"pm_score": 2,
"selected": false,
"text": "call printFun(3)\n print 3a\n call printFun(2)\n print 2a\n call printFun(1)\n print 1... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12561894/"
] |
74,663,867 | <pre><code>favorite_foods = {'bill': 'cake', 'alex': 'patacones'}
for name in favorite_foods:
print(f"I dont agree with your favorite food {name.title()}.")
for food in (favorite_foods.values()):
print(f"{food.title()} is delicious, but not that good!")
if food in (favori... | [
{
"answer_id": 74663929,
"author": "tdelaney",
"author_id": 642070,
"author_profile": "https://Stackoverflow.com/users/642070",
"pm_score": 2,
"selected": false,
"text": "call printFun(3)\n print 3a\n call printFun(2)\n print 2a\n call printFun(1)\n print 1... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19747142/"
] |
74,663,887 | <p>I have an event in my discord bot that sends an embed to welcome a member when the join the guild. No errors are produced but the event does not seem to work for me.</p>
<p>Here is the code for the event:</p>
<pre><code>@bot.event
async def on_member_join(member):
"""
The code in this event is... | [
{
"answer_id": 74663929,
"author": "tdelaney",
"author_id": 642070,
"author_profile": "https://Stackoverflow.com/users/642070",
"pm_score": 2,
"selected": false,
"text": "call printFun(3)\n print 3a\n call printFun(2)\n print 2a\n call printFun(1)\n print 1... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20541671/"
] |
74,663,905 | <p>I'm trying to make a game which is spawning an object and after the object is destroyed, another object spawns right away. But right now I'm trying to destroy an instantiate object in a different function, and it is not working.</p>
<p>`</p>
<pre><code> public GameObject[] food;
public Vector3Int spawnPositio... | [
{
"answer_id": 74663929,
"author": "tdelaney",
"author_id": 642070,
"author_profile": "https://Stackoverflow.com/users/642070",
"pm_score": 2,
"selected": false,
"text": "call printFun(3)\n print 3a\n call printFun(2)\n print 2a\n call printFun(1)\n print 1... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18866421/"
] |
74,663,909 | <p><a href="https://i.stack.imgur.com/EUqnd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EUqnd.png" alt="Example Pic:" /></a></p>
<p>Hi, I got the solution with helper column. Can I get answer without helper column as shown in the picture. Thanks in advance..</p>
| [
{
"answer_id": 74664016,
"author": "David Leal",
"author_id": 6237093,
"author_profile": "https://Stackoverflow.com/users/6237093",
"pm_score": 0,
"selected": false,
"text": "E2 LET =LET(teams, A2:A5, names, B2:B5, dropDownValue, D2,\n helper, SCAN(\"\", teams, LAMBDA(acc,tt, IF(acc=\"\... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18605254/"
] |
74,663,927 | <p>I am doing an assignment in which I need to open a raw mailing list, saved in a CSV file, filter the users that have been unsubscribed, and print back the resulting mailing list to another CSV file. To do so, I first need to create tuples with each row in the original list, and then transform the tuples into a dicti... | [
{
"answer_id": 74664013,
"author": "tdelaney",
"author_id": 642070,
"author_profile": "https://Stackoverflow.com/users/642070",
"pm_score": 0,
"selected": false,
"text": "with open(\"mailing_list.csv\") as infile:\n with open(\"mailing_list_filtered.csv\", \"w\") as outfile:\n ... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20628914/"
] |
74,663,930 | <p>I'm trying to use a loop or an apply family solution for the next problem. I have few dataframes such as:</p>
<pre><code>df1 <- data.frame(a = c(1,2,3,NA,NA,NA,NA,NA,9,NA),b = c(1,2,3,4,NA,NA,NA,8,9,10),c = c(1,2,3,NA,NA,NA,7,8,NA,NA))
df2 <- data.frame(a = c(1,2,3,4,5,6,NA,NA,NA,10),b = c(1,2,3,4,NA,NA,NA,8,... | [
{
"answer_id": 74663965,
"author": "Ronak Shah",
"author_id": 3962914,
"author_profile": "https://Stackoverflow.com/users/3962914",
"pm_score": 0,
"selected": false,
"text": "library(dplyr)\nlibrary(zoo)\n\nl <- c(1,2,5)\nlist_of_data <- mget(paste0('df', l))\n\nlist_of_data <- purrr::ma... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7470388/"
] |
74,663,961 | <p>I am working on a module (scheduler).
If I add scheduler and I select 2 or many tuesdays from current date to schedule my task. And It will show my task on scheduler for coming 2 or many tuesdays. How can I code this.</p>
<p>To get 2 or many tuesdays from current date. C# or jquery</p>
<p>I have seen many codes but ... | [
{
"answer_id": 74663965,
"author": "Ronak Shah",
"author_id": 3962914,
"author_profile": "https://Stackoverflow.com/users/3962914",
"pm_score": 0,
"selected": false,
"text": "library(dplyr)\nlibrary(zoo)\n\nl <- c(1,2,5)\nlist_of_data <- mget(paste0('df', l))\n\nlist_of_data <- purrr::ma... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20671762/"
] |
74,663,990 | <p>I have the following structure:</p>
<pre><code>-- project/
|
|-- Cargo.toml
|-- Cargo.lock
|-- src/
|
|-- main.rs
|-- crate1/
|-- lib.rs
|-- Cargo.toml
|-- tests
|-- Cargo.toml
|-- test.rs
</code></pre>
<p>and this are the content of the Cargo.toml</p>
<pre class="lang-ini prettyprint-override"><code># ... | [
{
"answer_id": 74665352,
"author": "user20673258",
"author_id": 20673258,
"author_profile": "https://Stackoverflow.com/users/20673258",
"pm_score": -1,
"selected": false,
"text": "mod crate1; mod tests;"
},
{
"answer_id": 74669229,
"author": "FRostri",
"author_id": 138216... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663990",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13821672/"
] |
74,663,995 | <p>I am doing my first Python program and its Hangman game. I managed to make it work but as a part of the task I need to write "best results -hall of fame" table as json file. Each entry in the table should consist of name of the person and the result they achieved (number of tries before guessing a word). M... | [
{
"answer_id": 74664069,
"author": "nariman zaeim",
"author_id": 15414112,
"author_profile": "https://Stackoverflow.com/users/15414112",
"pm_score": 2,
"selected": true,
"text": "with open (\"hall.json\") as f:\n dct=json.load(f)\n\n#add new item to dct\ndct.update(hall_of_fame)\n\n#w... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74663995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20671681/"
] |
74,664,000 | <p>I am trying to set up audit properties for each of my Entities with an abstract Base class</p>
<pre><code>public abstract class Base
{
public bool IsActive { get; set; }
public bool IsDeleted { get; set; }
public int CreatedByUserId { get; set; }
[ForeignKey("CreatedByUserId")]
public v... | [
{
"answer_id": 74664069,
"author": "nariman zaeim",
"author_id": 15414112,
"author_profile": "https://Stackoverflow.com/users/15414112",
"pm_score": 2,
"selected": true,
"text": "with open (\"hall.json\") as f:\n dct=json.load(f)\n\n#add new item to dct\ndct.update(hall_of_fame)\n\n#w... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74664000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20671332/"
] |
74,664,001 | <p>I'm working with the following table where you can get activity from customer purchases.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>DateOfActivity</th>
<th>CustomerReference</th>
<th>Reference Line</th>
<th>Description</th>
<th>Receivable Amount</th>
</tr>
</thead>
<tbody>
<tr>
<td>... | [
{
"answer_id": 74664069,
"author": "nariman zaeim",
"author_id": 15414112,
"author_profile": "https://Stackoverflow.com/users/15414112",
"pm_score": 2,
"selected": true,
"text": "with open (\"hall.json\") as f:\n dct=json.load(f)\n\n#add new item to dct\ndct.update(hall_of_fame)\n\n#w... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74664001",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20578634/"
] |
74,664,014 | <p>I have a table or data like this</p>
<p><a href="https://i.stack.imgur.com/ZHn0G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZHn0G.png" alt="enter image description here" /></a></p>
<p>This data has a same invoice number, so I want to show table only one column using case or pivot. The result ... | [
{
"answer_id": 74664069,
"author": "nariman zaeim",
"author_id": 15414112,
"author_profile": "https://Stackoverflow.com/users/15414112",
"pm_score": 2,
"selected": true,
"text": "with open (\"hall.json\") as f:\n dct=json.load(f)\n\n#add new item to dct\ndct.update(hall_of_fame)\n\n#w... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74664014",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20328169/"
] |
74,664,018 | <p>In Rust, we can create a Vector with macro <code>vec![]</code>.</p>
<pre><code>let numbers = vec![1, 2, 3];
</code></pre>
<p>Is there any similar macro that allow us to create a <code>HashSet</code>?</p>
<p>From the doc <a href="https://doc.rust-lang.org/std/collections/struct.HashSet.html" rel="nofollow noreferrer"... | [
{
"answer_id": 74666214,
"author": "Caesar",
"author_id": 401059,
"author_profile": "https://Stackoverflow.com/users/401059",
"pm_score": 1,
"selected": false,
"text": "HashSet static"
}
] | 2022/12/03 | [
"https://Stackoverflow.com/questions/74664018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1035008/"
] |
74,664,022 | <p>I am passing a decimal value from C# to a SQL Server stored procedure.</p>
<p>The parameter in the stored procedure is defined as <code>@latitude decimal</code>. Right before going into the stored procedure, the value is 25.631230</p>
<p>When running the profiler I can see that SQL Server sees the value as: 25.63122... | [
{
"answer_id": 74664721,
"author": "chivalrous-nerd",
"author_id": 7347835,
"author_profile": "https://Stackoverflow.com/users/7347835",
"pm_score": -1,
"selected": false,
"text": "decimal(38, 18)"
}
] | 2022/12/03 | [
"https://Stackoverflow.com/questions/74664022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2125182/"
] |
74,664,085 | <p>Im using a TMDB API to search for movies and add them to a watchlist.</p>
<p>In this javascript function im getting movie details based on user input and rendering the results to html using bootstrap.</p>
<pre><code>const searchMovie = async (searchInput) => {
try {
axios.get(`https://api.themoviedb.o... | [
{
"answer_id": 74664721,
"author": "chivalrous-nerd",
"author_id": 7347835,
"author_profile": "https://Stackoverflow.com/users/7347835",
"pm_score": -1,
"selected": false,
"text": "decimal(38, 18)"
}
] | 2022/12/03 | [
"https://Stackoverflow.com/questions/74664085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18881995/"
] |
74,664,098 | <p>I am trying to make a call to an API and then grab event_ids from the data. I then want to use those event ids as variables in another request, then parse that data. Then loop back and make another request using the next event id in the event_id variable for all the IDs.</p>
<p>so far i have the following</p>
<pre><... | [
{
"answer_id": 74664721,
"author": "chivalrous-nerd",
"author_id": 7347835,
"author_profile": "https://Stackoverflow.com/users/7347835",
"pm_score": -1,
"selected": false,
"text": "decimal(38, 18)"
}
] | 2022/12/03 | [
"https://Stackoverflow.com/questions/74664098",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19124338/"
] |
74,664,129 | <p>So far I am not able to properly integrate xterm.js with reactjs due to which my code breaks in production but works while development. i need a proper way of importing xterm.js in component.</p>
<p>HELP !!!</p>
<pre><code>import React, {useEffect} from 'react';
import {Terminal} from 'xterm';
import {FitAddon} from... | [
{
"answer_id": 74664721,
"author": "chivalrous-nerd",
"author_id": 7347835,
"author_profile": "https://Stackoverflow.com/users/7347835",
"pm_score": -1,
"selected": false,
"text": "decimal(38, 18)"
}
] | 2022/12/03 | [
"https://Stackoverflow.com/questions/74664129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18295651/"
] |
74,664,150 | <p>I'm creating a clone array from an array that contain some empty slots. But after cloning it is being replaced with <code>undefined</code>. If the source array contain some empty slots then clone array should also contain same number and at exact same position empty slots. I don't get the reason. I'm using <a href="... | [
{
"answer_id": 74664171,
"author": "CertainPerformance",
"author_id": 9515207,
"author_profile": "https://Stackoverflow.com/users/9515207",
"pm_score": 3,
"selected": true,
"text": "a. Let index be 0.\nb. Repeat\n Let len be ? LengthOfArrayLike(array).\n iii. If index ≥ len, return Nor... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74664150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9153448/"
] |
74,664,156 | <p>I'm trying to build a basic terminal that performs basic operations in python. I have made all the main functions, but the cd function isn't working to change my current directory.</p>
<p>I suspect that the problem is in the way I store my current directory file. Perhaps I need to store it as variable instead of usi... | [
{
"answer_id": 74664171,
"author": "CertainPerformance",
"author_id": 9515207,
"author_profile": "https://Stackoverflow.com/users/9515207",
"pm_score": 3,
"selected": true,
"text": "a. Let index be 0.\nb. Repeat\n Let len be ? LengthOfArrayLike(array).\n iii. If index ≥ len, return Nor... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74664156",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19522375/"
] |
74,664,167 | <p>I have a piece of code that contains two functions <code>reverse()</code> that reverses an input list and <code>rotate()</code> that puts the last element to the start of the first.</p>
<p>Now I am given another list, in the function <code>public int minimumOps(List<Integer> a, List<Integer> b)</code> wh... | [
{
"answer_id": 74664197,
"author": "Mason",
"author_id": 10941378,
"author_profile": "https://Stackoverflow.com/users/10941378",
"pm_score": -1,
"selected": false,
"text": "public int minimumOps(List<Integer> a, List<Integer> b) {\n// Check if the lists are already equal\nif (a.equals(b)... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74664167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18984687/"
] |
74,664,203 | <p>I installed python but didn't work. Then all of the following but when, I was supposed to import the following it didn't work.</p>
<pre class="lang-html prettyprint-override"><code>!pip install -U pip
!pip install tensorflow
from tensorflow import keras
from tensorflow.keras import layers
</code></pre>
| [
{
"answer_id": 74664550,
"author": "chivalrous-nerd",
"author_id": 7347835,
"author_profile": "https://Stackoverflow.com/users/7347835",
"pm_score": 0,
"selected": false,
"text": "pip freeze pip install tensorflow"
}
] | 2022/12/03 | [
"https://Stackoverflow.com/questions/74664203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16366732/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.