All Questions

Filter by
Sorted by
Tagged with
2votes
2answers
85views
+50

Flask app: handle requests on trigger (no server, non blocking)

TLDR consider a flask app: # server.py import flask app = flask.Flask(__name__) # routes, views, etc go here... # ... # run app if __name__ == '__main__': app.run() instead of running the ...
user avatar
  • 1,669
0votes
0answers
24views
+50

wkwebview not scrolling on evaluatejavacript with custom CSS

I am trying to load html page on a web view and i am having issue with scrolling the page.I tried to add javascript with overflow changed to scroll and no luck.What am i missing here? -(WKWebView*) ...
user avatar
  • 351
2votes
0answers
32views
+50

initdb.sql not running in Windows Server 2016 or 2019 in Docker

I installed Docker EE on Windows Server 2016 and 2019. I am spinning up a PostgreSQL container and have an initdb.sql script to initialize the database. I am using Windows containers, and have tested ...
user avatar
  • 1,910
0votes
0answers
31views
+50

PlayerNotificationManager setColor is overwritten after using MediaSessionCompat and MediaSessionConnector on exoplayer

I am running a foreground service for music. I am using exoplayer 2.16.1 and PlayerNotificationManager for displaying the notification. I have set the color for the notification background using: ...
user avatar
  • 153
0votes
1answer
52views
+50

How to load static file image in Vue component with Django Application

I am currently using laravel-mix, Django, and Vue together. I would like to load the static image inside the Vue component. My images store in static/img folder First of all, I have set up an alias in ...
user avatar
  • 593
0votes
1answer
77views
+200

How to write a generic type that includes all props from one generic type that are not in another?

I'm trying to write a generic HOC that takes a component with props TProps and a type TEntry defining an object structure. I want the HOC to return a component which will call a hook to get an object ...
user avatar
  • 14.2k
0votes
1answer
60views
+50

How can we give height based on content of a cell in xlsx?

I am trying to create an Excel file through XML, How can we give a height based on the content of the cell. Here I manually added ht=27 in a row, is there any other option to change the height based ...
user avatar
  • 47
1vote
4answers
47views
+50

Does @action decorator only work for ModelViewSet?

Does the @action decorator only work for viewsets.ModelViewSets? Can I use the @action decorator for say a generics.RetrieveAPI? If so, how? E.g. the following doesn't work: class ItemDetailView(...
user avatar
  • 266
0votes
1answer
50views
+50

How to create new column 'Status' in through the action button 'create column' in r shiny

I am working on a R shiny app that reads many xpt files and displays the data in a table, it works fine at present. To extend this app I want to create a new column called "status" with ...
user avatar
0votes
0answers
63views
+50

Multiple attribute for <input> type="email" does not work under ASP.Net-Core

Under ASP we could bound a control with a model which has member public string Contact { get; set; } or directly <input type="email" asp-for="item.Contact"> or through ...
user avatar
  • 13
0votes
1answer
90views
+100

IFileProvider returning 01/01/0001 for last modified date of all files in Physical Provider

In startup I have set my IFileProvider in configure services as follows: IFileProvider physicalProvider = new PhysicalFileProvider(Directory.GetParent(env.ContentRootPath).ToString()); ...
user avatar
0votes
1answer
50views
+100

Angular Sidemenu subitems closes all together

I have Sidemenu in which i have items and subitems. What i need to do is open all subitems by default which is working but when i close it will just close that item only. Right now its closing all ...
user avatar
0votes
0answers
29views
+100

Sleuth not able to generate traces for JDBCTemplate access

I am exploring slueth for enabling tracing in our Apps. I get the API to API call logs in zipkin but I don't get any other JDBC calls logged. I have added below to my application.yml spring: sleuth: ...
user avatar
0votes
0answers
23views
+50

Executing two tasks, which both update the plotly dashboard consecutively

We are trying to have an api-call that executes two tasks - a short and a long one. The short task should update the dashboard and when the long one is finished it should update the dashboard once ...
user avatar
0votes
2answers
57views
+50

How to make logs in application insight without using Task.Delay method?

using Microsoft.ApplicationInsights; using Microsoft.ApplicationInsights.DataContracts; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using System; using System....
user avatar
4votes
2answers
132views
+500

How to factor the ITK CenterOfRotationPoint in an affine transformation matrix?

We are using the registration algorithm of ITK but we only want the affine transformation matrix and not directly apply the registration. In a previous issues we already solved a misunderstanding ...
user avatar
  • 5,201
0votes
1answer
56views
+50

Using M2 command on Thales Payshield 9000 HSM to decrypt a message

