You need to use @Body annotation to receive the body. Something like @Body String body. Request.getBody() will be null in Micronaut as it loads this data asynchronously.
Refer:
https://stackoverflow.com/a/75704413 https://micronaut-projects.github.io/micronaut-docs-mn1/1.1.x/guide/#requestResponse https://micronaut-projects.github.io/micronaut-docs-mn1/1.1.x/guide/#bodyAnnotation
I have the same problem, I changed it to db.all and it returns an array and works
I am trying to use the codes above in my theme's functions.php file, but all it does is to create a critical error. Am I adding it wrong? Thanks!
screenshot in url:
why not use a different email it might work.
Thanks @howlger for answering in the comments. Basically:
Is this an Eclipse bug?
No. It's a Lombok bug. Reported at https://github.com/projectlombok/lombok/issues/3830.
Is there any way this can be solved by tweaking Eclipse preferences?
No.
Follow up question....Im on mac and having simlar issues. Want to try the solution above but uncertain of the directories to make an attempt. Can anyone give a bit more detail to this?
I already have insight face installed (it fails to load in comfyui) and the .whl file fails to build.
All help appreciated.
Solution id like to use:
sudo apt-get install build-essential libssl-dev libffi-dev
mkdir temp
cd temp
git clone https://github.com/deepinsight/insightface/ .
pip3 install wheel setuptools
pip3 install -r requirements.txt
cd python-package
python3 setup.py bdist_wheel
pip3 install dist/insightface-0.7.3-cp311-cp311-linux_x86_64.whl
HERE's the startup showing where the error:
(base) mo-ry@Mac-Studio ~ % cd /Users/mo-ry/1AyEye/COMFYUI_PY311/ComfyUI
(base) mo-ry@Mac-Studio ComfyUI % python3.11 main.py
[START] Security scan
[DONE] Security scan
## ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2025-03-10 13:23:33.297
** Platform: Darwin
** Python version: 3.11.11 (main, Dec 11 2024, 10:25:04) [Clang 14.0.6 ]
** Python executable: /opt/homebrew/Caskroom/miniconda/base/bin/python3.11
** ComfyUI Path: /Users/mo-ry/1AyEye/COMFYUI_PY311/ComfyUI
** ComfyUI Base Folder Path: /Users/mo-ry/1AyEye/COMFYUI_PY311/ComfyUI
** User directory: /Users/mo-ry/1AyEye/COMFYUI_PY311/ComfyUI/user
** ComfyUI-Manager config path: /Users/mo-ry/1AyEye/COMFYUI_PY311/ComfyUI/user/default/ComfyUI-Manager/config.ini
** Log path: /Users/mo-ry/1AyEye/COMFYUI_PY311/ComfyUI/user/comfyui.log
Prestartup times for custom nodes:
0.8 seconds: /Users/mo-ry/1AyEye/COMFYUI_PY311/ComfyUI/custom_nodes/ComfyUI-Manager
Checkpoint files will always be loaded safely.
Total VRAM 131072 MB, total RAM 131072 MB
pytorch version: 2.6.0
Set vram state to: SHARED
Device: mps
Using sub quadratic optimization for attention, if you have memory or speed issues try using: --use-split-cross-attention
ComfyUI version: 0.3.26
ComfyUI frontend version: 1.11.8
[Prompt Server] web root: /opt/homebrew/Caskroom/miniconda/base/lib/python3.11/site-packages/comfyui_frontend_package/static
objc[53520]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniconda/base/lib/python3.11/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x108f983a8) and /opt/homebrew/Caskroom/miniconda/base/lib/libavdevice.60.3.100.dylib (0x3147d0800). One of the two will be used. Which one is undefined.
objc[53520]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniconda/base/lib/python3.11/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x108f983f8) and /opt/homebrew/Caskroom/miniconda/base/lib/libavdevice.60.3.100.dylib (0x3147d0850). One of the two will be used. Which one is undefined.
### Loading: ComfyUI-Manager (V3.30.3)
[ComfyUI-Manager] network_mode: public
### ComfyUI Revision: 3238 [9aac21f8] *DETACHED | Released on '2025-03-09'
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
Traceback (most recent call last):
File "/Users/mo-ry/1AyEye/COMFYUI_PY311/ComfyUI/nodes.py", line 2147, in load_custom_node
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 936, in exec_module
File "<frozen importlib._bootstrap_external>", line 1073, in get_code
File "<frozen importlib._bootstrap_external>", line 1130, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/Users/mo-ry/1AyEye/COMFYUI_PY311/ComfyUI/custom_nodes/insightface/__init__.py'
Cannot import /Users/mo-ry/1AyEye/COMFYUI_PY311/ComfyUI/custom_nodes/insightface module for custom nodes: [Errno 2] No such file or directory: '/Users/mo-ry/1AyEye/COMFYUI_PY311/ComfyUI/custom_nodes/insightface/__init__.py'
Import times for custom nodes:
0.0 seconds: /Users/mo-ry/1AyEye/COMFYUI_PY311/ComfyUI/custom_nodes/websocket_image_save.py
0.0 seconds (IMPORT FAILED): /Users/mo-ry/1AyEye/COMFYUI_PY311/ComfyUI/custom_nodes/insightface
0.0 seconds: /Users/mo-ry/1AyEye/COMFYUI_PY311/ComfyUI/custom_nodes/comfyui_instantid
0.1 seconds: /Users/mo-ry/1AyEye/COMFYUI_PY311/ComfyUI/custom_nodes/ComfyUI-Manager
0.7 seconds: /Users/mo-ry/1AyEye/COMFYUI_PY311/ComfyUI/custom_nodes/comfyui_faceanalysis
Starting server
To see the GUI go to: http://127.0.0.1:8188
# my code
import random
from threading import Thread
import time
import os
from inputimeout import inputimeout, TimeoutOccurred
# todo inputs
b = input("press enter to start")
lowest_numb = input("lowest number")
highish_numb = input("highish_numb")
time_for_qus = int(input("time for question"))
print(type(time_for_qus))
def ask_question():
ran_1 = random.randint(int(lowest_numb), int(highish_numb))
ran_2 = random.randint(int(lowest_numb), int(highish_numb))
print(f"{ran_1}x{ran_2}", end="")
try:
answer = inputimeout("", time_for_qus)
except TimeoutOccurred:
print("Times up!!!")
ask_question()
ask_question()
my goal is to make a multiplication game, but i am having trouble canceling the input
function
can you help?
PS. please respond
if you solved the problem please share the solution
did you figure out how to delete the unwanted white layer behind the custom tab bar?
I have the same issue:
Did you ever figure this out?
I am having similar, but my app hangs on the index.html file. So I just get the loading page. Hard refresh and all is good
If in the first example I already know the name of the group "test" and I want to know only the blocks contained in this group. How do I modify the example?
another question, is it possible to select a block and know which group it belongs to?
thanks
Mrz
I see it's been a while since this was discussed, but I wanted to ask—has anyone tried integrating Twilio IVR with a CRM for better call tracking and workflow automation? I'm curious if handling call routing based on real-time CRM data has worked smoothly for anyone. Also, any thoughts on handling Twilio’s concurrency limits when scaling up a virtual call center?
Sorry this is put as an answer as I can't comment due to the rep requirement, but I think you need to use the GraphQL API instead of REST.
I didn't find the ".git" folder on my project. I can see the ".gitattributes" and ".gitignore". please help me
How did you come to this conclusion? "Somehow this generates an error when Googlebot tries to index the pages and the error causes the Nuxt client-side code to show the 404 page."
We're currently having the same issue after upgrading Nuxt 3.9.3 to Nuxt 3.15.4 and upgrading major versions;
"@nuxtjs/i18n": "9.1.5",
"@nuxtjs/sitemap": "^7.2.4",
Is it possible to define different primary color set for dark and light mode in app.config.ts ? How it is done?
i don't know if u could resolve this issue. If so, how did u do it?
The answer with most vote just works like charm. Thanks for the help
I'm having the same issue. Did you find any solution?
Bump
I have the same problem, how you resolved it??
Did you manage to find a solution? Am I experiencing the same problem?
Well i used curl and included my session cookie, that worked for now :)
Give me crush report screenshot
Based on your description, the issue could be related to missing permissions or incorrect handling of app lifecycle events.
Can you check the error logs (Logcat for Android, Console for iOS) and send me the crash message? Also, which framework and programming language are you using?
No mention of this method in Telethon docs, but here is it:
https://tl.telethon.dev/methods/account/update_personal_channel.html
Why is this not working?
${if_match ${$battery_percent} > "20"}${color 774477}${battery_bar}$endif${if_match ${$battery_percent} <= "20"}${color FFA700}${battery_bar}$endif${if_match ${$battery_percent} < "6"}${color aa0000}${battery_bar}$endif
I put the if statements in series instead of nesting them, because nesting did not work.
Using neovim extension not vim one
Check this link: https://github.com/vscode-neovim/vscode-neovim/pull/1917
TLDR: Put this in settings.json
"vscode-neovim.compositeKeys": {
"jj": {
"command": "vscode-neovim.escape"
}
},
Enjoy!!
One of the best solution man! Is there any other way to do this in .NET 9 with less number of lines of code?
Ahh, I’ve been down this rabbit hole before, and I know how annoying this can be. It works fine on localhost
, but the moment you deploy, your cookies just vanish into thin air. 😤
This is almost always a CORS + cookie attribute issue. Let’s break it down and fix it step by step.
First, your API needs to explicitly allow credentials (cookies). Without this, your browser refuses to send them. Make sure your cors
settings look something like this:
const corsOptions = {
origin: "https://yourwebsite.com", // Your frontend domain (NO wildcards '*' if using credentials)
credentials: true,
};
app.use(cors(corsOptions));
🚨 Important:
credentials: true
is a must.origin: '*'
won’t work when credentials are involved. Set it to your frontend domain.Your request looks mostly correct, but double-check that the api
variable actually holds the correct URL. Sometimes, localhost
is hardcoded in development but doesn't match in production.
const send = async () => {
try {
const res = await fetch(`${api}/api/v1/user/profile`, {
method: "POST",
credentials: "include", // 👈 This is needed for cookies!
headers: {
"Content-Type": "application/json",
},
});
const data = await res.json();
if (res.ok) {
console.log("OK", data);
} else {
console.log("Error:", data);
}
} catch (error) {
console.error("Fetch error:", error);
}
};
Even if CORS is perfect, your cookies might still not work due to missing flags. When setting cookies, make sure your backend sends them like this:
res.cookie("authToken", token, {
domain: ".yourwebsite.com", // 👈 Needed for subdomains
path: "/",
secure: true, // 👈 Must be true for cross-site cookies
sameSite: "none", // 👈 Required for cross-origin requests
httpOnly: true, // 👈 Security measure
});
🚨 If you don’t use secure: true
, cookies won’t work over HTTPS!
Browsers block cookies with SameSite: 'None'
unless you are on HTTPS. So make sure:
✅ Your API is served over HTTPS
✅ Your frontend is served over HTTPS
If your API is http://api.yourwebsite.com
but your frontend is https://yourwebsite.com
, cookies won’t be sent.
Alright, if it’s still not working, here’s what I’d do next:
1️⃣ Open DevTools (F12) → Network Tab → Click the Request
2️⃣ Look at the Response Headers
Set-Cookie
header actually appear? If not, the backend might not be sending it.3️⃣ Try Manually Sending a Cookie from the Backend
Run this in your API response to see if cookies even get set:
res.setHeader("Set-Cookie", "testCookie=value; Path=/; Secure; HttpOnly; SameSite=None");
4️⃣ Try Sending a Request Using Postman
Вибір рідини для вейпу залежить від міцності нікотину та вподобань у смаках. Якщо ти новачок, краще почати з сольового нікотину 20-30 мг або звичайного 3-6 мг. Сольовий нікотин діє м’якше на горло, тому його частіше використовують у под-системах. Також звертай увагу на співвідношення PG/VG – для под-систем краще 50/50, а для більш потужних пристроїв – 70/30. Великий вибір рідин можна знайти в онлайн вейп шоп Milky Vape, де є популярні фруктові, десертні та тютюнові смаки.
Thanks for this, I just want to know if it is possible to capture the screen along with the scrollable content also using WebRtc method. I fyes could you please share an example or some code snippets.
Thanks, Raja Ar
I'd like to offer an app for testing. The best test management system! I recommend it! https://testomat.io/
Got the solution? I have the same issue. A few days ago everything worked... Tried the same thing again and got cuda exception...
Sorry, can't write a comment
Mr. Muhammad Umer can you help me find the right proto file for solution i tried with this Proto file
But it didn't work for me, guide me in finding the solution
I seem to have the same problem. I also didnt make any changes or updates, and cannot attach anymore when adding the debugger via debugpy.listen (). Starting the debugger from VSCode (not via listening) works perfectly fin though.
After listen(), I additionally get 'lost sys.stderr', which I had never encountered before.
Help is appreciated!
Is there an answer to this? Can't find a solution anywhere.
Those links may help you,plz check.
https://developer.android.com/guide/topics/resources/providing-resources#ResourcesFromXml
https://developer.android.com/studio/write/vector-asset-studio#referring
i using myhlscloud.com for my videos
did you use any additional local server environment for development?
I had an older and new Ubuntu installed (22.04 and 24.04) and the 22.04 was the default when opening VS Code. The issue turned out to be in the configuration of WSL as described here: How do I open a wsl workspace in VS Code for a different distro?
Check this out. https://stackoverflow.com/a/39777594. There are 25 answers maybe you find soultion for yourself.
Is it possible that I Can inject my custom Resolution Rule in databricks environment . Because this is working in my local open source spark , but when i run it in databricks , it doesn't register the resolution rules.
Please Help
You can use this javascripy library https://www.npmjs.com/package/@__pali__/elastic-box?activeTab=readme
Thank you to the amazing StackOverflow community for addressing important Python-related questions like "How to tell Python to stop writing history file?".
At Prava Software Solutions, a leading software development company based in Mancherial, we often encounter similar challenges while building custom software solutions, automation tools, and AI-driven applications for our clients. Community-driven platforms like StackOverflow are essential for finding quick, reliable solutions that help us deliver high-quality software products efficiently.
I am getting the same issue in react-native:0.78.0.
have u resolved ur problem?i meet the same floodwait
@Guy i am also having same issue ,on how to inject my token to my build hasuraprovider have you found any solution if yes can you post it here ,Thanks in advance
I also encountered this problem, how did I solve it in the end?
This can be the configuration error on php.ini on your local server. Try uncommenting relevent statement on the file. For an example, if your database is MYSqlite, you have to uncomment "extension=pdo_sqlite" in php.ini file.
This video also will help you. https://www.youtube.com/watch?v=QbX5EdD0Yok
Hi, I opened a new terminal (it automatically entered the venv I had running), this is what pip list shows me. However, it is still not running for me.
Is there anything else i can check/correct?
Using tsup and little configuration you can create your react or node packages easily:
Using tsup and little configuration you can create your react or node packages easily: https://medium.com/@sundargautam2022/creating-and-publishing-react-npm-packages-simply-using-tsup-6809168e4c86
I got the same issue,
Try through this documentation
https://cloud.google.com/sdk/docs/install-sdk
.admin.fcd-fcdna=" "
I am also facing this error. I have added a test user still it gives me the error.
So have you already fix this issue? i meet the same issue about it.
The same thing happens to me and I would like to know if you have already solved it so that you can tell me how, thank you
Hi sorry I have a similar issue. I used to have a .rprofile with memory.limit increasing my actual RAM limitation but recently I tried to open a .rdata and it always tells me it s blocked at 16.2 gb which is my physical limitation but before with memoryu limit increased, it was able to get beyong. Not sure if the last update I did today messed that up. I tried to increase this R_max v size in renviron but it does not seem to work. any idea where it comes from?
it says: impossible to allocate a vector of size 16.2gb
thanks
i have the same problem
did you fix itt ?
Support for ARM64 driver development for Windows 11 was added in 24H2 WDK https://learn.microsoft.com/en-us/windows-hardware/drivers/what-s-new-in-driver-development
do you have any update on this ? i have the same problem
I have the same issue and none of the solutions I've seen rectify it, incluyding clean workspace and restarting. I'm wondering if the spring classes are built with a later Java version that my version (17) can't handle.
I am able to build with maven. And If I click on one of the "not found" classes, vscode actually brings me to the correct class in the dependent lib. But it still infuriatingly insists that the package does not exist.
In an environment such as where I work, I am unable to download off the internet and I also know that there are vulnerabilities with Amazon Corretto.
There is a new version of IntelliJ IDEA 2024.3.4.1 available free for Community users.
I'll provide an update to this comment when I get it onboarded to test.
If anyone has any suggestions in a similar complaint environment - please let me know.
I've developed a user-friendly application that offers a solution similar to your problem. It's completely free. You can find a demonstration video on my channel, which you might find helpful: https://youtu.be/rXkFuG7K8Mw?si=pcCfckapbyc7f_CI
Also, the application is available on GitHub:
I've created a user-friendly application designed to solve this specific problem. I've uploaded a demonstration video to my channel, which you might find helpful:
https://youtu.be/rXkFuG7K8Mw?si=pcCfckapbyc7f_CI
Also, the application is available on GitHub
I have the same issue, and I did not find any solution. I think this issue happens when summing layers that had been summed before.
I am summing hundreds of raster layers. Firstly, they summed by day and then by months and then by years. Unfortunately, I have the same error. The surfaces are being cropped
I also ran into this issue, trying to upgrade glib to the latest 2.82.5, on a macbookpro running Catalina and python3.13... editing glib.rb did NOT work for me... now I am looking at installing pkg-config-wrapper via brew. Tried many other 'tips', so far no luck yet.
You might want to try this new plugin—it could be useful.
https://plugins.jetbrains.com/plugin/26550-mybatis-log-ultra
https://youtu.be/kWzavHWmlT0
Bro was your error resolved? I am getting the same error both with the Standard SPL token program and the Token Extensions 2022. I am using the following versions:
solana-cli 2.1.14 (src:035c4eb0; feat:3271415109, client:Agave)
anchor-cli 0.30.1
rustc 1.84.1 (e71f9a9a9 2025-01-27)
Also I am using Windows WSL.
I'd appreciate any help you could provide!
I need to see the exact error message from the frontend and the React code where you're making the POST request with Axios.
Can you share:
1 - The error message from the browser console or network tab.
2 - The React code handling the form submission.
Once I have those, I can help you fix the error!
Я начал изучать xv6 и пытался подключиться и отлаживать с помощью GDB в VS code. У меня получилось только когда я в файле .gdbinit закоментировал строчку кода с localhost:port. (@REM)
Check your firewall settings first, sometimes it blocks the port!
https://www.perplexity.ai/search/error-p1001-can-t-reach-databa-mHvOumSkQ6CCX9ZqMQPtOA
did you find a solution to this problem?
Have you ever try a AnotherWLAN like #NET-CLARO-WIFI, starting with #
I just cannot add it using these commands. Any other suggestion?
Hi did you find an answer to this? I’ve the exact problem. So I use python and call CMD [python, main, arg1, arg2] to make sure the docker file allows the arguments. But for me the control isn’t coming to if name main. Like it says application exec likely failed. And main.py needs arguments. I’m using argparse to handle the args and if there’s no args like the job is scheduled to run, it’s supposed to take a default set of vals for the args. Pls assist. Thanks.
I tried to run this code in https://github.com/bertrandmartel/aws-ssm-session and ran:
npm install http-server -g http-server -a localhost -p 3000 However, I cannot access http://localhost:3000/test/web.
Can anyone support me?
https://github.com/chakra-ui/chakra-ui/blob/main/sandbox/vite-jsx/src/App.jsx
follow vite-jsx in here.....................
Do you rename your DB path in each release?
YourApplication\app\release\apk
yeah that's a good trick thanks for having shared the insight!
didn't work with me my dropdown is sumoselect
You can embed videos. There is a way: here https://www.youtube.com/watch?v=HIgMsF7naJI
Were you able to disable dual apps successfully with adb,I need help to disable
Dual apps and speed boost in my hyperOs 1.9.0
Any update on this? I am also looking for a solution here.
I have managed to make good progress with this. I switched to using a simple Microsoft Basic Optical Mouse:
// Microsoft Corp. Basic Optical Mouse
#define USB_VENDOR_ID 0x045e /* USB vendor ID used by the device */
#define USB_PRODUCT_ID 0x0084 /* USB product ID used by the device */
and the following code now works for the former mouse:
int main(void)
{
libusb_device **devs;
int r;
int numread;
ssize_t cnt;
int counter = 0;
// connect SIGINT to function sigint_handler() //
if (signal(SIGINT, sigint_handler) == SIG_ERR)
{
printf("ERROR: Cannot Connect to SIGINT!");
}
// Block SIGALRM in the main thread //
sigset_t sigset;
sigemptyset(&sigset);
sigaddset(&sigset, SIGALRM);
pthread_sigmask(SIG_BLOCK, &sigset, NULL);
r = libusb_init(&ctx);
// r = libusb_init_context(/*ctx=*/NULL, /*options=*/NULL, /*num_options=*/0);
if (r < 0)
return r;
// libusb_set_option(ctx, LIBUSB_LOG_LEVEL_WARNING);
libusb_set_debug(ctx, 3); // debug level 3 //
cnt = libusb_get_device_list(ctx, &devs); // returns device list //
if (cnt < 0)
{
libusb_exit(NULL);
return (int) cnt;
}
print_devs(devs);
libusb_free_device_list(devs, 1);
// open device //
handle = libusb_open_device_with_vid_pid(ctx, USB_VENDOR_ID, USB_PRODUCT_ID);
if (!handle)
{
perror("device not found");
return 1;
}
// set auto detach/attach kernel driver //
r = libusb_set_auto_detach_kernel_driver(handle, 1); // enable = 1 //
printf("auto_detach result = %d\n", r);
// claim interface //
r = libusb_claim_interface(handle, 0);
if (r < 0)
{
fprintf(stderr, "usb_claim_interface error %d\n", r);
return 2;
}
printf("Interface claimed\n");
printf("Resetting Device\n");
r = libusb_reset_device(handle);
if (r < 0)
{
printf("ERROR %d resetting device!\n");
}
printf("*** Device Descriptor ***\n");
r = libusb_get_descriptor(handle, LIBUSB_DT_DEVICE, 0, desc_buffer, 1024);
dump_descriptor(r, desc_buffer, r);
//////////////////////////////////////////////////////
// allocate transfer of data IN (IN to host PC from USB-device)
transfer_in = libusb_alloc_transfer(1);
if (transfer_in == NULL)
{
printf("ERROR allocating usb transfer.\n");
}
// Note: in_buffer is where input data is written //
// libusb_fill_bulk_transfer(transfer_in, handle, USB_ENDPOINT_IN, in_buffer, LEN_IN_BUFFER, callback_in, NULL, 0); // NULL for no user data //
libusb_fill_interrupt_transfer(transfer_in, handle, USB_ENDPOINT_IN, in_buffer, 8, callback_in, NULL, 0); // NULL for no user data //
// submit next transfer //
r = libusb_submit_transfer(transfer_in);
if (r < 0)
{
printf("submit transter result = %d\n", r);
}
while (exitprogram == 0)
{
printf("exitprogram = %d\n", exitprogram);
// waiting //
// r = libusb_handle_events_completed(ctx, NULL);
r = libusb_handle_events(ctx);
if (r < 0)
{
printf("ERROR at events handling\n");
break;
}
}
printf("exitprogram = %d\n", exitprogram);
if (transfer_in)
{
r = libusb_cancel_transfer(transfer_in);
if (r == 0)
{
printf("transfer_in successfully cancelled.\n");
}
else
{
printf("ERROR cancelling transfer\n");
}
}
//////////////////////////////////////////////////////
// if you DONT release the interface, communication halts //
// release interface //
r = libusb_release_interface(handle, 0);
if (r < 0)
{
fprintf(stderr, "usb_release_interface error %d\n", r);
}
printf("Interface released\n");
// close device usb handle //
libusb_close(handle);
libusb_exit(ctx);
}
and in my callback function callback_in(), I dump the libusb_tranfer, i.e. transfer->status and the raw bytes received.
For the Microsoft mouse it all works well, and I get the following output, based on the mouse movement and buttons pressed:
...
LIBUSB_TRANSFER_COMPLETED
transfer flags = %b
transfer actual length = 8
0: transfer data = 4
1: transfer data = 0
2: transfer data = 255
3: transfer data = 0
4: transfer data = 4
5: transfer data = 0
6: transfer data = 255
7: transfer data = 0
exitprogram = 0
LIBUSB_TRANSFER_COMPLETED
transfer flags = %b
transfer actual length = 8
0: transfer data = 4
1: transfer data = 0
2: transfer data = 255
3: transfer data = 0
4: transfer data = 0
5: transfer data = 0
6: transfer data = 0
7: transfer data = 0
exitprogram = 0
...
The buffer size I use is 8, which is equal to the value of the maximum packet size of the USB Device descriptor, and in this case it works.
I am NOT sure what size of transfer to specify, but 8 works in this case.
When using difference mice, e.g. Logitech G5 Laser, or wireless Logitech mini mouse, instead of getting LIBUSB_TRANSFER_COMPLETED I get LIBUSB_TRANSFER_OVERFLOW, even if I use a HUGE buffer of 1024 bytes...
I looked up the USB HID document, but I am not sure HOW to send the proper control packet to configure other mice. On this webpage, https://www.usbmadesimple.co.uk/ums_5.htm it is explaned that you must send "an HID class report descriptor, which in this case informs the appropriate driver to expect to receive a 4 byte report of mouse events on its interrupt IN endpoint."
Any help of sending the proper HID class report descriptor would be much appreciated.
Many thanks it helped me right now !!!
The Above stated Steps helped me to resolve that warning now warning is not coming but will this react-native-sqlite-storage works in ios devices ??? that is my Doubt here
On line, on other websites, I have seen that equation as
a +b * exp (-2×(x-mu)**2)/(sigma**2))
Is the formula elsewhere incorrect? Or is it evaluating for a "different b" value of the same Gaussian curve peak of value "b"?
import { client } from '@/sanity/lib/client';
import { urlFor } from '@/sanity/lib/image';
import { MDXComponents } from '@/components/mdx/MDXComponents';
import Image from 'next/image';
import CarbonAds from '@/components/carbonAds';
import { Metadata } from 'next';
export interface FullBlog {
currentSlug: string;
title: string;
content: string;
coverImage?: any;
date: string;
}
const estimateReadingTime = (content: string): number => {
const wordsPerMinute = 200;
const wordCount = content.split(/\s+/).length;
return Math.ceil(wordCount / wordsPerMinute);
};
function formatDate(dateString: string): string {
const date = new Date(dateString);
const options: Intl.DateTimeFormatOptions = {
year: 'numeric',
month: 'long',
day: 'numeric',
};
return date.toLocaleDateString(undefined, options);
}
async function getBlogPostContent(slug: string): Promise<FullBlog | null> {
const query = `*[_type == "post" && slug.current == $slug][0] {
"currentSlug": slug.current,
title,
date,
coverImage,
content
}`;
try {
const post = await client.fetch(query, { slug });
return post || null;
} catch (error) {
console.error("Error fetching blog post:", error);
return null;
}
}
export async function generateMetadata(props: {
params: Promise<{ slug: string }>
}): Promise<Metadata> {
const params = await props.params;
const { slug } = params;
const post = await getBlogPostContent(slug);
if (!post) {
return {
title: 'Post Not Found',
};
}
return {
title: post.title,
description: `Read more about ${post.title} on Manish Tamang's blog.`,
};
}
export default async function BlogPost(props: {
params: Promise<{ slug: string }>
}) {
const params = await props.params;
const { slug } = params;
const post = await getBlogPostContent(slug);
if (!post) {
return (
<div className="text-center py-10 text-gray-500 text-lg">
Post not found or error loading.
</div>
);
}
const formattedDate = formatDate(post.date);
const readingTime = estimateReadingTime(post.content);
return (
<article className="container mx-auto py-12 px-6 max-w-3xl">
<h1 className="text-4xl font-bold mb-2 font-peachi">{post.title}</h1>
<div className="flex items-center justify-between mb-4">
<div className="flex items-center space-x-2">
<Image
src="/profile.png"
alt="Manish Tamang"
width={30}
height={30}
className="rounded-full"
/>
<span className="text-gray-500 text-sm">Manish Tamang</span>
</div>
<span className="text-gray-500 text-sm">
{formattedDate} - {readingTime} min read
</span>
</div>
<hr className="mb-8 border-gray-200 dark:border-gray-700" />
{/* Uncomment and adjust if you want to include the cover image */}
{/* {post.coverImage && (
<Image
width={100}
height={100}
src={urlFor(post.coverImage).url()}
alt={post.title}
className="w-full h-auto mb-6 rounded-[8px]"
/>
)} */}
<div className="prose dark:prose-invert max-w-none leading-relaxed font-geist">
<CarbonAds className="fixed bottom-4 left-20 w-1/4" />
<MDXComponents content={post.content} />
</div>
</article>
);
}
My code is giving the same error
.next/types/app/blogs/[slug]/page.ts:34:29
Type error: Type '{ params: { slug: string; }; }' does not satisfy the constraint 'PageProps'.
Types of property 'params' are incompatible.
Type '{ slug: string; }' is missing the following properties from type 'Promise<any>': then, catch, finally, [Symbol.toStringTag]
32 |
33 | // Check the prop type of the entry function
> 34 | checkFields<Diff<PageProps, FirstArg<TEntry['default']>, 'default'>>()
| ^
35 |
36 | // Check the arguments and return type of the generateMetadata function
37 | if ('generateMetadata' in entry) {
Static worker exited with code: 1 and signal: null
Please help me to fix this
The FFMpegKit and mobile-ffmpeg stopped their support, read here for more.
https://tanersener.medium.com/whats-next-for-mobileffmpeg-44d2fac6f09b
Not an answer, more of an observation. I am on the same chapter trying to learn Rust.
Am correct that the compiler creates two storage locations x_0 and x_1 to prevent unintended memory errors? And both are named "x" in the code?
Doesn't this make intended variable changes errors MORE likely and very hard to find because I now have two real memory locations the code calls the same thing and changes depending on where they are in the code. I could have a "Let" 1000 lines of code before the second "Let" and have no clue what is going on. It makes scope problems very difficult to diagnose.
It seems to me to encourage poor programming habits and reduce clarity. In short, what is the point of shadow variables except to be a lazy programmer?
Updating helped. I thought it was updated. Thanks for your Comment
using element.get_attribute("href")
Delete 'type=“text/javascript”'.
does there are any solution? I am not able to use wx, when I try to import it the console exists without givingany error. I'm using the newest version of python 3.13.2t free threading. I still can not find the problem.
This is not an answer, but I have same problem. Just want to share some observations from my side
I think there is something wrong with the mintAuthority
when minting
I'm able to run example from this document successfully https://developers.metaplex.com/candy-machine/guides/airdrop-mint-to-another-wallet#mint-without-guards, but if I replace this test wallet const walletSigner = generateSigner(umi);
by my wallet, I will encouter this error
Have you found the solution for this?
I don't have enough reputation to vote or comment, but thank you Freddie32. You helped me a lot.
Verified that the file exists
You’re verifying the wrong file. It’s looking for the AppDelegate from React Native Navigation. Did you follow all the iOS steps for installation?
What if it says refused to connect?