instruction
stringlengths
0
30k
|java|spring-boot|apache-kafka-streams|spring-cloud-stream|spring-cloud-stream-binder-kafka|
I wrote an application that works with Bluetooth. I have no problem connecting to the application, but I cannot receive the data sent from the Bluetooth device from the application. I think I used the correct code block in the Bluetooth library documentation. Do I need to do anything extra? Can you help me? Document...
React native - how can i listen callBack function
|android|react-native|bluetooth|
I believe I wrote all my code correctly but I'm getting this error. Can someone help me understand? Exception in thread "main" java.util.InputMismatchException at java.base/java.util.Scanner.throwFor(Scanner.java:939) at java.base/java.util.Scanner.next(Scanner.java:1594) at java.base/java.util.Scanner.nex...
Simply get the desired direction var direction = (BufferObject.transform.position - transform.position).normalized; and then the desired rotation using [`Quaternion.LookRotation`](https://docs.unity3d.com/ScriptReference/Quaternion.LookRotation.html) like e.g. var targetRotation = Quaternion.LookRotat...
I have problems using the orm doctrine in my code when I execute the php command bin/console doctrine:database:create This gives me an error: Could not create database `my_db_name` for connection named default An exception occurred in the driver: could not find driver i'm training to increase my php skil...
PHP ORM DOCTRINE
|php|orm|doctrine|
null
Can't understand kotlin logic. For sush code inline fun inlined( block: () -> Unit) { block() println("hi!") } fun foo() { inlined { println("5") return@inlined // OK: the lambda is inlined println("5") } ...
Why non local return from inline function returns from lambda but proceed inline function execution?
|kotlin|lambda|inline|
``` Hello i'm new to pyside6 and python. So i build an code that will start my app, and when i run it, nothing appears on the screen as same as pycharm doesn't shoving any issues ``` ``` import sys import rec_rc from PySide6.QtWidgets import QApplication, QMainWindow from ui_Main_Window import Ui_MainWi...
You need to add a parent element with 100% width: <div class="relative z-[2] flex w-full flex-col justify-center align-middle text-white"> <div class="flex w-full flex-col items-center justify-center"> <input type="text" placeholder="Email Address" class="w-[70%]" /> <button class="text-...
I'm new to Laravel 10, and I recently installed Jetstream. When I run `php artisan route:list` in the console, I get the following error: `Class "verified" does not exist`. I do have `verified` in my Kernel: ```php protected $middlewareAliases = [ ... ... 'verified' => \Illuminate\Auth\Middleware\...
Resolving the 'Class does not exist' error in Laravel 10
|php|laravel|laravel-10|
Haven't tested it, but my guess is that the official way is to set it via the architecture type when calling cmake to create the build/project files: ``` The following generators are available on this platform (* marks default): * Visual Studio 17 2022 = Generates Visual Studio 2022 project files. ...
A stakeholder just requested me to create an XL-Deploy brand new plugin that extends from the official was-plugin-extensions-22.3.1.xldp plugin. The synthetic.xml file of the official plugin does have a block of code with 8 properties : [![Synthetic.xml with 8 properties][1]][1] We copied 3 of those 8 properties...
To folks interested in neural network, how do you see Buzsaki's approach to cell assembly in highlighting output as opposed to connection's strength?
Use `connect()` and `disconnect()`. You can then change the values of any `AudioNode` to change the sound. (The button is because `AudioContext` requires a user action to run in Snippet.) <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> play = () => { d.addEv...
One or more of Hosting's HTTP GET request for the ACME challenge failed: 2606:4700:3030::ac43:9347: Too many redirects, 2606:4700:3034::6815:319f: Too many redirects
I created a domain name from cloudflare, and Hoisted my static site hosted in google firebase, error in adding custom domain in firebase
|firebase|dns|cloudflare|hoisting|
{"Voters":[{"Id":4267244,"DisplayName":"Dalija Prasnikar"}]}
hello everyone i have an issue with safari/iphones that sometimes my website crash the eroror is "a problem repeatedly occurred" unfortunately it doesnt always happened on the same iphone and on some iphones it doesnt happen at all i tried all things that written in google like disable suggestions etc etc does a...
my website crash on safari The site sometimes crashes and I can't recover the crash
|iphone|safari|crash|
null
I was running a github code and i encounterd this error ``` PS C:\Users\91789\Desktop\Underwater-Image-Enhancement\LANet> Python train.py --input_images-path C:\Users\91789\Desktop\fish.jpeg ./data/trainA/ --label_images_path C:\Users\91789\Desktop\fish2.jpg ./data/trainB/ logs/ usage: train.py [-h] [--input_im...
null
I've completed the assignment as mentioned in the solutions. Here's the repo I'm trying to test on my local machine: https://github.com/xdp-project/xdp-tutorial/blob/master/packet01-parsing/README.org Here's my C code: ```c /* SPDX-License-Identifier: GPL-2.0 */ #include <stddef.h> #include <linux/bpf.h> #i...
|python-3.x|opencv|pycharm|computer-vision|tello-drone|
I'm following Devtiro's guide, but I encountered an error that I shouldn't have according to his guide. I'm trying to connect Spring Boot to a database (H2) for the first time. Here's the error: ``` org.junit.jupiter.api.extension.ParameterResolutionException: Failed to resolve parameter [com.example.dao.i...
No qualifying bean of type 'com.example.dao.impl.UserDaoImpl' available: expected at least 1 bean which qualifies as autowire candidate
|java|spring|spring-boot|h2|
null
|widget|alexa-presentation-language|
null
I am trying to use ngx-datepicker but whatever I do am getting the header(datepicker navigation section) empty. **expected outcome:** [![enter image description here][1]][1] **current result:** [![enter image description here][2]][2] [![enter image description here][3]][3] **my date picker ...
I cannot figure out how to install [_Gym Retro_](https://github.com/openai/retro?tab=readme-ov-file#gym-retro). I follow the official [documentation](https://retro.readthedocs.io/en/latest/developing.html#development) but without success. I have tried to check further online sources but again no useful. These are th...
Gym Retro failed installation
|python|failed-installation|openai-gymretro|
How do I remove the gaps between the subplots on a mosaic? The traditional way does not work with mosaics: plt.subplots_adjust(wspace=0, hspace=0) I tried using the grid spec kw, but no luck. import matplotlib.pyplot as plt import numpy as np ax = plt.figure(layout="constrained").subp...
I am attempting to send multiple images and data within the same observable. I conducted some research, but all I found was information on how to send a single file. My API is prepared to accept multiple files and data; I have tested it with Postman. ``` formData.set("IdUsuario", IdUsuario); formData.set("IdSucurs...
Sending multiple images and data in a single angular observable
I have a numpy array and corresponding row and column indices: ``` mat = np.array([[0, 1, 2], [3, 4, 5], [6, 7, 8]]) row_idx = np.array([0, 0, 0, 0, 0, 0, 1, 1, 1]) col_idx = np.array([0, 1, 2, 0, 1, 2, ...
When you load your unpacked extension in chrome, choose the /dist folder which contains the compiled version of your react app. [/dist folder in my project][1] [1]: https://i.stack.imgur.com/OEOzr.png
I have add questions form, and i have validating it using yup and react hook form but this error appear to me when just form rendered, here is error ( TypeError: Cannot read properties of undefined (reading 'reduce') ), and here is my yup schema ``` const schema = yup.object({ questions: yup.array().of( yup....
I have created an API where I am taking file uploads from the web and pushing them to MongoDB. I am getting this error 'hexoid is not a function.' Can you tell me how to fix this? Can you provide a reference link or GitHub repo where files are being pushed to MongoDB? Details are as follows. route.ts im...
null
IBM WebSphere WASX extension loginType
null
You could get your map from a custom streamable wrapper type which is documented in [Spring Data JPA reference](https://docs.spring.io/spring-data/jpa/reference/repositories/query-methods-details.html#repositories.collections-and-iterables). ```java @RequiredArgsConstructor(staticName = "of") public class Transact...
null
**C++ stoi throws out_of_range while converting int** It reports that you tried to access elements out of bound means out_of_range. It may happen any member functions wich are accessed by offset like std::bitset, std::basic_string, std::vector, etc. I think you should change the type of customer.id from int to...
We have been writing a java project and have come across an error when trying to compile. It is highlighting an error saying : ^ symbol: class Race location: class CyclingPortalImpl CyclingPortalImpl.java:86: error: cannot find symbol throw new IDNotRecognisedExceptio...
PySide6 runs code without issues but nothing appears
|python-3.x|pyside6|qmainwindow|qapplication|
null
|html|reactjs|next.js|html-email|
I'm trying to implement a function that super-netting the given list of sub-networks and returns the largest possible network/s, but it doesn't work correctly, the problem is that it returns outputs that isn't correct, the function was generated by Ai and I tried to modify it a lot and couldn't fix it, either Ai :) ...
wrong output from Supernetting algorithm
|c++|networking|
null
**disclaimer:** I am the author of `borb` Can you try accessing the `LayoutElement` inside the `TableCell`? That might work. It's a private property as `_layout_element`.
I'm using Tree-sitter to parse Python code and extract ASTs, and trying to manually traverse ASTs to infer types based on assignments and function definitions. But I'm struggling with accurately resolving types (variables, functions, classes) due to Python's dynamic typing. Specifically, challenges arise with: - In...
In `three.js` it is not possible to cast shadows with environment maps. You have to use a shadow casting light like a directional, point or spot light or fake shadows somehow. One option is to use `THREE.ShadowMesh` but this would only produce a planar shadow so it's not a full replacement of classic shadow mapping...
I am trying to build a GNOME extension for my personal use on my Ubuntu system. The purpose of this extension is to switch between LAMP versions. [![enter image description here][1]][1] [![enter image description here][2]][2] ``` const Indicator = GObject.registerClass( class Indicator extends PanelMenu....
{"Voters":[{"Id":1145388,"DisplayName":"Stephen Ostermiller"}],"SiteSpecificCloseReasonIds":[18]}
I recently developed a Python package for solving group lasso (and lasso): https://github.com/JamesYang007/adelie. It is largely inspired by the popular R package `glmnet` (I am one of the authors). Unfortunately, `glmnet` does not support group lasso and it requires some extra tricks to implement an efficient version....
When I make a project, I make a lot of folders and subfolders, separating files by topic. But it happens that the file paths are too long and Visual Studio gives an error. How can I fix it? a little project to make applications with all sorts of tests for school, right away I say that I am not American and now I am ...
I've created a live quiz application using Node.js and socket.io over web sockets. Briefly, there's a specific time limit for each question, and I'm sending the countdown to the user with io.to(roomName).emit('countdown', countdown); io.to(roomName).emit('question', question); along with 4-5 othe...
reading configuration file (mytest.exe.config)
|c#|wpf|
I have a little chatbox on my website and it has a simple php code I've put together to check for any undesired tags, and also a sort of psuedo bbcode for basic color and bold and stuff. It saves the chat to a datatable on my server. My problem is that any time a user has an apostrophe it won't go through. Even when co...
Class not compiling
|java|compiler-errors|
null
I'm using the [MAPIE](https://pypi.org/project/MAPIE/) Python library for conformal predictions. In the `MapieClassifier` I choose `method='score'`. When alpha is small (between 1% and 5%) I get non empty prediction sets. However when I look at a full range of alphas from 1% to 99% (e.g. `alphas = np.arange(0.01,1.00,0...
Using MAPIE for conformal predictions I get empty predictions sets when alpha is big
|machine-learning|
null
Looks like it is the absolute path that was the problem.. It did not need an absolute path. I removed the absolute path and just mentioned the filename since I was running it from the directory where the grafana.db was present.
> the number of days since [sic] 1999 Why not just use `DATEDIFF` to get the number of days? This will work for any of the date/datetime datatypes, without requiring intermediate CASTs. That is, `DATEDIFF(DAY, '1900-01-01', '2024-03-25')` will give you the exact same results as `CAST(CAST('2024-03-25' AS DATETIME...
Encountering Errors Running GitHub Project: Adaptive learning attention network for underwater image enhancement - Seeking Assistance
|python|github|
null
For anybody that comes across this, I ended up solving it. The Xero API documents are wrong in the CONTENT-TYPE to send as a header (and yes I had a syntax error for the content-type) Here is my code that finally worked Function XERO_Upload_InvPDF(dCounter) ' Generic call for a POST to upload PDF i...
In your .env file, update the following variables CI_ENVIRONMENT = development app.baseURL = 'http://localhost/<name of your project>/' app.forceGlobalSecureRequests = false Make sure your project is running in port 8080
I have created a virtual environment which contains Tensorflow 2.11. I am using this virtual environment's python as spark driver and executor python. The venv zip has been added as an archive in pyspark. I am reading tf record files from s3 and created a tf dataset called train_dataset. Calling model.fit ``` h...
`OnStartupTriggeringPolicy` compares the modification time of the log file with the startup of the JVM due to [LOG4J2-1440](https://issues.apache.org/jira/browse/LOG4J2-1440): all logging backends allow a reconfiguration to occur at any time, but the rollover must occur only once. > That suggests to me that Appende...
Nowadays, [Tree-sitter](https://tree-sitter.github.io/tree-sitter/) is an alternative to regex-based syntax highlighting that is used in a number of editors such as Neovim or Emacs.
I am currently stuck on a Python issue where I want to import scripts from another directory that is removed from the current one. The import structure is relative in certain scripts, and I do not want to change the import structure of many files. As an additional note, I want to run this file from the Command Prompt...
I am trying to create a Sign In with Google Button but everytime credentialManager.getCredential is called, it gives me : androidx.credentials.exceptions.NoCredentialException: During begin sign in, failure response from one tap: 10: Developer console is not set up correctly. I tried resetting the SHA-1 Fingerpri...
Error on Google Sign In CredentialManager, using Jetpack Compose
|android-studio|android-jetpack-compose|google-signin|credentials|android-credential-manager|
null
|python|blender|