I am provided with an HSM Encrypted message (HEX format), and I'm supposed to implement the decryption using M2 command of that message. I have: Encrypted data: ...
user avatar
  • 324
0votes
1answer
78views
+50

How to interpolate time series based on time gap between non null values in PySpark

I would like to interpolate time series data. Thereby, the challenge is to interpolate only if the time interval between the existing values is not greater than a specified limit. Input data from ...
user avatar
1vote
1answer
75views
+150

Shared-memory IPC solution for both Linux and Windows

Below is a simple and perfect solution on Windows for IPC with shared memory, without having to use networking / sockets (that have annoying limits on Windows). The only problem is that it's not ...
user avatar
  • 35.6k
2votes
3answers
97views
+50

How to spawn a docker container in a remote machine

Is it possible, using the docker SDK for Python, to launch a container in a remote machine? import docker client = docker.from_env() client.containers.run("bfirsh/reticulate-splines", ...
user avatar
1vote
0answers
28views
+100

Datastore · Chaining serializers / Default values

The core problem is that I want to set default values for child messages. Since proto3 doesn't allow the setting of default values in the proto file. Example Protobuf message Person { int32 age = 1; ...
user avatar
  • 15.3k
0votes
1answer
44views
+50

LightFM how to make predictions for new users (cold start) - user id 8 not in user id mappings

I am building a recommendation system in order to recommend training to employees based on user features and item features which LightFM according to the documentation its a great algorithm. my user ...
user avatar
0votes
0answers
32views
+50

schema file at path is invalid because no version is specified

I run my dbt command in a loop and save its contents to a .yml file. This works well and generates a schema in my .yml file accurately: for file in models/l30_mart/*.sql; do table=$(basename "...
user avatar
  • 1,925
0votes
1answer
49views
+50

mapping values are not allowed in this context in "<unicode string>"

In my loop, I run a dbt command and save the output to a .yml file. The following command works and generates a schema in my .yml file accurately: for file in models/l30_mart/*.sql; do table=$(...
user avatar
  • 163
0votes
1answer
43views
+50

eslint no-restricted-syntax selector for private methodDefinition

I use eslint on a TypeScript project and have some rule in no-restricted-syntax config that check naming for async method, like : { "selector": "MethodDefinition[value.async=true][key....
user avatar
1vote
1answer
32views
+50

How can I turn off certain tags for redcarpet in RoR?

I have the following function in application_helper.rb: def markdown(text) options = {} renderer = CustomRender.new(hard_wrap: true, filter_html: true) Redcarpet::Markdown.new(renderer, ...
user avatar
  • 137
2votes
1answer
47views
+50

CarrierService.onLoadConfig not being called even after gaining Carrier Privileges

I am working on a feature where i need to update some CarrierConfig for our subscriptions once the Sim is being installed and the app gains the Carrier Privileges. Now the app successfully gains the ...
user avatar
1vote
2answers
50views
+50

Node Lambda Function can't query an AWS Aurora MySQL database

I'm trying to write to an aws aurora mysql database with a Lambda Function. Code For some reason, it doesn't seem to work. Until this point, my code is very simple but fails to execute correctly. It ...
user avatar
3votes
2answers
302views
+50

How do I test a viewModelScope controlled SharedFlow?

I have a SharedFlow. When the ViewModel is created, I change the value to Val1. After that, I use the viewModelScope to make some fake delay of 3 seconds and then change the value to Val2. class ...
user avatar
  • 9,078
1vote
1answer
43views
+50

Get the status of a pull request's checks

How can I programmatically get the following information? (1 required check) I've looked at the response for getting a Pull Request by Id but there's nothing in there from what I can see. I've tried ...
user avatar
  • 3,137
1vote
0answers
25views
+50

How to set webrtc to use STREAM_MUSIC to play voice on Andriod?

Webrtc use STREAM_VOICE_CALL to play the voice default . How to set webrtc to use STREAM_MUSIC to play voice on Andriod ? Is that impossible ??
user avatar
  • 11
6votes
3answers
145views
+500

Padding scipy affine_transform output to show non-overlapping regions of transformed images

I have source (src) image(s) I wish to align to a destination (dst) image using an Affine Transformation whilst retaining the full extent of both images during alignment (even the non-overlapping ...
user avatar
  • 8,953
6votes
1answer
523views
+50

how to import graphql schema to graphene-python program?

How do I import an existing graphql schema (example below) into a graphene program instead of defining classes in python to create the schema? type Hello { name: String } type Query { hello: ...
user avatar
  • 131
9votes
2answers
245views
+50

Find near duplicate and faked images

I am using Perceptual hashing technique to find near-duplicate and exact-duplicate images. The code is working perfectly for finding exact-duplicate images. However, finding near-duplicate and ...
user avatar
  • 803
-1votes
1answer
79views
+50

What's the best way to add/remove dynamically Form Array item?

Here's how I bind data received from an API to my Form Group/Array, on the CTOR: this.api.getRecipe(id).subscribe((data) => { this.form = this.fb.group({ nome: [data.nome, [Validators....
user avatar
  • 44.9k
2votes
1answer
38views
+50

How to make custom error message using Joi?

How to make a custom message using joi? i saw many answered question related on this but i dont know why it didnt work on my end, the error message always appeared is "Student" does not ...
user avatar
  • 279
1vote
0answers
28views
+50

Amplify Reset Password Hangs

I used amplify's withAuthenticator as shown below for my /mainPage path. But when I tried to reset password, supply the confirmation code and submit it, the page hangs. It should refresh my /mainPage ...
user avatar
0votes
1answer
37views
+50

PayPal Checkout Braintree Line Items

I'm trying to use Braintree with the PayPal Checkout SDK (sandbox environment) however everytime I try and add in line items, I get a 'create_order_error' 'PayPal error undefined: could not initialise ...
user avatar
0votes
0answers
66views
+50

Error: Messaging: We are unable to register the default service worker

My Flutter app on web has been using Firebase Cloud Messaging for a long time without error. Today, with no changes, it is giving the following error: Error: [firebase_messaging/failed-service-...
user avatar
  • 1,706
0votes
0answers
29views
+50

CNContact : How to update preferred line

I have an application that launches calls from a tel: to internal numbers on converged phones. My problem is that most of our customers are using dual SIM with the last used as the general setting. ...
user avatar
  • 2,189
0votes
0answers
15views
+50

Combine two 3D transformations expressed as Vector3 and Quaternion without matrix multiplication

We're working in C but would be happy to find example code in any language! Psuedo-signature of function required: apply_transform({tr1:Vector3, rot1:Quaternion}, {tr2:Vector3, rot2:Quaternion}) =&...
user avatar
0votes
0answers
83views
+50

Google Sheet - Force a linked spreadsheet to refresh

I'm pulling a realtime quote from "spreadsheet B" into "spreadsheet A" through: =IMPORTRANGE("url";"A1"). For some kind of reason the referenced cell in "...
user avatar
3votes
2answers
78views
+500

tailwind.css not being generated in a Rails 7 project in Heroku

I have a Rails 7 project using TailwindCSS deployed to Heroku that is not building tailwind.css during rake asset:precompile and I don't know why. When I try to access the application, it crashes with ...
user avatar
  • 265k
3votes
1answer
79views
+50

Unable to edit input element after an `alert` in electron

TLDR Im learning electron. I have an html element <input type="text">, I can edit the text in it. After I do an alert, when i click the input element it shows no cursor, and pressing ...
user avatar
0votes
0answers
23views
+50

How to close NodeJS debugger remotely?

Given NodeJS process is running in in production and I have an endpoint which signals to process. @Get('/signal/:signal') async makeSignal(@Param('signal') signal: string) { process.kill(...
user avatar
0votes
1answer
98views
+50

No message body writer has been found

I am trying to create a JAX-RS resource that must produce JSON data. I am running on Apache TomEE 9.0.0-M7 and Jakarta Web Profile 9.1. Calling getPrincipals on the PrincipalResource class produces ...
user avatar
  • 184
0votes
0answers
35views
+50

Does Amazon CloudFront support HTTP 1.0 requests without the Host header?

CloudFront fails for an HTTP 1.0 request without the Host header (optional for HTTP 1.0): POST / HTTP/1.0 Content-Type: application/ocsp-request Content-Length: 75 HTTP/1.1 400 Bad Request Server: ...
user avatar
0votes
0answers
48views
+250

Electron react app hot reloading from src folder not working

I'm trying to use the hot reload feature in development mode of a react electron app. It use to work well but I'm having issues with the latest electron version 15+. I am able to run the app from the ...
user avatar
  • 1,903
0votes
1answer
63views
+50

How do I port a Swift class along with it's extensions to C# for Xamarin iOS?

I'm trying to port AVFoundation code I wrote in Swift, to Xamarin iOS C# classes. I'm not great with Swift but the issue I have with it is pseudo multiple-inheritance pattern that I see with ...
user avatar
  • 1,321
0votes
0answers
35views
+50

Invalid getVisaCheckoutDataReply element in cybersource web reference

I'm trying to add the new integration of visa click to pay to a Salesforce commerce cloud site by using a cybersource cartridge, the version of the cartridge is 2.1.1 I made the change according to ...
user avatar

15 30 50 per page
1
2
3 4 5
7