qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,480,941 | <p>I have two functions, and both can return an empty string, so what is the best practice to save memory and avoid duplicated .txt empty string?</p>
<p><strong>Example</strong></p>
<pre><code>const char* function_one() {
return "";
}
const char* function_two() {
return "";
}
int main() {
... | [
{
"answer_id": 74481042,
"author": "Vlad from Moscow",
"author_id": 2877241,
"author_profile": "https://Stackoverflow.com/users/2877241",
"pm_score": 3,
"selected": true,
"text": "const char* function_one() {\n return \"\";\n}\nconst char* function_two() {\n return \"\";\n}\n const... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74480941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20292772/"
] |
74,480,957 | <p>I am trying to group and summarise a pandas dataframe into a single column</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">ID</th>
<th style="text-align: center;">LayerName</th>
<th style="text-align: right;">Name</th>
<th style="text-align: right;">Count</th>
<... | [
{
"answer_id": 74481041,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": true,
"text": "groupby.agg (df.groupby(['ID', 'LayerName'],\n as_index=False, sort=False)\n .agg({'Name': ','.join, 'C... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74480957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6768849/"
] |
74,480,960 | <p>I am trying to parse the array value from the response of one request and pass it to another request.From one api I get the response as :
{"id":95,"email":"Test_rider_00002@popup.com","firstname":"test","lastname":"rider","phoneNumber":&... | [
{
"answer_id": 74481041,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": true,
"text": "groupby.agg (df.groupby(['ID', 'LayerName'],\n as_index=False, sort=False)\n .agg({'Name': ','.join, 'C... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74480960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20509925/"
] |
74,480,966 | <p>i created a function to count the value of a blackjack hand with a for loop but it keep telling me that the index is out of range and i can't figure out why</p>
<p>i tried switching from "for card in total_cards" to a "for card in range(0, len(total_cards))" hoping that that would solve my proble... | [
{
"answer_id": 74481001,
"author": "Woodford",
"author_id": 8451814,
"author_profile": "https://Stackoverflow.com/users/8451814",
"pm_score": 3,
"selected": true,
"text": "for card in total_cards:\n total += total_cards[card]\n for for card in total_cards:\n total += card\n"
},
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74480966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20494293/"
] |
74,480,998 | <p>Write a function named <code>place_random_bricks(m, n, colours)</code> that randomly places bricks row-wise (completes the current row placement before moving to the next row) on the baseplate.</p>
<p>It must have three parameters:</p>
<ul>
<li><code>m</code> - the number of rows on the base-plate,</li>
<li><code>n<... | [
{
"answer_id": 74481001,
"author": "Woodford",
"author_id": 8451814,
"author_profile": "https://Stackoverflow.com/users/8451814",
"pm_score": 3,
"selected": true,
"text": "for card in total_cards:\n total += total_cards[card]\n for for card in total_cards:\n total += card\n"
},
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74480998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20359366/"
] |
74,481,029 | <p>I have a scenario such as follows and cannot get my <code>SpecificApi</code> service to register.</p>
<pre><code> public interface IDetail
{
string Name { get; set;}
}
public class SpecificDetail : IDetail
{
public string Name { get; set; }
}
public interface IBaseApi<... | [
{
"answer_id": 74481551,
"author": "Yevhen Cherkes",
"author_id": 7901167,
"author_profile": "https://Stackoverflow.com/users/7901167",
"pm_score": 2,
"selected": false,
"text": "public interface IBaseApi<out TDetail> where TDetail : IDetail\n{\n TDetail Method1();\n}\n\npublic interf... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3165621/"
] |
74,481,054 | <p>I have one query which return correct results for the parameters that are there but not what the goal is.</p>
<p>There are two columns <code>month</code> and <code>year</code>. What I want is when I choose from dropdowns:</p>
<p>4/2020 to 12/2022 to return everything after month 4 of 2020 till month 12 of 2022. Curr... | [
{
"answer_id": 74481347,
"author": "Luuk",
"author_id": 724039,
"author_profile": "https://Stackoverflow.com/users/724039",
"pm_score": 3,
"selected": true,
"text": "SELECT r.country_id, r.rate as rate, r.month, d.country_id, d.year, d.month as value \nFROM `data_prod` d \nINNER JOIN mon... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481054",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20263317/"
] |
74,481,064 | <p>I'm trying to search and replace string from a yaml file that I use for helm values. I have used the following command to extract the values that are different between two files:</p>
<pre><code>diff a.yaml b.yaml|grep ">"|cut -c 3- > new_file.yaml
</code></pre>
<p>The a.yaml file contains the followi... | [
{
"answer_id": 74481203,
"author": "Gilles Quenot",
"author_id": 465183,
"author_profile": "https://Stackoverflow.com/users/465183",
"pm_score": 2,
"selected": false,
"text": "$ sed 's/<change_me>/add_this/' file\nADD_THIS: {{ .Data.data.add_this }}\n"
},
{
"answer_id": 74481266,... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9960678/"
] |
74,481,067 | <p>I have the following PySpark dataframe:</p>
<pre><code>df = spark.createDataFrame(
[
('31,2', 'foo'),
('33,1', 'bar'),
],
['cost', 'label']
)
</code></pre>
<p>I need to cast the ´cost´ column to float. I do it as follows:</p>
<pre><code>df = df.withColumn('cost', df.cost.cast('float'))
</... | [
{
"answer_id": 74481361,
"author": "CharlieBONS",
"author_id": 20529340,
"author_profile": "https://Stackoverflow.com/users/20529340",
"pm_score": 3,
"selected": true,
"text": "df = (df.withColumn('cost', F.regexp_replace(df.cost, ',', '.')\n .withColumn('cost', df.cost.cast('floa... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11622712/"
] |
74,481,090 | <p>I need to know the way to get the users of a specific group through the REST API of Azure DevOps Server 2022, that is, <strong>on-premise</strong>. We are going to use as an example url 192.168.0.1 and the DefaultCollection as practice purposes.
I have searched the documentation but when I try to apply them in my ca... | [
{
"answer_id": 74481361,
"author": "CharlieBONS",
"author_id": 20529340,
"author_profile": "https://Stackoverflow.com/users/20529340",
"pm_score": 3,
"selected": true,
"text": "df = (df.withColumn('cost', F.regexp_replace(df.cost, ',', '.')\n .withColumn('cost', df.cost.cast('floa... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15665766/"
] |
74,481,137 | <p>I am having trouble getting this to work and any help would be greatly appreciated. I want to have a variable number of nested for loops for the following code. The idea is to write every combination possible to a csv file.</p>
<p>here is my code:
`</p>
<pre><code>ka = [0.217, 0.445]
kb = [0.03, 0.05]
kc = [10]
kd =... | [
{
"answer_id": 74481178,
"author": "jsbueno",
"author_id": 108205,
"author_profile": "https://Stackoverflow.com/users/108205",
"pm_score": 0,
"selected": false,
"text": "itertools.product ka = [0.217, 0.445]\nkb = [0.03, 0.05]\nkc = [10]\nkd = [0.15625, 0.7]\nke = [1.02, 0.78]\nLa = [0.1... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481137",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20533394/"
] |
74,481,166 | <p>i created my own component that contains 2 inputs(type: range, number). I want to hide one of them after another checkbox is clicked but getElementById is returning null.</p>
<p>Error</p>
<p><a href="https://i.stack.imgur.com/wp5Z8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wp5Z8.png" alt="en... | [
{
"answer_id": 74481178,
"author": "jsbueno",
"author_id": 108205,
"author_profile": "https://Stackoverflow.com/users/108205",
"pm_score": 0,
"selected": false,
"text": "itertools.product ka = [0.217, 0.445]\nkb = [0.03, 0.05]\nkc = [10]\nkd = [0.15625, 0.7]\nke = [1.02, 0.78]\nLa = [0.1... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20088244/"
] |
74,481,196 | <p>I've a Release pipeline in AzureDevops which pulls it's artifact from Azure Container Registry.</p>
<p>By creating a new release, at the "dockerbuild" needs to be selected which image from ACR shall be chosen: <a href="https://i.stack.imgur.com/HMpKc.png" rel="nofollow noreferrer"><img src="https://i.stack... | [
{
"answer_id": 74482238,
"author": "Afshin Alizadeh",
"author_id": 1034266,
"author_profile": "https://Stackoverflow.com/users/1034266",
"pm_score": -1,
"selected": false,
"text": "$(Build.BuildNumber)"
},
{
"answer_id": 74483889,
"author": "Charles Han",
"author_id": 115... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6797189/"
] |
74,481,205 | <p>Imagine a NxN chess board, I have a tuple <code>t = (0,3,2,1)</code> which represents chess pieces location at each column (col = index), and each number represents the row, starting at 0 from bottom.</p>
<p>For this example, it has 4 columns, first piece is at row=0 (bottom row), second piece is on row=3 (fourth/hi... | [
{
"answer_id": 74481280,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 1,
"selected": false,
"text": "arr = [[0] * table_size for _ in range(table_size)]\n 1 for col, row in enumerate(pieces_location, 1):\n arr[-row]... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20424322/"
] |
74,481,217 | <p>Consider I have the following collection:</p>
<pre class="lang-json prettyprint-override"><code>[
{
"total": 48.0,
"status": "CO"
},
{
"total": 11.0,
"status": "CA"
},
{
"total": 15916.0,
"status": "... | [
{
"answer_id": 74481336,
"author": "ray",
"author_id": 14732669,
"author_profile": "https://Stackoverflow.com/users/14732669",
"pm_score": 2,
"selected": false,
"text": "$switch $subtract db.collection.aggregate([\n {\n $group: {\n _id: null,\n total: {\n \"$sum\": {... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10022279/"
] |
74,481,243 | <p>I am looking for how to execute javascript code in the URL bar via xJavascript.</p>
<p>The standard way would be <code>xJavascript:JAVASCRIPTCODEHERE</code>, you would remove the "x" and it would execute the code, but that is not working.</p>
<p>Am I doing it wrong, or is no longer possible?</p>
<p>Please ... | [
{
"answer_id": 74481336,
"author": "ray",
"author_id": 14732669,
"author_profile": "https://Stackoverflow.com/users/14732669",
"pm_score": 2,
"selected": false,
"text": "$switch $subtract db.collection.aggregate([\n {\n $group: {\n _id: null,\n total: {\n \"$sum\": {... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20253121/"
] |
74,481,245 | <p>Is it possible to limit s3 bucket to lowercase files/directories only?</p>
<p>Some downstream systems are case insensitive so I want to prevent any issues.</p>
<p>There's a Lambda workaround, but is it possible to specify this requirement as a bucket policy?</p>
<pre class="lang-json prettyprint-override"><code>{
... | [
{
"answer_id": 74481679,
"author": "John Rotenstein",
"author_id": 174777,
"author_profile": "https://Stackoverflow.com/users/174777",
"pm_score": 1,
"selected": false,
"text": "Key Copy Foo foo FOO foo"
}
] | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2425753/"
] |
74,481,246 | <p>I want to return the left association of an expression given (haskell), so if we have a + (b + c) the function has to return (a + b) + c, this also applies for the multiplication since these 2 operations are associative. taking onto consideration the other operations that are not associative therefor I have to put a... | [
{
"answer_id": 74481765,
"author": "Daniel Wagner",
"author_id": 791604,
"author_profile": "https://Stackoverflow.com/users/791604",
"pm_score": 2,
"selected": false,
"text": "leftAssociate (App Add x (App Add y z)) = -- ...\nleftAssociate (App Mul x (App Mul y z)) = -- ...\nleftAssociat... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481246",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17517912/"
] |
74,481,252 | <p>I'm writing my own implementation of an <code>Vector</code>. I want this to be as wide as possible so I wrote it with all fields and values being <code>double</code>. Now I made a second Object <code>FloatVector</code> which extends my main Class <code>2DVector</code>. It's only job is to provide Getter-Methods of <... | [
{
"answer_id": 74486771,
"author": "王大拿",
"author_id": 8541039,
"author_profile": "https://Stackoverflow.com/users/8541039",
"pm_score": 1,
"selected": false,
"text": "public class Vector2D<T> {\n T x;\n\n public T getX() {\n return x;\n }\n}\n public class FloatVector ex... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13689169/"
] |
74,481,253 | <p>I want to unsort a list.
For you to understand:</p>
<pre class="lang-py prettyprint-override"><code>list1 = ["Hi", "Whats up this Morning" "Hello", "Good Morning"]
new_list = sorted(list1, key=len, reverse=True)
["Whats up this Morning", "Good Morning", &... | [
{
"answer_id": 74486771,
"author": "王大拿",
"author_id": 8541039,
"author_profile": "https://Stackoverflow.com/users/8541039",
"pm_score": 1,
"selected": false,
"text": "public class Vector2D<T> {\n T x;\n\n public T getX() {\n return x;\n }\n}\n public class FloatVector ex... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20533469/"
] |
74,481,278 | <p>We server markdown files as documentation for using our SDK and one of our websites uses remark and rehype to process and display them inline in the browser as html:</p>
<pre><code>const processor = unified()
.use(remarkParse)
.use(remarkRehype, {
allowDangerousHtml: true,
})
.use(rehypeHighlight, {
... | [
{
"answer_id": 74486771,
"author": "王大拿",
"author_id": 8541039,
"author_profile": "https://Stackoverflow.com/users/8541039",
"pm_score": 1,
"selected": false,
"text": "public class Vector2D<T> {\n T x;\n\n public T getX() {\n return x;\n }\n}\n public class FloatVector ex... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/977524/"
] |
74,481,307 | <p>I'm new to pandas and would like to know how to do the following:
Given specific conditions, I would like to mark the whole group with a specific label rather than just the rows that meet the conditions.
For example, if I have a DataFrame like this:</p>
<pre><code>import numpy as np
import pandas as pd
df = pd.Data... | [
{
"answer_id": 74486771,
"author": "王大拿",
"author_id": 8541039,
"author_profile": "https://Stackoverflow.com/users/8541039",
"pm_score": 1,
"selected": false,
"text": "public class Vector2D<T> {\n T x;\n\n public T getX() {\n return x;\n }\n}\n public class FloatVector ex... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3790995/"
] |
74,481,315 | <p>I am trying to flatten API response.
This is the response</p>
<pre><code>data = [{
"id": 1,
"status": "Public",
"Options": [
{
"id": 8,
"pId": 9
... | [
{
"answer_id": 74481565,
"author": "Bushmaster",
"author_id": 15415267,
"author_profile": "https://Stackoverflow.com/users/15415267",
"pm_score": 1,
"selected": false,
"text": "df=pd.json_normalize(data).explode('Options')\ndf=df.join(df['Options'].apply(pd.Series).add_prefix('options_')... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481315",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19671817/"
] |
74,481,351 | <p>I'm new here and also new to react js and I'm having trouble solving 1 exercise that asks to display a list of users coming from a REST API and then to be able to filter it.</p>
<p>I have managed to show it but I don't know how to do the filter.</p>
<p>EDIT:</p>
<p>Well Thanx I manage to use filters as you say :D.</... | [
{
"answer_id": 74481396,
"author": "Anurag Bhagsain",
"author_id": 8885198,
"author_profile": "https://Stackoverflow.com/users/8885198",
"pm_score": 0,
"selected": false,
"text": "users.filter(user => user.name.startsWith('R')).map((user) => (\n <UsersList\n key={user.id}\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20533545/"
] |
74,481,402 | <p>I'm migrating the backend a budget database from Access to SQL Server and I ran into an issue.</p>
<p>I have 2 tables (let's call them t1 and t2) that share many fields in common: Fund, Department, Object, Subcode, TrackingCode, Reserve, and FYEnd.</p>
<p>If I want to join the tables to find records where all 7 fiel... | [
{
"answer_id": 74481396,
"author": "Anurag Bhagsain",
"author_id": 8885198,
"author_profile": "https://Stackoverflow.com/users/8885198",
"pm_score": 0,
"selected": false,
"text": "users.filter(user => user.name.startsWith('R')).map((user) => (\n <UsersList\n key={user.id}\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10508285/"
] |
74,481,418 | <p>I need a List of objects whose properties will be the columns' names.</p>
<p>This is my approach:</p>
<pre><code>var list = (from student in context.Student
join school in context.School
on student.idSchool equals school.idSchool
into allcolumns
from entry in allcolumns
select... | [
{
"answer_id": 74481746,
"author": "Diego",
"author_id": 20478349,
"author_profile": "https://Stackoverflow.com/users/20478349",
"pm_score": 1,
"selected": false,
"text": "var mylist = from student in context.Student\n join school in context.School\n on student.idSchool equals scho... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19297836/"
] |
74,481,447 | <p>I have two data sources that are loaded into Azure Synapse. Both raw data sources contain an 'Apple' table.</p>
<p>I merge these into a single 'Apple' table in my Enriched data store.</p>
<p><code>SELECT * FROM datasource1.apple JOIN datasource2.apple on datasource1.apple.id = datasource2.apple.id</code></p>
<p>Howe... | [
{
"answer_id": 74481746,
"author": "Diego",
"author_id": 20478349,
"author_profile": "https://Stackoverflow.com/users/20478349",
"pm_score": 1,
"selected": false,
"text": "var mylist = from student in context.Student\n join school in context.School\n on student.idSchool equals scho... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481447",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2207559/"
] |
74,481,454 | <p>I am trying to understand a Python for loop that is implemented as below</p>
<pre><code>samples= [(objectinstance.get('sample', record['token'])['timestamp'], record)
for record in objectinstance.scene]
</code></pre>
<p>'scene' is a JSON file with list of dictionaries and each dictionary entry refers th... | [
{
"answer_id": 74481746,
"author": "Diego",
"author_id": 20478349,
"author_profile": "https://Stackoverflow.com/users/20478349",
"pm_score": 1,
"selected": false,
"text": "var mylist = from student in context.Student\n join school in context.School\n on student.idSchool equals scho... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20533556/"
] |
74,481,467 | <p>I have created a Next js app. As they said in their documentation, I integrated TailwindCSS into my project. Everything went well. However, the result I got was a web page where no TailwindCSS styles were applied on.</p>
<p>I will provide the files that I think are causing this issue.</p>
<p>I would appreciate it if... | [
{
"answer_id": 74481513,
"author": "Samathingamajig",
"author_id": 12101554,
"author_profile": "https://Stackoverflow.com/users/12101554",
"pm_score": 0,
"selected": false,
"text": "tailwind.config.js content content: [\"./src/**/*.{js,ts,jsx,tsx}\"],\n /** @type {import('tailwindcss').C... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15388111/"
] |
74,481,494 | <p>How to set the variables - key/value pair from a text file before running any targets in a Makefile?</p>
<p>Let's say text <strong>.p4config</strong> file contains the following:
<code>P4PORT=ilp4.il.domain.com:1667 P4CLIENT=ws:domain.com::user:container.IP_V1:a0a12fc1</code></p>
<p>in makefile this wont work:</p>
<... | [
{
"answer_id": 74481769,
"author": "MadScientist",
"author_id": 939557,
"author_profile": "https://Stackoverflow.com/users/939557",
"pm_score": 0,
"selected": false,
"text": "env.log:\n cat .p4config | grep P4CLIENT | xargs > $@\n make env.log env.log"
},
{
"answer_id": 74... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481494",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18117529/"
] |
74,481,506 | <p>Hey i'm using laravel 9 here and im using the SB ADMIN template from bootstrap , i'm making the template as a component <code><x-dashboard >...</x-dashboard></code> and i'm passing children inside it ! but i want the children to have it's own css ( not the bootstrap one ) which is in my app.css file i a... | [
{
"answer_id": 74481769,
"author": "MadScientist",
"author_id": 939557,
"author_profile": "https://Stackoverflow.com/users/939557",
"pm_score": 0,
"selected": false,
"text": "env.log:\n cat .p4config | grep P4CLIENT | xargs > $@\n make env.log env.log"
},
{
"answer_id": 74... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13647720/"
] |
74,481,509 | <p>I have taken data from csv file using get-content
I need to print data in table format how can I do that?
CSV data looks like this after printing it in the mail.</p>
<pre><code>ID OP_ID STATE OUP_ID METHOD time ------------ -------- ----- ---------------- ---- 2187 ab8262 working ky981 IN 09.40.13.161000 2779 ab9128... | [
{
"answer_id": 74481616,
"author": "user20234075",
"author_id": 20234075,
"author_profile": "https://Stackoverflow.com/users/20234075",
"pm_score": 1,
"selected": false,
"text": "ft Import-CSV -Path c:\\temp\\test.csv | ft\n ft"
},
{
"answer_id": 74485416,
"author": "Dilly B"... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481509",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20212257/"
] |
74,481,533 | <p>I made a function that is supposed to help me order strings in alphabetical order: it should return -1 if the first string comes before the second one, 0 if they are the same string and 1 if the first string comes after the second one. This is the code:</p>
<p>`</p>
<pre><code>int testString(char* a, char* b){
i... | [
{
"answer_id": 74481651,
"author": "Vlad from Moscow",
"author_id": 2877241,
"author_profile": "https://Stackoverflow.com/users/2877241",
"pm_score": 2,
"selected": false,
"text": "-1 '\\0' while(a[i] != EOF && b[i] != EOF){\n else{\n printf(\"Problem in the string com... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19618641/"
] |
74,481,613 | <p>I have a dataset like this</p>
<pre><code>data = {'weight': ['NaN',2,3,4,'NaN',6,7,8,9,'NaN',11,12,13,14,15],
'MI': ['NaN', 21, 19, 18, 'NaN',16,15,14,13,'NaN',11,10,9,8,7]}
df = pd.DataFrame(data, index= ['group1', "gene1", "gene2", 'gene3',
'group2', "gene1&qu... | [
{
"answer_id": 74481825,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 3,
"selected": true,
"text": "m = df['weight'].ne('NaN')\n\n(df[m]\n .set_index((~m).cumsum()[m], append=True)['MI']\n .unstack('weight', fill... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481613",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12149817/"
] |
74,481,647 | <p>Given a string s consisting of lowercase English letters, find the number of consecutive triplets within s formed by unique characters. In other words, count the number of indices i, such that s[i], s[i + 1], and s[i + 2] are all pairwise distinct.</p>
<p>Got this on a test and was completely stumped. I am less than... | [
{
"answer_id": 74481742,
"author": "caTS",
"author_id": 18244921,
"author_profile": "https://Stackoverflow.com/users/18244921",
"pm_score": 2,
"selected": false,
"text": "a != b && b != c a b c function triplets(input) {\n let count = 0;\n \n for (let i = 0; i < input.length - 2... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20375229/"
] |
74,481,678 | <p>I have two datasets of sales data at the end of month. I am just trying to find the matching rows from the dataset A and pull the shipped value from the dataset B. I have tried using merge and match but the values don't line up or the dataset explodes. I made a small example the real dataset has over 100 columns ... | [
{
"answer_id": 74481742,
"author": "caTS",
"author_id": 18244921,
"author_profile": "https://Stackoverflow.com/users/18244921",
"pm_score": 2,
"selected": false,
"text": "a != b && b != c a b c function triplets(input) {\n let count = 0;\n \n for (let i = 0; i < input.length - 2... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10342813/"
] |
74,481,682 | <p>I wrote two Python functions for converting RGB colors of an image representing tuples to single integer values using two different approaches.</p>
<p>In order to test if both the approaches deliver the same results it was necessary to frequently switch between the two code sections choosing which one should be run.... | [
{
"answer_id": 74481683,
"author": "Claudio",
"author_id": 7711283,
"author_profile": "https://Stackoverflow.com/users/7711283",
"pm_score": -1,
"selected": false,
"text": "'#' \"\"\" [Del] [#] # ======================================================================\n''' Conversion funct... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7711283/"
] |
74,481,688 | <p>I am using a triangle to mark an event on a timeline in R, and I've given the coordinates to the specific position on the line where the event occurs in days. In the <code>points(</code> function, I have supplied <code>pch=25</code> to create the "filled triangle" shape. However, the positioning of the cha... | [
{
"answer_id": 74481683,
"author": "Claudio",
"author_id": 7711283,
"author_profile": "https://Stackoverflow.com/users/7711283",
"pm_score": -1,
"selected": false,
"text": "'#' \"\"\" [Del] [#] # ======================================================================\n''' Conversion funct... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481688",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/821649/"
] |
74,481,703 | <p>How do I convert this input:</p>
<pre><code>values = ['v1,v2', 'v3']
</code></pre>
<p>to this output:</p>
<pre><code>['v1', 'v2', 'v3']
</code></pre>
<hr />
<p>Attempt without list comprehension that works:</p>
<pre><code>values = ['v1,v2', 'v3']
parsed_values = []
for v in values:
if ',' in v:
parsed_v... | [
{
"answer_id": 74481730,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": false,
"text": "values = [\"v1,v2\", \"v3\"]\n\nvalues = \",\".join(values).split(\",\")\nprint(values)\n ['v1', 'v2', 'v3']... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8430155/"
] |
74,481,723 | <p>In my code, on hover the direction of linear-gradient animation is like counterclockwise, how can do it stright linear from top right to bottom left?</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... | [
{
"answer_id": 74481730,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": false,
"text": "values = [\"v1,v2\", \"v3\"]\n\nvalues = \",\".join(values).split(\",\")\nprint(values)\n ['v1', 'v2', 'v3']... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3014233/"
] |
74,481,728 | <p>I am attempting to create a put request to an API using Flutter using the following function:</p>
<pre><code>Future<http.Response> login(String username, String password) {
return http.put(
Uri.parse('apiurl'),
headers: <String, String>{
'Content-Type': 'application/json; ch... | [
{
"answer_id": 74481730,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": false,
"text": "values = [\"v1,v2\", \"v3\"]\n\nvalues = \",\".join(values).split(\",\")\nprint(values)\n ['v1', 'v2', 'v3']... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481728",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5326923/"
] |
74,481,748 | <p>permutations might not be exactly the right word.</p>
<p>say <code>x = "123456"</code>.
I want my code to output <code>['12','23','34','45','56']</code>.
Right now, I know how to split it into <code>['12','34','56']</code></p>
| [
{
"answer_id": 74481730,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": false,
"text": "values = [\"v1,v2\", \"v3\"]\n\nvalues = \",\".join(values).split(\",\")\nprint(values)\n ['v1', 'v2', 'v3']... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20533786/"
] |
74,481,753 | <p>I am trying to select multiple values between a range fom all rows per each column and plot them all-together.</p>
<p>The values in the dataframe are between 0 and 100. I want to select a range of values between 0 to 10 for all rows of one column, and then repeat that iteration every 10 values until 100 (e.g.: value... | [
{
"answer_id": 74481730,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": false,
"text": "values = [\"v1,v2\", \"v3\"]\n\nvalues = \",\".join(values).split(\",\")\nprint(values)\n ['v1', 'v2', 'v3']... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20528268/"
] |
74,481,783 | <p>I'm using Python/ Pandas. I'm receiving output that is coming in this format where the actual date value is in the column header of the csv</p>
<p><a href="https://i.stack.imgur.com/Wp4kG.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>I need it to be in this format where there is a column &qu... | [
{
"answer_id": 74482144,
"author": "CharlieBONS",
"author_id": 20529340,
"author_profile": "https://Stackoverflow.com/users/20529340",
"pm_score": 0,
"selected": false,
"text": "import pandas as pd\nfrom datetime import datetime\n\ndf = pd.DataFrame({'Name':['Profit', 'Loss'],\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20533745/"
] |
74,481,785 | <p>I have this table</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Column A</th>
<th>Column B</th>
</tr>
</thead>
<tbody>
<tr>
<td>Kelly</td>
<td>0530,0630,1730</td>
</tr>
<tr>
<td>Mark</td>
<td>0830,1630,1530</td>
</tr>
<tr>
<td>Jenn</td>
<td>0530,0630,1630</td>
</tr>
</tbody>
</table>
<... | [
{
"answer_id": 74482144,
"author": "CharlieBONS",
"author_id": 20529340,
"author_profile": "https://Stackoverflow.com/users/20529340",
"pm_score": 0,
"selected": false,
"text": "import pandas as pd\nfrom datetime import datetime\n\ndf = pd.DataFrame({'Name':['Profit', 'Loss'],\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481785",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20533778/"
] |
74,481,798 | <p>I am working on an algorithm where you press a button and 2 checks happen:</p>
<ul>
<li>You can only push a word into array if that word doesn't exist in the array already and starts with the same letter that the last word in the array ends with.</li>
</ul>
<p>I think i figured out the checks but i am trying to opti... | [
{
"answer_id": 74481875,
"author": "DevQuayle",
"author_id": 4604457,
"author_profile": "https://Stackoverflow.com/users/4604457",
"pm_score": 0,
"selected": false,
"text": "const field = document.querySelector('#field');\nconst message = document.querySelector('#message');\nconst playBt... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481798",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18992987/"
] |
74,481,801 | <p>I have a string that looks something similar to this:</p>
<pre><code>28f1e5f7-47c6-4d67-bcbf-9e807c379076-9780-gThGFkHY0CeFCPwA6Efys7
</code></pre>
<p>I would like to split it based on '-' but also tell it at what position or point to do the split. My goal is to drop the last two strings</p>
<p>The end result of wha... | [
{
"answer_id": 74481875,
"author": "DevQuayle",
"author_id": 4604457,
"author_profile": "https://Stackoverflow.com/users/4604457",
"pm_score": 0,
"selected": false,
"text": "const field = document.querySelector('#field');\nconst message = document.querySelector('#message');\nconst playBt... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20533789/"
] |
74,481,873 | <p>I am learning Flutter and currently am trying to send the index of the list item that is clicked, to another page. I have figured out how to open the new page using GestureDetector but am getting an error when trying to send the index as a string. Here is my code:</p>
<pre><code>@override
Widget build(BuildContext... | [
{
"answer_id": 74481992,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 1,
"selected": false,
"text": "index toString(index),\n index.toString(),\n"
},
{
"answer_id": 74482109,
"author": "Delwinn",
"aut... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18001565/"
] |
74,481,905 | <p>I have the following data</p>
<pre><code>data have;
input id seq value;
datalines;
1 1 4
1 2 4
1 3 0
1 4 0
1 5 0
1 6 4
1 7 4
2 1 1
2 2 1
2 3 5
2 4 5
2 5 5
2 6 8
;
run;
</code></pre>
<p>I need to create a groupid variable, which depends on the id and value, so that the output looks like this,</p>
<pre><code>id seq ... | [
{
"answer_id": 74481992,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 1,
"selected": false,
"text": "index toString(index),\n index.toString(),\n"
},
{
"answer_id": 74482109,
"author": "Delwinn",
"aut... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1592397/"
] |
74,481,925 | <p>I'm trying to transform a PostGreSQL Query in Laravel Query Builder Syntax, but isn't working</p>
<pre><code>SELECT users.*, rifs.rif
FROM users
JOIN rif_user on users.id = rif_user.user_id
JOIN rifs ON rifs.id = rif_user.rif_id
WHERE email = 'email@email.com';
$busq = DB::table(['users','rifs'])
->select('rifs... | [
{
"answer_id": 74481992,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 1,
"selected": false,
"text": "index toString(index),\n index.toString(),\n"
},
{
"answer_id": 74482109,
"author": "Delwinn",
"aut... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20533784/"
] |
74,481,937 | <p>I have stored some data in python and now I want to display it in django how can I do that?</p>
<pre><code>
animeUrl = "https://api.jikan.moe/v4/top/anime"
animeResponse = requests.get(animeUrl).json()
def topAnime():
for idx, video in enumerate(animeResponse['data']):
animeUrl = video['url']... | [
{
"answer_id": 74481992,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 1,
"selected": false,
"text": "index toString(index),\n index.toString(),\n"
},
{
"answer_id": 74482109,
"author": "Delwinn",
"aut... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17685223/"
] |
74,481,953 | <p>In my tailwind config i extend the custom colors as followed:</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-js lang-js prettyprint-override"><code> theme: {
extend: {
colors: {
// BACKGROUN... | [
{
"answer_id": 74482063,
"author": "Raphael Cunha",
"author_id": 7884624,
"author_profile": "https://Stackoverflow.com/users/7884624",
"pm_score": 3,
"selected": true,
"text": "// tailwind.config.js\n\nlet colorBgLight = \"#fffef7\"\n\ntheme: {\n extend: {\n colors: {\n // BACKG... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1443063/"
] |
74,481,961 | <p>Can Anyone please tell me the difference between these 3 snippets? I am facing these global and local variable access issue. No idea what is ({counter}). and why others are not giving me output.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-... | [
{
"answer_id": 74482298,
"author": "Toban Harnish",
"author_id": 20427085,
"author_profile": "https://Stackoverflow.com/users/20427085",
"pm_score": 1,
"selected": false,
"text": "function test(){\n return this;\n}\nconst returnVal = test.call({a:'a',b:'b',c:'c'});\nconsoel.log(returnVa... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74481961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5007664/"
] |
74,482,035 | <p>during deploing my Spring Boot App on heroku i got this error</p>
<pre><code>
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/boot/SpringApplication
</code></pre>
<p>My Pom.xml build part:</p>
<pre><code>
<build>
<plugins>
<plugin>
... | [
{
"answer_id": 74488534,
"author": "Hamza Khadhri",
"author_id": 9523051,
"author_profile": "https://Stackoverflow.com/users/9523051",
"pm_score": 1,
"selected": false,
"text": "import org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootAp... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20479883/"
] |
74,482,055 | <p>After consulting the <a href="https://v2.ocaml.org/api/Format.html" rel="nofollow noreferrer">Format</a> and <a href="https://v2.ocaml.org/api/Printf.html" rel="nofollow noreferrer">Printf</a> module documentation, I'm still left with an unanswered question about the <code>%a</code> specifier.</p>
<p>Starting with a... | [
{
"answer_id": 74482621,
"author": "octachron",
"author_id": 7369366,
"author_profile": "https://Stackoverflow.com/users/7369366",
"pm_score": 3,
"selected": true,
"text": "%a Format.printf \"%0.3a\"\n -strict-formats"
},
{
"answer_id": 74482712,
"author": "glennsl",
"aut... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15261315/"
] |
74,482,083 | <p>I have a dataset, <strong>where when the sum of Q1 24 - Q4 24 is between the number 1 - 2.5, I would like to place the number 2 in that row under Q4 24.</strong></p>
<p><strong>Data</strong></p>
<pre><code>ID type Q1 24 Q2 24 Q3 24 Q4 24
AA hi 2.0 1.2 0.5 0.6
AA hello 0.7 2.0 0... | [
{
"answer_id": 74482621,
"author": "octachron",
"author_id": 7369366,
"author_profile": "https://Stackoverflow.com/users/7369366",
"pm_score": 3,
"selected": true,
"text": "%a Format.printf \"%0.3a\"\n -strict-formats"
},
{
"answer_id": 74482712,
"author": "glennsl",
"aut... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5942100/"
] |
74,482,102 | <p>That is maybe a dumb question or asked many times (if so, answer with existing link and I will close this post).</p>
<p>Let's say in laravel by example, when send model id in route, everything is ok in php. But when a route must optional parameter defined as null in Vuejs (or undefined), Php gets this parameter as s... | [
{
"answer_id": 74482621,
"author": "octachron",
"author_id": 7369366,
"author_profile": "https://Stackoverflow.com/users/7369366",
"pm_score": 3,
"selected": true,
"text": "%a Format.printf \"%0.3a\"\n -strict-formats"
},
{
"answer_id": 74482712,
"author": "glennsl",
"aut... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7142629/"
] |
74,482,117 | <p>I have a class I wrote where a majority (but not all) of its methods take in an int parameter <code>foo</code>:</p>
<pre class="lang-py prettyprint-override"><code>class MyClass:
def fun_one(self, foo: int):
pass
def fun_two(self, foo: int, flu: int):
pass
def fun_three(self, flu: str, ... | [
{
"answer_id": 74482621,
"author": "octachron",
"author_id": 7369366,
"author_profile": "https://Stackoverflow.com/users/7369366",
"pm_score": 3,
"selected": true,
"text": "%a Format.printf \"%0.3a\"\n -strict-formats"
},
{
"answer_id": 74482712,
"author": "glennsl",
"aut... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10442089/"
] |
74,482,138 | <p>I have a function like this:</p>
<pre><code>function refactorQueryResult<D, E>(
name: string,
original: UseQueryResult<D, E>
) {
return {
[name]: original.data,
[`${name}UpdatedAt`]: original.dataUpdatedAt,
[`${name}Error`]: original.error,
[`${name}ErrorUpdatedAt`]: original.errorU... | [
{
"answer_id": 74520223,
"author": "kaan_a",
"author_id": 1788771,
"author_profile": "https://Stackoverflow.com/users/1788771",
"pm_score": 0,
"selected": false,
"text": "function refactorQueryResult<D, E>(\n name: string,\n original: UseQueryResult<D, E>\n) \n function refactorQueryRe... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482138",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1788771/"
] |
74,482,143 | <pre><code>
if(toggle == 1){
fill(150,10);
rect(width+435,400,200,height);
fill(0);
textSize(20);
text(" R = Restart",1120,500);
}
}
}
void keyPressed()
{
if(key=='R' || key == 'r')
{
}
}
</code></pre>
<p>I have done everything that I know and still haven't reache... | [
{
"answer_id": 74520223,
"author": "kaan_a",
"author_id": 1788771,
"author_profile": "https://Stackoverflow.com/users/1788771",
"pm_score": 0,
"selected": false,
"text": "function refactorQueryResult<D, E>(\n name: string,\n original: UseQueryResult<D, E>\n) \n function refactorQueryRe... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534025/"
] |
74,482,151 | <p>I want to render a list in react native. The list items should be very simple, at least in theory. It has a header and a body. The header is no problem. It's just a <code>Text</code> component. But I do struggle with the body component.</p>
<p>This is how the list item looks like right now:<a href="https://i.stack.i... | [
{
"answer_id": 74520223,
"author": "kaan_a",
"author_id": 1788771,
"author_profile": "https://Stackoverflow.com/users/1788771",
"pm_score": 0,
"selected": false,
"text": "function refactorQueryResult<D, E>(\n name: string,\n original: UseQueryResult<D, E>\n) \n function refactorQueryRe... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5236141/"
] |
74,482,161 | <p>I am able to work with queries in C#. But I don't know how to write this subquery. Thank you for any help.</p>
<pre><code>SELECT *
FROM Stores.PerformanceRealization PR
LEFT JOIN Stores.GroupRealization ON Stores.GroupRealization.Id = PR.GroupRealizationId
WHERE PR.Deadline = (SELECT MAX(Deadline)
... | [
{
"answer_id": 74520223,
"author": "kaan_a",
"author_id": 1788771,
"author_profile": "https://Stackoverflow.com/users/1788771",
"pm_score": 0,
"selected": false,
"text": "function refactorQueryResult<D, E>(\n name: string,\n original: UseQueryResult<D, E>\n) \n function refactorQueryRe... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17638875/"
] |
74,482,195 | <p>I have a project of mine where a click should happen (click first one from collapsed list item), but it should happen automatically without user taking mouse on it(cursor) and clicking it.</p>
<p>that list item collapse comes from material ui.</p>
<p>any idea is appreciated.</p>
<p>my code to try :
<a href="https://... | [
{
"answer_id": 74520223,
"author": "kaan_a",
"author_id": 1788771,
"author_profile": "https://Stackoverflow.com/users/1788771",
"pm_score": 0,
"selected": false,
"text": "function refactorQueryResult<D, E>(\n name: string,\n original: UseQueryResult<D, E>\n) \n function refactorQueryRe... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17292277/"
] |
74,482,208 | <p>I want to delete the angular mat table selected row, can you help with that?</p>
<p>Delete the row using a button placed outside of the table instead of using a delete button on each row of the table.</p>
<p><a href="https://i.stack.imgur.com/84bPI.png" rel="nofollow noreferrer">enter image description here</a></p>
| [
{
"answer_id": 74520223,
"author": "kaan_a",
"author_id": 1788771,
"author_profile": "https://Stackoverflow.com/users/1788771",
"pm_score": 0,
"selected": false,
"text": "function refactorQueryResult<D, E>(\n name: string,\n original: UseQueryResult<D, E>\n) \n function refactorQueryRe... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534077/"
] |
74,482,213 | <p>Suppose the following data:</p>
<pre><code>foo <- data.frame(
key=c('one', 'two', 'three'), val=c('a', 'b|c', 'd|e|f'),
stringsAsFactors = F)
</code></pre>
<p>It looks like</p>
<pre><code>> foo
key val
1 one a
2 two b|c
3 three d|e|f
</code></pre>
<p>I want output that is as follows:</p>
<p... | [
{
"answer_id": 74520223,
"author": "kaan_a",
"author_id": 1788771,
"author_profile": "https://Stackoverflow.com/users/1788771",
"pm_score": 0,
"selected": false,
"text": "function refactorQueryResult<D, E>(\n name: string,\n original: UseQueryResult<D, E>\n) \n function refactorQueryRe... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34935/"
] |
74,482,219 | <p>I'm trying to make an animation that draws an SVG as you scroll down the page.</p>
<p>I've managed to get it to work in vanilla js but having issues with react.
Each time I refresh the page it crashes.</p>
<p>I think it's due to the browser struggling to keep up to date with the most recent path length. as the error... | [
{
"answer_id": 74520223,
"author": "kaan_a",
"author_id": 1788771,
"author_profile": "https://Stackoverflow.com/users/1788771",
"pm_score": 0,
"selected": false,
"text": "function refactorQueryResult<D, E>(\n name: string,\n original: UseQueryResult<D, E>\n) \n function refactorQueryRe... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18624593/"
] |
74,482,251 | <pre><code>public class Test12CompressString {
public static String getCompressedString(String str) {
String newString = "";
int count = 1;
int len = str.length()-1;
for (int i = 0; i <= len ; i++) {
if(i != len) {
System.out.println(i);
... | [
{
"answer_id": 74520223,
"author": "kaan_a",
"author_id": 1788771,
"author_profile": "https://Stackoverflow.com/users/1788771",
"pm_score": 0,
"selected": false,
"text": "function refactorQueryResult<D, E>(\n name: string,\n original: UseQueryResult<D, E>\n) \n function refactorQueryRe... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20096129/"
] |
74,482,257 | <p>I recognized some unwanted and unintuitive behavior with spring-batch and chunk based reader/processor/writer setup where the item writer is called more often than I want.</p>
<p><strong>I would like to have a setup in which on any exception the writer will not be called again.</strong></p>
<p>Please have a look at ... | [
{
"answer_id": 74520223,
"author": "kaan_a",
"author_id": 1788771,
"author_profile": "https://Stackoverflow.com/users/1788771",
"pm_score": 0,
"selected": false,
"text": "function refactorQueryResult<D, E>(\n name: string,\n original: UseQueryResult<D, E>\n) \n function refactorQueryRe... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482257",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1474426/"
] |
74,482,346 | <p>I need help with the following. My input dataset is as follows: <a href="https://i.stack.imgur.com/cuBPf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cuBPf.png" alt="enter image description here" /></a></p>
<p>If one of the values in the QC column is a FAIL, all of the values in the last column... | [
{
"answer_id": 74483038,
"author": "Richard",
"author_id": 1249962,
"author_profile": "https://Stackoverflow.com/users/1249962",
"pm_score": 1,
"selected": true,
"text": "FAIL REPEAT data have;\n id+1;\n input value qc $ @@; \n datalines;\n. FAIL 1 PASS 0 PASS 1 PASS . FAIL\n;\n\n%l... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534059/"
] |
74,482,389 | <p>I'm making a web app with react and in one of my functions I fetch some data from the backend and then I show it to the user by changing the value of the textarea. The problem is that I want the textarea not to be edited when the user presses a button to fetch the data from the backend but then if I click the textar... | [
{
"answer_id": 74482447,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 2,
"selected": false,
"text": "contenteditable div readonly disabled function onWrite() {\n // do stuff\n document.getElementById(\"text\").remove... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19420592/"
] |
74,482,392 | <p>I am using Python 3.9.13. I installed scikit-learn from the terminal:
<code>pip install scikit-learn</code></p>
<p>Then I tried to download the mnist dataset using <code>fetch_openml</code>:</p>
<pre><code>from sklearn.datasets import fetch_openml
raw_data = fetch_openml('mnist_784')
</code></pre>
<p>That gave me a ... | [
{
"answer_id": 74482447,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 2,
"selected": false,
"text": "contenteditable div readonly disabled function onWrite() {\n // do stuff\n document.getElementById(\"text\").remove... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482392",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19422169/"
] |
74,482,413 | <p><a href="https://www.imagemagick.org/Usage/basics/#duplicate" rel="nofollow noreferrer">-duplicate</a></p>
<pre><code>convert img*.png -duplicate 3 out.gif
</code></pre>
<p>makes</p>
<pre><code>0 1 2 2 2 2
</code></pre>
<p>where <code>0</code> is <code>img0.png</code>, and <code>1</code> is <code>img1.png</code>, et... | [
{
"answer_id": 74482775,
"author": "Mark Setchell",
"author_id": 2836621,
"author_profile": "https://Stackoverflow.com/users/2836621",
"pm_score": 2,
"selected": false,
"text": "convert img0.png -duplicate 3 img1.png img2.png -duplicate 3 ...\n 0 0 0 0 1 2 2 2 2\n"
},
{
"answer_i... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10133797/"
] |
74,482,438 | <p>From below log we can see <em><strong>rejected value</strong></em> is display user data(example: User PII data with some special characters)</p>
<p><code>[Field error in object 'Customer' on field 'FirstName': rejected value [robert% steve];</code></p>
<p>So we tried to use <strong>@ControllerAdvice</strong>, <stron... | [
{
"answer_id": 74515790,
"author": "Mor Blau",
"author_id": 5599966,
"author_profile": "https://Stackoverflow.com/users/5599966",
"pm_score": 2,
"selected": false,
"text": "@Documented\n@Constraint(validatedBy = MyValidator.class) \n@Target( { ElementType.METHOD, ElementType.FIELD }) // ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/668970/"
] |
74,482,449 | <p>Why aren't the top, left, and right edges of the red <code>p</code> element's border not directly aligned with the top, left, and right edges of the viewport?</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... | [
{
"answer_id": 74482461,
"author": "18jad",
"author_id": 15927691,
"author_profile": "https://Stackoverflow.com/users/15927691",
"pm_score": -1,
"selected": false,
"text": "* {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n"
},
{
"answer_id": 74482464,
"author":... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8386132/"
] |
74,482,457 | <p>thats my function:</p>
<pre><code>import pandas as pd
shopping_list = pd.DataFrame()
shopping_list = shopping_list.assign(Order=0, Type=0, Price=0, Quantity=0)
def add_item(order: str, type_transaction: str, price: float, quantity: int, shopping_list=shopping_list):
new_item_data = pd.DataFrame({"Order&... | [
{
"answer_id": 74482461,
"author": "18jad",
"author_id": 15927691,
"author_profile": "https://Stackoverflow.com/users/15927691",
"pm_score": -1,
"selected": false,
"text": "* {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n"
},
{
"answer_id": 74482464,
"author":... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19123282/"
] |
74,482,465 | <p>I am trying to use the raster package in R but since I bought a new computer and have the latest version of R on macOS it mentions certain packages are not available for this version of R.</p>
<p>I tried downloading R directly on R studio and that gave me errors.</p>
<p>Next I tried installing directly from GitHUB u... | [
{
"answer_id": 74482461,
"author": "18jad",
"author_id": 15927691,
"author_profile": "https://Stackoverflow.com/users/15927691",
"pm_score": -1,
"selected": false,
"text": "* {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n"
},
{
"answer_id": 74482464,
"author":... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13576833/"
] |
74,482,501 | <p>Is there anyway that I can override a directive like: src/Schema/Directives/WhereDirective.php for instance this doesn't support some methods on my custom builder, I know I can make another directive and extend this like @myWhere but that's dirty, would be nice to be able to override the @where itself.</p>
<p>I've s... | [
{
"answer_id": 74482461,
"author": "18jad",
"author_id": 15927691,
"author_profile": "https://Stackoverflow.com/users/15927691",
"pm_score": -1,
"selected": false,
"text": "* {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n"
},
{
"answer_id": 74482464,
"author":... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482501",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10268067/"
] |
74,482,502 | <p>I can do it in only O(k) time can someone be that kind to help me. I can not use build in functions.</p>
<pre><code>def potnr(a, b):
rez = 1
while b>0:
if b%2:
rez = rez * a
b = b // 2
a = a * a
return rez
def liczba(n, m):
k = 1
while potnr(n, k)... | [
{
"answer_id": 74482615,
"author": "QWERTYL",
"author_id": 11777402,
"author_profile": "https://Stackoverflow.com/users/11777402",
"pm_score": 2,
"selected": false,
"text": "n^k >= m k >= log m base n log m base n = log m / log n from math import log, ceil\ndef smallest_k(n, m):\n ret... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534220/"
] |
74,482,505 | <p>I am trying to create an input function that returns a value for the corresponding first and last name.
For this example i'd like to be able to enter "Emily" and "Bell" and return "attempts: 3"</p>
<p>Heres my code so far:</p>
<pre><code>import pandas as pd
import numpy as np
data = {
... | [
{
"answer_id": 74482615,
"author": "QWERTYL",
"author_id": 11777402,
"author_profile": "https://Stackoverflow.com/users/11777402",
"pm_score": 2,
"selected": false,
"text": "n^k >= m k >= log m base n log m base n = log m / log n from math import log, ceil\ndef smallest_k(n, m):\n ret... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20526246/"
] |
74,482,518 | <p>I apologize if there are errors in my code or anything like that, I have been searching for a solution, and have not found anything.</p>
<p>I am trying to use a /logout route to clear a cookie with res.clearCookie(). My understanding is that in order for the cookie to be cleared, all the options passed to res.clearC... | [
{
"answer_id": 74482615,
"author": "QWERTYL",
"author_id": 11777402,
"author_profile": "https://Stackoverflow.com/users/11777402",
"pm_score": 2,
"selected": false,
"text": "n^k >= m k >= log m base n log m base n = log m / log n from math import log, ceil\ndef smallest_k(n, m):\n ret... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534226/"
] |
74,482,520 | <p>So I'm having an issue getting Server Side Events working with PHP. I've tried various different tutorials online that utilise an infinite while loop but all of my attempts end up in a 500 error after a couple of minutes, instead of the data being sent.</p>
<p>For my application I need the script to keep running in ... | [
{
"answer_id": 74482615,
"author": "QWERTYL",
"author_id": 11777402,
"author_profile": "https://Stackoverflow.com/users/11777402",
"pm_score": 2,
"selected": false,
"text": "n^k >= m k >= log m base n log m base n = log m / log n from math import log, ceil\ndef smallest_k(n, m):\n ret... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1376648/"
] |
74,482,542 | <p>I am using the code snippet below from <a href="https://learn.microsoft.com/en-us/xamarin/essentials/email?context=xamarin%2Fxamarin-forms&tabs=ios" rel="nofollow noreferrer">here</a> and getting '+' signs instead of spaces in my Outlook email app. All other text is correct. I do not think I am doing anything ... | [
{
"answer_id": 74528405,
"author": "Jabbar",
"author_id": 16930239,
"author_profile": "https://Stackoverflow.com/users/16930239",
"pm_score": 0,
"selected": false,
"text": "%20"
}
] | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/303631/"
] |
74,482,600 | <p>I have a query with multiple joins that is being used to extract data from multiple tables.
As part of the select I have multiple case statements.
I a stuck with one of them. I need to add one condition where I get only one row each for Chris and John with flag 'Y', if they have PCT as 100 and the '0' or 'NULL' PCT ... | [
{
"answer_id": 74528405,
"author": "Jabbar",
"author_id": 16930239,
"author_profile": "https://Stackoverflow.com/users/16930239",
"pm_score": 0,
"selected": false,
"text": "%20"
}
] | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482600",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16399158/"
] |
74,482,601 | <p>So i want to display the filename and the size of the file in MB using the "du" command in my bash script but it outputs the filepath for the file</p>
<p>I have used the command:</p>
<pre><code>du -s -BM /home/user/test/test_file_check
</code></pre>
<p>But my output is:</p>
<pre><code>0M /home/user/te... | [
{
"answer_id": 74482646,
"author": "markp-fuso",
"author_id": 7366100,
"author_profile": "https://Stackoverflow.com/users/7366100",
"pm_score": 0,
"selected": false,
"text": "sed du -s -BM /home/user/test/test_file_check | sed 's|/.*/||'\n sed /.*/ || / | sed du $ echo '0M /home/use... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534276/"
] |
74,482,602 | <p>I am getting NaN for non mathcing pattern w.r.t to split in pandas.</p>
<p>Source Data:</p>
<pre><code>Attr
[ABC].[xyz]
CDE
</code></pre>
<p>Code Used:</p>
<pre><code>df['Extr_Attr'] = np.where((df.Attr.str.contains('.')),df['Attr'].str.split('.',1).str[1], df.Attr)
This returns NaN for data that does... | [
{
"answer_id": 74482679,
"author": "Umar.H",
"author_id": 9375102,
"author_profile": "https://Stackoverflow.com/users/9375102",
"pm_score": 0,
"selected": false,
"text": "str.contains .split .fillna df['Extr_Attr'] = df['Attr'].str.split('.').str[1].fillna(df['Attr'])\n\n Attr E... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482602",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18412253/"
] |
74,482,607 | <p>I need to output the property of the Variable DisplayVersion which contains the version of the application in the result how do I do that in foreach loop?</p>
<pre><code>$programList = @(
'SAP'
'Tanium'
'Sentinel'
'DisplayLink'
'Cisco AnyConnect'
'Adobe Acrobat Reader'
'Google'
'Lotus... | [
{
"answer_id": 74482849,
"author": "Santiago Squarzon",
"author_id": 15339544,
"author_profile": "https://Stackoverflow.com/users/15339544",
"pm_score": 2,
"selected": false,
"text": "Group-Object -AsHashtable class $programList = @(\n 'SAP'\n 'Tanium'\n 'Sentinel'\n 'Display... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7363126/"
] |
74,482,626 | <p>I have data for all the time I've spent coding. This data is represented as a dictionary where the key is the date and the value is a list of tuples containing the time I started a coding session and how long the coding session lasted.</p>
<p>I have successfully plotted this on a <a href="https://matplotlib.org/stab... | [
{
"answer_id": 74482849,
"author": "Santiago Squarzon",
"author_id": 15339544,
"author_profile": "https://Stackoverflow.com/users/15339544",
"pm_score": 2,
"selected": false,
"text": "Group-Object -AsHashtable class $programList = @(\n 'SAP'\n 'Tanium'\n 'Sentinel'\n 'Display... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17168710/"
] |
74,482,635 | <p>In my MERN app I am trying to take a screenshot of a portion of the webpage to send it to the database with other info that is submitted such as submitter and description. The problem is, the image is only saved after I ctrl+S in my editor, not when I click the button or when I refresh the page. How can I fix this? ... | [
{
"answer_id": 74482849,
"author": "Santiago Squarzon",
"author_id": 15339544,
"author_profile": "https://Stackoverflow.com/users/15339544",
"pm_score": 2,
"selected": false,
"text": "Group-Object -AsHashtable class $programList = @(\n 'SAP'\n 'Tanium'\n 'Sentinel'\n 'Display... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14551989/"
] |
74,482,650 | <p>I made a project from scratch just with the schema.sql and the data.sql just to try the schema.sql and the data.sql:</p>
<ul>
<li><a href="https://github.com/rmmcosta/TestSchema" rel="nofollow noreferrer">https://github.com/rmmcosta/TestSchema</a>
Everything works fine. The table inside schema.sql is created in a My... | [
{
"answer_id": 74482849,
"author": "Santiago Squarzon",
"author_id": 15339544,
"author_profile": "https://Stackoverflow.com/users/15339544",
"pm_score": 2,
"selected": false,
"text": "Group-Object -AsHashtable class $programList = @(\n 'SAP'\n 'Tanium'\n 'Sentinel'\n 'Display... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14344214/"
] |
74,482,675 | <p>I'm trying to generate 3 new calculated fields in Google Data Studio / Looker Studio using the <code>REGEXP_EXTRACT</code> function.</p>
<p>Here is the sample data that I have on a Google sheet:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Sample data</th>
</tr>
</thead>
<tbody>
<tr>
... | [
{
"answer_id": 74483482,
"author": "Wiktor Stribiżew",
"author_id": 3832970,
"author_profile": "https://Stackoverflow.com/users/3832970",
"pm_score": 2,
"selected": true,
"text": " > (.*?)(?: > |$)\n > .*? > (.*?)(?: > |$)\n (?: > |$) >"
},
{
"answer_id": 74488487,
"author":... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534149/"
] |
74,482,685 | <p>I am having trouble centering a row of 3 social media icons in the middle of my popup modal and have it actually be responsive.</p>
<p>My failed method is adjusting the icons' "left" property by individual percentages..</p>
<p>Every time I think I have it centered, I test it out on a different screen size ... | [
{
"answer_id": 74483482,
"author": "Wiktor Stribiżew",
"author_id": 3832970,
"author_profile": "https://Stackoverflow.com/users/3832970",
"pm_score": 2,
"selected": true,
"text": " > (.*?)(?: > |$)\n > .*? > (.*?)(?: > |$)\n (?: > |$) >"
},
{
"answer_id": 74488487,
"author":... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19991177/"
] |
74,482,714 | <p>To illustrate the problem see this example using dplyr/tidyr, answers appreciated using any other packages:</p>
<pre><code>#data
df1 <- data.frame("SNP" = c("rs11807834", "rs3729986"),
"Symbols" = c("GRIN1,SETD1A", "MADD,STAC3,SPI1"))
#... | [
{
"answer_id": 74482789,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 2,
"selected": false,
"text": "mutate Symbols Genes df1 %>%\n mutate(Genes = Symbols) %>%\n separate_rows(Symbols)\n#> # A tibble: 5 x 3\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/680068/"
] |
74,482,745 | <p>When I try to run the following in the terminal it should ask me for username and password but nothing comes up other than the error bellow.</p>
<pre><code>npm login --registry=https://npm.pkg.github.com --scope=@Psychedelic
npm notice Log in on https://npm.pkg.github.com/
npm ERR! code ENYI
npm ERR! Web login not ... | [
{
"answer_id": 74495262,
"author": "Devv",
"author_id": 16177977,
"author_profile": "https://Stackoverflow.com/users/16177977",
"pm_score": 1,
"selected": false,
"text": ".npmrc package.json @OWNER:registry=https://npm.pkg.github.com\n//npm.pkg.github.com/:_authToken=TOKEN\n OWNER TOKEN ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482745",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19054702/"
] |
74,482,753 | <p>Is it possible to somehow export huge SVN repository and load it as a single revision into the new SVN repository?</p>
<p>I already spent quite some time for research and couldn't really find a clear answer.</p>
<p>Examples always help so let's assume that we have a repository with 1000000 revisions.
Now I would lik... | [
{
"answer_id": 74482928,
"author": "Lazy Badger",
"author_id": 960558,
"author_profile": "https://Stackoverflow.com/users/960558",
"pm_score": 1,
"selected": false,
"text": "--incremental --incremental"
},
{
"answer_id": 74483061,
"author": "bahrep",
"author_id": 761095,
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8960867/"
] |
74,482,761 | <p>I'm using useHistory and useLocation on two components. When passing data on history.push with a string "test" state will be "test". However, if I pass "test test" state becomes undefined. Also, useEffect runs twice which I cannot understand why. I have it pointing to search.</p>
<p><st... | [
{
"answer_id": 74483057,
"author": "Lakruwan Pathirage",
"author_id": 12383492,
"author_profile": "https://Stackoverflow.com/users/12383492",
"pm_score": 1,
"selected": false,
"text": "import React, { useState, useEffect } from \"react\";\nimport { useHistory } from \"react-router-dom\";... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11318523/"
] |
74,482,768 | <p>I want to add dynamic fields to my table via button.</p>
<p>since the for loop depends on the model's count, when I add a new , I need to add another object to the list.</p>
<pre><code>
<button type="button" onclick="addBtn()">Add</button>
<table>
<tr>
<th... | [
{
"answer_id": 74483057,
"author": "Lakruwan Pathirage",
"author_id": 12383492,
"author_profile": "https://Stackoverflow.com/users/12383492",
"pm_score": 1,
"selected": false,
"text": "import React, { useState, useEffect } from \"react\";\nimport { useHistory } from \"react-router-dom\";... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20235631/"
] |
74,482,774 | <p>I'm trying to make Autodesk forge web app as presenter web app & viewer web app for VR navigation. I followed the tutorial 'autodesk forge Share Viewer staste with websockets'. (And I learned javascript a little.)</p>
<p>Before, the last line was <code> app.listen(PORT, () => { console.log(`Server listening o... | [
{
"answer_id": 74482809,
"author": "jfriend00",
"author_id": 816620,
"author_profile": "https://Stackoverflow.com/users/816620",
"pm_score": 2,
"selected": true,
"text": "server io const server = app.listen(PORT, () => {\n console.log(`Server listening on port ${PORT}`);\n});\n\nconst... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15042045/"
] |
74,482,776 | <p>I created <code>myBatis</code> mapper based on annotations as this <em>changed code</em> example:</p>
<pre><code>import org.apache.ibatis.annotations.*;
import java.util.List;
@Mapper
public interface MyTableMapper {
@Insert("INSERT INTO MY_TABLE(" +
"Column_1, " +
... | [
{
"answer_id": 74482809,
"author": "jfriend00",
"author_id": 816620,
"author_profile": "https://Stackoverflow.com/users/816620",
"pm_score": 2,
"selected": true,
"text": "server io const server = app.listen(PORT, () => {\n console.log(`Server listening on port ${PORT}`);\n});\n\nconst... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1410223/"
] |
74,482,853 | <p>I'm trying to read a csv file into a multidimensional list with 52 rows and 7 columns. Currently it's only displaying me the last line as 52 rows of the csv file.</p>
<p>I am pretty sure there is something wrong in my readfile function but I couldn't figure it out where I'm making the mistake.</p>
<p>Here is my code... | [
{
"answer_id": 74482925,
"author": "Khaled DELLAL",
"author_id": 15852600,
"author_profile": "https://Stackoverflow.com/users/15852600",
"pm_score": 0,
"selected": false,
"text": " for line in file:\n data = line.split(\",\")\n data=[]\n for line in file:\n data.append(line.split(... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4174508/"
] |
74,482,860 | <p>I have a ton of modals on a page and I'm using this script to link the ID of an HTML button to the ID of the modal and it's close button:</p>
<pre><code>var target = document.getElementById('show1');
var currentOpacity = 0;
$(document).ready(function () {
$("#hide1").click(function () {
$("#deta... | [
{
"answer_id": 74483152,
"author": "Sushanth --",
"author_id": 941272,
"author_profile": "https://Stackoverflow.com/users/941272",
"pm_score": 1,
"selected": false,
"text": "section ids classes ids classes show1 hide1 details1 var target = document.getElementById('show1');\nvar currentOp... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534486/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.