All Questions
23,440,247
questions
0
votes
0
answers
2
views
SwiftUI: Set a Published value in an ObservableObject from the UI (Picker, etc.)
TLDR version:
How do I get a SwiftUI Picker (or other API that relies on a local Binding) to immediately update my ObservedObject/EnvironmentObject. Here is more context...
The scenario:
Here is ...
0
votes
0
answers
2
views
additing value to array without array_push
Hi have the following function to add to an existing array
function push_curr_value($push_this_value, &$list) {
$list[] = $push_this_value;
foreach($list as $value) {
echo $value."...
0
votes
0
answers
2
views
How to grant the permission to GCP Document AI specific processor?
Seems GCP Document AI the permission can only be granted to project level, can we grant to lower level ,like specific processor ?
0
votes
0
answers
2
views
Extract image from Android Compiled Resource Datatype
File is located here enter link description here
I got an .xml file from android .apk (from path /res/drawable)
But there is strange format
If I open file by online xml viewer it has the next format.
...
0
votes
0
answers
2
views
Error with variadic templates function: candidate expects 0 arguments, 3 provided
I'm trying to write a static variadic templates constructor for my class. But I'm not so experienced in variadic templates and get an error.
I wrote the following code:
template <typename T> ...
0
votes
0
answers
2
views
Thanos + Prometheus multi-cluster external sidecar gateway not working
I'm setting up thanos (bitnami/thanos helm chart) together with prometheus (kube-prometheus-stack helm chart) for multi cluster monitoring on kubernetes. So far I've gotten things up and running ...
0
votes
0
answers
5
views
output of date list with for loop
d = self.G_FromDate.date().toString("yyyy:MM:dd")
d = d.split(":")
E = self.G_ToDate.date().toString("yyyy:MM:dd")
E = E.split(":")
print(d)
...
0
votes
0
answers
4
views
What do these 2 letter expressions mean in linux
As I'm learning Linux right now, I often come across a lot of new stuff, one example in particular are single letters after a "-" sign. Examples are provided down below..
I just want to know ...
0
votes
0
answers
4
views
Undefined offset: 2 (View: C:\inetpub\wwwroot\SHDEPHA Portal\resources\views\travel_requests\form.blade.php) on Laravel
Below is my blade codes, the error shows thats its caused by line 307 of the codes.
...
0
votes
0
answers
8
views
Can web app developers check whether I am using any chrome extensions?
I have been playing online Mahjong for a while (you can treat it as Texas Poker). Recently I am developing a chrome extension to help me track the tiles (cards).
I am very curious whether the game ...
0
votes
1
answer
7
views
return the index of childnode when clicked
Here, I have parent div of class = "alphabets" and have child div's all with same class = "word"
<div class="alphabets">
<div class="word"> abc &...
0
votes
0
answers
5
views
Enter different detail components according to the different data of the selected row in Angular
I currently have a table with a type field. My requirement is: when the user clicks on a row whose type is 1, he will enter the detail page 1, and when the user clicks on the type 2, he will enter the ...
0
votes
0
answers
2
views
How can i remove this space from a SwiftUI custom CustomTabBar
You can see the issue in the image below there is a space above the Rectangle with a teal Color that I cant remove so that code can match the design.
You can replicate the issue using ...
0
votes
0
answers
4
views
Axon Framework and DDD
Does anyone know how mature Axon is and is it suitable for a banking project?
Not mature and trusted enough to be used as framework to develop a large enterprise application
-1
votes
0
answers
9
views
How to use "for loop" in Python to extract year and firm name (for earning call transcripts) from a txt file
I have a txt file of this type:
Thomson Reuters StreetEvents Event Transcript
E D I T E D V E R S I O N
Q3 2003 ABM Industries Earnings Conference Call
SEPTEMBER 10, 2003 / 1:00PM GMT
=============...
0
votes
0
answers
5
views
JPA flush() cause "no transaction in progress"
My java code is this:
@Transactional
public void save(TnScheRunningHis running) {
entityManager.persist(running);
entityManager.flush();
}
the Exception log is:
javax.persistence....
0
votes
0
answers
3
views
Blazor component code syntax background color in Visual studio code
There is a problem with the colors inside a Blazor component in visual studio code.
Only the first property access modifier gets highlighted as you can see on the screenshot.
I wonder if that there ...
0
votes
0
answers
5
views
Azure.Storage.Files.Shares wont install on .Net MAUI using .Net 7
When trying to install Azure.Storage.Files.Shares on a empty .NET MAUI app (created directly from the VS 2022 17.4.4 wizard) I get a series off incompatibilities. If have tried a simple Console app ...
0
votes
0
answers
6
views
How to send reply message to Slack with GAS?
First of all,I'm not native English speaker.So,I'm sorry if there are some mistake in English.
I want to make the Chat-Bot which work-flow is below.
send message from Slack
add the message to ...
0
votes
0
answers
8
views
Google Sheets: Making an Arrrayformula for Filter Function
I'm currently upgrading my sheets for an MTB program.
I'm changing all my formulas to arrayformula so as to avoid anyone being left out when I forgot to drag the formula.
All that's left is the ...
0
votes
0
answers
7
views
Google API Picker getting 400 errors in console - when logging back to Google at logImpressions endpoint
We have the Google Picker working, but have noticed that the picker code seems to be trying to log events to Google, and is getting 400 errors when doing so.
Looks like Google library code trying to ...
0
votes
0
answers
5
views
Add "Open with Visual Studio Code" shortcut to right click menu
Right click menu Example
Step 1: open Run and open regedit
opening regedit
Step 2: in regedit go to this Directory "Computer\HKEY_CLASSES_ROOT\Directory\Background\shell"
navigate to ...
0
votes
0
answers
6
views
Camel - onException & redelivery
I am trying to implement an error handler & re-oauth mechanism for a Route which performs a GraphQL API call. However, I seem to be misunderstanding the usage of the onException handler and can't ...
0
votes
0
answers
7
views
Convert multiple 2D lines in heatmap to represent density in each cell
I have numerous 2D lines (x1,y1;x2,y2) and a bunch of lines crossed each other in a specific area of the map. I have plotted as below, but it may not be easy to interpret.
Is it possible to use these ...
0
votes
1
answer
6
views
Why browser downloads the image on S2 instead of displaying it?
This is my NodeJS app for uploading the image:
import AWS from 'aws-sdk';
import fs, { ReadStream } from "fs";
import path from "path";
const bucketName = "mybucketname";...
0
votes
0
answers
8
views
Why using inner join itself is more faster than where
Here is my table without any index
Column
DataType
id
bigint primary key
source_type
int
created_time
datetime
select * from table where source_type = 1 order_by created_time
execution: 80 ms, ...
0
votes
0
answers
6
views
Storing multiple selected options into array
<script>
$(document).ready(function() {
$(".chosen-select").chosen({
no_results_text: "Oops, nothing found!"
})
});
</script>
<script>
...
0
votes
0
answers
7
views
How to fix "Script @php artisan package:discover returned with error code 1" + "Class not found" without internet connection?
I am working on a legacy Laravel 6 app which is isolated from the rest of the system without internet connection, and when I try to run composer dump-autoload I get:
In ProviderRepository.php line ...
0
votes
0
answers
5
views
Faster R-CNN For Image Colorization
Is it possible to colorize B/W grayscale images/videos using faster r-cnn or is it just used for object detection in particular? If I can implement it how can I do it? Is there any other method for ...
0
votes
0
answers
11
views
ConcurrentHashMap<String, Path> taking different amount of memory in different dumps as seen by the heap dump taken by yourkit
private final Map<String, Path> relativePathsByKey = new ConcurrentHashMap<>();
I keep the file paths in a ConcurrentHashMap for quick access to files. I took two heap dumps at different ...
0
votes
0
answers
9
views
Error while deploying firebase app regarding uncaught syntax error
I get this error while deploying my NextJS app on firebase:
Uncaught SyntaxError: expected expression, got '<'
for almost all my js files but I also get this warning
The script from “https://eco-...
0
votes
0
answers
5
views
how to change user password in ubuntu using xargs
I need to change the password of "vtm" user to "abcd12345" by using xargs command.
so I wrote this comman
printf "vtm abcd12345 abcd12345" | xargs -t -n1 passwd
but I ...
1
vote
0
answers
14
views
Callback functions vs hardcoding inner function?
I'm reading about Callback functions in Javascript, and W3 schools reports that a callback is simply where a one function calls another, the latter of which is an argument that's passed to the first ...
0
votes
0
answers
8
views
Detecting names and replacing them in a text column in R
Hope everyone is fine.
I have a dataset that contains names. Most of them are in a order of first name and last name. I need to remove these names and replace them with some fake names for the purpose ...
1
vote
0
answers
15
views
How to remove function name and open and close parentheses in JavaScript?
How to remove a wrapping function using Regex in JavaScript? Say I have
parse(someVar)
I want only someVar to be left. I saw this post but not sure how to apply it.
0
votes
0
answers
5
views
AWS Glue metrics data pull from cloudwatch using python
I am trying to pull aws glue metrics from cloudwatch using python but I am getting 0 dataframe.I am using below function.
response_dict = client.get_metric_statistics(
Period = period,
...
0
votes
0
answers
11
views
convert matrix to data frame
I have 5x5 matrix:
mat <- structure(c(0, 1, 0, 1, 0, 0.833333333333333, 0, 0, 0, 0, 0.166666666666667,
0, 0.666666666666667, 0, 0, 0, 0, 0.166666666666667, 0, 0, 0,
0, 0.166666666666667, 0, 1), ....
0
votes
0
answers
8
views
How to implemented Nested ListView.builder in Flutter?
I have already gone through this post
for nested scrolling but it is not the correct way according to me as explained in this video from the official flutter channel
I want to achieve the below layout
...
0
votes
0
answers
11
views
How do I print transormed data in gnuplot?
I know you can perform transformations on data before plotting it like
plot "test.dat" using 2:($2+$1) but is there a way to just print the transformed data to stdout? If I just want the ...
0
votes
0
answers
8
views
XState throwing Missing onError handler and/or unhandled exception/promise rejection for invocation
I'm trying to create a Xstate machine (a simple now) using (kind of) TDD, but I'm stuck on some weird error I'm seeing for the first time and can't spot where I did something wrong.
So, the code looks ...
0
votes
0
answers
7
views
Is it Possible to Interleave WebView and CALayerViews in Swift
I have a view that acts as a container for multiple CAShapeLayers. These contain bezier that form a composition on the screen that the user can manage in different ways to do with line weight, colour, ...
0
votes
0
answers
11
views
"106 common frames omitted" Why this error comes and how to deal with it and avoid in future
Caused by: java.lang.ClassNotFoundException: org.springframework.util.comparator.InvertibleComparator
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[na:na]...
0
votes
1
answer
9
views
prompt.sync module requiring ()
Below is a simple programme importing few modules in Node.js
const prompt = require('prompt-sync')();
const http = require('http');
const file = require('fs')
const low = require('lodash');
In all ...
0
votes
0
answers
6
views
Mock a MDC data in spring boot test
I want to mock a data which is fetched from MDC in test class other wise when the code executed it return a null value. So i try below,
@RunWith(SpringRunner.class)
@SpringBootTest( webEnvironment = ...
0
votes
1
answer
9
views
How to do string named format in Elixir without interpolation?
I'm new to Elixir
I want to do named string formatting, and I don't want to use interpolation because the string will be fetched from CSV
suppose I have string data from CSV that I parsed
str = [
&...
0
votes
0
answers
6
views
How do you send push notifications to a Rust app?
I'm building a desktop app with Tauri and I need to send pure-data push notifications to them from an AWS Lambda function. I was previously using FCM and listening from my Electron app with the push-...
0
votes
0
answers
8
views
how to remove 0 before single number date in js flatpickr?
The js code given below:
var endDatePicker = flatpickr("#end-date-picker", {
enableTime: false,
singleDate: true,
selectForward: false,
dateFormat: "M d, Y",
onChange: ...
0
votes
0
answers
11
views
Display a list of announcement data that has been uploaded to Google Classroom
How do I display a list of announcement data that has been uploaded to Google Classroom?
Using PHP or app script.
0
votes
0
answers
6
views
Replace words in a textarea depending on a select field value
I have an empty textarea field. A First dropdown allows me to choose which code block I want to insert in the textarea . For example :
<select name="myfirstselect[]" class="...
0
votes
1
answer
16
views
JSON.Parse in JS is returning undefined - (Node.js app)
I created a function to convert JSON in CSV. However JSON.parse is returning undefined. Please can someone help.
function JSONtoCSVConverter(JSONDataPath, showLabels) {
var JSONData = fs.readFile(...