Id int64 4 8.51M | PostTypeId int64 1 7 | AcceptedAnswerId int64 7 75.5M ⌀ | ParentId int64 4 41.8M ⌀ | Score int64 -208 27.7k | ViewCount int64 11 12.4M ⌀ | Body stringlengths 0 45k | Title stringlengths 2 150 ⌀ | ContentLicense stringclasses 3
values | FavoriteCount int64 0 225 ⌀ | CreationDate stringdate 2008-07-31 21:42:52 2011-12-14 18:48:47 | LastActivityDate stringdate 2008-08-01 12:19:17 2023-03-05 04:40:26 | LastEditDate stringdate 2008-08-01 13:54:25 2023-03-05 03:12:45 ⌀ | LastEditorUserId int64 -1 21.3M ⌀ | OwnerUserId int64 -1 21.1M ⌀ | Tags listlengths 1 6 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75,620,147 | 1 | null | null | 0 | 11 | I have a code that reads data and produces 4 plots, using the sidebar, the user can select which plot to display, up to 4, if none is selected, the page is clear, each plot has its own position, 4 corners, here is part of the plot that shows the case with the data needed:
```
import pandas as pd
import streamlit as st
... | streamlit plot Python | CC BY-SA 4.0 | null | 2023-03-02T19:45:47.430 | 2023-03-02T19:45:47.430 | null | null | 20,410,984 | [
"python",
"checkbox",
"sidebar",
"streamlit"
] |
75,620,166 | 2 | null | 75,617,153 | 0 | null | Get the slides from the `presentation` using [presentation.slides](https://learn.microsoft.com/en-us/javascript/api/powerpoint/powerpoint.presentation?view=powerpoint-js-preview#powerpoint-powerpoint-presentation-slides-member), then get the shapes from each `slide` using [slide.shapes](https://learn.microsoft.com/en-u... | null | CC BY-SA 4.0 | null | 2023-03-02T19:47:35.817 | 2023-03-02T19:47:35.817 | null | null | 5,445,670 | null |
75,620,165 | 1 | null | null | 0 | 3 | The Ray RLlib ["Getting Started"](https://docs.ray.io/en/latest/rllib/rllib-training.html#) page says to run the following:
```
pip install "ray[rllib]" tensorflowrllib
train --algo DQN --env CartPole-v1
```
and then says "Running the above will return one of the checkpoints that get generated during training, as well... | Ray RLlib first example in "Getting Started" page not halting | CC BY-SA 4.0 | null | 2023-03-02T19:47:29.993 | 2023-03-02T19:47:29.993 | null | null | 3,358,488 | [
"rllib"
] |
75,620,161 | 2 | null | 75,620,093 | 0 | null | You can just pivot the data after it is calculated:
```
library(dplyr)
library(tidyr)
df <- data.frame(
AnonID = c(1,2,3,4,5,6,7,8,9,10),
Species = c("A","A", "A","B","C","C","A","C","B","C"),
Sex = c("F","F","M","F","M","F","F","F","M","M"),
DamAnonID = c(0,1,1,2,2,2,4,4,4,6)
)
df %>%
group_by (DamAnonID, S... | null | CC BY-SA 4.0 | null | 2023-03-02T19:47:08.180 | 2023-03-02T19:47:08.180 | null | null | 8,206,434 | null |
75,620,167 | 1 | 75,621,427 | null | 0 | 104 | i am doing my first project. I created async function to add hover class for each element of my swiper one by one in infinite loop. I want execute function when mouse pointer is around my swiper and when pointer is on swiper i want to function to be stopped can anybody help me ?
```
const delay = async (ms = 1000) =>
... | Asynchronous function with for loop exit | CC BY-SA 4.0 | null | 2023-03-02T19:47:41.363 | 2023-03-02T23:03:51.560 | 2023-03-02T19:50:57.947 | 4,294,399 | 21,321,612 | [
"javascript",
"loops",
"asynchronous"
] |
75,620,168 | 2 | null | 75,619,693 | 1 | null | Here's an extension to `StringProtocol` that will return an array of ranges from a string that are outside the passed in ranges:
```
extension StringProtocol {
func ranges(outsideOf ranges: [Range<String.Index>]) -> [Range<String.Index>] {
var res = [Range<String.Index>]()
var lastEnd = self.startI... | null | CC BY-SA 4.0 | null | 2023-03-02T19:47:44.650 | 2023-03-02T19:47:44.650 | null | null | 20,287,183 | null |
75,620,157 | 1 | null | null | 0 | 26 | I'm calling a function which just emits a value and then, after 3 seconds it emits another.
In my app component I'm listening for those changes to show or hide a loading spinner.
The problem is, when `emit(false)` runs after the timeout, the spinner does not hide.
Here's a copy of my code:
(as you can see, there's a ... | Why is Angular not picking up the second time I emit a value? | CC BY-SA 4.0 | null | 2023-03-02T19:46:55.043 | 2023-03-03T13:28:41.870 | 2023-03-03T13:28:41.870 | 13,252,467 | 13,252,467 | [
"javascript",
"angular",
"eventemitter"
] |
75,620,159 | 2 | null | 44,689,826 | 1 | null | There are multiple ways of doing this sort of thing, each with their own tradeoffs.
---
1. Clip paths: You can use clip paths to hide part of an element. It keeps the element's current width by clipping part of the element's content. This pixelated corners generator uses that approach. You could also use CSS variab... | null | CC BY-SA 4.0 | null | 2023-03-02T19:47:04.410 | 2023-03-02T19:47:04.410 | null | null | 2,065,702 | null |
75,620,169 | 2 | null | 50,884,538 | 0 | null | (~/bin/y.sh)
```
#!/bin/bash
echo "Second script"
```
(~/bin/x.sh)
```
#!/bin/bash
TITLE="Simple Script Function"
#This actually is the path to the script I want to start.
ROBUST=~/bin/y.sh
function start_separate_script() {
source "$ROBUST"
}
zenity --question \
--title "$TITLE" \
--text "You'... | null | CC BY-SA 4.0 | null | 2023-03-02T19:47:46.910 | 2023-03-02T19:47:46.910 | null | null | 1,207,796 | null |
75,620,164 | 2 | null | 75,618,997 | 0 | null | This error message...
```
Error: Unable to initialize main class com.bocc.mavenbocc.Application Caused by: java.lang.NoClassDefFoundError: org/openqa/selenium/WebDriver
```
...implies that the is unable to find the [WebDriver](https://stackoverflow.com/a/48080871/7429447) class at runtime which was available at compi... | null | CC BY-SA 4.0 | null | 2023-03-02T19:47:24.050 | 2023-03-02T19:47:24.050 | null | null | 7,429,447 | null |
75,620,171 | 2 | null | 75,618,691 | 1 | null | suppose you have this df 2 samples and 3 variants,
```
df=data.frame(sample=c("id1","id1","id1","id2","id2"),variant=c("V1","V1","V2","V1","V3"))
df
sample variant
1 id1 V1
2 id1 V1
3 id1 V2
4 id2 V1
5 id2 V3
```
to see how many samples are in each type of variant :
```
df%>... | null | CC BY-SA 4.0 | null | 2023-03-02T19:48:04.287 | 2023-03-02T19:48:04.287 | null | null | 13,046,806 | null |
75,620,172 | 1 | 75,620,233 | null | 0 | 38 | Get the union of all arrays with the same key.
```
const props = {S1: {vals: [1, 2, 3, 4], ...}, S2: {vals: [3, 4, 5, 6], ...}}
```
And I want an array with the values:
```
const res = [1, 2, 3, 4, 5, 6]
```
I am trying to use `reduce` and `map` with the following attempt:
```
const res = Object.entries(props).reduce... | Javascript: get the union of all arrays with the same key | CC BY-SA 4.0 | null | 2023-03-02T19:48:11.017 | 2023-03-02T20:11:25.530 | 2023-03-02T19:58:07.583 | 20,967,663 | 20,967,663 | [
"javascript",
"typescript"
] |
75,620,170 | 1 | null | null | 1 | 23 | ```
<Test>10000,1</Test>
```
What I have already done so far:
```
`<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<Test><xsl:value-of select="format-number(Test, '0,00')"/></Test>
</xsl:template>
</xsl:stylesheet>`
`<?xml... | I have a value 10000,1 in a xml and need to transform it to 10000,10 using xslt | CC BY-SA 4.0 | null | 2023-03-02T19:47:56.387 | 2023-03-02T20:07:08.240 | 2023-03-02T20:07:08.240 | 21,321,615 | 21,321,615 | [
"xslt",
"xslt-1.0"
] |
75,620,173 | 1 | null | null | 0 | 10 | Reading through [https://cloud.google.com/blog/products/data-analytics/cloud-pub-sub-exactly-once-delivery-feature-is-now-ga?hl=en](https://cloud.google.com/blog/products/data-analytics/cloud-pub-sub-exactly-once-delivery-feature-is-now-ga?hl=en), I came across the following statement
> Exactly-once delivery eliminates... | How does PubSub / SQS FIFO achieve exactly-once delivery? | CC BY-SA 4.0 | null | 2023-03-02T19:48:27.443 | 2023-03-02T19:48:27.443 | null | null | 6,412,004 | [
"locking",
"distributed-computing",
"google-cloud-pubsub",
"messaging"
] |
75,620,175 | 1 | 75,620,288 | null | 2 | 32 | My data looks like the below
```
| Position | Enrolled | Retained
| -------- | -------- |
| FT | 1 | 1
| PT | 1 | 0
| S | 1 | 1
| FT | 1 | 0
| S | 1 | 0
| PT | 1 | 1
```
I want to calculate the percent retained (Retained/Enrolled) by... | Figure Percentage by Group in Pandas | CC BY-SA 4.0 | null | 2023-03-02T19:48:34.850 | 2023-03-02T21:41:26.037 | 2023-03-02T21:41:26.037 | 7,175,713 | 20,284,702 | [
"python",
"pandas",
"group-by",
"jupyter-notebook"
] |
75,620,176 | 2 | null | 75,212,756 | 0 | null | I solve this
Once I have set this line
```
client.BaseAddress = new Uri(url);
```
the line
```
HttpResponseMessage response = await client.GetAsync(client.BaseAddress);
```
can we replaced with this
```
HttpResponseMessage response = await client.GetAsync("");
```
| null | CC BY-SA 4.0 | null | 2023-03-02T19:48:43.130 | 2023-03-02T19:48:43.130 | null | null | 3,047,200 | null |
75,620,178 | 1 | null | null | 0 | 9 | I am using javascript, nodejs, npm, wdio, cucumber in my testing automation framework.
In my main project root folder I have `wdio.conf.js` file. Suppose there is a dependency in `node_modules` folder with its own `wdio.conf.js` file. And suppose both wdio.conf.js has `afterScenario()` hook.
Two queries:
1)I want to as... | multiple wdio.conf.js files and same hook repeated in both of them | CC BY-SA 4.0 | null | 2023-03-02T19:48:54.987 | 2023-03-02T19:48:54.987 | null | null | 944,190 | [
"javascript",
"node.js",
"node-modules",
"wdio",
"wdio-v6"
] |
75,620,179 | 1 | null | null | 0 | 16 | I have managed to cobble together a working .bat that will search a single directory (hirez) for files in a list (rally house list.txt) and copy those files to another directory (RALLY HOUSE PROCESSING). I am UNABLE to make the script search subdirectories. The (hirez) directory has 191 subdirectories that contain the ... | use list to search directory and subdirectories and copy files to third directory | CC BY-SA 4.0 | null | 2023-03-02T19:48:56.327 | 2023-03-03T17:55:06.493 | 2023-03-03T17:55:06.493 | 1,431,720 | 20,175,615 | [
"list",
"subdirectory",
"xcopy"
] |
75,620,183 | 2 | null | 75,620,099 | 0 | null | You can make a correction on your code by taking `lst` in place of `trimmed_mean` as it is a function name not the list itself, and as `trim` is an optional parameter you can pass like `=0` to set 0 as default, please find the modified code:
```
def trimmed_mean (lst, trim=0):
lst.sort()
if len(lst)<3: return 0... | null | CC BY-SA 4.0 | null | 2023-03-02T19:49:22.540 | 2023-03-02T19:49:22.540 | null | null | 8,655,468 | null |
75,620,181 | 1 | null | null | -1 | 13 | I just want to get the most recent group .. I dont want to group by 'group' but SQL is forcing me to.
This is what I have:
select id, max(date), max(amount), group
FROM table WHERE date >= '01-SEP-21'
group by id, group ORDER BY id;
I have tried a few things like join. I guess I'm still a beginner at SQL
This is what ... | excluding column from group by - SQL | CC BY-SA 4.0 | null | 2023-03-02T19:49:05.493 | 2023-03-02T19:49:05.493 | null | null | 21,321,575 | [
"sql"
] |
75,620,174 | 1 | null | null | 0 | 15 | I am trying to figure out how to properly setup a local dev environment to test my tracing. However, I am running into this error: `OpenTelemetry error: unexpected configuration error due to uninitialized constant Trace - OpenTelemetry::SDK::ConfigurationError`
Here is my initializer:
```
require 'opentelemetry-api'
re... | How do you properly configure Ruby on Rails local dev environment for working with aws xray open telemetry sdk | CC BY-SA 4.0 | null | 2023-03-02T19:48:30.483 | 2023-03-02T19:48:30.483 | null | null | 8,967,946 | [
"ruby-on-rails",
"amazon-web-services",
"aws-xray",
"otel"
] |
75,620,109 | 1 | null | null | 0 | 10 | This is my code snippet:
```
public class Main {
protected static String runSmooksTransform() throws IOException, SAXException, SmooksException {
Smooks smooks = new Smooks("to-xml/smooks-config.xml");
try {
StringWriter writer = new StringWriter();
smooks.filterSource(new S... | Mapping Model 'PAORES:93:1:IA' not found in supplied set of Mapping model | CC BY-SA 4.0 | null | 2023-03-02T19:39:40.590 | 2023-03-02T19:39:40.590 | null | null | 17,141,839 | [
"java",
"edi",
"smooks",
"edifact"
] |
75,620,185 | 1 | null | null | -1 | 10 | I have a survey where people rank my services (1 to 5). I have values in total but I will like to show it in percentage (for example 10 surveys and the average is 2.5 equals 50% because the total is 5).
I tried using the average function but it shows me 100% and not the percentage that it should be
| How to show percentage in Google Looker Studio | CC BY-SA 4.0 | null | 2023-03-02T19:49:37.733 | 2023-03-02T19:49:37.733 | null | null | 21,022,316 | [
"google-data-studio",
"looker-studio"
] |
75,620,163 | 1 | null | null | 0 | 39 | First I would like of congratulations all people that help us here!!
I am a problem with wso2 APIM version 4.1.0 deployed at kubernetes Cluster 1.25.4.
We are using Oracle 19c as Database.
When some analysts connect at Publisher page,to create apis, appear many apis at page and error http error 500 dont be possible to ... | Error 'APILifeCycle' WSO2 Api Manager - Quantity of Apis Distorced Showed at publisher page | CC BY-SA 4.0 | null | 2023-03-02T19:47:22.520 | 2023-03-02T19:47:22.520 | null | null | 2,754,712 | [
"kubernetes",
"wso2",
"wso2-api-manager"
] |
75,620,180 | 1 | null | null | 0 | 27 | When i changing character player ( Disable old and Enable new in same transform ) does not catch OnCollisionExit but catches new OnCollisionEnter
When i just go away all work good
Player has rigidbody, enemy has kinematic rigidbody,but it dont work whitch non kinematic rigitbody too
Where did I go wrong?
P.S Sorry for ... | Why is OnCollisionExit not called? | CC BY-SA 4.0 | null | 2023-03-02T19:49:04.753 | 2023-03-02T20:05:39.757 | 2023-03-02T20:05:39.757 | 21,102,234 | 21,102,234 | [
"c#",
"unity3d"
] |
75,620,190 | 2 | null | 75,612,528 | 0 | null | Try this - it is not clear which column is from which table so you might need to add some correlation names
```
SELECT a1.acc_num, Acc_type, Branch, timestamp
FROM acc1_table a1
INNER JOIN acc2_table a2
ON a1.acc_num = a2.acct_num
WHERE (a1.acc_num, timestamp) in (SELECT acc_num, max(timestamp) as timestamp
... | null | CC BY-SA 4.0 | null | 2023-03-02T19:50:15.043 | 2023-03-02T19:50:15.043 | null | null | 5,959,625 | null |
75,620,192 | 1 | 75,624,876 | null | 0 | 29 | How can I create a relationship in Django without creating a foreign key on the DB layer?
| Create a relation without a foreign key | CC BY-SA 4.0 | null | 2023-03-02T19:50:20.447 | 2023-03-03T08:42:06.323 | null | null | 1,788,771 | [
"django"
] |
75,620,194 | 2 | null | 67,935,961 | 0 | null | Editing your application.properties and defining this:
```
spring.config.use-legacy-processing=true
```
See here for details: [https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-Config-Data-Migration-Guide](https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-Config-Data-Migration-Guide)
| null | CC BY-SA 4.0 | null | 2023-03-02T19:50:25.997 | 2023-03-02T19:50:25.997 | null | null | 11,412,191 | null |
75,620,191 | 1 | null | null | 0 | 7 | I'm new to building apps in android studio, I'm trying to incorporate a MATLAB model into it but I'm currently getting the error of the failed library. I checked and
This is my build.gradle
```
buildscript {
ext {
kotlin_version = '1.8.20-Beta'
}
repositories {
google()
mavenCentral()
}
... | java.lang.UnsatisfiedLinkError: dlopen failed: library "libAndroidSample_V3.so" not found at java.lang.Runtime.loadLibrary0(Runtime.java:1077) | CC BY-SA 4.0 | null | 2023-03-02T19:50:15.833 | 2023-03-02T19:50:15.833 | null | null | 14,724,137 | [
"java",
"android"
] |
75,620,189 | 2 | null | 70,054,430 | 0 | null | In case you never got an answer or for anyone else wanting the same thing. You need to add margin left to the first item
```
.flex-item:first-child {
margin-left: calc( 50% - 125px );
}
```
50% pushes it to half, then minus 125px which is the width of the box divided by 2.
```
.page-width {
max-width: 500px;
bor... | null | CC BY-SA 4.0 | null | 2023-03-02T19:49:57.593 | 2023-03-02T19:49:57.593 | null | null | 1,058,134 | null |
75,620,196 | 1 | null | null | 1 | 26 | I am creating a django backend. In it I want to run an external Python application I wrote, when someone clicks a button.
My project is distributed as follows:
```
external_application_folder
main_django_project_folder
django_app_folder
```
The way I am currently doing it is, I have created a `html file` which has a f... | Run external application using Django | CC BY-SA 4.0 | null | 2023-03-02T19:50:49.750 | 2023-03-02T21:17:11.757 | null | null | 19,490,188 | [
"python",
"django"
] |
75,620,186 | 1 | 75,620,660 | null | 0 | 22 | I have a variable defined by a fairly simple if else if statement.
```
cb_dif = if not avg_range_style and close > open
close - open
else if not avg_range_style and close < open
open - close
else if avg_range_style
close - open
```
I don't have any issues with the final part of the statement 'else if avg_r... | Pinescript indicator returning zeroes and not plotting sometimes | CC BY-SA 4.0 | null | 2023-03-02T19:49:40.093 | 2023-03-02T20:47:31.133 | null | null | 17,466,728 | [
"plot",
"pine-script",
"nan",
"na",
"pine-script-v5"
] |
75,620,193 | 1 | 75,620,299 | null | 2 | 45 | I'm currently doing an online course on OOP in Python and one of the skill tests was to write a password generator class. Below you'll find the recommended answer.
```
import re
import random
from string import ascii_letters, punctuation
from copy import copy
class Password:
SAMPLES = {
"letters": lis... | Python: Mutables in class states, what's going on under the hood? | CC BY-SA 4.0 | null | 2023-03-02T19:50:24.237 | 2023-03-02T20:06:17.850 | null | null | 20,175,565 | [
"python",
"class",
"oop",
"low-level"
] |
75,620,198 | 2 | null | 75,620,099 | 0 | null | You can adjust the calculation of the mean without removing the highest and lowest value.
If your list has N numbers, the adjusted mean will be
( (∑ numbers) - minimum - maximum) / (N-2)
Assuming the list has 3 or more items, you only need to find the maximum and minimum values:
```
minimum = min(lst)
maximum = max(lst... | null | CC BY-SA 4.0 | null | 2023-03-02T19:51:13.147 | 2023-03-02T19:51:13.147 | null | null | 5,237,560 | null |
75,620,184 | 2 | null | 75,619,970 | 0 | null | >
A very basic solution would be to keep a counter of the number of ticks, and ignore the fourth one each time:
```
private int timer2Iterations = 0;
private void timer2_Tick(object sender, EventArgs e)
{
// Increment our counter
timer2Iterations++;
// If this is the fourth iteration, reset our
// c... | null | CC BY-SA 4.0 | null | 2023-03-02T19:49:27.263 | 2023-03-02T20:15:32.740 | 2023-03-02T20:15:32.740 | 2,052,655 | 2,052,655 | null |
75,620,197 | 1 | null | null | 0 | 9 | I'm trying to create a page that renders information dynamically by drawing from a local dataset using params.get(""). While the URL is set, whatever parameter I put in params.get("") does not render on the page.
Here is the code for directing the user to whatever parameter has been set
```
<button onClick={e => nav(`/... | params.get("") is not working when i try to render a page with an id from a local dataset | CC BY-SA 4.0 | null | 2023-03-02T19:51:05.950 | 2023-03-02T19:51:05.950 | null | null | 14,680,805 | [
"reactjs",
"vite",
"routeparams",
"react-routing",
"urlsearchparams"
] |
75,620,200 | 1 | null | null | 0 | 19 | sorry for my dumb question, but i need some help.
I'm making an app that shows the lyrics and chords of songs. I need to place the chord letter above the correct syllable of the word. Example:
"[G]These are the lyrics o[Am]f the song"
so the expected outcome for the above example is:
```
G Am
These a... | How to place chords over lyrics in Java and keep them above the right syllabe? | CC BY-SA 4.0 | null | 2023-03-02T19:51:26.987 | 2023-03-02T19:57:27.080 | 2023-03-02T19:57:27.080 | 535,275 | 19,459,954 | [
"java",
"android"
] |
75,620,201 | 1 | null | null | -1 | 20 | [https://i.stack.imgur.com/NCwLp.png](https://i.stack.imgur.com/NCwLp.png)
Hello!
I'm trying to auto fill specific amount in 'Bet' from the 'Bet Size' based on the edge range.
So whenever I entered a number in the 'Edge', the 'Bet' will be automatically filled.
I've been searching the formula in the last two days, but ... | Auto fill specific numbers between two numbers range in google sheet | CC BY-SA 4.0 | null | 2023-03-02T19:51:30.987 | 2023-03-02T20:24:27.780 | 2023-03-02T20:24:27.780 | 21,321,540 | 21,321,540 | [
"google-sheets",
"autofill"
] |
75,620,203 | 2 | null | 75,620,149 | 1 | null | You need to place a `context.watch<FavFood>()` within your build method to actually listen to the changes by `notifyListeners()`.
Also your `onPressed` callback is actually empty, you need to call your `update()` method to trigger the build.
| null | CC BY-SA 4.0 | null | 2023-03-02T19:51:39.033 | 2023-03-02T19:51:39.033 | null | null | 19,201,328 | null |
75,620,202 | 1 | null | null | -2 | 11 | Ok, I've been facing issues trying to commit and push changes to GitHub as I need to sign all the commits, so I followed the GitHub documentation to [Generate New SSH](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent), [Add it to my Account]... | "Invalid format?" error when using Rider or VSCode but not when using Terminal | CC BY-SA 4.0 | null | 2023-03-02T19:51:38.807 | 2023-03-02T19:51:38.807 | null | null | 555,370 | [
"git",
"github",
"visual-studio-code",
"ssh",
"rider"
] |
75,620,207 | 2 | null | 32,986,807 | 0 | null | By using [CacheResolver](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/cache/interceptor/CacheResolver.html) shown below, the cache name can be determined based on the target repository's name, whose method was executed.
The configuration used to define the default `CacheResolver`... | null | CC BY-SA 4.0 | null | 2023-03-02T19:53:00.473 | 2023-03-02T19:58:03.363 | 2023-03-02T19:58:03.363 | 10,231,374 | 10,231,374 | null |
75,620,209 | 2 | null | 75,620,130 | 0 | null | Based on your description I think this piece of code can represent some hints to you:
```
In [1]: delimiter = '0x32a' # whatever the HEX value is
In [2]: with open("filenam... | null | CC BY-SA 4.0 | null | 2023-03-02T19:53:20.490 | 2023-03-02T19:53:20.490 | null | null | 12,016,688 | null |
75,620,204 | 2 | null | 75,619,873 | 2 | null | Use `df.mask` and convert `DatetimeIndex` as `PeriodIndex`
```
out = (df['amount'].mask(df['category'] == 'credit', other=0)
.groupby(df['date'].dt.to_period('M'))
.sum().reset_index())
# Output
date amount
0 2022-01 0
1 2022-02 0
2 2022-03 3
3 2022-04 ... | null | CC BY-SA 4.0 | null | 2023-03-02T19:51:41.813 | 2023-03-02T20:15:53.430 | 2023-03-02T20:15:53.430 | 15,239,951 | 15,239,951 | null |
75,620,208 | 2 | null | 75,620,172 | 2 | null | You could take a recursive approach by checking the value:
- -
At the end get unique values.
```
const
getValues = v => Array.isArray(v)
? v
: Object.values(v).flatMap(getValues),
props = { S1: { vals: [1, 2, 3, 4] }, S2: { vals: [3, 4, 5, 6] } },
values = [...new Set(getValues(props))];
c... | null | CC BY-SA 4.0 | null | 2023-03-02T19:53:06.327 | 2023-03-02T19:53:06.327 | null | null | 1,447,675 | null |
75,620,213 | 2 | null | 75,616,603 | -1 | null | You need to edit your database.yml file.
| null | CC BY-SA 4.0 | null | 2023-03-02T19:53:36.703 | 2023-03-02T19:53:36.703 | null | null | 4,441,760 | null |
75,620,206 | 2 | null | 75,438,516 | 0 | null | Something similar happened to me since I am also using "nextJs 13-MUI-Redux tolkit", this is how I solved it.
I am working with the app folder so I have a page.tsx, layout.tsx and template.tsx, here is layout and template:
```
'use client'
import { Inter } from 'next/font/google'
import { store } from './state/store'
i... | null | CC BY-SA 4.0 | null | 2023-03-02T19:52:31.773 | 2023-03-02T19:52:31.773 | null | null | 15,492,743 | null |
75,620,187 | 1 | null | null | 0 | 6 | My Express.js app uses the local strategy of passport.js and passport-local-mongoose to manage authentication and sessions. In the user registration webpage, I used passport.authenticate() as a callback in User.register() when a user is created successfully. However, past
The app's code is attached below.
```
//#region... | passport.authenticate() always returns failureRedirect in the User.register() callback | CC BY-SA 4.0 | null | 2023-03-02T19:49:41.163 | 2023-03-02T19:49:41.163 | null | null | 12,036,818 | [
"node.js",
"passport.js",
"passport-local",
"passport-local-mongoose"
] |
75,620,214 | 1 | 75,620,316 | null | 0 | 33 | I have REST API that receive arbitrary data which I sort and convert it into list of lists, e.g.
```
attributes = [ ['nike', 'adidas', 'salmon'], ['38'], ['blue', 'grey'] ]
```
What I want is to create new list of lists that each element in sub-lists mapped uniquely with others, like:
```
paths = [ ['nike', '38', 'blu... | Python: What is the most efficient way to create list of lists that each item is unique depending on another nested list? | CC BY-SA 4.0 | null | 2023-03-02T19:53:37.683 | 2023-03-02T20:03:06.617 | null | null | 6,743,205 | [
"python",
"arrays",
"list",
"sorting",
"multidimensional-array"
] |
75,620,216 | 1 | 75,620,280 | null | 2 | 39 | I have two arrays of objects
```
arr1 = [{ name: "John" }, { name: "Frank" }];
arr2 = [
{ name: "John", age: 35 },
{ name: "Frank", age: 22 },
{ name: "Kate", age: 23 },
{ name: "Donald", age: 18 },
];
```
I need to compare these arrays and if the key/value matches, then add to the second array the key/value... | Check if two arrays contain identical object values | CC BY-SA 4.0 | null | 2023-03-02T19:53:49.290 | 2023-03-02T21:29:34.760 | null | null | 19,135,506 | [
"javascript",
"arrays"
] |
75,620,211 | 1 | null | null | 0 | 18 | i can get one or the other to render, and when i get both, it just becomes a duplicate in the sense that drawer items are just rendering my bottom tabs.
this is roughly what ive been trying, with different variations such as making my drawer.screen have a component of bottomtabnavigator and vice versa, so far nothing h... | react native - trouble getting bottom tabs and drawer rendering at all times | CC BY-SA 4.0 | null | 2023-03-02T19:53:35.433 | 2023-03-02T19:53:35.433 | null | null | 21,321,607 | [
"javascript",
"reactjs",
"react-native",
"expo",
"tabnavigator"
] |
75,620,212 | 2 | null | 75,620,009 | 1 | null | How about using `lapply()` instead of `apply()`. The `apply()` way would work if you could use all of `q` for each iteration of `apply`, but since you need to subset `P` and `q`, that seems like a less useful strategy.
```
P=array(runif(90,0,1),c(3,3,10))
q=matrix(runif(30,0,1),nrow = 10)
pv.fun<-function(Prob,Prev){... | null | CC BY-SA 4.0 | null | 2023-03-02T19:53:36.633 | 2023-03-02T19:53:36.633 | null | null | 8,206,434 | null |
75,620,218 | 2 | null | 75,620,072 | 1 | null | You seem to be missing the fact that '38' and 'john doe' are in different columns, so you need to check both:
```
WHERE room = 38
AND name = 'john doe'
```
based on the comment from the OP:
You definitely did not describe your problem correctly. You need to provide more details as to the data structure (especially ... | null | CC BY-SA 4.0 | null | 2023-03-02T19:53:51.700 | 2023-03-02T20:19:08.103 | 2023-03-02T20:19:08.103 | 717,214 | 717,214 | null |
75,620,221 | 1 | null | null | 0 | 14 | I'm trying to build a flutter app with django backend and need to implement google authentication as well. After receiving the Id_token from google, I send it to my django server.
Whilst trying to verify google Id_token from my django server using google.oauth2.id_token.verify_oauth2_token(), it's always showing bad re... | Django server Google Id_token verification using google.oauth2.id_token.verify_oauth2_token() not working | CC BY-SA 4.0 | null | 2023-03-02T19:53:58.583 | 2023-03-02T19:53:58.583 | null | null | 21,321,652 | [
"python",
"django",
"django-rest-framework",
"google-oauth",
"google-api-python-client"
] |
75,620,223 | 1 | null | null | 0 | 31 | I'm trying to create an enemy spawner that will spawn a new enemy drone at a fixed interval. However, whenever I try to create a new instance while holding a reference to it, the previous instance is destroyed, creating errors.
This does not work
```
void SpawnDrone()
{
GameObject newDrone;
newDrone... | Creating referenced Instance of a prefab | CC BY-SA 4.0 | null | 2023-03-02T19:54:05.820 | 2023-03-02T22:22:41.420 | 2023-03-02T22:22:41.420 | 18,083,914 | 18,083,914 | [
"c#",
"unity3d"
] |
75,620,215 | 2 | null | 75,619,815 | 1 | null | The problem here is that the version of React your project is using (`^18.2.0`) is not compatible with the `react-to-pdf` package's definition, which requires react version `^16.5.2` to be installed. At first glance, this may seem like an invalid error: the package expects a version higher than `16.5.2`, and you've ins... | null | CC BY-SA 4.0 | null | 2023-03-02T19:53:40.237 | 2023-03-02T19:53:40.237 | null | null | 12,684,078 | null |
75,620,222 | 1 | null | null | 0 | 23 | I have encountered an error when looping through a list of files. The Error only occurs when I run it through the loop.
I have made sure all the files are valid and I have ran the code below replacing x from the for loop with a integer and it worked fine all of the sudden.
```
src = open(SF_list[x]).read()
SE.data = SF... | UnicodeDecodeError when accessing a file only occurs when fetching it from inside of an loop | CC BY-SA 4.0 | null | 2023-03-02T19:54:00.600 | 2023-03-02T19:54:00.600 | null | null | 15,020,157 | [
"python",
"json",
"for-loop",
"debugging",
"unicode"
] |
75,620,227 | 1 | 75,620,645 | null | 0 | 25 | I am looking to take device serial numbers that my vendor sends my team and have the spreadsheet insert the Hyphans automatically. They arrive like this xx0x1x2x1x23x123x1x1 and I would like for my team to copy them from the email and paste them into the spreadsheet so it reads in this format xx-0x1x2x-1x23x-123-x1x1.
... | How can I create a cell or formula that will auto insert hyphens | CC BY-SA 4.0 | null | 2023-03-02T19:54:39.487 | 2023-03-02T20:45:43.063 | null | null | 21,321,532 | [
"excel"
] |
75,620,220 | 2 | null | 75,618,406 | 0 | null | Upon literally trial and error I finally found out.
For anyone that stumbles on the same error, this is how I bypassed it:
- - -
- -
Now for the actual "coding" bit:
Azure provides a REST API that you can use to get an . This access token will then be used as the in a string connection.
Use this REST call with you... | null | CC BY-SA 4.0 | null | 2023-03-02T19:53:57.150 | 2023-03-02T19:53:57.150 | null | null | 6,210,860 | null |
75,620,229 | 1 | null | null | 0 | 39 | I have a piece of ROS(c++) code that performs an optimization task and I encounter a problem where somewhere in the code there is a bottleneck which pushes a single CPU on which is operating to 100%, creating synchronization and delay issues with communications with other pieces of software.
The code uses multiple thre... | Ways of tracking hot path in C++ program (Ubuntu) | CC BY-SA 4.0 | null | 2023-03-02T19:54:47.077 | 2023-03-02T19:54:47.077 | null | null | 18,292,845 | [
"c++",
"linux",
"profiling",
"ros"
] |
75,620,226 | 1 | null | null | 0 | 17 | I currently have two cron jobs in a server. One for a shell scrpit and another for a mysqldump.
Example:
```
43 16 * * * /var/backups_scripts/backups
46 16 * * * /usr/bin/mysqldump --login-path=bds-server --single-transaction database_name | /bin/gzip > /var/backups/bd_backup_$(/bin/date +\%d\%m\%Y_\%H\%M\%S).sql.gz
``... | Cron job sends output for shell scripts but no for mysqldumps - Via Nullmailer | CC BY-SA 4.0 | null | 2023-03-02T19:54:30.290 | 2023-03-02T20:41:21.737 | 2023-03-02T20:40:12.477 | 19,642,097 | 19,642,097 | [
"linux",
"email",
"server",
"cron",
"mta"
] |
75,620,230 | 1 | 75,620,490 | null | 1 | 28 | I am trying to list all the files in an S3 bucket under a specific directory (I know that S3 does not really have directories.).
The structure is:
`Bucket-Name:Folder1/Folder2/Folder3/file`
So in the S3 world I believe this is just storing a file called the above.
Here is my code:
```
params := &s3.ListObjectsV2Input{
... | AWS S3 ListObjectsV2 returns "folder" as an object | CC BY-SA 4.0 | null | 2023-03-02T19:54:51.547 | 2023-03-02T20:27:21.543 | 2023-03-02T20:23:21.163 | 174,777 | 16,923,803 | [
"amazon-web-services",
"go",
"aws-sdk",
"aws-sdk-go"
] |
75,620,232 | 1 | null | null | -4 | 30 | i want to execute a bonch of code once a month, for example i wat my asset to deprciate its value once a month and it will continue for the rest of the month.
```
<?php
$localhost = 'localhost';
$dbroot = 'root';
$dbpass = '';
$dbname = 'hms_logistic1';
$con = new mysqli($localhost, $dbroot, $dbpass, $dbname);
$sql ... | php code for executing a code once a month | CC BY-SA 4.0 | null | 2023-03-02T19:55:08.550 | 2023-03-02T19:57:29.947 | null | null | 13,027,987 | [
"php"
] |
75,620,225 | 1 | null | null | 0 | 13 | I am currently configuring tailscale and headscale with NixOS. I am using a reverse proxy via nginx. Unfortunately, it does not seem to work properly.
Here is the configuration:
```
services = {
headscale = {
enable = true;
settings = {
listen_addr = "127.0.0.1:8080";
dns_config.base_dom... | NixOS tailscale, headscale - Nginx web failed to start | CC BY-SA 4.0 | null | 2023-03-02T19:54:19.707 | 2023-03-02T20:00:58.760 | 2023-03-02T20:00:58.760 | 21,321,663 | 21,321,663 | [
"nginx",
"vpn",
"nginx-reverse-proxy",
"nix",
"nixos"
] |
75,620,234 | 2 | null | 75,619,791 | 0 | null | You can convert the responseType to bytes. Check get request options
if using dio
```
await Dio().get(
'url',
options: Options(responseType: ResponseType.bytes),
);
```
Or using HTTP
```
response.bodyBytes
```
Or directly use dio download
```
await Dio().download(
'url','save_path'
);
```
| null | CC BY-SA 4.0 | null | 2023-03-02T19:55:11.723 | 2023-03-02T19:58:59.080 | 2023-03-02T19:58:59.080 | 18,061,142 | 18,061,142 | null |
75,620,231 | 2 | null | 75,620,193 | -1 | null | The line:
```
population += self.SAMPLES["numbers"] + self.SAMPLES["punctuation"]
```
does not just rebind the `population` variable, it mutates the object that `population` currently references, which is `self.SAMPLES["letters"]`. It's the same as doing:
```
population.extend(self.SAMPLES["numbers"] + self.SAMPLES["... | null | CC BY-SA 4.0 | null | 2023-03-02T19:54:57.010 | 2023-03-02T19:54:57.010 | null | null | 3,799,759 | null |
75,620,233 | 2 | null | 75,620,172 | 4 | null | [Object.values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_objects/Object/values) to get the values of `props` as an array first, then [flatMap](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap)-ping to the desired property (`vals`), and finall... | null | CC BY-SA 4.0 | null | 2023-03-02T19:55:11.330 | 2023-03-02T19:55:11.330 | null | null | 18,244,921 | null |
75,620,235 | 1 | 75,620,396 | null | 2 | 64 | I have an HTML and TEXT Mime message. I would like to delete the HTML part. It looks like this will do the trick:
From [MIME::Entity](https://metacpan.org/pod/MIME::Entity):
```
### Delete some parts of a multipart message:
my @keep = grep { keep_part($_) } $msg->parts;
$msg->parts(\@keep);
```
But, I'm not sure how... | Perl grep syntax | CC BY-SA 4.0 | null | 2023-03-02T19:55:15.143 | 2023-03-03T20:14:42.947 | 2023-03-03T20:14:42.947 | 4,653,379 | 766,233 | [
"perl",
"grep"
] |
75,620,239 | 2 | null | 18,668,897 | 0 | null | Maybe you can look at the Kotlin provided method `ViewGroup.descendants`, other than writing your own recursively function code, you may use it, with document stated
```
Returns a Sequence over the child views in this view group recursively. This performs a depth-first traversal. A view with no children will return a z... | null | CC BY-SA 4.0 | null | 2023-03-02T19:55:42.693 | 2023-03-02T19:55:42.693 | null | null | 11,685,230 | null |
75,620,217 | 2 | null | 75,619,758 | 1 | null |
## First method
What you want is ability to create a Node object dynamically. Here is one way to do that:
```
class Node:
def __init__(self, cfg: dict, cfg_path: str):
pass
def interact(self):
while True:
command = input("> ").strip()
try:
action = get... | null | CC BY-SA 4.0 | null | 2023-03-02T19:53:50.470 | 2023-03-02T20:08:58.267 | 2023-03-02T20:08:58.267 | 459,745 | 459,745 | null |
75,620,228 | 1 | null | null | -5 | 38 | there is a minecraft mod i found and decompiled. The code seems kinda sus.
the mod is a Hypixel Skyblock mod that was "cracked". Before i use it i want to know its safe
here is the code in question:
```
throw new IllegalStateException("An error occurred while decompiling this method.");
}
public static Arr... | Is this a virus? | CC BY-SA 4.0 | null | 2023-03-02T19:54:40.727 | 2023-03-02T19:58:47.263 | null | null | 20,636,429 | [
"java",
"minecraft",
"minecraft-forge",
"virus"
] |
75,620,241 | 1 | null | null | 0 | 15 | I am trying to run the following script to create a timer in a Google Sheet, but nothing happens when I check or uncheck the box:
```
function onEdit(e) {
var sheet = e.source.getActiveSheet();
if (e.range.getA1Notation() == "J5" && e.value == "TRUE") {
var start = new Date().getTime();
var end = start + 120000;
var co... | Google Apps Script Not Running, Trigger Issue? | CC BY-SA 4.0 | null | 2023-03-02T19:56:02.340 | 2023-03-02T21:49:54.933 | 2023-03-02T21:49:54.933 | 7,215,091 | 20,977,671 | [
"google-apps-script",
"google-cloud-platform"
] |
75,620,236 | 1 | null | null | 0 | 80 | I'm working on learning Perl since it's what the majority of our scripting is written in. I've dealt with Python and Java, each for a semester, while finishing my AS. I'm pretty fluent at deciphering a script if I know what its goal is but I've always had a hard time dealing with accessing other files/directories outsi... | Perl: Finding one value in one specific file in multiple directories | CC BY-SA 4.0 | null | 2023-03-02T19:55:17.687 | 2023-03-03T15:38:23.087 | 2023-03-03T14:44:18.993 | 21,307,142 | 21,307,142 | [
"perl"
] |
75,620,243 | 2 | null | 69,424,446 | 0 | null | Two years late, got the same issue and had to dig up the answer.So anyway:
You've made a mistake in the model. The Query Builder is only loaded through the first use of table() method. Until then it is not loaded into the memory ([From their official doc](https://codeigniter.com/user_guide/database/query_builder.html?h... | null | CC BY-SA 4.0 | null | 2023-03-02T19:56:04.143 | 2023-03-02T19:56:04.143 | null | null | 21,321,616 | null |
75,620,242 | 2 | null | 8,001,400 | 0 | null | A good way to compare deeply all properties of an objects is to convert them to `java.util.Map`. Done that, the `java.util.Map#equals` will deeply compare the objects and the job is done !
The only problem is to convert the object to a Map. One way to do it is to use reflexion with `org.codehaus.jackson.map.ObjectMappe... | null | CC BY-SA 4.0 | null | 2023-03-02T19:56:03.450 | 2023-03-02T19:56:03.450 | null | null | 9,897,317 | null |
75,620,246 | 2 | null | 75,620,175 | 2 | null | You can use `apply`:
```
calc_percent = lambda x: x["Retained"].sum() / x["Enrolled"].sum()
df2.groupby(by=['Position']).apply(calc_percent)
```
Out:
```
Position
FT 0.5
PT 0.5
S 0.5
dtype: float64
```
| null | CC BY-SA 4.0 | null | 2023-03-02T19:56:19.493 | 2023-03-02T19:56:19.493 | null | null | 2,501,279 | null |
75,620,245 | 2 | null | 75,614,350 | 0 | null | It seems like there might be something wrong with your installation of MSYS2 or pacman package manager. Child process exited with status 127 can indicate various issues.
Here are a few things we can try to resolve this error:
1. You can start by updating your MSYS2 installation with the following command:
```
pacman... | null | CC BY-SA 4.0 | null | 2023-03-02T19:56:16.097 | 2023-03-02T21:37:12.443 | 2023-03-02T21:37:12.443 | 1,978,251 | 4,441,760 | null |
75,620,250 | 2 | null | 75,620,172 | 1 | null | The following method does not use reduce but is a more readable way to get the same result.
```
function extractValues (obj) {
// Find keys from Object
const keys = Object.keys(obj);
// Then we select each child object using the keys we found and read the vals value.
const values = keys.map(key => obj[k... | null | CC BY-SA 4.0 | null | 2023-03-02T19:56:57.957 | 2023-03-02T19:56:57.957 | null | null | 19,526,338 | null |
75,620,247 | 2 | null | 75,620,123 | 0 | null | Since cells get reused you must set the state for all possible cases. You are not resetting the state in the case where all of the `if` statements are false.
The best approach is to override the `prepareForReuse()` function in your custom cell class.
```
override func prepareForReuse() {
super.prepareForReuse()
... | null | CC BY-SA 4.0 | null | 2023-03-02T19:56:22.167 | 2023-03-02T19:56:22.167 | null | null | 20,287,183 | null |
75,620,248 | 2 | null | 75,617,578 | 1 | null | As you stated in the comment the id should be a request parameter and it should be optional (can be omitted). Try this:
```
public ResponseEntity<?> find(@RequestParam(required = false) Optional<ZonaIdDTO> id)
```
The annotation @RequestParam is needed for Spring to handle the id as a request parameter. And to disting... | null | CC BY-SA 4.0 | null | 2023-03-02T19:56:33.110 | 2023-03-03T08:37:06.600 | 2023-03-03T08:37:06.600 | 14,294,053 | 14,294,053 | null |
75,620,252 | 2 | null | 75,209,018 | 0 | null | Try to use full path to file (os.path.abspath)
| null | CC BY-SA 4.0 | null | 2023-03-02T19:57:03.060 | 2023-03-02T19:57:03.060 | null | null | 10,196,020 | null |
75,620,237 | 2 | null | 75,616,603 | 1 | null | Rails needs [information about the database server](https://edgeguides.rubyonrails.org/configuring.html#configuring-a-database) that it should connect to. This information can be provided to Rails in a variety of ways:
- `ENV['DATABASE_URL']`- `config/database.yml`- [ActiveRecord::Base.configurations=](https://github.c... | null | CC BY-SA 4.0 | null | 2023-03-02T19:55:20.177 | 2023-03-02T19:55:20.177 | null | null | 3,784,008 | null |
75,620,244 | 1 | null | null | 0 | 20 | ```
import React, { useState, useEffect, useRef } from "react";
import Map from "ol/Map";
import { OSM } from "ol/source";
import View from "ol/View";
import TileLayer from "ol/layer/Tile";
import TileWMS from "ol/source/TileWMS";
import { fromLonLat } from "ol/proj";
function MapComponent(props) {
const [map, setM... | Unable to rerender the WMS vector layer using react + openlayers after updating the CQL parameters | CC BY-SA 4.0 | null | 2023-03-02T19:56:04.427 | 2023-03-02T19:56:04.427 | null | null | 17,320,332 | [
"reactjs",
"openlayers",
"geoserver",
"wms"
] |
75,620,255 | 2 | null | 75,620,232 | -2 | null | If you want to run a PHP script once a month, or any other interval, look into [Cron](https://en.wikipedia.org/wiki/Cron)
| null | CC BY-SA 4.0 | null | 2023-03-02T19:57:29.947 | 2023-03-02T19:57:29.947 | null | null | 13,729,794 | null |
75,620,253 | 2 | null | 21,466,974 | 0 | null | const weather = response.weather;
```
if (weather === "Clear") {
weatherIcon.src = "sun.png";
} else if (weather === "Clouds") {
weatherIcon.src = "cloud.png";
} else if (weather === "Rain") {
weatherIcon.src = "rain.png";
} else {
weatherIcon.src = "default.png";
}
console.log(response);
})
... | null | CC BY-SA 4.0 | null | 2023-03-02T19:57:10.400 | 2023-03-02T19:57:10.400 | null | null | 16,213,526 | null |
75,620,251 | 1 | 75,620,273 | null | -1 | 19 | I've got a generic function called getResponse that can fail at 3 points and throws appropriate errors at each point.
When I call this function from another function I'd like to rethrow whatever error it threw if that occurs, but I'm not sure how to do that in swift.
Here's the generic function:
```
private static func... | How do I rethrow errors thrown by functions I'm calling? | CC BY-SA 4.0 | null | 2023-03-02T19:57:02.810 | 2023-03-02T19:58:47.560 | null | null | 1,229,350 | [
"swift"
] |
75,620,240 | 1 | null | null | 0 | 5 | I want to add a dnd functionality to a Table and The table has got SubComponents to render subrows with different headers.
```
const columns = React.useMemo(
() => [
{
Header: "move & index",
id: "move",
Cell: ({ row}) => (
<div ref= {useref}>
rowindex + 1
... | How can I pass a specific Column Ref to Table Component and then to React-dnd for each row? | CC BY-SA 4.0 | null | 2023-03-02T19:56:00.520 | 2023-03-02T19:56:00.520 | null | null | 21,005,756 | [
"reactjs",
"react-table",
"react-dnd",
"react-table-v7"
] |
75,620,258 | 1 | null | null | 1 | 30 | I am looking for a `Julia` package that finds the poles and roots within a given domain of a given arbitrary complex function. Unfortunately, the on `GitHub` available package `RootsAndPoles.jl` v(2.0.0) by Piotr Kowalczyk seems to have a bug [see my post](https://stackoverflow.com/q/75598483/10063208)
which would fit ... | Julia: Are there any alternative packages to RootsAndPoles.jl available? | CC BY-SA 4.0 | null | 2023-03-02T19:57:45.850 | 2023-03-02T19:57:45.850 | null | null | 10,063,208 | [
"julia",
"julia-plots"
] |
75,620,256 | 1 | null | null | -1 | 8 | How to send a customized email notification on pipeline failure, but for a Linux Agent?
Other similar questions point to:
- [Azure Devops Notifications](https://learn.microsoft.com/en-us/azure/devops/organizations/notifications/oob-built-in-notifications?view=azure-devops#supported-subscriptions) are predefined and don... | Azure Devops pipeline Linux Agent: how to send a customized email notification on pipeline failure? | CC BY-SA 4.0 | null | 2023-03-02T19:57:41.580 | 2023-03-02T19:57:41.580 | null | null | 13,630,035 | [
"azure-devops",
"azure-pipelines"
] |
75,620,257 | 2 | null | 75,611,318 | 5 | null | The other answer has a correct TL;DR ("function composition.", in case it gets edited away), but the rest of it doesn't really look like a good answer to question, to me.
It may be better for the asker to explain why function composition suffices by using Typescript, so that's what I'll do. We can define function comp... | null | CC BY-SA 4.0 | null | 2023-03-02T19:57:42.403 | 2023-03-02T21:13:58.887 | 2023-03-02T21:13:58.887 | 13,018,875 | 13,018,875 | null |
75,620,249 | 1 | null | null | 0 | 32 | I have a button that displays an alternative view on the bottom, and increases frame height, but when the alternative view appears, there is a gap between the 2 views:
[](https://i.stack.imgur.com/d3wcw.jpg)
this is my code:
```
struct UserView: View {
@State var message: String = ""
@EnvironmentObject var mode... | how do I fix this gap between 2 Stacks? | CC BY-SA 4.0 | null | 2023-03-02T19:56:44.010 | 2023-03-02T20:08:55.623 | 2023-03-02T20:08:55.623 | 21,138,718 | 21,138,718 | [
"swift",
"swiftui"
] |
75,620,259 | 2 | null | 75,417,795 | 0 | null | Thanks for the above reply, which gives me an idea to re-evaluate my problem and came up with another solution.
My original problem is actually two problems rolled into one: first is to preprocess data to a certain format. My specific pre-processing is to concatenate two columns WEEKLY_FIRSTDAY and WEEKLY_LASTDAY and t... | null | CC BY-SA 4.0 | null | 2023-03-02T19:57:47.483 | 2023-03-02T20:01:13.760 | 2023-03-02T20:01:13.760 | 21,190,786 | 21,190,786 | null |
75,620,263 | 1 | null | null | 0 | 25 | I am using typescript, and therefore I am running into issues with `res.json.mock`
```
Property 'mock' does not exist on type 'Send<any, Response<any, Record<string, any>>>'.
```
if i console.log `res.json` i see that mock is supposed to return getters and setters, but it seems that there is no typescript type enablin... | When using jest and express, i see a TON of examples for asserting the entire shape of a response, but how can i assert on bits and pieces? | CC BY-SA 4.0 | null | 2023-03-02T19:58:09.183 | 2023-03-02T20:03:38.157 | 2023-03-02T20:03:38.157 | 5,279,080 | 5,279,080 | [
"javascript",
"typescript",
"express",
"jestjs"
] |
75,620,261 | 2 | null | 75,620,193 | 1 | null | The problem is here:
```
population = self.SAMPLES["letters"]
```
In Python, variables are that point to a chunk of data*. A reference in this case is like a sticky note with a name written on it. You can attach several of them to the same chunk of data, and access that same chunk of data by any of the names of the v... | null | CC BY-SA 4.0 | null | 2023-03-02T19:58:07.277 | 2023-03-02T19:58:07.277 | null | null | 2,954,547 | null |
75,620,265 | 2 | null | 75,614,231 | 0 | null | It is possible to send emails at a specific date using Action Mailer. To achieve this, you can use Active Job which is a framework for declaring jobs and making sure they run on either the same application or a remote one.
Active Job is a perfect fit for your current need. Active Job supports different job backends for... | null | CC BY-SA 4.0 | null | 2023-03-02T19:58:29.797 | 2023-03-02T19:58:29.797 | null | null | 4,441,760 | null |
75,620,266 | 1 | null | null | 0 | 10 | To remove my application from the Accessibility pane I do this in terminal:
```
sudo tccutil reset InputM appsidentifier
```
Which successfully removes the app from the Accessibility pane but when I try the same for InputMonitoring it does not works.
```
sudo tccutil reset ScreenCapture appsidentifier
```
I get this:... | Reseting Privacy and Security -> Input Monitoring setting | CC BY-SA 4.0 | null | 2023-03-02T19:58:29.977 | 2023-03-03T19:11:12.430 | 2023-03-03T19:11:12.430 | 2,843,882 | 2,843,882 | [
"macos",
"settings",
"privacy"
] |
75,620,267 | 1 | null | null | 0 | 14 | Maybe it is one layer too much, but maybe you can help me:
How can I run mongosh commands within a podman container via shell script?
I can open the mongosh cli with the following command in my test.sh
test.sh
```
podman exec -it my-app-mongo mongosh
```
But how can I also now e.g. show all databases (`show dbs;`)? Is... | How can I run mongosh commands within a podman container via shell script | CC BY-SA 4.0 | null | 2023-03-02T19:58:37.057 | 2023-03-02T19:58:37.057 | null | null | 8,147,970 | [
"shell",
"scripting",
"mongo-shell",
"podman"
] |
75,620,254 | 2 | null | 75,402,611 | 0 | null | The date syntax being returned from the [Input Type Date](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date) is `YYYY-MM-DD` (two digits for days and month). Nothing in that syntax will match what you have. Ultimately you need to convert either your table or the HTML value being returned (see formula... | null | CC BY-SA 4.0 | null | 2023-03-02T19:57:21.880 | 2023-03-02T20:07:57.010 | 2023-03-02T20:07:57.010 | 11,732,320 | 11,732,320 | null |
75,620,269 | 1 | 75,620,598 | null | 0 | 16 | How can I get the intercept and the slope of the fitted regression line in `qqplot`? Here's a small working example, where I want the parameters of the red regression line:
```
import statsmodels.api as sm
import scipy.stats as stats
import numpy as np
np.random.seed(100)
a = np.random.normal(0, 4, 100)
sm.qqplot(a, s... | Fitted regression line parameters in python | CC BY-SA 4.0 | null | 2023-03-02T19:58:42.120 | 2023-03-02T20:44:49.683 | null | null | 15,569,921 | [
"python",
"plot",
"linear-regression",
"statsmodels"
] |
75,620,262 | 1 | 75,624,198 | null | 1 | 43 | I want to cut a part out of a SkBitmap and paint it to a new Bitmap. Therefore i tried to adopt the tutorial stated here: [https://learn.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/graphics/skiasharp/bitmaps/drawing](https://learn.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/graphics/skiasharp/... | Skiasharp DrawBitmap only White | CC BY-SA 4.0 | null | 2023-03-02T19:58:08.963 | 2023-03-03T07:37:29.430 | null | null | 17,772,697 | [
"maui",
"skiasharp"
] |
75,620,272 | 2 | null | 75,620,228 | -1 | null | id have to know what the mod does but seen as its going into your local storage of your opera browser id assume its trying grab an encryption key which can be used to decode cookies potentially
| null | CC BY-SA 4.0 | null | 2023-03-02T19:58:47.263 | 2023-03-02T19:58:47.263 | null | null | 16,165,433 | null |