qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,560,073 | <p>I have a large dataset where one column contains free text. I wish to create a new column based on whether this free text contains a regular expression.</p>
<p>Eg:
I want to know whether this column contains the text GnRH, or those letters in any case, and create a new column with a flag to indicate if this is true ... | [
{
"answer_id": 74560441,
"author": "PeterClemmensen",
"author_id": 4044936,
"author_profile": "https://Stackoverflow.com/users/4044936",
"pm_score": 0,
"selected": false,
"text": "data have;\ninput text $20.;\ndatalines;\nNot in this line \nIn GnRH this line \nNot here either \nThis o... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560073",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19414769/"
] |
74,560,075 | <p>consider this method inside a class the return value of this method is used to calculate a value in <code>compute()</code> so the compute method shouldn't run if return value of <code>BS()</code> "BM" is <code>NaN</code>
so I added <code>if(this.BS()== null) return</code>, however when I don't enter a weig... | [
{
"answer_id": 74560441,
"author": "PeterClemmensen",
"author_id": 4044936,
"author_profile": "https://Stackoverflow.com/users/4044936",
"pm_score": 0,
"selected": false,
"text": "data have;\ninput text $20.;\ndatalines;\nNot in this line \nIn GnRH this line \nNot here either \nThis o... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19582350/"
] |
74,560,088 | <p>In Cython one can use exact-width integral types by importing them from <code>stdint</code>, e.g.</p>
<pre><code>from libc.stdint cimport int32_t
</code></pre>
<p>Looking through <a href="https://github.com/cython/cython/blob/master/Cython/Includes/libc/stdint.pxd" rel="nofollow noreferrer">stdint.pxd</a>, we see th... | [
{
"answer_id": 74560162,
"author": "DevSolar",
"author_id": 60281,
"author_profile": "https://Stackoverflow.com/users/60281",
"pm_score": 0,
"selected": false,
"text": "signed int int32_t typedef CHAR_BIT signed int"
},
{
"answer_id": 74561167,
"author": "DavidW",
"author... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4056181/"
] |
74,560,132 | <p>I'm trying to create a multi-stage Dockerfile</p>
<pre><code>FROM openjdk:11.0.7-jre-slim-buster AS build
... additional commands
RUN mkdir -p target/exploded && (cd target/exploded; jar -xf ../*.jar)
</code></pre>
<p>But it fails when trying to explode the .jar file, it is present under the target direct... | [
{
"answer_id": 74560162,
"author": "DevSolar",
"author_id": 60281,
"author_profile": "https://Stackoverflow.com/users/60281",
"pm_score": 0,
"selected": false,
"text": "signed int int32_t typedef CHAR_BIT signed int"
},
{
"answer_id": 74561167,
"author": "DavidW",
"author... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1949114/"
] |
74,560,133 | <p>In my SPA, I have a function that needs to:</p>
<ol>
<li>Create an object (e.g. a "tag" for a user)</li>
<li>Post it to our API</li>
</ol>
<pre class="lang-js prettyprint-override"><code>type UserId = string;
type User = {id: UserId};
type TagType = "NEED_HELP" | "NEED_STORAGE"
type Ta... | [
{
"answer_id": 74560162,
"author": "DevSolar",
"author_id": 60281,
"author_profile": "https://Stackoverflow.com/users/60281",
"pm_score": 0,
"selected": false,
"text": "signed int int32_t typedef CHAR_BIT signed int"
},
{
"answer_id": 74561167,
"author": "DavidW",
"author... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2008527/"
] |
74,560,136 | <p>The following code is used as an offline monitor within a RN app - its basically used to display a warning if connection drops.</p>
<pre><code> export default function InternetCheck() {
const [isConnected, setIsConnected] = useState(false);
const [mounted, setMounted] = useState(false);
useEffect(() => {
... | [
{
"answer_id": 74560212,
"author": "jsejcksn",
"author_id": 438273,
"author_profile": "https://Stackoverflow.com/users/438273",
"pm_score": 3,
"selected": true,
"text": "NetInfo export default function InternetCheck () {\n const [isConnected, setIsConnected] = useState(false);\n const ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/385563/"
] |
74,560,166 | <p>In console.log I can see the array is not empty,as well it's shown on the image below. However, when I send the data to the endpoint the array is 0. I notice the other element MaterialId has value, so must be some problem with the array only. The data is sent through axios.</p>
<p>Any help is appreciated.</p>
<p>C# ... | [
{
"answer_id": 74560310,
"author": "Michał Zych",
"author_id": 7449914,
"author_profile": "https://Stackoverflow.com/users/7449914",
"pm_score": 1,
"selected": false,
"text": "public Array[] Image { get; set; } public byte[] Image { get; set; }"
},
{
"answer_id": 74561081,
"a... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20338580/"
] |
74,560,198 | <p>I am trying for an hour's and not getting the satisfied output.</p>
<p>Below in the code, the first variable <strong>db</strong> fetching the value from database. And, the second variable <strong>api</strong> sending the value into api request.</p>
<p>When I comparing these two variables, getting the <strong>not equ... | [
{
"answer_id": 74560310,
"author": "Michał Zych",
"author_id": 7449914,
"author_profile": "https://Stackoverflow.com/users/7449914",
"pm_score": 1,
"selected": false,
"text": "public Array[] Image { get; set; } public byte[] Image { get; set; }"
},
{
"answer_id": 74561081,
"a... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9342432/"
] |
74,560,208 | <p>i am a newbie to WPF mvvm, i created a treeview and i want to set isSelected value of a specific treeviewitem in this tree (for example, item with "19-ASDFDSSD") but i dont know how to do it. Can you help me? Any help will be appreciated.</p>
<p><a href="https://i.stack.imgur.com/Le5xo.png" rel="nofollow n... | [
{
"answer_id": 74560310,
"author": "Michał Zych",
"author_id": 7449914,
"author_profile": "https://Stackoverflow.com/users/7449914",
"pm_score": 1,
"selected": false,
"text": "public Array[] Image { get; set; } public byte[] Image { get; set; }"
},
{
"answer_id": 74561081,
"a... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20389096/"
] |
74,560,217 | <p>In an application where I make a base64 encoded Vcard , I have the problem that I can't encode special characters like in the string "Zone d'activité" , which should become "Wm9uZSBkJ2FjdGl2aXTDqQ==' (encoded by using <a href="https://base64.guru/converter/encode" rel="nofollow noreferrer">https://bas... | [
{
"answer_id": 74560310,
"author": "Michał Zych",
"author_id": 7449914,
"author_profile": "https://Stackoverflow.com/users/7449914",
"pm_score": 1,
"selected": false,
"text": "public Array[] Image { get; set; } public byte[] Image { get; set; }"
},
{
"answer_id": 74561081,
"a... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1302906/"
] |
74,560,234 | <p>I am finding it difficult to understand why my code is returning my memory address. I have tried to use <code>__str__</code> and <code>__repr__</code> respectively but maybe I am unfamiliar with how these work exactly.</p>
<pre><code>import random
class Card:
def __init__(self, suit, value):
self.suit =... | [
{
"answer_id": 74560310,
"author": "Michał Zych",
"author_id": 7449914,
"author_profile": "https://Stackoverflow.com/users/7449914",
"pm_score": 1,
"selected": false,
"text": "public Array[] Image { get; set; } public byte[] Image { get; set; }"
},
{
"answer_id": 74561081,
"a... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12532178/"
] |
74,560,237 | <p>Here is the link</p>
<p><a href="https://github.com/noel020395/projectno1" rel="nofollow noreferrer">https://github.com/noel020395/projectno1</a>
<a href="https://i.stack.imgur.com/kuEVh.jpg" rel="nofollow noreferrer">enter image description here</a></p>
<p>I m stuck here, unable to fix the layout issue. Any one cou... | [
{
"answer_id": 74560531,
"author": "Coopero",
"author_id": 2421346,
"author_profile": "https://Stackoverflow.com/users/2421346",
"pm_score": 0,
"selected": false,
"text": "max-width margin:auto section {\n max-width: 1280px;\n margin: auto;\n}\n"
},
{
"answer_id": 74560657,... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560237",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20318276/"
] |
74,560,242 | <p>I have a BoxComponent that has only one field, an array of numbers. The selector for this Component is <code>app-box</code></p>
<p><code>box.component.html</code></p>
<pre><code><p>
<span *ngFor="let num of cards">Number is {{num}}</span>
</p>
</code></pre>
<p><code>box.componen... | [
{
"answer_id": 74560536,
"author": "Vishnu Prabhu",
"author_id": 20587586,
"author_profile": "https://Stackoverflow.com/users/20587586",
"pm_score": 0,
"selected": false,
"text": "export class Card {\n suit: number | undefined;\n rank: number | undefined;\n\n constructor(suit: number,... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18494246/"
] |
74,560,269 | <p>I'm looking for vocabulary or for a library that supports the following behaviour:</p>
<p>Imagine a Javascript object like the following one:</p>
<pre><code>const foo = {
id: 1,
name: 'Some String value',
supplier: async () => {
return 'Some supplier name'
},
nested: async () => {
return [
... | [
{
"answer_id": 74606482,
"author": "Peter Seliger",
"author_id": 2627243,
"author_profile": "https://Stackoverflow.com/users/2627243",
"pm_score": 1,
"selected": false,
"text": "function isAsynFunction(value) {\n return (/^\\[object\\s+AsyncFunction\\]$/)\n .test(Object.prototype.toS... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4547701/"
] |
74,560,276 | <p>I need to combine two arrays of objects:</p>
<pre><code>const local: [
{id: 1, balance: 2200, ref: 'A'},
{id: 2, balance: 2100, ref: 'C'}
]
const remote: [
{id: 1, balance: 3300, ref: 'B'},
]
</code></pre>
<p>I need to merge these arrays, such any two objects with the same id are merged - keeping the sam... | [
{
"answer_id": 74560422,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 2,
"selected": true,
"text": "if(remoteArray.some(remoteObj => remoteObj.id === localObj.id))\n Array.map() Array.find() const local = [\n {id... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7217840/"
] |
74,560,307 | <p>I have a request body like this for post method.</p>
<pre><code>{
"emp_id" : "1234"
}
</code></pre>
<p>Controller is like this.</p>
<pre><code>@PostMapping("/employees)
public ResponseEntity<EmployeeResponse> getMatchingValues(@RequestBody HashMap<String,String> params){
}
</code... | [
{
"answer_id": 74560764,
"author": "Abirami Balasubramaniyan",
"author_id": 5755531,
"author_profile": "https://Stackoverflow.com/users/5755531",
"pm_score": 0,
"selected": false,
"text": "@PostMapping(\"/employees)\npublic ResponseEntity<EmployeeResponse> getMatchingValues(@RequestBody ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18109095/"
] |
74,560,320 | <h2>Approach I</h2>
<p>While trying to get a hierarchical tree of all the xpaths in a website (<a href="https://startpagina.nl" rel="nofollow noreferrer">https://startpagina.nl</a>) using Python, I first tried to get the xpath for the branch: <code>/html/body</code> using:</p>
<pre class="lang-py prettyprint-override">... | [
{
"answer_id": 74560523,
"author": "Prophet",
"author_id": 3485434,
"author_profile": "https://Stackoverflow.com/users/3485434",
"pm_score": 1,
"selected": false,
"text": "/html/body/ /html/body /html/body/div[6] /html/body/div[6]/* //* driver.find_elements_by_xpath"
},
{
"answer... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7437143/"
] |
74,560,321 | <p>I want to make a <strong>AlertDialog</strong> which is included a slider (especially <code>SfRangeSlider()</code>).</p>
<p>My AlertDialog Image:</p>
<p><a href="https://i.stack.imgur.com/uoNFC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uoNFC.png" alt="enter image description here" /></a></p>
... | [
{
"answer_id": 74560473,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 2,
"selected": false,
"text": "SfRangeSlider void _showDialog() async {\n await showDialog<String>(\n context: context,\n build... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19443112/"
] |
74,560,371 | <p>I'm trying to access the values of a python dictionary, but the line is too long so it doesn't match PEP-8 rules. (I'm using flake8 linter on vscode)</p>
<p>example:</p>
<pre><code>class GoFirstSpider():
def __init__(self, flight_search_request):
self.name = 'goFirst'
-> self.date = flight_search... | [
{
"answer_id": 74560473,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 2,
"selected": false,
"text": "SfRangeSlider void _showDialog() async {\n await showDialog<String>(\n context: context,\n build... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560371",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18464138/"
] |
74,560,395 | <p>Code:</p>
<pre><code>import logging
def main(name: str) -> str:
return f"Hello {name}!"
print({name})
</code></pre>
<p>I wanna get main function output store in variable and use in outside the function. I'm new in python, I cannot see exact same example on net, Check multiple ways but not getting ... | [
{
"answer_id": 74560500,
"author": "Guf",
"author_id": 17444641,
"author_profile": "https://Stackoverflow.com/users/17444641",
"pm_score": 2,
"selected": true,
"text": "def main(name: str) -> str:\n return f\"Hello {name}!\"\n\n# You can use\nprint(main(\"world\"))\n# or\nvar = main(\... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16727671/"
] |
74,560,417 | <blockquote>
<p>Column Alignment</p>
</blockquote>
<pre><code>columnDefs: [
{ targets: [1, 2], className: "cssMyRightAlign" },
],
</code></pre>
<blockquote>
<p>CSS</p>
</blockquote>
<pre><code>.cssMyRightAlign{
text-align: right;
}
</code></pre>
<p>But its not aligning column 1 & 2 in right.</p>
<... | [
{
"answer_id": 74561629,
"author": "ruleboy21",
"author_id": 6214210,
"author_profile": "https://Stackoverflow.com/users/6214210",
"pm_score": 1,
"selected": false,
"text": ".cssMyRightAlign !important .cssMyRightAlign{\n text-align: right !important;\n}\n"
}
] | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560417",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4025652/"
] |
74,560,435 | <p>I just started python yesterday so I was trying to make this python code to make a calculator that adds, multiplies, divides, and subtracts. When I started testing the code just wasn't working even though I did similar things and to me, the code looked right this is the code:</p>
<pre><code>op =input("which ope... | [
{
"answer_id": 74560495,
"author": "rtoth",
"author_id": 20589189,
"author_profile": "https://Stackoverflow.com/users/20589189",
"pm_score": -1,
"selected": false,
"text": "op =input(\"which operation would you like to use (type m for multiply d for divide s for subtract a for addition):... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20590423/"
] |
74,560,439 | <p>I have this code snippet that uses OpenCSV:</p>
<pre><code>class Pojo {
@CsvBindByName(column="point")
Integer point;
@CsvBindByName(column="name")
String name;
}
</code></pre>
<p>And:</p>
<pre><code>class Main {
readFile(){
CsvReader reader = new Csv(.....);
... | [
{
"answer_id": 74560495,
"author": "rtoth",
"author_id": 20589189,
"author_profile": "https://Stackoverflow.com/users/20589189",
"pm_score": -1,
"selected": false,
"text": "op =input(\"which operation would you like to use (type m for multiply d for divide s for subtract a for addition):... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560439",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3070677/"
] |
74,560,448 | <p>I am trying to use different fill for <code>geom_ribbon</code> according to the x-values (For Temp = 0-20 one fill, 20-30.1 another fill and > 30.1 another fill). I am using the following code</p>
<pre><code>library(tidyverse)
bounds2 <- df %>%
mutate(ymax = pmax(Growth.rate, slope),
ymin = pmi... | [
{
"answer_id": 74560828,
"author": "George Savva",
"author_id": 12176280,
"author_profile": "https://Stackoverflow.com/users/12176280",
"pm_score": 3,
"selected": true,
"text": "approx ymin ymax Temp=30.1 cut bounds2 <- df %>% \n mutate(ymax = pmax(Growth.rate, slope),\n ymin = ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6123824/"
] |
74,560,468 | <p>My code works fine last week, then when the credentials expire, i recreate another credentials and replace the credentials, now the code doesnt work anymore and show the error<br />
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: LateInitializationError: Field 'dialogflow' has not been initia... | [
{
"answer_id": 74560828,
"author": "George Savva",
"author_id": 12176280,
"author_profile": "https://Stackoverflow.com/users/12176280",
"pm_score": 3,
"selected": true,
"text": "approx ymin ymax Temp=30.1 cut bounds2 <- df %>% \n mutate(ymax = pmax(Growth.rate, slope),\n ymin = ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20413390/"
] |
74,560,472 | <p>I've created an API with rest_framework and can receive API calls that updates the database, but I can't figure how to query the database and return any row where the field "Endtime" is NULL.</p>
<p>In the function below I'm updating the database with the received JSON-data and this fails to return any res... | [
{
"answer_id": 74560828,
"author": "George Savva",
"author_id": 12176280,
"author_profile": "https://Stackoverflow.com/users/12176280",
"pm_score": 3,
"selected": true,
"text": "approx ymin ymax Temp=30.1 cut bounds2 <- df %>% \n mutate(ymax = pmax(Growth.rate, slope),\n ymin = ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19955692/"
] |
74,560,475 | <p>I am using this code to create folders based on names mentioned in Column A, however at times this does not create folders and at times it does not create all the folders. I could not figure out the issue or if anything is missing in it.</p>
<p>I will really appreciate if any amendment could be made where if a parti... | [
{
"answer_id": 74560828,
"author": "George Savva",
"author_id": 12176280,
"author_profile": "https://Stackoverflow.com/users/12176280",
"pm_score": 3,
"selected": true,
"text": "approx ymin ymax Temp=30.1 cut bounds2 <- df %>% \n mutate(ymax = pmax(Growth.rate, slope),\n ymin = ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20141828/"
] |
74,560,491 | <p>I've been having some troubles with combining typeclasses with higher-rank types in haskell.</p>
<p>The project I'm working on is an interpreter based around an evaluation monad. I'm currently attempting to transition my central evaluation monad from a stack of transformers to a set of mtl constraints. Many of the f... | [
{
"answer_id": 74560733,
"author": "Noughtmare",
"author_id": 15207568,
"author_profile": "https://Stackoverflow.com/users/15207568",
"pm_score": 2,
"selected": false,
"text": "normSubst :: \n ( MonadReader Environment m\n , MonadError String m\n , MonadState ProgState m\n ) => (Norm... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6540935/"
] |
74,560,521 | <p>So I was tasked to produced a series of numbers based on what I input on START, STEP, and END.
For example: If I input 5 on the START, 2 on the STEP, and 13 on the end, then the output would be:</p>
<p>5, 7, 9, 11, 13</p>
<pre><code>import java.util.Scanner;
public class SeriesOfNumbers {
public static void mai... | [
{
"answer_id": 74560733,
"author": "Noughtmare",
"author_id": 15207568,
"author_profile": "https://Stackoverflow.com/users/15207568",
"pm_score": 2,
"selected": false,
"text": "normSubst :: \n ( MonadReader Environment m\n , MonadError String m\n , MonadState ProgState m\n ) => (Norm... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19907769/"
] |
74,560,522 | <p>I'm building a distributed application using ZMQ framework that needs to assure the integrity of the packages exchanged. My question is whether or not do I need to perform integrity checks on the client and server on the application layer.</p>
<p>I have implemented a checksum approach using MD5 hash in both client's... | [
{
"answer_id": 74560733,
"author": "Noughtmare",
"author_id": 15207568,
"author_profile": "https://Stackoverflow.com/users/15207568",
"pm_score": 2,
"selected": false,
"text": "normSubst :: \n ( MonadReader Environment m\n , MonadError String m\n , MonadState ProgState m\n ) => (Norm... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11494333/"
] |
74,560,534 | <p>How to select rows from table that matches where clause on two columns? I came up with below query. Please advice if there is better way with less text.</p>
<pre><code>SELECT name, number
FROM namenumber
WHERE name IN (“Car”) AND number = “1234"
UNION
SELECT name, number
FROM namenumber
WHERE name IN (&quo... | [
{
"answer_id": 74560573,
"author": "Nikita Chayka",
"author_id": 7064030,
"author_profile": "https://Stackoverflow.com/users/7064030",
"pm_score": 0,
"selected": false,
"text": " SELECT name, number FROM namenumber \n WHERE (name in (“Car”) and number = “1234\") OR \n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6623338/"
] |
74,560,547 | <p>I have a column in a DF as below</p>
<pre><code>| Column A |
| ab, bce, bc |
| bc, abcd, ab |
| ab, cd, abc |
</code></pre>
<p>and i want to create a new column that only takes the first sequence, as showed below</p>
<pre><code>| Column A | Column B |
| ab, bce, bc | ab |
| bc, abcd, a... | [
{
"answer_id": 74560629,
"author": "Orfeas Bourchas",
"author_id": 16781682,
"author_profile": "https://Stackoverflow.com/users/16781682",
"pm_score": 2,
"selected": false,
"text": "df.loc[:, 'ColumnB'] = df.ColumnA.map(lambda x: x.split(',')[0])\n"
},
{
"answer_id": 74560663,
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20590519/"
] |
74,560,557 | <p>I use Expo 46.</p>
<p>I would like to change some config in my <code>AndroidManifest</code> so I run an <code>npx expo prebuild</code> that generates an android folder without error.</p>
<p>But then my <code>eas build</code> is not working anymore (it is if I don't run <code>prebuild</code>).<br />
I get this error:... | [
{
"answer_id": 74560629,
"author": "Orfeas Bourchas",
"author_id": 16781682,
"author_profile": "https://Stackoverflow.com/users/16781682",
"pm_score": 2,
"selected": false,
"text": "df.loc[:, 'ColumnB'] = df.ColumnA.map(lambda x: x.split(',')[0])\n"
},
{
"answer_id": 74560663,
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3581976/"
] |
74,560,561 | <p>I have one query, something like this:</p>
<pre><code> select col1,col2 from (
with RESULTSET as (
select * from t1 where rank_val=1
)
select T1.col1, T1.col2
FROM RESULTSET T1, t88a, t88b
where T1.col1=T88a.col1 and T88a.col2 = T1.col2
AND T1.col2=T88b.col2 and ... | [
{
"answer_id": 74560629,
"author": "Orfeas Bourchas",
"author_id": 16781682,
"author_profile": "https://Stackoverflow.com/users/16781682",
"pm_score": 2,
"selected": false,
"text": "df.loc[:, 'ColumnB'] = df.ColumnA.map(lambda x: x.split(',')[0])\n"
},
{
"answer_id": 74560663,
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1784675/"
] |
74,560,565 | <p>I`ve got code that shows all of the placements for a user. Is there a way to narrow this down to only show placements that are in the future? I've tried to do this using where and carbon::now to no avail.</p>
<p>My current code to show all of the placements :</p>
<pre><code>$placements = Auth::user()->placementsA... | [
{
"answer_id": 74560728,
"author": "Lokendra Singh Panwar",
"author_id": 5602878,
"author_profile": "https://Stackoverflow.com/users/5602878",
"pm_score": -1,
"selected": false,
"text": "name date column date PHP function"
},
{
"answer_id": 74561175,
"author": "Jac Phillipps"... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17732797/"
] |
74,560,578 | <p>I have two list of the same type of object (X)</p>
<p>X has this properties:</p>
<ul>
<li>Id: int</li>
<li>Name: string</li>
<li>Month: string</li>
<li>ISSPA: string</li>
</ul>
<p>I want to get the items which has the same value in the properties Month and ISSPA.
For example:</p>
<p>List 1</p>
<pre><code>Item 1
{
... | [
{
"answer_id": 74562145,
"author": "Marvin Klein",
"author_id": 13440841,
"author_profile": "https://Stackoverflow.com/users/13440841",
"pm_score": 0,
"selected": false,
"text": "var filteredList = yourList.Where(x => x.Month == \"September\" && x.ISSPA == \"1234\").ToList();\n"
},
{... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11223567/"
] |
74,560,585 | <p>Looking for a linq query solve this problem.
Here are two lists : PartOrders and ServiceOrders
there is orderNumber for example 1001X and createdDate on same day for each partOrders and might be many items having same orderNumber so i would sort this list to get only one orderNumber , createdDate and then a list of ... | [
{
"answer_id": 74562145,
"author": "Marvin Klein",
"author_id": 13440841,
"author_profile": "https://Stackoverflow.com/users/13440841",
"pm_score": 0,
"selected": false,
"text": "var filteredList = yourList.Where(x => x.Month == \"September\" && x.ISSPA == \"1234\").ToList();\n"
},
{... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20164392/"
] |
74,560,589 | <p>I have the folder structure thus</p>
<pre><code>project/
----A/
----B/
-1.txt
-2.txt
-.gitignore [ content is: (Line1) * (Line2) !1.txt ]
-.gitignore [ content is: (Line1) /B/* ]
-.gitignore [ content is: (Line1) /A/*
.git/
-.gi... | [
{
"answer_id": 74562145,
"author": "Marvin Klein",
"author_id": 13440841,
"author_profile": "https://Stackoverflow.com/users/13440841",
"pm_score": 0,
"selected": false,
"text": "var filteredList = yourList.Where(x => x.Month == \"September\" && x.ISSPA == \"1234\").ToList();\n"
},
{... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/492307/"
] |
74,560,627 | <p>I got 2 columns grid with following layout:</p>
<p><a href="https://i.stack.imgur.com/4TvtK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4TvtK.png" alt="enter image description here" /></a></p>
<p>My issue is that when I use images inside the right column (1 image inside each box)..Images overf... | [
{
"answer_id": 74562145,
"author": "Marvin Klein",
"author_id": 13440841,
"author_profile": "https://Stackoverflow.com/users/13440841",
"pm_score": 0,
"selected": false,
"text": "var filteredList = yourList.Where(x => x.Month == \"September\" && x.ISSPA == \"1234\").ToList();\n"
},
{... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560627",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14061728/"
] |
74,560,633 | <p>I am trying to get good at Monads and have written the following Monads and functions in which I use the <code>>></code> (in the <code>apply</code>-function) although it is not declared in the Monad itself. How come this is possible to compile, as I understand <a href="http://learnyouahaskell.com/a-fistful-of-... | [
{
"answer_id": 74560947,
"author": "Mark Seemann",
"author_id": 126014,
"author_profile": "https://Stackoverflow.com/users/126014",
"pm_score": 4,
"selected": true,
"text": ">> >>= >> return >> Applicative pure class Applicative m => Monad m where\n (>>=) :: forall a b. m a -> (... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18049138/"
] |
74,560,644 | <p>I have a df = desc with a variable "value" that holds long text and would like to remove every word in that variable that ends with ".htm" . I looked for a long time around here and regex expressions and cannot find a solution.</p>
<p>Can anyone help? Thank you so much!</p>
<p>I tried things like... | [
{
"answer_id": 74560947,
"author": "Mark Seemann",
"author_id": 126014,
"author_profile": "https://Stackoverflow.com/users/126014",
"pm_score": 4,
"selected": true,
"text": ">> >>= >> return >> Applicative pure class Applicative m => Monad m where\n (>>=) :: forall a b. m a -> (... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20566781/"
] |
74,560,667 | <p>Hello StackOverflow People! I have some trouble here, I do some research but I still can't make it. I have two columns that are substracted from a Dataset, the columns are "# Externo" and "Nro Envio ML".</p>
<p>I want that the result of the code gives me only the numbers that exist in "# Ext... | [
{
"answer_id": 74561506,
"author": "Chrysophylaxs",
"author_id": 9499196,
"author_profile": "https://Stackoverflow.com/users/9499196",
"pm_score": 2,
"selected": false,
"text": "set import pandas as pd\n\ndf = pd.DataFrame({\n \"# Externo\": [3, 5, 4, 2, 1, 7, 8],\n \"Nro Envio ML\... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20533290/"
] |
74,560,670 | <p>I have an array <strong>x</strong> of 30 samples, and I wish to separate it out into chunks of 8 samples each in 2 different ways.</p>
<p>First, I want to separate it avoiding any overlap so that I end up with 3 arrays of length 8 and the final array will be only 6 (due to some samples being missing).</p>
<p>Secondl... | [
{
"answer_id": 74560898,
"author": "Tat",
"author_id": 19269506,
"author_profile": "https://Stackoverflow.com/users/19269506",
"pm_score": 0,
"selected": false,
"text": "\"\"\"for the first you can use range\"\"\"\nx = np.array([1 ,1, 2 ,1 ,1 ,2 ,1, 0 ,3, 1, 2 ,2, 1, 2, 1, 1,50,1 ,1, 1, ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4879524/"
] |
74,560,689 | <p>Can somebody please explain why the following loop for thread creation fails without the sleep function call?</p>
<pre><code> for(t=0; t<NUM_THREADS; t++) {
printf("Main: creating thread %d\n", t);
rc = pthread_create(&thread[t], NULL, BusyWork, (void *)&t);
sleep(1);
... | [
{
"answer_id": 74560898,
"author": "Tat",
"author_id": 19269506,
"author_profile": "https://Stackoverflow.com/users/19269506",
"pm_score": 0,
"selected": false,
"text": "\"\"\"for the first you can use range\"\"\"\nx = np.array([1 ,1, 2 ,1 ,1 ,2 ,1, 0 ,3, 1, 2 ,2, 1, 2, 1, 1,50,1 ,1, 1, ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560689",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20590631/"
] |
74,560,711 | <p>I am trying to make the text sit vertically in the middle next to the diamond box with the number like this:</p>
<p><a href="https://i.stack.imgur.com/AJYP4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AJYP4.jpg" alt="Text aligned centrally to the box" /></a></p>
<p>Currently I have this code:<... | [
{
"answer_id": 74560851,
"author": "Mike Attal",
"author_id": 13418034,
"author_profile": "https://Stackoverflow.com/users/13418034",
"pm_score": 0,
"selected": false,
"text": ".diamond {\n width: 50px;\n aspect-ratio: 1;\n font: 20pt Arial, sans-serif;\n color: white;\n display: fl... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560711",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8105415/"
] |
74,560,735 | <p>Hi I have some json which is kinda awkward due to its nested/dynamic nature.</p>
<p>It looks something like below. Apologies if it's slightly off. I am trying to create a dictionary like <code>Dictionary <string, Dictionary<string,long>></code>, where each date value is the first key and the item1 is the... | [
{
"answer_id": 74560851,
"author": "Mike Attal",
"author_id": 13418034,
"author_profile": "https://Stackoverflow.com/users/13418034",
"pm_score": 0,
"selected": false,
"text": ".diamond {\n width: 50px;\n aspect-ratio: 1;\n font: 20pt Arial, sans-serif;\n color: white;\n display: fl... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8684461/"
] |
74,560,767 | <p>Created a contract a basic one to deploy on the Mumbai BC.</p>
<p>The same one of uni swaps the basic one, just with different addresses. Since this is in Mumbai BC, so I created it with wmatic.</p>
<p>then after approving all the addresses, I get this error without any explanation or option to understand where it f... | [
{
"answer_id": 74634130,
"author": "djchals",
"author_id": 14168808,
"author_profile": "https://Stackoverflow.com/users/14168808",
"pm_score": 0,
"selected": false,
"text": "// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity =0.7.6;\npragma abicoder v2;\nimport '@uniswap/v3-co... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14200659/"
] |
74,560,780 | <p>I have a long pipeline that I'm constantly reusing in my script, and to make it easy to read I want to put the pipeline in a variable. Is it possible?</p>
<pre><code>cat miami.tmp | grep -A5 "$date" | grep -A3 "$nexthour" | grep "celsius" | grep -E -o '[-]?[0-9].[0-9]' | head -n 1 >... | [
{
"answer_id": 74634130,
"author": "djchals",
"author_id": 14168808,
"author_profile": "https://Stackoverflow.com/users/14168808",
"pm_score": 0,
"selected": false,
"text": "// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity =0.7.6;\npragma abicoder v2;\nimport '@uniswap/v3-co... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20400773/"
] |
74,560,806 | <p>I have a custom object:</p>
<pre><code>data class MoneyTransaction(
val amount: Double,
val category: String
)
</code></pre>
<p>I have a list of <code>MoneyTransaction</code>. I want to create a map out of that list where keys are categories, and the values are the total amount according to the category. Kot... | [
{
"answer_id": 74561012,
"author": "Markus Heider",
"author_id": 866904,
"author_profile": "https://Stackoverflow.com/users/866904",
"pm_score": 3,
"selected": true,
"text": "transactionList.groupBy { it.category }\n Map<String, List<MoneyTransaction>> transactionList.groupBy { it.catego... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12431078/"
] |
74,560,820 | <p>I need an advice how to center text on line vertically. I have basically a data grid that can have rows and cells and within the cell you can put text on multiple lines which have fixed height of 34px. So I need to center text on its own line, but not within the row because then if on the same row you had one cell w... | [
{
"answer_id": 74560878,
"author": "Coopero",
"author_id": 2421346,
"author_profile": "https://Stackoverflow.com/users/2421346",
"pm_score": 2,
"selected": false,
"text": ".text{\n display:flex;\n align-items: center;\n}\n"
},
{
"answer_id": 74560912,
"author": "Abhishek Ko... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8336738/"
] |
74,560,829 | <p>I have a given text string:
text = """Alice has two apples and bananas. Apples are very healty."""</p>
<p>and a dataframe:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>word</th>
</tr>
</thead>
<tbody>
<tr>
<td>apples</td>
</tr>
<tr>
<td>bananas</td>
</tr>... | [
{
"answer_id": 74560878,
"author": "Coopero",
"author_id": 2421346,
"author_profile": "https://Stackoverflow.com/users/2421346",
"pm_score": 2,
"selected": false,
"text": ".text{\n display:flex;\n align-items: center;\n}\n"
},
{
"answer_id": 74560912,
"author": "Abhishek Ko... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17277677/"
] |
74,560,838 | <p>I'm trying to get profiles from database using EntityFramework.</p>
<p>But every time I am getting the following error:</p>
<p>The operation cannot be completed because the DbContext has been disposed.</p>
<p>My code :</p>
<pre><code>private readonly IDbContextDMO _globalContext;
</code></pre>
<pre><code>using (IPr... | [
{
"answer_id": 74561068,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 1,
"selected": false,
"text": "using ProfilService Dispose() _globalContext ProfilService ProfilService _profilService var profilService = _profil... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18838653/"
] |
74,560,842 | <p>Hi all I have the following <a href="https://codesandbox.io/s/jolly-lederberg-qf8hym" rel="nofollow noreferrer">code</a></p>
<p>the data that I want to transform.</p>
<pre><code> const obj = {
numbers: {
label: "main numbers",
pageTitle: "Numbers",
key: "1",
... | [
{
"answer_id": 74560924,
"author": "MoxxiManagarm",
"author_id": 11011793,
"author_profile": "https://Stackoverflow.com/users/11011793",
"pm_score": 1,
"selected": false,
"text": "x Objects newData.children = Object.values(x.items)?.map(/*...*/);\n"
},
{
"answer_id": 74562325,
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13859363/"
] |
74,560,862 | <p>Its asked to create a table to maintain details by using a stored procedure. Do I need to use a procedure to create the table or do I need to use a procedure to insert values?</p>
<blockquote>
<ol>
<li><p>Create a table to maintain company details by using a stored procedure
by passing company id and name as input p... | [
{
"answer_id": 74560924,
"author": "MoxxiManagarm",
"author_id": 11011793,
"author_profile": "https://Stackoverflow.com/users/11011793",
"pm_score": 1,
"selected": false,
"text": "x Objects newData.children = Object.values(x.items)?.map(/*...*/);\n"
},
{
"answer_id": 74562325,
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12864747/"
] |
74,560,953 | <p>I have tried to create a registration for with DB using ajax and PHP but the results is not what I am looking for. It always return the 201 status code.</p>
<p>here's the code I have</p>
<pre><code> <script>
$(document).ready(function() {
$('#butregister').on('click', function() {
... | [
{
"answer_id": 74561117,
"author": "vipin",
"author_id": 4902567,
"author_profile": "https://Stackoverflow.com/users/4902567",
"pm_score": -1,
"selected": false,
"text": "if (mysqli_num_rows($duplicate) > 0) {\n"
},
{
"answer_id": 74562367,
"author": "Searle",
"author_id"... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20590785/"
] |
74,560,977 | <p>My question is <em>similar</em> to <a href="https://stackoverflow.com/questions/37573155/showing-different-axis-labels-using-ggplot2-with-facet-wrap">this question</a> but differs in an important aspect. I want to use different labelling functions created with the <code>{scales}</code> package for the <em>tick mark<... | [
{
"answer_id": 74561040,
"author": "teunbrand",
"author_id": 11374827,
"author_profile": "https://Stackoverflow.com/users/11374827",
"pm_score": 3,
"selected": true,
"text": "ggh4x::scale_y_facet() cond == \"C\" library(ggplot2)\nlibrary(scales)\n\nmill <- number_format(scale = 1/1000000... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2433233/"
] |
74,560,979 | <p>I have a dataframe dfsorted :</p>
<pre class="lang-py prettyprint-override"><code>dfsorted = df.sort_values(["sku"], ascending=[True])
print(dfsorted.head())
</code></pre>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>id</th>
<th>sku</th>
<th>bill</th>
<th>qty_left</th>
</tr>
</t... | [
{
"answer_id": 74561112,
"author": "Paul",
"author_id": 7194474,
"author_profile": "https://Stackoverflow.com/users/7194474",
"pm_score": 3,
"selected": true,
"text": "agg lambda sum df.groupby('sku').agg({'bill': lambda x: set(x), 'qty_left':'sum'})\n set list bill qt... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74560979",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1692094/"
] |
74,561,014 | <p>I am developing an upload api using Go.
I can upload one file at a time via postman with body >> form-data
but I can't upload more than 1 file, any solution?
code:</p>
<pre><code>package main
import (
"fmt"
"mime/multipart"
"net/http"
"path/filepath"
... | [
{
"answer_id": 74561386,
"author": "vageeshabr",
"author_id": 3413403,
"author_profile": "https://Stackoverflow.com/users/3413403",
"pm_score": 0,
"selected": false,
"text": "package main\n\nimport (\n \"github.com/gin-gonic/gin\"\n \"log\"\n \"mime/multipart\"\n)\n\ntype BindFi... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561014",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19896535/"
] |
74,561,023 | <p>Suppose I am trying to filter out based on <code>gpus</code>'s field/property. Which is a collection of <code>device</code> namespace.</p>
<p>I have a query, which gives results: (so i believe it's syntactically and semantically correct)</p>
<p><code>devices | where gpus != null | list gpus</code></p>
<p>and get res... | [
{
"answer_id": 74561386,
"author": "vageeshabr",
"author_id": 3413403,
"author_profile": "https://Stackoverflow.com/users/3413403",
"pm_score": 0,
"selected": false,
"text": "package main\n\nimport (\n \"github.com/gin-gonic/gin\"\n \"log\"\n \"mime/multipart\"\n)\n\ntype BindFi... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1327585/"
] |
74,561,024 | <p>I am developing a recording app in React Native. For that, I use <a href="https://www.npmjs.com/package/expo-av" rel="nofollow noreferrer">expo-av</a>. I've noticed recently that on Android 12 when a user picks up a call, the app keeps recording but when listening to it later, there is silence while the user was on ... | [
{
"answer_id": 74561386,
"author": "vageeshabr",
"author_id": 3413403,
"author_profile": "https://Stackoverflow.com/users/3413403",
"pm_score": 0,
"selected": false,
"text": "package main\n\nimport (\n \"github.com/gin-gonic/gin\"\n \"log\"\n \"mime/multipart\"\n)\n\ntype BindFi... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561024",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6470918/"
] |
74,561,027 | <p>On OS X I can check which version of homebrew I have installed with <code>brew -v</code>. Is there a way to check what the latest version available for installation is?</p>
| [
{
"answer_id": 74561467,
"author": "Andre Wildberg",
"author_id": 9462095,
"author_profile": "https://Stackoverflow.com/users/9462095",
"pm_score": 1,
"selected": false,
"text": "$ curl -s \"https://github.com/Homebrew/brew/releases\" | \n awk '/true\" class=\"Link--primary\"/{gsub(/<... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10864356/"
] |
74,561,039 | <p>I got a little question.</p>
<p>I would like to select N rows from 5 id.</p>
<p>I already tried this request :</p>
<pre><code>SELECT a.fk_produit_id, a.id, a.titre, a.prix, a.description, a.short_description, a.image_url
from produits p, articles a
WHERE p.id = a.fk_produit_id AND p.fk_category_id IN (2, 248, 335,... | [
{
"answer_id": 74561193,
"author": "GarethD",
"author_id": 1048425,
"author_profile": "https://Stackoverflow.com/users/1048425",
"pm_score": 2,
"selected": true,
"text": "ROW_NUMBER() SELECT a.fk_produit_id, \n a.id, \n a.titre, \n a.prix, \n a.description, \... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17190769/"
] |
74,561,070 | <p>I'm writing a simple program that takes user input and prints the number of even, odd and zeros.</p>
<p>The program doesn't yield any errors but it seems to skip line 5 and 15
I want to count and display the zeroes in the <code>numbers</code> list</p>
<pre><code>numbers = input("Numbers seperated by space:"... | [
{
"answer_id": 74561193,
"author": "GarethD",
"author_id": 1048425,
"author_profile": "https://Stackoverflow.com/users/1048425",
"pm_score": 2,
"selected": true,
"text": "ROW_NUMBER() SELECT a.fk_produit_id, \n a.id, \n a.titre, \n a.prix, \n a.description, \... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20590574/"
] |
74,561,083 | <pre><code>void find_substring(char * str_for_search_in, char * substring)
{
bool flag = false;
for (int i = 0; i < strlen(str_for_search_in) - strlen(substring); i++)
{
if (str_for_search_in.substr(i, strlen(substring)) == substring)
{
cout << i << " ";
... | [
{
"answer_id": 74561193,
"author": "GarethD",
"author_id": 1048425,
"author_profile": "https://Stackoverflow.com/users/1048425",
"pm_score": 2,
"selected": true,
"text": "ROW_NUMBER() SELECT a.fk_produit_id, \n a.id, \n a.titre, \n a.prix, \n a.description, \... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12987362/"
] |
74,561,088 | <p>This is the programm I wrote:</p>
<pre><code>#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
void meanVariance(double* x, int n, double* mean, double* variance);
double* scanVector(int length);
void meanVariance(double* x, int n, double* mean, double* variance){
double sum = 0;
... | [
{
"answer_id": 74561170,
"author": "Thomas",
"author_id": 14637,
"author_profile": "https://Stackoverflow.com/users/14637",
"pm_score": 2,
"selected": false,
"text": "& x & & x+(n-1) n-1 sizeof(double) x &x[n-1] n-1"
},
{
"answer_id": 74561197,
"author": "Lundin",
"author... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20581352/"
] |
74,561,096 | <p>I'm getting this error when trying to start my Spring application. My classes are attached below but in a simplified manner.</p>
<p>The projet uses the pattern dto → service → serviceImpl → repository.</p>
<p><strong>DentistDto.java</strong></p>
<pre><code>@Data
public class DentistDto {
@NotBlank
@Size(max... | [
{
"answer_id": 74561586,
"author": "Hamza Khadhri",
"author_id": 9523051,
"author_profile": "https://Stackoverflow.com/users/9523051",
"pm_score": -1,
"selected": false,
"text": "@Service\npublic interface DentistService {\n\n DentistDto findById(UUID id) throws NotFoundException;\n\n... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17111090/"
] |
74,561,136 | <p>This is the code where the initState is not working</p>
<pre><code>class _MyAppState extends State<MyApp> {
late bool _nightMode;
Future<void> _loadNightMode() async {
final prefs = await SharedPreferences.getInstance();
setState(() {
_nightMode = (prefs.getBool('nightMode') ?? false);... | [
{
"answer_id": 74561586,
"author": "Hamza Khadhri",
"author_id": 9523051,
"author_profile": "https://Stackoverflow.com/users/9523051",
"pm_score": -1,
"selected": false,
"text": "@Service\npublic interface DentistService {\n\n DentistDto findById(UUID id) throws NotFoundException;\n\n... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20307720/"
] |
74,561,139 | <pre><code>protocol BackgroundContent: View{
}
struct BlueDivider: BackgroundContent {
var body: some View {
Divider()
.frame(minHeight: 1)
.background(.blue)
}
}
struct RedDivider: BackgroundContent {
var body: some View {
Divider()
.frame(minHeight: 1... | [
{
"answer_id": 74561586,
"author": "Hamza Khadhri",
"author_id": 9523051,
"author_profile": "https://Stackoverflow.com/users/9523051",
"pm_score": -1,
"selected": false,
"text": "@Service\npublic interface DentistService {\n\n DentistDto findById(UUID id) throws NotFoundException;\n\n... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12071432/"
] |
74,561,212 | <p>im working on a simple html/css website in an apache server</p>
<p>i changed urls from <a href="http://www.mydomain.com/about.html" rel="nofollow noreferrer">www.mydomain.com/about.html</a> to <a href="http://www.mydomain.com/a-propos-de-nous" rel="nofollow noreferrer">www.mydomain.com/a-propos-de-nous</a> for all f... | [
{
"answer_id": 74562742,
"author": "RavinderSingh13",
"author_id": 5866580,
"author_profile": "https://Stackoverflow.com/users/5866580",
"pm_score": 1,
"selected": false,
"text": "RewriteOptions InheritBefore\n\nOptions +FollowSymlinks \nRewriteEngine On\nRewriteBase /en/\nRewriteCond %{... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561212",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4170650/"
] |
74,561,229 | <p>I have a ReactJS render function where I iterate over an array to display the contents like this:</p>
<pre><code>render() {
let object = eval('('+this.props.objectData+')');
let cd = object.objColAliases;
return (
<div>
{
cd.map(o=>{
return... | [
{
"answer_id": 74561272,
"author": "Jonathan Wieben",
"author_id": 7879109,
"author_profile": "https://Stackoverflow.com/users/7879109",
"pm_score": 1,
"selected": true,
"text": "key .map render() {\n let object = eval('('+this.props.objectData+')');\n let cd = object.objColAliases... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561229",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1510155/"
] |
74,561,245 | <p>Suppose that I have a table with the following two columns:</p>
<pre><code>create table contacts (
first_name varchar[],
last_name varchar[]
);
</code></pre>
<p>And I have the following two rows:</p>
<pre><code>INSERT INTO contacts (first_name, last_name)
VALUES (ARRAY['Samin'] , Array['Var']),
(ARRAY['Sara'... | [
{
"answer_id": 74561272,
"author": "Jonathan Wieben",
"author_id": 7879109,
"author_profile": "https://Stackoverflow.com/users/7879109",
"pm_score": 1,
"selected": true,
"text": "key .map render() {\n let object = eval('('+this.props.objectData+')');\n let cd = object.objColAliases... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16445477/"
] |
74,561,270 | <p>I have a route with dynamic path, using params:</p>
<pre><code><Route
path="/main/:id"
element={
<Page />
}
/>
</code></pre>
<p>When I reach that page, using React Router <code>useLocation</code>, I'm able to get the full path:</p>
<pre><code>"/main/5432gt34"
</cod... | [
{
"answer_id": 74561272,
"author": "Jonathan Wieben",
"author_id": 7879109,
"author_profile": "https://Stackoverflow.com/users/7879109",
"pm_score": 1,
"selected": true,
"text": "key .map render() {\n let object = eval('('+this.props.objectData+')');\n let cd = object.objColAliases... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9856049/"
] |
74,561,280 | <p>I have 5 migration files created. But when I run <code>./manage.py migrate</code>
it always tries to apply the migrations file "3". Even though the latest one is file 5.</p>
<p>How can I fix this issue?</p>
<p>I have tried:</p>
<pre><code>./manage.py makemigrations app_name
./manage.py migrate app_name
./m... | [
{
"answer_id": 74561272,
"author": "Jonathan Wieben",
"author_id": 7879109,
"author_profile": "https://Stackoverflow.com/users/7879109",
"pm_score": 1,
"selected": true,
"text": "key .map render() {\n let object = eval('('+this.props.objectData+')');\n let cd = object.objColAliases... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561280",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12917990/"
] |
74,561,289 | <p>I have a table for learner as learner_lesson</p>
<pre><code>learnerlessonid learnerid lessonid
1 24 42
</code></pre>
<p>and another table as learner_lesson_log</p>
<pre><code>lessonlogid learnerlessonid progress maxprogress. interactionType createdAt
1 1 ... | [
{
"answer_id": 74561272,
"author": "Jonathan Wieben",
"author_id": 7879109,
"author_profile": "https://Stackoverflow.com/users/7879109",
"pm_score": 1,
"selected": true,
"text": "key .map render() {\n let object = eval('('+this.props.objectData+')');\n let cd = object.objColAliases... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561289",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4502950/"
] |
74,561,297 | <p>I would like to create a section component that takes the html specified between the start and end tag and adds a header. The primary reason for me to want this is to make sure the margins of headers and content are consistent across the entire site. I have tried to find how to do this but I don't really know how to... | [
{
"answer_id": 74561272,
"author": "Jonathan Wieben",
"author_id": 7879109,
"author_profile": "https://Stackoverflow.com/users/7879109",
"pm_score": 1,
"selected": true,
"text": "key .map render() {\n let object = eval('('+this.props.objectData+')');\n let cd = object.objColAliases... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3978394/"
] |
74,561,308 | <p>I have Multiple Sections Each Containing Subsections and inside I have Questions that I need to validate, The Thing is:</p>
<p>I have a save button for each section.</p>
<p>Edit: I Don't know how many Sections I will have from Api and how many Subsections or Questions its all dynamic</p>
<p>how do I make:
FormGroup ... | [
{
"answer_id": 74561272,
"author": "Jonathan Wieben",
"author_id": 7879109,
"author_profile": "https://Stackoverflow.com/users/7879109",
"pm_score": 1,
"selected": true,
"text": "key .map render() {\n let object = eval('('+this.props.objectData+')');\n let cd = object.objColAliases... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19665689/"
] |
74,561,313 | <p>Hello guys I got the following code inside my App.js file:</p>
<pre><code>const history = createHistory();
function App({ calendarStore }) {
const [isLoggedIn, setIsLoggedIn] = useState(
!!localStorage.getItem("isLoggedIn")
);
return (
<div>
<Router history={history}&... | [
{
"answer_id": 74561728,
"author": "Sandil Ranasinghe",
"author_id": 12036671,
"author_profile": "https://Stackoverflow.com/users/12036671",
"pm_score": 0,
"selected": false,
"text": "{isLoggedIn && <Navbar.Brand href=\"/\">Home</Navbar.Brand>} // show only if logged in\n<Navbar.Toggle a... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20109764/"
] |
74,561,344 | <p>We just upgraded to .net 7, and all the http calls in our integration tests started breaking with the error:</p>
<pre><code>Message:
System.FormatException : The format of value '' is invalid.
Stack Trace:
HttpHeaderParser.ParseValue(String value, Object storeValue, Int32& index)
HttpHeaders.Par... | [
{
"answer_id": 74561728,
"author": "Sandil Ranasinghe",
"author_id": 12036671,
"author_profile": "https://Stackoverflow.com/users/12036671",
"pm_score": 0,
"selected": false,
"text": "{isLoggedIn && <Navbar.Brand href=\"/\">Home</Navbar.Brand>} // show only if logged in\n<Navbar.Toggle a... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561344",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4234855/"
] |
74,561,394 | <p>I am trying to pass default value in JOLT. While passing I am getting the default value multiple times in an array. I tried cardinality with "*" but still I am getting error.</p>
<p>I tried-</p>
<p>"*":"ONE" in cardinality spec.</p>
<p>Below are the input, spec and output ss. Any idea o... | [
{
"answer_id": 74561728,
"author": "Sandil Ranasinghe",
"author_id": 12036671,
"author_profile": "https://Stackoverflow.com/users/12036671",
"pm_score": 0,
"selected": false,
"text": "{isLoggedIn && <Navbar.Brand href=\"/\">Home</Navbar.Brand>} // show only if logged in\n<Navbar.Toggle a... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20530341/"
] |
74,561,403 | <p>I am not sure if we can apply validator to a input type="file",All I am trying to do is show error message "special characters not allowed" if user tries to upload a file name containing special characters. But the following code not working as expected. It shows error message in all cases .</p>
... | [
{
"answer_id": 74561728,
"author": "Sandil Ranasinghe",
"author_id": 12036671,
"author_profile": "https://Stackoverflow.com/users/12036671",
"pm_score": 0,
"selected": false,
"text": "{isLoggedIn && <Navbar.Brand href=\"/\">Home</Navbar.Brand>} // show only if logged in\n<Navbar.Toggle a... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561403",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12354698/"
] |
74,561,434 | <p>As title, here is 2 ways to binding a zeromq socket.</p>
<pre><code>socket.bind("tcp://*:port")
socket.bind("tcp://127.0.0.1:port")
</code></pre>
<p>Both these two way work for me, but I am still curious about it.</p>
| [
{
"answer_id": 74561728,
"author": "Sandil Ranasinghe",
"author_id": 12036671,
"author_profile": "https://Stackoverflow.com/users/12036671",
"pm_score": 0,
"selected": false,
"text": "{isLoggedIn && <Navbar.Brand href=\"/\">Home</Navbar.Brand>} // show only if logged in\n<Navbar.Toggle a... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14238789/"
] |
74,561,557 | <p>I am trying to send a request with an authorization header with Angular to a Spring backend.</p>
<pre><code>export class TokenInterceptor implements HttpInterceptor{
constructor(public sharedService : SharedService){}
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any... | [
{
"answer_id": 74561728,
"author": "Sandil Ranasinghe",
"author_id": 12036671,
"author_profile": "https://Stackoverflow.com/users/12036671",
"pm_score": 0,
"selected": false,
"text": "{isLoggedIn && <Navbar.Brand href=\"/\">Home</Navbar.Brand>} // show only if logged in\n<Navbar.Toggle a... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19845343/"
] |
74,561,562 | <p>I want to make a project with react.js and style it using tailwind.css, is that possible? and how</p>
<p>Hopefully the merging between react.js and styling tailwind.css can be done in one pack</p>
| [
{
"answer_id": 74561728,
"author": "Sandil Ranasinghe",
"author_id": 12036671,
"author_profile": "https://Stackoverflow.com/users/12036671",
"pm_score": 0,
"selected": false,
"text": "{isLoggedIn && <Navbar.Brand href=\"/\">Home</Navbar.Brand>} // show only if logged in\n<Navbar.Toggle a... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561562",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20570023/"
] |
74,561,564 | <p>I hope you can assist.</p>
<p>I have a SAS data set which has two columns, ID and Date which looks like this:
<a href="https://i.stack.imgur.com/TUMDQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TUMDQ.png" alt="enter image description here" /></a>
In some instances, the date column skips a mon... | [
{
"answer_id": 74561728,
"author": "Sandil Ranasinghe",
"author_id": 12036671,
"author_profile": "https://Stackoverflow.com/users/12036671",
"pm_score": 0,
"selected": false,
"text": "{isLoggedIn && <Navbar.Brand href=\"/\">Home</Navbar.Brand>} // show only if logged in\n<Navbar.Toggle a... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20204836/"
] |
74,561,593 | <p>As we learn from <a href="https://stackoverflow.com/a/35713234/6105259">this answer</a>, there's a substantial performance increase when using <code>anyNA()</code> over <code>any(is.na())</code> to detect whether a vector has at least one <code>NA</code> element. This makes sense, as the algorithm of <code>anyNA()</... | [
{
"answer_id": 74562414,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 4,
"selected": true,
"text": "Rcpp::cppFunction(\"bool any_NonNA(NumericVector v) {\n for(size_t i = 0; i < v.length(); i++) {\n if(!(Rc... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6105259/"
] |
74,561,603 | <p>I want to draw a square and rotate it by 45deg.</p>
<p>It works, but I don't know why the transform applied is not the the center of the the square ( it's off by ~72px ) ?</p>
<p>How would I programatically calculate the transform required for any given square size ?</p>
<p><div class="snippet" data-lang="js" data-h... | [
{
"answer_id": 74562075,
"author": "Helder Sepulveda",
"author_id": 7599833,
"author_profile": "https://Stackoverflow.com/users/7599833",
"pm_score": 1,
"selected": false,
"text": "ctx.rect(-25, -25, 50, 50) var canvas = document.querySelector('canvas')\ncanvas.width = canvas.height = 16... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3094755/"
] |
74,561,623 | <p>I am making a "/bulk" endpoint for my API/REST made in Laravel 8.
My problem is that I don't know how to reuse the same FormRequest that I have for the create or update</p>
<p>json post to: /cars/bulk</p>
<pre class="lang-json prettyprint-override"><code>{
"cars": [{"model": "A&quo... | [
{
"answer_id": 74562075,
"author": "Helder Sepulveda",
"author_id": 7599833,
"author_profile": "https://Stackoverflow.com/users/7599833",
"pm_score": 1,
"selected": false,
"text": "ctx.rect(-25, -25, 50, 50) var canvas = document.querySelector('canvas')\ncanvas.width = canvas.height = 16... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8645456/"
] |
74,561,631 | <p>I have a simple list with two buttons. I want to be able to show one or the other depending on whether I'm logged in.</p>
<pre><code><div>
<li class="nav-item">
<button *ngIf="token === ''" type="button" class="btn btn-dark btn-lg fs... | [
{
"answer_id": 74562075,
"author": "Helder Sepulveda",
"author_id": 7599833,
"author_profile": "https://Stackoverflow.com/users/7599833",
"pm_score": 1,
"selected": false,
"text": "ctx.rect(-25, -25, 50, 50) var canvas = document.querySelector('canvas')\ncanvas.width = canvas.height = 16... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20338186/"
] |
74,561,650 | <p>I have a dataflie like this (in my original file i have 4 categories of organisms)</p>
<pre><code>organism length intersize
org1 201 38
org1 334 4221
org2 428 575
org2 573 639
org3 356 700
org3 2414 ... | [
{
"answer_id": 74562075,
"author": "Helder Sepulveda",
"author_id": 7599833,
"author_profile": "https://Stackoverflow.com/users/7599833",
"pm_score": 1,
"selected": false,
"text": "ctx.rect(-25, -25, 50, 50) var canvas = document.querySelector('canvas')\ncanvas.width = canvas.height = 16... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3683485/"
] |
74,561,654 | <p>If you have a component with 1 <strong>FromControl</strong>, connected to two input fields:</p>
<pre><code>@Component({
selector: 'my-app',
template: '<input [formControl]="ctrl"><input [formControl]="ctrl">',
})
export class AppComponent {
ctrl = new FormControl('x', { up... | [
{
"answer_id": 74561784,
"author": "Victoria Unizhona",
"author_id": 12844525,
"author_profile": "https://Stackoverflow.com/users/12844525",
"pm_score": -1,
"selected": false,
"text": "<input [formControl]=\"ctrl\" (input)=\"onChange($event)\" />\n<input [formControl]=\"ctrl\" (input)=\"... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/419425/"
] |
74,561,663 | <p>I tried some suggestion from <a href="https://stackoverflow.com/questions/28738089/how-to-change-datepicker-dialog-color-for-android-5-0">How to change DatePicker dialog color for Android 5.0</a> but the only problem is next the two of the buttons are not visible as after writing the code</p>
<pre><code>public stati... | [
{
"answer_id": 74561741,
"author": "Aditya Nandardhane",
"author_id": 12819796,
"author_profile": "https://Stackoverflow.com/users/12819796",
"pm_score": 1,
"selected": false,
"text": "<style name=\"DialogTheme\" parent=\"Theme.AppCompat.Light.Dialog\">\n <item name=\"colorAccent\"... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561663",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12637592/"
] |
74,561,669 | <p>I'm coming to the conclusion that Jolt is beyond me.</p>
<p>With this input data:-</p>
<pre class="lang-json prettyprint-override"><code>{
"cluster_id": "1",
"data": {
"id": 1,
"types": [
{
"incident_id": 10,
"incident... | [
{
"answer_id": 74561741,
"author": "Aditya Nandardhane",
"author_id": 12819796,
"author_profile": "https://Stackoverflow.com/users/12819796",
"pm_score": 1,
"selected": false,
"text": "<style name=\"DialogTheme\" parent=\"Theme.AppCompat.Light.Dialog\">\n <item name=\"colorAccent\"... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561669",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/126893/"
] |
74,561,680 | <p>I have a code that looks like:</p>
<pre><code><mat-panel-title>
{{data}}
</mat-panel-title>
</code></pre>
<p>This data is a variable that holds a sentence like <code>My name is so & so</code>.</p>
<p>I need to add CSS for "name" such that it is blue color. but since {{data}} holds the w... | [
{
"answer_id": 74562137,
"author": "Chady BAGHDADI",
"author_id": 16227834,
"author_profile": "https://Stackoverflow.com/users/16227834",
"pm_score": 1,
"selected": false,
"text": "import { Directive, ElementRef } from '@angular/core';\n\n@Directive({\n selector: '[highlight]'\n})\nexpo... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19950798/"
] |
74,561,725 | <p>i'm using the discogs api to export my wantlist to a google spreadsheet</p>
<p>Is there a way to add the html to make the release-url (resource_url clickable? in the output?</p>
<p>`</p>
<pre><code>function logTheData (url){
var sheet = SpreadsheetApp.getActiveSheet();
var url ='https://api.discogs.com/users/bar... | [
{
"answer_id": 74562137,
"author": "Chady BAGHDADI",
"author_id": 16227834,
"author_profile": "https://Stackoverflow.com/users/16227834",
"pm_score": 1,
"selected": false,
"text": "import { Directive, ElementRef } from '@angular/core';\n\n@Directive({\n selector: '[highlight]'\n})\nexpo... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20591334/"
] |
74,561,735 | <p>This is my first website project; I want the one <code><button></code> to change the <code>z-index</code> on two boxes. Two buttons would be no problem, but I want the script to do two things in one action. I couldn´t find any information about this subject online.</p>
<p><div class="snippet" data-lang="js" da... | [
{
"answer_id": 74562137,
"author": "Chady BAGHDADI",
"author_id": 16227834,
"author_profile": "https://Stackoverflow.com/users/16227834",
"pm_score": 1,
"selected": false,
"text": "import { Directive, ElementRef } from '@angular/core';\n\n@Directive({\n selector: '[highlight]'\n})\nexpo... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20585966/"
] |
74,561,806 | <p>I'm wondering if I can combine 2 rules applied on the same element and containing the same styles but one of the rules is in a media query and get something similar to :</p>
<pre><code>.a,
.b .a {
color: white;
background-color: black;
}
</code></pre>
<p>The rules are :</p>
<ul>
<li>Apply colors to the <code>.co... | [
{
"answer_id": 74562677,
"author": "ksav",
"author_id": 5385381,
"author_profile": "https://Stackoverflow.com/users/5385381",
"pm_score": -1,
"selected": false,
"text": ":root {\n --dark-color: white;\n --dark-bg: black;\n --light-color: black;\n --light-bg: white;\n}\n\n@media (pref... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17684809/"
] |
74,561,837 | <p>so I'm kind of a beginner at JavaScript and APIs, things like that. I want to implement an API into my website that can detect whether an article is fake news or not based on the title. I already found the API, <a href="https://rapidapi.com/fangyiyu/api/fake-news-detection1" rel="nofollow noreferrer">which is this</... | [
{
"answer_id": 74561907,
"author": "Shivangam Soni",
"author_id": 16659219,
"author_profile": "https://Stackoverflow.com/users/16659219",
"pm_score": 0,
"selected": false,
"text": "document.getElementById('check') = text onClick checkFakeNews() checkFakeNews function checkFakeNews() {\n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20591298/"
] |
74,561,852 | <p>I am using pandas to import a dataframe, and want to drop certain rows before grouping the information.</p>
<p>How do I go from the following (example):</p>
<pre><code> Name1 Name2 Name3
0 A1 B1 1
1 NaN NaN 2
2 NaN NaN 3
3 NaN B2 4
4 NaN NaN 5
5 NaN NaN 6
6 NaN B3 7
7 NaN NaN 8
8 NaN ... | [
{
"answer_id": 74562018,
"author": "Vini",
"author_id": 6927944,
"author_profile": "https://Stackoverflow.com/users/6927944",
"pm_score": 0,
"selected": false,
"text": "thresh # toy data\ndata = {'name1': [np.nan, np.nan, np.nan, np.nan], 'name2': [np.nan, 1, 2, np.nan], 'name3': [1, 2, ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20591390/"
] |
74,561,873 | <p>I am on Application Express 21.1.0.</p>
<p>I added a column to a db table, and tried to add that column to the Form region based on that table.</p>
<p>I got error...</p>
<p>ORA-20999: Failed to parse SQL query! ORA-06550: line 4, column 15: ORA-00904: "NEEDED_EXAMS": invalid identifier
And I can not find t... | [
{
"answer_id": 74562018,
"author": "Vini",
"author_id": 6927944,
"author_profile": "https://Stackoverflow.com/users/6927944",
"pm_score": 0,
"selected": false,
"text": "thresh # toy data\ndata = {'name1': [np.nan, np.nan, np.nan, np.nan], 'name2': [np.nan, 1, 2, np.nan], 'name3': [1, 2, ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13389582/"
] |
74,561,897 | <p>I have a view that aggregates data about customers and shows the products they have access to, along with the status of whether they use those products on a trial basis or not (both as string comma seperated values):</p>
<pre><code>+----------+----------+-----------------------+
| customer | products | products_tria... | [
{
"answer_id": 74562368,
"author": "Barbaros Özhan",
"author_id": 5841306,
"author_profile": "https://Stackoverflow.com/users/5841306",
"pm_score": 0,
"selected": false,
"text": "WITH t1 AS\n(\n SELECT customer,\n REGEXP_SUBSTR(products,'[^,]',1,level) AS products,\n REGEXP... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74561897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20591134/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.