text string | meta dict |
|---|---|
Q: Download issues when trying to use My.Computer.Network.DownloadFile in VB.NET I have a lot of issues with My.Computer.Network.DownloadFile command. I want my application to download a file from internet. First, I tried to upload the file to dropbox and I copied the link. My application should download that file, but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: New to C programming, need guidance I have an assignment where I must calculate the load on a cantilever beam at 1 ft increments until it reaches 2% of the beam length. My calculations work, and the first portion of the for loop seems to do what it is designed to do. I just can't figure out how to increment the dist... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Get angles for clock hands I know that I can use getHours() and getMinutes() and getSecond() in JavaScript and show the exact time of my computer, but how should I sync that with the shape of the clock?
const activeb = document.querySelector(".run")
const mysec = document.querySelector(".second")
const mymin = doc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Alignment Of Cells ar not the same I have this code in FormLoad event -
DataGridView1.Columns("Note").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleLeft
I want this column only with alignment MiddleLeft....
As you can see, only the first row is OK. What should I do ?
A: *
*Make sure the DataGri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to remove endarrow on mxgraph? I want to remove andarrow on edge and join the line
I want to remove endarrow on edge on mxgraph.
How can I do as below?
orijinal is here
I want to like this
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75638612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: PHPickerViewController: hide "Select items" section Is it possible to hide "Select items" section at the bottom? It looks like it's useless in most of user scenarios.
Any tricks like method swizzling?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75638614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to create a solid background color? How to create this kind of background color?
website portfolio from Brittany Chiang
website portfolio from Jonathan
User-friendly, solid and professional? When I choose any color for my background, looks like old sites like at the beginning of the 2000s.
A:
I just ran this t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How to post/save models without including navigation properties I am trying to post a model to an API controller action to save a new "PotluckItem", which has a parent of "Potluck" and a child of "Item". The relevant portions of the relevant entity models are below:
public class Potluck
{
[Key]
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: pandas exception keeps throwing errors when using googletrans for translating text using data frame I am doing a googletrans excercise for scraping website and need to translate english language courses title to be in Hindi. Somehow my pandas library keeps throwing an exception and dont know how fix this issue been ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: passing object to Route in react i try to pass object in rount in react
i have this code which rount to new componenet , i like to pass the all user details to this
componenet .
//this is the route , how can i pass the "elm" object to TodoComponent
<Route path="/todo/:id" element={
<AuthenticatedRoute>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Building a parser in Racket I am new to Racket and I am trying to parse a grammar using the Beautiful Racket library. I have defined the grammar in a separate file and it seems to be completely fine. My tokenization is also working, I've printed the output to confirm everything is getting tokenized. I'm creating a p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Memory Leak After Upgrading Ads Library For Android I have upgraded the ads library to the following today:
implementation 'com.google.android.gms:play-services-ads:21.5.0'
I'm using banners and Interstitial Ads.
Now, I'm getting the following memory leak as detected by Leak Canary.
I'm destroying the activity alon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: passing format string to scanf as an command line argument vs hardcoding it I have following code:
#include <stdio.h>
int main()
{
int i;
char c;
char *format_string = "%d\n";
scanf(format_string, &i);
printf("read: %d\n", i);
printf("Let's check what is in the input buffer:\n");
while (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Custom JsonConverter attribute for single field not working for .NET 6.0 I had the following converter to serialize the date with a custom format and it was working for .NET Core 3.1:
public class CustomDateConverter : IsoDateTimeConverter {
public CustomDateConverter() {
base.DateTimeFormat = "dd.MM.yyy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Clarification on the ephemeral port range in NNG At https://nng.nanomsg.org/man/tip/nng_sockaddr_zt.5.html, the explanation of the sa_port argument reads:
This field holds the port number used by the zt transport to distinguish different sockets. This value in native byte order. A zero value here indicates that a p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to connect to same instance of chromium using Playwright Dotnet from different processes I use Playwright DotNet in order to enable SEO for my SPA react application. I have several websites on the same server and I would like all of them to maintain connection (being attached) to the same browser instance in the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to set val auto with same val other input <input id ="game" val="<?php include "is_game"?>
<input id ="name_game" val="">
string is_game = beyonce, rakgnarok, valkryie'
<?php include "is_game"?> its a refresh changes
if id (#game).val = "valkryie" {
id(#name_game).val = "VALK"
}
if id (#game).val = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: React app with Vite working locally but not after build I'm working on a React-Typescript-Vite project that I want to deploy to Firebase hosting. The app is running fine locally (with npm run dev), but I'm having issues with prod. My app basically has a name of a store as the first url subdirectory then another subd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to move the first letters in a word forward by a certain amount, Java I'm new to coding, and need some help completing an assignment. It specifies that we need to take strings from a file, and shift the letters forward a certain amount. This is the part I'm struggling with:
If a word has n letters, where n is an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: fastify connect stylesheet ejs How can I include static files in FASTIFY?
For example, in express I do this:
app.use(express.static(path.join(__dirname, "/static")));
fastify:
fastify.register(require("@fastify/view"), {
engine: {
ejs: require("ejs"),
},
root: path.join(__dirname, "pages"),
});
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: html anchor tag is downloading pdf file as .html instead of .pdf Hello I'm trying to do a button in my portfolio website where the user can download my resume in pdf format when they click it but for some reason the file is being downloaded in html format instead of pdf.
This is the code that I have
<a href="../asse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: in radio form using css input[type="radio"] checked not working I created a mood barometer with a radio form and want to keep only img as a selector. When I hover and press the image I want to keep it bigger when selected. With hover it works but when pressed doesn't keep its size.
I've tried with input[type="radio"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Graph API - Get count for Mailfolder Sent Items I was able to get the count number of emails from Inbox with this request https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages?$filter=ReceivedDateTime ge 2017-04-01 and receivedDateTime lt 2017-05-01 & count=true, but i also want to get the same result from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I have a tree where each node lists its ancestors instead of its descendants. Will the node with the most ancestors always be the lowest node? I have a problem where I need to confirm that a node is at the lowest level of a tree. Each node in the tree lists its ancestors. Rather than doing a BFS, it seems to me th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VSCode (Code Helper) JS CPU usage spikes whenever I make any edit in editor (M2 MacBook Air 16GB, VSCode 1.76.0, macOS 13.2.1)
I'm working in a NextJS project in VSCode, and have been experiencing annoying and disruptive issues all of the time, when the JS/TS Language Features extension is enabled.
With this issue, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I replace funtion each() for PHP 8.1? PART 1
I have the next mistake on the line 3:
WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
I tried to replace this line with:
foreach ( $this->init_activity as $activity ) {
and the mistake disappeared.
protected function callActiviti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I programatically select a tree item in a VS Code tree view given its label? I followed the example provided here to create a basic VS Code tree view.
I am now looking for how to to select (or unselect) an item in a tree view given its label.
I searched a lot but couldn't find any (simple) example.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75638670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DAX: Average of same months across multiple years I am attempting to create something similar to a rolling average in power BI, however this calculation averages for a rolling period (say 5 years) using only a single month at a time.
I have sum total figures for 12 months for each year for 5 years in a table with th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: the bar chart of power bi doesn't apear the data I have created a column to estimate a rate by country but the diagramm appears only three countries with same rate which obviously is mistaken . Which is the mistake?
enter image description here
enter image description here
A: I'm guessing you have a divide by zero ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there an easy way to comment out / silence a code cell in Python/Colab? enter image description here
I am wondering if there is an easier way to do exactly this. I often have code that is theoretically useful for later if I run into a problem, but currently do not want it to run. Is there something I can type at ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL hackerrank weird output I have a problem with making multiple queries on hackerrank using mysql as when i provide it with the following queries:
SELECT CONCAT(Name,'(',LEFT(OCCUPATION,1),')')
FROM OCCUPATIONS
ORDER BY Name;
SELECT CONCAT('There are a total of ',COUNT(Occupation),' ',LOWER(Occupation),'s.')
FROM ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is Gatsby not loading '' component? Trying to map an array of objects as component, inside component but the console.log within never logs as well as the JSX? I am new to Gatsby and trying to understand it better, code I have is below. It is no longer producing any errors on load; previous errors was mostly a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python program for download google map / earth pictures Is there any python command (or python library command) for download a google maps or google earth pictures of specific :
+ location (lat. & long.)
+ Heading (bearing or azimuth)
+ Height (altitude)
For example something like this :
Googlemap.get(lat,long,hea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Can't bind Blob to type 'Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer' I am a beginner on Azure, and I am developing a function application that allows me to store photos. I am using Linux and VS Code, and below is my code:
The code for my function application :
public static class PhotosStorage
{
[Fun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change the clicked image only when images are rendering inside a map function {compArr.map((comp, compIndex) => {
const compId = comp-${compIndex};
const levelOneId = levelOne-${compIndex} - ${comp} ;
const levelTwoId = levelTwo-${compIndex} - ${comp} ;
const levelThreeId = levelThree-${compIndex} - ${comp} ;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: translateX element when another element is on hover I'm trying to make a swiper slider using CSS and this what I got so far
HTML
<section id="lakeSlider" class="carousel vcenter-item py-5">
<div>
<div class="carousel__container">
<div class="carousel-item carousel-index1">
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Angular - PageSizeOnChange not working in ngx-pagination In Angular-14, I am implementing ngx-pagination with server side pagination in ASP.NET Core-6 Web API. I have this code:
JSON Response:
{
"data": {
"pageItems": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"userId": "string",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to define an auto height into a var I'm trying to put my footer under the section div, the section's height is auto so i can't define a top.
I'm trying to define the height using this script:
function footer()
{
var h = parseFloat(document.getElementById("sect").style.height);
document.getElementById("foot")... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Where clause performance constant vs variable I have a table function as show below. When I call the function with a literal it completes in 3 seconds on my dataset. So the following completes in 3 seconds:
Select *
from getActiveConcessionsForShipment(12)
If I use a variable, on the other hand, the function ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't disable discord buttons after they are used I'm trying to have discord disable buttons once they are used twice but when I try to disable the buttons i get a type error in the console saying TypeError: Cannot read properties of undefined (reading 'setDisabled'). I've been trying to fix it for 2 hours I did try... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++ vs Python | Read Memory Have working code in C++ and would like to get equivalent results with Python.
The idea is to retrieve data from memory using a specific process and a pointer. The result should look like this as it works in C++:
Here is the C++ code:
hProcess = SOME_HANDLER
addr = SOME_POINTER
SIZE_T by... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: bokeh.plotting.gmap.image - what should I put as first argument of this method? I want to draw my own image instead of the circle on the map. Method circle works perfectly, however I have problem with method image. I do not know what should I put as first argument. According (https://docs.bokeh.org/en/2.3.3/docs/ref... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is this a gdb bug? I was playing around with a simple program (see below) and I came across behavior that did not seem correct. I ran the program with gdb as shown below, and it does not seem to read the passed arguments to func correctly, for instance it says b=21845, and even says . Is there an explanation for thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Entity Framework Core 7 - composite key mapping problem I am struggling to create the necessary attributes and code to allow me to retrieve all information from 3 tables I have.
The tables are:
Recipe table:
Column
Type
RecipeId
int (Key)
Title
varchar
Ingredients table:
Column
Type
IngredientI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When does the getTransportDetails operation return the CarrierName? Amazon SP-API, FulfillmentInbound The Amazon MWS API used to return a carrier name after some time, during the cost estimation process. With the Amazon Selling Partner API, I've waited for over 2 hours, and although the report says that the cost has... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: nextauth.js credentials provider: unable to return user or error message I am using next-auth.js version 4.19.2 with the "credentials" (db) provider and some custom sign-in, signout pages. I seem unable to return what it expects from the authorize() handler. I would like to return the authenticated user or an error ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Displaying array data in table with react Hello I am trying to display some data in a table using React.JS and Im having trouble understanding how to get it all to work. I can get the data to display using just a p tag but thats not what I want. I'm not sure where to go here since I am still reactjs is still new to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VS2022 Temp Folders from %LOCALAPPDATA%\Temp: Is it safe to delete them? I am new (I'd say) to Visual Studio. I installed it about ~a month ago. Although, while using Visual Studio, I see a huge problem. As I open %TEMP% folder (user temp directory), I see a ton of folders with absolutely random names. Some of them ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Express POST endpoint waiting for another one to respond I have the following code:
app.post(dispatchOrderPath, async (deliveryRequest: any, deliveryRes: any) => {
try{
const order: Order = deliveryRequest.body;
console.log(order);
await initConnection(order);
const internalEndpoint = '/internalServ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding Shadow to Curved AppBar I have a curved AppBar using the following code.
I want to add a shadow right beneath the curve.
Any help would be much appreciated!
image of curved AppBar
Code:
appBar: PreferredSize(
preferredSize: const Size.fromHeight(85.0),
child: AppBar(
title: const Tex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get the detailed page by slug and not id in Django Rest Framework class based views I am building an API using Django Rest Framework. I have the /api/localities endpoint where all of the objects on my database are displayed.
Now I want to create the endpoint for a single page of a particular locality, and I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Django: NOT NULL constraint failed: payments_orderdetail.stripe_payment_intent I am trying to integrate stripe into my django application, i have followed the documentation and some articles, but when i hit the checkout button i get this error that says NOT NULL constraint failed: payments_orderdetail.stripe_payment... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django installed_apps is not working for me I have problem with this code. I cant do python manage.py runserver
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75638739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why SHAP values are the same every time, if kernel SHAP is based on random sample? I am learning SHAP, and have this quick question. If kernel SHAP values are estimated by randomly sampling feature values, why every time I received exactly the same SHAP values for the same model?
Any comments are very well appreciat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python use instance of class in a function in another file I have three files, app.py, server.py and tools.py
the files are quite big in total, so i'll just show excerpts
server.py is basically just flask
app.py looks about like this
from server import Server
from tools import Tools
if __name__ == "__main__":
w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Aligning CSS background-image with offsetted image center axis I'd like to align image files (as .png) with an offsetted image center axis using CSS's background-*-properties.
Imagine having the following document:
<div class="my-icon" data-category="1">abc</div>
<div class="my-icon" data-category="2">def</div>
<div... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fody: Copy an attribute from one property to another I iterate through all classes, then all properties, then their attributes. When I see an attribute MetaAttribute(typeof(SomethingElse)) I find a property named Target on that class and copy all of its properties across to the current property on the class in the m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: no response from the websocket in CMD I am trying to set up the web socket on my local WAMP server, I have followed several docs, and I am at this point. I first installed composer to then install Ratchet for the PHP, then I created 2 PHP documents:
server.php :
<?php
require 'Chat.php';
use Ratchet\Server\IoServer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Collide function only works on first two rectangles Pygame I have generated some rectangles using a while loop in pygame and the collision with the player and the rectangle only works on the first two rectangles. The rest don't work.
CircleR = 15
player = pygame.draw.circle(screen, yellow,(x,y),CircleR)
#While l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: no routes matched location using react router v6 Okay so I'm trying to build an app which consists of 2 pages, home page and a designer page. The app takes a user input value which would be a certain (url) and on clicking the navigate button in the home page, it should redirects the user from the home page to the de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why do i get redirected to "#blocked" in expressjs? I am trying to make a food page and I replaced the values and form actions(they get replaced with "foodidcomeshere0,1,2,3") but when I clicked the buttons(form's submit button) I get redirected to "#blocked".Why do I get redirected to "#blocked" and how can I solve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Joining 2 data frames with all the same columns In pandas/jupyter notebook with python:
I have a dataframe (df1) with information about the amount of crime per year where each row is a summation of the total amount of crime in that country-year unit. However, df1 does not have rows which contain "0 crime" for the ye... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tailwind CSS Flex causing icons to shrink Writing the Sidebar UI to align with the main logo - the icons have shrunk too much when each element has flex
Tried double checking code and taking on and off flex, checked for typos
UI now
Code below
const Icon = ({ styles, name, imgUrl, isActive, disabled, handleClick }) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mapping of theoretical consistency models to C++ memory ordering models Wikipedia page for Consistency models list four consistency models for shared memory architecture as which require specific explicit synchronization by the programmers (in order from strongest to weakest):
*
*Weak ordering:
Classifies memory o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: issues when connecting embedded device to the internet through local network and Virtual Box This is my setup.
connection illustration
I am connecting a Debian 11 on a Beagle Bone Black to Ubuntu22.04 on VirtualBox through ethernet cable. They form a local network with a static IP address configured and they can pin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do i insert a Point / MultiPolygon in postgres ( using postgis ) with Spring data JPA? I created a map using leaflet and i'm trying to send point / multipolygon drawns to my postgres database using spring data JPA. The server initially receives a string geoJSON ( converted to org.locationtech.jts.geom.MultiPolyg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TypeScript issue with framer-motion 9+ and When building a Next app using framer-motion 9.1.7 and 10.0, I get the following error:
./node_modules/framer-motion/dist/index.d.ts:1212:28
Type error: ';' expected.
1210 | declare type HydratedFeatureDefinition = {
1211 | isEnabled: (props: MotionProps) => boolea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python client receiving data from NI DataSocketServer URL I'm searching for a possibility to receive data (strings or numbers) from specific DataSocketServer URL with a simple python client.Connecting to DSS is possible with python socket library.
Example:
LabView program writes data to DataSocketServer URL dstp://l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How can I split vuejs library from the main app bundle? How do I split vuejs library from my main vue component when I bundle the file with webpack?
I want something like this in the end:
Build
- Pages
---- PageContact
------ bundle.js (this file would have only my main component and other components, so no vue libr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to place tick label above grid line in matplotlib I wanted to place my tick labels just on top of the grid lines of my graph like it shows in the image below.
I tried setting the direction to 'in' and the pad to -22 in tick_params but I don't know how to move the labels slightly up to achieve what I want.
My c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: [Nothing works!!! Support for the experimental syntax 'jsx' isn't currently enabled [URGENT] Help please, I just can't get by this error and nothing on stackoverflow seems to work. I've added @babel/preset-env, @babel/preset-react to both my .babelrc and babel.config.json files, used babel-runtime, I can't even reca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How useCallback in React optimizes performance? The React docs claims that "useCallback is a React Hook that lets you cache a function definition between re-renders."
How is it possible to cache function definitions? This example is taken from React docs:
import { useCallback } from 'react';
export default function... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How does this implementation of negative log-likelihood quantify uncertainty? What is this function doing and how does it quantify uncertainty? I find negative log-likelihood quite difficult to understand in general.
def nll_gaussian(
y_pred: np.ndarray,
y_std: np.ndarray,
y_true: np.ndarray,
scaled:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to get also 0 from the string (Regular expression) how to get also 0 from this string, this is how I try,/thanks
[^\s\/][\w\s]+[^\s\/]
....text..text./..text.text.text...../.0....... (dots = spaces)
https://regex101.com/r/FeXsEH/1
i need array, without '/' and ' all spaces':
text text
text text text
0
A: This... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you close/stop tab in vimscript? I use a command in a function like the one below:
execute "normal! i\begin\r\<tab>somethinghere\r\\end"
and I am expecting this result:
\begin
somethinghere
\end
But instead I get:
\begin
somethinghere
\end
How do I "stop" the tab?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75638783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows command prompt in Python I have the following code which captures traffic packets, write them into a traffic.pcap file, then convert the pcap to text file using the tshark. If I enter the full path and name of the files in the last line, the code works perfectly, however it is always overwriting the files, s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Snake Game in C Graphics isn't working as it should I'm building the classic snake game using c graphics.
There is no errors in my code, however, the game isn't working as it should.
here are the problems I found:
*
*The game doesn't end until the snake touch halfway threw the border, and sometimes it doesn't even... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-7"
} |
Q: Stuck in a redirection loop I got a web hosting service which got a text file name Redirect.txt, what Im trying to do is do a check every 5 seconds using intrevals, so basically every 5 seconds im sending a fetch request to a text file and if the content is not equal to # ill redirect the user to the content of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pydub can't find file Am using OpenAI's API to do a transcription of a very long video (2 hrs long), as suggested by the documentation, am trying to split it in shorter sections using the Pydub library.
I do not know why I keep getting the "FileNotFoundError", I've tried from hardcoding the path to the audio file on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Kubernetes - connect to Azure SQL using Active Directory ID We have an AKS POD (.NET 6 application) which can successfully connect to an Azure SQL database with SQL Server auth - user and password.
However, when used with an Active Directory ID, it throws a remotecertificatename mismatch error. This AKS cluster has ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I run into a discord.gateway warning "Shard ID None heartbeat blocked for more than x seconds." my simple bot checks of it got a .json file from an API, if it did, then the bot outputs some info and then deletes that .json file. But if it did not, then it checks again until there is a .json file in that directory.
B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: QtAndroid: Grant Usb Permission in Android with Qt6 in android programming you need to get usb permission before working with connected device to client device.
i am trying to connect a hack-rf to android device and use it... but first of all i need to get usb permission and detect that hackrf.
setup:
1- qt6.3.0
2- ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails Git post-receive hooks doesn't start Puma I have two almost identical post-hooks script that behaves differently. This is the one that doesn't work, Rails 7 API-only, Debian 11:
#!/bin/bash
GIT_DIR=/home/deploy/api.mydomain.com
WORK_TREE=/home/deploy/apps/api.mydomain.com
. ~/.profile
while read oldrev newr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: google cloud. upsert large csv file by chunks start to take a lot longer than expected I have a large csv files of prices that I want to upsert to a postgres table. I am reading it with pandas by chunks then uploading it into a temp table, then copy the temp table into the prices table and finally dropping the temp ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fixing the seed in QuantLib UniformRandomGenerator() I am simulating paths of the Hull-White One Factor process using the following code and I am wondering how I can fix the seed of the UniformRandomGenerator(). I have tried writing UniformRandomGenerator(seed=0), but it keeps returning variable paths.
import QuantL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove enclosing square brackets in an awk string How can I remove enclosing square brackets in an awk string?
For instance, I would have a variable dgt with value [[:digit:]] and want to remove the outer enclosing square brackets.
Currently my solution is very naive.
retval = substr(dgt, 2, length(dgt)-2)
A: Usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Gtk3 Invalid cast from 'GtkHeaderBar' to 'GtkMenuShell' I recently upgraded from debian 11 bullseye to debian 12 bookworm and noticed that
gtk was upgraded from 3.24.24-4 to 3.24.36-4
and
glib was upgraded from 2.66.8-1 to 2.74.5-1.
I have a Gtk3 application which was working fine on debian 11, but now throws severa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using sharp with formidable I try to use sharp with formidable in order to resize my image and change the format but it does not work as expected.
The ceeated file is not with the correct format and the correct extension.
My code :
form.on('fileBegin', function(name, file) {
if (file.name !== '') {
var ext = f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In VS Code, is there a way to auto create JS/CSS files and/or directories when adding HTML link/script tags if the files don't exist yet? I understand the standard workflow is to create your directories and files first, but sometimes I want to add additional styling/scripting files without switching to the sidebar o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Docker desktop container config Using Docker Desktop(dd) with Redis it gives the port 32768:6379 making it impossible to access from local command prompt. How can I configure Docker Desktop to effectively run docker run -d -p 6379 :6379 redis --port 6379 thereby expecting to access the container from localhost? Do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cloud shell refers to an incorrect organization ID I am able to create a new project with the same user account, but I cannot seem to do this from cloud shell.
I get the following error:
failed: 7: Permission 'resourcemanager.projects.create' denied on parent resource 'organizations/{someId}'.
The problem is I have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to render a response from Onsnapshot in React I am trying to render the answer I receive from an Onsnapshot in Firebase. The problem is that I do not know how to assign the value I receive to a variable, since it is what I need to be able to render it in React.
const unsub = onSnapshot(doc(db, "incrementCounter"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: React Site wont render as soon as button is added around I am trying to make a dynamic and good looking picture gallery but i am having a problem. Since i want the images to be clickable (so i can expand them) i need to wrap a button around the images. For some reason this is crashing react. I tried around 5 differ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding a simple image editor to add and manipulate emoticons in WPF I've been searching the net for a solution in WPF, but can't find anything. I am almost sure that there is a ready-made library that meets my requirements. I want to add a very simple image editor to my application, that allows me to overlay emotico... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Render innerHTML inside .html() Trying to Sanitize a text HTML and render it inside another html , this is what I tried,
$(document).ready(function(){
$("button").click(function(){
$("p").html(sanitizeHTML("Hello <b>world!</b>"));
});
});
function sanitizeHTML(str){
var temp = document.createElement('di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: STRING_SPLIT -Query is adding more lines rather then allocating serial number in sequence I am trying to split Serial No of a order item table , which has string separated values. I am able to separate the value but serial no allocation is not happening correctly, Its just showing additional rows.
Table has data lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Converting JSON to Pandas Dataframe Text Issue I am trying to load information from a HTTP request and store it as a JSON file:
here is how I am loading the data:
try:
response = requests.get(url)
except requests.exceptions.ConnectionError as e:
print("ConnectionError:", e)
try:
data = json.loads(respons... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: data not refatching after invalidate query in react0query i using react-query for fetching some data in my admin panel website. after mutation i am in onSuccess function invalidate query. this invalidate working currect bot cuery does not clear in ReactQueryDevtools and not refatching updated data.
this is my code
[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I add a detected object in cost map that generated from move_base package How can I add a detected object in cost map that generated from move_base package.
Car is detecting traffic light and road line in simulation but how can add this property in coast map because the car has to go from one point to anothe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get NGINX to redirect rather than append a redirected address? I'm trying to get webmail.example.com to redirect to www.example.com/mail
This is the conf file setting I have:
http {
include /etc/nginx/conf-enabled/*.conf;
include /etc/nginx/sites-enabled/*.conf;
server {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75638836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |