instruction
stringlengths
0
30k
With sprint boot 3.1.5 in two microservices, one using FeignClient to request to the other microservice , I have this properties configuration in both microservices: management: tracing: propagation: produce: b3 consume: b3 brave: span-joining-suppo...
I discovered recently mlflow Databricks so I'm very very new to this Can someone explain for me clearly the steps to track my runs into the databricks API. Here is the steps I followed : 1/ install Databricks CLI 2/ I sewed up authentication between Databricks CLI and my Databricks workspaces according to instructi...
"""hello. this code is runing, versions: Python==3.11.1 opencv-contrib-python==4.9.0.80 opencv-python==4.9.0.80 in this case we have "DICT_7X7_100" but you can change to "DICT_5X5_100", you must to change en 3 lines of this program""" import numpy as np import cv2 ...
If you used the **Free plan** of Vercel this caused the issue. Because it provides only **Edge runtime** but **JWT cannot run on Edge runtime**. You need to use an alternative for authorization (e.g.: [jose](https://www.npmjs.com/package/jose)) which is supported by Edge runtime. In this discussion of official Verce...
I've verified I am recording an audio file correctly. I would now like to send it to open ai for speech to text. Here is my nextjs code pages/api/speechToText.js file: import { OpenAI } from "openai"; const openai = new OpenAI(process.env.OPENAI_API_KEY); export const config = { api:...
I have a scenario when I need to operate on large array inside some inner function (a service) but result of this operation is to be consumed (serialized to JSON and returned over HTTP) by parent function: ``` public IActionResult ParentFunction() { var returnedArray = InnerFunction(1000); return Ok(retu...
How to return array to ArrayPool when it was rented by inner function?
|c#|arrays|.net|
The following test has the purpose of ensure that any visitor is assigned a role ``` test "role for non logged in user" do get root_path puts ('role ' + @role.to_s) assert @role == 'end consumer' end ``` the role can change based on a join table where a shop is known via the host and the process...
{"Voters":[{"Id":3730754,"DisplayName":"LoicTheAztec"},{"Id":11987538,"DisplayName":"7uc1f3r"},{"Id":839601,"DisplayName":"gnat"}]}
I have a numpy array and corresponding row and column indices: ``` matrix = np.array([[0, 1, 2], [3, 4, 5], [6, 7, 8]]) row_idx = np.array([0, 0, 0, 0, 0, 0, 0, 0, 0,]) col_idx = np.array([0, 1, 2, 0, 1, 2, 0, 1, 2]) ``` I would like to unravel the matrix by the groups specified by row_idx and col_idx. In th...
|python|numpy|array-broadcasting|
I am having an issue. It just published my first project and now I am realising if you add an "/" to the end of the URL it does load in a very different way I cant even explain. When you add a "Trailingslash" some of the Buttons of the Website are not clickable and if I do this with ng serve the font is changing, I can...
{"Voters":[{"Id":205233,"DisplayName":"Filburt"},{"Id":238704,"DisplayName":"President James K. Polk"},{"Id":839601,"DisplayName":"gnat"}],"SiteSpecificCloseReasonIds":[18]}
{"OriginalQuestionIds":[35236895],"Voters":[{"Id":530160,"DisplayName":"Nick ODell"},{"Id":12131013,"DisplayName":"jared"},{"Id":9214357,"DisplayName":"Zephyr"}]}
{"Voters":[{"Id":349130,"DisplayName":"Dr. Snoopy"},{"Id":2602877,"DisplayName":"Christoph Rackwitz"},{"Id":839601,"DisplayName":"gnat"}],"SiteSpecificCloseReasonIds":[18]}
|c#|asp.net-mvc|entity-framework-core|asp.net-identity|
null
``` using System.Collections; using System.Collections.Generic; using UnityEngine; public class Enemy : MonoBehaviour { [SerializeField] private float _enemySpeed = 1f; private float _kamikazeSpeed = 6f; private Player _player; // handle to animator component private Animat...
I am trying to create an authentication system using EJS and PG database, but I am having trouble getting the routing and rendering to work. In my `index.html` I have an anchor element that points to `signup.html`, which works. In `signup.html` I have a login form, but then when I try to submit it, I get an HTTP 405...
How to render a ejs view after sending POST form data to the server?
null
{"Voters":[{"Id":6868543,"DisplayName":"j6t"},{"Id":10871073,"DisplayName":"Adrian Mole","BindingReason":{"GoldTagBadge":"c++"}}]}
Support for mounting volume subpaths is only available in Docker 26.0.0 (release March 20, 2024) and later (the pull request merged [in janurary](https://github.com/moby/moby/pull/45687)). This adds the `subpath` option to volume mounts. Using `docker run`, we can mount the `pgdata` subdirectory of the `vol-web` vol...
There's a following table, called `fields`: [![enter image description here][1]][1] And there's a dedicated table to store its values, called `values` [![enter image description here][2]][2] I want to run a query to produce the following output: Finished | Faculity | Characteristic | Photo --...
How to have fixed options using Option.Applicative in haskell?
|parsing|haskell|optparse-applicative|
i am here to ask about the problem about this function that calculates the sum at a given depth in a tree, it is working in all cases but the last level, the compiler is giving me this : `[Done] exited with code=3221225477 in 0.309 seconds` and this is my code and everything you need(there is more other functions and...
What is the problem in my "sumAtBis" code?
|c|data-structures|binary-tree|
null
Getting error while typing public ExtentReports ext using NUnit.Framework; using AventStack.ExtentReports; using AventStack.ExtentReports.Reporter; namespace TestProject1.BaseClass { [TestFixture] public class BaseTest { public IWebDriver driver; pub...
C# Error: 'ExtentReports' is a namespace but is used like a type
|c#|selenium-webdriver|extentreports|
null
I have checked almost all previous question related to my query but did not find my solution. I'm facing issue with Full keyboard access accessibility when integrate it with scrollview. Inside scrollview textfield and secure textfield are accessible with "tab" key but other component like buttons are not accessible us...
pagination, next page with scrapy
|python|html|scrapy|request|screen-scraping|
null
I am having this error when I am installing yfinance. Any solution on that? kevin@KevindeMacBook-Air test % pip install yfinance --upgrade --no-cache-dir Collecting yfinance Downloading yfinance-0.2.37-py2.py3-none-any.whl.metadata (11 kB) Requirement already satisfied: pandas>=1.3.0 in ./v...
[Python]Subprocess error during installing yfinance
|python-3.x|yfinance|
null
I want to use java/kotlin in flutter with dart programming language. Java/kotlin has many functionalities which dart is lacking. But flutter is good in UI UX. So I want to use flutter with dart, but java/kotlin also for back-end programming. How can I do that?
Can we use java/kotlin code in flutter with dart code?
Try this: // ... app.Run(async context => { await context.Response.WriteAsync("I'm upgrading!\nTRY AGAIN LATER"); }); app.Run();
I'm unable to ping/or perform curl to any website from an instance which has only ipv6 address assigned whereas I'm able to ping/access internet if I create a windows instance with same settings (Ubuntu or Amazon Linux instances are not working), some of the details are as follows ip -6 addr: ![ip -6 addr](https:...
please delete flutter_mint package from the pubspec.yaml
I saw this piece of code in MDN while I was learning some syntax about Class in JavaScript today, which really confused me. [Here is it][1]: ```javascript class Rectangle { height = 0; width; constructor(height, width) { this.height = height; this.width = width; } } ``` If I create an instanc...
How do defalut values of Class fields work in JavaScript
|javascript|
I have the same problem due to my stupid mistake! I figured out that the problem came from the wrong database URL in application.yml before: "**localhost:3306//**" then I changed it to "mysqldb" and then compose(but did not delete the previous docker image) => I think you should delete it and compose a new one
rails minitest not picking up fixture properly, instance variable not percolating
|ruby-on-rails|minitest|
Ended up using a DTO, as suggested in the comments. This appears to be required, at least until a new, relevant version of the Nuget is realeased.
So I am basically very new to Assembly in general. I was trying to write this simple code where I need to sort numbers in an ascending order from source data and rewrite it into destination data. and whenever I run it, it shows: executables selected for download on to the following processors doesn't exist... here...
I have a spring boot application where I get request text and files as form-data If I send text data in code format, I get this error ``` JSON parse error: Unexpected character ('b' (code 98)): was expecting comma to separate Object entries at org.springframework.http.converter.json.AbstractJackson2HttpMessage...
{"Voters":[{"Id":2530121,"DisplayName":"L Tyrone"},{"Id":522444,"DisplayName":"Hovercraft Full Of Eels"},{"Id":839601,"DisplayName":"gnat"}],"SiteSpecificCloseReasonIds":[13]}
You can solve this by wrapping the command in a shell command: xterm -e sh -c php 1.php
{"Voters":[{"Id":3581217,"DisplayName":"Bart"},{"Id":681865,"DisplayName":"talonmies"},{"Id":16217248,"DisplayName":"CPlus"}]}
If you're encountering errors while pushing to a remote Git repository, it might not necessarily be your internet connection; it could be related to the buffer size. ### Solutions: 1. **Increase the buffer size**: You can adjust the buffer size to prevent this error. Run the following command in your terminal: ...
Im creating my own version of a `MarkDown` render. My goal is to read a string or file line by line then return the `MD` rendered as `HTML`. The problem im facing is my return and line by line functionaility is not-returning what I want and I dont know why. Ive tried debugging but everything seemed fine. Ive also trie...
How do I send an audio file to OpenAi?
|javascript|node.js|next.js|openai-api|
this would be a solution in Python. It reads the file from input.txt and counts the occurrances between the character "——". Then it writes the number of lines found per block to output.txt. I hope this meets your needs. ''' parses the file input.txt in the same path as this python file and counts ...
I understand from the code that there might be an issue with the `refreshControl` and the `onRefresh` method. Please check carefully; you are only updating setRefreshing to true and false, which doesn't seem to make sense.
I have route '/Book'. And i am displaying recently played list when user clicks on any recently played book. BookDetail component opens up which has book details on the same page and same route i.e '/Book' I have provided back button on top left corner. Desired behavior is when a user clicks on this back button this c...
Snap Back component on clicking back button
|reactjs|
null
|python|matplotlib|openai-gym|
I am trying to understand the internal workings of RowSet. How does it set the properties data and create a connection? ``` RowSetFactory factory = RowSetProvider.newFactory(); JdbcRowSet jdbcRowSet = factory.createJdbcRowSet(); jdbcRowSet.setUrl(".................."); jdbcRowSet.setUsername(".............
null
Creating a module for this purpose is inevitable and not a strenuous task at all. All u need is a `package.json` with an `exports` field to limit which submodules can be loaded from within the package. From the [official Node.js docs](https://nodejs.org/api/packages.html#exports): > The "exports" field allows defini...
Use row values from another table to select them as columns and establish relations between them (pivot table)
|mysql|
|bash|sed|rename|space|
I followed the recommendations from the best answer and also used a YouTube video that helped me set up the connection between Google Cloud Storage and Snowflake. (www.youtube.com/watch?v=4SBNUNMotRY) The most important point is creating the integration: CREATE OR REPLACE STORAGE INTEGRATION gcs_int TYPE = ...
``` import cv2 import matplotlib.pyplot as plt import tensorflow as tf from tensorflow.keras.preprocessing.image import load_img, img_to_array #load model using tensorflow model = tf.keras.models.load_model('./models/Object_Detection.h5') print('model loaded successfully') path = './test_images/N11.jpg' im...
The kernel appears to have died. It will restart automatically. whenever i try to run the plt.imshow() and plt.show() function in jupyter notebook
|tensorflow|matplotlib|jupyter-notebook|tf.keras|imshow|
null
I wrote some code in Pycharm last year, to loop through VAT numbers entered into the Gov website, so make sure they were still valid. It still works fine on the original laptop, but not on my other laptop, even thought the code is exactly the same (the only adjustment was for the location of the spreadsheet). I have gi...
Accessibility : Full keyboard access with scroll view in swiftui
|ios|swiftui|accessibility|swiftui-scrollview|accessibility-api|
I have a ksqldbcluster with 2 nodes. Sometimes i might receive an alert from grafana(which i monitor the cluster) that some queries are in error state. When i check the show queries i see that a number of queries have 1 PERSISTENT running and 1 ERROR. I restart first the second ksqdb docker instance. Sometimes is fixed...
KSQLDB Cluster persistent error on a number of queries sometimes
|ksqldb|
null
You'd have to edit file `gradle/libs.versions.toml` and add in TOML format: [versions] androidx_compose_bom = '2024.03.00' androidx_compose_uitest = '1.6.4' androidx_media3 = '1.3.0' # ... [libraries] androidx_compose_bom = { module = "and...
I have a website for url//link shortening, that uses Google Spreadsheets and Google App Scripts, I have been trying to find a way to redirect the users when they type my link, but app scripts either tries to load the redirection URL in an iframe which gets rejected by most sites these days or I have to open up a new...
I know it's a bit late, but I got it working by overwriting the default values. In my case, I needed to store my data in a global state, so it was a bit easy to implement this without a lib. But in order for this to work, you cannot reset your state. Also, I believe that **kwaku hubert** and **Hao Zonggang** did bas...
Easy way would be [`Date.prototype.getDay()`][1]: <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> const dayNumber = new Date().getDay(); console.log(dayNumber); <!-- end snippet --> If by all means you want to use something to "look it up", this wou...
{"Voters":[{"Id":20292589,"DisplayName":"Yaroslavm"},{"Id":2386774,"DisplayName":"JeffC"},{"Id":839601,"DisplayName":"gnat"}],"SiteSpecificCloseReasonIds":[13]}
I have a list of cities and distances between them: NewYork- Los Angeles 2 441 minutes NewYork- Los Angeles 1500 minutes NewYork- Dallas 100 minutes Los Angeles Washington 2456 Los Angeles Dallas 2435 the task is to find the shortes path to start from NYC and end in NYC and visit every cit...
How to find shortes path and visit them once
|python|
{"Voters":[{"Id":3874623,"DisplayName":"Mark"},{"Id":5014455,"DisplayName":"juanpa.arrivillaga"},{"Id":839601,"DisplayName":"gnat"}]}
{"Voters":[{"Id":13302,"DisplayName":"marc_s"},{"Id":1197518,"DisplayName":"Steve"},{"Id":839601,"DisplayName":"gnat"}]}
{"Voters":[{"Id":14732669,"DisplayName":"ray"},{"Id":5577765,"DisplayName":"Rabbid76"},{"Id":839601,"DisplayName":"gnat"}]}