qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,482,865 | <p>I'm trying to capture the 2 lines below from beginning to before the AJ sign.</p>
<pre class="lang-none prettyprint-override"><code>TSA01-19AUG80/F/LEE/ANGIE/JEAN AJ 17NOV 2124Z
TSA01-19AUG80/F/LEE/ANGIE/JEAN MARIE AJ 17NOV 2124Z
</code></pre>
<p>The end of the line (<code>AJ 17NOV 2124Z</code>) is not constant and ... | [
{
"answer_id": 74483152,
"author": "Sushanth --",
"author_id": 941272,
"author_profile": "https://Stackoverflow.com/users/941272",
"pm_score": 1,
"selected": false,
"text": "section ids classes ids classes show1 hide1 details1 var target = document.getElementById('show1');\nvar currentOp... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534449/"
] |
74,482,872 | <p>I have been asked to solve a problem using any front-end framework ( reactjs in my case ) . Basically there is a form for adding a car and there can be say a type of car like 'SUV','semitruck','racecar' and so on...</p>
<p>In the form there needs to be different components rendered based on the type of car you want ... | [
{
"answer_id": 74482935,
"author": "kind user",
"author_id": 6695924,
"author_profile": "https://Stackoverflow.com/users/6695924",
"pm_score": 3,
"selected": true,
"text": "useState export default function App() {\n const [size, setSize] = useState(0);\n const [currentComponent] = useS... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482872",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16678496/"
] |
74,482,884 | <p>Are there any CSS gurus out there up to the challenge of representing one of Edgar Poe's cryptographic texts? It uses inverted and backwards characters, which would have driven his type composer crazy. The image file tyler.jpg appears about 3/5 of the way down the linked page: <a href="https://www.howtoreadpoe.com/c... | [
{
"answer_id": 74483324,
"author": "Alohci",
"author_id": 42585,
"author_profile": "https://Stackoverflow.com/users/42585",
"pm_score": 2,
"selected": true,
"text": "body {\n display:flex;\n flex-wrap: wrap;\n}\nspan::before {\n content: 'P';\n}\nspan:nth-child(2n) {\n scale: -1;\n}\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6462161/"
] |
74,482,897 | <p>I'm new to C++ and smart pointers, especially the behavior of unique_ptr. Below is a piece of code that I'm experimenting:</p>
<pre><code>unique_ptr<int> u1 = make_unique<int>(2);
unique_ptr<int> u2 = make_unique<int>();
u2.reset(u1.get());
</code></pre>
<p>unique_ptr, by definition, is a k... | [
{
"answer_id": 74482938,
"author": "nanofarad",
"author_id": 1424875,
"author_profile": "https://Stackoverflow.com/users/1424875",
"pm_score": 3,
"selected": false,
"text": "get() 2 2 2 5 u1 u2 u1 u2 u1"
},
{
"answer_id": 74482956,
"author": "Nicol Bolas",
"author_id": 73... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19852327/"
] |
74,482,912 | <p>Basically I have this code and it is very ugly, I'm a beginner at HTML, CSS and JS so bare with me,</p>
<pre><code><button type="button" class="buttons" onclick="document.getElementById('my-video2_html5_api').src = 'S2E2.mp4';getElementById('s2').innerHTML='Season 2 Episode 2'">
E... | [
{
"answer_id": 74482982,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 0,
"selected": false,
"text": "<button type=\"button\" class=\"buttons episode\" data-src=\"S2E2.mp4\" data-title=\"Season 2 Episode 2\">\nEpisode 2... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19393512/"
] |
74,482,958 | <p>im calling an object from the pokeapi, exactly the name property and on first render after saving the file i get the name but i dont know why, re render and then the propertie is null and i get an error</p>
<p>this is my component card</p>
<pre><code>import {
EditOutlined,
EllipsisOutlined,
SettingOutlined,
} ... | [
{
"answer_id": 74482982,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 0,
"selected": false,
"text": "<button type=\"button\" class=\"buttons episode\" data-src=\"S2E2.mp4\" data-title=\"Season 2 Episode 2\">\nEpisode 2... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74482958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16820436/"
] |
74,483,009 | <p>My dataset example looks like this:</p>
<pre><code>dput(t)
structure(list(date = structure(c(19091, 19091, 19092, 19092,
19093, 19093, 19094, 19094, 19095, 19095, 19096, 19096, 19097,
19097, 19098, 19098, 19099, 19099, 19100, 19100, 19101, 19101,
19102, 19102, 19103, 19103, 19104, 19104, 19105, 19105, 19106,
191... | [
{
"answer_id": 74484351,
"author": "Bruno Mioto",
"author_id": 15611828,
"author_profile": "https://Stackoverflow.com/users/15611828",
"pm_score": 1,
"selected": false,
"text": "library(dplyr)\nlibrary(ggplot2)\n\n#load your data first to NDVI object\n\nplot <- NDVI %>%\n #this will del... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15030195/"
] |
74,483,010 | <p>I was looking for a workaround for configuring my database connection.<br>
I saw that opening 3306 port is dangerous and we should be using SSH Tunnel instead to connect to the database.</p>
<p>I configured my MySQL server using docker and successfully connected it using MySQL Workbench
<a href="https://i.stack.imgu... | [
{
"answer_id": 74541397,
"author": "wenbingeng-MSFT",
"author_id": 20528460,
"author_profile": "https://Stackoverflow.com/users/20528460",
"pm_score": 2,
"selected": true,
"text": "using MySql.Data.MySqlClient;\nusing Renci.SshNet;\nusing System;\nusing System.Collections.Generic;\nusing... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12372795/"
] |
74,483,020 | <p>I have the following html which renders the following</p>
<pre><code><input type="checkbox" class='btn-filter' style='zoom:2; id="inactive-accounts" name="" value="1">
<label style= 'font-size:15px' for="inactive-accounts">Show Inactive Accounts</label... | [
{
"answer_id": 74483098,
"author": "heyitsjhu",
"author_id": 5200126,
"author_profile": "https://Stackoverflow.com/users/5200126",
"pm_score": 0,
"selected": false,
"text": "div display: flex; align-items: center; div {\n display: flex;\n align-items: center;\n} <div>\n <input type=\"... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9060036/"
] |
74,483,027 | <p>C++ question!
I have a .txt file with this info:</p>
<pre><code>james, watson
brittany,blake
roger,tra4@pos
jonathan, pote5
amber,Trisa123!
</code></pre>
<p>where the first columnn is name and the second one is the Id of website users.</p>
<p>I need to read this file and then sotre the informations into 2 arrays:
na... | [
{
"answer_id": 74487153,
"author": "A M",
"author_id": 9666018,
"author_profile": "https://Stackoverflow.com/users/9666018",
"pm_score": 2,
"selected": true,
"text": "std::vector struct std::vector #include <iostream>\n#include <fstream>\n#include <string>\n#include <iomanip>\nusing name... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534558/"
] |
74,483,028 | <p>This question is best asked using an example - if I have daily data (in this case, daily Domestic Box Office for the movie Elvis), how can I sum only the weekend values?</p>
<p>If the data looks like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Date</th>
<th>DBO</th>
</tr>
</the... | [
{
"answer_id": 74487153,
"author": "A M",
"author_id": 9666018,
"author_profile": "https://Stackoverflow.com/users/9666018",
"pm_score": 2,
"selected": true,
"text": "std::vector struct std::vector #include <iostream>\n#include <fstream>\n#include <string>\n#include <iomanip>\nusing name... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534430/"
] |
74,483,048 | <p>how to use Russian Language in HTML? and Is their any best way to type in Russian Keyboard, if their is no option in PC? (Except Google) Actually Google translate my paragraph, but I need to add some text too.</p>
<p>Thanks</p>
<p>I tried using google translate.</p>
| [
{
"answer_id": 74487153,
"author": "A M",
"author_id": 9666018,
"author_profile": "https://Stackoverflow.com/users/9666018",
"pm_score": 2,
"selected": true,
"text": "std::vector struct std::vector #include <iostream>\n#include <fstream>\n#include <string>\n#include <iomanip>\nusing name... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483048",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534577/"
] |
74,483,058 | <p>I am using C# with Xamarin Forms and I don't know how to add values to a ListView without repeating them.</p>
<p>I haven't tried anything yet</p>
<p>InventoryPerRowModel.Add(new InventoryPerRow { IntRow = Convert.ToInt32(Row.Text), IntPlants = Convert.ToInt32(TotalPlants.Text), IntPlantsUnusable = Convert.ToInt32(... | [
{
"answer_id": 74487153,
"author": "A M",
"author_id": 9666018,
"author_profile": "https://Stackoverflow.com/users/9666018",
"pm_score": 2,
"selected": true,
"text": "std::vector struct std::vector #include <iostream>\n#include <fstream>\n#include <string>\n#include <iomanip>\nusing name... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20471690/"
] |
74,483,090 | <p>I am looking for the way to remove duplicates. I found a common way is to create a Set and then spread into a new Array.</p>
<p>How could I Set to acomplish this purpose? For instance, I have the following code:</p>
<pre><code>const tmp1=[];
const tmp2=[{
guid:"e695d848-7188-4741-9c95-44bec634940f",
... | [
{
"answer_id": 74487153,
"author": "A M",
"author_id": 9666018,
"author_profile": "https://Stackoverflow.com/users/9666018",
"pm_score": 2,
"selected": true,
"text": "std::vector struct std::vector #include <iostream>\n#include <fstream>\n#include <string>\n#include <iomanip>\nusing name... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4538768/"
] |
74,483,104 | <p>I have a pandas data frame with dates. I need to know if every other date pair is consecutive.</p>
<pre><code>2 1988-01-01
3 2015-01-31
4 2015-02-01
5 2015-05-31
6 2015-06-01
7 2021-11-16
11 2021-11-17
12 2022-10-05
8 2022-10-06
9 2022-10-12
10 2022-10-13
</code></pre>
<pre class="lang-... | [
{
"answer_id": 74483239,
"author": "Naveed",
"author_id": 3494754,
"author_profile": "https://Stackoverflow.com/users/3494754",
"pm_score": 1,
"selected": false,
"text": "# make date into datetime\ndf['date'] = pd.to_datetime(df['date'])\n\n# create two intermediate DF skipping the first... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483104",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20409660/"
] |
74,483,129 | <p>I have a table with payment history</p>
<p>payments:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>id</th>
<th>consumer_id</th>
<th>amount</th>
<th>created_at</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>1</td>
<td>30</td>
<td>2021-05-11 13:01:36</td>
</tr>
<tr>
<td>2</td>
<td>1</td... | [
{
"answer_id": 74483205,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 3,
"selected": true,
"text": "select p.*, \n sum(amount) over(partition by consumer_id order by created_at) balance\nfrom payments p\n where parti... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4433414/"
] |
74,483,141 | <p>Hi I have a toggle switch and spinner on my page. I want for the spinner to stop spinning or disappear when the toggle switch is flicked off. I believe I need some kind of javascript for this but a I am a newbie. Please assist in writing javascript for this on how to execute the spinner based on the .switch value.<... | [
{
"answer_id": 74483205,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 3,
"selected": true,
"text": "select p.*, \n sum(amount) over(partition by consumer_id order by created_at) balance\nfrom payments p\n where parti... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20453400/"
] |
74,483,145 | <p>I have a string of characters like this in R</p>
<pre><code>ABCDE,"January 10, 2010",F,,,,GH,"March 9, 2009",,,
</code></pre>
<p>I would like to do something like <code>str.split()</code> to partition by all combinations of commas and quotation marks into an array of strings, but keep the commas ... | [
{
"answer_id": 74483274,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 3,
"selected": true,
"text": "read.table read.table(text = gsub('\"', '', gsub('(\"[^,\"]+,)(*SKIP)(*FAIL)|,',\n '\\n', trimws(gsub(\",{2,}\", \",\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14122775/"
] |
74,483,173 | <p>I would like my server to call the login endpoint of another server and cache the auth token for later use. My issue is that when the server tries to reuse the existing token it hangs indefinitely or infinite loops.</p>
<pre><code>@Component
class ApiWebClient {
private var authToken = Mono.just(AuthToken("... | [
{
"answer_id": 74483274,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 3,
"selected": true,
"text": "read.table read.table(text = gsub('\"', '', gsub('(\"[^,\"]+,)(*SKIP)(*FAIL)|,',\n '\\n', trimws(gsub(\",{2,}\", \",\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6106641/"
] |
74,483,231 | <p>I come from SQL Server and some times I'm not familiar to Oracle syntax, I want to create a function that takes a date and number of dates as a parameters and create a table function.</p>
<p>My original query is:</p>
<pre><code>VAR TREND = 1;
VAR OBS_DATE = 20221109;
VAR N_DAYS = 21;
WITH CAL AS
(
SELECT
... | [
{
"answer_id": 74483410,
"author": "MT0",
"author_id": 1509264,
"author_profile": "https://Stackoverflow.com/users/1509264",
"pm_score": 1,
"selected": false,
"text": "CREATE FUNCTION BARRRAF.FUN_BUS_CALENDAR(\n OBS_DATE IN DATE := SYSDATE,\n NDAYS IN NUMBER,\n TREND IN NUMBE... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1946796/"
] |
74,483,236 | <blockquote>
<p>I need to code a method that checks if:</p>
<p>A = all numbers are equal.
B = no numbers are equal.
C = at least two numbers are equal.</p>
<p>Im just beginning to learn all this in uni but I cant seem to figure out what i am doing wrong in this method which needs to return the given conditions e.g(&quo... | [
{
"answer_id": 74483410,
"author": "MT0",
"author_id": 1509264,
"author_profile": "https://Stackoverflow.com/users/1509264",
"pm_score": 1,
"selected": false,
"text": "CREATE FUNCTION BARRRAF.FUN_BUS_CALENDAR(\n OBS_DATE IN DATE := SYSDATE,\n NDAYS IN NUMBER,\n TREND IN NUMBE... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534699/"
] |
74,483,241 | <p>When the phone number is entered, I want it to appear in the input in the format (123) - 456 - 78 - 90. how can I do it?</p>
<pre><code><template>
<div v-for="about in abouts">
<input type="text" v-model="about.phone">
<input type="text" v-model="... | [
{
"answer_id": 74483410,
"author": "MT0",
"author_id": 1509264,
"author_profile": "https://Stackoverflow.com/users/1509264",
"pm_score": 1,
"selected": false,
"text": "CREATE FUNCTION BARRRAF.FUN_BUS_CALENDAR(\n OBS_DATE IN DATE := SYSDATE,\n NDAYS IN NUMBER,\n TREND IN NUMBE... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483241",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19301566/"
] |
74,483,250 | <p>I currently have an array where the user inputs the number of rows and columns, then the system outputs it and sums all elements.
I know how to sum all elements in the array, but don't understand how to specifically sum elements only in ODD columns.
Since the column indexes start with 0, it would have to start with ... | [
{
"answer_id": 74483752,
"author": "Iddo Sadeh",
"author_id": 3620846,
"author_profile": "https://Stackoverflow.com/users/3620846",
"pm_score": 0,
"selected": false,
"text": "int counter =0;\nfor (int[] arr : a) {\n if (counter %2 == 0){\n counter +=1;\n continue;\n }... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534706/"
] |
74,483,288 | <p>I need a special Widget.</p>
<p>Hey, I need the name pros.</p>
<p>Is there a widget that can be moved freely. Like how you can just move on with maps?</p>
<p>So basically scrollable in all directions.</p>
| [
{
"answer_id": 74484383,
"author": "Soliev",
"author_id": 19945688,
"author_profile": "https://Stackoverflow.com/users/19945688",
"pm_score": 1,
"selected": false,
"text": "import 'package:flutter/material.dart';\n\nvoid main() => runApp(const MyApp());\n\nclass MyApp extends StatelessWi... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534756/"
] |
74,483,315 | <p>I am trying to read a .txt file with a certain format and fill it into a matrix in Java.</p>
<p>The text file has following format:</p>
<pre><code>123
456
</code></pre>
<p>I have the following code, that creates the matrix based on the .txt file with the right dimension(2 rows, 3 columns in this case).</p>
<pre><cod... | [
{
"answer_id": 74484264,
"author": "Jacob Malland",
"author_id": 17160379,
"author_profile": "https://Stackoverflow.com/users/17160379",
"pm_score": 0,
"selected": false,
"text": "ArrayList<String> ArrayList<String> array = new ArrayList<String>();\n// Iterate through each line and add t... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483315",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10491430/"
] |
74,483,321 | <p>I wanted to adapt this code show that, for example if you hovered over a specific , then the relating would also show. useState seems to be the only way to make this work in React as I tried a different example with eventlistner which crashed the page.</p>
<pre><code>const Showstuff = () => {
const [isHoverin... | [
{
"answer_id": 74483476,
"author": "Enyak Stew",
"author_id": 13398497,
"author_profile": "https://Stackoverflow.com/users/13398497",
"pm_score": 2,
"selected": true,
"text": "function App() {\n const [isHovered, setIsHovered] = useState(null)\n const handleMouseOver = (e) => {\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18423250/"
] |
74,483,334 | <p>I want to make the site like the picture
(<a href="https://i.stack.imgur.com/rFj7L.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/rFj7L.jpg</a>)</p>
<p>and because Im new I cant. Can you help me?</p>
| [
{
"answer_id": 74483476,
"author": "Enyak Stew",
"author_id": 13398497,
"author_profile": "https://Stackoverflow.com/users/13398497",
"pm_score": 2,
"selected": true,
"text": "function App() {\n const [isHovered, setIsHovered] = useState(null)\n const handleMouseOver = (e) => {\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18351706/"
] |
74,483,354 | <p>I have been trying to load a video in my production environment with Next.js, but I can't. I have created <strong>public/assets/video</strong> route and I have an <code>.mp4</code> file saved there. There is a <strong>public/assets/images</strong> route and I have like 50 pictures there and they work perfectly. I no... | [
{
"answer_id": 74483476,
"author": "Enyak Stew",
"author_id": 13398497,
"author_profile": "https://Stackoverflow.com/users/13398497",
"pm_score": 2,
"selected": true,
"text": "function App() {\n const [isHovered, setIsHovered] = useState(null)\n const handleMouseOver = (e) => {\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20094870/"
] |
74,483,362 | <p>When you have a Stream of Objects you can filter on them pretty elegantly.</p>
<pre class="lang-java prettyprint-override"><code>swimmingAnimalStream = animalStream
.filter(Animal::canSwim);
</code></pre>
<p>When you have slightly more complex filters instead of using Method references you have to use Lambdas.</... | [
{
"answer_id": 74483476,
"author": "Enyak Stew",
"author_id": 13398497,
"author_profile": "https://Stackoverflow.com/users/13398497",
"pm_score": 2,
"selected": true,
"text": "function App() {\n const [isHovered, setIsHovered] = useState(null)\n const handleMouseOver = (e) => {\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17133024/"
] |
74,483,363 | <p>I'm working on snowflake procedure in snowsql and want to use variable as value in insert statement - something like that:</p>
<pre><code>execute immediate $$
declare
select_statement string;
begin
select_statement := '''Some text''';
INSERT INTO SOME_TABLE(MESSAGE) values (select_statement);
exception
... | [
{
"answer_id": 74483576,
"author": "Greg Pavlik",
"author_id": 12756381,
"author_profile": "https://Stackoverflow.com/users/12756381",
"pm_score": 1,
"selected": true,
"text": "create or replace table some_table(message string);\n\nexecute immediate $$\ndeclare\n rs resultset;\n select... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483363",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1287851/"
] |
74,483,368 | <p>I have a flex container with two children of different height.</p>
<p>The left item is shorter which I'm trying to make stick to the bottom while scrolling until the full container has been scrolled so they both align. Can't seem to get this to work. No parent overflows affecting this.</p>
<p>The desired behaviour i... | [
{
"answer_id": 74483576,
"author": "Greg Pavlik",
"author_id": 12756381,
"author_profile": "https://Stackoverflow.com/users/12756381",
"pm_score": 1,
"selected": true,
"text": "create or replace table some_table(message string);\n\nexecute immediate $$\ndeclare\n rs resultset;\n select... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4718994/"
] |
74,483,371 | <p><a href="https://i.stack.imgur.com/uY9x1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uY9x1.png" alt="enter image description here" /></a></p>
<p>I want to split these ascii characters into 4 columns so it will look more convenient.. Uploaded a picture as an example..</p>
<pre><code>for i in ra... | [
{
"answer_id": 74483475,
"author": "fishcakes",
"author_id": 3408016,
"author_profile": "https://Stackoverflow.com/users/3408016",
"pm_score": 0,
"selected": false,
"text": "\"\\n\" for i in range(1,121):\n a = chr(i)\n print(str(i)+\". \"+str(a), end=\" \")\n\n if i % 4 == 0:\n... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483371",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17357965/"
] |
74,483,375 | <p>i have an 4 characters array = ["0222"]
Need to split in 2 groups of 2 each</p>
<p>Need to get array = ["02","22"]
Try split, but can´t get the result i need.</p>
| [
{
"answer_id": 74483409,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": false,
"text": "\\d{1,2} nums = \"0222\".scan(/\\d{1,2}/)\nputs nums\n 02\n22\n"
},
{
"answer_id": 74577743,
"au... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20503090/"
] |
74,483,407 | <p>I created a recursive solution to the issue but the biggest bug is that it doesn't recognize that a small palindrome sandwiched with other characters all in between two identical characters isn't necessarily a palindrome</p>
<pre><code>
public static int palindrome(String str)
{
str = str.toLowerCase();
... | [
{
"answer_id": 74484128,
"author": "Jacob Malland",
"author_id": 17160379,
"author_profile": "https://Stackoverflow.com/users/17160379",
"pm_score": 0,
"selected": false,
"text": "public static int recursiveLength(String s) {\n if (isPalindrome(s)) {\n return(s.length()... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534836/"
] |
74,483,427 | <p>In Chromium-based browsers version 107 I notice opening a new tab with window.open does not give focus to the new tab. Previous it did, and in Firefox it still does</p>
<pre><code>//code before
{
let url = "https://google.com";
window.open(url,"_blank");
}
</code></pre>
<p>When I run the wind... | [
{
"answer_id": 74484128,
"author": "Jacob Malland",
"author_id": 17160379,
"author_profile": "https://Stackoverflow.com/users/17160379",
"pm_score": 0,
"selected": false,
"text": "public static int recursiveLength(String s) {\n if (isPalindrome(s)) {\n return(s.length()... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483427",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/562999/"
] |
74,483,431 | <p>I was wondering how I could possibly convert this holy nest of if and && checks, into a simple for-loop?
Any solutions are appreciated, since I'm completely lost and my brain has given up.</p>
<pre class="lang-cs prettyprint-override"><code>if (localModulebytes[i + 1] == convertedByteArray[1]
&& ... | [
{
"answer_id": 74483474,
"author": "GreenChicken",
"author_id": 12094709,
"author_profile": "https://Stackoverflow.com/users/12094709",
"pm_score": 3,
"selected": true,
"text": "var sim = true;\nfor (var j = 1; j < 9; j++) {\n if (localModulebytes[i + j] != convertedByteArray[j]) {\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534862/"
] |
74,483,432 | <h3>Problem</h3>
<p>Given the following Makefile:</p>
<pre><code>.PHONY: blah blah1 blah2
blah:
@$(MAKE) -j --no-print-directory blah1 blah2
blah1:
@echo "hello"
@caddy run
blah2:
@echo "goodbye"
@esbuild --watch
</code></pre>
<p>Running <code>make blah</code> returns the foll... | [
{
"answer_id": 74483474,
"author": "GreenChicken",
"author_id": 12094709,
"author_profile": "https://Stackoverflow.com/users/12094709",
"pm_score": 3,
"selected": true,
"text": "var sim = true;\nfor (var j = 1; j < 9; j++) {\n if (localModulebytes[i + j] != convertedByteArray[j]) {\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32154/"
] |
74,483,446 | <p>I'm in my first semester in coding and completely stuck on this one.</p>
<p>I want to get all forms of a word (ex: HeLLo, hEllO, heLlo, ...) to change to lowercase and don't know how to get there without writing a condition for every single variation in my file. I have many words I have to convert to either lowercas... | [
{
"answer_id": 74483456,
"author": "CharlieBONS",
"author_id": 20529340,
"author_profile": "https://Stackoverflow.com/users/20529340",
"pm_score": 2,
"selected": false,
"text": "word.toLowerCase()\n word.toUpperCase()\n"
},
{
"answer_id": 74483587,
"author": "CharlieBONS",
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534815/"
] |
74,483,451 | <p>I have a social media app written in Flutter. Users can see the profiles each other and block/unblock them. I'm using MySQL to keep that data. Now I want to implement chat feature using Firebase Firestore (or maybe MongoDB). When a user sends a message to another user, should I check if user blocked another user fro... | [
{
"answer_id": 74483456,
"author": "CharlieBONS",
"author_id": 20529340,
"author_profile": "https://Stackoverflow.com/users/20529340",
"pm_score": 2,
"selected": false,
"text": "word.toLowerCase()\n word.toUpperCase()\n"
},
{
"answer_id": 74483587,
"author": "CharlieBONS",
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13545110/"
] |
74,483,455 | <p>I wonder if it is possible to create a loop to remove strings in dataframe column. I have multiple dataframes which look like the structure below.</p>
<pre><code>df = pd.DataFrame({
'xyz CODE': [1,2,3,3,4, 5,6,7,7,8],
'a': [4, 5, 3, 1, 2, 20, 10, 40, 50, 30],
'b': [20, 10, 40, 50, 30, 4, 5, 3, 1, 2],
... | [
{
"answer_id": 74483481,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": true,
"text": "DataFrame.rename df = df.rename(columns={df.columns[0]: df.columns[0].replace(\" CODE\", \"\")})\nprint(df)\n... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6722067/"
] |
74,483,461 | <p>Hi I have two dataframe like this:</p>
<p>df_1:</p>
<pre><code>id item activity
1 2 a
34 14 b
1 2 b
. . .
</code></pre>
<p>Activity has two uniqe values <code>a and b</code>.</p>
<p>df_2:</p>
<pre><code>id item activity
1 2 c
34 14 c
1 2 ... | [
{
"answer_id": 74483481,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": true,
"text": "DataFrame.rename df = df.rename(columns={df.columns[0]: df.columns[0].replace(\" CODE\", \"\")})\nprint(df)\n... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483461",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10994166/"
] |
74,483,465 | <p>Im trying to do something for a school project and have the code ask the users for some numbers then print the smallest from the bunch.The main issue with this is that i have to put a string with the print so that the grading system gives a 100.Im not sure on how to do that with my knowledge.Here is my code-</p>
<pr... | [
{
"answer_id": 74483472,
"author": "Ricardo",
"author_id": 16353662,
"author_profile": "https://Stackoverflow.com/users/16353662",
"pm_score": -1,
"selected": false,
"text": "num1=int(input(\"Enter a number: \"))\nnum2=int(input(\"Enter a number: \"))\nnum3=int(input(\"Enter a number: \"... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20441979/"
] |
74,483,499 | <p>I am trying to write a higher-order function that takes a varying amount of arguments.
For instance something like this</p>
<pre><code>def higher(fnc, args):
print(f"Calling function {fnc}")
fnc(argv)
def one_arg(only_arg):
print(f"Here is the only arg {only}")
def two_arg(first, se... | [
{
"answer_id": 74483521,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 0,
"selected": false,
"text": "higher fnc def higher(fnc, *args):\n print(f\"Calling function {fnc}\")\n fnc(*args)\n higher args fnc fnc(*ar... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74483499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12006803/"
] |
74,483,534 | <p>how can i display a prop in filteredProducts when fetching data using axios. i have passed through a prop like below.</p>
<pre><code>export default {
data() {
return {
filteredProducts: [],
};
},
mounted() {
axios
.get('/src/stores/sneakers.json')
.then(response => { const products = respon... | [
{
"answer_id": 74483521,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 0,
"selected": false,
"text": "higher fnc def higher(fnc, *args):\n print(f\"Calling function {fnc}\")\n fnc(*args)\n higher args fnc fnc(*ar... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19892063/"
] |
74,483,555 | <p>I have a 2D array and I am trying to fit a curve on the data. my objective function is a polynomial function:</p>
<pre><code>def objective(x, a, b, c):
return a * x + b * x**2 + c
</code></pre>
<p>I used <code>curve_fit</code> from <code>scipy.optimize</code> to find the suitable curve for the data. But, I need ... | [
{
"answer_id": 74483521,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 0,
"selected": false,
"text": "higher fnc def higher(fnc, *args):\n print(f\"Calling function {fnc}\")\n fnc(*args)\n higher args fnc fnc(*ar... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11013499/"
] |
74,483,572 | <p>If i have an array like this</p>
<pre><code>a = np.array([[False, False, False, False, False, False, False, False, False, False],[False, False, False, False, False, False, False, False, False, False],[False, False, False, True, True, False, False, False, False, False],
</code></pre>
<p>I tried np.random.choice but... | [
{
"answer_id": 74483521,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 0,
"selected": false,
"text": "higher fnc def higher(fnc, *args):\n print(f\"Calling function {fnc}\")\n fnc(*args)\n higher args fnc fnc(*ar... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,483,603 | <p>Write a function that takes two lists of numbers, numerators and denominators, and returns a list of fractions produced by dividing numerators by denominators. If one list is shorter than the other, assume that the corresponding numbers are all 1s. Don't worry about zeros in the denominators (it's ok if your functio... | [
{
"answer_id": 74483521,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 0,
"selected": false,
"text": "higher fnc def higher(fnc, *args):\n print(f\"Calling function {fnc}\")\n fnc(*args)\n higher args fnc fnc(*ar... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20170877/"
] |
74,483,615 | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Fraunces:opsz,wght@9..144,700&famil... | [
{
"answer_id": 74483521,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 0,
"selected": false,
"text": "higher fnc def higher(fnc, *args):\n print(f\"Calling function {fnc}\")\n fnc(*args)\n higher args fnc fnc(*ar... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18835651/"
] |
74,483,618 | <p>I just started using tmux along with slime, PyShell and IPython and I have ran into the following problem.</p>
<p>I am trying to run the following code:</p>
<pre><code>names = ['a', 'b', 'c']
nc = { name : 0 for name in names}
count = 1
for name in names:
nc[name] += count
count += 1
print(nc)
</code></pre>
... | [
{
"answer_id": 74483686,
"author": "cafce25",
"author_id": 442760,
"author_profile": "https://Stackoverflow.com/users/442760",
"pm_score": 0,
"selected": false,
"text": "for name in names:\n....;;;;count += 1\n........;;;;nc[name] += count\n"
},
{
"answer_id": 74484442,
"auth... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7086465/"
] |
74,483,651 | <p>I'm beginner of pandas so I have a question below.
There's a lot of answers about groupby rows
but I can't find the answer what I want.</p>
<p>anyway my datatable is below.</p>
<pre><code> COLUMN1 COLUMN2 COLUMN3
0 APPLE RED JOHN, JANE
1 BANANA YELLOW SMITH
1 BANANA YELLOW EMILY
2 ... | [
{
"answer_id": 74483686,
"author": "cafce25",
"author_id": 442760,
"author_profile": "https://Stackoverflow.com/users/442760",
"pm_score": 0,
"selected": false,
"text": "for name in names:\n....;;;;count += 1\n........;;;;nc[name] += count\n"
},
{
"answer_id": 74484442,
"auth... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483651",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20505690/"
] |
74,483,652 | <p>description: Python can loop functions in eachother. can cS loop function too?</p>
<p>Example python:</p>
<pre><code>def func():
x=input(">")
func()
</code></pre>
<p>Example c# <em><strong>expected</strong></em>:</p>
<pre><code>namespace f
{class f{
static void main(string[] args){
void s... | [
{
"answer_id": 74483686,
"author": "cafce25",
"author_id": 442760,
"author_profile": "https://Stackoverflow.com/users/442760",
"pm_score": 0,
"selected": false,
"text": "for name in names:\n....;;;;count += 1\n........;;;;nc[name] += count\n"
},
{
"answer_id": 74484442,
"auth... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20317966/"
] |
74,483,661 | <p>At the outset, I realize what I did was bad. I relied on what is now (at least) undefined behavior, if not explicitly forbidden. It used to work, and I thought I was being clever. Now it doesn't and I'm trying to fix it.</p>
<p>I have positive power-of-2 numbers (FFT bin index, but not important). I want to effectiv... | [
{
"answer_id": 74483704,
"author": "lorro",
"author_id": 6292621,
"author_profile": "https://Stackoverflow.com/users/6292621",
"pm_score": 3,
"selected": true,
"text": "auto wrapper = Wrapper<9>{ index & (1 << (9 - 1)) ? long(index) - 2 * (1 << (9 - 1)) : index };\n auto wrapper = Wrappe... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9220132/"
] |
74,483,670 | <p>This is my code so far (in PyCharm), I am writing a very simple number guessing game that has integers from 1-9. I am still trying to master thought & flow as well as loops, and I hit a roadblock:</p>
<pre><code>import random
Player_Name = input("What is your name?\n")
print(f"Hello {Player_Name... | [
{
"answer_id": 74483785,
"author": "Niko",
"author_id": 7100120,
"author_profile": "https://Stackoverflow.com/users/7100120",
"pm_score": 2,
"selected": true,
"text": "import random\n\n\nPlayer_Name = input(\"What is your name?\\n\")\nprint(f\"Hello {Player_Name}!\\n\")\nrandom_num = ran... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20505017/"
] |
74,483,702 | <p>I am pulling memes from an API and only want to show 5 memes therefore I tried to disable the touchableOpacity after certian number of clicks. Any ideas on how I can do that?</p>
<pre><code>
</code></pre>
<pre><code>const link = 'https://meme-api.herokuapp.com/gimme'
class Meme extends React.Component {
construct... | [
{
"answer_id": 74485190,
"author": "Felix Filipi",
"author_id": 13738475,
"author_profile": "https://Stackoverflow.com/users/13738475",
"pm_score": 2,
"selected": true,
"text": "\nclass Meme extends React.Component {\n constructor() {\n super();\n this.state = {\n count: 0\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20535021/"
] |
74,483,706 | <p>How to merge two json objects if their keys are in numering string and arrange in ascending order</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>let obj1 = {
'10' : "ten"... | [
{
"answer_id": 74485190,
"author": "Felix Filipi",
"author_id": 13738475,
"author_profile": "https://Stackoverflow.com/users/13738475",
"pm_score": 2,
"selected": true,
"text": "\nclass Meme extends React.Component {\n constructor() {\n super();\n this.state = {\n count: 0\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20493210/"
] |
74,483,726 | <p>I am working on implementing a sieve of atkins as my first decently sized program in rust. This algorithm takes a number and returns a vector of all primes below that number. There are two different vectors I need use this function.</p>
<ol>
<li>BitVec 1 for prime 0 for not prime (flipped back and forth as part of t... | [
{
"answer_id": 74485190,
"author": "Felix Filipi",
"author_id": 13738475,
"author_profile": "https://Stackoverflow.com/users/13738475",
"pm_score": 2,
"selected": true,
"text": "\nclass Meme extends React.Component {\n constructor() {\n super();\n this.state = {\n count: 0\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483726",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16895246/"
] |
74,483,727 | <p>Is it possible to work at Raspberry Pi Pico using Windows 10? My question specified is: do I have to install any Linux distro, for example Raspbian, to be able to work at it? Do I also need to use SD card to work with it?</p>
<p>Just want to receive feedback, cause I'm confused and also kinda new to embedded systems... | [
{
"answer_id": 74530766,
"author": "Mark Setchell",
"author_id": 2836621,
"author_profile": "https://Stackoverflow.com/users/2836621",
"pm_score": 0,
"selected": false,
"text": "main.py"
}
] | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20337520/"
] |
74,483,789 | <p>I came across a problem:</p>
<p>Given an array, find the <strong>max</strong> count of this array, where <em>count</em> for an element in the array is defined as the no. of elements from this array which can divide this element.</p>
<p>Example: <strong>max</strong> count from the array <code>[2,2,2,5,6,8,9,9]</code>... | [
{
"answer_id": 74495164,
"author": "Gaurav",
"author_id": 10334659,
"author_profile": "https://Stackoverflow.com/users/10334659",
"pm_score": 3,
"selected": true,
"text": "while set[i]/2 {2,3,4,8} 8 8 8 8"
},
{
"answer_id": 74496481,
"author": "Bob__",
"author_id": 494442... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8977557/"
] |
74,483,797 | <p>In the following example code, a SwiftUI form holds an Observable object that holds a trivial pipeline that passes a string through to a @Published value. That object is being fed by the top line of the SwiftUI form, and the output is being displayed on the second line.</p>
<p>The value in the text field in the firs... | [
{
"answer_id": 74484600,
"author": "Scott Thompson",
"author_id": 415303,
"author_profile": "https://Stackoverflow.com/users/415303",
"pm_score": 1,
"selected": false,
"text": "collect"
},
{
"answer_id": 74485062,
"author": "Curious Jorge",
"author_id": 14840926,
"aut... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14840926/"
] |
74,483,806 | <p>I'm trying to write a function that takes an input vector, v, and returns a vector of the same length whose elements are boolean values indicating whether or not the corresponding element of the input vector indicates the variable homelessness. The function should loop over elements of
v and uses the homeless vector... | [
{
"answer_id": 74484600,
"author": "Scott Thompson",
"author_id": 415303,
"author_profile": "https://Stackoverflow.com/users/415303",
"pm_score": 1,
"selected": false,
"text": "collect"
},
{
"answer_id": 74485062,
"author": "Curious Jorge",
"author_id": 14840926,
"aut... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534657/"
] |
74,483,811 | <p>Please take a moment to consider the following dataset:</p>
<pre><code>my_df <- data.frame(socks = c(1,1,0,1,0,0),
hat = c(0,1,1,0,0,0),
species = c('frog','pigeon','pigeon','cow','monkey','cow'),
gender = c('M','F','M','F','M','M'))
acc <- c('socks'... | [
{
"answer_id": 74484600,
"author": "Scott Thompson",
"author_id": 415303,
"author_profile": "https://Stackoverflow.com/users/415303",
"pm_score": 1,
"selected": false,
"text": "collect"
},
{
"answer_id": 74485062,
"author": "Curious Jorge",
"author_id": 14840926,
"aut... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5910469/"
] |
74,483,839 | <p>So I am a little confused on how to use events in Python. I have an API for a program I use that recently changed its file loading method to be asynchronous. These files can take a while to load and in the past the file loading method would halt execution until the file was loaded. Now it immediately goes on to the ... | [
{
"answer_id": 74484600,
"author": "Scott Thompson",
"author_id": 415303,
"author_profile": "https://Stackoverflow.com/users/415303",
"pm_score": 1,
"selected": false,
"text": "collect"
},
{
"answer_id": 74485062,
"author": "Curious Jorge",
"author_id": 14840926,
"aut... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483839",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2731076/"
] |
74,483,971 | <p>I have the following list:</p>
<p><code>List<int> Items = new List<int> { 0, 0, 1, 1, 0 }</code></p>
<p>I want same items in the array that are next to each other to continue to add up until the next item in the array that is not the same, with the output being the following:</p>
<pre><code>0,2
1,2
0,1
<... | [
{
"answer_id": 74484269,
"author": "mkmkmk",
"author_id": 20154538,
"author_profile": "https://Stackoverflow.com/users/20154538",
"pm_score": 1,
"selected": true,
"text": " public static void Test()\n {\n StringBuilder Data = new StringBuilder();\n List<int> ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483971",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17957703/"
] |
74,483,990 | <p>I'm creating a static web app using React as a frontend and am running into a problem with dynamic theming. While the theme switching and saving the name of the theme into local storage works fine, it will only actually work once until a page refresh or a route change away and back to the page.</p>
<p>Ex. I can load... | [
{
"answer_id": 74484533,
"author": "Daniel T",
"author_id": 10477326,
"author_profile": "https://Stackoverflow.com/users/10477326",
"pm_score": 2,
"selected": true,
"text": "ThemeToggle(props.themeID) var themeToggle setValue props.themeID import React, {useEffect, useState} from 'react'... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74483990",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20535157/"
] |
74,484,010 | <p>I am trying to figure out how to copy the text content from my nodeList into a new navigation bar for my mobile version.</p>
<p>The original navigation bar was created in HTML. I turned my <strong>ul</strong> into a nodeList and then I created all the new elements <strong>li</strong>, <strong>a</strong>, and <strong... | [
{
"answer_id": 74484533,
"author": "Daniel T",
"author_id": 10477326,
"author_profile": "https://Stackoverflow.com/users/10477326",
"pm_score": 2,
"selected": true,
"text": "ThemeToggle(props.themeID) var themeToggle setValue props.themeID import React, {useEffect, useState} from 'react'... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20279098/"
] |
74,484,028 | <p>Given a data set with the goal of graphing the data these issues arise:</p>
<ul>
<li>The header is an entry in the list,</li>
<li>Some of the entries are blank (data missing),</li>
<li>Even the numbers are in the form of strings</li>
</ul>
<pre><code>income=[]
fertility=[]
for row in csv:
income.append(row[2])
f... | [
{
"answer_id": 74484045,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 1,
"selected": false,
"text": "float try/except income = []\nfertility = []\nfor row in csv:\n try:\n i, f = float(row[2]), float(row[3])... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20535154/"
] |
74,484,050 | <p>So I have this data from api that then gives me a _JsonMap response which I then convert to LinkedMap<dyanmic, dynamic> by doing:</p>
<pre><code>final data = Map.from(response.data);
</code></pre>
<p>Now I have this LinkedMap<dyanmic, dynamic> data which looks like this.</p>
<pre><code>{
Product1: {
... | [
{
"answer_id": 74484738,
"author": "Paulo",
"author_id": 15649348,
"author_profile": "https://Stackoverflow.com/users/15649348",
"pm_score": 0,
"selected": false,
"text": "[\n {\n \"name\": \"Product 1\",\n \"description\": \"test\",\n \"promos\": [\n {\n \"name\": ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3352042/"
] |
74,484,066 | <p>I have two dataframes with a column called "US Postal State Code" and I am trying to merge them together on that column into a new dataframe. The problem is that the column has an object dtype in the first dataframe and a int64 dtype in the second dataframe.</p>
<p>I tried to change the column with the obj... | [
{
"answer_id": 74484738,
"author": "Paulo",
"author_id": 15649348,
"author_profile": "https://Stackoverflow.com/users/15649348",
"pm_score": 0,
"selected": false,
"text": "[\n {\n \"name\": \"Product 1\",\n \"description\": \"test\",\n \"promos\": [\n {\n \"name\": ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20535301/"
] |
74,484,068 | <p>I am struggling to handle dates and times within Javascript environment. We are using two input fields to obtain a date and time for an event. The event needs to display and calculate all dates within it's local timezone. E.g. if event is in Melbourne Australia, then I see the local time in Melbourne.</p>
<p>We are ... | [
{
"answer_id": 74487245,
"author": "Wernfried Domscheit",
"author_id": 3027266,
"author_profile": "https://Stackoverflow.com/users/3027266",
"pm_score": 0,
"selected": false,
"text": "Date"
},
{
"answer_id": 74505223,
"author": "RobG",
"author_id": 257182,
"author_pro... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1374406/"
] |
74,484,072 | <p>Many SO answers use <code>await Task.Delay(1)</code> to solve various async rendering issues in Blazor (wasm). I've even found a number of places in my own code where doing that "makes it work".</p>
<p>However it's always stated as matter of fact, without a thorough explanation, and I can't find this techn... | [
{
"answer_id": 74486022,
"author": "Henk",
"author_id": 60761,
"author_profile": "https://Stackoverflow.com/users/60761",
"pm_score": 2,
"selected": true,
"text": "Task StateHasChangedAsync() public Task StateHasChangedAsync()\n{\n StateHasChanged(); // request a Render\n return ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484072",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9971404/"
] |
74,484,077 | <p>I have a dataframe "A" which is multi indexed shown below</p>
<pre><code>
LL SK Di Co
Bracket yr_wk
1 121 2 2 4 3
122 3 6 5 ... | [
{
"answer_id": 74486022,
"author": "Henk",
"author_id": 60761,
"author_profile": "https://Stackoverflow.com/users/60761",
"pm_score": 2,
"selected": true,
"text": "Task StateHasChangedAsync() public Task StateHasChangedAsync()\n{\n StateHasChanged(); // request a Render\n return ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20470119/"
] |
74,484,089 | <p>I have two strings, and I need to know if one is contained in the other, completely ignoring the order of the characters of both of them.</p>
<p>Example:</p>
<pre><code> string container = "WWGAAFWW";
string element = "WA";
Debug.Log(container.Contains(element))... | [
{
"answer_id": 74486022,
"author": "Henk",
"author_id": 60761,
"author_profile": "https://Stackoverflow.com/users/60761",
"pm_score": 2,
"selected": true,
"text": "Task StateHasChangedAsync() public Task StateHasChangedAsync()\n{\n StateHasChanged(); // request a Render\n return ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20535327/"
] |
74,484,091 | <p>Here is a JSON array.</p>
<pre><code>var cars = {
"cars": {
"john": [],
"alex": [
"ford"
],
"hilton": [],
"martin": [
"ford",
"ferrari"
],
&q... | [
{
"answer_id": 74486022,
"author": "Henk",
"author_id": 60761,
"author_profile": "https://Stackoverflow.com/users/60761",
"pm_score": 2,
"selected": true,
"text": "Task StateHasChangedAsync() public Task StateHasChangedAsync()\n{\n StateHasChanged(); // request a Render\n return ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18136719/"
] |
74,484,095 | <p>I'm looking for a way to shorten my formula. I'm new to excel and have no idea how I could shorten the formula, I've made several attempts but always get errors. I'm sure for someone more experienced it will be a trivial question.</p>
<p>I hope someone can help me, I appreciate any response.</p>
<pre><code>=SUM(IF((... | [
{
"answer_id": 74485970,
"author": "Max R",
"author_id": 19662289,
"author_profile": "https://Stackoverflow.com/users/19662289",
"pm_score": 2,
"selected": false,
"text": "=SUM( IF( \n (ISNUMBER( SEARCH( \"Bench\" , $P$9:$U$11 ) ) ) +\n (ISNUMBER( SEARCH( \"Press\" , $P$9:$U$11 ) )... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19017948/"
] |
74,484,112 | <p>I'm really new to ruby and tbh even programming. I'm trying to use the following code in order to perform the same operation for multiple flavors as follows using a switch case -</p>
<pre><code>def Icecream
...
...
Value = case flavors
when 'STRAWBERRY'
(shop.straw * 1000).round(5)
when 'C... | [
{
"answer_id": 74484149,
"author": "moyeradon",
"author_id": 4400698,
"author_profile": "https://Stackoverflow.com/users/4400698",
"pm_score": 2,
"selected": false,
"text": "def calculation(flavor)\n (flavor * 1000).round(5)\nend\n Value = case flavors\n when 'STRAWBERRY'\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20400359/"
] |
74,484,150 | <p>I have a nested dictionary that looks like this:</p>
<pre><code>test_dict = {'header1_1': {'header2_1': {'header3_1': {'header4_1': ['322.5', 330.0, -0.28],
'header4_2': ['322.5', 332.5, -0.26]},
'header3_2': {'header4_1': ['285.0', 277.5, -0.09],
'header4_2': ['287.5', 277.5, -0.12]}},
'header2_2': {'h... | [
{
"answer_id": 74484790,
"author": "Claudio",
"author_id": 7711283,
"author_profile": "https://Stackoverflow.com/users/7711283",
"pm_score": 1,
"selected": false,
"text": "test_dict = \\\n{'header1_1': {'header2_1': {'header3_1': {'header4_1': ['322.5', 330.0, -0.28],\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6467736/"
] |
74,484,169 | <p>Working on a hacker rank challenge and feel like I really hacked it. Need to select the second lowest members of a list, and return both if there's a tie. Here's what I did:</p>
<pre><code>if __name__ == '__main__':
names = []
scores = []
names_scores = []
for _ in range(int(input())):
name... | [
{
"answer_id": 74484223,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 2,
"selected": true,
"text": "itertools.groupby >>> from itertools import groupby\n>>> def second_lowest(scores):\n... ranks = (g for _, g in g... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9492720/"
] |
74,484,190 | <p>To get variance in each strata in a sampling process, at least 2 elements are needed for each strata. I need to "collapse" (add the records of stratum 3 to those of some other stratum) stratum 3 with some other. If by default in these cases it is requested that such strata be collapsed with the one above i... | [
{
"answer_id": 74484223,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 2,
"selected": true,
"text": "itertools.groupby >>> from itertools import groupby\n>>> def second_lowest(scores):\n... ranks = (g for _, g in g... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20535391/"
] |
74,484,230 | <p>I am currently learning to use golang as a server side language. I'm learning how to handle forms, and so I wanted to see how I could prevent some malicious client from sending a very large (in the case of a form with <code>multipart/form-data</code>) file and causing the server to run out of memory. For now this is... | [
{
"answer_id": 74484347,
"author": "Deltics",
"author_id": 123487,
"author_profile": "https://Stackoverflow.com/users/123487",
"pm_score": 2,
"selected": false,
"text": "ContentLength func MyHandler(rw http.ResponseWriter, rq *http.Request) {\n if rq.ContentLength > 8388608 {\n rw... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20535504/"
] |
74,484,255 | <p>I had a problem when I wanted to retrieve data to be displayed on the client, but after I checked again it turned out that the API response was in the form of an object, not an array or list.
so how can i access that data based on the 1,2,3... numbers in the data.
I have discussed with the back end to convert it int... | [
{
"answer_id": 74484432,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 0,
"selected": false,
"text": "data Map List<Map> Map<String, Map> dataAsMapsInsideMap = respnseResultData;\nList<Map> dataAsMapsInsideList = [];\... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19132574/"
] |
74,484,281 | <p>I am trying to get jquery to not include the header in the filter. For example if you type John the header disappears. I tried to use the not() but it is not working. One option is to start the <code>id="myTable"</code> at the tbody but the way I am rending the table I don't want that.</p>
<p><div class="s... | [
{
"answer_id": 74484337,
"author": "redz0323",
"author_id": 9589439,
"author_profile": "https://Stackoverflow.com/users/9589439",
"pm_score": 2,
"selected": true,
"text": "$(\"#myTable tbody tr\").filter(function() {\n $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)\n})... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5091720/"
] |
74,484,283 | <p>I would like to refactor a recursive tree-printing function I wrote so that the root node, the first call, is not indented at all.</p>
<pre class="lang-py prettyprint-override"><code>Tree = dict[str, 'Tree']
def print_tree(tree: Tree, prefix: str=''):
if not tree:
return
markers = [('├── ', '│ '), ... | [
{
"answer_id": 74484940,
"author": "Mandera",
"author_id": 3936044,
"author_profile": "https://Stackoverflow.com/users/3936044",
"pm_score": 1,
"selected": false,
"text": "Tree = dict[str, 'Tree']\ndef print_tree(tree: Tree, prefix: str=None):\n markers = [('├── ', '│ '), ('└── ', '... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484283",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3310334/"
] |
74,484,286 | <p>How do I remove an element from a JavaScript object by ID?
For instance I have to remove 004 or 007:</p>
<pre><code>const obj = {
id: '001',
children: [
{
id: '002',
children: [
{
id: '003',
children: [],
},
{
id: '004',
children: [
... | [
{
"answer_id": 74484940,
"author": "Mandera",
"author_id": 3936044,
"author_profile": "https://Stackoverflow.com/users/3936044",
"pm_score": 1,
"selected": false,
"text": "Tree = dict[str, 'Tree']\ndef print_tree(tree: Tree, prefix: str=None):\n markers = [('├── ', '│ '), ('└── ', '... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484286",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11020843/"
] |
74,484,318 | <p>I feel like this is a question that would have already been asked somewhere, but I can't find much on it.</p>
<p>When using a variable for the purpose of updating the UI, when/why would we use <code>@State</code> within our view as opposed to using <code>@Published</code> within a ViewModel?</p>
<p>This is in the co... | [
{
"answer_id": 74487642,
"author": "Jorge Poveda",
"author_id": 18557672,
"author_profile": "https://Stackoverflow.com/users/18557672",
"pm_score": 2,
"selected": false,
"text": "protocol ViewModelProtocol {\n var backgroundIsRed: Bool { get }\n var date: Date { get } // Created for ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484318",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14063245/"
] |
74,484,322 | <p>I want to call <code>df['item'].value_counts()</code> and, with minimal manipulation, end up with a dataframe with columns <code>item</code> and <code>count</code>.</p>
<p>I can do something like this:</p>
<pre><code>df['item'].value_counts().reset_index().rename(columns={"item":"count", "in... | [
{
"answer_id": 74484344,
"author": "Ian Thompson",
"author_id": 6509519,
"author_profile": "https://Stackoverflow.com/users/6509519",
"pm_score": 1,
"selected": false,
"text": "groupby value_counts to_frame import pandas as pd # 1.5.1\n\n\ndf = pd.DataFrame({\"item\": list(\"aaabbbbbbcc... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8162603/"
] |
74,484,372 | <p>In SQL Server (2018 I think? I don't know how to tell) my variable isn't working in <code>WHERE</code> clauses for <code>NVARCHAR.</code> The comparison should return values but it returns nothing. If I just type the declared text in manually it suddenly works and returns values. There's no logical reason this shoul... | [
{
"answer_id": 74484415,
"author": "Dai",
"author_id": 159145,
"author_profile": "https://Stackoverflow.com/users/159145",
"pm_score": 3,
"selected": true,
"text": "DECLARE @Class AS NVARCHAR = 'text';\n n varchar(n) nvarchar(n) varbinary(n) n = 1 DECLARE @Class AS NVARCHAR = 'text' DECL... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16980140/"
] |
74,484,400 | <p><a href="https://i.stack.imgur.com/ZmarR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZmarR.png" alt="enter image description here" /></a></p>
<p>How to show square on any digit in flutter UI like above example?</p>
| [
{
"answer_id": 74484466,
"author": "zionpi",
"author_id": 1066501,
"author_profile": "https://Stackoverflow.com/users/1066501",
"pm_score": 2,
"selected": false,
"text": "flutter_tex"
},
{
"answer_id": 74484467,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profi... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10135062/"
] |
74,484,411 | <p>I have to tables looks like following:</p>
<p><strong>Table T1</strong></p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>ColumnA</th>
<th>ColumnB</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
<td>1</td>
</tr>
<tr>
<td>A</td>
<td>3</td>
</tr>
<tr>
<td>B</td>
<td>1</td>
</tr>
<tr>
<td>C</td>
... | [
{
"answer_id": 74484545,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 0,
"selected": false,
"text": "(df1.assign(ExistT1=df1['ColumnB'])\n .merge(df2.assign(ExistT2=df2['ColumnB']), how='outer'))\n ColumnA Col... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20535646/"
] |
74,484,416 | <p>Suppose my dictionary contains > 100 elements and one or two elements have values different than other values; most values are the same (12 in the below example). How can I remove these a few elements?</p>
<pre><code>Diction = {1:12,2:12,3:23,4:12,5:12,6:12,7:12,8:2}
</code></pre>
<p>I want a dictionary object:</... | [
{
"answer_id": 74484545,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 0,
"selected": false,
"text": "(df1.assign(ExistT1=df1['ColumnB'])\n .merge(df2.assign(ExistT2=df2['ColumnB']), how='outer'))\n ColumnA Col... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484416",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7500268/"
] |
74,484,424 | <p>I'm querying a dreambooth model from Hugging Face using the inference API and am getting a huge data response string back which starts with: <code>����çx00çx10JFIFçx00çx01çx01çx00çx00çx01çx0</code>...</p>
<p>Content-type is: image/jpeg</p>
<p>How do I decode this and display it as an image in javascript?</p>
| [
{
"answer_id": 74484545,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 0,
"selected": false,
"text": "(df1.assign(ExistT1=df1['ColumnB'])\n .merge(df2.assign(ExistT2=df2['ColumnB']), how='outer'))\n ColumnA Col... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5651481/"
] |
74,484,426 | <p>I am trying to turn <code>rectangle.style.width = "100px";</code> into a variable using parseInt so that I can place that variable into two buttons so I can either increase the width of my rectangle or decrease it. However I cant seem to get the information into the variable no matter what I do.</p>
<p>My ... | [
{
"answer_id": 74484545,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 0,
"selected": false,
"text": "(df1.assign(ExistT1=df1['ColumnB'])\n .merge(df2.assign(ExistT2=df2['ColumnB']), how='outer'))\n ColumnA Col... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13029581/"
] |
74,484,450 | <p>I am trying to change a piece of styling on the footer that is present at all pages of the website. <strong>The changes must be present only on specific pages</strong>. <strong>Therefore, I need to somehow add a condition on what Routes the style should apply to the Footer.</strong> How do I do it?</p>
<p>Here is a ... | [
{
"answer_id": 74484532,
"author": "John Li",
"author_id": 20436957,
"author_profile": "https://Stackoverflow.com/users/20436957",
"pm_score": 0,
"selected": false,
"text": "pathname pathname useLocation() import { useLocation } from \"react-router-dom\";\n\nconst { pathname } = useLocat... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20535674/"
] |
74,484,477 | <p>I'm trying to get the latest file with a specific extension from a folder via FTP.
I'm using the following code to get the most recent file. But it gets the most recent file regardless of file extension.</p>
<pre><code>// new connect
$conn = ftp_connect('ftp.website.com');
ftp_login($conn, 'username', 'password');
... | [
{
"answer_id": 74484548,
"author": "Anggara",
"author_id": 12196486,
"author_profile": "https://Stackoverflow.com/users/12196486",
"pm_score": 0,
"selected": false,
"text": "*.add.zip foreach ($files as $file) {\n $time = ftp_mdtm($conn, $file);\n\n // get last 8 characters from th... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14542184/"
] |
74,484,498 | <p>I would like to get the position of columns with the same name (that is column A).</p>
<p>DataFrame a:</p>
<pre>
A B A C
text1 text3 text5 text7
text2 text4 text6 text8
</pre>
<p>I can get position of column A but how to get the position of the second column. There are multiple da... | [
{
"answer_id": 74484629,
"author": "Krishnan Suresh",
"author_id": 19590758,
"author_profile": "https://Stackoverflow.com/users/19590758",
"pm_score": 0,
"selected": false,
"text": "res = []\nfor index, col in enumerate(a.columns):\n if col == 'A':\n res.append(index)\n... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12728204/"
] |
74,484,581 | <p>I have a monad <code>m</code> that supports the following operation:</p>
<pre class="lang-hs prettyprint-override"><code>someName :: (t1 -> m u1) -> (t2 -> m u2) -> ((t1, t2) -> m (u1, u2))
</code></pre>
<p>In something more like English: given a mapping that could be used with <code>bind</code> to tu... | [
{
"answer_id": 74484692,
"author": "bradrn",
"author_id": 7345298,
"author_profile": "https://Stackoverflow.com/users/7345298",
"pm_score": 3,
"selected": false,
"text": "someName :: Applicative m => (t1 -> m u1) -> (t2 -> m u2) -> ((t1, t2) -> m (u1, u2))\nsomeName f1 f2 = \\(t1, t2) ->... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1505451/"
] |
74,484,591 | <p>i don't understand hover really well, can someone tell me how to hover this footer properly? i want the text to glow with hover but instead the hover is glowing not only the text. there's also a problem with some logo's for the facebook etc. this is the code i tried. also can someone drop a link for the logo's? i th... | [
{
"answer_id": 74484692,
"author": "bradrn",
"author_id": 7345298,
"author_profile": "https://Stackoverflow.com/users/7345298",
"pm_score": 3,
"selected": false,
"text": "someName :: Applicative m => (t1 -> m u1) -> (t2 -> m u2) -> ((t1, t2) -> m (u1, u2))\nsomeName f1 f2 = \\(t1, t2) ->... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20473729/"
] |
74,484,598 | <p>I have a <strong>Trip</strong> model in ruby which has <strong>start_at</strong> column and i need to get <strong>Trip</strong> object if <strong>start_at</strong> less than 1 hour or 3 hour (only i should get trip object when <strong>start_at</strong> is < 1hr or < 3hr not for < 2hr, < 4hr, ..... etc).<... | [
{
"answer_id": 74484857,
"author": "eux",
"author_id": 15097028,
"author_profile": "https://Stackoverflow.com/users/15097028",
"pm_score": -1,
"selected": false,
"text": "Trip.where(start_at: [2.hours.ago..1.hour.ago, 4.hours.ago..3.hour.ago])\n"
},
{
"answer_id": 74484903,
"... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13071662/"
] |
74,484,631 | <p>I have two beans in my application configuration. I would like to enable only one bean based on property, Can we make bean conditional based on property ?</p>
<p>Ex: Let say if I have this property <code>enable.userconnection: true</code>, I would like to create <code>UserCredentialsConnectionFactoryAdapter</code> ... | [
{
"answer_id": 74484857,
"author": "eux",
"author_id": 15097028,
"author_profile": "https://Stackoverflow.com/users/15097028",
"pm_score": -1,
"selected": false,
"text": "Trip.where(start_at: [2.hours.ago..1.hour.ago, 4.hours.ago..3.hour.ago])\n"
},
{
"answer_id": 74484903,
"... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12047466/"
] |
74,484,653 | <p>After updating to Android Gradle Plugin 7.3.1 Android Studio says that <code>package</code> is deprecated in <code>AndroidManifest.xml</code> and I need to use <code>namespace</code> param in <code>build.gradle.kts</code>. I removed the <code>package</code> attribute in all my android manifests (I'm using additional... | [
{
"answer_id": 74484857,
"author": "eux",
"author_id": 15097028,
"author_profile": "https://Stackoverflow.com/users/15097028",
"pm_score": -1,
"selected": false,
"text": "Trip.where(start_at: [2.hours.ago..1.hour.ago, 4.hours.ago..3.hour.ago])\n"
},
{
"answer_id": 74484903,
"... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3556590/"
] |
74,484,679 | <p>I'm stuck in using R. In a simple linear regression;</p>
<pre><code>y=a+b_1*x
</code></pre>
<p>I wanna know how much increase or decrease when one standard deviation of Independent Variable increases in R.</p>
<p>Do you know the way how to do it by using sapply() syntax?</p>
| [
{
"answer_id": 74484857,
"author": "eux",
"author_id": 15097028,
"author_profile": "https://Stackoverflow.com/users/15097028",
"pm_score": -1,
"selected": false,
"text": "Trip.where(start_at: [2.hours.ago..1.hour.ago, 4.hours.ago..3.hour.ago])\n"
},
{
"answer_id": 74484903,
"... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74484679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20535928/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.