How to make Hangfire api calls with jwt token

I have a Hangfire which runs on.Net Core 6 Api, I create jobs on hangfire to make api calls. My api has jwt token authentication, so when my recurring job running, it makes api call and this call should be with jwt token. I can not figured out how to do it, does anybody has … Read more

Leader Election and AppendEntries rejection

I am reading this paper “In Search of an Understandable Consensus Algorithm (Extended Version)” https://raft.github.io/raft.pdf. In section 5.2 it states that “While waiting for votes, a candidate may receive an AppendEntries RPC from another server claiming to be leader. If the leader’s term (included in its RPC) is at least as large as the candidate’s … Read more

Plotly Not Displaying Plots Correctly On Same X Axis

The first row’s box plots are confined to the left half of the subplot, and the second row’s box plots are confined to the right half of their subplot, so that neither row’s box plots are properly filling up their respective space. How do I properly space them (in Jupyter Notebook)? from plotly import subplots … Read more

Balls phasing through each other in physics engine

I’m trying to write a simple physics engine in C++; it’s been going well so far, and all of the functions work as intended except for the physics between the balls themselves. During collisions, the balls will sometimes just phase through eachother. #include <iostream> #include <stdio.h> #include <raylib.h> #include <raymath.h> #include <stdlib.h> #include <time.h> #include … Read more

geoJson API – finding place ID

import urllib.parse import urllib.request import json api_url=”https://maps.googleapis.com/maps/api/geocode/json?” # Function to retrieve place ID for a given Location def get_place_id(location): params = { ‘address’: location, ‘key’: ‘………’ # Replace ‘YOUR_API_KEY’ with your actual API key } url = api_url + urllib.parse.urlencode(params) try: response = urllib.request.urlopen(url) data = response.read().decode() json_data = json.loads(data) # Debugging: Print the JSON … Read more

CUDA and JAX libraries are not compatible

My CUDA version is 11.6. The version of JAX is 0.4.16, and the version of jaxlib is 0.4.16+cuda11.cudnn86. When I run a simple Python code, an error message reads W external/xla/xla/service/gpu/buffer_comparator.cc:1054] INTERNAL: ptxas exited with non-zero error code 65280, output: ptxas /tmp/tempfile-meiji-993e158e-113566-608cf99230264, line 10; fatal : Unsupported .version 7.8; current version is ‘7.6’ The second … Read more

How can I get user location with MapKit?

I write map app for iOS 17 with Xcode 15. And I have problem with detecting user location. So, I add the parameters to info And I create Map() with MapUserLocationButton() var body: some View { Map(scope: mapScope){ UserAnnotation() } .mapControls() { VStack { MapUserLocationButton(scope: mapScope) MapScaleView(scope: mapScope) } } .mapControlVisibility(Visibility.visible) } And if I … Read more

Autoit Find Image and Write Text to File

I wanna do Find image on somewhere screen and write something to specific file. I dont have much experience. If to be more descriptive; I have 3 image on screen but they are changes every 10 min or more I want it to check for image every 5 minutes. if X image there write X … Read more