text string | meta dict |
|---|---|
Q: Function returning before array is populated I am trying to display all the documents in a collection from my Firestore database. Here is where I query the DB and turn the documents into usable objects.
class DatabaseService {
static List<Recipe> getSavedRecipes(String uid) {
List<Recipe> recipes = [];
Fir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ExtJS - creating a package with widgets panels, etc I am creating a package in ExtJS and I need it to contain panels and other elements, this is my package.json:
{
/\*\*
\* The name of the package.
\*/
"name": "MyPackage4",
"sencha": {
/**
* Alternate names for this package.
*
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I add the spotify Accesstoken into my spotify web player? I am trying to set up my first proper website and I am trying to use the spotify API to make a working webplayer.
The Player itself is working, my only problem is that with my current code the website either reloads in a loop or my authentication scri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there something similar to NotNullIfNotNullAttribute for IEnumerable return values? (This is a question about C# nullable reference types and generics.)
I know that I can use NotNullIfNotNullAttribute to specify that the return value of my method may be null if, and only if, an input is null:
[return: NotNullIfNo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: loading models in R require more memory than that used to build them I built 18 models in a script in a unique R session.
Since each model was the result of a step selection process that was taking quite some time, I saved the 18 final models as .Rdata files using the function save at the end of my script.
Now, afte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to reste Backup Password of Authy app The Authy app Backup password not accepting,
and then reset the password link not received on the registered email ID,
anyone please help me how to change Authy app backup password.
A: Finally able to fix this, earlier I have to install authy app on my Iphone, so again inst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I want to add HTML code in Tilda, but I don't know how I want to add HTML code in Tilda block 'product details'
I tried to add HTML in Tilda product through T123 block, but that's not what I wanted. I wanted to display this HTML code in product card.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75631142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: reverse method returns NoneType I am trying to solve the following kata on the CodeWars website: https://www.codewars.com/kata/5b93636ba28ce032600000b7
My code is as follows:
def solve(n,k):
balls = list(range(n))
for i in range(n):
balls = balls[:i] + balls[i:].reverse()
return balls.i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server equivalent to Oracle's MAX(...) KEEP (DENSE_RANK FIRST/LAST ORDER BY ...) There's a technique in Oracle SQL that can be used to simplify aggregation queries.
Scenario: We've aggregated on a particular column — but we actually want to know information from a different column.
There are a number of ways to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rust Type mismatch when pattern matching on File::create() I'm trying to pattern match when a file doesn't exist, wherein it would be created and then returned but the compiler is expecting '()', I'm not sure how to get it to expect the correct return type of File.
let mut file = match File::open(&path) {
Err(_)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Test containers cant seem to communicate - connection refused so i have one container set up like
genericContainer
.withImagePullPolicy(PullPolicy.alwaysPull())
.withExposedPorts(SPRING_BOOT_PORT)
.withNetwork(NETWORK)
.withAccessToHost(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error while importing Excel file into SQL Server database I am trying to import an Excel file into a SQL Server database in Microsoft SQL Server Management Studio.
When I click the SQL Server Import and Export wizard server import and export wizard
this error happens:
Do you know what can lead to that?
I looked for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Error: Export encountered errors on following paths: / info - Generating static pages (1/1)
Build error occurred
Error: Export encountered errors on following paths:
/
at /Users/user/.nvm/versions/node/v16.13.0/lib/node_modules/next/dist/export/index.js:425:19
at processTicksAndRejections (node:internal/process/ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ValueError: mutable default for field name is not allowed: use default_factory I'm getting error from the title when I compiled a python source and tried to run it.
I provided a picture of full error because I couldn't copy paste it as it would close almost immediately.
I read this StackOverflow question ValueError... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Creating a Lambda Function (index.js) in AWS I'm currently trying to write a Lambda Function in AWS but I keep coming across the following error:
Test Event Name
sendContactEmailTest1
Response
{
"errorType": "ReferenceError",
"errorMessage": "require is not defined in ES module scope, you can use import instead",
"t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to create a gui to visualize plots I want to build a gui using pyqt5 where we can upload a wireshark csv format file and user can
*
*analysis wireshark output which is in csv format to check the time delay btw different source and destination groups using delta time from previous captured frame.
*to check ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to comment out a line of code in Visual Studio 2022? In other IDE's you can comment out a line of code with "CTRL+/" shortcut.
But that doesn't seem to work in VS Studio 2022. Tried to do some googling, but there is only how it is done in multiple lines. What about one line commenting? Without outlining code, I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Drupal Stripping HTML tag before rendering On a Full HTML field if I enter generic YouTube embed field using iframe it works fine:
<iframe width="560" height="315" src="https://www.youtube.com/embed/BZfB8Ny2Tkw" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Chart.js - How to write this Javascript more dynamically I am new to Chart.js and also not very experience at writing javascript generally. I currently have hacked together a 4-line chart but I'd like to make the code a bit more dynamic so that if the incoming data changes (say for example a 5th category was present... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Use JavaScript to replace all characters in string with "p" except "o" I would like to replace all characters in a string myString with "p", except "o".
For example:
"fgyerfgehooefwfweeo"
should become
"pppppppppoopppppppo"
I tried:
myString.replaceAll('[^o]*/g', 'p')
A: *
*Pass a regular expression literal ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Error when updating from api data in MongoDB it's my first contact with MongoDB.
Everything else works (post, delete and get), but only one async thing doesn't work - in my code it's called UpdateAttractionAsync.
There is code of my MongoDBService.cs:
using Sunny_Apartment.Entities;
using MongoDB.Driver;
using Micro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to fix this?? an error appears while typing npm start in the terminal npm ERR! code EJSONPARSE
npm ERR! path C:\Users\laptop\Desktop\TI\Projects\Flights\flight/package.json
npm ERR! JSON.parse Unexpected string in JSON at position 705 while parsing '{
npm ERR! JSON.parse "homepage": "https://Lahcen-88.githu'
n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: I am trying to work with angular(tailwind) and docker but whenever I try to access localhost:4200 I always get err_empty_response below is the dockerfile docker-compose and package.json What I am mostly concerned about is the path and I have tryed to add CMD ["npm","start",--host 0.0.0.0] and didn't work what could ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Combine/Join lines in Notepad++ based on separator I have a text log file in the following format.
****************************************************************************************
line1
line2
line3
****************************************************************************************
line4
line5
line6
****... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In C# Cake How to Read a Text File into List? Given a carriage return delimited text file say of folder names, how do I read this file into List in the Cake build system for C#?
When I try to use the File class, it complains that File(string) is a method, which is not valid given the context:
filePath filePath;
stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Extract text from pdf/doc/docx file using AWS Lambda (Node.js) I'm trying to extract text from doc/docx/pdf file in an AWS Lambda function written in Node.js.
I need to extract text data as an array of words. I've tried using a few different npm packages, but I've noticed that it just skipping those functions.
AWS L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NGINX 404 not found when trying to reverse proxy a NoVNC server So I am currently setting up a default.conf file in nginx to reverse proxy an IP that is currently setup using NoVNC to have a virtual machine running on it, but when making the config file (I am very new to this go easy on me) I cannot seem to get it t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: For queued offline requests, when is request.time populated? At the time it is added to the local queue or at the time it hits the server? I'm writing validation rules around creating users in the database. The user db document includes a dateCreated field populated with a firestore timestamp which is set on the cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: streamlit button to output a new form at every clic i am building a streamlit app.
i want to add a button that everytime the user clic it, a new form will appear without erasing the old form.
for example the user will clic the button 3 times, so 3 forms will appear and he can fill each one of them separetly.
the but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a data hazard between the following instructions? The document I'm reading states that there is a data hazard between the lw and beq instructions below when considering a 5 stage MIPS CPU pipeline. They don't seem to operate on the same registers, so I'm not sure where the data hazard is exactly. Any hints?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Loop is skipping comparison incorrectly The main problem is that the loop will only pull values from x[i] into z[i] and always skip putting y[i] into z[i]. The only thing I can think of is that y[i] always has a value larger than x[i], which doesn't make sense. Because x[i] is presenting the correct values to z[i] w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Having trouble translating blob file into image on NextJS App from MySQL Database So I'm working on a project and I'm trying to pull an image that's a blob file in my database. But the image is not coming up.
Code for the first file, products.jsx:
import React from "react";
import Image from 'next/image';
import { u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to reliably concatenate LazyFrames in Rust Polars Cargo.toml:
[dependencies]
polars = { version = "0.27.2", features = ["lazy"] }
I would expect that any two LazyFrames could be vertically concatenated as long as the columns they have in common had the same or promotable dtypes, with missing columns added in as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How verify and use two arguments are set so don't get garbage I'm using arguments for a PowerShell script, but I found that if the second one isn't set, it's getting garbage, although it's possible I'm doing something wrong, since I'm having trouble finding examples with two passed in arguments. How can I verify th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Rvest in R for web scrapping finance webpage today i was trying to apply web scrapping on a finance site.
I used adviced that i received previously on stack and i get this url ("https://micheque.uy/api/cheque-loan/latest-transactions?currencyId=1).
My goal is to get information about the latest transactions. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Trying to sum two columns from a matrix but it returned a "TypeError: 'method' object is not subscriptable" This is a program for a university project. It's kind difficult and probably unnecessary to describe the project.
In this project there's a part where I have to sum two columns of a matrix and for some reason ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to start using JWTRefreshTokenBundle in my eample I already using JWT Authentication in my app but I want to start using refresh token. I tried many thing but nothing worked. I already have Entity for refresh_token:
use Doctrine\ORM\Mapping as ORM;
use Gesdinet\JWTRefreshTokenBundle\Entity\RefreshToken as BaseRe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: kong oidc plugin with keycloak failed due to bad uri We are trying to create new oidc plugin in konga ui with below details,
introspection endpoint : myhost/auth/realms/master/protocol/openid-connect/token/introspect
Discovery URL : https://myhost/auth/realms/master/.well-known/openid-configuration
secret Taken from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to not render html tags in v-html in vuejs? I want to make only matched string bold. Say, I have a string "Hello, World!" and user searched for "hello". I want to make something like this, "Hello, World!".
I have tried this,
const search = ref('hello')
function boldText(text) {
return text.replace(search.val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Change size HTML table in Quarto presentation I would like to use HTML tables in a Quarto presentation. The problem is that they are pretty big on the slides. Here is some reproducible code:
---
title: "Change size of HTML table in Quarto"
format: revealjs
---
## Example slide
| Default | Left | Right | Center |
|... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IBKR: No security definition has been found for the request, contract: I am new in both IBKR and its API, the code given below is giving error on qualifyContracts method:
Error 200, reqId 308: No security definition has been found for the request, contract: Option(symbol='TSLA', lastTradeDateOrContractMonth='2023030... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mounting an NFS share in a docker container from a NAS I have a docker container running sab and want my downloads to be placed in a mounted NFS share I have on the local machine.
Outside of the docker container, I have a NFS share in /mnt/Plex that was mounted using the IP address 192.168.1.50:/Plex
How can I put t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I want to render kite websocket ticks data to frontend I want to render the KITE websocket ticks data to the frontend.
I'm new to this , please help.
Below is the flask python snippet.
from flask import Flask, render_template, request, redirect, session
from kiteconnect import KiteTicker
import logging
from login i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How do I create a dummy variables using a byte format column in Stata? I have a gender column that says either "Female", "Male", or . for missing entry. I want to create a new column that gives dummy variable 1 if gender is female and 0 is gender is male (and continuing to give . for missing value). I tried to do ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using typeconverters to convert List to Strings vice versa(Kotlin) I am having problems converting Lists -> Strings and 'Strings' to 'List' for type Converters in android studio.
Entity
data class Results(
@PrimaryKey(autoGenerate = true)
val id:Int? = null,
val category: List<String>,
val content: String?,
val c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UnicodeEncodeError: 'charmap' codec can't encode characters in position 335140-335141: character maps to I am simply trying to write a basic python code (just started learning) encountering below issue. Kindly help.
Code:
import sys
sys.path.append(r"C:\Users\**********\**********\Python Files\PyTutorials\Lib\site-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Codename one "theme" passed on parameter doesnt work i have in package com.mycompany.myapp this file MyApplication.java that has a start function like this
public void start() {
if(current != null){
current.show();
return;
}
new AjoutBlogForm(theme).show();
}
but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to convert Azure pfx key to pkcs#1 The company I work for has it's certificates in Azure. So when you download them they are in pfx format. I get that they are a bundle and that you can use openssl to extract different version keys. The product tableau requires the certificate as a crt file and key. I have succe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Embedly post are showing the Embedly brand. The frontend is build using REACT we are using embedly to display posts for our users on our site. To try it out, we are using a free account. We have an API call to retrieve the post's (twitter, facebook, etc) attributes and a rendering component. The frontend is being bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: oberveEvent on an action located in another module In a shiny app, I have 2 modules, in the first one (mod_1_ui) I have filters and an actionButton.
On the module 2, I want to display a plot WHEN button is clicked.
My problem is that, the observeEvent is in module 2 and the button in module 1.
How can I observeEvent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: xkbcommon: ERROR: failed to add default include path playonlinux I am trying to run playonlinux on ubuntu22.04, but it is showing me this error:
Looking for python3... 3.9.13 - selected
1.25
xkbcommon: ERROR: failed to add default include path /home/think/anaconda3/share/X11/xkb
xkbcommon: ERROR: failed to add defau... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HEC HMS 4.10 Error 20656 Missing or negative precipitation values I am trying to run my continuous simulation using HEC HMS and I have data entered for my precipitation gages. There are no negative values or missing values however I get the error "Error 20656: Hyetograph gage 1 for subbasin contains 24 missing or ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK when instaling DataBricks I have a Databricks notebook, trying to "import boto3" and get the below error.
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
How can I resolve it?
FYI, this is the package and cluster ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Do common OSes provide guarantees for IP fragment reassembly? When sending UDP packets that exceed the PMTU, I'm told that the receiver will receive the packets in fragments. Does the network interface or OS of the receiver typically re-assemble the packets automatically?
If I had to guess, for Linux/POSIX systems t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Print array in one line I have a program that prints result as an array:
Array
(
[2019] => 15.63
[2020] => 4.96
[2021] => 42.92
)
But I need to print it in such form:
[2019 => 15.63, 2020 => 4.96, 2021 => 42.92]
How could it be done? Do I have to make another program for it? Or is there any easier way?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: how to show how many rows and columns how to show how many rows and columns?
import pandas as pd
df = pd.read_csv('cars.csv')
grouped_cars = df.groupby('Gears').mean()
print(grouped_cars)
grouped_cars1 = df.groupby('Gears')['Torque'].mean()
print(grouped_cars1)
what i expect:enter image description here
i try add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Manage github Action Workflow with Prefect Cloud 2 I have several github action workflow I need to run, to manage them I want to use prefect cloud. Even tough I created a deployment and github block in Prefect I can't run my workflow as they stay in "late" state.
My repository structure:
my_git_repo
└─github/work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: scrollToFirstError not working on Select field of the antd Form I created Form using ant design components. I've added scrollToFirstError flag, so form is scrolled to the first failed validation. It works when first error is on the InputField, but not when it's on the Select field. It show's the error message and fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Install two versions of Elasticsearch on my machine There's a question here from 2020. I simply can't understand what those guys are talking about.
This is on a W10 box. ES (7.10.2) is currently running on localhost:9200. I need to upgrade. When I attempted to upgrade to 7.16.3 some time ago a regression occurred, r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Value not binding in XAML Page in Xamarin.Forms I have a text that is changing dynamically and needs to be updated in user interface, but it is not binding.
Here is the view model:
internal class PowerViewModel : INotifyPropertyChanged
{
public string Power { get; set; }
public PowerViewModel()
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add additional group in legend in ggplot2 I was trying to create a regression plot that shows the regression line for two subgroups and also the entire dataframe.
While doing that i stumbled across the question if it was possible to add a group to the that doesn't exist in the dataframe to the legend (my variable on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I rename the index column title in pandas after resampling? Having some trouble getting the index column to have a name after resampling:
The df looks like this before resampling
Timestamp Spd 98m N [m/s] ... Tmp 3m [°C] Pres 2m [hPa]
0 2021-12-02 00:00:00 11.372 ... 7.87 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: psql Cannot open extension control file, but the file exists psql command line:
postgres=# CREATE EXTENSION pg_tgrm;
ERROR: extension "pg_tgrm" is not available
DETAIL: Could not open extension control file "C:/Program Files/PostgreSQL/15/share/extension/pg_tgrm.control": No such file or directory.
HINT: The exte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nexus 2 artifacts not present after migration to new server and version Task: Migrate nexus repositories to a new server and version.
*
*Old server running Nexus OSS 2.3
*New server running Nexus OSS 2.15
rsync'd the data directory (sonatype-work) to new server and pointed to it in $NEXUS_HOME/conf/nexus.propert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: spring-boot-admin can't seem to change colors despite editing variables.css I wish to change the CSS colors in spring-boot-admin-server-ui and thought it would be as simple as changing the various colors in the:
spring-boot-admin-server-ui/src/main/frontend/public/variables.css
I then do a mvn clean install -DskipTe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Vite using wrong host ip So I'm using docker to start vite dev server, I start server with vite --host and it works perfectly fine when I try to access it via http://localhost:513
However, if I open my webapp, seems like vite is injecting wrong url and this error appears in my console:
[::]:5173/resources/js/index.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to change the color scale with ggparty::geom_node_plot()? I would expect to be able to change the fill colors in this plot with scale_fill_manual() but it doesn't work:
library(ggparty)
#> Loading required package: ggplot2
#> Loading required package: partykit
#> Loading required package: grid
#> Load... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does Neo4j work with large databases? Imagine there is a large database (>50GB) and because of its size it cannot be loaded entirely in the main memory. So how does Neo4j work with such databases? Is there some kind of paging? If so how does it work, if not - how does it load parts of the database in memory? I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the unit of points4D param in OpenCV's triangulatePoints function? What is the unit of output points4D param in OpenCV's triangulatePoints function?
I have been working on Visual Odometry and I'm not getting the expected output. So, to fix some issues, I'm trying to understand the nitty-gritty of the differe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ERROR: LoadError: ArgumentError: a 'LinearAlgebra.Transpose{Float64, Matrix{Float64}}' is not a table; see `?Tables.table` function price_zones(a::Array{Float64,2})
v_temp = vec(convert(Array, mapcols!(count_unique, DataFrame(transpose(a[:,1:3])))))
df = DataFrame(OnePriceZone = sum(v_temp .== 1),
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Shiny/R when I click on image link (actionLink) the app crashes I have this app here:
Here is the code for the module:
library(shiny)
library(shinyWidgets)
library(tidyverse)
years <- 2015:2022
list_actions <- list(
letters[1:3],
letters[4:6],
letters[7:9],
letters[10:12],
letters[13:15],
letters[16... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Grails 5.3.2 with Spring-Web 6.x? Any other solutions to spring-web CVE? I have a Grails app that is on Grails 5.3.2 and a couple weeks ago I was blocked from using the recommended spring-web version 5.3 because the 5.3 version is blocked in our Artifactory instance because of CVE-2016-1000027.
I tried to require sp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Natural Language Processing, how can we add our own Stop Words to a list? I am testing the library below, based on your code sample, Roman.
import matplotlib.pyplot as plt
from sklearn.feature_extraction.text import ENGLISH_STOP_WORDS
from collections import Counter
df_new = pd.DataFrame(['okay', 'yeah', 'tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NavLink color is not changing using tailwind css <NavLink
to={item.link}
key={index}
className={({ isActive }) => (isActive ? "text-oirOrange" : ' ')}
>
<li className='cursor-pointer font-semibold text-oirBrown hover:text-oirOrange'>
{item.text}
</li>
</NavLink>
The active nav link color should change... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: pecl install pdo_sqlsrv MAKE fails on DDEV using Debian 11 - missing libltdl.la I have a project that is using DDEV to run an instance with PHP 8.1.
I needed to introduce the pdo_sqlsrv extension to the package, so I added a Dockerfile in the .ddev/web-build/ directory that installs the required packages, and copies... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Im getting MulterError: Unexpected field error from backend express, how to fix my code im trying to make something like google drive, but my own, started with very simple file/image uploading, down here is my Node.js Back-end, and more down there is my Front-end JavaScript/Axios/React/html server, after i upload an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why winreg is returning numbers? I am writing to program to find firefox path.
I am using code from github (don't mind that variables are named chrome)
This program returns numbers
def _find_chrome_win() -> Optional[str]:
import winreg as reg
reg_path = r'SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to convert a numeric variable that counts the number of months since a certain point into a variable with an interpretable date (R)? I have data in R that has a numeric variable that counts the number of months since Jan. 1960.
Let’s say:
months_since_1960 <- c(0, 1, 12, 13, 24, 25)
How can I create a new date ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: By passing octal literal deprecation in Scala 2.13 I am using this tool that generates a scala file (instead of the Java file that jFlex generates).
But the problem is its generates string literals with octals like this:
val ZZ_CMAP_PACKED:String =
"\11\0\1\2\1\1\2\0\1\2\22\0\1\2\7\0\4\3\1\0"+
"\1\3\1\0\1\3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bar Chart spacing power BI visuals Good afternoon community,
I am struggling with the latest PBI interface and the visual for a bar chart. The current settings and all that I have manipulated leave a great deal of white space and an unpleasing visual.
Power BI screen shot
I dont like all of the unneeded white spac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Strange behavior of rugarch package on cluster I watch a very strange behavior of rugarch package when I try to estimate models via arfimafit method. I have some (usually 1-2) workers never stop after the method calling in parallel.
Code for reproduce:
library(aTSA);
library(parallel);
library(rugarch);
library(prac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use/update dependencies from another Windows user? I used to work in my windows user profile, some days ago I lost the access and can not recover it because I need a password that I never used.
However, I am using an admin profile and copied some projects from the lost user, but when I try to use some depende... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dax measure formatting issue I am trying to format the CalcType = 1 and CalcType = 2 by using "FORMAT" function and it does work on the values but it creates a new issue and starts showing all the subheaders under each header with blank values. Please see my Dax measure.
Actual = VAR CalcType = SELECTEDVALUE(HeaderP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: saving userid/token returned from google(gsi/client) OAuth signin to local storage? is it acceptable? In order to persist the login on refresh in my application, I am saving the id returned from google 1-step signin in local storage. I have read some conflicting articles about it, as either being good/bad.
Just want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Implementing `downgrade_map` for `tokio::sync::RwLockWriteGuard` I'm currently implementing an extension method downgrade_map (+ try_downgrade_map) on tokio::sync::RwLockWriteGuard, which goes from RwLockWriteGuard<'a, T> to RwLockReadGuard<'a, U> with an f: impl FnOnce(&T) -> &U.
pub fn downgrade_map<'a, T: ?Sized,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: unable to find activate.bat to activate conda environment via batch file I used to have a batch file in a previous computer, scheduled via task scheduler, that activated the conda environment called "eng" and ran a python script with the packages installed in that environment. The bat file looked like this:
@ECHO OF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HomeAssistant API request from micropython not working I have an input_number configured in HomeAssistant like this in the configuration.yalm:
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
input_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to POST to a specific route in my app Hey everyone!
So, I've been following along a project, in which I'm developing a simple app that I register products in, and they go to my mongodb database. Handlebars as the templating engine.
Problem is, I keep getting the same Cannot POST /products/create every time I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: is there a way to train an ai in unity using ml agents and in a built game i was thinking of making a game that you are playing agenst an ai with a base brain and it adapts to your playstyle is that posable without using the console?
i found a git page explaining how to train with the console (https://github.com/Uni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Simple input field and math calculations Question I'm building a personal website for my friends and I as a guide to help us lose weight.
I have the above input field. Lets say you enter 200 and press enter. I want add code to the HTML file that displays the following
Your weight minus 1 = 199
Your weight divided ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Make POST request with no "Basic" in Auth Header I am new to .NET and is trying to call third-party API but the API requires to send Auth Header without the word "Basic". It is a base-64 encoded string. But when I call the API, http client throws an exception as invalid value.
I am using .NET v6.
Below is the code
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to get a like row/column alignment in a flexbox? I have a table of three columns that I want to flex column wrap to display as many rows as possible without scrolling. I started out with <table><tr><td> elements, but when I made the table display: flex, it lost it's table functionality and now the columns are n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Type-hint a nested json api response Let's say I have an api endpoint that returns a complex response.
data = requests.get("https://my.api/garbage").json()
# {
# "a": 1,
# "b": "asd",
# "c": [1,2],
# "d": {
# "e": "dsa",
# "f": 1,
# },
# "g": True
# }
I pass this response aro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issues installing tabulizer in R on Mac OS13 and R 4.4 I'm having many issues installing tabulizer in R 4.4 on my Mac OS13. I've reproduced the error message below. I've tried every other suggestion on stack and nothing seems to do the trick. I've verified the rJava is installed. Thanks for any help!
remotes::insta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using automator to create a blank folder structure on Mac using variables I would like to use automator to create a blank folder structure to help store files related to TV shows. My ideal workflow would be this....
*
*User clicks on the automator 'application' on the desktop and are asked what their files are cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Conditional format entire sheet using Openxlsx in R I have data in R thats currently 645 rows by 94 columns. But for a reproducible data lets just take the "iris" dataset.
I want to save that out as an excel with conditioning formatting where every cell that contains "A" gets highlighted. I know I can do something ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to prefix a visitor ID when sending analytics to Pendo from Segment? This I guess applies to any 3rd party provider, when using Segment, how do I send a special ID which is prefixed to one service (but send the regular ID to all the other services, without the prefix)?
analytics.identify(userId, { visitor: { id:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create a constraint based on column value to ensure not null I have a table with 4 columns, let's say: col_1, col_2, col_3, col_4, where col_1 is of type TEXT and the others are INTEGER.
I want to add a constraint on col_1 that goes as follow:
if (col_1 = 'a') then col_2 cannot be NULL
if (col_1 = 'b') then col_2 AN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RXJS GroupBy in Angular 14 doesnt group so in a basket I have:
As you can see there are 5 items. Two of the items have an id of 2.
So when I go to my basket view I want to group by the id and in the case of id 2 eventually want to too cost of 24.4.
So I thought I'd try to just get the group by id going first with t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: sklearn.impute.SimpleImputer: Unable to fill in the most common value for a list of dataframe columns I have a list of columns of a dataframe that have NA's in them (below). The dtype of all these columns is str.
X_train_objects = ['HomePlanet',
'Destination',
'Name',
'Cabin_letter',
'Cabin_number',
'Cabin_lett... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75631378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |