text string | meta dict |
|---|---|
Q: Why Codeigniter 4 giving error add ssl certificate in database encrypt in database.php? I am working in CI 4 version. It's working fine on local server but when i uploaded it on server then i am getting error add ssl certificate in database encrypt. I have added ssl in config/Database.php file and after adding it's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75627994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating new factor column based on page range I am looking for a smarter way to create a new factor column in an R data frame df.
I have a dataframe, to which I would like to add a new column, which tells me, which section the given record belongs to. Sections like this:
section_in_text <- factor(c('Introduction', ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75627995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reusing the xamarin forms renderer in .net maui I am working on migrating xamarin forms application to .net maui.
as part of migration i am working on reusing the xamarin forms renderers in .net maui with "Microsoft.Maui.Controls.Compatibility" package.
when i am registering the renderer in MauiProgram.cs using Conf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75627998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sort values stored as strings according to their real type on db side I have a legacy table(not db table) db structure
enter image description here
Hope this image helps understanding the idea
enter image description here
Each row has as many values as there are columns.
Value values are stored as strings and can co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Is there a macro to copy data from a master sheet to additional sheets based on the sheet name? I have a spreadsheet that has a master tab with sales data for all states. I subsequently have additional tabs that has the state abbreviation name. From the master tab, I need to copy all columns of the data from the m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Regexp three or four digits check for first number I have data numbers from, say, 101 to 1056. All starting with slash.
I want regexp checking if input suites conditions.
What I did is: /^\/[1-9]\d{2,3}$/
I assume that [101-1056] not the way it should be used? :-)
Is there a way to check if the number has four digit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to fix '[ERR_HTTP_HEADERS_SENT]' in defineNuxtRouteMiddleware? While I tried to redirect the url using middleware on the server-side,
export default defineNuxtRouteMiddleware((_, from) => {
const localeInUrl = from.path.split('/')[1]
const subPath = from.fullPath.replace(new RegExp(`/${localeInUrl}`, 'g'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to send a react app as response to http post request i am making a login page which on authentication will recieve another react app as response to http post request. How to render this new app and stop rendering my old app
import React , {Component} from "react";
class Login extends Component{
constructor(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Push different objects (object1, object2, and object3) to array using for loop in Javascript I'm currently working on a project that fetches data from an open-source API. My problem is, the API includes objects that needs to be put into an array. They are named: strIngredients1, strIngredients2, strIngredients3, so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: What's the proper way to update a child reference on a managed entity with ModelMapper? I'm using ModelMapper to map DTOs to database entities through a REST/API Spring micro service and running into an issue when updating the reference to a child entity. In my service implementation I first get the entity using JP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Konva/react-konva - restore canvas elements from JSON I am creating a React application that uses react-konva and Konva for a drawing board. Currently, when the user clicks on the Save button it takes a "screenshot" (using the toDataUrl) of the board. The problem with this is that I would like to restore the board i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Resampled data Does not show any value for target class after applying SMOTE I am a bie in ML and i am trying to implement SMOTE on the PIDD dataset for diabetes prediction.
from sklearn.model_selection import train_test_split
from imblearn.over_sampling import SMOTE
#os = SMOTE()
X = exTrans.drop(['Outcome'], axis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How do I know if my Stata file needs unicode translate? I suspect I do not quite grasp the difference between extended ASCII and unicode and what they mean to Stata, therefore I am not able to determine if I need to use unicode translate on my Stata files or not. The files contain a lot of text with Nordic character... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to trigger YAML file from previous stage using cache and trigger in gitlab-ci.yml I have two jobs where ine job creates YAML files in project respective folder and other job utilizes the cached YAML files and trigger the job. In the below scenario the child_pipeline is not triggering the YAML. Please advise ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to I remove part of the node name? I have the code presented below. The code itself works fine, but when the network plot is created, the label with the name of the nodes includes the ".txt" from the name of the files. Can I remove the ".txt" part in an easy way?
# Language analysis of consultations
library(tidy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server linked server Impersonate error I'm trying to configure LinkedServer to use Impersonate.
When I'm testing connection while I'm logged on SQLServer1 it passes.
When I'm testing it from my PC it returns Error:
"The test connection to the linked server failed.
Login failed for user 'NT AUTHORITY\ANONYMOUS LO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How can I configure Simple-keyboard in vue3 with custom layout and clearInput() New to Vue I am trying to make a simple game.
In my vue3 component in the template I use the component. And it works:)
<input
:value="input"
class="input"
@inp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CreateProcess error=193, %1 is not a valid Win32 application in maven I'm trying to run a bash script with maven-antrun-plugin:
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<phase>generate-resources</phase>
<configur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to use only 1 tag img in hbs to access different picture? I'm creating a detail display for the consumer, and I want them to select on an object to view more information like a photo and price, among other things. However, the image remains static. Is there any way for me to obtain a different image f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error when distributing Cloudera Parcel file for GCS connector When I try to distribute Parcel file, I get errors like below
Error when distributing to serverxxx.local [Errno 20] Not a directory u'opt/cloudera/parcels/GCSCONNECTOR-3.0.0xxx.sha/meta/parcel.json'
and
Error when distributing to serverxxx.local [Errno 2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how can I add a role to a guild member via Discord API (postman)? it seems to be unable trying to put a member role. My bot role is admin, my bot has admin priviledges (also intent added yesterday) and I can call all GET calls to see members and so on via PostMan. If I try PUT option to assign a user a role, I use s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Render Angular tags in injected HTML I have an Angular 15 application with a component, called FatherComponent, that receives via API a string of HTML that gets injected on its template using innerHTML:
<div [innerHTML]="htmlContent"></div>
My problem is that the received HTML content also has some Angular tags fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: python -m xxx script works in command line but not in .sh file? python -m webbrowser http://example.com/
This script works in command line. It opens the url with default browser.
I'm creating a makefile to run some docker commands and after the containers are up, open a list of urls.
dev:
docker compose up -d
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to compare data with data approximately one month before? I have a table which contains data for consumption of electricity on different sites. The data is not regular in time. Which mean that sometimes let's say the data is for one site on a particular day and the next record for the same site would be for anot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Is it possible to map a Perforce depot subpath to the workspace root folder? In a depot with a folder structure like:
depot
subFolder1
subSubFolder1
subSubFolder2
subfolder2
Is it possible to map just //depot/subFolder1/... to the workspace root on the local filesystem, so that it will conta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing fstrings as parameters in Python I'm trying to write to a csv file and to do so I have to pass some values stored in different variables to the writerow method. But when I try to do so i always get this error:
'SyntaxError: closing parenthesis ')' does not match opening parenthesis '{''.
I've already tried... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to access Visual Studio options from an extension? I'd like to put together an extension which can switch between different options for VS options. For example, switching between XAML attribute spacing preferences.
I've tried looking through the docs for accessing options, as well as using the writable settings ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "error setting certificate verify locations: CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none" i am trying to install certbot but i am getting these errors
[ec2-user@ip-myip ~]$ sudo yum update
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Could not retrieve mirrorlist https://amazonlin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wierd terminal display glitch in c, Ubuntu When I run the first code it with "\n" at the end of every print statement it gives me the expected output which is in case of num == 35
The generated sequence:
35
106
53
160...
code to generate collatz sequence:
#include<stdlib.h>
#include<stdio.h>
#include<unistd.h>
#in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Admin User model My admin user model does not update new record when I register using UserCreationForm.
Access the github code
in the views I have imported Usercreationform has shown below and I did all the views coding. I do not know where I went wrong. I also rendered the form correctly into the template. But the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Text '03/03/2023 01:56' could not be parsed: Unable to obtain LocalDateTime from TemporalAccessor I get an unexpected exception when I try to parse a LocalDateTime (using JDK 8).
DateTimeFormatter DTF = DateTimeFormatter.ofPattern("dd/MM/yyyy hh:mm");
String dateStr = LocalDateTime.now().format(DTF);
// => dateStr ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I get a location given an address (~10K addresses )? I have a question.
We have a database of company addresses in our industry directory.
How and where can I get their exact location?
I know how to do it manually for each address, but there are about 10K addresses in the database.
Location data will help us ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: date("10/12/0000") converting incorrect date("10/12/0000") converting incorrect
I have filled my date of birth field ( mm/dd/yyyy) this format. I have convert to date format, its facing issue.
new Date("10/12/0000")
Thu Oct 12 2000 00:00:00 GMT+0530 (India Standard Time)
our side date is correct but value is incorr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to replace last occurrence of substring in c++ I am trying to replace only the last occurrence of a substring with another substring. For example for only the last occurrence of x:y I want to replace it with r:w
Example:
There {x:y} is a {x:y},u bench -> There {x:y} is a {r:w},u bench
I could only find a paramet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP & VS Code: inspect entire workspace for warnings, errors and etc I have faced with problem when I changed some code in one .php file and broke some code in other one but I haven't noticed it because VS Code didn't show any errors in my workspace till I opened error causing file myself. Are there any solutions fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In clojure how to partition an array of sorted integers into contiguous partitions? I'd like to partition an array of sorted integers into contiguous partitions.
The following ruby:
[1,2,3,8,9,10,99].slice_when { |x, y| y > x + 1 }.to_a
Outputs:
[[1, 2, 3], [8, 9, 10], [99]]
How can I do this in clojure?
I tried u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Blazor WebAssembly hosted in Azure App Service not returning environment appsettings I have hosted a Blazor WebAssembly app in Azure App Service and have set the ASPNETCORE_ENVIRONMENT but the correct environment appsettings do not get returned
I have tried the following solutions in the index.html:
Solution 1:
<s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PeerDart disconnects when using mobile data I have a flutter app deployed on web that uses PeerDart (which copies the implementation from PeerJs).
I tested video calls from a mobile device to a web browser using different wifi connections and everything works so far.
The problem is that when I switch from wifi to da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why Messenger on iOS does not work with the Universal Clipboard and how to fix it? Env:
*
*iPad Air 3rd generation (model MUUK2FD/A) on iPadOS 16.3.1 (head),
*iPhone 11 (MWLT2PM/A) on iOS 16.3.1 (head),
*the newest Messenger iOS app (iOS keeps it at the head automatically).
Steps to reproduce:
*
*Turn on hand... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to come back to the MainWindow in WPF So in my MainWindow.xaml.cs I have:
private void Button_Click(object sender, RoutedEventArgs e)
{
Page1 Scene1 = new Page1();
MainFrame.Navigate(Scene1);
}
And in my Page1.xaml.cs I have:
private void Back_Click(object sender, RoutedE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get the closest match among three numbers I have a list :
[(1, 49, 47), (11, 44, 6), (24, 16, 31), (11, 29, 47), (41, 14, 24), (40, 29, 1), (32, 49, 44), (41, 14, 14), (24, 21, 49), (19, 24, 6)]
And a tuple (7,2,3) I need to choose a value from this list such that every element in the tuple should be less th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How could i cancel any current await .then((value){....} i am using Firestore as backend to my app
in my app users could signUp then login in using Firabese authlike any app . also they can switch their accounts to another if they have many accounts.
in my app i have many .get().then((value){....} like following ..
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the use of interfaces in golang? I'm trying to learn go and i am confused with interfaces
I kind of understand it like in Javascript we can have a function as an object's property. So, to achieve this in go, we use interfaces
I saw similar question in stackoverflow and understand it. But curious to know the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-8"
} |
Q: Calculate a forward rate using measure I have a table of the following format:
I need to calculate a "Forward Rate" measure for each row, which = Discount Factor Current Month / Discount Factor Proceeding Month - 1.
I have tried the following measure but it does not work:
Forward Rate = SUMX(facYieldCurves,
IFERRO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using c# how to send a welcome message in the slack app how to send a welcome message in the slack app using c#. ex- image
Send Welcome message after installing app for the first time user
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75628090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Error Next.js getting 500 error on deploying the project in aws-amplify Hi i am getting module missing error
Error: Cannot find module 'next/dist/server/next-server'
https://github.com/aws-amplify/amplify-hosting/issues/3319
the build is getting generated successfully, please do let me know how to solve it.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75628091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Field not updating in MongoDB using FastAPI I have a document schema that looks like this:
{
"_id": "8a28d1fc-602b-43ba-a017-105a4fff35b3",
"isDeleted": false,
"user": {
"timestamp": "2023-03-03",
"phone": "+012345678912",
"age": 25,
"gender": "male",
"nationality": "smth",
"universityM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Maxheap counting the total swaps needed when inputting an array [1 to N] I need to count the total number of swaps needed to turn an array [1 to N] into maxheap. My code below outputs the correct answers but I was wondering if there was an alternative faster way to accomplish the same thing?
from math import floor, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PL/SQL multi-threading I have a task about bulk process of accounts(count of accounts > 20000) using pl sql.
For accounts there are a lot of validations and also for now it works on single thread mode. And now existing job works more than 1 hour for this accounts.
I'd like implement multi thread mode for this projec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do i effectively train a network with a sum of two loss functions? In general, i have not seen great success in including additional loss terms while training a neural network. For example, let us say i am solving an image to image translation problem and i use a U-Net like architecture. We typically use an MSE ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python: creating plot based on observation dates (not as a time series) I have the following dataset
df
id medication_date
1 2000-01-01
1 2000-01-04
1 2000-01-06
2 2000-04-01
2 2000-04-02
2 2000-04-03
I would like to first reshape the data set into days after the first observation per patient:
id day1 day2 d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Reading moisture sensor data and activating water pump causing infinite loop? I'm trying to interact with a moisture sensor and 3.3v submersible water pump to create an auto watering system, i'm currently prototyping and have run into an issue
When the code runs, it seems to get stuck on on setting the gpio_pin to h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Azure Devops, query based query has anybody found a capability of filtering / querying by a query in azure devops which exists in Jira, is very handy ?
In Jira it works as follows:
*
*you create a query like - show me all the stories, or whatever - this will be filter=12345 after saving
*you create a filter like ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Google script - transfer to other tab in spreadsheet I would like to transfer specific cells in a row when in a certain cell a specific value is detected.
I have following script, but when I have more then 1 row that meets the value, the data isn't transferred properly.
var MASTERSHEET_ID = '162gDqlIC0YZRS6C4PoXnhKF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it safe to catch general Exception in non crucial action? After sending order by customer, application sends notification email to admin. If latter fails, I don't want to bother customer with error page. Just log error.
in controller:
try {
$mailer->sendToAdmin('New order', $body);
} catch (\Throwable $e) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NoSuchFieldError while building an HttpClient in Kotlin for Elasticsearch on Android I am working on an Android application written in Kotlin that needs to perform a POST operation in Elasticsearch. However, when I try to execute the following line of code:
var client: HttpClient = clientBuilder.build()
I get a NoS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Append a column with an ULID to an existing MySQL table I'm trying to append a column with an ULID to an existing MySQL table. I know how to do it with a function and an update query:
delimiter //
DROP FUNCTION IF EXISTS ulid//
CREATE FUNCTION ulid () RETURNS CHAR(26) DETERMINISTIC
BEGIN
DECLARE s_hex CHAR(32);
SET ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sass @if rule fails when expression is $my-variable == null I am facing a strange behavior of Sass, when the expression of an @if-rule compares a variable with null.
$foo: null;
@debug $foo, $foo == null, $foo != null;
@if $foo == null {
@debug "$foo is null";
}
@if $foo != null {
@debug "$foo is not null... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: why CNN the model can't predict 0 I have two datasets: force plate data and plantar pressure data. The force plate data consists of 6 data points, while the plantar pressure data consists of 90 data points. Both datasets have a sampling rate of 50 data points per second. Therefore, within one second, the force plate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pass Id value to a modal form in codeigniter i have a list of users and i want to change permission for each user for that matter i have a button on each user row so when i click on it a modal form pops up with a select input and a submit button as follow :
1- this is the button
<a value ="<?= $value['id'];?>" clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Align bootstrap cards with filter forms on the left I am trying to align the cards using row and col- classes from bootstrap. The first three work as its supposed to but the fourth one doesnt do what i want it to do. Does anyone have an idea as to why this is happening and maybe also have a solution for me?
The prob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Regarding the RemoteStartTransaction command of ocpp Regarding the RemoteStartTransaction command of ocpp, my charging pile has established a connection with the ocpp server, but the command I send when I connect through WS is to create a new charging point
async def send_call():
async with websockets.connect('w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WordPress multisite gets error 500 with get_blog_details() or switch_to_blog() ... Sometimes I have a WordPress multisite running fine with version 6.0.3 with a heavy custom theme that someone else has developed. I also have a dev site running version 6.1.1, exact same theme & cloned database.
Within the theme, ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to filter on a SQLAlchemy MutableList column I am trying to filter on a column defined as a MutableList, but I'm not sure how to do it, or if it is even possible?
Here's what I tried so far:
from sqlalchemy import Column, String, Integer, PickleType
from sqlalchemy.ext.mutable import MutableList
class MyClass(d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .htaccess rejecting iOS connections when passing required X-Requested-With I want to use X-Requested-With in the headers when calling my server API. The server has an .htaccess line to look for a specific value in the X-Requested-With field, ie: X-Requested-with: com.myApp - if not found, reject the connection. Ye... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: extracting JSON value and using it I am sending simple request and I am getting JSON response:
{'status': 'success', 'orders': [{'id': '1666543', 'link': 'asd.com', 'quantity': '111'}]}
My code for response:
response = requests.get(url, params=params)
response.json()
wynik = response.json()
print(response.json())... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Live Streaming in Flutter I want to make application which will stream video from the camera of the device and sends it live to a server in Flutter
I am building the app in Flutter, but can't seem to find a well documented library/package in Flutter
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75628126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I display a PDF file on a form in C++/Clr I've been trying for about 2 months to get this working in VS2022, Win 11, project C++ CLR .NET Framework, without success. The dialog box opens and I can select the PDF file but nothing appears.
I can make it work in C#.
Isn't there someone who will be merciful and s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Why does GraphQL Mutation fail with 400 error? My mutation takes a useState variable as a parameter and passes it to the Mongoose API to save on MongoDB. I've been trying to get this API to work, but for some reason, I always get a POST http://localhost:4000/graphql 400 (Bad Request) error.
I'm trying to console.log... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do trigger a transionend event after another transitionend event triggered? My second transitionend doesnt get triggered at all and my first transitionend gets triggered to early.
I want to let a div transform to the left out of the window and when finished display none and transform it to the right out of the w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problems opening an .EXE in windows I hope someone can help me, a few days ago I created an .exe file without viruses or anything malicious with go-build. On my computer it runs correctly but when I share it with a friend (we both use Windows) his computer did not allow him to run it and he put it on quarantine. Bas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Path issue in parsec.json file I am an user of gem5 simulators and I am encountering an issue while trying to validate the parsec.json file. The error is shown below:
image issue
Do you have any ideas?
Thank you in advance!
I have tried to enter another path thinking that will solve the issue, but I had no result.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75628133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Expression.Lambda returns with "The LINQ expression ... could not be translated. Why? I have been over at Jeremy to "borrow" som very nice code that more or less acts as dynamic-linq. https://blog.jeremylikness.com/blog/dynamically-build-linq-expressions/
I have made som small changes. I would like to evalute predic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Number of values in a vector that add up to a sum S I have the following task:
Write the function that has the header:long long CountSumS(vector &a, int s)
The function will return the number of pairs with (a[i], a[j]); i < j; a[i] + a[j] = s)
Example:
If a = (8, 2, 3, 8, 7, 5) and s = 10, the function will return 3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: function for button creation is not working properly so im trying to make a petri-net simulation tool and this function is supposed to create the buttons for transitions and enable me to click them to fire the transition therefore adding and deleting the appropriate markings .its is functional but I have 2 problems ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Nuxt 3/Docker/Kubernetes Environment Variables I have a new Nuxt 3 application. In my config.ts, I have the following variables defined:
runtimeConfig: {
// Private keys are only available on the server
// Public keys that are exposed to the client
public: {
baseUrl: process.e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any way for a tooltip to show the selected colour descriptively? It is possible to configure the CMFCColorDialog to how the active colour in a tooltip when the mouse is over it?
Being colour blind I find it hard to identify "Red" for example. I got around it by clicking the Custom tab and using the RGB pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: READ_EXTERNAL_STORAGE Permission request not showing on emulator I'm trying to set up a way to register permission result handlers after the activity is initialized, by creating a Map<Integer, Runnable> to hold the handlers, when I request permission I use a randomly generated code and save a runnable to the Map of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Firestore: pagination without charging twice I want to add some pagination (with listeners) to my collection but for that I need to first get the next n items and them create new listener from the first doc to the last doc.
this operation will make me charged twice - for the get and then, for the unnecessary first l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check what Python version my package supports I am making a python package that I want to publish on pip. I know that my package runs on python 3.10.7 because that's the version that I have. However, since the code is fairly simple, I am sure that my package should run on many older versions of python. Is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rethrow Exception in a Coroutine Context I'm using intensively coroutine to create services, but I'm facing an issue about transforming Exception from inside my service to outside. Here is a synthesis of what I would like to do without Coroutine (here is the full example in a playground :
class MyService {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Numpy mask : dimension loss I struggle with mask and numpy. I have a 3D-tensor and I try to select only some specific cells.
More preciseley I create a 3D tensor :
array = np.repeat(np.arange(15).reshape(3,5)[None,:],3, axis = 0)
# array([[[ 0, 1, 2, 3, 4],
[ 5, 6, 7, 8, 9],
[10, 11, 12, 13, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Any thoughts on this Spring Boot start variant to build specifical bean at earliest possible time? The challenge is to build a specifical bean at the earliest possible time. That bean is needed for the further initialization process. The classes that need this particular bean do not autowire it, but only access stat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Node.js POST API inserts two records in SQL Database resulting in "Violation of PRIMARY KEY constraint " I have a table in an SQL based database that consists of a composite index to prevent insertion of duplicate rows. This was done after I noticed my node js post request would fire two records into the db and I ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: pytest' is not recognized as an internal or external command, operable program or batch file I just started learning python selenium concepts.
I installed pytest 7.2.1 latest version. and while checking whether installed or not iam getting below error.
Could you please assist.
'pytest' is not recognized as an inter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: What OIDC allow users to exchange credentials for a token I have a SPA secured with AAD B2C. The SPA talks to APIs also secured with AAD B2C. Right now, users can copy/paste the authorization header from Chrome to a tool like Postman and calls APIs directly.
I'd like to make this step a little easier for my users. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to match all words in a sentence to groups using regex in c++? I am trying to group all words in a sentence so that I can use regex_replace() to change the position of string. I have tried the code below, but since there is no global flag /g for regex in c++, the code does not work as expected. In the code, the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: running react native locally is issueing I'm trying to use this command to run react native app locally: npx react-native init notexpoapp3 --template react-native-template-typescript yet I get this issue:
✖ Installing Bundler
error Your RubyGems version (3.0.3.1) has a bug that prevents required_ruby_version from wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Send a chat message into MS Teams as MS Teams app with access token Is it possible to send a chat message into MS Teams 1:1 chat as a registered app?
For example:
Every one hour a cron is triggered and sends a MS Graph request (with an access token) to send a chat message into a chat with a specific id.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75628173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Running Python on a webserver using PHP I am using a PHP script to run a python script on a localhost xampp webserver:
<?php
$python_path = 'C:\Users\alona\AppData\Local\Programs\Python\Python39\python.exe';
$output = shell_exec($python_path . ' my_script.py');
echo $output;
?>
If the python script contains print("... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: react router redirect doesn't change in Routes I want the app to navigate to a specific route when clicked. One of the 5 cards opens localhost:3000/services
Home.js
function Home() {
return(
<>
<HeroSection />
<Cards />
<Footer />
</>
);
}
Products.js
expo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Firestore copy whole map in field to another document I have a collection ALL_quote with a hash I generate already inside there is a map called tmp_ff with the necessary I want to copy to another collection.
As you see from the picture, I have tmp_ff as a map already inside ALL-quote, I want to copy all elements in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TypeError: Cannot read properties of undefined (reading 'state') in react.js (pretty basic code but I couldn't understand any answer in other posts) I don't really understand (getting started on react and every answer on this topic really didn't help for it had too many things) because I tried onMouseOver={console.l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cordova app how to change the Android ORIGIN header value In iOS, my app HTTP request headers have Origin: ionic//myapp
In Android, my app HTTP request headers are: Origin: http://localhost
How can I change the Android Origin value to be like iOS and/or just list my app name? - localhost seems useless.
A: I will an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Synapse dynamic tree creation What is the best way to dynamically create and store parquets based on sql tables:
My table A -> Name, First name, Country, Creation date
My tree structure in the storage must be: Folder Country -> Folder -> Table Name -> Year -> Month -> Day.
Each day a parquet floor must come to depos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: React - Log Out UseContext I would like to create a log out with useContext - ReactJS.
For this, I would like to empty my useContext.
This is my App.jsx :
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import { useState } from "react";
import { ToastContainer } from "react-toastify";
impo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a point-to-point movement in C# We need to create an object movement system from point to point and vice versa using a Vector3 array from 0 to N points. When coming to the last point the object should move back from N to 0 point. To check movement direction there is a bool forward. Can’t get how to create s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Access django session and user asynch/in different (unix) process I'd like to integrate a streamlit application - streamlit is based on tornado - into django via an <iframe>, while ensuring that streamlit requests only go through if there is an authenticated user in django running on the same domain - e.g. via nginx... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is that right to use a function holder for parent widget call child widget method? I want to refresh a child widget, is the method below right?
The child widget code like this
class Caller<T extends Function> {
T get call => _call;
late T _call;
void setAction(
T action,
) {
_call = action;
}
}
c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Singular Value Decomposition, distance from a matrix to the orthogonal projection of a singular vectors onto the matrix Here, A matrix is a set of 1000 images of a single digit, each image having resolution of 28x28. $P_{W_d}(A)$ is the orthogonal projection of a dictionary W onto A. Here $W_d$ is an array consistin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75628197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |