qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,546,149 | <p>I am trying to find a way to check the AD roles attached to a user. After a lot of reading, it seems like there is no cli call that can provide this information. The workaround I am thinking is to list out all the users who have "Global Administrator" permission in the AD role. Is there an azure CLI call t... | [
{
"answer_id": 74548125,
"author": "Sridevi",
"author_id": 18043665,
"author_profile": "https://Stackoverflow.com/users/18043665",
"pm_score": 2,
"selected": true,
"text": "GET https://graph.microsoft.com/v1.0/roleManagement/directory/roleAssignments?$filter=roleDefinitionId eq '62e90394... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/881150/"
] |
74,546,189 | <p>Please help me to find a <em>more</em> elegant way to rewrite this snippet using <code>std::transform</code> or similar algorithm:</p>
<pre><code>for (auto& warning : warnings)
{
NormalizePath(warning.path, GetParsedPathLength(warning.path), longestPathLength);
};
</code></pre>
<p>Where <code>warning</code> ... | [
{
"answer_id": 74548125,
"author": "Sridevi",
"author_id": 18043665,
"author_profile": "https://Stackoverflow.com/users/18043665",
"pm_score": 2,
"selected": true,
"text": "GET https://graph.microsoft.com/v1.0/roleManagement/directory/roleAssignments?$filter=roleDefinitionId eq '62e90394... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2170898/"
] |
74,546,201 | <p>I have a script that is adding or substracting a value (picked up in M2 cell) in each cell of a selected range (I mean a range that I can select with the mouse) :</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... | [
{
"answer_id": 74546846,
"author": "Martín",
"author_id": 20363318,
"author_profile": "https://Stackoverflow.com/users/20363318",
"pm_score": 0,
"selected": false,
"text": " var ss = SpreadsheetApp.getActive();\n ss.getSelection().getNextDataRange(SpreadsheetApp.Direction.DOWN).activate(... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546201",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15086384/"
] |
74,546,203 | <p>How can I get the id of a task in my todo app without using ActivatedRoute method for updating functionality in angular ?</p>
<p><code>this.route.paramMap.subscribe(params => {this.id = params.get('id');})</code></p>
<p>this is the way which I'm using now</p>
| [
{
"answer_id": 74546362,
"author": "XRaycat",
"author_id": 7744154,
"author_profile": "https://Stackoverflow.com/users/7744154",
"pm_score": 0,
"selected": false,
"text": "@output @input"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16953799/"
] |
74,546,214 | <p>i have two df and i wanna check for the id if the value differs in both df if so i need to print those.</p>
<p>example:</p>
<pre><code>df1 = |id |check_column1|
|1|abc|
|1|bcd|
|2|xyz|
|2|mno|
|2|mmm|
</code></pre>
<pre><code>df2 =
|id |check_column2|
|1|bcd|
|1|abc|
... | [
{
"answer_id": 74546283,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 3,
"selected": true,
"text": "id GroupBy.cumcount df1 = df1.sort_values(['id','check_column1'])\ndf2 = df2.sort_values(['id','check_column2'])\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19189066/"
] |
74,546,242 | <p>I was trying to update my whole project dependencies, and managed to do it, but when I try to run the tests with <code>ng test --no-watch</code> they don't work, giving me the following error.</p>
<pre><code>23 11 2022 12:33:58.268:INFO [Chrome Headless 107.0.5304.107 (Windows 10)]: Connected on socket JpJqOsJswlYxF... | [
{
"answer_id": 74572172,
"author": "donkeyjot",
"author_id": 14701008,
"author_profile": "https://Stackoverflow.com/users/14701008",
"pm_score": 1,
"selected": false,
"text": " const context = require.context('./', true, /\\.spec\\.ts$/);\n context.keys().forEach(context);\n"
},
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9244199/"
] |
74,546,243 | <p>This is my code</p>
<pre><code>public class StringTest {
public static void main(String []args) {
String str= "8650";
StringBuilder build = new StringBuilder(str);
char index = str.charAt(0);
System.out.println(index+"");
int in... | [
{
"answer_id": 74546289,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 1,
"selected": false,
"text": "String.startsWith() public class StringTest {\n\n public static void main(String[] args) {\n String st... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20581459/"
] |
74,546,251 | <p>Always been struggeling with RegEx, help is much appreciated!
I want to match parts of a URL with Regex but cannot get my head around it.</p>
<p>Domains are:</p>
<p>https://<strong>name</strong>.secondpart.thirdpart.com</p>
<p>I want my regex to match</p>
<p><strong>name</strong> How would I achieve this?</p>
<p>St... | [
{
"answer_id": 74546377,
"author": "Jay",
"author_id": 4068476,
"author_profile": "https://Stackoverflow.com/users/4068476",
"pm_score": 2,
"selected": true,
"text": "/ \\/ ^[^.:\\/]+:\\/\\/([^.]+)\n ^[^.:\\/]+:\\/\\/([^.]+)\\.secondpart\\.thirdpart\\.com$\n ^[^.:\\/]+:\\/\\/([^.]+)(?:\\... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20581055/"
] |
74,546,255 | <p>Hi we have two blog types defined within our shop and they both use the same template right now.</p>
<p>Specifically I want to make changes to just one of the two blogs listing pages (the page where a summary and thumbnail of each blog article is shown).</p>
<p>How can I achieve this? Will this automatically happen... | [
{
"answer_id": 74546377,
"author": "Jay",
"author_id": 4068476,
"author_profile": "https://Stackoverflow.com/users/4068476",
"pm_score": 2,
"selected": true,
"text": "/ \\/ ^[^.:\\/]+:\\/\\/([^.]+)\n ^[^.:\\/]+:\\/\\/([^.]+)\\.secondpart\\.thirdpart\\.com$\n ^[^.:\\/]+:\\/\\/([^.]+)(?:\\... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1022861/"
] |
74,546,272 | <p>My problem with my is to be able to retrieve the returned value (the name of the fund chosen by the user) by the post method in order to use it in my get method. this value will be the name of my ConnectionName</p>
<p>ConnectionName :</p>
<pre class="lang-json prettyprint-override"><code>{
"ConnectionStrings&... | [
{
"answer_id": 74546554,
"author": "CthenB",
"author_id": 1885199,
"author_profile": "https://Stackoverflow.com/users/1885199",
"pm_score": 1,
"selected": false,
"text": "[HttpGet]\npublic JsonResult Get([FromUri] string admin)\n{\n}\n"
},
{
"answer_id": 74546649,
"author": "... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20378743/"
] |
74,546,287 | <p>In my project, I extracted frames from a video and in another folder I have ground truth for each frame.
I want to map the ground truth image of each frame of a video (in my case, it is saliency prediction ground truth) on its related frame image. As an example I have the following frame:</p>
<p><a href="https://i.s... | [
{
"answer_id": 74580040,
"author": "hkchengrex",
"author_id": 3237438,
"author_profile": "https://Stackoverflow.com/users/3237438",
"pm_score": 4,
"selected": true,
"text": "multiprocessing.Pool .png import os\nfrom os import path\nimport cv2\nimport numpy as np\n\nfrom argparse import A... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546287",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11140344/"
] |
74,546,288 | <p>I am checking whether a list in python contains only numeric data. For simple ints and floats I can use the following code:</p>
<p><code>if all(isinstance(x, (int, float)) for x in lstA):</code></p>
<p>If there any easy way to check whether another list is embedded in the first list also containing numeric data?</p>... | [
{
"answer_id": 74546353,
"author": "oskros",
"author_id": 9490769,
"author_profile": "https://Stackoverflow.com/users/9490769",
"pm_score": 3,
"selected": true,
"text": "def is_all_numeric(lst):\n for elem in lst:\n if isinstance(elem, list):\n if not is_all_numeric(... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11436967/"
] |
74,546,297 | <p>This query works fine:
<code>$query = "SELECT * from hired WHERE username = 'kaas' and dvd = 'dvd 2'";</code></p>
<p>But then I change it to this query:
<code>$query = "SELECT * from hired WHERE username = " . $_SESSION['name'] . " AND dvd = " . $_POST['dvd'];</code></p>
<p>and it doesn... | [
{
"answer_id": 74546333,
"author": "Fal",
"author_id": 20581548,
"author_profile": "https://Stackoverflow.com/users/20581548",
"pm_score": -1,
"selected": false,
"text": "$query = \"SELECT * from hired WHERE username = '\" . $_SESSION['name'] . \"'\" . \"AND dvd = '\" . $_POST['dvd'] . \... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20581548/"
] |
74,546,355 | <p>I am beginner to dart. I have tried using regular expression to validate the length of string. But its not working as expected. The {} curly braces indicate a length range in regex. Using {12} means a length of exactly 12, {12,15} means a length of 12 to 15 characters, and {12,} means a length of at least 12 with no... | [
{
"answer_id": 74546577,
"author": "Robert Sandberg",
"author_id": 13263384,
"author_profile": "https://Stackoverflow.com/users/13263384",
"pm_score": 0,
"selected": false,
"text": "{12, 15} const password = r\"dsjRK@#RDsk34$SwedfQWDF\";\n if (!RegExp(r'[a-z]').hasMatch(password)) {\n... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8609394/"
] |
74,546,372 | <p>Trying to make a free food finder but get unknown error</p>
<p>I'm trying to make this code to get every free product in this food delivery restaurant
I expect it to iterate through this 'hbaEIe.sc-5674cfe4-2' elements, that look like this:
<a href="https://i.stack.imgur.com/wMoZb.png" rel="nofollow noreferrer">Rest... | [
{
"answer_id": 74546577,
"author": "Robert Sandberg",
"author_id": 13263384,
"author_profile": "https://Stackoverflow.com/users/13263384",
"pm_score": 0,
"selected": false,
"text": "{12, 15} const password = r\"dsjRK@#RDsk34$SwedfQWDF\";\n if (!RegExp(r'[a-z]').hasMatch(password)) {\n... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17411396/"
] |
74,546,438 | <p>I have a file with following lines:</p>
<pre><code>2022-Nov-23
2021-Jul-14
</code></pre>
<p>I want to replace the month with its number, my script should accept the date as an argument, and I added these variables to it:</p>
<pre><code>Jan=01
Feb=02
Mar=03
Apr=04
May=05
Jun=06
Jul=07
Aug=08
Sep=09
Oct=10
Nov=11
Dec=... | [
{
"answer_id": 74546577,
"author": "Robert Sandberg",
"author_id": 13263384,
"author_profile": "https://Stackoverflow.com/users/13263384",
"pm_score": 0,
"selected": false,
"text": "{12, 15} const password = r\"dsjRK@#RDsk34$SwedfQWDF\";\n if (!RegExp(r'[a-z]').hasMatch(password)) {\n... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11586574/"
] |
74,546,453 | <p>I have inputs like 999,9999,10999. I want to replace first digits except last two by XXX in angular template.
That is 999 should become X99,9999 should XX99 and 10999 should XXX99.</p>
<p>How to do that is there any pipe?</p>
| [
{
"answer_id": 74546536,
"author": "Chaitanya Karmarkar",
"author_id": 12182265,
"author_profile": "https://Stackoverflow.com/users/12182265",
"pm_score": 0,
"selected": false,
"text": "import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'xMask'\n})\nexport class XMa... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546453",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12182265/"
] |
74,546,455 | <p>When looking for a secure random password generator in Python I came across this script:</p>
<pre><code># necessary imports
import secrets
import string
# define the alphabet
letters = string.ascii_letters
digits = string.digits
special_chars = string.punctuation
alphabet = letters + digits + special_chars
# fix ... | [
{
"answer_id": 74546536,
"author": "Chaitanya Karmarkar",
"author_id": 12182265,
"author_profile": "https://Stackoverflow.com/users/12182265",
"pm_score": 0,
"selected": false,
"text": "import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'xMask'\n})\nexport class XMa... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10006567/"
] |
74,546,461 | <p>So i have this inside a text file :</p>
<p><code>"00:00:25,58 --> 00:00:27,91 (DRAMATIC MUSIC PLAYING)"</code></p>
<p>I want to remove characters inside and including the braces itself so :</p>
<p><code>"00:00:25,58 --> 00:00:27,91 "</code></p>
<pre><code>
eng_sub = open(text).read()
eng_su... | [
{
"answer_id": 74546536,
"author": "Chaitanya Karmarkar",
"author_id": 12182265,
"author_profile": "https://Stackoverflow.com/users/12182265",
"pm_score": 0,
"selected": false,
"text": "import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'xMask'\n})\nexport class XMa... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546461",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20581562/"
] |
74,546,474 | <p>I need to flat arrays but i can't to use flat().</p>
<p>First check example of my arrays</p>
<pre><code>let arr = [
['test1' , 'test1'],
['test2' , 'test2'],
['test3', true],
['test4' , false]
];
</code></pre>
<p>What is problem here?</p>
<p>I need to get only first item 'test1' , 'test2', 'test3', 'test4' and p... | [
{
"answer_id": 74546489,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 0,
"selected": false,
"text": "Array.map() Array.flat() let arr = [\n ['test1' , 'test1'],\n ['test2' , 'test2'],\n ['test3', true],\n ['test4' ,... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20448930/"
] |
74,546,493 | <p>I am managing around 12 TYPO3 backends with almost similar content. Is it possible to copy and paste a created site between independent backends? Right now I'm creating by hand 12 sites with the same content. There has to be an easier way.</p>
<p>Well, there is not much I could try. Within TYPO3 I don't see any opti... | [
{
"answer_id": 74546871,
"author": "Bernd Wilke πφ",
"author_id": 6796354,
"author_profile": "https://Stackoverflow.com/users/6796354",
"pm_score": 0,
"selected": false,
"text": "fileadmin/ uploads/ typo3conf/ typo3conf/LocalConfiguration.php typo3conf/AdditionalConfiguration.php"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546493",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20581665/"
] |
74,546,501 | <p>I'm trying to replace an array in a JSON file using C# .net 6.0</p>
<p>There is such a JSON file:</p>
<pre><code>{
...
"exchange":{
...
"pair_whitelist": [
"EOS3S/USDT",
"ACH/USDT",
"SOC/USDT"]
...
}
...
}
</code></pre>
<p>I want to replace this &qu... | [
{
"answer_id": 74546571,
"author": "Prasad Telkikar",
"author_id": 6299857,
"author_profile": "https://Stackoverflow.com/users/6299857",
"pm_score": 3,
"selected": true,
"text": "JObject.Parse() JObject jObject = JObject.Parse(File.ReadAllText(path_to_JSON_file));\n\nif(jObject[\"exchang... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546501",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7479675/"
] |
74,546,505 | <p>In the main component I want to pass the title and price via props, why doesn't it work?</p>
<p>What did I miss?</p>
<p><a href="https://i.stack.imgur.com/pTjDm.png" rel="nofollow noreferrer">enter image description here</a></p>
<p><a href="https://i.stack.imgur.com/JwxaG.png" rel="nofollow noreferrer">enter image d... | [
{
"answer_id": 74546571,
"author": "Prasad Telkikar",
"author_id": 6299857,
"author_profile": "https://Stackoverflow.com/users/6299857",
"pm_score": 3,
"selected": true,
"text": "JObject.Parse() JObject jObject = JObject.Parse(File.ReadAllText(path_to_JSON_file));\n\nif(jObject[\"exchang... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20419637/"
] |
74,546,524 | <p>I'm working through a task where I need to bind a few survey datasets, but unfortunately the survey questions are inconsistently numbered (wording is consistent). To solve this, I want to drop the question number from the start of each question.</p>
<p>Currently I am doing this manually with <code>rename()</code>, b... | [
{
"answer_id": 74546691,
"author": "Chris Ruehlemann",
"author_id": 8039978,
"author_profile": "https://Stackoverflow.com/users/8039978",
"pm_score": 2,
"selected": false,
"text": "rename_with sub df1 %>%\n rename_with(~ sub(\"^X\\\\d\\\\.\\\\.\", \"\", .))\n ID First.Question Second... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18878494/"
] |
74,546,534 | <p>I have a bigger app named X and I have another smaller one named Y.
they are right now separate from each other and they are working fine.
I want to integrate app Y in X. I want to put codes of Y in X project but they should have a different Main so I can set different themes and routes.
Is there anyway to do that?<... | [
{
"answer_id": 74546684,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 3,
"selected": true,
"text": "MaterialApp() InheritedWidget Theme Navigator MediaQuery /*...*/\n MaterialApp(\n /*...*/\n home: AppXHome(),\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14729488/"
] |
74,546,557 | <p>I would like to copy all files from a folder in my docker build context. The files in the folder are mixed with different owners and groups (e.g. UID=400 GUID=800 etc.), which I need to preserve (I also need to preserve timestamps, etc.)</p>
<p>So basically I need a 1:1 copy of the files to my docker image.</p>
<p>W... | [
{
"answer_id": 74546684,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 3,
"selected": true,
"text": "MaterialApp() InheritedWidget Theme Navigator MediaQuery /*...*/\n MaterialApp(\n /*...*/\n home: AppXHome(),\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1176008/"
] |
74,546,563 | <p>So, i am running a java project which have many library that are available in the current working directory but VS code seems to not recognize these library and giving out error "The import ###### cannot be resolved" ex: The import org.apache.pdfbox.pdmodel.PDDocument cannot be resolved"</p>
<p>here i... | [
{
"answer_id": 74556153,
"author": "JialeDu",
"author_id": 19133920,
"author_profile": "https://Stackoverflow.com/users/19133920",
"pm_score": 0,
"selected": false,
"text": "java.project.referencedLibraries \"java.project.referencedLibraries\": [\n \"library/**/*.jar\",\n \"/home/u... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16325891/"
] |
74,546,581 | <p>I'm trying to send a message to my group at defined time intervals, but I get a warning in the output the first time I try to send the message. Next times no warning, but nothing is posted in the group. I'm the owner of the group so in theory there shouldn't be any permissions issues.</p>
<p><strong>Code</strong></p... | [
{
"answer_id": 74546733,
"author": "Dan Nagle",
"author_id": 2202018,
"author_profile": "https://Stackoverflow.com/users/2202018",
"pm_score": -1,
"selected": false,
"text": "try:\n client = TelegramClient(...)\n client.start()\nexcept Exception as e:\n print(f\"Exception while ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13846064/"
] |
74,546,696 | <p>So, i have been trying to build a python number guessing game. I am new, and i can't figure out how i add +1 to my chance variable. I have tried +=1 like here but it always shows 1 as the output no matter what. And i know that there is a lot of things wrong with this code but, keep in mind that i am new to coding.</... | [
{
"answer_id": 74546780,
"author": "Noah",
"author_id": 14028308,
"author_profile": "https://Stackoverflow.com/users/14028308",
"pm_score": 0,
"selected": false,
"text": "import random\n\nnumbers = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10\nuser = None\nhidden = random.choice(numbers)\n\nprint(\"Wel... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20581655/"
] |
74,546,712 | <p>I have a recurring problem in SQL queries, that I haven't been able to solve elegantly, neither in raw SQL or the Django ORM, and now I'm faced with it in EntityFramework as well. It is probably common enough to have its own name, but I don't know it.</p>
<p>Say, I have a simple foreign key relationship between two ... | [
{
"answer_id": 74553824,
"author": "JHH",
"author_id": 20127235,
"author_profile": "https://Stackoverflow.com/users/20127235",
"pm_score": 2,
"selected": false,
"text": "group by having Tag 1 Tag 2 with cte_tags as (\nselect book_id\n from tags\n where tag in ('Tag 1', 'Tag 2')\n group ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546712",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1600533/"
] |
74,546,731 | <p>So I'm trying to lexicographically sort this collection but with no success. The same unsorted collection is in the input and the output of the sort method.</p>
<pre><code>class Person {
private String privateName;
private String lastName;
public Person(String privateName, String lastName) {
... | [
{
"answer_id": 74546794,
"author": "OH GOD SPIDERS",
"author_id": 6073886,
"author_profile": "https://Stackoverflow.com/users/6073886",
"pm_score": 3,
"selected": true,
"text": "public static void main(final String[] args) {\n final List<Person> people = new ArrayList<>();\n \n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16076953/"
] |
74,546,763 | <p>I get a String of the format
<code><num-num-num><num-num-num><num-num-num></code>. I want to turn this into a nested Array of Ints with each Array being the content between the <code><></code>.</p>
<p>This is what I got so far:</p>
<pre class="lang-java prettyprint-override"><code>String para... | [
{
"answer_id": 74546913,
"author": "Thomas",
"author_id": 637853,
"author_profile": "https://Stackoverflow.com/users/637853",
"pm_score": 3,
"selected": true,
"text": "\"<num-num-num><num-num-num><num-num-num>\" \"num-num-num\" \"><\" \"-\" String input = \"<11-12-13><21-22-23><31-32-33>... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12299738/"
] |
74,546,776 | <p>I have pairs of images of the same 2D object with very minor diferences. The two images of a pair have two reference points (a star [x_s,y_s] and an arrow-head [x_a,y_a]) as shown below:</p>
<p><img src="https://i.stack.imgur.com/GjEDx.png" alt="The Image Pair" /></p>
<p>I have written a Python script to align one i... | [
{
"answer_id": 74546913,
"author": "Thomas",
"author_id": 637853,
"author_profile": "https://Stackoverflow.com/users/637853",
"pm_score": 3,
"selected": true,
"text": "\"<num-num-num><num-num-num><num-num-num>\" \"num-num-num\" \"><\" \"-\" String input = \"<11-12-13><21-22-23><31-32-33>... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5509436/"
] |
74,546,782 | <p>I have a treeview with the following columns:</p>
<pre><code>self.columns = ("Name", "Status", "Activity")
</code></pre>
<p>This treeview is updated depending on the socket message and client name it receives. If the program receives "NAME:", it will insert a new row in the tr... | [
{
"answer_id": 74546913,
"author": "Thomas",
"author_id": 637853,
"author_profile": "https://Stackoverflow.com/users/637853",
"pm_score": 3,
"selected": true,
"text": "\"<num-num-num><num-num-num><num-num-num>\" \"num-num-num\" \"><\" \"-\" String input = \"<11-12-13><21-22-23><31-32-33>... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6541346/"
] |
74,546,793 | <p>I'm trying three js with OBJ files, but it does not get rendered on the screen, can someone please help me with this issue? is there something obvious I'm missing?</p>
<p>On the other hand, a geometric cube renders perfectly.</p>
<p><em><strong>OBJ file can be downloaded here</strong></em>: <a href="https://free3d.... | [
{
"answer_id": 74546913,
"author": "Thomas",
"author_id": 637853,
"author_profile": "https://Stackoverflow.com/users/637853",
"pm_score": 3,
"selected": true,
"text": "\"<num-num-num><num-num-num><num-num-num>\" \"num-num-num\" \"><\" \"-\" String input = \"<11-12-13><21-22-23><31-32-33>... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15026611/"
] |
74,546,818 | <p>My application is a VueJS frontend and a Laravel Backend API. I want to subscribe to Binance API WebSocket but I'm unsure how to do it.</p>
<p>Any ideas?
I'm talking about the high level design of it. I was not able to find a way to listen to a WebSocket from the backend in Laravel.</p>
<ul>
<li>FYI, I've already se... | [
{
"answer_id": 74546913,
"author": "Thomas",
"author_id": 637853,
"author_profile": "https://Stackoverflow.com/users/637853",
"pm_score": 3,
"selected": true,
"text": "\"<num-num-num><num-num-num><num-num-num>\" \"num-num-num\" \"><\" \"-\" String input = \"<11-12-13><21-22-23><31-32-33>... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546818",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14156743/"
] |
74,546,844 | <p>I have a child component that gets a year list from parent, and needs to style an element if that list contains the current year.</p>
<p><strong>The child ts</strong>:</p>
<pre><code>export class ChildComponent implements OnInit {
@Input() listYears: Array<number> = [];
year = 2022;
constructor() { }
... | [
{
"answer_id": 74547006,
"author": "Avraham Weinstein",
"author_id": 8938503,
"author_profile": "https://Stackoverflow.com/users/8938503",
"pm_score": 2,
"selected": true,
"text": "Pipe pipe @Pipe({\n name: 'existInList'\n})\nexport class ExistInListPipe implements PipeTransform {\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546844",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3345721/"
] |
74,546,848 | <p>I'm trying to use LINQ in a C# (Polyglot Notebook).</p>
<pre class="lang-cs prettyprint-override"><code>using System.Linq;
Environment.GetEnvironmentVariables().Values.Select(x => x)
</code></pre>
<p>But I'm getting the error:</p>
<blockquote>
<p>Error: (3,46): error CS1061: 'ICollection' does not contain a defi... | [
{
"answer_id": 74547006,
"author": "Avraham Weinstein",
"author_id": 8938503,
"author_profile": "https://Stackoverflow.com/users/8938503",
"pm_score": 2,
"selected": true,
"text": "Pipe pipe @Pipe({\n name: 'existInList'\n})\nexport class ExistInListPipe implements PipeTransform {\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/201482/"
] |
74,546,853 | <p>I am fitting an example model in SAS:</p>
<pre><code>proc mixed data = pat_ehp30 method = reml;
class trt_group AssNo stage_endo_cat opinofsurg age_cat larc_selection larc_decision recruitcent;
model infertile = trt_group AssNo AssNo * trt_group infertile0 stage_endo_cat opinofsurg age_cat larc_selection lar... | [
{
"answer_id": 74547006,
"author": "Avraham Weinstein",
"author_id": 8938503,
"author_profile": "https://Stackoverflow.com/users/8938503",
"pm_score": 2,
"selected": true,
"text": "Pipe pipe @Pipe({\n name: 'existInList'\n})\nexport class ExistInListPipe implements PipeTransform {\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19414769/"
] |
74,546,862 | <p>I have this query
`</p>
<pre><code>CREATE TABLE Commitment_fees
(user_id INT PRIMARY KEY AUTO_INCREMENT,
amount INT,
success INT,
date DATE);
ALTER TABLE Commitment_fees AUTO_INCREMENT=1000;
INSERT INTO Commitment_fees (amount, success, date)
VALUES
(1000, 1, '2021-01-01'),
(1010, 0... | [
{
"answer_id": 74547006,
"author": "Avraham Weinstein",
"author_id": 8938503,
"author_profile": "https://Stackoverflow.com/users/8938503",
"pm_score": 2,
"selected": true,
"text": "Pipe pipe @Pipe({\n name: 'existInList'\n})\nexport class ExistInListPipe implements PipeTransform {\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14354411/"
] |
74,546,863 | <p>I want to display some images with matplotlib with <code>fig.add_subplot</code> but for some attempts I faced some errors like below:</p>
<pre><code>Traceback (most recent call last):
File "/home/---/Documents/---/---/dataset.py", line 134, in <module>
display_dicom(dicom,target["mask"... | [
{
"answer_id": 74547544,
"author": "ImotVoksim",
"author_id": 17580723,
"author_profile": "https://Stackoverflow.com/users/17580723",
"pm_score": -1,
"selected": false,
"text": "fig, axes = plt.subplots(nrows = rows, ncols = cols, figsize = (10, 10)) axes .imshow axes nrows x ncols"
},... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19970856/"
] |
74,546,866 | <p>I have a utility class:</p>
<p>utils.ts</p>
<pre><code>import axios, { AxiosResponse } from 'axios';
import { throwError } from 'rxjs';
axios.defaults.withCredentials = true;
axios.defaults.responseType = 'json';
export class UserUtils {
public updateUserData(data) {
return axios.post('http://mock.res... | [
{
"answer_id": 74547544,
"author": "ImotVoksim",
"author_id": 17580723,
"author_profile": "https://Stackoverflow.com/users/17580723",
"pm_score": -1,
"selected": false,
"text": "fig, axes = plt.subplots(nrows = rows, ncols = cols, figsize = (10, 10)) axes .imshow axes nrows x ncols"
},... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2244072/"
] |
74,546,885 | <p>I have a dataframe like this:</p>
<p><code>Name= letters[1:5]</code></p>
<p><code>Amount <- c(1, 4, 9, 2, 0)</code></p>
<p><code>df <- data.frame(Name, Amount)</code></p>
<p>The problem is I have to print a pair of consecutive <strong>Name</strong> that the <strong>Amount</strong> of the name after is the most... | [
{
"answer_id": 74547544,
"author": "ImotVoksim",
"author_id": 17580723,
"author_profile": "https://Stackoverflow.com/users/17580723",
"pm_score": -1,
"selected": false,
"text": "fig, axes = plt.subplots(nrows = rows, ncols = cols, figsize = (10, 10)) axes .imshow axes nrows x ncols"
},... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20552762/"
] |
74,546,896 | <p>df1:</p>
<pre><code>**Tarif von bis GK**
FedEx 0.0 1.0 G001
FedEx 1.0 2.0 G002
...
DHL. 0.0 0.5 G001
DHL. 0.5 1.0 G002
...
DPD 0.0 5.0 G001
DPD 5.0 10.0 G002
</code></pre>
<p>df2:</p>
<pre><code>**Tarif Weight GK**
FedEx 0.6
DHL 0.6
FedEx 0.5
D... | [
{
"answer_id": 74546955,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 0,
"selected": false,
"text": "merge_asof (pd.merge_asof(df2.reset_index().drop(columns='GK', errors='ignore')\n .sort_values(by=... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20581767/"
] |
74,546,910 | <p>I have an enumerable <code>t</code> of items that expose a property <code>X</code> which is an integer.<br />
I would like to count the number of elements with <code>X < 0</code>, <code>X == 0</code> and <code>X > 0</code>.<br />
Sure I can fire three statements like this:</p>
<pre class="lang-csharp prettypri... | [
{
"answer_id": 74547073,
"author": "Tim Schmelter",
"author_id": 284240,
"author_profile": "https://Stackoverflow.com/users/284240",
"pm_score": 2,
"selected": false,
"text": "ToLookup GroupBy ToDictionary var xLookup = t.ToLookup(x => Math.Sign(x.X)); // Sign returns -1, 0 or 1\nint neg... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17376447/"
] |
74,546,938 | <pre><code> <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<div>
<ul id="freelancer">
<li class=&... | [
{
"answer_id": 74547002,
"author": "Butch",
"author_id": 7680976,
"author_profile": "https://Stackoverflow.com/users/7680976",
"pm_score": 0,
"selected": false,
"text": "querySelector() querySelectorAll() const activeLi = querySelectorAll('li.active')\n"
},
{
"answer_id": 7454714... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10894717/"
] |
74,546,944 | <p>I am working on a project and I have to fetch '6596626' from the source code of url= "https://www.screener.in/company/ITC/consolidated/".
The value is not visible on web page making it difficult to extract using xpath.
The below code is a part of page's source code which has the value which I want to extra... | [
{
"answer_id": 74547605,
"author": "baduker",
"author_id": 6106791,
"author_profile": "https://Stackoverflow.com/users/6106791",
"pm_score": 1,
"selected": true,
"text": "data-warehouse-id HTML import re\n\nimport requests\n\ndata_id = (\n re.search(\n r'data-warehouse-id=\\\"(... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20575915/"
] |
74,546,960 | <p>I need to create an dynamic link to to hyperlink a string so that anybody clicks on that string it opens the lin related to that day. For example if someone clicks today it will open this link. <a href="https://sobbanglay.com/sob/history-today-november-23/" rel="nofollow noreferrer">https://sobbanglay.com/sob/histor... | [
{
"answer_id": 74547240,
"author": "Brok3r",
"author_id": 19534834,
"author_profile": "https://Stackoverflow.com/users/19534834",
"pm_score": 2,
"selected": true,
"text": "<a href=\"https://sobbanglay.com/sob/history-today-january-01/\" id=\"link\">As it happened on today</a><script>\nva... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20581871/"
] |
74,546,962 | <p>I have a class and a nested class in C++ and they are both generic classes.</p>
<pre><code>#define GENERIC template<typename T>
GENERIC
class Class1 final{
private:
GENERIC
class Class2 final{
private:
T class2Field{};
};
T class1Field{};
};
</code></pre>
<p>I want to pass the... | [
{
"answer_id": 74547037,
"author": "Stack Danny",
"author_id": 6039995,
"author_profile": "https://Stackoverflow.com/users/6039995",
"pm_score": 3,
"selected": true,
"text": "Class2 Class1 Class1 T template<typename T>\nclass Class1 final {\nprivate:\n class Class2 final {\n privat... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546962",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19345796/"
] |
74,546,973 | <p>I have a problem where I want to pass a parameter in the url, in this case "id". But when I click on the url it returns a 404 error. The route exists and this
is the code.</p>
<p><em>Web.php</em></p>
<pre><code>Route::get('/chat/{id}', [App\Http\Controllers\AppController::class, 'chat'])->name('chat');
... | [
{
"answer_id": 74547103,
"author": "Erhan URGUN",
"author_id": 9476192,
"author_profile": "https://Stackoverflow.com/users/9476192",
"pm_score": 0,
"selected": false,
"text": "<?php\n\n// Path: routes/web.php\nuse App\\Http\\Controllers\\AppController;\n\nRoute::get('/chat/{id}', [AppCon... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20581972/"
] |
74,546,974 | <p>I am analysing a "classic" Hibernate error :</p>
<p><code>org.hibernate.LazyInitializationException : could not initialize proxy – no Session.</code></p>
<p>I am wondering how it could happen whereas the Spring Open In View mode is enabled?</p>
<p>If you have any documentation or knowledge on a possible re... | [
{
"answer_id": 74550057,
"author": "Panagiotis Bougioukos",
"author_id": 7237884,
"author_profile": "https://Stackoverflow.com/users/7237884",
"pm_score": 0,
"selected": false,
"text": "@Transactional controller jackson entity json"
},
{
"answer_id": 74558076,
"author": "Guil... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546974",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5035345/"
] |
74,546,978 | <p>i am trying to get the value of the selected option but i couldn't, any help:</p>
<p>i am pretty new to JavaScript</p>
<p>help is very appreciated.</p>
<p>here is my code</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snip... | [
{
"answer_id": 74547052,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 0,
"selected": false,
"text": "checkOverallRating() let overall = document.querySelector('select');\n let overallValue = overall.options[o... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16994887/"
] |
74,546,982 | <p>I need to get the largest and the smallest number out of three using two functions. I assigned the inputted numbers to the function parameters and wrote the functions but I don't seem to be getting the value returned from the function. Code compiles and prints correctly but instead of the smallest and largest number... | [
{
"answer_id": 74547052,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 0,
"selected": false,
"text": "checkOverallRating() let overall = document.querySelector('select');\n let overallValue = overall.options[o... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20581931/"
] |
74,546,991 | <p>I'm trying to get the length of many nested objects with dynamic keys in an array as the below:</p>
<p>Input:</p>
<pre><code>{
"a": {
"deptAS": [
{...}
],
"deptDr": [
{...},
{...},
{...},
{...},
{...},
{...}
],
"deptES... | [
{
"answer_id": 74547120,
"author": "Nina Scholz",
"author_id": 1447675,
"author_profile": "https://Stackoverflow.com/users/1447675",
"pm_score": 2,
"selected": false,
"text": "const\n data = { a: { deptAS: [{}], deptDr: [{}, {}, {}, {}, {}, {}], deptES: [{}, {}], deptGW: [{}] }, b: { ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74546991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20581768/"
] |
74,547,020 | <p><strong>TLDR;</strong></p>
<p>I have a react-native mobile application which needs to receive a file shared by ther other application.</p>
<p><strong>Details:</strong></p>
<p>I am trying to receive this file inside my own application. And since I am new to React/React-native/Expo/Android development I am not sure ho... | [
{
"answer_id": 74547120,
"author": "Nina Scholz",
"author_id": 1447675,
"author_profile": "https://Stackoverflow.com/users/1447675",
"pm_score": 2,
"selected": false,
"text": "const\n data = { a: { deptAS: [{}], deptDr: [{}, {}, {}, {}, {}, {}], deptES: [{}, {}], deptGW: [{}] }, b: { ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5462398/"
] |
74,547,036 | <p>I like to create scenarios in my code where I declare a static global struct inside a .c file that everyone will share, it contains configuration stuff. Right underneath the declaration, I'll create a constant pointer to this struct and put this in the .h file so that everyone can get access to it.</p>
<p>Sometimes,... | [
{
"answer_id": 74547120,
"author": "Nina Scholz",
"author_id": 1447675,
"author_profile": "https://Stackoverflow.com/users/1447675",
"pm_score": 2,
"selected": false,
"text": "const\n data = { a: { deptAS: [{}], deptDr: [{}, {}, {}, {}, {}, {}], deptES: [{}, {}], deptGW: [{}] }, b: { ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547036",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11019890/"
] |
74,547,044 | <p>I have nested arrays which contain a data string value and number value for a period of time. I want to be able to loop through these to find out which month has highest amount sales by comparing one month another e.g jan > feb, feb - march, march to april etc... and produce output which states JAN 500 or somethi... | [
{
"answer_id": 74547120,
"author": "Nina Scholz",
"author_id": 1447675,
"author_profile": "https://Stackoverflow.com/users/1447675",
"pm_score": 2,
"selected": false,
"text": "const\n data = { a: { deptAS: [{}], deptDr: [{}, {}, {}, {}, {}, {}], deptES: [{}, {}], deptGW: [{}] }, b: { ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547044",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20581800/"
] |
74,547,050 | <p>I'm newbie in Java and wanna ask you question. Let's imagine the situation. I generate account for testing purposes using API and in response I get line e.g. such as:</p>
<pre><code>{
"accountId": "42515896"
}
</code></pre>
<p>How could I write method that will take this "42515896" fro... | [
{
"answer_id": 74547191,
"author": "Pekinek",
"author_id": 5198144,
"author_profile": "https://Stackoverflow.com/users/5198144",
"pm_score": 1,
"selected": false,
"text": "String jsonString = \"{'accountId': '42515896'}\";\nObjectMapper mapper = new ObjectMapper();\nJsonNode actualObj = ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16042806/"
] |
74,547,069 | <p>I want to define a complete SQL statement condition after <code>where</code> through the linking implementation of string, because I am not sure how many conditions after <code>where</code> there are.</p>
<pre><code>for (int i = 0; i < listView2.Items.Count; i++)
{
if (!is_first)
{
para += "m... | [
{
"answer_id": 74547332,
"author": "Steve",
"author_id": 1197518,
"author_profile": "https://Stackoverflow.com/users/1197518",
"pm_score": 3,
"selected": true,
"text": "StringBuilder inText = new StringBuilder();\nList<SqlParameter> prms = new List<SqlParameter>();\nfor(int i = 0; i < l... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547069",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20485257/"
] |
74,547,096 | <p>I want to start my app.jar (Spring Boot) using other properties by providing some yaml files e.g. in folders</p>
<pre><code>/opt/app/app1/application1.yaml
/opt/app/app2/application2.yaml
/opt/app/app3/application3.yaml
</code></pre>
<p>Each yaml is for one app configuration.</p>
<p>Is there any way to give the new ... | [
{
"answer_id": 74547332,
"author": "Steve",
"author_id": 1197518,
"author_profile": "https://Stackoverflow.com/users/1197518",
"pm_score": 3,
"selected": true,
"text": "StringBuilder inText = new StringBuilder();\nList<SqlParameter> prms = new List<SqlParameter>();\nfor(int i = 0; i < l... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7762344/"
] |
74,547,128 | <p>I need to create a AWS container with ECS. However, I don't have programatic access for push the image in the ECR repository and I don't found other way to create a container.</p>
<p>My question is: Is there another way to create a container without programatic access?</p>
<p>I found a way to upload the image in Ama... | [
{
"answer_id": 74547332,
"author": "Steve",
"author_id": 1197518,
"author_profile": "https://Stackoverflow.com/users/1197518",
"pm_score": 3,
"selected": true,
"text": "StringBuilder inText = new StringBuilder();\nList<SqlParameter> prms = new List<SqlParameter>();\nfor(int i = 0; i < l... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19362097/"
] |
74,547,141 | <p>Lets say I have function that triggers when table is being updated. Then it tries to send this data as json into remote database via dblink:</p>
<pre><code>statement := 'INSERT INTO mytable(my_data) VALUES (''' || my_json || ''')';
PERFORM dblink('my connection data', statement);
</code></pre>
<p><code>my_json </cod... | [
{
"answer_id": 74547332,
"author": "Steve",
"author_id": 1197518,
"author_profile": "https://Stackoverflow.com/users/1197518",
"pm_score": 3,
"selected": true,
"text": "StringBuilder inText = new StringBuilder();\nList<SqlParameter> prms = new List<SqlParameter>();\nfor(int i = 0; i < l... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3003432/"
] |
74,547,190 | <p>jdk 11 was fine on my mac os Mojave. On upgrading to Mac OS Ventura, I started seeing this popup error:</p>
<p><a href="https://i.stack.imgur.com/yoPkq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yoPkq.png" alt="enter image description here" /></a></p>
<p>openjdk-11.0.2 is damaged and can't be... | [
{
"answer_id": 74563141,
"author": "user674669",
"author_id": 674669,
"author_profile": "https://Stackoverflow.com/users/674669",
"pm_score": 0,
"selected": false,
"text": "/Library/Java/JavaVirtualMachines/\n /usr/local/Cellar/\n brew install openjdk@11\n"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/674669/"
] |
74,547,236 | <p>Given a <code>std::chrono::sys_seconds time</code>, one might expect to reassign <code>time</code> from its clock with something like:</p>
<pre class="lang-cpp prettyprint-override"><code>time = decltype(time)::clock::now();
</code></pre>
<p>However, this would likely fail, because <code>decltype(time)::clock::durat... | [
{
"answer_id": 74563141,
"author": "user674669",
"author_id": 674669,
"author_profile": "https://Stackoverflow.com/users/674669",
"pm_score": 0,
"selected": false,
"text": "/Library/Java/JavaVirtualMachines/\n /usr/local/Cellar/\n brew install openjdk@11\n"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12861639/"
] |
74,547,254 | <pre><code>DATA = data.frame(STUDENT = c(1,1,1,1,1,1,2,2,2,2,2, 3,3,3),
YEAR = c(2000, 2000, 2000, 2001, 2001, 2001, 2000, 2000, 2001, 2001, 2001, 2001, 2001, 2001),
TRIMESTER= c(1,2,3,1,2,3,2,3,1,2,3,1,2,3),
SCORE = c(5,7,8,9,10,3,4,6,3,1,2,3,6, 9),
... | [
{
"answer_id": 74547298,
"author": "nd37255",
"author_id": 12710567,
"author_profile": "https://Stackoverflow.com/users/12710567",
"pm_score": 3,
"selected": true,
"text": "library(tidyverse)\n\nDATA = data.frame(STUDENT = c(1,1,1,1,1,1,2,2,2,2,2, 3,3,3),\n YEAR = c(2000... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5619171/"
] |
74,547,307 | <p>The objective:
I have a package with submodules that I would like to be accessible in the most straightforward way possible. <strong>The submodules contain classes</strong> to take advantage of the class structure, but don't need to be initialized (as they contain static and class methods). So, ideally, I would like... | [
{
"answer_id": 74547298,
"author": "nd37255",
"author_id": 12710567,
"author_profile": "https://Stackoverflow.com/users/12710567",
"pm_score": 3,
"selected": true,
"text": "library(tidyverse)\n\nDATA = data.frame(STUDENT = c(1,1,1,1,1,1,2,2,2,2,2, 3,3,3),\n YEAR = c(2000... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6759015/"
] |
74,547,365 | <p>I am faced with a challenge.</p>
<p>I have an Python method implemented and the SonarLint plugin of my PyCharm warns me with the message: "Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed." but I can't see how to reduce the complexity.</p>
<p>My Python method is:</p>
<pre... | [
{
"answer_id": 74547546,
"author": "Manuel González Costa",
"author_id": 15476816,
"author_profile": "https://Stackoverflow.com/users/15476816",
"pm_score": 2,
"selected": true,
"text": " def position(key: str) -> (int, None):\n char_map = {\n 'a': 0,\n 'b': 1,\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15476816/"
] |
74,547,370 | <p>I have an array of objects but I only want to loop through the first 5 objects and break, whats the best way to do that.</p>
<pre><code>[
{"visibility": 10000,},
{"visibility": 10000,},
{"visibility": 30000,},
{"visibility": 40000,},
{"visibility": 10000,},... | [
{
"answer_id": 74547546,
"author": "Manuel González Costa",
"author_id": 15476816,
"author_profile": "https://Stackoverflow.com/users/15476816",
"pm_score": 2,
"selected": true,
"text": " def position(key: str) -> (int, None):\n char_map = {\n 'a': 0,\n 'b': 1,\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15018590/"
] |
74,547,393 | <p>I have an array</p>
<pre><code>errorPriority: string[] = ['shippingError', 'paymentInfoError', 'generalError'];
</code></pre>
<p>I need a function call to be looped on every element of array, but somehow after executing function for first element 'shippingError', the loop stops. Below is the function call</p>
<pre><... | [
{
"answer_id": 74547492,
"author": "Paul-Marie",
"author_id": 9603417,
"author_profile": "https://Stackoverflow.com/users/9603417",
"pm_score": 0,
"selected": false,
"text": "void getErrorData = (value) => {\n if (eval(this.objectPath[value]) && eval(this.objectPath[value]).length) {\... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17134599/"
] |
74,547,400 | <p>I tried to call a function for every attribute (column) that I want to read from 4 .txt files and then write into a .csv file. One column has flawed output and the code should have a few logic flaws as I haven't learned batch cleanly from scratch. Do you know a fix?</p>
<p>Link to previous solved question: <a href="... | [
{
"answer_id": 74547492,
"author": "Paul-Marie",
"author_id": 9603417,
"author_profile": "https://Stackoverflow.com/users/9603417",
"pm_score": 0,
"selected": false,
"text": "void getErrorData = (value) => {\n if (eval(this.objectPath[value]) && eval(this.objectPath[value]).length) {\... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20374919/"
] |
74,547,414 | <p>So my json data is coming as string like following:</p>
<pre><code> { "name":"aaa", "sub": "{"x":"sss", "y":"eee"}" }
</code></pre>
<p>Sub field is a raw json string here.</p>
<p>My model is like following.</p>
<pre><code> cla... | [
{
"answer_id": 74547560,
"author": "David",
"author_id": 328193,
"author_profile": "https://Stackoverflow.com/users/328193",
"pm_score": 0,
"selected": false,
"text": "sub Sub Sub class Main\n{\n public string Name { get;set; }\n public string Sub { get;set; }\n}\n var mainObj = Js... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/694716/"
] |
74,547,457 | <p>I want to centre all of the content of my cards but it's all going to the right side</p>
<p>my card code:</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-html lang-html prettyprint-override"><code><!doctype ... | [
{
"answer_id": 74547697,
"author": "MarioG8",
"author_id": 13705979,
"author_profile": "https://Stackoverflow.com/users/13705979",
"pm_score": 2,
"selected": true,
"text": "text-center card <div class=\"card text-center bg-light\" style=\"width: 18rem;\">\n <!doctype html>\n<html lang=\"... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20387575/"
] |
74,547,471 | <p>I have typed out the following code.</p>
<pre><code>la = [1,[2,[3,[4]]]]
lb = [la[1], la[1][1]]
print(la)
lb[0][1]=9
print(la)
</code></pre>
<p>I was expecting la to remain as in the original first line, but it changed as shown below.</p>
<pre><code>[1, [2, [3, [4]]]]
[1, [2, 9]]
</code></pre>
<p>Does this have... | [
{
"answer_id": 74547545,
"author": "Aymen",
"author_id": 5165980,
"author_profile": "https://Stackoverflow.com/users/5165980",
"pm_score": 0,
"selected": false,
"text": "copy() lb = [la[1].copy(), la[1][1].copy()]\n"
},
{
"answer_id": 74547655,
"author": "Fra93",
"author_... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19728078/"
] |
74,547,478 | <p>I am dealing with the dataframe where some of the rows have no value inside just like a below dataframe (look at the third row). The picture below shows only one row which does not have any value but total I have lot of rows in which one or two of their column does not have any value. I want to delete such kind of r... | [
{
"answer_id": 74547545,
"author": "Aymen",
"author_id": 5165980,
"author_profile": "https://Stackoverflow.com/users/5165980",
"pm_score": 0,
"selected": false,
"text": "copy() lb = [la[1].copy(), la[1][1].copy()]\n"
},
{
"answer_id": 74547655,
"author": "Fra93",
"author_... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17289097/"
] |
74,547,489 | <p>I want to pass a class to a function and infer the keys of the class but it doesn't work:</p>
<pre><code>class Foo {
bar: string;
}
function foo<C>(comp: C, key: keyof C) {
}
foo(Foo, '') // expecting to get bar here, but I'm getting the prototype key
</code></pre>
<p>When I use it as a type, it works:</p... | [
{
"answer_id": 74547557,
"author": "captain-yossarian from Ukraine",
"author_id": 8495254,
"author_profile": "https://Stackoverflow.com/users/8495254",
"pm_score": 3,
"selected": true,
"text": "bar bar bar Foo bar InstanceType class Foo {\n bar: string = ''\n}\ntype AnyClass = new (...a... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547489",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7330592/"
] |
74,547,506 | <p>I need to set a Field with a decimal? value, if doesn't have value it should show the "-".</p>
<p>I tried use this code:</p>
<p><code>Field="@(nameof(this.DataDTO.EventDefaultValue > 0 ? this.DataDTO.EventDefaultValue.ToString("F2") : "-"))"/></code></p>
<p>But doesn't i... | [
{
"answer_id": 74547557,
"author": "captain-yossarian from Ukraine",
"author_id": 8495254,
"author_profile": "https://Stackoverflow.com/users/8495254",
"pm_score": 3,
"selected": true,
"text": "bar bar bar Foo bar InstanceType class Foo {\n bar: string = ''\n}\ntype AnyClass = new (...a... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18727756/"
] |
74,547,507 | <p>I started using .NET MAUI recently and I found a problem with Styling.
I started with the basic project to make sure the problem is not something I made during the process.
The project starts with a button that will change text and size each time the user press it.
<a href="https://i.stack.imgur.com/xYVle.png" rel="... | [
{
"answer_id": 74556271,
"author": "Liqun Shen-MSFT",
"author_id": 20118901,
"author_profile": "https://Stackoverflow.com/users/20118901",
"pm_score": 1,
"selected": false,
"text": "private void OnCounterClicked(object sender, EventArgs e)\n{\n LinearGradientBrush ll = new LinearGradi... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18204376/"
] |
74,547,518 | <p>I'm using the tidyr <code>complete()</code> and <code>fill()</code> functions to extend (copy down) a dataframe so all ID elements have the same number of rows. The code posted at the bottom correctly extends all fields, with the exception of the "Bal2" column of the dataframe where a series of NA's should... | [
{
"answer_id": 74547622,
"author": "Captain Hat",
"author_id": 4676560,
"author_profile": "https://Stackoverflow.com/users/4676560",
"pm_score": 0,
"selected": false,
"text": "dplry::group_by() fill() require(dplyr)\n#> Loading required package: dplyr\nrequire(tidyr)\n#> Loading required... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19657749/"
] |
74,547,566 | <p><strong>Repreduce:</strong></p>
<p>In file <code>config/app.php</code> I changed following code</p>
<pre class="lang-php prettyprint-override"><code>'debug' => true,
</code></pre>
<p>After run <code>php artisan config:cache</code> command, I executed <code>dd(Config::get('app.debug'))</code></p>
<p><strong>Expect... | [
{
"answer_id": 74548028,
"author": "Haris",
"author_id": 15335938,
"author_profile": "https://Stackoverflow.com/users/15335938",
"pm_score": 1,
"selected": false,
"text": "use Illuminate\\Support\\Facades\\Config;\n dd(config('app.debug'));\n"
},
{
"answer_id": 74550913,
"aut... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547566",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6569224/"
] |
74,547,573 | <p>Is there a way in using firestore that will print a message using flutter if an array contains a string.</p>
<p>I want to check if the array inside a specific document has the user email inside it. If the array contains the user email, it will show a message.</p>
<p>here's my current code but it is not working.</p>
... | [
{
"answer_id": 74548028,
"author": "Haris",
"author_id": 15335938,
"author_profile": "https://Stackoverflow.com/users/15335938",
"pm_score": 1,
"selected": false,
"text": "use Illuminate\\Support\\Facades\\Config;\n dd(config('app.debug'));\n"
},
{
"answer_id": 74550913,
"aut... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547573",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20132700/"
] |
74,547,575 | <p>I'm having trouble trying to find a substring within a string. This isn't a simple substring match using <code>indexOf</code> or <code>match()</code> or <code>test()</code> or <code>includes()</code>. I've tried using these but to no avail. I have a bunch of strings inside an array, and then either need to use <code... | [
{
"answer_id": 74547652,
"author": "gog",
"author_id": 3494774,
"author_profile": "https://Stackoverflow.com/users/3494774",
"pm_score": 2,
"selected": false,
"text": "\\b const array = [ \"show vacuum\", \"show system\", \"set system\", \"set vacuum\" ];\n\nconst re = RegExp('\\\\b(' + ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20581974/"
] |
74,547,579 | <p>I want to implement Kahn's algorithm for a directed acyclic graph.</p>
<p>I understand why in rust it's not possible to borrow mutable variables more than once and that I cannot borrow mutable var if it was already borrowed immutable, but I don't want to use a ref counting pointer because it allocates memory on a he... | [
{
"answer_id": 74547652,
"author": "gog",
"author_id": 3494774,
"author_profile": "https://Stackoverflow.com/users/3494774",
"pm_score": 2,
"selected": false,
"text": "\\b const array = [ \"show vacuum\", \"show system\", \"set system\", \"set vacuum\" ];\n\nconst re = RegExp('\\\\b(' + ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20266935/"
] |
74,547,591 | <p>How to correctly encode an <strong>extended</strong> Le field of an APDU</p>
<pre><code>+------+------+------+------+------+-------------+------+
| CLA | INS | P1 | P2 | Lc | DATA | Le |
+------+------+------+------+------+-------------+------+
</code></pre>
<p>Specifically regarding following sente... | [
{
"answer_id": 74547652,
"author": "gog",
"author_id": 3494774,
"author_profile": "https://Stackoverflow.com/users/3494774",
"pm_score": 2,
"selected": false,
"text": "\\b const array = [ \"show vacuum\", \"show system\", \"set system\", \"set vacuum\" ];\n\nconst re = RegExp('\\\\b(' + ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1650038/"
] |
74,547,612 | <p>The sub-directories have different depth and have videos scattered. I am using find command to locate videos of multiple extensions like mp4, mkv, m4v, webm, ts, mov, etc. and then trying to process them with ffmpeg.</p>
<p>So far, I have come up with this command:</p>
<pre><code>find . -type f \( -name "*.mp4&... | [
{
"answer_id": 74547652,
"author": "gog",
"author_id": 3494774,
"author_profile": "https://Stackoverflow.com/users/3494774",
"pm_score": 2,
"selected": false,
"text": "\\b const array = [ \"show vacuum\", \"show system\", \"set system\", \"set vacuum\" ];\n\nconst re = RegExp('\\\\b(' + ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20582261/"
] |
74,547,620 | <p>I have just created a screen that has three build methods and each method showing data based on provider data...here I have to declare provider object in each method,
is there any other way..</p>
<p>and can't declare at state level as showing error of context..</p>
<p>createing in main build method and passing to al... | [
{
"answer_id": 74547891,
"author": "Mohamed Mohsin",
"author_id": 12999567,
"author_profile": "https://Stackoverflow.com/users/12999567",
"pm_score": 1,
"selected": false,
"text": "context provider initState class _TempFileState extends State<TempFile> {\n late final TransactionProvider... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18817235/"
] |
74,547,662 | <p>I have a List of links that I have collected from google search results and I'm downloading these (PDF) files using selenium.</p>
<p>I want to rename each file so that its filename contains the URL.</p>
<p>What can I do?</p>
<p>I have not tried any code so please help me. I'm showing the code of selenium that I use... | [
{
"answer_id": 74547891,
"author": "Mohamed Mohsin",
"author_id": 12999567,
"author_profile": "https://Stackoverflow.com/users/12999567",
"pm_score": 1,
"selected": false,
"text": "context provider initState class _TempFileState extends State<TempFile> {\n late final TransactionProvider... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547662",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14094853/"
] |
74,547,673 | <pre><code>import React, { useState, useEffect } from 'react';
import './style.css';
export default function App() {
const [state, setState] = useState([]);
const [inputData, setInputData] = useState();
const [fetchdata, setFetchData] = useState([])
const addHandler = () => {
setState((data) => {
... | [
{
"answer_id": 74547891,
"author": "Mohamed Mohsin",
"author_id": 12999567,
"author_profile": "https://Stackoverflow.com/users/12999567",
"pm_score": 1,
"selected": false,
"text": "context provider initState class _TempFileState extends State<TempFile> {\n late final TransactionProvider... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547673",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20347723/"
] |
74,547,681 | <p>I want to take user input for a 2D array using pointer name</p>
<p>Let's say I have a 2D array named arr1[3][3] and the pointer variable name is ptr1. Is it possible use scanf with the pointer variable name?
Check the code below. I am using ptr1+row+column in a nested loop</p>
<pre><code>`#include <stdio.h>
... | [
{
"answer_id": 74547891,
"author": "Mohamed Mohsin",
"author_id": 12999567,
"author_profile": "https://Stackoverflow.com/users/12999567",
"pm_score": 1,
"selected": false,
"text": "context provider initState class _TempFileState extends State<TempFile> {\n late final TransactionProvider... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16721382/"
] |
74,547,684 | <p>Let's say <code>test_t</code> is defined as follows:</p>
<pre><code>typedef struct test_t {
void *unused;
} *(test_t)
</code></pre>
<p>Is it possible define a variable to be a pointer to const without modifying the definition of <code>test_t</code>?</p>
<p><code>const test_t var</code> would be a const pointer... | [
{
"answer_id": 74547758,
"author": "0___________",
"author_id": 6110094,
"author_profile": "https://Stackoverflow.com/users/6110094",
"pm_score": 3,
"selected": false,
"text": "typedef struct test_t { \n void *unused; \n} test_t;\n\nconst test_t *var;\n"
},
{
"answer_id": 7454... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3744927/"
] |
74,547,696 | <p>I have about 50 tables in DynamoDB and I'm looking for a way to find size of all tables.</p>
<pre><code>aws dynamodb describe-table --table-name [table name]
</code></pre>
<p>I know above command returns TableSizeBytes, but is this the only way to get size of table?
Do I have to run this command for all tables in pi... | [
{
"answer_id": 74547758,
"author": "0___________",
"author_id": 6110094,
"author_profile": "https://Stackoverflow.com/users/6110094",
"pm_score": 3,
"selected": false,
"text": "typedef struct test_t { \n void *unused; \n} test_t;\n\nconst test_t *var;\n"
},
{
"answer_id": 7454... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10763104/"
] |
74,547,714 | <p>I'm trying to understand the options for hosting an asp.net core website on the internet today. I understand that HTTP.SYS based hosting is possible without having IIS on the webserver but I've not found clear information as to why you would do it (pros/cons) and what is today the most security way to host on the in... | [
{
"answer_id": 74547758,
"author": "0___________",
"author_id": 6110094,
"author_profile": "https://Stackoverflow.com/users/6110094",
"pm_score": 3,
"selected": false,
"text": "typedef struct test_t { \n void *unused; \n} test_t;\n\nconst test_t *var;\n"
},
{
"answer_id": 7454... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5014665/"
] |
74,547,753 | <p>I have a dataframe column which looks like this:</p>
<pre><code>df_cost['region.localCurrency']:
0 [{'content': 'Dirham', 'languageCode': 'EN'}]
1 [{'content': 'Dirham', 'languageCode': 'EN'}]
2 [{'content': 'Dirham', 'languageCode': 'EN'}]
3 [{'content': 'Euro', 'languageCode': 'DE'}]
4 [{'... | [
{
"answer_id": 74547758,
"author": "0___________",
"author_id": 6110094,
"author_profile": "https://Stackoverflow.com/users/6110094",
"pm_score": 3,
"selected": false,
"text": "typedef struct test_t { \n void *unused; \n} test_t;\n\nconst test_t *var;\n"
},
{
"answer_id": 7454... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18890565/"
] |
74,547,763 | <p>I've got an icon that shows a popup div when the user hovers over it or focuses on it and then disappears when the users mouse moves out or blur.
Currently I have this:</p>
<pre><code><div
className="iconWrapper"
onFocus={() => this.showToolTip(true)}
onBlur={() => this.showToolTip(false)}
... | [
{
"answer_id": 74547758,
"author": "0___________",
"author_id": 6110094,
"author_profile": "https://Stackoverflow.com/users/6110094",
"pm_score": 3,
"selected": false,
"text": "typedef struct test_t { \n void *unused; \n} test_t;\n\nconst test_t *var;\n"
},
{
"answer_id": 7454... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15123639/"
] |
74,547,765 | <blockquote>
<p>Ask for a string from the user and make each alternative word lower and upper case (e.g. the string “I am learning to code” would
become “i AM learning TO code”). Using the split and join functions will help you here.</p>
</blockquote>
<p>I did a similar thing for characters in the string, but as I foun... | [
{
"answer_id": 74547876,
"author": "OneCricketeer",
"author_id": 2308683,
"author_profile": "https://Stackoverflow.com/users/2308683",
"pm_score": 0,
"selected": false,
"text": "new_string = input(\"Please enter a string: \").split()\n def change_case(x, upper):\n return x.upper() if ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20148679/"
] |
74,547,768 | <p>I have an existing Google Cloud Function that I am trying to call. I want to pass into it an Id and with that Id, the cloud function can run its operation in the background. I am new to cloud functions and would appreciate the help. When I call the function, I get the error "POST....500" and the error mess... | [
{
"answer_id": 74547876,
"author": "OneCricketeer",
"author_id": 2308683,
"author_profile": "https://Stackoverflow.com/users/2308683",
"pm_score": 0,
"selected": false,
"text": "new_string = input(\"Please enter a string: \").split()\n def change_case(x, upper):\n return x.upper() if ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13441266/"
] |
74,547,779 | <p>I have a dataframe like this:</p>
<pre><code>DURATION CLUSTER COEFF
3 0 0.34
3 1 -0.005
3 2 1
3 3 0.33
4 0 -0.02
4 1 -0.28
4 2 0.22
4 3 0.48
5 0 0.65
5 1... | [
{
"answer_id": 74547858,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 3,
"selected": true,
"text": "groupby.rank map labels = ['First', 'Second', 'Third', 'Fourth', 'Fifth']\ndf['RESULT'] = (df.groupby('DURATION')['C... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12231431/"
] |
74,547,781 | <p>I've been mostly using private variables when writing a class and using methods to set the variable's value.</p>
<p>Especially when it comes array, indexing them would be just using the operator[]. But what if I were to put them inside a method like <code>getIndex(int x)</code>, and calling that method. Would that h... | [
{
"answer_id": 74547904,
"author": "Quimby",
"author_id": 7691729,
"author_profile": "https://Stackoverflow.com/users/7691729",
"pm_score": 2,
"selected": true,
"text": "inline object.array[idx]"
},
{
"answer_id": 74547952,
"author": "Dima",
"author_id": 13313,
"autho... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15690088/"
] |
74,547,796 | <p>I have the dataframe.
`</p>
<pre><code>data = pd.DataFrame([['Benz', 'MinSpeed', 0, np.nan, 'USA', '2022-08-12'],
['Benz', 'TopSpeed', 200, np.nan, 'USA', '2022-08-12'],
['Benz', 'ChasisNum', 654121, np.nan, 'USA', '2022-08-12'],
['Benz', 'Seats', 5, np.... | [
{
"answer_id": 74548032,
"author": "Ben.T",
"author_id": 9274732,
"author_profile": "https://Stackoverflow.com/users/9274732",
"pm_score": 2,
"selected": true,
"text": "fillna pivot res = (\n data.assign(Values=lambda x: x['NumericalValues'].fillna(x['CategoricalValues']))\n .piv... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19836382/"
] |
74,547,814 | <p>I'm trying to implement (into Java SE) a standalone embedded web server, exposing REST application with CDI support.</p>
<p>I followed up a simple tutorial at this link <a href="https://techunity.de/blog/integrate-a-rest-service-into-a-standalone-java-application/" rel="nofollow noreferrer">https://techunity.de/blog... | [
{
"answer_id": 74548839,
"author": "Francesco Rosso",
"author_id": 9630238,
"author_profile": "https://Stackoverflow.com/users/9630238",
"pm_score": 0,
"selected": false,
"text": "plugins {\n id 'application'\n id 'java'\n id 'eclipse'\n}\n\nrepositories {\n mavenCentral()\n}... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9630238/"
] |
74,547,909 | <p>So far my modal works fine, and does what it's supposed to be.
But when i try to implement a way to let the modal close when i click outside the modal I run into some bugs.</p>
<p>e.g. i tried to add onClick={() => setShowModal(false) in the top div, but then the button to open the modal no longer works, bcs this... | [
{
"answer_id": 74548839,
"author": "Francesco Rosso",
"author_id": 9630238,
"author_profile": "https://Stackoverflow.com/users/9630238",
"pm_score": 0,
"selected": false,
"text": "plugins {\n id 'application'\n id 'java'\n id 'eclipse'\n}\n\nrepositories {\n mavenCentral()\n}... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20199710/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.