All Questions
19,985,843
questions
0
votes
0answers
2 views
How can the stubbing be done in qunit?
Could someone please explain me why and when exactly stubbing is done ? How can the controllers, views, etc be instatiated in the tests ? Also can someone explain me what exactly to write in ...
0
votes
0answers
3 views
How to store the loaded View, so that we don't need to Initialize the component again when we reach to the same View
Actually I am having two buttons. When I click first button then one UserControl will be visible in ContentControl, and when I click on second button then another UserControl will come and sit in ...
0
votes
0answers
3 views
Laravel 7.x Creating default object from empty value
I'm trying to make a 'edit' page for a 'bookshop'. Everything in the front-end seems perfect, but when I click edit after inputting data I get this error: "Creating default object from empty ...
0
votes
0answers
5 views
Build failed.Step 2: Build and initialize the new recipe. Initialize the system
I'm trying to install Spartacus for SAP Commerce 2005 following the guide:
https://sap.github.io/spartacus-docs/installing-sap-commerce-cloud-2005/
At Step 2-3 (Initialize the system using the ...
0
votes
0answers
2 views
How to insert into PDO by using PHP?
So I'm trying to make a register page with the following form:
<form action="#" method="post">
<input type="text" name="userid" placeholder="Your Username">
...
-2
votes
0answers
6 views
I have accidentally set default opening for .py files in a notepad. How do I fix this?
help me to fix this issue in windows 10.as I am trying to change is not happening can anyone can help
0
votes
0answers
8 views
What's the correct date format for this case?
I've been trying to format String into Date, But, The conversion isn't working.
For example, I've these Strings, retrieved from a webservice.
Dec 9, 2016 4:36:00 PM
Jan 12, 2017 11:36:15 AM
I've tried ...
0
votes
0answers
3 views
Custom model binder ValueProvider not returning value from route
I'm attempting to write a custom model binder for ASP.NET Core 3.1 and seeing some strange behaviour. Having copied the structure of the custom model binder and provider from the docs, I don't ...
0
votes
0answers
2 views
Connecting react front end and express backend
The dev build works fine, with my react app on port 3000 and server on port 8080. The front end is able to make requests to the backend and get the response.
But when deploying the production build, ...
0
votes
0answers
3 views
Choosing a specific microphone (jack input, bluetooth output)
I have an app that I use the jack (or usb-c pinout) to record and measure an audio input. I need to do that while simultaneously playing audio from the headphones.
Is there a way to force the input to ...
0
votes
0answers
3 views
Collecting all ethenities and instances used in a project for mapping in Google Cloud
For security review purposes I would like to export a list of every entity, user (human and non-human) and instance used within a single project. So I could make a mapping/drawing of how the project ...
0
votes
0answers
11 views
How can I stop jQuery from hiding my Image and Game version?
I have a similar website to this. I'm using jQuery for my searchbar. It works fine, but the problem is that I want it to only hide the <div class="gameDiv"> not all the children in it, ...
0
votes
0answers
2 views
Inherited repo running old packages. What's the best way to make big updates?
Lots of deprecation going on here. What would be your plan of attack?
Ruby 2.4
Sass 3.4.23
Bourbon 4.3.4
grunt-cli v1.2.0
grunt v0.4.5
0
votes
0answers
2 views
Golang tesseract-ocr install missing leptonica headers
I have followed the installation instructions by using msys2 package manager to install both leptonica and tesseract-ocr either for Windows 32-bit or 64-bit (tesseract - leptonica).
Unfortunately i ...
0
votes
2answers
12 views
HTML input field datatype issue [duplicate]
I have an issue with input fields. I have 2 input field type="number" and I would just like to add those 2 number together.
My input fields
<input type="number" name="a&...
0
votes
0answers
2 views
Symfony embedded form rendered with table displays inputs in different columns
Using Symfony 5 I've got an embedded form where a User form is sometimes embedded within a second Additional Info form which adds more fields that are not always necessary (date of birth etc). It all ...
0
votes
0answers
3 views
EXT JS Painted event not working in safari browser
I developed multiple image uploader using dropzone.js with EXT js 6.7.0. it working for all other browsers but safari browser not working, because of painted event not triggered in safari browser
My ...
0
votes
0answers
2 views
Unable to replay commits of Linux kernel with git-format-patch and git-am
I want to fragment filesystem deliberately by replaying commits of Linux kernel. Firstly, I create patches with git-format-patch:
# in the existing Linux source code repo cloned from web
git format-...
0
votes
0answers
2 views
AWS Codepipeline limitations on a single account
We are planning to leverage AWS codepipeline by hosting it on a single AWS account, moving forward pipeline count will get around ~500, Is there any limitation by AWS that only certain number of ...
0
votes
0answers
5 views
Xamarin Collectionview Binding Not working
I have a problem where I am using a collectionview and I am trying to get the bindings to work.
I have tried to set the Height, as I saw in other posts, by setting the miniumheight and heightrequest ...
0
votes
0answers
11 views
Get output from user typed code JavaScript
I am experimenting with a Monaco (vs code ide for web). The goal is to print the output of the code the user wrote. Ex user types console.log("123") then i want to get the "123" as ...
0
votes
0answers
4 views
Constant communication on mdio bus is normal?
I have several devices on mdio bus - 1 phy AR8035 and 3 Dual Phys DP83849ifvs. The mdio bus is controlled by AM335x SoC. The problem is that I can't get mdio access to AR8035 PHY, but DP83849ifvs mdio ...
0
votes
0answers
7 views
how to handle special characters like pipe (|) in rest api url path without sending an encoded values in java?
url mapping is:
@path(value = "/article/{articleName}")
@GET
Here 'articleName' contains vertical bar (|). So when I hit the URL I get 400 Bad Request.
possible solutions that i know are,
...
0
votes
0answers
4 views
AngularJS repeater — how do I handle a directive not firing when the filtered array changes
I have an angularJS repeater of products. The client wants an ad image every 12 products in the repeater so I started off with a directive and ng-if: @index===0||(@index+1) % 12===0 then fire the ...
0
votes
0answers
6 views
How can I build this JSON file in R?
Working in R, I am having difficulty building a JSON file that I would use in an API call.
The required format for the JSON file can be seen here:
https://developer.trimblemaps.com/restful-apis/...
0
votes
0answers
3 views
Conditional Footer on SSRS Email Subscriptions
At my company, we are big on knowing who provided what data so each of our reports have a footer as such
report footer
="Report Executed On: " & Globals!ExecutionTime & Environment....
0
votes
0answers
8 views
Getting bash script to stop current command but run the commands after
This is my current bash script that sets up the Python virtual environment and starts a Flask server. However, when I try to stop the script with "ctrl-c" it doesnt just stop the Flask ...
0
votes
0answers
6 views
Vue - Using component to read barcodes via CDN
I would like to install in my Vue project a component via CDN called vue-cc-quaggajs to read barcodes.
I've tried the following:
new Vue({
el: "#app",
data: {
readerSize: {
width: ...
0
votes
0answers
4 views
resolving the XSRF vulnerability in an Angular9 - .NET framework 4.x webapi application
I can't seem to find an answer to this question.
At least, not as 'solid' as I would expect (see the end of this post, at the MVC example).
It's about resolving the XSRF vulnerability in an Angular9 - ...
0
votes
0answers
7 views
How to Change/Modify Pdf scroller in barteksc / AndroidPdfViewer?
Thank You
Hey Good People , I am working with barteksc/AndroidPdfViewer(https://github.com/barteksc/AndroidPdfViewer). Needs to be modify background and border of scroller showing in below image.
...
0
votes
0answers
7 views
Downloading JSON file to Android app by Kotlin coroutines
I've tried to rewrite doInBackground frome AsyncTask to Kotlin coroutines way. The good thing is that I don't recive any errors, bad one - not working. To be honest I'm not sure is that can work in ...
1
vote
0answers
13 views
How to align the HTML5 form validation bubble messages?
When HTML5 form contains required fields, such as
<input placeholder="Name" required>
or
<textarea placeholder="message" required>
...and such field is submitted ...
0
votes
0answers
3 views
If a 'many-to-many' field is added to directus_users
Firstly, I love the Directus CMS and I chose to implement it on my new project. So far I am just loving it.
Now I have this issue where the user create functionality was added, with email verification ...
0
votes
0answers
12 views
Using “this” inside a class?
This is a dictionary-class, adding keys with values. Why do I have to use keyword "this" to access the storage-object?
class Dictionary {
storage = {}
add(key, value) {
this....
0
votes
0answers
4 views
Range Partitions by Date with One Partition for NULL dates
I would like to have a table with deleted column containing the date the item was soft-deleted. Rows with NULL value in deleted column are the active ones. I was not able to figure our the syntax to ...
0
votes
0answers
3 views
Conversational AI - Keras LSTM and Dense Layer - question-answering model
Please see the included picture below.
My questions are around the LSTM output of the question_input and text_input and their concatenation and how we tell the Dense layer that what it really is ...
0
votes
0answers
5 views
record not inserted into table but showing last insert id
I am trying to insert a record into mysql database table it is not getting inserted into table but it returns last insert id. I am adding 3 columns, 'URL' is there in that 3 columns for 'URL' column I ...
0
votes
0answers
6 views
Create a 'dummy' URL path for frontend pictures rendering
I have application with DjangoRestFramework for backend and Vue.js for frontend.
My user can upload pictures and they are stored in an uploaded_media file.
Therefore I added + static(settings....
0
votes
0answers
8 views
Why am I obtaining this error trying to conver my Angular project from a CSS based project to a SCSS one?
I am finding some problem trying to convert an Angular project using CSS into a project usinc SCSS SASS.
I was following this tutorial: https://medium.com/@ngubanethabo.ambrose/migrate-from-css-to-...
0
votes
0answers
3 views
How to have a second list for a second directory of posts in Hakyll html?
I have a section in an index page that lists posts from the posts/* directory. What I would like is to have another section that lists posts from a bibs/* directory.
So, it would look something like:
...
0
votes
0answers
6 views
Docker CMD with environment variable while running node application
I need to pass an environment variable to node like below.
RAZZLE_ENV=production node build/server.js
How I can achieve this with docker CMD command. My current config is like this:
CMD [ 'node', '...
0
votes
0answers
4 views
Can we use SQLITE for PWA in ionic?
I'm using Ionic to build app for android and iOS.
I used SQLite as local DB as I have to perform some complex queries on the data and it worked fine as well! But then the demand came for PWA and ...
0
votes
0answers
4 views
Images, Buttons nor ToggleButtons don't display on any laptop
In this particular case, images are bound to Buttons and ToggleButtons, which are inside of ToolBars, and ToolBars are underneath a ToolBarTray.
For some bizzare reason, any image nor button that is ...
0
votes
1answer
9 views
*ng-if not working inside ion-modal in ionic 5
i am building a mobile app with ionic 5, when I try to call ion-modal that has an *ng-If in it, i would get this error
Can't bind to 'ngIf' since it isn't a known property of 'ion-header'.
The modal ...
0
votes
0answers
4 views
Tableau column sub-total
I am trying to show a the total percent compliant per group as pictured below.
So, the first employee in the group would show a total in the percentage column (95.8%).
0
votes
0answers
6 views
How to set Ellipses for Input type date (native date picker html)
Here is the fiddle sample for reference, i was able to apply ellipses on type="text", div but not date,
https://jsfiddle.net/gmLeok9h/
Is there a way to achieve this?
0
votes
0answers
3 views
Why shopify draggable event start:drag stop working after first time
I am working on Shopify draggable and I am stuck in drag from a specific part of the DOM element.
What I need to achieve is I have to drag from specific(like Item 1 below) part of my box like the ...
0
votes
1answer
15 views
Using regex to extract characters either side of a match
I have a string:
test=' 40 virtual asset service providers law, 2020e section 1 c law 14 of 2020 page 5 cayman islands'
I want to match all occurrences of a digit, then print not just the digit ...
-2
votes
0answers
12 views
HTML date type input, convert to UTC with javascript
I am fairly novice with JS...
I have an HTML input field, type date; of which I am trying to convert the user input to UTC, and store it in a variable.
Appreciate any help which can be offered here
...
0
votes
0answers
5 views
Upgraded to NetCore 3.1 and receiving an error in a Linq query related to using .FirstOrDefault()
I have an Entity Framework controller that has been using the method below successfully. However I recently updated my project to use .NetCore 3.1 and it must've broken something.
I am now getting ...

