qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,353,924 | <p>How would one calculate a number of days in 1582. Yes, that is the year of introduction of the Georgian Calendar (in some countries). I assume October 1582 should not have 31 days as some of the dates never existed.</p>
<p>Yet when I tried Joda Time (Java/Groovy) it says 30 days:</p>
<pre class="lang-java prettyprin... | [
{
"answer_id": 74402834,
"author": "Gerard Ashton",
"author_id": 4770772,
"author_profile": "https://Stackoverflow.com/users/4770772",
"pm_score": 2,
"selected": false,
"text": "LocalDate first = new LocalDate(1582, 10, 1, GJChronology.getInstance());\nLocalDate last = new LocalDate(1582... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74353924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/333296/"
] |
74,353,926 | <p>I am trying to include the Windows GNU GSL headers-only library (downloaded from <a href="https://gnuwin32.sourceforge.net/packages/gsl.htm" rel="nofollow noreferrer">https://gnuwin32.sourceforge.net/packages/gsl.htm</a>) to an example code in C++ but have lots of errors unfortunately.</p>
<p>Here is the structure o... | [
{
"answer_id": 74402834,
"author": "Gerard Ashton",
"author_id": 4770772,
"author_profile": "https://Stackoverflow.com/users/4770772",
"pm_score": 2,
"selected": false,
"text": "LocalDate first = new LocalDate(1582, 10, 1, GJChronology.getInstance());\nLocalDate last = new LocalDate(1582... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74353926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13502264/"
] |
74,353,952 | <p>Am I not seeing the forest for the trees?</p>
<p>Delphi returns <code>''</code> on <code>inifile.ReadString()</code> instead of the supplied default parameter. According to the help, it should return the default when either section, key, or value are missing.</p>
<p>I am pretty sure I have used this a number of time... | [
{
"answer_id": 74354049,
"author": "Andreas Rejbrand",
"author_id": 282848,
"author_profile": "https://Stackoverflow.com/users/282848",
"pm_score": 3,
"selected": false,
"text": "[USB_Drives]\nDriveLetter = \n DriveLetter [USB_Drives]\nDriverFrogness = \n Missing_Value DriveLetter GetPri... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74353952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13830610/"
] |
74,353,959 | <p>Im trying to have 3 images side by side in a flex container but the images are much too large and its stretching the page and creating a scroll bar.Tried a tip to use flex wrap but that didn't work.Should I just resize in photoshop?<a href="https://i.stack.imgur.com/tcWrP.jpg" rel="nofollow noreferrer"><img src="htt... | [
{
"answer_id": 74354052,
"author": "Kevon",
"author_id": 766684,
"author_profile": "https://Stackoverflow.com/users/766684",
"pm_score": 1,
"selected": true,
"text": " .container {\n display: flex;\n flex-wrap: wrap;\n background-color: grey;\n }\n\n img {\n... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74353959",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7853503/"
] |
74,353,981 | <p>I have searched Stack Overflow for all search terms I am familiar with and have been successful creating a single row User Name/Password/Submit solution WITH two-stacked rows in-line showing an opportunity to "Remember Me" (checkbox) and a "Forgot Password?".</p>
<p><a href="https://i.stack.imgur... | [
{
"answer_id": 74354052,
"author": "Kevon",
"author_id": 766684,
"author_profile": "https://Stackoverflow.com/users/766684",
"pm_score": 1,
"selected": true,
"text": " .container {\n display: flex;\n flex-wrap: wrap;\n background-color: grey;\n }\n\n img {\n... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74353981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17326926/"
] |
74,353,995 | <p>I'm a beginner to bash scripting and been writing a script to check different log files and I'm bit stuck here.</p>
<pre><code>clientlist=/path/to/logfile/which/consists/of/client/names
#i will grep only the client name from the file which has multiple log lines
clients=$(grep --color -i 'list of client assets:' $... | [
{
"answer_id": 74354052,
"author": "Kevon",
"author_id": 766684,
"author_profile": "https://Stackoverflow.com/users/766684",
"pm_score": 1,
"selected": true,
"text": " .container {\n display: flex;\n flex-wrap: wrap;\n background-color: grey;\n }\n\n img {\n... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74353995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17458112/"
] |
74,354,000 | <p>How to get parameter value to javascript variable?
As an example:</p>
<p><code><a href="page.php?id=10&value='hello'">click me</a></code></p>
<p>Here, I want to get the key named <code>id</code>, and its value <code>hello</code> to assign them to a javascript variable. How to do it?</p>
| [
{
"answer_id": 74354029,
"author": "Daniel Aranda",
"author_id": 1497103,
"author_profile": "https://Stackoverflow.com/users/1497103",
"pm_score": 2,
"selected": true,
"text": "const url_params = new URLSearchParams(window.location.search);\nconst id = url_params.get('id');\nconsole.log(... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74354000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19629183/"
] |
74,354,014 | <p>Sometimes, upstream DDL changes can break downstream views (it shouldn't happen, but humans make mistakes).</p>
<p>In order to detect these defects before our stakeholders do, is there a way to automatically test the validity of all views in Snowflake?</p>
| [
{
"answer_id": 74354015,
"author": "Marco Roy",
"author_id": 4406793,
"author_profile": "https://Stackoverflow.com/users/4406793",
"pm_score": 0,
"selected": false,
"text": "EXPLAIN SELECT 1 FROM database.schema.view LIMIT 1;\n EXPLAIN EXPLAIN test_views test_view() {%- macro test_view(m... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74354014",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4406793/"
] |
74,354,027 | <p>Is there a way in Java script to return just the substring prior to the nth occurrence of a delimiter?</p>
<p>For example:</p>
<p>If I have a string <code>"test-123-example"</code> and want to only return the substring before the second instance of <code>"-"</code>, resulting in just <code>"... | [
{
"answer_id": 74354047,
"author": "CertainPerformance",
"author_id": 9515207,
"author_profile": "https://Stackoverflow.com/users/9515207",
"pm_score": 0,
"selected": false,
"text": "const input = \"test-123-example\";\nconst result = input.match(/[^-]+-[^-]+/)[0];\nconsole.log(result); ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74354027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20444639/"
] |
74,354,033 | <p>I'm trying to print/console.log some values I'm exporting from two separate js files. When I console.log the said values <code>price</code> and <code>info.secTableEN</code> from their individual files it prints out successfully, but when I export thses values and try printing them out in index.js as <code>priceModul... | [
{
"answer_id": 74354114,
"author": "caTS",
"author_id": 18244921,
"author_profile": "https://Stackoverflow.com/users/18244921",
"pm_score": 3,
"selected": true,
"text": "console.log({} + {}); // [object Object][object Object]\n nameModule.js // export function\nmodule.exports = () => (as... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74354033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17164833/"
] |
74,354,046 | <p>I have a Python function that receives user input with no character limitations (spaces, special chars, etc. all allowed). It then writes the input to a DynamoDB table.</p>
<p>In relational SQL, any write transaction to a database should be parameterized to avoid SQL injection. Are there any similar best practices t... | [
{
"answer_id": 74358268,
"author": "Borislav Stoilov",
"author_id": 5625696,
"author_profile": "https://Stackoverflow.com/users/5625696",
"pm_score": 3,
"selected": true,
"text": "dynamo.scan(TableName = 'my-table', Select = 'ALL_ATTRIBUTES', \n ScanFilter = {'username': {... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74354046",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3614277/"
] |
74,354,055 | <p>I have a list of duplicate date ranges where I need to sum all dates unique to a campaign dates, without duplicating overlapping days.</p>
<p>For example in the data below, there are days in campaign_a running between 08/07/2022 and 15/07/2022 which overlap the 11/07/2022 and 13/07/2022 which need to not duplicate w... | [
{
"answer_id": 74356469,
"author": "Jos Woolley",
"author_id": 17007704,
"author_profile": "https://Stackoverflow.com/users/17007704",
"pm_score": 3,
"selected": true,
"text": "G2 =LET(\n δ, A$2:D$21,\n ζ, FILTER(δ, INDEX(δ, , 1) = G2),\n α, INDEX(ζ, , 3),\n β, INDEX(ζ, , 4),... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74354055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7471514/"
] |
74,354,084 | <p>I have a Json file that looks like the following. I want to grab the strings of names in the "actors" list and add them to a dataframe (which is empty now, the first item added to the dataframe would be the strings of actor names as rows).</p>
<pre><code>
{
"1": {
"title": &... | [
{
"answer_id": 74354178,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": false,
"text": "data = {\n \"1\": {\n \"title\": \"Exodus: Gods and Kings\",\n \"url\": \"https://en.wikipe... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74354084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20330965/"
] |
74,354,085 | <p>In Python, I am trying to split a string until an occurence of an integer, the first occurence of integer will be included, rest will not.</p>
<p>Example strings that I will have are shown below:</p>
<p><code>SOME STRING (IT WILL ALWAYS END WITH PARANTHESIS) 2 3 ---</code> <br>
<code>SOME OTHER STRING (PARANTHESIS A... | [
{
"answer_id": 74354125,
"author": "kosciej16",
"author_id": 3361462,
"author_profile": "https://Stackoverflow.com/users/3361462",
"pm_score": 3,
"selected": true,
"text": "import re\n\ns = \"SOME STRING (IT WILL ALWAYS END WITH PARANTHESIS) 2 3 ---\"\nm = re.search(r\".*?[0-9]+\", s)\np... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74354085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19342178/"
] |
74,354,088 | <p>I am using <code>ajv</code> node package to validate my schemas. Supposed that a field holds an object type.</p>
<p>The object can have 3 properties: <code>"A", "B", and "C"</code>.</p>
<p>How do I specify that at least one of these properties must be defined and no other properties are... | [
{
"answer_id": 74364976,
"author": "Jason Desrosiers",
"author_id": 1320693,
"author_profile": "https://Stackoverflow.com/users/1320693",
"pm_score": 0,
"selected": false,
"text": "anyOf anyOf {\n \"anyOf\": [\n { \"required\": [\"A\"] },\n { \"required\": [\"B\"] },\n { \"requ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74354088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5432156/"
] |
74,354,123 | <p>This seems like a really silly question, but here I am. I am able to get my product, render the form & populate the values correctly.</p>
<p>In stead of having two methods <code>create</code> and <code>update</code> I would like to just have <code>save</code>. I am trying to figure out–based on the <code>product... | [
{
"answer_id": 74354272,
"author": "ukn",
"author_id": 5041973,
"author_profile": "https://Stackoverflow.com/users/5041973",
"pm_score": 3,
"selected": true,
"text": " this.form = new FormGroup({\n name: new FormControl(product?.name, [\n Validat... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74354123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3357270/"
] |
74,354,150 | <p>Any one can please help me to save a Pyspark Dataframe as csv file with multicharacter delimiter using Pandas /python.</p>
<p>Did a research and found to_csv of Pypspark/Pandas can take only 1 character delimiter and there is no option to provide multicharacter delimiter as separator.</p>
<p>dataframe.to_csv(file.cs... | [
{
"answer_id": 74354272,
"author": "ukn",
"author_id": 5041973,
"author_profile": "https://Stackoverflow.com/users/5041973",
"pm_score": 3,
"selected": true,
"text": " this.form = new FormGroup({\n name: new FormControl(product?.name, [\n Validat... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74354150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19699557/"
] |
74,354,162 | <p>I built a tab that a user can close using touch events and when the tab closes I want to be able to remove event listeners. This is a little bit tricky because in my actual code there is a modal and there is a part in that dynamically inserted content that the touch events are attached to.</p>
<p>So if i have the be... | [
{
"answer_id": 74354190,
"author": "caTS",
"author_id": 18244921,
"author_profile": "https://Stackoverflow.com/users/18244921",
"pm_score": 3,
"selected": true,
"text": "function removeCloseEventListeners(swipeTab) {\n swipeTab.removeEventListener(\"touchstart\", swipeTouchStart);\n sw... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74354162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17422582/"
] |
74,354,193 | <p>I have an array <code>boxSize</code> that has a total count of boxes for <code>small</code> and <code>large</code> boxes. I would like to combine these 2 separate objects into one if they have the same date and warehouse name</p>
<p>For example here is the <code>boxSize</code> array:</p>
<pre><code>const boxSize = ... | [
{
"answer_id": 74354307,
"author": "caTS",
"author_id": 18244921,
"author_profile": "https://Stackoverflow.com/users/18244921",
"pm_score": 1,
"selected": false,
"text": "const boxSize = [{warehouse:'NYC',deliveryWeek:'2022-11-07',boxSize:'small',total:5},{warehouse:'NYC',deliveryWeek:'2... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74354193",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13366922/"
] |
74,354,256 | <p><a href="https://i.stack.imgur.com/evXp8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/evXp8.png" alt="Can someone help me combining consecutive dates in different rows as shown below" /></a></p>
<p>Can someone help me combining consecutive dates in different rows as shown above.Rows in first im... | [
{
"answer_id": 74354307,
"author": "caTS",
"author_id": 18244921,
"author_profile": "https://Stackoverflow.com/users/18244921",
"pm_score": 1,
"selected": false,
"text": "const boxSize = [{warehouse:'NYC',deliveryWeek:'2022-11-07',boxSize:'small',total:5},{warehouse:'NYC',deliveryWeek:'2... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74354256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6355550/"
] |
74,354,278 | <p>Have a bit of an issue attempting to get Auth0 info on the logged-in user with our current architecture.</p>
<p>We have <code>redux</code> with <code>@reduxjs/toolkit</code> & <code>react-redux</code> as our state management tool.</p>
<p>We use <code>axios</code> to make HTTP requests via redux-thunk actions.</p... | [
{
"answer_id": 74523558,
"author": "Drew Reese",
"author_id": 8690857,
"author_profile": "https://Stackoverflow.com/users/8690857",
"pm_score": 2,
"selected": true,
"text": "auth0 Auth0Provider Provider auth0 useSelector store.getState() auth0 import { useDispatch } from 'react-redux';\n... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74354278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3113377/"
] |
74,354,330 | <p>I have a large dataset with multiple rows and columns. I want to change the order of the columns by the amount of missing values in the column so that the variable with the most <code>NA</code>s is the first column and the variable with the least <code>NA</code>s is the last column.</p>
<p>So far I tried to use <cod... | [
{
"answer_id": 74354371,
"author": "Ric Villalba",
"author_id": 6912817,
"author_profile": "https://Stackoverflow.com/users/6912817",
"pm_score": 2,
"selected": false,
"text": "df <- df[order(-colSums(apply(df, 2, is.na)))] df <- df[order(colSums(apply(df, 2, is.na)), decreasing = T)] df... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20444820/"
] |
74,354,344 | <p>I have this text:</p>
<pre><code>Be sure to see if the code requires firestops in
the stud walls.* These are wood strips between
the studs that will prevent flames and hot air
from moving upward within the wall. (Some
areas require that firestopping be placed no more
than one story apart. In platform-frame con-
stru... | [
{
"answer_id": 74354371,
"author": "Ric Villalba",
"author_id": 6912817,
"author_profile": "https://Stackoverflow.com/users/6912817",
"pm_score": 2,
"selected": false,
"text": "df <- df[order(-colSums(apply(df, 2, is.na)))] df <- df[order(colSums(apply(df, 2, is.na)), decreasing = T)] df... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354344",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5212740/"
] |
74,354,376 | <p>I am using VScode on both my Macbook and my PC and my settings are synced. I use coderunner to run my python programs. My problem is that in my settings.json, the command I use to run my program on my mac is different to the one I need to use on my PC. The specific command I use is
<code>clear && python3 -u<... | [
{
"answer_id": 74354371,
"author": "Ric Villalba",
"author_id": 6912817,
"author_profile": "https://Stackoverflow.com/users/6912817",
"pm_score": 2,
"selected": false,
"text": "df <- df[order(-colSums(apply(df, 2, is.na)))] df <- df[order(colSums(apply(df, 2, is.na)), decreasing = T)] df... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20430561/"
] |
74,354,382 | <p>I am trying to get these images to be in a row side by side. I am following a tutorial for a class assignment and as far as I know the code is perfectly fine. The images are the child of Choices, within the Choice class but for some reason I cannot get the images side by side instead of vertical.</p>
<p><div class="... | [
{
"answer_id": 74354371,
"author": "Ric Villalba",
"author_id": 6912817,
"author_profile": "https://Stackoverflow.com/users/6912817",
"pm_score": 2,
"selected": false,
"text": "df <- df[order(-colSums(apply(df, 2, is.na)))] df <- df[order(colSums(apply(df, 2, is.na)), decreasing = T)] df... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354382",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18729212/"
] |
74,354,386 | <p>I am creating table, and want to remove row by id using input field. (if input field matches with id then the row must be deleted)
can not figure it out.</p>
<p>Your help is much appreciated
`</p>
<pre><code><body onload="addRow()">
<table id="myTable" style="display:none">
... | [
{
"answer_id": 74354371,
"author": "Ric Villalba",
"author_id": 6912817,
"author_profile": "https://Stackoverflow.com/users/6912817",
"pm_score": 2,
"selected": false,
"text": "df <- df[order(-colSums(apply(df, 2, is.na)))] df <- df[order(colSums(apply(df, 2, is.na)), decreasing = T)] df... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17417742/"
] |
74,354,427 | <p>I want to search the email subject from the whole outlook (all folders and archive included).
Do I change the getdefaultfolder or what should I do?</p>
<pre><code>Sub SubjectFound()
Dim oOutlook As Object
Dim oInbox As Object
Dim oFilter As Object
Dim oNS As Object
Dim sFilter As String
Dim lr As Long, r As Long
Co... | [
{
"answer_id": 74354371,
"author": "Ric Villalba",
"author_id": 6912817,
"author_profile": "https://Stackoverflow.com/users/6912817",
"pm_score": 2,
"selected": false,
"text": "df <- df[order(-colSums(apply(df, 2, is.na)))] df <- df[order(colSums(apply(df, 2, is.na)), decreasing = T)] df... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354427",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16290352/"
] |
74,354,479 | <p>From this dataset:</p>
<pre class="lang-sql prettyprint-override"><code>mysql> SELECT * FROM document_signature;
+----+-------------+-------------+---------+-------+-----------+
| id | document_id | employee_id | user_id | order | status |
+----+-------------+-------------+---------+-------+-----------+
| 1 |... | [
{
"answer_id": 74354371,
"author": "Ric Villalba",
"author_id": 6912817,
"author_profile": "https://Stackoverflow.com/users/6912817",
"pm_score": 2,
"selected": false,
"text": "df <- df[order(-colSums(apply(df, 2, is.na)))] df <- df[order(colSums(apply(df, 2, is.na)), decreasing = T)] df... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8875890/"
] |
74,354,485 | <p>I have the following pandas DF:</p>
<pre><code> val
1 10
2 20
3 30
4 40
5 30
</code></pre>
<p>I want to get two output columns: <strong>avg</strong> and <strong>avg_sep</strong></p>
<p><strong>avg</strong> should be the average calculated row by row.</p>
<p><strong>avg_sep</strong> should be the average... | [
{
"answer_id": 74354583,
"author": "Chrysophylaxs",
"author_id": 9499196,
"author_profile": "https://Stackoverflow.com/users/9499196",
"pm_score": 2,
"selected": true,
"text": "import pandas as pd\nimport numpy as np\n\n# Building frame:\ndf = pd.DataFrame(\n data={\"val\": [10, 20, 3... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16459035/"
] |
74,354,521 | <p>I'm making a Firefox browser extension (<strong>note: Chrome extensions and Firefox extensions have very similar APIs</strong>) that monitors screentime on certain websites that can be selected by the user. Specifically, the screen time counter <em>should</em> reset every 24 hours <strong>at midnight</strong>.</p>
<... | [
{
"answer_id": 74354979,
"author": "vanowm",
"author_id": 2930038,
"author_profile": "https://Stackoverflow.com/users/2930038",
"pm_score": 2,
"selected": true,
"text": "setTimeout setInterval setInterval when alarmInfo"
},
{
"answer_id": 74389390,
"author": "gosoccerboy5",
... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15938577/"
] |
74,354,585 | <p>Here is some simplified code. It's not mine, but I'm adapting it for a project of mine. It's part of a sizeable codebase I'm importing, and which I don't want to change more than absolutely necessary.</p>
<pre><code>void function (object& out_thing)
{
object thing;
#pragma omp nowait
for (int k = 0 ; k < 5 ... | [
{
"answer_id": 74397484,
"author": "273K",
"author_id": 6752050,
"author_profile": "https://Stackoverflow.com/users/6752050",
"pm_score": 4,
"selected": true,
"text": "-Wdeprecated-copy ~object object& operator=(const object&);\n"
}
] | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19459114/"
] |
74,354,587 | <p>Im having issues iterating through the dictionary because of the quotation marks in the values, how would I calculate the average in a dicitonary like this?</p>
<p>I tried to use the map function to bypass the quotation marks but that didnt work</p>
| [
{
"answer_id": 74397484,
"author": "273K",
"author_id": 6752050,
"author_profile": "https://Stackoverflow.com/users/6752050",
"pm_score": 4,
"selected": true,
"text": "-Wdeprecated-copy ~object object& operator=(const object&);\n"
}
] | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20445046/"
] |
74,354,591 | <p>I have a string containing a list of names (authors of a book)</p>
<p><code>"John Doe, Jim Smith, Jane Elizabeth Doe"</code></p>
<p>I want to output a string:</p>
<p><code>'"Doe, John", "Smith, Jim", "Doe, Jane Elizabeth"'</code></p>
<p>I managed to work it out for a single au... | [
{
"answer_id": 74397484,
"author": "273K",
"author_id": 6752050,
"author_profile": "https://Stackoverflow.com/users/6752050",
"pm_score": 4,
"selected": true,
"text": "-Wdeprecated-copy ~object object& operator=(const object&);\n"
}
] | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/268436/"
] |
74,354,665 | <p>I'm trying to transform a csv file with year, lat, long and pressure into a 3 dimensional netcdf pressure(time, lat, long).</p>
<p>However, my list is with duplicate values as below:</p>
<pre><code>year,lon,lat,pressure
1/1/00,79.4939,34.4713,11981569640
1/1/01,79.4939,34.4713,11870476671
1/1/02,79.4939,34.4713,11... | [
{
"answer_id": 74397484,
"author": "273K",
"author_id": 6752050,
"author_profile": "https://Stackoverflow.com/users/6752050",
"pm_score": 4,
"selected": true,
"text": "-Wdeprecated-copy ~object object& operator=(const object&);\n"
}
] | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20445054/"
] |
74,354,666 | <p>If I have a list of 10K elements, and I want to randomly iterate through all of them, is there an algorithm that lets me access each element randomly, without just sorting them randomly first?</p>
<p>In other words, this would not be ideal:</p>
<pre class="lang-js prettyprint-override"><code>const sorted = list
... | [
{
"answer_id": 74397484,
"author": "273K",
"author_id": 6752050,
"author_profile": "https://Stackoverflow.com/users/6752050",
"pm_score": 4,
"selected": true,
"text": "-Wdeprecated-copy ~object object& operator=(const object&);\n"
}
] | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1223975/"
] |
74,354,751 | <p>I see a bunch of confusing solutions around, and I'm convinced there's a more simple, elegant way.</p>
<p>Right now, "date" would print 11/07. I simply want it to print 11/06.</p>
<p>I've tried subtracting one all over, I understand it's a string now, but I thought I could subtract before I converted it?<... | [
{
"answer_id": 74354879,
"author": "Cooper",
"author_id": 7215091,
"author_profile": "https://Stackoverflow.com/users/7215091",
"pm_score": 0,
"selected": false,
"text": "let dt = new Date();\nlet minusone = new Date(dt.getFullYear(),dt.getMonth(),dt.getDate()-1)\n"
},
{
"answer_... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354751",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19425874/"
] |
74,354,755 | <p>I'm currently trying to merge sort an array of objects using the <code>compareTo</code> method in the <code>Box</code> class. I think I have it down but I'm getting this logical error.
Sorting the array using <em>merge sort</em>.
The array after merge sort:</p>
<pre class="lang-none prettyprint-override"><code>Width... | [
{
"answer_id": 74354879,
"author": "Cooper",
"author_id": 7215091,
"author_profile": "https://Stackoverflow.com/users/7215091",
"pm_score": 0,
"selected": false,
"text": "let dt = new Date();\nlet minusone = new Date(dt.getFullYear(),dt.getMonth(),dt.getDate()-1)\n"
},
{
"answer_... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20200634/"
] |
74,354,760 | <pre><code>var employees = [
{ name: "Josh", title: "receptionist" },
{ name: "Naila", title: "receptionist" },
{ name: "Tom", title: "doctor" },
{ name: "Becky", title: "doctor" }
];
</code></pre>
<br>
For example on this one I would like ... | [
{
"answer_id": 74354805,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 1,
"selected": true,
"text": "reduce() var employees = [\n { name: \"Josh\", title: \"receptionist\" },\n { name: \"Naila\", title: \"reception... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20445025/"
] |
74,354,779 | <p>I am looking to mutate the same variables with two or more dataframes. What is the best way to implement to reduce redundant code?</p>
<pre><code>library(dplyr)
df1 <- tibble(a = 0.125068, b = 0.144623)
df2 <- tibble(a = 0.226018, b = 0.423600)
df1 <- df1 %>%
mutate(a = round(a, 1),
b = roun... | [
{
"answer_id": 74354805,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 1,
"selected": true,
"text": "reduce() var employees = [\n { name: \"Josh\", title: \"receptionist\" },\n { name: \"Naila\", title: \"reception... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14007231/"
] |
74,354,797 | <p>I try to call fun bind declared in the inner class LaunchesViewHolder from onBindViewHolder() but I got error "Unresolved resource bind"
I was trying with an other variable x, just to see, same problem</p>
<pre><code>class LaunchesAdapter(private val dataSet: List<LaunchItem>) :
RecyclerView.Ada... | [
{
"answer_id": 74354805,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 1,
"selected": true,
"text": "reduce() var employees = [\n { name: \"Josh\", title: \"receptionist\" },\n { name: \"Naila\", title: \"reception... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20445122/"
] |
74,354,810 | <p>I'm attempting to have get a data output for the amount of orders per shoe color. Each shoe sold has only 2 sizes that can be sold. I would like to get the total amount of each size sold into 1 object per order date.</p>
<p>I've attempted to push into a new array that gets the total of sizes per order Date into a ne... | [
{
"answer_id": 74354901,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 3,
"selected": true,
"text": "reduce() let result = data.reduce((a,c) =>{\n let obj = a.find(i => i.orderDate == c.order_date)\n let key = c.si... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13501289/"
] |
74,354,840 | <p>I have a pandas dataframe like:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>one</th>
<th>two</th>
<th>three</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>2</td>
<td>4</td>
<td>6</td>
</tr>
<tr>
<td>1</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>10</td>... | [
{
"answer_id": 74354986,
"author": "eshirvana",
"author_id": 1367454,
"author_profile": "https://Stackoverflow.com/users/1367454",
"pm_score": 2,
"selected": true,
"text": "abs loc out = df.loc[df['one'].abs() > 9]\n >>>\n one two three\n3 10 3 4\n6 -10 3 4\n"
},... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4451521/"
] |
74,354,869 | <p>I'm working with boost::asio library for serial communications, and got some problems using it. Below is my code with the problem.</p>
<pre><code>std::unique_ptr<asio::serial_port> port_;
asio::io_service io_;
// Connect serial port 'COM8'
port_ = std::make_unique<asio::serial_port>(asio::serial_port(io... | [
{
"answer_id": 74354986,
"author": "eshirvana",
"author_id": 1367454,
"author_profile": "https://Stackoverflow.com/users/1367454",
"pm_score": 2,
"selected": true,
"text": "abs loc out = df.loc[df['one'].abs() > 9]\n >>>\n one two three\n3 10 3 4\n6 -10 3 4\n"
},... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13050727/"
] |
74,354,883 | <p>I have created a new angular project but i don't known it run.</p>
<p>Please help me.</p>
<p>I have created a new angular project but i don't known it run.</p>
<p>Please help me.</p>
| [
{
"answer_id": 74354922,
"author": "Christian Joseph Dalisay",
"author_id": 20049174,
"author_profile": "https://Stackoverflow.com/users/20049174",
"pm_score": 1,
"selected": false,
"text": "ng serve"
},
{
"answer_id": 74355814,
"author": "Jinu Joseph",
"author_id": 11138... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16554482/"
] |
74,354,897 | <p>I want to change order of the key and value in an array to specified order in javascript</p>
<p>From this</p>
<pre><code>{
[
"id" : 1,
"name" : "John",
"address" : "Britain"
]
}
</code></pre>
<p>to this</p>
<pre><code>{
[
"id" : 1,... | [
{
"answer_id": 74355129,
"author": "Alip Setiawan",
"author_id": 20444577,
"author_profile": "https://Stackoverflow.com/users/20444577",
"pm_score": 2,
"selected": false,
"text": "const arr = [{\"id\" : 1, \"name\": \"John\", \"address\": \"Britain\" }]\n\nconst sortOrder = {'id': 1, 'a... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19869169/"
] |
74,354,913 | <p>My main.tf is like this, I wanted to assign "google_project_iam_binding" -> "members" with "instance-sink" -> "unique_writer_identity"
but I'm already using the for each to set the role in google_project_iam_binding but iam unable to think of a way to use for each twice ... | [
{
"answer_id": 74355096,
"author": "Naveen Kulkarni",
"author_id": 9714060,
"author_profile": "https://Stackoverflow.com/users/9714060",
"pm_score": 0,
"selected": false,
"text": "resource \"google_project_iam_binding\" \"log-writer\" {\n \n\n for_each = toset([\n \"roles/storage.obj... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19840332/"
] |
74,354,918 | <p>I have a tricky problem, as per the title I want to run a tcp server on the host machine that communicates to clients inside docker containers. I know you can do this with the server in a container, using the -p option to expose ports in the container and match them to the host. Or you could even setup a custom netw... | [
{
"answer_id": 74355096,
"author": "Naveen Kulkarni",
"author_id": 9714060,
"author_profile": "https://Stackoverflow.com/users/9714060",
"pm_score": 0,
"selected": false,
"text": "resource \"google_project_iam_binding\" \"log-writer\" {\n \n\n for_each = toset([\n \"roles/storage.obj... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20445137/"
] |
74,354,924 | <p>I am trying to convert spatial data from a CDC/HHS data on hospital strain, as downloadable from here:</p>
<p><a href="https://healthdata.gov/Hospital/COVID-19-Reported-Patient-Impact-and-Hospital-Capa/anag-cw7u" rel="nofollow noreferrer">https://healthdata.gov/Hospital/COVID-19-Reported-Patient-Impact-and-Hospital-... | [
{
"answer_id": 74355256,
"author": "Zhiqiang Wang",
"author_id": 11741943,
"author_profile": "https://Stackoverflow.com/users/11741943",
"pm_score": 3,
"selected": true,
"text": "geocoded_hospital_address library(sf)\ndf_0 <- COVID_19_Reported_Patient_Impact_and_Hospital_Capacity_by_Faci... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7422442/"
] |
74,354,927 | <p>I have a social media webapp with posts. I am trying to allow users to upload an image to Cloudinary from a React front end. There is sometimes an image attached to a post and sometimes not.</p>
<p>If there is an image, I want to wait for the image to be uploaded to Cloudinary and then, once the image URL has been r... | [
{
"answer_id": 74354963,
"author": "Bikas Lin",
"author_id": 17582798,
"author_profile": "https://Stackoverflow.com/users/17582798",
"pm_score": 3,
"selected": true,
"text": "imgURL const uploadImage = async (image) => {\n console.log('uploading image');\n const formData = new Form... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2270903/"
] |
74,354,968 | <p>I have the following code</p>
<pre><code>visited = [[false]*4] * 3
</code></pre>
<p>which shows me the 2-D array</p>
<pre><code>[[false, false, false, false], [false, false, false, false], [false, false, false, false]]
</code></pre>
<p>now I wish to change the element at row 1, column 2 as shown:</p>
<pre><code>[[fa... | [
{
"answer_id": 74355016,
"author": "Chris",
"author_id": 15261315,
"author_profile": "https://Stackoverflow.com/users/15261315",
"pm_score": 3,
"selected": true,
"text": "#object_id irb(main):005:0> visited = [[false]*4] * 3\n=> [[false, false, false, false], [false, false, false, false]... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74354968",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14255458/"
] |
74,355,060 | <p>I am trying to get the list of company names from : <a href="https://www.ces.tech/Exhibits/Exhibitor-Directory.aspx" rel="nofollow noreferrer">https://www.ces.tech/Exhibits/Exhibitor-Directory.aspx</a></p>
<p>How can I fix this error?
<a href="https://i.stack.imgur.com/RDhxE.png" rel="nofollow noreferrer"><img src="... | [
{
"answer_id": 74355016,
"author": "Chris",
"author_id": 15261315,
"author_profile": "https://Stackoverflow.com/users/15261315",
"pm_score": 3,
"selected": true,
"text": "#object_id irb(main):005:0> visited = [[false]*4] * 3\n=> [[false, false, false, false], [false, false, false, false]... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20445432/"
] |
74,355,067 | <p>I plan to calculate distance between categorical data (Distance From First Dataset to Second Dataset)</p>
<p>Here's my dataset</p>
<p>First Dataset</p>
<pre><code>Id City Phone
A1 Jakarta Samsung
A2 Surabaya Apple
A3 Singapore Sony
</code></pre>
<p>Second Dataset (as Input)</p>
<pre><... | [
{
"answer_id": 74356994,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 2,
"selected": false,
"text": "DataFrame.join DataFrame.pivot df = df2.merge(df1, how='cross', suffixes=('','_'))\ndf = df.join(City.stack().rename... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7585973/"
] |
74,355,068 | <p>What's the best way to produce a struct result with 2 or more models combined in Gorm?</p>
<p>Given these example models:</p>
<pre><code>type Book struct {
gorm.Model
Title string
Description string
AuthorID uint
}
</code></pre>
<pre><code>type Author struct {
gorm.Model
FirstName string
LastName string
Book... | [
{
"answer_id": 74356973,
"author": "S H A S H A N K",
"author_id": 12489086,
"author_profile": "https://Stackoverflow.com/users/12489086",
"pm_score": 0,
"selected": false,
"text": "type Driver struct {\n gorm.Model\n \n Name string\n \n ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20445392/"
] |
74,355,076 | <p>So this is my code for a homework</p>
<pre><code>CREATE TABLE workorders
(
wo# NUMBER(5) PRIMARY KEY,
proj# VARCHAR(10) NOT NULL FOREIGN KEY REFERENCES project(proj#),
wo_desc VARCHAR(30) NOT NULL UNIQUE,
wo_assigned VARCHAR(30),
wo_hours NUMBER(5) NOT NULL CHECK(wo_hours>0),
wo_start DATE,
wo_due DATE,
wo_comple... | [
{
"answer_id": 74356973,
"author": "S H A S H A N K",
"author_id": 12489086,
"author_profile": "https://Stackoverflow.com/users/12489086",
"pm_score": 0,
"selected": false,
"text": "type Driver struct {\n gorm.Model\n \n Name string\n \n ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19996278/"
] |
74,355,081 | <p>I try to install R packages by using devtools (for specific version) but got some errors.
I have to install packages that's specific version and use specific R version (4.1.*) plz.</p>
<h3>R, devtools version</h3>
<ul>
<li>R version : 4.1.3</li>
<li>devtools: 2.4.4
<a href="https://i.stack.imgur.com/AGuV2.png" rel="... | [
{
"answer_id": 74355268,
"author": "neilfws",
"author_id": 89482,
"author_profile": "https://Stackoverflow.com/users/89482",
"pm_score": 0,
"selected": false,
"text": "apt-cache search libXXX -dev apt-get install sudo apt-get install libblas-dev\nsudo apt-get install liblapack-dev\n"
}... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14932689/"
] |
74,355,101 | <p>Im working with fpdf that display two images every page, but it only display one picture every page.
Here is my code:</p>
<pre><code>$id = $_GET['id'];
$stmti = $database->prepare("SELECT * FROM inv_images WHERE id = :id");
$stmti->bindParam(':id',$id);
$stmti->execute();
$imageList = $stmti->f... | [
{
"answer_id": 74355268,
"author": "neilfws",
"author_id": 89482,
"author_profile": "https://Stackoverflow.com/users/89482",
"pm_score": 0,
"selected": false,
"text": "apt-cache search libXXX -dev apt-get install sudo apt-get install libblas-dev\nsudo apt-get install liblapack-dev\n"
}... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19303061/"
] |
74,355,103 | <p>I am able to print the updated value of dataset but the new added row did not reflecting the updated data from the table component display.</p>
<p>I temporarily put the event on keypress to trigger for adding new row on the table, here the simple code that I playing.</p>
<pre><code>function createData(hardware, cost... | [
{
"answer_id": 74355268,
"author": "neilfws",
"author_id": 89482,
"author_profile": "https://Stackoverflow.com/users/89482",
"pm_score": 0,
"selected": false,
"text": "apt-cache search libXXX -dev apt-get install sudo apt-get install libblas-dev\nsudo apt-get install liblapack-dev\n"
}... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5191640/"
] |
74,355,188 | <p>I am in college and I have this assigment for data structures and algorithms, this is the project:
"Develop a program that asks the user to enter a capital for a U.S. state. Upon receiving the user input, the program reports whether the user input is correct. For this application, the 50 states and their capita... | [
{
"answer_id": 74355268,
"author": "neilfws",
"author_id": 89482,
"author_profile": "https://Stackoverflow.com/users/89482",
"pm_score": 0,
"selected": false,
"text": "apt-cache search libXXX -dev apt-get install sudo apt-get install libblas-dev\nsudo apt-get install liblapack-dev\n"
}... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20433523/"
] |
74,355,201 | <p>I have a game-level map image like this and I code by manual HTML - CSS - JS. I want to attach
the level number <strong>based on the coordinates of the image</strong> but it moves to another position for another screen. I have used relative position for the parent element and absolute position for child elements. (I... | [
{
"answer_id": 74355235,
"author": "LeFede",
"author_id": 19694564,
"author_profile": "https://Stackoverflow.com/users/19694564",
"pm_score": 0,
"selected": false,
"text": "<div class=\"image\">\n <span id=\"span-1\">1</span>\n <span id=\"span-2\">2</span>\n</div>\n .image {\n positio... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355201",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20024455/"
] |
74,355,219 | <p>I am trying to conncect MSSQL DB to python, and the DB's password has included a character '#'.</p>
<p>Is there any way to use '#' in string, not changing the password?</p>
| [
{
"answer_id": 74355235,
"author": "LeFede",
"author_id": 19694564,
"author_profile": "https://Stackoverflow.com/users/19694564",
"pm_score": 0,
"selected": false,
"text": "<div class=\"image\">\n <span id=\"span-1\">1</span>\n <span id=\"span-2\">2</span>\n</div>\n .image {\n positio... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20335745/"
] |
74,355,223 | <p>I am trying to extract from URL str "/used/Mercedes-Benz/2021-Mercedes-Benz-Sprinte..."
the entire Make name, i.e. "Mercedes-Benz"
BUT my pattern only returns the first letter, i.e. "M"</p>
<p>Please help me come up with the correct pattern to use on pandas df.</p>
<p>Thank you</p>
<p>C... | [
{
"answer_id": 74355253,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 0,
"selected": false,
"text": "URLS_by_City[\"Make\"] = URLS_by_City[\"Page\"].str.extract(r'([^/]+)/\\d{4}\\b')\n URLS_by_City[\"Make\"] =... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20445487/"
] |
74,355,230 | <p>I want to remove JSON properties by a specific "key" but it is not working as I expected. My code hasn't changed a thing.</p>
<p>I did the following</p>
<pre><code>void Start()
{
var foodlist = new List<Food>()
{
new() { name = "Banana", price = 3000 },
new() { name... | [
{
"answer_id": 74355253,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 0,
"selected": false,
"text": "URLS_by_City[\"Make\"] = URLS_by_City[\"Page\"].str.extract(r'([^/]+)/\\d{4}\\b')\n URLS_by_City[\"Make\"] =... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20445491/"
] |
74,355,231 | <p>I am working on a pipeline to dynamically dump all columns from the salesforce object to the S3 bucket.
I get all columns for a salesforce object using describe object API. I store all columns into a variable and then create a big SOQL query out of it and submit a bulk query job v2.</p>
<p>Now, this is the main prob... | [
{
"answer_id": 74356082,
"author": "Harshank Bansal",
"author_id": 10946202,
"author_profile": "https://Stackoverflow.com/users/10946202",
"pm_score": 3,
"selected": true,
"text": "mapObject underscore %dw 2.0\nimport underscore from dw::core::Strings\noutput application/json\n---\npaylo... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17967163/"
] |
74,355,233 | <p>I would like to stack my dataset so all observations relate to all other observations but itself.
Suppose I have the following dataset:</p>
<pre><code>df <- data.frame(id = c("a", "b", "c", "d" ),
x1 = c(1,2,3,4))
df
id x1
1 a 1
2 b 2
3 c 3
4 d 4... | [
{
"answer_id": 74355281,
"author": "Ritchie Sacramento",
"author_id": 2835261,
"author_profile": "https://Stackoverflow.com/users/2835261",
"pm_score": 2,
"selected": false,
"text": "tidyr::expand_grid() library(tidyr)\nlibrary(dplyr)\n\nexpand_grid(df, df, .name_repair = make.unique) %>... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19991656/"
] |
74,355,269 | <p>I have a dataframe like:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>header1</th>
<th>header2</th>
<th>header3</th>
<th>header4</th>
</tr>
</thead>
<tbody>
<tr>
<td>NA</td>
<td>NA</td>
<td>x</td>
<td>y</td>
</tr>
<tr>
<td>a</td>
<td>NA</td>
<td>d</td>
<td>b</td>
</tr>
<tr>
<td>NA</td... | [
{
"answer_id": 74355318,
"author": "Ricardo Semião e Castro",
"author_id": 13048728,
"author_profile": "https://Stackoverflow.com/users/13048728",
"pm_score": 2,
"selected": false,
"text": "cur_column() ifelse across library(tidyverse)\n\ndf = tibble(\n header1 = sample(c(NA, \"a\", \"b... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19489286/"
] |
74,355,273 | <p>I'm setting up a pipeline that provisions resources in AWS. Each time I run the pipeline, I get get a module already exist error. I know the resources I want I already provisioned but my understanding of Terraform is that if it already exists it just skips it and provisions the rest that don't already exist. How do... | [
{
"answer_id": 74355318,
"author": "Ricardo Semião e Castro",
"author_id": 13048728,
"author_profile": "https://Stackoverflow.com/users/13048728",
"pm_score": 2,
"selected": false,
"text": "cur_column() ifelse across library(tidyverse)\n\ndf = tibble(\n header1 = sample(c(NA, \"a\", \"b... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11734835/"
] |
74,355,274 | <pre><code>Listening on port 3000
/backend/node_modules/ioredis/built/Command.js:43
this.args = args.flat();
^
TypeError: args.flat is not a function
at new Command (/Users/apple/Desktop/bbs-backend/node_modules/ioredis/built/Command.js:43:26)
at EventEmitter.info (/Users/apple... | [
{
"answer_id": 74355318,
"author": "Ricardo Semião e Castro",
"author_id": 13048728,
"author_profile": "https://Stackoverflow.com/users/13048728",
"pm_score": 2,
"selected": false,
"text": "cur_column() ifelse across library(tidyverse)\n\ndf = tibble(\n header1 = sample(c(NA, \"a\", \"b... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8764571/"
] |
74,355,282 | <p>I have a txt file and I want to add or change its contents based on the characters on each line,</p>
<p>let's say i wanted to add string "--" on each line but break the iteration when found string "*******" and continue add string "--" after found "#######"</p>
<p><strong>Inpu... | [
{
"answer_id": 74355318,
"author": "Ricardo Semião e Castro",
"author_id": 13048728,
"author_profile": "https://Stackoverflow.com/users/13048728",
"pm_score": 2,
"selected": false,
"text": "cur_column() ifelse across library(tidyverse)\n\ndf = tibble(\n header1 = sample(c(NA, \"a\", \"b... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20445538/"
] |
74,355,302 | <p>I am trying to build an app to replicate a video streamer.
I have encountered an issue that can't seem to solve.</p>
<p>The app is working fine when run in an emulator (tried a few emulated devices) but it is crashing 99% of the time in my Samsung android tablet running android 12L.</p>
<p>I have noticed that the ap... | [
{
"answer_id": 74355338,
"author": "zaitsman",
"author_id": 2057955,
"author_profile": "https://Stackoverflow.com/users/2057955",
"pm_score": 1,
"selected": true,
"text": "setBannerMoviesPagerAdapter(bannerMoviesList);\n new android.os.Handler(android.os.Looper.getMainLooper()).post({\n ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20200526/"
] |
74,355,304 | <p>I get a website (<a href="https://www.diabetesdaily.com/forum/threads/had-a-friend-with-type-one.136015/" rel="nofollow noreferrer">https://www.diabetesdaily.com/forum/threads/had-a-friend-with-type-one.136015/</a>)</p>
<p>And I found there are many forum pages
<a href="https://i.stack.imgur.com/3TZpC.jpg" rel="nofo... | [
{
"answer_id": 74355338,
"author": "zaitsman",
"author_id": 2057955,
"author_profile": "https://Stackoverflow.com/users/2057955",
"pm_score": 1,
"selected": true,
"text": "setBannerMoviesPagerAdapter(bannerMoviesList);\n new android.os.Handler(android.os.Looper.getMainLooper()).post({\n ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17429194/"
] |
74,355,309 | <p>The code is shown below.</p>
<pre class="lang-html prettyprint-override"><code><v-container fluid>
<!-- page title -->
<v-row>
…
</v-row>
<!-- body -->
<v-row justify="center" no-gutters>
<!-- input -->
<v-col cols="5&q... | [
{
"answer_id": 74355382,
"author": "Zillion Dev",
"author_id": 18552333,
"author_profile": "https://Stackoverflow.com/users/18552333",
"pm_score": -1,
"selected": false,
"text": "display: flex;\nalign-items: center;\n"
},
{
"answer_id": 74355461,
"author": "kissu",
"autho... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20051128/"
] |
74,355,327 | <p>Is there a way to add text labels to the points on a scatterplot? Each point has a string associated with it as its label. I like to label only as many points as it can be done withour overlapping?</p>
<pre><code>df = DataFrame(x=rand(100), y=rand(100), z=randstring.(fill(5,100)))
scatter(df.x, df.y)
annotate!(df.x,... | [
{
"answer_id": 74366069,
"author": "Bill",
"author_id": 4282847,
"author_profile": "https://Stackoverflow.com/users/4282847",
"pm_score": 0,
"selected": false,
"text": "series_annotations using Plots\n\nx = collect(0:0.1:2)\ny = sinpi.(x)\n\nscatter(x, y, series_annotations = text.(1:len... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355327",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17988569/"
] |
74,355,350 | <p>So I need to go through a loop and apply conditional statement in every element inside the matrices' rows.
conditions need to be checked:</p>
<ol>
<li>whether the elements is alphabet or not, if yes append it if not go for next conditional checking</li>
<li>next checking should be checking if its symbol/non-alphabet... | [
{
"answer_id": 74366069,
"author": "Bill",
"author_id": 4282847,
"author_profile": "https://Stackoverflow.com/users/4282847",
"pm_score": 0,
"selected": false,
"text": "series_annotations using Plots\n\nx = collect(0:0.1:2)\ny = sinpi.(x)\n\nscatter(x, y, series_annotations = text.(1:len... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18489452/"
] |
74,355,352 | <p>In my website there is, 6 digit random numbers known as <code>refno</code> Example <code>20221234</code>and there is fileupload. Right now, it saves the photos with its own name on to the another filepath example<code>cat.png</code>. Currently, I tried to add that <code>refno</code>in front of the picture while savi... | [
{
"answer_id": 74355473,
"author": "manju nath",
"author_id": 20439964,
"author_profile": "https://Stackoverflow.com/users/20439964",
"pm_score": -1,
"selected": false,
"text": "<?php\nif(isset($_POST['saveimage']))\n{\n $directory=\"images/\";\n $filename =$_FILES['file']['name'];... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355352",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19928120/"
] |
74,355,357 | <p>I have a 2 dimensional list of list but I would like the list inside the list to be dictionary</p>
<pre><code>list1 = [["ab","cd"],["ef","gh"]]
#code here,
print(output_list_of_dict)
#output should be ...
#[{"name": "ab", "phone":"cd"... | [
{
"answer_id": 74355373,
"author": "Leon",
"author_id": 15319257,
"author_profile": "https://Stackoverflow.com/users/15319257",
"pm_score": 1,
"selected": false,
"text": "list1 = [[\"ab\",\"cd\"],[\"ef\",\"gh\"]]\n\nres = []\nfor item in list1:\n res.append({\"name\": item[0], \"phone... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13742058/"
] |
74,355,390 | <pre><code>from functools import reduce
orders = [ [1, ("5464", 4, 9.99), ("8274",18,12.99), ("9744", 9, 44.95)]],
[2, ("5464", 9, 9.99), ("9744", 9, 44.95)],
[3, ("5464", 9, 9.99), ("88112", 11, 24.99)],
[4, ("... | [
{
"answer_id": 74355547,
"author": "Raibek",
"author_id": 11040577,
"author_profile": "https://Stackoverflow.com/users/11040577",
"pm_score": 0,
"selected": false,
"text": "orders = [[1, (\"5464\", 4, 9.99), (\"8274\",18,12.99), (\"9744\", 9, 44.95)], \n [2, (\"5464\", 9, 9.99),... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15583888/"
] |
74,355,414 | <p>i am trying to have a code to give me a list of meals and put the day i will be having this. but when i run it it put its out the same item for the week and repeats that with the next meal. not sure how to fix this.</p>
<pre><code>monday: random meal
tuesday: random meal
wednesday: random meal
thursday: random meal
... | [
{
"answer_id": 74355456,
"author": "Amirhossein Sefati",
"author_id": 11856099,
"author_profile": "https://Stackoverflow.com/users/11856099",
"pm_score": 2,
"selected": false,
"text": "random_item for i in db.index:\n random_item = [db[\"meals\"].loc[i]]\n random_item = ran... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17775089/"
] |
74,355,423 | <pre><code>class Mytextlist extends StatelessWidget {
final Function adddata;
Mytextlist(this.adddata);
TextEditingController titleController = TextEditingController();
TextEditingController valueController = TextEditingController();
@override
Widget build(BuildContext context) {
retur... | [
{
"answer_id": 74355456,
"author": "Amirhossein Sefati",
"author_id": 11856099,
"author_profile": "https://Stackoverflow.com/users/11856099",
"pm_score": 2,
"selected": false,
"text": "random_item for i in db.index:\n random_item = [db[\"meals\"].loc[i]]\n random_item = ran... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12933247/"
] |
74,355,437 | <p>How can I ask the user the capitals of each state and tell them if they are correct or incorrect? If they are wrong can python reply with the correct answer and tally up their score at the end. I will post what I have below and what I wish for it to show once I run it.</p>
<pre><code>statesAndCapitals={ "Alabam... | [
{
"answer_id": 74355456,
"author": "Amirhossein Sefati",
"author_id": 11856099,
"author_profile": "https://Stackoverflow.com/users/11856099",
"pm_score": 2,
"selected": false,
"text": "random_item for i in db.index:\n random_item = [db[\"meals\"].loc[i]]\n random_item = ran... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20162747/"
] |
74,355,454 | <p>I tried to retrieve data from the API to display in the dropdown but an error occurred, I've tried according to what I was looking for on google and also the forum but the problem still appears.
is there something wrong in writing in my code,
Thank you</p>
<blockquote>
<p>this is the function that is executed when c... | [
{
"answer_id": 74355672,
"author": "Mohan Sai Manthri",
"author_id": 10711216,
"author_profile": "https://Stackoverflow.com/users/10711216",
"pm_score": 0,
"selected": false,
"text": "List<DropdownMenuItem> List<DropdownMenuItem<String>> snapshot.data\n ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19132574/"
] |
74,355,462 | <p>I have the following data-frame, <code>df</code>, that is population with 1000+ rows of data. Here is what it would look like:</p>
<pre><code> date mkt bid ask
0 01/07/22 LWAPO 0.6451 0.6460
1 01/07/22 HUYNE 0.6452 0.6458
2 01/07/22 VERAS 0.6447 0.6457
3 ... | [
{
"answer_id": 74355538,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 3,
"selected": true,
"text": "bid ask df1 = (df.groupby('date')\n .agg({'bid': lambda x: df.loc[x.idxmax(), 'mkt'],\n 'ask': ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355462",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19764896/"
] |
74,355,478 | <p>I have a string that looks like:</p>
<pre class="lang-js prettyprint-override"><code>const msg = " [['robot_arm', 'bc1', 'p_09_04_00'], ['operator', 'lc1', 'p_09_15_00'], ['robot_arm', 'oc1', 'p_08_17_00']]"
</code></pre>
<p>And I want to split it into an array of arrays of strings, I have tried to split t... | [
{
"answer_id": 74355488,
"author": "Benjamin Penney",
"author_id": 6545526,
"author_profile": "https://Stackoverflow.com/users/6545526",
"pm_score": 3,
"selected": true,
"text": "const msg = \" [['robot_arm', 'bc1', 'p_09_04_00'], ['operator', 'lc1', 'p_09_15_00'], ['robot_arm', 'oc1', '... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8618242/"
] |
74,355,481 | <p>I'm trying to position the green box in the center of the page but totally unsuccessfully.</p>
<p>I set the body as flex..this should allow me to align the inside container to the center but it doesn't work. Why?</p>
<p><a href="https://i.stack.imgur.com/DvFN3.png" rel="nofollow noreferrer"><img src="https://i.stack... | [
{
"answer_id": 74355511,
"author": "Anis",
"author_id": 6316804,
"author_profile": "https://Stackoverflow.com/users/6316804",
"pm_score": 3,
"selected": true,
"text": "vh justify-content: center; .body{\n background-color: black;\n display: flex;\n width: 100%;\n height: 100v... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355481",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9962676/"
] |
74,355,566 | <p>I'm trying to apply reactI18next on a project, normally you to toggle the language change you would create a button that would call the "changelanguage" function like this:</p>
<pre><code> const changeLanguage = (lng) => {
i18n.changeLanguage(lng);
}
<button onClick={() => changeLanguage('... | [
{
"answer_id": 74355593,
"author": "Anis",
"author_id": 6316804,
"author_profile": "https://Stackoverflow.com/users/6316804",
"pm_score": 2,
"selected": false,
"text": "onChange import { useState } from \"react\";\n\nexport default function App() {\n const [lang , setLang] = useState('e... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355566",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13312817/"
] |
74,355,571 | <p>I have the following data set:</p>
<pre><code>df <- data.frame(identifier = c("a","b","b","c"),
disease = c("heart, lung","lung, heart,,","lung, heart, heart, liver", "kidney, brain "))
</code></pre>
<p>which give... | [
{
"answer_id": 74355712,
"author": "Just James",
"author_id": 19730031,
"author_profile": "https://Stackoverflow.com/users/19730031",
"pm_score": 0,
"selected": false,
"text": "%in% ifelse lapply cleaned <- strsplit(gsub(\",\\\\s?\", \" \", df$disease), \"\\\\s\\\\s?\")\n\nunique_cleaned... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15250406/"
] |
74,355,601 | <p>I'm trying to implement a simple Huffman coding algorithm. I take my input string (ddddbbcccaeeeee) and use it to create 2 arrays, those being a char array called <code>usedCharacters</code> and an int array called <code>characterCounts</code>. However these arrays need to be sorted by the number of times the charac... | [
{
"answer_id": 74355712,
"author": "Just James",
"author_id": 19730031,
"author_profile": "https://Stackoverflow.com/users/19730031",
"pm_score": 0,
"selected": false,
"text": "%in% ifelse lapply cleaned <- strsplit(gsub(\",\\\\s?\", \" \", df$disease), \"\\\\s\\\\s?\")\n\nunique_cleaned... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17266557/"
] |
74,355,616 | <p>i have this <strong>csv file</strong> i successfully convert to html with the script below.</p>
<pre><code>name,age
mike,109
sarah,25
</code></pre>
<p><strong>Conversion Script</strong></p>
<pre><code>#!/bin/bash
awk 'BEGIN {
h[1] = "name"
h[2] = "age"
FS=","
print "<!DOCTY... | [
{
"answer_id": 74357596,
"author": "MyICQ",
"author_id": 1818059,
"author_profile": "https://Stackoverflow.com/users/1818059",
"pm_score": 1,
"selected": false,
"text": "\nfor (i=1;i<=NF;i++)\n{\n#insert first row of file as header\nif (NR==1){\n print \"<th>\" h[i] \"</th>\"\n } els... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19452526/"
] |
74,355,640 | <p>I have an asp.net framework api endpoint that throws an error on IIS. it is a post method as thus:</p>
<pre><code> [HttpPost]
[Route("api/ebonyiproxy/validateexpectedpaymentref")]
public async Task<IHttpActionResult> GetResult(CustomerRequest request)
{
...
catch (Excep... | [
{
"answer_id": 74357596,
"author": "MyICQ",
"author_id": 1818059,
"author_profile": "https://Stackoverflow.com/users/1818059",
"pm_score": 1,
"selected": false,
"text": "\nfor (i=1;i<=NF;i++)\n{\n#insert first row of file as header\nif (NR==1){\n print \"<th>\" h[i] \"</th>\"\n } els... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9337608/"
] |
74,355,652 | <p>I have installed "laravel/jetstream": "^2.9" on "laravel/framework": "^8.75". When I accessed Profile Information page, it doesn't load necessary information into relevant form fields.Please help me with this isses.<a href="https://i.stack.imgur.com/Tlg5u.png" rel="nofollow no... | [
{
"answer_id": 74357596,
"author": "MyICQ",
"author_id": 1818059,
"author_profile": "https://Stackoverflow.com/users/1818059",
"pm_score": 1,
"selected": false,
"text": "\nfor (i=1;i<=NF;i++)\n{\n#insert first row of file as header\nif (NR==1){\n print \"<th>\" h[i] \"</th>\"\n } els... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13775355/"
] |
74,355,653 | <p>I have this dataset, where I will use to fill missing values.</p>
<pre><code>In [1]: sex_class = ['female','male']
pclass = [1,2,3]
fill_values = [34,40,29,18,24,25]
In [2]: for i in pclass:
for j in sex_class:
print(i,j)
Out[2]: 1 female
1 male
2 female
... | [
{
"answer_id": 74355709,
"author": "J V S Krishna",
"author_id": 20355000,
"author_profile": "https://Stackoverflow.com/users/20355000",
"pm_score": 0,
"selected": false,
"text": "count = 0\nfor i in pclass:\n for j in sex_class:\n print(i,j,fill_values[count])\n count +... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18193889/"
] |
74,355,669 | <p>When looping an array, people often use a simple method like below.</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>const array = [1,2,3,4,5];
for (let i = 0; i < array... | [
{
"answer_id": 74355687,
"author": "Elliott Frisch",
"author_id": 2970947,
"author_profile": "https://Stackoverflow.com/users/2970947",
"pm_score": 2,
"selected": false,
"text": "array[i] N"
}
] | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355669",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11873634/"
] |
74,355,680 | <p>I have made the sidebar sticky by using fixed sidebar plugin but the sidebar disappear when scroll back to top I have tried many other plugin but they're not working. This
<a href="https://willowdaleequity.com/blog/acquire-69-unit-georgia-apartment-complex-press-release/" rel="nofollow noreferrer">https://willowdale... | [
{
"answer_id": 74355687,
"author": "Elliott Frisch",
"author_id": 2970947,
"author_profile": "https://Stackoverflow.com/users/2970947",
"pm_score": 2,
"selected": false,
"text": "array[i] N"
}
] | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19480288/"
] |
74,355,707 | <p>Here is a column in df which contains integer and string both combine together.
(even here's numbers type are string)</p>
<p>I want split the df['symbol'] into df['num'] and df['name'],how can I do this question by re.</p>
<p>QUESTION:</p>
<pre><code>df = pd.DataFrame({'symbol': ['12345abc', '2234bcd', '323456cde'],... | [
{
"answer_id": 74355687,
"author": "Elliott Frisch",
"author_id": 2970947,
"author_profile": "https://Stackoverflow.com/users/2970947",
"pm_score": 2,
"selected": false,
"text": "array[i] N"
}
] | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19546365/"
] |
74,355,713 | <p>I have a total of 10 items and I am <em>mapping</em> through them to render each one. I want least opacity for last element and highest for first element. I am aware of <code>:first</code> and <code>:last</code> in <code>tailwind-css</code>, but I was wondering if there is way so that I can target lets say <em>my 8t... | [
{
"answer_id": 74356122,
"author": "John Li",
"author_id": 20436957,
"author_profile": "https://Stackoverflow.com/users/20436957",
"pm_score": 0,
"selected": false,
"text": "nth-child {[0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((item) => {\n // Generate class name\n // Need to con... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15759228/"
] |
74,355,714 | <p>The following C++ template <a href="https://stackoverflow.com/a/1815371/3410351">detects overflows</a> from multiplying two unsigned integers.</p>
<pre><code>template<typename UInt> UInt safe_multiply(UInt a, UInt b) {
UInt x = a * b; // x := ab mod n, for n := 2^#bits > 0
if (a != 0 && x / ... | [
{
"answer_id": 74355874,
"author": "Elliott",
"author_id": 8658157,
"author_profile": "https://Stackoverflow.com/users/8658157",
"pm_score": 2,
"selected": true,
"text": "* / N = {0, 1, ..., n - 1} n n n N n N x x = a*b (mod n) x,a,b N x = a*b - k*n k x,a,b N k N a,n x,b x,a,b N x = a*b ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3410351/"
] |
74,355,715 | <p>I have the df:</p>
<pre><code>lst_1 = ['November-2022', 'October-2022', 'September-2022', 'November-2022']
lst_2 = ['', '', '', '', '']
lst_3 = ['', '', '', '', '']
lst_4 = ['', '', '', '', '']
df1 = pd.DataFrame(list(zip(lst_1 , lst_2, lst_3, lst_4)),
columns =['Date_updated', 'November-2022', 'Octob... | [
{
"answer_id": 74355874,
"author": "Elliott",
"author_id": 8658157,
"author_profile": "https://Stackoverflow.com/users/8658157",
"pm_score": 2,
"selected": true,
"text": "* / N = {0, 1, ..., n - 1} n n n N n N x x = a*b (mod n) x,a,b N x = a*b - k*n k x,a,b N k N a,n x,b x,a,b N x = a*b ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14342004/"
] |
74,355,726 | <p>I have created a doubly linked list, that appends new nodes to the doubly linked list. I am currently trying to work on deleting a node at a specific index.
This is my node class, which initializes three variables, next, previous, and it imports objects from a student class that I have. Shouldn't the <code>for</code... | [
{
"answer_id": 74355874,
"author": "Elliott",
"author_id": 8658157,
"author_profile": "https://Stackoverflow.com/users/8658157",
"pm_score": 2,
"selected": true,
"text": "* / N = {0, 1, ..., n - 1} n n n N n N x x = a*b (mod n) x,a,b N x = a*b - k*n k x,a,b N k N a,n x,b x,a,b N x = a*b ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355726",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,355,735 | <p>I have these 2 tables:</p>
<p>Table one(parties):</p>
<pre><code>public function up()
{
Schema::create('parties', function (Blueprint $table) {
$table->id();
$table->string('full_name');
$table->string('ic_passport');
$table->string('nationality');
$table->s... | [
{
"answer_id": 74355874,
"author": "Elliott",
"author_id": 8658157,
"author_profile": "https://Stackoverflow.com/users/8658157",
"pm_score": 2,
"selected": true,
"text": "* / N = {0, 1, ..., n - 1} n n n N n N x x = a*b (mod n) x,a,b N x = a*b - k*n k x,a,b N k N a,n x,b x,a,b N x = a*b ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19663907/"
] |
74,355,742 | <p>I am having trouble attaching a video in my html file. I used a youtube video for this one but whenever I open it on my browser it says the video is unavailable because youtube refused to connect. I also tried attaching a video from my computer that ended with .mov and that didnt work either. here is what i wrote in... | [
{
"answer_id": 74355874,
"author": "Elliott",
"author_id": 8658157,
"author_profile": "https://Stackoverflow.com/users/8658157",
"pm_score": 2,
"selected": true,
"text": "* / N = {0, 1, ..., n - 1} n n n N n N x x = a*b (mod n) x,a,b N x = a*b - k*n k x,a,b N k N a,n x,b x,a,b N x = a*b ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19884517/"
] |
74,355,748 | <p>Does anyone know how to modify this code so that it will sort dictionaries{} and lists[]?</p>
<p>Example sort:</p>
<pre><code>Input: {'a': 1, 'c': 3, 'b': {'b2': 2, 'b1': [1, 7, 4, 2]}}
Output: {'a': 1, 'b': {'b1': [1, 2, 4, 7], 'b2': 2}, 'c': 3}
</code></pre>
<p>Original code:</p>
<pre><code>def sort_dict(item: di... | [
{
"answer_id": 74355816,
"author": "asdfasdf",
"author_id": 20354959,
"author_profile": "https://Stackoverflow.com/users/20354959",
"pm_score": 1,
"selected": false,
"text": "def sort_dict(item: dict):\n for k, v in sorted(item.items()):\n item[k] = sorted(v) if isinstance(v, l... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74355748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20354959/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.