qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,380,646 | <p>I have a RecyclerView whose entries are CardViews. Each CardView contains a horizontal LinearLayout with 5 TextViews. No matter what I try, I cannot get the CardView to fill the width of the screen. The RecyclerView's width matches the parent container (the phone screen), and each CardView matches its parent's (the ... | [
{
"answer_id": 74380753,
"author": "Stu",
"author_id": 15332650,
"author_profile": "https://Stackoverflow.com/users/15332650",
"pm_score": 2,
"selected": true,
"text": "select t.title Trial_Name, Count(*) Num_Patients\nfrom Trials t\njoin Patients p on p.Trial_Id = t.Id\ngroup by t.title... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380646",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19011329/"
] |
74,380,658 | <p>I have a bytes array returned from a hardware module,
the len is:</p>
<pre><code>len(a)
51
</code></pre>
<p>when I display it in vscode or terminal, it shows:</p>
<blockquote>
<p>b'>128 143 134 135 141 139 134 120 137 135 132 143 \r\n'</p>
</blockquote>
<p>when I try to convert it to list:</p>
<pre><code> s =... | [
{
"answer_id": 74380759,
"author": "tdelaney",
"author_id": 642070,
"author_profile": "https://Stackoverflow.com/users/642070",
"pm_score": 2,
"selected": true,
"text": "bytes strip \\r\\n 1: > test = b'>128 143 134 135 141 139 134 120 137 135 132 143 \\r\\n'\nl = [int(val) for val in a... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13021296/"
] |
74,380,661 | <p>I have one table (Bigquery), which has ', ' separated values in two columns:</p>
<pre><code> id tag_id tag_name
1 1, 2, 4 a, b, d
2 3 c
3 1, 4 a, d
</code></pre>
<p>For each tag_id is 1:1 matched with a tag_name. I want to split the comma separated values and convert them into... | [
{
"answer_id": 74381144,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 3,
"selected": true,
"text": "select t.id, elt_id, elt_name\nfrom mytable t\ncross join unnest( split(t.tag_id, ', ') ) elt_id with offset as rn_... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8457035/"
] |
74,380,693 | <p>I have a similar question to this post: <a href="https://stackoverflow.com/questions/67156005/fill-in-values-between-start-and-end-value-in-r">Fill in values between start and end value in R</a></p>
<p>The difference is that I need to fill in values between the start and end of multiple values and it doesn’t contain... | [
{
"answer_id": 74380847,
"author": "MrFlick",
"author_id": 2372064,
"author_profile": "https://Stackoverflow.com/users/2372064",
"pm_score": 2,
"selected": false,
"text": "codepos <- which(!is.na(dd$code))\nstopifnot(length(codepos)%%2==0)\nfor (group in split(codepos, (seq_along(codepos... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12322285/"
] |
74,380,703 | <p>I'm using the latest version of tailwind and I have a custom breakpoint, <code>xs:</code>, which is equal to 540px. When I use it like this: <code>h-[420px] xs:h-[400px] xl:h-[360px]</code> it works fine for mobile and the xs breakpoint, but the xl breakpoint no longer registers- the height is 400 even on desktop.</... | [
{
"answer_id": 74482565,
"author": "Idris Haslin",
"author_id": 9225297,
"author_profile": "https://Stackoverflow.com/users/9225297",
"pm_score": 0,
"selected": false,
"text": "const defaultTheme = require('tailwindcss/defaultTheme')\n\nmodule.exports = {\n theme: {\n screens: {\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11832959/"
] |
74,380,739 | <p>I am trying to translate on Microsoft Cognitive Service text with XML-like tags:</p>
<p><LABEL0>John</LABEL0> <LABEL1>Smith</LABEL1> is reading a <LABEL2>blue book</LABEL2>.</p>
<p>I am wondering if this is something that the NMT service would be able to handle and conserve tags i... | [
{
"answer_id": 74482565,
"author": "Idris Haslin",
"author_id": 9225297,
"author_profile": "https://Stackoverflow.com/users/9225297",
"pm_score": 0,
"selected": false,
"text": "const defaultTheme = require('tailwindcss/defaultTheme')\n\nmodule.exports = {\n theme: {\n screens: {\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15727016/"
] |
74,380,748 | <p>We were given an assignment in class to provide at the minimum two different solutions to find departments, which don't have any employees. As you can see from below I completed the task successfully.</p>
<p>An additional solution is extra credit, which I like to get. Unfortunately, I can't think of a third solution... | [
{
"answer_id": 74380933,
"author": "ahmed",
"author_id": 12705912,
"author_profile": "https://Stackoverflow.com/users/12705912",
"pm_score": 3,
"selected": true,
"text": "select \n d.department_id,\n d.department_name\nfrom departments d left join employees e \non e.department_id... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16771377/"
] |
74,380,761 | <p>I have a table called AuditLogs that has a log of every single user action and their timestamp.</p>
<p>All these timestamp logs are recorded in UTC with a time offset of zero. While the actual users performing these actions are in California, with UTC-8.</p>
<p>I am trying to write a report with this data, and all t... | [
{
"answer_id": 74380933,
"author": "ahmed",
"author_id": 12705912,
"author_profile": "https://Stackoverflow.com/users/12705912",
"pm_score": 3,
"selected": true,
"text": "select \n d.department_id,\n d.department_name\nfrom departments d left join employees e \non e.department_id... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7959439/"
] |
74,380,783 | <p>I have tables <code>T1</code> and <code>T2</code>. Both have columns <code>ID</code>, <code>X</code> and <code>Y</code>. In addition, <code>T1</code> has another column <code>Z</code> and <code>T2</code> has another column <code>A</code>. <code>ID</code> is primary key. <code>X</code> is calculated from <code>ID</co... | [
{
"answer_id": 74380875,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 2,
"selected": true,
"text": "full join union all select t1.id, t1.x, t1.y t1y, t2.y t2y, t1.z, t2.a\nfrom t1\nleft join t2 on t1.id = t2.id\nunion a... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7471360/"
] |
74,380,786 | <p>I'm trying to convert something like this:</p>
<pre><code>const map<string, string> digits = {{"zero", "0"},{"one", "1"},{"two", "2"},{"three", "3"},{"four", "4"},{"five", "5"},{"six&quo... | [
{
"answer_id": 74380893,
"author": "Nelfeal",
"author_id": 3854570,
"author_profile": "https://Stackoverflow.com/users/3854570",
"pm_score": 1,
"selected": false,
"text": "std::map<std::string, uint>::value_type std::pair<std::string, uint> std::transform(std::begin(digits), std::end(dig... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12861190/"
] |
74,380,792 | <p>I am new to JavaScript and coding in general. I made a basic conditional function and have played around with it a bit, but for some reason the answer is not coming out right in the console after the prompts are entered and passed into the function.</p>
<p>Basically, it is supposed to take two fractions and compare ... | [
{
"answer_id": 74380893,
"author": "Nelfeal",
"author_id": 3854570,
"author_profile": "https://Stackoverflow.com/users/3854570",
"pm_score": 1,
"selected": false,
"text": "std::map<std::string, uint>::value_type std::pair<std::string, uint> std::transform(std::begin(digits), std::end(dig... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19400193/"
] |
74,380,821 | <p>I have this code in which I initialize a class (Adapter) by the name I get from the request.
It seems to be a bit clumsy, and I'm sure there's a better/cleaner way of doing it.</p>
<pre><code>from adapters.gofirst_adapter import GoFirstAdapter
from adapters.spicejet_adapter import SpiceJetAdapter
from adapters.airas... | [
{
"answer_id": 74380870,
"author": "quamrana",
"author_id": 4834,
"author_profile": "https://Stackoverflow.com/users/4834",
"pm_score": 3,
"selected": true,
"text": "dict from adapters.gofirst_adapter import GoFirstAdapter\nfrom adapters.spicejet_adapter import SpiceJetAdapter\nfrom adap... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18464138/"
] |
74,380,836 | <p>I'm thinking that perhaps my entire idea of how to approach this is wrong, so let me explain what I'm trying to do.</p>
<p>I have a UserId that is a property contained within my JWT token.</p>
<p>On many of my REST endpoints, I need to read that UserId to use it within my DB queries.</p>
<p>I implemented a filter wh... | [
{
"answer_id": 74381160,
"author": "Neistow",
"author_id": 12400440,
"author_profile": "https://Stackoverflow.com/users/12400440",
"pm_score": 2,
"selected": false,
"text": "ICurrentUser UserId HttpContext // Define in Domain/Application project\npublic interface ICurrentUser\n{\n pub... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380836",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10245924/"
] |
74,380,867 | <p>I have a dataframe with information about a race and one column shows the distance that was driven by a car at a specific timepoint. It looks something like this:</p>
<pre><code>data.frame(id = rep(c("A"), each = 15),
distance = seq(from = 1, to = 20, length.out = 15))
id distance
1 A ... | [
{
"answer_id": 74380968,
"author": "divibisan",
"author_id": 8366499,
"author_profile": "https://Stackoverflow.com/users/8366499",
"pm_score": 4,
"selected": true,
"text": "ceiling dplyr::mutate(df, lap = ceiling(distance/5))\n\n id distance lap\n1 A 1.000000 1\n2 A 2.357143 ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15229242/"
] |
74,380,907 | <p>Please take a look at this snippet of code:</p>
<pre><code>uint16_t buffer_array[2]; //Two uint16_t = 4 bytes
temp = swSerial.read(); // Populate with serial readings coming from the sensor
switch(received_counter)
{
case 3: //when we receive the fourth byte from the sensor
buffer_array[0] = temp;
brea... | [
{
"answer_id": 74380996,
"author": "tadman",
"author_id": 87189,
"author_profile": "https://Stackoverflow.com/users/87189",
"pm_score": 0,
"selected": false,
"text": "memcpy() float x = *((float*) &buffer_array[0]);\n buffer_array"
},
{
"answer_id": 74381423,
"author": "Usele... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1584421/"
] |
74,380,915 | <p>Hi guys so I am trying to set up a little survey app, I am now building my survey result page, which will display the results of a given survey.
The data that I am fetching is an array of object with <code>answers</code> arrays inside them.</p>
<pre><code>{ totalAnswers: [
{ answers: [answer0, answer1, answer2, ... | [
{
"answer_id": 74380996,
"author": "tadman",
"author_id": 87189,
"author_profile": "https://Stackoverflow.com/users/87189",
"pm_score": 0,
"selected": false,
"text": "memcpy() float x = *((float*) &buffer_array[0]);\n buffer_array"
},
{
"answer_id": 74381423,
"author": "Usele... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18187041/"
] |
74,380,925 | <p>I have a single .txt with +200k rows.
In this file, i want to delete duplicates and original rows.</p>
<p>I have now:</p>
<ul>
<li>text a</li>
<li>text a</li>
<li>text b</li>
<li>text c</li>
<li>text d</li>
<li>text d</li>
<li>text e</li>
</ul>
<p>But i need a result like this</p>
<ul>
<li>text b</li>
<li>text c</li... | [
{
"answer_id": 74381591,
"author": "Harishma Ashok",
"author_id": 20403698,
"author_profile": "https://Stackoverflow.com/users/20403698",
"pm_score": 0,
"selected": false,
"text": "# Importing Pandas to create DataFrame\nimport pandas as pd\n\n# Creating Empty DataFrame and Storing it in... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20255410/"
] |
74,380,932 | <p>So I am trying to orchestrate a workflow in Airflow. One task is to read GCP Cloud Storage, which needs me to specify the Google Application Credentials.</p>
<p>I decided to create a new folder in the dag folder and put the JSON key. Then I specified this in the dag.py file;</p>
<p><code>os.environ["GOOGLE_APPL... | [
{
"answer_id": 74382623,
"author": "Simon D",
"author_id": 3287250,
"author_profile": "https://Stackoverflow.com/users/3287250",
"pm_score": 0,
"selected": false,
"text": "GCSToLocalFilesystemOperator"
},
{
"answer_id": 74387168,
"author": "Mazlum Tosun",
"author_id": 926... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19515785/"
] |
74,380,984 | <p>I don't find a way in JavaScript to get on what device my website is open.</p>
<p>I want something like this:</p>
<pre class="lang-js prettyprint-override"><code>if ( website.size < 768px) {
//do something for mobile
}
</code></pre>
<p>I know that I can use a media query in CSS, but I want use JS, and I'm very ... | [
{
"answer_id": 74381257,
"author": "Stranger",
"author_id": 13349935,
"author_profile": "https://Stackoverflow.com/users/13349935",
"pm_score": 3,
"selected": true,
"text": "navigator.userAgent navigator.userAgent if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19947889/"
] |
74,381,013 | <p>I am trying to do a regex match at a specific position in Typescript.</p>
<p>Here's what I have tried.</p>
<pre><code>var str = "0123ABC789"
function matchesAt(rgx: RegExp, s : string, i : number) : string | void {
rgx.lastIndex = i
console.log(rgx.exec(s));
}
matchesAt(/(ABC)/g, str, 4 )
</code>... | [
{
"answer_id": 74381257,
"author": "Stranger",
"author_id": 13349935,
"author_profile": "https://Stackoverflow.com/users/13349935",
"pm_score": 3,
"selected": true,
"text": "navigator.userAgent navigator.userAgent if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/876444/"
] |
74,381,035 | <p>Why python does not replace last character for @?</p>
<pre><code>str_manip = input("Enter a sentence ")
last_char = str_manip[-1]
print(last_char)
change_char = str_manip.replace("last_char", "@")
print(change_char)
</code></pre>
<p>It comes up as exactly the same sentence as I enter, u... | [
{
"answer_id": 74381094,
"author": "Danut Popa",
"author_id": 20462687,
"author_profile": "https://Stackoverflow.com/users/20462687",
"pm_score": 1,
"selected": false,
"text": "change_char = str_manip.replace(\"last_char\", \"@\")\n change_char = str_manip.replace(last_char, \"@\")\n"
... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20148679/"
] |
74,381,053 | <p>I want to create the mean of the values in two rows, based on values in a third row. In one row I have ID's A, B and C and means have to be created for the values in two rows with the ID A & B, B & C and A & C. Is there a simple way to do this?</p>
<pre><code>My dataset is as the example below:
station ... | [
{
"answer_id": 74381094,
"author": "Danut Popa",
"author_id": 20462687,
"author_profile": "https://Stackoverflow.com/users/20462687",
"pm_score": 1,
"selected": false,
"text": "change_char = str_manip.replace(\"last_char\", \"@\")\n change_char = str_manip.replace(last_char, \"@\")\n"
... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16009255/"
] |
74,381,068 | <p>Is it wrong to put env variables in the express server file ? is it going to be seen by any one?</p>
<p>env variables in server file</p>
| [
{
"answer_id": 74381094,
"author": "Danut Popa",
"author_id": 20462687,
"author_profile": "https://Stackoverflow.com/users/20462687",
"pm_score": 1,
"selected": false,
"text": "change_char = str_manip.replace(\"last_char\", \"@\")\n change_char = str_manip.replace(last_char, \"@\")\n"
... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20462769/"
] |
74,381,070 | <p>I want to add an iconButton and display a website preview when the mouse hover the help icon. I found something similar using css but I need to convert that to material UI.
This is the css code to be converted from this post <a href="https://stackoverflow.com/questions/2117046/how-to-show-live-preview-in-a-small-pop... | [
{
"answer_id": 74381094,
"author": "Danut Popa",
"author_id": 20462687,
"author_profile": "https://Stackoverflow.com/users/20462687",
"pm_score": 1,
"selected": false,
"text": "change_char = str_manip.replace(\"last_char\", \"@\")\n change_char = str_manip.replace(last_char, \"@\")\n"
... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16028889/"
] |
74,381,078 | <pre><code>let db = Firestore.firestore()
let docRef = db.collection("users").document(result!.user.uid)
docRef.getDocument { (document, error) in
if let document = document, document.exists {
let dataDescription = document.data().map(String.init(describing:)) ?? "nil"
print(&qu... | [
{
"answer_id": 74381094,
"author": "Danut Popa",
"author_id": 20462687,
"author_profile": "https://Stackoverflow.com/users/20462687",
"pm_score": 1,
"selected": false,
"text": "change_char = str_manip.replace(\"last_char\", \"@\")\n change_char = str_manip.replace(last_char, \"@\")\n"
... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12778601/"
] |
74,381,122 | <p>I have my first small project and I just started a PowerShell (total beginner).</p>
<p>We have three different shared C:\ drives and I need to output each disk storage info (e.g. total and free space) by using Powershell script.</p>
<p>Here is the script I made, but these three results are all the same even though t... | [
{
"answer_id": 74381247,
"author": "Santiago Squarzon",
"author_id": 15339544,
"author_profile": "https://Stackoverflow.com/users/15339544",
"pm_score": 2,
"selected": true,
"text": "win32_logicaldisk -ComputerName Get-CimInstance Get-WmiObject C -Filter PSComputerName Format-Table $vms ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381122",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20111546/"
] |
74,381,129 | <p>I am trying to align two divs next to each other. The left div has four small images on top of each other, and the right div has one large image the size of the left div. I've been trying to use block and inline-block as well as relative positioning for them, but I don't understand why they are not aligning next to ... | [
{
"answer_id": 74381215,
"author": "Kevon",
"author_id": 766684,
"author_profile": "https://Stackoverflow.com/users/766684",
"pm_score": 0,
"selected": false,
"text": "<div class=\"flex-container\">\n\n <div class=\"flex-child magenta\">\n Flex Column 1\n </div>\n \n <div class=\"... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9245162/"
] |
74,381,153 | <p>I am working on a project where I am interfacing(?) with another program. This other program has no way for me to interface with it, so, I need to pull values out of memory. I have already found the addresses where these values are stored relative to the MZ Start address listed in the programs PE header. I simply ne... | [
{
"answer_id": 74381455,
"author": "Nick ODell",
"author_id": 530160,
"author_profile": "https://Stackoverflow.com/users/530160",
"pm_score": 1,
"selected": false,
"text": "import ctypes\nfoo = ctypes.c_char.from_address(0x00000000)\nfoo.value = 1\n 0x00000000 foo.value = 1 variable = fo... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381153",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20223506/"
] |
74,381,175 | <p>What is time complexity for std::find_if() function using std::set in C++?</p>
<p>Consider we have the following example:</p>
<pre><code>auto cmp = [&](const pair<int, set<int>>& a , const pair<int, set<int>>& b) -> bool {
if (a.second.size() == b.second.size()) {
r... | [
{
"answer_id": 74381224,
"author": "user4581301",
"author_id": 4581301,
"author_profile": "https://Stackoverflow.com/users/4581301",
"pm_score": 0,
"selected": false,
"text": "std::find_if std::find_if std::find_if set vector"
},
{
"answer_id": 74381227,
"author": "NathanOliv... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17109814/"
] |
74,381,187 | <p>Please don't write that I should do my homework myself. I have tried but cannot find the answer.</p>
<p>Input:</p>
<pre class="lang-none prettyprint-override"><code>arr[11]={1,2,3,4,1,5,6,7,8,1,9}
</code></pre>
<p>Output:</p>
<pre class="lang-none prettyprint-override"><code>0 4 9
</code></pre>
<p>Returned position ... | [
{
"answer_id": 74381224,
"author": "user4581301",
"author_id": 4581301,
"author_profile": "https://Stackoverflow.com/users/4581301",
"pm_score": 0,
"selected": false,
"text": "std::find_if std::find_if std::find_if set vector"
},
{
"answer_id": 74381227,
"author": "NathanOliv... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20462765/"
] |
74,381,189 | <p>I am tryig to render data from STRAPI, using Graphql and nextjs.</p>
<h5>I have an event Adapter which is working perfectly.</h5>
<h5>But when i try to render that data ON UI, it just give an error <code>event.map is not a function.</code></h5>
<h5>Even though i can get the same result in the front-end, but the only... | [
{
"answer_id": 74381225,
"author": "Martinez",
"author_id": 19027584,
"author_profile": "https://Stackoverflow.com/users/19027584",
"pm_score": 1,
"selected": false,
"text": "<div>\n {eventsAd['Featured Events'].map((event) => {\n return (\n <>\n <h1>{event.title}</h1>\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16986538/"
] |
74,381,197 | <p>I have a data file like following:</p>
<pre><code>>> cat file1.txt
@target G0.S0
1 6
1 4
4 2
@target G0.S0
2 4
8 9
5 7
@target G0.S0
3 5
0 9
3 7
</code></pre>
<p>I want to make split columns delimited by <code>@target G0.S0</code> in a new file where columns set one next the previous ones like followi... | [
{
"answer_id": 74383249,
"author": "Diego Torres Milano",
"author_id": 236465,
"author_profile": "https://Stackoverflow.com/users/236465",
"pm_score": 1,
"selected": false,
"text": "awk concat #! /usr/bin/awk -vN=4 -f\n\n(NR-1)%N==0 {next}\n{i=int(NR-2)%N;a[i]=(a[i] ? a[i] \" \" : \"\") ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381197",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15290424/"
] |
74,381,210 | <p>Im a total noob when it comes to Unity & C#
and now I got a task that I find a bit overwhelming so any input would be much appreciated...</p>
<p>I got a class that looks like this:</p>
<pre><code>//using directives
public class PipelineExample : MonoBehaviour
{
private CancellationTokenSource cancellationTo... | [
{
"answer_id": 74383249,
"author": "Diego Torres Milano",
"author_id": 236465,
"author_profile": "https://Stackoverflow.com/users/236465",
"pm_score": 1,
"selected": false,
"text": "awk concat #! /usr/bin/awk -vN=4 -f\n\n(NR-1)%N==0 {next}\n{i=int(NR-2)%N;a[i]=(a[i] ? a[i] \" \" : \"\") ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381210",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17187057/"
] |
74,381,216 | <p>I am working on the migration of a legacy API to microservice. The legacy API is encoding a java object into a base64 String. The following code is used:</p>
<pre><code>public String serialize() throws Exception {
String mementoXml = null;
Document document = DocumentHelper.createDocument();
Element dict... | [
{
"answer_id": 74381366,
"author": "Sajith Vijesekara",
"author_id": 1515665,
"author_profile": "https://Stackoverflow.com/users/1515665",
"pm_score": 0,
"selected": false,
"text": "String encodedString = Base64.getEncoder().encodeToString(originalInput.getBytes());\n"
},
{
"ans... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381216",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7899320/"
] |
74,381,218 | <p>I'm trying to display a React Spinner component centered horizontally and vertically in the screen, after search and read different similar answers, for example this <a href="https://stackoverflow.com/questions/19026884/flexbox-center-horizontally-and-vertically">post</a>, I could center it horizontally, currently m... | [
{
"answer_id": 74381280,
"author": "davidleininger",
"author_id": 254072,
"author_profile": "https://Stackoverflow.com/users/254072",
"pm_score": 3,
"selected": true,
"text": "height: auto; height: 100vh;\n div {\n display: grid;\n height: 100vh;\n margin: 0;\n place-items: c... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381218",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4645889/"
] |
74,381,250 | <p>I have a div element "editorPathDisplay" to display a path (ex: <em>root/something/anotherthing</em>), and I want the '/' characters to be bold to distinguish the separation. To accomplish this, I am trying to populate the editorPathDisplay div with spans. The first in this example would contain "root... | [
{
"answer_id": 74381280,
"author": "davidleininger",
"author_id": 254072,
"author_profile": "https://Stackoverflow.com/users/254072",
"pm_score": 3,
"selected": true,
"text": "height: auto; height: 100vh;\n div {\n display: grid;\n height: 100vh;\n margin: 0;\n place-items: c... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6207231/"
] |
74,381,252 | <p>is there a difference between using <strong>$emit</strong> directly and <strong>$root.$emit</strong> ?
=> <strong>this.$emit('default-choice', this.choice);</strong> & <strong>this.$root.$emit('default-choice', this.choice);</strong></p>
<p><code>`this.$emit('default-choice', this.choice);` </code></p>
<p><co... | [
{
"answer_id": 74381785,
"author": "kissu",
"author_id": 8816585,
"author_profile": "https://Stackoverflow.com/users/8816585",
"pm_score": 0,
"selected": false,
"text": "$emit $root.$emit"
}
] | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19447351/"
] |
74,381,253 | <p>Uploading an inventory feed to Walmart using C# creates the feed and the feed id is returned in the response but the feed has error "Can not find any valid inventory in Feed.". When I try the upload using Postman the feed goes through with no errir. I copied the C# code from Postman into my program and I g... | [
{
"answer_id": 74382020,
"author": "Tom Libby",
"author_id": 7910521,
"author_profile": "https://Stackoverflow.com/users/7910521",
"pm_score": 0,
"selected": false,
"text": "request.AddParameter(\"file\", File.ReadAllText(\"c:\\\\temp\\\\file.json\"), \"multipart/form-data\", ParameterTy... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7910521/"
] |
74,381,273 | <p>Basically, I want to create a loop that loops through a big range and if that cell isn't a certain value it deletes the whole column outright. I'm guessing the best way is create an union of all the ranges to delete and after the loop is done delete the whole range. I tried to do it deleting the column during the lo... | [
{
"answer_id": 74382020,
"author": "Tom Libby",
"author_id": 7910521,
"author_profile": "https://Stackoverflow.com/users/7910521",
"pm_score": 0,
"selected": false,
"text": "request.AddParameter(\"file\", File.ReadAllText(\"c:\\\\temp\\\\file.json\"), \"multipart/form-data\", ParameterTy... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20265106/"
] |
74,381,285 | <p>Consider the following code:</p>
<pre><code>typedef struct Object
{
uint8_t size;
uint8_t array[];
}Object;
</code></pre>
<p>How would I make the Object with a compile time but user defined size array?</p>
<p>After reading some stackoverflow posts and trying the code myself I now know that as long as I use at le... | [
{
"answer_id": 74381322,
"author": "James Risner",
"author_id": 8864226,
"author_profile": "https://Stackoverflow.com/users/8864226",
"pm_score": 0,
"selected": false,
"text": "#include <stdio.h>\n#include <stdint.h>\n\ntypedef struct Object\n{\n uint8_t size;\n uint8_t array[5];\n} Ob... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5585649/"
] |
74,381,295 | <p>I want to write a Python program which iterates multiple lists and gets all the possible combinations of each element. I will illustrate the idea in greater detail below.</p>
<p>I have three lists as following:</p>
<pre><code>list_01=['A','B','C','D']
list_02=[2, 2.5, 3, 3.5]
list_03=['2003','2004','2005','2006','20... | [
{
"answer_id": 74381322,
"author": "James Risner",
"author_id": 8864226,
"author_profile": "https://Stackoverflow.com/users/8864226",
"pm_score": 0,
"selected": false,
"text": "#include <stdio.h>\n#include <stdint.h>\n\ntypedef struct Object\n{\n uint8_t size;\n uint8_t array[5];\n} Ob... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381295",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20462756/"
] |
74,381,313 | <p>I don't know enough about C#, .NET, or the MVC pattern to know exactly what is relevant to include here, but I'm pulling my hair out with a very simple change I'm working on.</p>
<p>I have a controller with a Search action (method?) that looks like:</p>
<pre><code>public string Search(int id)
{
return $"The... | [
{
"answer_id": 74381379,
"author": "Andrei Lazarescu",
"author_id": 4953821,
"author_profile": "https://Stackoverflow.com/users/4953821",
"pm_score": 1,
"selected": false,
"text": " // GET api/values/5\n [HttpGet(\"{id}\")]\n public virtual async Task<ActionResult<IEntity>> Get(... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1415599/"
] |
74,381,317 | <p>I'm new to Flutter and I'm trying to output the start of the current day in UTC format.
I use Flutter 3.3.7 and Dart SDK 2.18.4.</p>
<p>First, I take the current date.</p>
<pre><code>DateTime dt = DateTime.now();
</code></pre>
<p>Next, I use extension for the DateTime class, which I implemented myself.</p>
<pre><co... | [
{
"answer_id": 74381379,
"author": "Andrei Lazarescu",
"author_id": 4953821,
"author_profile": "https://Stackoverflow.com/users/4953821",
"pm_score": 1,
"selected": false,
"text": " // GET api/values/5\n [HttpGet(\"{id}\")]\n public virtual async Task<ActionResult<IEntity>> Get(... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20462714/"
] |
74,381,349 | <p>How can i bold only second element in css
I want to change only >Products< but cannot change the html code.</p>
<p>`</p>
<pre><code><header>
<nav>
<a href="#">Home</a>
<a href="#">Products</a>
<a href="... | [
{
"answer_id": 74381382,
"author": "Full Stack Developer",
"author_id": 20246691,
"author_profile": "https://Stackoverflow.com/users/20246691",
"pm_score": 1,
"selected": false,
"text": "header nav a:nth-child(2) {\n font-weight: bold;\n}"
},
{
"answer_id": 74381419,
"author... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20462908/"
] |
74,381,373 | <p>My plot has <code>ylim(0,0.08)</code>, but I am only displaying up to <code>0.06</code>. The problem is, my <code>ylabel</code> is centered on a spine that is <code>0.08</code>, instead of <code>0.06</code>. Is there a way to have the label centered only on the visible spine?</p>
<p><a href="https://i.stack.imgur.co... | [
{
"answer_id": 74381911,
"author": "Joao_PS",
"author_id": 20262902,
"author_profile": "https://Stackoverflow.com/users/20262902",
"pm_score": -1,
"selected": false,
"text": "import matplotlib.pyplot as plt #3.5\nimport numpy as np\n\nfig, (ax1, ax2) = plt.subplots(1, 2, figsize=(11, 5))... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3633487/"
] |
74,381,410 | <p>I am new to Vue and I have to fix the following issue for work. I have a Bootstrap Vue b-form-checkbox-group similar to the one bellow. The listofOption comes from backend and from legacy databses. Sometime the ColumnName is empty or null. Right now it shows null or a blank space, but I want it to print the text &qu... | [
{
"answer_id": 74381911,
"author": "Joao_PS",
"author_id": 20262902,
"author_profile": "https://Stackoverflow.com/users/20262902",
"pm_score": -1,
"selected": false,
"text": "import matplotlib.pyplot as plt #3.5\nimport numpy as np\n\nfig, (ax1, ax2) = plt.subplots(1, 2, figsize=(11, 5))... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16880334/"
] |
74,381,415 | <p>I have a list:</p>
<pre><code>groups = ['A', 'A', 'A', 'B', 'B', 'C', 'C', 'D']
</code></pre>
<p>I need to map each value to have an output like this, independently from the numbers of groups and elements inside:</p>
<pre><code>[0,0,0,1,1,0,0,1]
</code></pre>
<p>The values in output should switch every time when the... | [
{
"answer_id": 74381500,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": true,
"text": "groups = ['A', 'A', 'A', 'B', 'B', 'C', 'C', 'D']\n\nflag = 0\n\nout = [flag if a==b else (flag:=1-flag) for a, b in... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381415",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13826532/"
] |
74,381,432 | <p>I would like to be able to modify the body, html and the * of the <code>login</code> component but impossible to do this. I'm desperate, do you have a solution please?</p>
<p><a href="https://stackblitz.com/github/kora1348/red?file=README.md" rel="nofollow noreferrer">Stackblitz</a></p>
<p>login.component.css</p>
<p... | [
{
"answer_id": 74381500,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": true,
"text": "groups = ['A', 'A', 'A', 'B', 'B', 'C', 'C', 'D']\n\nflag = 0\n\nout = [flag if a==b else (flag:=1-flag) for a, b in... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18427717/"
] |
74,381,482 | <p>I have two tables with one referencing the other.</p>
<pre><code>CREATE TABLE blogs (
article LONGTEXT,
id VARCHAR(255) PRIMARY KEY
);
CREATE TABLE blog_eval (
blog_id VARCHAR(255) REFERENCES blogs(id) ON DELETE CASCADE,
user_id VARCHAR(255) REFERENCES users(id),
is_like BOOLEAN, --true if like ... | [
{
"answer_id": 74381500,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": true,
"text": "groups = ['A', 'A', 'A', 'B', 'B', 'C', 'C', 'D']\n\nflag = 0\n\nout = [flag if a==b else (flag:=1-flag) for a, b in... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19700822/"
] |
74,381,483 | <p>This code finds the intersection of two polygons and create a polygon out of the intersection. My aim is to do the exact <code>opposite</code>. I would like to create a polygone which has a hole in it in others words it excludes the intersection from the big polygone.</p>
<p>The code i managed to construct is:</p>
... | [
{
"answer_id": 74383495,
"author": "swatchai",
"author_id": 2177413,
"author_profile": "https://Stackoverflow.com/users/2177413",
"pm_score": 2,
"selected": true,
"text": "difference import geopandas as gpd\n#from shapely.geometry import Polygon \n# Use naturalearth_lowres' `world` da... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20176161/"
] |
74,381,503 | <p>I see a code as below in <a href="https://github.com/terraform-aws-modules/terraform-aws-efs/blob/master/examples/complete/main.tf#L58" rel="nofollow noreferrer">https://github.com/terraform-aws-modules/terraform-aws-efs/blob/master/examples/complete/main.tf#L58</a></p>
<pre><code> # Mount targets / security group
... | [
{
"answer_id": 74396122,
"author": "Martin Atkins",
"author_id": 281848,
"author_profile": "https://Stackoverflow.com/users/281848",
"pm_score": 2,
"selected": true,
"text": "=> for for [\n for KEY_SYMBOL, VALUE_SYMBOL in SOURCE_COLLECTION : RESULT\n if CONDITION\n]\n KEY_SYMBOL, if C... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3217396/"
] |
74,381,519 | <p>I have one service which requires the data of date and time which I am collecting from my database.
The data in the database is stored according to the UTC time zone.
Now I want to get those data from the data and present it to the user in the time zone whatever the want it to be in or just so the data of time and d... | [
{
"answer_id": 74381686,
"author": "Basil Bourque",
"author_id": 642706,
"author_profile": "https://Stackoverflow.com/users/642706",
"pm_score": 2,
"selected": false,
"text": "myResultSet\n.getObject( … , OffsetDateTime.class ) // Returns a `OffsetDateTime` object, the a... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18243455/"
] |
74,381,537 | <p>Let's took a look a this functional component :</p>
<p>note : this is just an exemple</p>
<pre><code>function Foo() {
const [data, setData] = useState([]);
const GetData = () => {
//setting the data...
setData([1, 2, 3]);
}
const ShowData = (data) => {
if(data)
console.log(data);
}
useEffe... | [
{
"answer_id": 74381680,
"author": "Beatriz Infante",
"author_id": 7773975,
"author_profile": "https://Stackoverflow.com/users/7773975",
"pm_score": 2,
"selected": true,
"text": "useEffect( () => {\n GetData(); \n},[]); \n\nuseEffect( () => {\n ShowData()\n},[data]); // runs when data ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17500542/"
] |
74,381,540 | <p>Find the smallest number M, which is divided by exactly n-1 numbers from the input array. If there is no such M then return -1.</p>
<p><strong>Example:</strong></p>
<pre><code>array = [2,3,5]
</code></pre>
<p><strong>Answer :</strong></p>
<pre><code>6
</code></pre>
<p><strong>Explanation :</strong></p>
<pre><code>6 ... | [
{
"answer_id": 74381869,
"author": "frankfalse",
"author_id": 18108367,
"author_profile": "https://Stackoverflow.com/users/18108367",
"pm_score": 2,
"selected": false,
"text": "public int lowerCommonMultiple(int x1, int x2) BestMultiple main public int[] removeElem(int[] tensArray, int r... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3181365/"
] |
74,381,545 | <p>I have done some programming in the past, so I would be able to figure this problem out in a programming language. But, I do not know how to proceed with accomplishing my task in an Excel spreadsheet. Any kind of guidance would be helpful because I am not familiar with anything but a basic use of MS Excel, so I don'... | [
{
"answer_id": 74381661,
"author": "Scott Craner",
"author_id": 4851590,
"author_profile": "https://Stackoverflow.com/users/4851590",
"pm_score": 1,
"selected": false,
"text": "=LET(rng,A2:A10,uq,UNIQUE(DATE(YEAR(rng),MONTH(rng),1)),SUM(BYROW(uq,LAMBDA(a,MAX(0,COUNTIFS(A2:A10,\">=\"&a,A2... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20412030/"
] |
74,381,560 | <p>I'm not sure how to ignore files on .gitignore, I think it has 3 options but I don't know the correct one</p>
<ol>
<li>/node_modules</li>
<li>.node_modules</li>
<li>.node_modules/</li>
</ol>
<p>Please, can you tell me which is the correct one or if none of the 3 works, can you tell me how to ignore files on .gitigno... | [
{
"answer_id": 74381661,
"author": "Scott Craner",
"author_id": 4851590,
"author_profile": "https://Stackoverflow.com/users/4851590",
"pm_score": 1,
"selected": false,
"text": "=LET(rng,A2:A10,uq,UNIQUE(DATE(YEAR(rng),MONTH(rng),1)),SUM(BYROW(uq,LAMBDA(a,MAX(0,COUNTIFS(A2:A10,\">=\"&a,A2... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381560",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19628878/"
] |
74,381,567 | <p>How to prevent exposure of sensitive files while keeping them in the local repository?</p>
<p>Scenario: I have sensitive files in my local repo. As a security measure, I specify those files in .gitignore file, so they are not pushed to the remote. A collaborator deletes my .gitignore file and pushes that change to t... | [
{
"answer_id": 74381901,
"author": "acran",
"author_id": 11932806,
"author_profile": "https://Stackoverflow.com/users/11932806",
"pm_score": 2,
"selected": false,
"text": ".gitignore .gitignore .git/info/exclude"
}
] | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381567",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19067446/"
] |
74,381,574 | <p>There's a part of my schoolwork. I need to give an error output when user doesn't give an second input, but as you know python gives an error itself when you don't give the second output. Is there any way to do that or do I have to change my implementation?
I have to check the second argument that's why I am getting... | [
{
"answer_id": 74381901,
"author": "acran",
"author_id": 11932806,
"author_profile": "https://Stackoverflow.com/users/11932806",
"pm_score": 2,
"selected": false,
"text": ".gitignore .gitignore .git/info/exclude"
}
] | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20463011/"
] |
74,381,583 | <p>I apologize for not knowing the correct terminology, but I am looking for a way in Pandas to transform a data frame with several similar columns into a data frame with rows that explode? into more rows. Basically for every column that starts with Line.{x}, I want to create a new row that has all the Line.{x} column... | [
{
"answer_id": 74381901,
"author": "acran",
"author_id": 11932806,
"author_profile": "https://Stackoverflow.com/users/11932806",
"pm_score": 2,
"selected": false,
"text": ".gitignore .gitignore .git/info/exclude"
}
] | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381583",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16053979/"
] |
74,381,654 | <p>For the get_gc_stats( ) function:
The first value in the returned list will be the minimum GC value in the dictionary
The second value in the returned list will be the maximum GC value in the dictionary
The third value in the returned list will be the average GC value from the dictionary
Assuming the dictionary is:<... | [
{
"answer_id": 74381901,
"author": "acran",
"author_id": 11932806,
"author_profile": "https://Stackoverflow.com/users/11932806",
"pm_score": 2,
"selected": false,
"text": ".gitignore .gitignore .git/info/exclude"
}
] | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20113635/"
] |
74,381,667 | <p>I have two tables, on is called <em>df_information</em>. This table just have information about each user. Here is how it looks:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: center;">id_user</th>
<th style="text-align: center;">job_function</th>
<th style="text-alig... | [
{
"answer_id": 74381901,
"author": "acran",
"author_id": 11932806,
"author_profile": "https://Stackoverflow.com/users/11932806",
"pm_score": 2,
"selected": false,
"text": ".gitignore .gitignore .git/info/exclude"
}
] | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19199709/"
] |
74,381,668 | <p>I recently asked a question about a contact form animation (the label text moves up when the box is clicked) and while I got the animation to work properly, I've run into a bug:</p>
<p>When I click on either the first and second boxes (not the third for some reason), it activates the animation for the rest of the bo... | [
{
"answer_id": 74381768,
"author": "Mithat Ercan",
"author_id": 13456625,
"author_profile": "https://Stackoverflow.com/users/13456625",
"pm_score": 3,
"selected": true,
"text": "\n.contact-col input,\n.contact-col textarea {\n width: 100%;\n padding: 15px;\n margin-bottom: 25px;\n ou... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19991177/"
] |
74,381,687 | <p>I have JSONL file as text - string, its a very big file and not useful to convert to standard JSON:</p>
<pre><code>{"id":"gid:\/\/shopify\/ProductVariant\/32620848382088","__parentId":"gid:\/\/shopify\/Product\/4632300847240"}
{"id":"gid:\/\/shopify\/Product\/46... | [
{
"answer_id": 74381768,
"author": "Mithat Ercan",
"author_id": 13456625,
"author_profile": "https://Stackoverflow.com/users/13456625",
"pm_score": 3,
"selected": true,
"text": "\n.contact-col input,\n.contact-col textarea {\n width: 100%;\n padding: 15px;\n margin-bottom: 25px;\n ou... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6310798/"
] |
74,381,725 | <p>My problem is that I want to convert this type of pieces of string into tuples. But I want the word to be a string and the number to be an integer. Is there some simple solution for this problem?</p>
<pre><code>mystring = "(Ilioupoli,2)"
</code></pre>
<p>The output should be:</p>
<pre><code>("Ilioupol... | [
{
"answer_id": 74381752,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 1,
"selected": false,
"text": "() split() mystring = \"(Ilioupoli,2)\"\nfields = mystring.strip(\"()\").split(',')\nmytuple = (fields[0], int(fields... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20463128/"
] |
74,381,739 | <p>previously I posted a question here (<a href="https://stackoverflow.com/questions/74214912/create-a-list-from-json-file-with-multiple-values/74215028#74215028">Create a list from json file, with multiple values</a>). However, I found some of my keys are outdated, and they contain a key called "end". I was ... | [
{
"answer_id": 74381752,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 1,
"selected": false,
"text": "() split() mystring = \"(Ilioupoli,2)\"\nfields = mystring.strip(\"()\").split(',')\nmytuple = (fields[0], int(fields... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4951263/"
] |
74,381,754 | <p>How can i move 3 items from list a to list b, removing those elements from list a at the same time</p>
<pre><code> for (int i = 0; i < NeedToClean.Count; i++)
{
if (!Cleaing.Contains(NeedToClean[i]) && Cleaing.Count != 3)
{
Cleaing.Add(NeedToClean[i]);
break;
}
else... | [
{
"answer_id": 74381907,
"author": "Nopesound",
"author_id": 1503161,
"author_profile": "https://Stackoverflow.com/users/1503161",
"pm_score": 1,
"selected": false,
"text": "var a = new List<string>() { \"Alpha\", \"Beta\", \"Gamma\", \"Delta\" };\nvar b = new List<string>();\n\nb.AddRan... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20463154/"
] |
74,381,760 | <p>say there is a function in my code:
<code>int getwords(int argc, char *argv[])</code>
and I want to call this function in main().
How do I call this in main without erroring out?</p>
<pre><code>`void main(void)
getwords();`
</code></pre>
| [
{
"answer_id": 74381907,
"author": "Nopesound",
"author_id": 1503161,
"author_profile": "https://Stackoverflow.com/users/1503161",
"pm_score": 1,
"selected": false,
"text": "var a = new List<string>() { \"Alpha\", \"Beta\", \"Gamma\", \"Delta\" };\nvar b = new List<string>();\n\nb.AddRan... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20352716/"
] |
74,381,799 | <p>I was taking on a JS challenge to take a first/last name string input and do the following:</p>
<ol>
<li>swap the first letter of first/last name</li>
<li>convert all characters to lowercase, except for the first characters, which need to be uppercase</li>
</ol>
<p>Example:
input: DonAlD tRuMp<br />
output: Tonald D... | [
{
"answer_id": 74381907,
"author": "Nopesound",
"author_id": 1503161,
"author_profile": "https://Stackoverflow.com/users/1503161",
"pm_score": 1,
"selected": false,
"text": "var a = new List<string>() { \"Alpha\", \"Beta\", \"Gamma\", \"Delta\" };\nvar b = new List<string>();\n\nb.AddRan... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2890343/"
] |
74,381,808 | <p>I have a named list of data frames that all contain the same columns, but for some of these data frames some of these columns are empty. What Im hoping to return is the name of the data frame in the list, and the name(s) of the empty column.</p>
<p>The repex below mirrors the process I am using on the full problem</... | [
{
"answer_id": 74382032,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 3,
"selected": true,
"text": "sapply map map(dataSplit, ~ names(.x)[sapply(.x, \\(x) all(is.na(x)))])\n#> $data1\n#> [1] \"color\" \"price\... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17399602/"
] |
74,381,833 | <p>I have Kotlin pet-project with docker-compose file:</p>
<pre><code>version: '3.1'
services:
app:
build:
context: .
dockerfile: Dockerfile
command: java -jar ./testapp.jar
ports:
- "8080:8080"
depends_on:
- postgres
environment:
- SPRING_DATASOURCE_URL=jd... | [
{
"answer_id": 74400227,
"author": "Nikita Romanov",
"author_id": 20447886,
"author_profile": "https://Stackoverflow.com/users/20447886",
"pm_score": 1,
"selected": false,
"text": "tasks.named<org.springframework.boot.gradle.tasks.bundling.BootJar>(\"bootJar\") {\nmainClass.set(\"con.exa... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20447886/"
] |
74,381,966 | <p>My script sometimes errors which is fine, but I have to manually restart the script.</p>
<p>Anyone knows how to make it so that it actually works infinitely even if it crashed 50 times, currently what I have only works for 1 crash.</p>
<pre><code>try:
while True:
do_main_logic()
except:
continue
</... | [
{
"answer_id": 74382010,
"author": "HmBloqued",
"author_id": 17183809,
"author_profile": "https://Stackoverflow.com/users/17183809",
"pm_score": -1,
"selected": false,
"text": "while True:\n try:\n while True:\n do_main_logic()\n\n\n except:\n continue\n"
... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16901344/"
] |
74,381,972 | <p>I'm new to JavaScript and programming in general. I've taken a challenge of building a calculator usign HTML/CSS and JavaScript, I've already managed to add the sum function so the two numbers split by '+' are summed and the result shows up in the same text input. But I can't seem to get it working for the other ope... | [
{
"answer_id": 74382183,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 1,
"selected": true,
"text": "reduce() 0 reduce() 5-3 0-5-3 visor.value = valSub.reduce((a, c) => a - Number(c), 0);\n visor.value = valSub.slice(1)... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20358068/"
] |
74,381,980 | <p>I see people using count to block resource creation in terraform. I want to create some resources if a condition is set to true. Is there such a thing same as in <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/conditions-section-structure.html" rel="nofollow noreferrer">CloudFormation</a>?</p... | [
{
"answer_id": 74382537,
"author": "Danilo Cacace",
"author_id": 17871774,
"author_profile": "https://Stackoverflow.com/users/17871774",
"pm_score": 1,
"selected": false,
"text": "count resource \"x\" \"y\"{\n count = var.tag == \"to_deploy\" ? 1 : 0\n}\n count = max(var.array) >= 3 ? 1... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74381980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15500282/"
] |
74,382,062 | <p>I have a mysql table with the following columns- Date, country, YEAR, MONTH, supercategory, class, corp_manufacturer, brand, license,item_description,amount, units, arp.</p>
<p>Total number of records = 7.1 million</p>
<p>Now i want to add a new column which shows the max value of arp for the group (country, YEAR, M... | [
{
"answer_id": 74382105,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 2,
"selected": true,
"text": "create myview v as\nselect t.*,\n max(arp) over(partition by \n country, \n year, \n month, \n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15254963/"
] |
74,382,084 | <p>I create a rating scale has N <strong></strong> with fixed width.
Each rate has got a value which is shown inside of the correspective <strong>div</strong> and a description.</p>
<p>My problem is that the description and the relative icon are not align in center under the <strong>div</strong> but starts from the lef... | [
{
"answer_id": 74382171,
"author": "Kevon",
"author_id": 766684,
"author_profile": "https://Stackoverflow.com/users/766684",
"pm_score": 0,
"selected": false,
"text": "<div class=\"demo-solution demo-solution--flexbox\">\n <img width=\"100\" height=\"50\" src=\"http://placehold.it/100x... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11488464/"
] |
74,382,150 | <p>In my Unity project I have a List with 2d string arrays as elements inside of that list:</p>
<pre class="lang-cs prettyprint-override"><code>List<string[,]> listOfLists = new List<string[,]>()
//the array has a variable amount of rows and 3 columns
</code></pre>
<p>It basically holds some arrays that I ... | [
{
"answer_id": 74386810,
"author": "George H.",
"author_id": 9805813,
"author_profile": "https://Stackoverflow.com/users/9805813",
"pm_score": 1,
"selected": false,
"text": "using System;\nusing System.Collections.Generic;\n \npublic class Program\n{\n public static... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17326832/"
] |
74,382,157 | <p>I'm trying to change the line length for Code wrapping in VSCode I've tried a lot of solutions here in Stackoverflow but it didn't work out for me, something weird.
This is an image of a dart code shows the code wrapped if it exceeded that column:</p>
<p><a href="https://i.stack.imgur.com/vIpRS.png" rel="nofollow no... | [
{
"answer_id": 74386810,
"author": "George H.",
"author_id": 9805813,
"author_profile": "https://Stackoverflow.com/users/9805813",
"pm_score": 1,
"selected": false,
"text": "using System;\nusing System.Collections.Generic;\n \npublic class Program\n{\n public static... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6884574/"
] |
74,382,168 | <p>I have logic in my application that requires me to create different variations of one specific class. These variations differ only by class properties.</p>
<p>If variation == "A", then some class properties need to be set to zero and others filled with the provided input, else if variation == "B"... | [
{
"answer_id": 74386810,
"author": "George H.",
"author_id": 9805813,
"author_profile": "https://Stackoverflow.com/users/9805813",
"pm_score": 1,
"selected": false,
"text": "using System;\nusing System.Collections.Generic;\n \npublic class Program\n{\n public static... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9154956/"
] |
74,382,180 | <p>I have a table <code>items</code> and a table <code>batches</code>. A batch can have n items associated by <code>items.batch_id</code>.</p>
<p>I'd like to write a query item counts in two groups <code>batched</code> and <code>unbatched</code>:</p>
<ol>
<li>items WHERE batch_id IS NOT NULL (batched)</li>
<li>items WH... | [
{
"answer_id": 74386810,
"author": "George H.",
"author_id": 9805813,
"author_profile": "https://Stackoverflow.com/users/9805813",
"pm_score": 1,
"selected": false,
"text": "using System;\nusing System.Collections.Generic;\n \npublic class Program\n{\n public static... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/924050/"
] |
74,382,185 | <p>I'm trying to fill the category description/text and have the category name change based on the category page you are on.</p>
<p>For example this category description:
You are watching [category].</p>
<p>If you are on the category page with the name drinks, it should change the description/text to:
You are watching ... | [
{
"answer_id": 74383207,
"author": "Shoelaced",
"author_id": 1512787,
"author_profile": "https://Stackoverflow.com/users/1512787",
"pm_score": -1,
"selected": true,
"text": "single_term_title() function myprefix_get_wc_category {\n return single_term_title( '', false );\n}\nadd_shortc... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17319158/"
] |
74,382,195 | <p>I have a database where the users booking classes.</p>
<p>There is a table Bookings where lets say we want to have ony 5 rows for 5 students.</p>
<p>When the student trying to book the class, i am checking first how many rows are in the table and if are less than 5, i do the Insert.</p>
<p>The problem is that when t... | [
{
"answer_id": 74383207,
"author": "Shoelaced",
"author_id": 1512787,
"author_profile": "https://Stackoverflow.com/users/1512787",
"pm_score": -1,
"selected": true,
"text": "single_term_title() function myprefix_get_wc_category {\n return single_term_title( '', false );\n}\nadd_shortc... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1136939/"
] |
74,382,221 | <p><strong>This my HTML Code</strong></p>
<pre><code><html>
<body>
<h2>Validation Array</h2>
<input id="search" onblur="read()">
<label id="creat"></label>
</body>
</html>
</code></pre>
<p><strong>And this my Javascrip... | [
{
"answer_id": 74383207,
"author": "Shoelaced",
"author_id": 1512787,
"author_profile": "https://Stackoverflow.com/users/1512787",
"pm_score": -1,
"selected": true,
"text": "single_term_title() function myprefix_get_wc_category {\n return single_term_title( '', false );\n}\nadd_shortc... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5800463/"
] |
74,382,240 | <p>I'm testing out different way of displaying figures. I have one figure which is made up of 12 subplots split into two columns. Something like...</p>
<pre><code>fig, ax = plt.subplots(6, 2, figsize= (20,26))
</code></pre>
<p>I have another code which splits the 12 subplots into 3 different figures based on categorica... | [
{
"answer_id": 74383207,
"author": "Shoelaced",
"author_id": 1512787,
"author_profile": "https://Stackoverflow.com/users/1512787",
"pm_score": -1,
"selected": true,
"text": "single_term_title() function myprefix_get_wc_category {\n return single_term_title( '', false );\n}\nadd_shortc... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16138574/"
] |
74,382,263 | <p>I am creating a game with three different rooms with three different functions. The game needs to be started in the living room but the living room function will not run it only will start in the attic() function. Another problem I am having is having the other functions being called to change the room that the play... | [
{
"answer_id": 74382278,
"author": "Code-Apprentice",
"author_id": 1440565,
"author_profile": "https://Stackoverflow.com/users/1440565",
"pm_score": 0,
"selected": false,
"text": "Location == 'attic' start() Location = ...' Location start()"
},
{
"answer_id": 74382507,
"autho... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382263",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20463396/"
] |
74,382,305 | <p>Assuming that</p>
<ul>
<li><code>m</code> is a <code>Map<number, V></code> for some type <code>V</code></li>
<li><code>k</code> is a <code>number</code>,</li>
</ul>
<p>how do I write down an expression that</p>
<ul>
<li>either gets an already existing <code>V</code> for the key <code>k</code>, or</li>
<li>crea... | [
{
"answer_id": 74382426,
"author": "Madison Courto",
"author_id": 2926779,
"author_profile": "https://Stackoverflow.com/users/2926779",
"pm_score": 2,
"selected": false,
"text": "var m = new Map();\n\nfunction SOME_EXPR(m, k, v) {\n return m.get(k) || (m.set(k, v) && v);\n}\n\nfunction ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2707792/"
] |
74,382,313 | <p>What I want is products according to the click order, adding the product field to the objects of the customers, and removing the product from the added user when the clicked checkbox is removed.</p>
<p>The product field is not a place entered manually, it is a place selected by checkbox above.<br />
My english is a ... | [
{
"answer_id": 74382426,
"author": "Madison Courto",
"author_id": 2926779,
"author_profile": "https://Stackoverflow.com/users/2926779",
"pm_score": 2,
"selected": false,
"text": "var m = new Map();\n\nfunction SOME_EXPR(m, k, v) {\n return m.get(k) || (m.set(k, v) && v);\n}\n\nfunction ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19301566/"
] |
74,382,338 | <p>I am having configuration.ini file which contain following content -></p>
<pre><code>[Objects]
obj1={7CE7ECE0-B70D-4622-8F4B-D999E5F06AAD}
obj2={5964945B-C31B-4805-9408-D56A4A5457CF}
obj3={5964945B-C31B-4805-9408-D56A4A5457CF}
</code></pre>
<p>Those keys - objN can be dynamically added.</p>
<p>With help of Config... | [
{
"answer_id": 74382426,
"author": "Madison Courto",
"author_id": 2926779,
"author_profile": "https://Stackoverflow.com/users/2926779",
"pm_score": 2,
"selected": false,
"text": "var m = new Map();\n\nfunction SOME_EXPR(m, k, v) {\n return m.get(k) || (m.set(k, v) && v);\n}\n\nfunction ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11530565/"
] |
74,382,369 | <p>I am building and debugging the application through VSCode and live-server, and I am hosting the application on a local XAMPP apache server.</p>
<p>I would like to keep the javascript code the same and just switch between live-server and apache</p>
<p>the way I see doing this is by keeping an <code>index.html</code>... | [
{
"answer_id": 74382406,
"author": "vnetkc",
"author_id": 3421628,
"author_profile": "https://Stackoverflow.com/users/3421628",
"pm_score": 0,
"selected": false,
"text": "\n<script type=\"text/javascript\">\n\nconst bbCSV = 'http://localhost:8080/BB.csv';\nconst smtCSV = 'http://localhos... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2056201/"
] |
74,382,378 | <p>So i wanted the user to enter date and based on that day to get named day of the week, for example today's date is 2022.11.10, so wanted answer would be Thursday.
I know this is wrong, can anybody help?</p>
<pre><code>import datetime
def dayOfTheWeek(day, month, year):
date = datetime.date(year, month, day)
... | [
{
"answer_id": 74382406,
"author": "vnetkc",
"author_id": 3421628,
"author_profile": "https://Stackoverflow.com/users/3421628",
"pm_score": 0,
"selected": false,
"text": "\n<script type=\"text/javascript\">\n\nconst bbCSV = 'http://localhost:8080/BB.csv';\nconst smtCSV = 'http://localhos... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12112430/"
] |
74,382,387 | <p>I have never tried this, and I have been searching to see the best way to make a script that can extract content from a txt file into their own txt files <br></p>
<p>Now I managed this and it extracts all content into their own txt files, but not sure how to make it use the extracted content as the txt filename <br>... | [
{
"answer_id": 74382406,
"author": "vnetkc",
"author_id": 3421628,
"author_profile": "https://Stackoverflow.com/users/3421628",
"pm_score": 0,
"selected": false,
"text": "\n<script type=\"text/javascript\">\n\nconst bbCSV = 'http://localhost:8080/BB.csv';\nconst smtCSV = 'http://localhos... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20207746/"
] |
74,382,412 | <p>I have a PHP task which I made a login page without a database and I have a button in the project file index.php i want to be unavailable for a normal user and available to an admin user.
how can I check or differentiate between user types in this case??</p>
<p>I made a login page which I save the username and passw... | [
{
"answer_id": 74382472,
"author": "IT goldman",
"author_id": 3807365,
"author_profile": "https://Stackoverflow.com/users/3807365",
"pm_score": 1,
"selected": false,
"text": "users $users = [\n [\n \"id\" => 1,\n \"name\" => \"sam\",\n \"password\" => \"123\",\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17602368/"
] |
74,382,420 | <p>I want to know if it’s possible de make a server and client in the same time using sockets</p>
<p>The goal is to do a bidirectional file transfer from client to server and from server to client using python socket</p>
<p>Any one have an idea ?</p>
| [
{
"answer_id": 74382472,
"author": "IT goldman",
"author_id": 3807365,
"author_profile": "https://Stackoverflow.com/users/3807365",
"pm_score": 1,
"selected": false,
"text": "users $users = [\n [\n \"id\" => 1,\n \"name\" => \"sam\",\n \"password\" => \"123\",\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11211151/"
] |
74,382,431 | <p>I have the following csv file:</p>
<pre><code>Topic,Characteristics,Total
Population and dwellings,Population-2016,183314
Population and dwellings,Population-2011,175779
Population and dwellings,Population percentage change,4.3
Age characteristics,0 to 14 years,30670
Age characteristics,0 to 4 years,9275
Age charact... | [
{
"answer_id": 74382458,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 3,
"selected": true,
"text": "csv dict.setdefault import csv\n\nout = {}\nwith open(\"your_file.csv\", \"r\") as f_in:\n reader = csv.re... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8686353/"
] |
74,382,474 | <p>I have a dataframe with two columns of interest, one which is a binary variable (so either 1 or 0) and the other column is a collection of multiple strings. For instance, there are around 1000 different strings throughout 700k observations.
What I would like to do now: I would basically want to create a ratio WITHIN... | [
{
"answer_id": 74382458,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 3,
"selected": true,
"text": "csv dict.setdefault import csv\n\nout = {}\nwith open(\"your_file.csv\", \"r\") as f_in:\n reader = csv.re... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15205232/"
] |
74,382,475 | <p>I'm confused about how to compare user input and a set list on python. For this problem, I have to create a program that asks the user for a list of ingredients. As the user enters the ingredients, I then need to store them in a list. Once the user is done entering their list, I need to pass this list to a function ... | [
{
"answer_id": 74382458,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 3,
"selected": true,
"text": "csv dict.setdefault import csv\n\nout = {}\nwith open(\"your_file.csv\", \"r\") as f_in:\n reader = csv.re... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20463556/"
] |
74,382,514 | <p>This function works like a checklist. It takes a task name and date in the format <code>yyyy/mm/dd HH:MM:SS</code>, and appends them to a list as a tuple. However, when I print them out there is a problem.</p>
<p>When printing the tuple it look like <code>("A", 2022/12/08 22:15:56)</code>. What I am actual... | [
{
"answer_id": 74382681,
"author": "Nathaniel Ford",
"author_id": 442945,
"author_profile": "https://Stackoverflow.com/users/442945",
"pm_score": 1,
"selected": false,
"text": ">>> format_time = \"%Y/%m/%d %H:%M:%S\"\n>>> my_tuple = (1, datetime.strptime(\"1919/04/13 12:00:00\", format_t... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,382,522 | <p>I am really struggling plotting these spatial data points in r. I have tried using ggmap, sf, and sp but I can't get it to cooperate with me.
I have a table, tbl, that has the following makeup:
tbl</p>
<p>| lat | long | alive| species|
where lat and long are the latitude and longitude respectively. "alive"... | [
{
"answer_id": 74382906,
"author": "Stewart Macdonald",
"author_id": 2269574,
"author_profile": "https://Stackoverflow.com/users/2269574",
"pm_score": 0,
"selected": false,
"text": "sf ggplot2 require('tidyverse')\nrequire('sf')\n\n# generate some sample data\nsampleDF <- data.frame(\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18433895/"
] |
74,382,584 | <p>My code runs fine, for example, if i input 123, i will get 321. However there is a problem when I try the input 01230, it would output 321. I can't seem to figure it out.</p>
<p>edit: it has to be done using integers as data type.</p>
<pre><code>while True:
reverse=0
num=str(input("Enter an integer of a... | [
{
"answer_id": 74382906,
"author": "Stewart Macdonald",
"author_id": 2269574,
"author_profile": "https://Stackoverflow.com/users/2269574",
"pm_score": 0,
"selected": false,
"text": "sf ggplot2 require('tidyverse')\nrequire('sf')\n\n# generate some sample data\nsampleDF <- data.frame(\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20463453/"
] |
74,382,684 | <p>I have this JSON:</p>
<pre class="lang-json prettyprint-override"><code>{
"agent": "Teste",
"obs": "obs 2 in other obs",
"id": 4,
"queue": "Suply",
"name": "Other"
}
</code></pre>
<p>I need a regular expression to pro... | [
{
"answer_id": 74382808,
"author": "morganney",
"author_id": 258174,
"author_profile": "https://Stackoverflow.com/users/258174",
"pm_score": 3,
"selected": true,
"text": "/obs(?!\":)/g\n const json = JSON.stringify({\"agent\": \"Teste\",\"obs\": \"obs 2 in other obs\",\"id\": 4,\"queue\"... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8773335/"
] |
74,382,690 | <p>I have an array of content blocks like so:</p>
<pre><code>interface Content{
type: string,
content: string | string[]
}
const content: Content[] = [
{
type: "heading"
content: "whatever"
},
{
type: "para"
content: "whatever"
},
{
type: "p... | [
{
"answer_id": 74382824,
"author": "pilchard",
"author_id": 13762301,
"author_profile": "https://Stackoverflow.com/users/13762301",
"pm_score": 2,
"selected": true,
"text": "current.type type: 'list' const content = [{ type: \"heading\", content: \"whatever\" }, { type: \"para\", content... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14538687/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.