text string | meta dict |
|---|---|
Q: How to use the m1 chip macbook to use the gpu acceleration on d2l? d2l: https://d2l.ai/
I modified def try_gpu(i=0): and def try_all_gpus() in the torch.py :
def try_gpu(i=0):
"""Return gpu(i) if exists, otherwise return cpu().
Defined in :numref:`sec_use_gpu`"""
if torch.cuda.device_count() >= i + 1:
return t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simple way to CURL to AWS SQS I would like to have a simple way to send messages to my SQS queue, but checking documentation I see that we need to sign the request, is there any way I could use credentials in a Basic authentication or something similar that could provide me a simpler interface to get messages to the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How could I escape EMFILE: too many open files I'm writing an application with electron js and webtorrent for downloading torrent files, and there while downloading appears an error that there is too many open files this error appears with large files from 5gb. I guess when webtorrent is downloading something it ope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to config Rollup for subpath components I'm new to Rollup. I'd like to rollup my components to use them in mulitple projects.
My filestructure is
*
*src /
*
*Button
*
*Button.tsx
*Button.css
*GreenButton.tsx
*GreenButton.css
*BlueButton.tsx
*BlueButton.css
*Dropdown
*
*Dropdown.tsx
*Dropdown.css... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Audio tag minimal play button I would like to have a minimalistic play button, via the tag of html5.
I've managed to strip down the play button to a bare minimum and I would like to remove the right part after the three dots, but I do not know how to do it. I'd like to strip the play button of the part indicated by... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need help deciphering this rust compilation issue When I run cargo test or run on my project, keep getting the following error. No clue why this is happening. I've taken out some portion of the error which seemed repetitive to make this easier to read. I've tried running this code across both arm64 and now amd64 but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Make sure that kilogram are converted to grams pandas I have the following series
s = pd.Series({0: '1kg',
1: '500g',
2: '200g'})
What I want to do is to make a very similar column that basically has the same type of measurement, that being in grams. So in this case convert the 1kg to one thousand int value and l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Django: import error or possible settings misconfiguration I am trying to use a model I created in myapp/models.py in another file called store.py, but every attempt to import models.py has failed. Both store.py and model.py are in my Django app folder.
Here is what I tried so far:
A)
from . import models
radio = mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Update AWS Glue Catalog Table Column Schema using Terraform I want to update Aws Glue Catalog Table's Column Schema using Terraform.
Firstly, I created crawler in order to created table.
resource "aws_glue_crawler" "my_crawler" {
database_name = "test_db"
name = "test_crawler"
role = "test_role"
tab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JavaFx - When selecting a text field, text field changes its scale and it effects the other items in flowpane. How to get rid of it There is group of items (three textfield and a button). One of the textfields is in an other group (to put an mouse transparent image on it). When this textfield is selected the parent ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: CORS error on second ajax request on Chrome I use dotnet core 6 as rest api and configure cors as below:
services.AddCors(c => {
c.AddPolicy("cors", o => o.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader());
});
app.UseCors("cors");
It works when I try to request for the first time.
Then after a while, I get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django Form Add user from a specific group I'm new with Django.
There is my model:
class Classe(models.Model):
title = models.CharField(max_length=25)
titulaire = models.ForeignKey(User, related_name='titulaire', on_delete=models.SET_NULL, null=True, blank=True)
In a form, I would like add the "titulaire" f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: # is creating issue in SSO request We are using Apache , shibboleth and Azur AD for SSO implementation. We are facing one issue when we try to access any URL first it authenticate the request and then it forward the URL to home page. When we analyzing the issue we figure it out that our application is having # in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to stop agent leaving queue when delay + GoTo blocks size = 6 in AnyLogic i am using queue before the delay block. The delay block capacity is 6. That is great.
But when I use GoTo block I have to make sure the agent only enter in GoTo block when delay.size < 6.
If i use wait block instead of queue then i can f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Embed sharepoint private excel/doc/pdf with sharepoint oauth I have few documents in sharepoint which I would like to embed in my web app, i used msdl npm package to oauth into azure AD from web app but it does not log me into sharepoint,
so embedded iframe asks for authentication.
What steps I need to follow so tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Account expiration in LDAP Which fields (and what types are they) are used to indication expiration of a user in LDAP?
I've read 'accountexpires' is a long from 1601 and 'accountExpirationDate' that is java.util.date in certain format. Is this correct?
Are there any helper methods for example in spring-ldap to get t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ticker Tape Scrolling trying to make it continuous im using the following code to implement ticker tape scrolling on top of my website, but when it ends it does not start over. I want it to be continuous not to have a blank space on the scrolling. Trying to figure it out on js but can't find where to change it... th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: R-stack layout graphs in Quarto I would like to use the r-stack layout class in a Quarto presentation with ggplot and ggplotly output. For images we could use the following code like shown in the link above:
---
title: "r-stack with graphs in Quarto"
format: revealjs
---
## Example slide
::: {.r-stack}
 to create a list of our suppliers, the services they provide to us, and the contact people inside those companies. I need to have thre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to get data from associative Array - i need [paramInfo] data only pls this is array recvd from xml data -
Array
(
[responseCode] => 000
[biller] => Array
(
[0] => Array
(
[billerId] => IOAG00000DEL01
[billerName] => Indian Oil-Ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-6"
} |
Q: To provision AWS S3 Buckets, why Pulumi have Bucket and BucketV2 resources? I trying to find the story behind having Bucket and BucketV2, and the real difference between the two . Moreover, it looks like for a lot of S3 resources, there is a V2 variant. Why does the V2 variant exists? Why do we have Bucket and Buck... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Swift regexp to extract the pure link from a href I can use a regexp which extract the "href='link'"
"href\\s*=\\s*[\"']([^\"']*)[\"']"
from the string
however i don't want to include the href='' part, just the result
the bellow regexp should work, but strangely doesn't
let input = "Some text with a <a href=\"http:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create file from terminal I don't understand logic of this task:
Create an app create_file.py that takes directory path, file name, file content from the terminal and creates file. There should be flags -d or -f:
If only -d flag passed, means all items after this flag are parts of the path.
python create_file.py -d ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Did anyone know why GA4 not showing total value from Feb Last 2023? Did anyone know why GA4 not showing total value from Feb Last 2023?
If anyone know Please give suggestion to solve this To see image issue.
Give suggestion? to rectify this problem.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75604264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Translate nd array In python I have a nd array like this:
0 0 1
1 0 1
0 1 1
0 0 0
I know that the first position is “a”, second is “b”, and so on.
How can I transform “ones” to “as”, “bs”, … ?
Nothing yet. Not a clue.
A: I believe you might want to use array indexing:
a = np.array([[0,0,1],
[1,0,1],
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Parallax effect on 3 layers footer using native CSS I'm trying to create a parallax effect on a 3 layers footer, only using CSS. My foreground contains trees, my intermediate layer mountains, and my background the Sun, and I want them to scroll at a different speed when we scroll down or up the page.
I've tried many... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem regarding the evaluation of (6+7/9*8) using c++ I am not able to understand in what sequence the operations are being performed as i am getting output 6 but as per my logic it should be 12.2222
#include <iostream>
using namespace std;
int main()
{
cout<<(6+7/9*8);
return 0;
}
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75604268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: import csv with backslash I am trying to import a csv file inside mysql using a php page.
I have a problem with \ it being ignored. How can I do to solve it?
I leave the code of the import.php file, thanks in advance.
C:UsersvenicDesktoplinklogo_ariel.png
C:\Users\venic\Desktop\link\logo_ariel.png
Andrea
<?php
inclu... | {
"language": "it",
"url": "https://stackoverflow.com/questions/75604269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Route to DNS and Port# in AWS I have the following setup in AWS:
1x frontend app and 1x backend app that run in ECS Fargate Containers.
1x EC2 server where I run the Docker containers for Sonar, Kafka, a Gui for Kafka and Zookeeper.
The GUIs of the Apps are accessed within the same ALB (via Listener and Target group... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How can I disable kendo TabStrip tab scrollable with Tag Helper? Code with Html Helper:
@(Html.Kendo().TabStrip()
.Name("tabstrip")
.Scrollable(false)
But I don't know how to do it with Tag Helper. Any ideas?
scrollable="false" not working
<kendo-tabstrip name="tabstrip" tab-position="top" scrollable="false">... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do i use --legacy-peer-deps or force in vite build So there's a package called react typed that I used in my project and I had to install it with --legacy-peer-deps. for me to deploy, I have to use vite build.
When i do, i get
8:59:31 AM: npm ERR! node_modules/react
8:59:31 AM: npm ERR! react@"^18.2.0" from th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: React Native + Metro: Build Android / iOS with custom scripts Premises
To allow for multi environment builds, the following Android flavors were set:
productFlavors {
development {
resValue "string", "app_name", "AppName Dev"
applicationId "com.org.nativeapp.development"
}
staging {
resValue "strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add fading transition on a changing image? I have this code:
HTML
<div id='features-buttons'>
<button class='features-button' id='theButton' onclick='featureImage1()' type='button'><i class='fa fa-briefcase'/> Home Office</button>
<button class='features-button' id='theButton' onclick='featureImage2()' ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: React Redux Context - Can I use only one action type for all kind of different error cases? I wonder if I should have for each different case, a different error message dispatched.
In the following I do that, but it seems to me bad practice. Apologies if I didnt phrase my question well enough, hopefully its clear wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passport google oauth and cookie-session return the same user after every login in express application I am using passport google OAuth to sign in users into my application. Everything is working fine; user profile is fetched on each login. However, despite the fact that each login returns the correct profile in the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to fetch cartCount and cartTotal values using B2B Commerce in Salesforce? I need help with the below problem.
How to fetch cartCount and cartTotal using B2B Commerce in Salesforce?
enter image description here
Need to fetch the values using Visual force components.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75604288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get value of table cell on button click I want to get the value of a table cell by click a button in the same row of this cell. this cell is in the previous column of the button's column, this is my trying code:
<table class="table table-bordered table-hover" >
<thead>
<tr>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I omit the missing value row from table1 in R I have a dataset as below. When I make a table1 from it using table1(), there is a row given for missing values. I was wondering if it is possible to exclude the 'missing row' from one of the variables (say var3).
The reason I want to do this is because, in my act... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: eBuildfire: buildfire.userData.search() not working after recent buildfire update I'm having some issues with a custom plugin I created where the method buildfire.userData.search() is no longer working due to an error.
Please note that evertyhing was working ok before the latest Buildfire SDK update. At first the ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is sampling from a gamma distribution so much slower than from a normal distribution? I'm doing some simulations for my thesis where we test out different models. One of the parameters which we vary is the distribution. The code runs slower than I would like.
After a lot of profiling, I think I've narrowed it do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Build container image in ACK cluster and push it to ACR with service account token I knew that ACK support RRSA authentication. so I just want not to generate AccessKey and attach it to the pod env due to security concern.
There are any way to use service account attach to the runner pod to generate a temporary pass... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Greater than equal sum across accounts for each member for each snapshot date
acct_sum = acct\
.groupBy('md_access_number', 'md_snapshot_date')\
.agg(F.sum(F.col('im_wms_curr_bal'))
.alias('bal_sum'))
I am calculating the sum and average account balance by a clients md access number and current date... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How can I generate multiple result dataframes using filter in R? I have a dataframe with thousands of rows. I would like to generate a separate dataframe per Country using filter. Is there a way I could do this in one command, instead of manually repeating the code per Country?
Country_List <- c("India", "Japan", "K... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why regex pattern matches nothing inside the code? I've written a regex pattern which selects all video urls from the string which works as well: https://regex101.com/r/MGylmt/1
But when I use that pattern inside the js code, for the same content it returns null:
var str = `<video width=\"320\" controls>\r\n <sour... | {
"language": "fa",
"url": "https://stackoverflow.com/questions/75604300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Power Bi - Color a scatter chart by date sclicer I have a table with some desks info like: coordinates and id, and another table with info about book date. So what I want to do is that to make makers from scatter chart red if it's ocupied or green if it's free and I need to use a date slicer with between type.
I tri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to extract and return data from multiple tables via foreign keys with django rest? I have the following models:
class Stock(models.Model):
bar_id = models.ForeignKey(Bar, on_delete=models.CASCADE, related_name="bars")
stock = models.IntegerField()
class Bar(models.Model):
name = models.CharField... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Thingsboard could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet We have updated the thingsboard version from version 3.1.1 to 3.2.0. But we are now facing with one exception
could not extract ResultSet; SQL [n/a]; nested exception is or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generate documentation for python functions in a jupyter notebook using docstrings There is a Jupyter Notebook with multiple python functions with docstrings. Is there a way to generate documentation for those functions without converting the notebook into a Python script?
Usually, documentation can be created for f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reactjs SyntaxError: Unexpected token '...'. Expected a property name. in Safari I am encountering an error in older version of safari. I am using react v16.2.0 and I am viewing our web app in Safari using iPhone5SE v11.1.2
Please see attached screenshot on the link
Safari Error Screenshot
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75604320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Timer for getting input in TASM 8086 I need to make a played in turns game for 2 players. Each player should have a timer for each turn that allows them to play (press a key) in the time provided (let's say for instance 20 seconds, it can be whatever). How can I make it so that the int116h(ah=1) lasts the time i wan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding .wmf pictures into word does anyone know how to write .wmf formated images into word using a python script ?
(they have to stay in the .wmf format)
I tried using the docx library
doc = docx.Document()
images = os.listdir(ImageDir)
doc.add_heading(ParentFile, 1)
if len(images) == len(NamesLis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I include a Nuxt 3 component dynamically using a variable? In Nuxt 2, I have components defined dynamically from the data in use:
<component :is="item.contentType" :entry="item" />
It seems that in Nuxt 3, dynamic components can only be used with a string, rather than a variable:
<script setup>
const string... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can you plot decimal values on an axis, but have the label show the hexadecimal equivalent in matplotlib? I have some data in a csv file with two columns: clock cycles in a microprocessor (displayed in decimal), and a 32-bit register 0 to 4000 (also displayed in decimal).
Everything works perfectly however I would l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to append a `QVariantList` as a self-contained entity to another `QVariantList` in Qt 6? As of Qt 6.0, QList has gained a new overloaded method void QList::append(QList<T> &&value). As the documentation says, this "Moves the items of the value list to the end of this list.".
So how do I append a QVariantList to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Writing a more efficient version of Data.Map.findWithDefault Data.Map.findWithDefault is implemented like this:
findWithDefault :: Ord k => a -> k -> Map k a -> a
findWithDefault def k m = case lookup k m of
Nothing -> def
Just x -> x
This is incredibly stupid as the Maybe type is not used.
I'd like to wri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I make my Avatar element inside the paper responsive? So I have a material UI project where I am displaying some text and an avatar on a paper element inside a grid. The grid is responsive but the card avatar doesnt. Whenever I try to resize, It just gets in the way.
Full screen
When resized
This is my grid e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AWS S3 policy size limit I have a long and still growing policy within one of my S3 buckets. I want to check the total length to see, if the policy may hit the 20KB hard limit of AWS anytime soon.
I did following in my js console:
policy = <text copied from s3 bucket policy>
JSON.stringify(policy).length
> 28941
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Entity Framework Core 6 how to use Find() method with part of the composite key? I see that Find method in EF requires the arguments to be in the same order as in the HasKey method.
However, what if I have a composite key let's say ColA ColB ColC. But I only want to find the entities where ColA=5 and ColC=6 - wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AWS ECS: Networking between container Nginx and PHP-FPM on the same host Disclaimer: I'm not sure if this belongs here or on stack exchange, because I've seen questions like this on both.
So I have spent the past two weeks learning about ECS and trying to setup a very basic task with an nginx container and and a PHP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dialogflow ES Bad update mask fields I am encountering an error while trying to update the text_to_speech_settings.enable_text_to_speech parameter using the Dialogflow API. The error message I'm getting is "Bad update mask fields: [text_to_speech_settings.enable_text_to_speech]".
Here are some additional details abo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to build tabs inside a ContentPage in Xamarin I have a requirement to build a page presented in a picture.
Please let me know is it possible to put tabs inside a ContentPage because I could't find any solutions online.
Any hint is appreciated :)
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75604352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to install zip extension in php 8.1 in Cyberpanel In vps server Php 8.1 has no zip extension installed.
anyone help me to solve the problem.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75604360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Azure cognitive search Index query for Collection(Edm.ComplexType) with a filter on Edm.int64 field is not working I have Index with below fields:
{
"name": "my-docs-index",
"fields": [
{
"name": "id",
"type": "Edm.String",
"searchable": true,
"filterable": true,
"retrieva... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cant Compile KivyMD to APK I am Trying to Compile an Kivy to an APK i am using Xubuntu and Buildozer i would be thankfull if someone could explain this error Message to me.
COMMAND:
cd /home/denis/KivyMD/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/myapp && /home/denis/KivyMD/.buildozer/android/plat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pyspark driver error while reading Excel files I am reading excel files using pyspark.All the dataframes are stored inside a list. while merging all the data frames I am getting out of memory error. The code looks below.
def union_spark_dfs(*dfs):
return reduce(lambda df1, df2: df1.unionAll(df2), dfs)
def creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to hide a button immediately when location permission is denied in React I have a React application where I need to ask for the user's location permission and show a button to find the nearest clinic based on their current location. If the user denies the permission, I want the button to disappear immediately in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I'm getting java.security.InvalidKeyException I'm importing RSA key from a folder and using it to generate signature.
but its giving me following error.
Exception in thread "main" java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: IOException : algid parse error, not a sequence
followin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error LNK2001 unresolved external symbol __imp_DeleteObject I am getting the following error while building a dll with MFC statically linked. There is no much information about this function available. Can anyone please tell me know what library i have to include to get rid of this error?
Error LNK2001 unresolved e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: doCallRealMethod not working for object autowired inside abstract class I am trying to write test bases for child class which has a super class. I have tried below approach but flow is not going inside enrichEvent method.
public abstract class StudentProcessor implements IStudentProcessor<Event> {
@Autowired priva... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which encoding should I use if I want to avoid the presence of certain ascii delimiters with low cost, and can be partially done? I am writing a chat server using rust tokio-util Framed, each message between clients and server is in the form of below.
command#arg1,arg2,arg3|content$
Without any encoding, message ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to formulate as a concept that elements of a boost::hana::Sequence all satisfy a concept? Assume I have the following concept:
#include <boost/hana.hpp>
#include <iostream>
namespace hana = boost::hana;
// this is only for consistency
template <typename S> concept hana_sequence = hana::Sequence<S>::value;
t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: warnings when dealing with format specifier %llu Just a new programmer here.
I was experimenting with size_t and sizeof, specifically using them to find the size of an array, cause I was trying to make an array with the number of indexes be changeable.
Code:
int main() {
int index = 0;
printf("Enter size o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "type -t commandName" not works in zsh, but works in bash error log:
type: bad option: -t
why would zsh not use the same "type" of bash?
how can I achieve same function of "type -t commandName" of bash in zsh?
I can neither found the type's manual or help in Zsh.
A: The Zsh rough equivalent is whence -w commandName... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating an async function with node-schedule I'm creating an async function with custom time using node-schedule and store it in the db. The issue I'm getting is the function is triggered as soon as the job is created; not at the scheduled time(jobTime) the job is supposed to trigger
// jobId and jobTime are custom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Babel loader issue "You may need an additional loader to handle the result of these loaders" `/@react-spring/web/dist/` I am currently forking uniswap for a testnet not a live application
I have tied in the testnet and deployed the contracts. Before doing this I was able to get it into a docker container.
After doin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wait until a value in a map becomes available in Go I have a program where I basically have three scenarios - set value for a key, get value if it's there, or wait until the value for a given key becomes available. My original idea - create a new type with a map[string]interface{} - where "persisted" values are stor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Polars-python replace string in multiple columns getting the following error "with_columns() takes from 1 to 2 positional arguments but 4 were given". When I replace string with just one column it works, however want to replace multiple strings.
simplified example of want I want to do
import polars as pl
df = pl.Da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Actix hosted React App 400 on Javascript file I get a 400 Bad Request in the Chrome Browser when the JavaScript file should be downloaded from the web server.
The actix web server is configured like this
App::new().service(fs::Files::new
("/podcasts", "podcasts").show_files_listing())
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error Messages Generated When Destroying Old Window and Creating a new Window in Custom Tkinter Code successfully generates 'my_main' window with 2 buttons - 'Single' and 'Multiple'
Code successfully destroys 'my_main' when I click 'Multiple' button.
Code unsuccessful in creating 'my_multi' new window and generates ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to mock object creation inside a class in MockK using Kotlin? I have an aws lambda function as below:
class FooHandler: RequestHandler<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent> {
private val lambdaClient = LambdaClient.create()
private val logger = LogManager.getLogger(C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to connect spring cloud config server to Bitbucket using SSH keys? I am trying to create a spring cloud config server to connect to git repository(bitbucket) using an SSH URI. I am following Spring Cloud Config.
I generated key pair using the command
ssh-keygen -m PEM -t rsa -b 4096 -C "sweta"
pasted the .pub f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use dynamic value of @PreAuthorize with @ExceptionHandler in spring boot? We are using @PreAuthorize with dynamic value. and at the request model we used bean validation means @NotEmpty,...
Code of controller:
@RestController
@RequestMapping(value = "/../{id}/...")
@PreAuthorize("hasAuthority(#id+'abc')")
pub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I convert parsed SqlNodes directly to RelNodes without validation? I am using Apache Calcite to develop my software.My target is to simply provide an SQL string to Calcite and mainly using its optimizer to optimize it and output a optimized SQL string, which means that i don't have concrete tables or fields.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In pine, is it possible to just take a window of N candles to perform something? Specifically, let's suppose i want the moving average to be applied only for the last N candles( 5 for example) and plot it,is there a way to do it?
I'm a rookie with this code so need help!
A: That's what the length parameter is for.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to add and center an icon in a button? Im having issues while trying to center my icon on the button, here is the code and the print
edit: here the html code too
obs: this .btn code is just me trying to center the button, without succes,
<button class="btn">
<i class="gg-format-justify"> </i>
</button>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Inline call in asp.net page is not executed I'm experiencing a problem in a asp.net page (C# backend).
What I simply needed was to embed Google Map Api Key into some pages.
I would like to use a value defined inside web.config instead hardcoding api key value inside each single page.
I tried with this code (aspx):
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Create macos applications using the go wails framework. No permission to create a tun NIC Create macOS applications using the go wails framework. No permission to create a tun NIC
log:
2023/03/01 21:20:31 failed to create tun interface: error in syscall.RawSyscall(syscall.SYS_CONNECT, ...): operation not permitted
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Angular - Cannot find module 'ngx-pagination' or its corresponding type declarations In my Angular-15 project, I am implementing ngx-pagination.
So, since I'm making use of ngx-bootstrap itself, I did:
npm install ngx-bootstrap --save
Then in my AppModule, I did:
import { PaginationModule } from 'ngx-bootstrap/pagi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tensorflow model memory usage keeps increasing I have a python program that runs several processes, each of which loads a tensorflow model and then runs in a loop performing some operations.
Each iteration of the loop is independent, but the model stays loaded.
I see that the memory usage keeps increasing with each ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does my custom claim not show up as a claim after being added? In a Blazor Server app, I add a claim through a Hook in OpenIdConnect like this:
builder.Services.Configure<MicrosoftIdentityOptions>(
options =>
{
options. Events = new OpenIdConnectEvents
{
OnTokenValidated = async (ctx) =>
{
Aut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .html not mapping to request mapping I did a spring version upgrade from 4.0.9 to 5.3.20
In the previous version c/getData and c/getData.html would both work but now the later version doesn’t work and gives error org.springframework.web.servlet.PageNotFound.noHaldlerFound no mapping for get c/getData.html
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75604431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: sql server DB connection with Asp.net c# im learning asp.net and i wanted to test my sql server data base connection but when i click the button the browser keeps loading for long without moving to webform1.aspx ?
the browser
[the query](https://i.stack.imgur.com/WSjJ6.png)
the webform that should be showing
(http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why SingleFlatMapCallback resubscribes on success? I'm handling a code like this:
fun getListOfThings(limit: Int, offset: Int): Single<List<Thing>> {
return Single.defer {
singleApi.flatMap {
api.getThings(limit, offset)
.singleOrError()
}
}
}
In that sample snippet, singleApi is a Single wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Colorbar changes on export in Plotly I'm trying to do a 3d cone plot in plotly with a custom colorscale that only changes in the opacity of the color I'm using. In the preview window everything seems fine:
But when I'm exporting the image using the snapshot icon, the colorbar becomes monochrome:
Here's my code:
im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python (using SciPy) is unable to solve for a variable in an equation I am having a problem solving for the variable x_Prime using the scipy.optimize.fsolve() function. Below is what I have:
import math
import scipy.optimize as so
c_val = 100
f_NFW_val = math.log(1+c_val)-c_val/(1+c_val)
psi_prime = 3.060842139960... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Return upper left value in a range if string is found - Google Sheets I have a Google sheet that has 'categories' listed in one cell. Then the data for that category is listed in multiple cells to the right of the category. For example see the image:
example spreadsheet
I need a formula that searches for a name in B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ElasticSearch Doesnt See Each Others Hey i know this is a very comman issue so i check if it is a network related but it is not,
Here is my config file, i used ansible for instalation, the all files are in https://github.com/tryingtobecoder58/es-ansible-installation
cluster.name: my-es-cluster
node.name: {{ node_nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: These errors occurred while installing Visual Studio Enterprise 2022 17.5.1 [enter image description here](https://i.stack.imgur.com/fy6hM.png)
I get the errors in the screenshots
I tried uninstalling and reinstalling Visual Studio. Problem not solved.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75604439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to "extend" a message with a new (timestamp) field? A bit of background first:
A project I'm working on streams data from a source and to a destination. A single piece of data read from a source and sent downstream is called a record. A source can be an SQL database, a blob storage etc.
Under the hood, records a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Caused by: java.lang.NoClassDefFoundError: jakarta/servlet/jsp/JspFactory I am trying to deploy a web app on Tomcat and I have done all I could to make the dependencies correct to make it work but Tomcat keeps giving me Caused by: java.lang.ClassNotFoundException: jakarta.servlet.jsp.JspFactory
Technologies stack : ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75604443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |