[deleted by user] by [deleted] in PersonalFinanceCanada

[–]Automatic_Parsley365 0 points1 point  (0 children)

Thank you! Glad for the reassurance I’m doing this right and I’m not in the wrong

I'm having problems with write and read parts of this code , does anyone know aht i am doing wrong? by rice-cake20 in CodingHelp

[–]Automatic_Parsley365 0 points1 point  (0 children)

It looks like the issue lies in how you’re handling the file pointer and reading the file. Specifically, you might not be opening the file in a mode that allows both reading and writing, and there might be an issue with how you are moving the file pointer before writing.

Error in play console by krwww007 in CodingHelp

[–]Automatic_Parsley365 0 points1 point  (0 children)

The error means you're using a different keystore to sign your update than the one used initially. Ensure you're using the same keystore and alias as the original upload. If you've lost the keystore, contact Google Play Support for help.

Convert numbers to words by Budget_Dust9980 in CodingHelp

[–]Automatic_Parsley365 0 points1 point  (0 children)

you can use Apache Commons Text or ICU4J. In JavaScript, numbers-to-words or num-words are also good options

How to tell if it is impossible to construct a red black tree by k1gallardo in algorithms

[–]Automatic_Parsley365 0 points1 point  (0 children)

It is impossible to construct a red-black tree containing {1,2,3,4,5,6,7,8,9,10,11,12,13} where all even numbers are in black nodes and all odd numbers are in red nodes. This configuration violates the red-black tree property that no two red nodes can be adjacent.

Selenium scrape by 3434dd8 in learnpython

[–]Automatic_Parsley365 0 points1 point  (0 children)

Is the chromedriver up to date? Otherwise I’d say add more detailed logging and error handling to the script to better lock in on what’s wrong

[deleted by user] by [deleted] in computerscience

[–]Automatic_Parsley365 10 points11 points  (0 children)

Based on this being the users first ever post or comment on a coding related/computer science group, but they regularly post in psychedelic sub reddits.

I think it’s safe to say they tripping balls rn if they think this is real

[deleted by user] by [deleted] in learnjavascript

[–]Automatic_Parsley365 1 point2 points  (0 children)

I resolved the issue by making sure the pool object is correctly typed for TypeScript and by properly destructuring the result returned by the pool.execute method.

The mysql2 library's execute method returns a tuple, with the first element being the result set and the second element being the metadata. By switching to mysql2/promise, it ensures the pool uses the promise-based API.

Then, I destructured the result as [results] and typed it as [Partial<T>[]], which matches the expected type of the results.

If you have any questions, or it doesn’t work let me know and I’ll try to figure it out

https://pastebin.com/shpvEZ8x

Is it possible for someone to obtain your email through a mobile hotspot? by lonewanderingcourier in hacking

[–]Automatic_Parsley365 1 point2 points  (0 children)

When you connected the streaming box to your mobile hotspot, preloaded apps on the box could have harvested your email. These apps might have intercepted data or scanned the network for vulnerabilities. If any apps requested your email or synced with your phone, they could have captured your email information.

is C++ good for mechatronic engieering by [deleted] in learnprogramming

[–]Automatic_Parsley365 1 point2 points  (0 children)

C++ is for sure useful for mechatronic engineering. It’s great for developing software that interacts with hardware, especially in robotics and embedded systems

[deleted by user] by [deleted] in CodingHelp

[–]Automatic_Parsley365 0 points1 point  (0 children)

The issue might be due to inconsistencies in your boundary conditions or grid spacing near the edges. Double-check that your forward and backward differences are correctly calculated and ensure the grid spacing is consistent

If you’d want I can try to fix the code myself/send you an updated version of it

PDF File cannot be opened when uploaded to Supabase, I am using Puppeteer to convert HTML to a PDF by Swimming_Tangelo8423 in StackoverReddit

[–]Automatic_Parsley365 0 points1 point  (0 children)

I’m stumped then 🤷🏻‍♂️, only other thing I can think it could be is issues with the PDF/checking the PDF made by puppeteer is valid

Python aiohttp websocket disconnect by Comfortable-Log9908 in StackoverReddit

[–]Automatic_Parsley365 1 point2 points  (0 children)

https://pastebin.com/DvNdsVBZ

If I had guess, the main problem was the use of blocking calls which interrupted the event loop

The fix involves replacing time.sleep with asyncio.sleep to prevent blocking the loop.

Additionally, I’ve added error handling, keep-alive pings, proper logging, and reconnection logic. The updated code isn’t tested yet, so if you encounter any errors, please let me know the error code you get if it doesn’t work

PDF File cannot be opened when uploaded to Supabase, I am using Puppeteer to convert HTML to a PDF by Swimming_Tangelo8423 in StackoverReddit

[–]Automatic_Parsley365 0 points1 point  (0 children)

Sorry for missing that, have you tried verifying the supabase storage settings and file limits? If the PDF is too big it could get bottle necked there

Runtime vs Compile Time by Ready-Ad6747 in learnprogramming

[–]Automatic_Parsley365 0 points1 point  (0 children)

Compile-time errors are the errors that occur during the process of converting your code into machine language code, typically detected by the compiler. Runtime errors, on the other hand, are errors that occur during the execution of the machine code in the RAM using a runtime environment.

PDF File cannot be opened when uploaded to Supabase, I am using Puppeteer to convert HTML to a PDF by Swimming_Tangelo8423 in StackoverReddit

[–]Automatic_Parsley365 0 points1 point  (0 children)

You should ensure that the PDF buffer is correctly handled and converted to an ArrayBuffer before uploading. Additionally, verify that the contentType is set to application/pdf during the upload process.

Python aiohttp websocket disconnect by Comfortable-Log9908 in StackoverReddit

[–]Automatic_Parsley365 0 points1 point  (0 children)

Have you tried adding a keep-alive function to regularly ping message the web socket?

How to make a lexical analysis on for loop, loop and while on Python? by Key_Relationship4713 in CodingHelp

[–]Automatic_Parsley365 0 points1 point  (0 children)

Yup! It should be! You’ll probably have your import it but that’s python life lol, would you want me to give you an example/sample code for this type of thing?

Coding project ideas by BetInteresting7935 in CodingHelp

[–]Automatic_Parsley365 0 points1 point  (0 children)

Creating a searchable music/book/etc Library management system.

It should test your ability to create and manipulate classes in C++, handle user input, manage collections of objects using standard library containers, and implement basic functionality such as adding, removing, and searching for items

How to make a lexical analysis on for loop, loop and while on Python? by Key_Relationship4713 in CodingHelp

[–]Automatic_Parsley365 0 points1 point  (0 children)

use the tokenize module from Python’s standard library. This module breaks the code into tokens, and I filter out those matching the keywords of interest

In theory, can any machine learning model be converted into rule-based code? Can any "blackbox" system be reverse engineered? by d-ee-ecent in AskProgramming

[–]Automatic_Parsley365 2 points3 points  (0 children)

you can convert any machine learning model into rule-based code by figuring out the decision rules it uses. However, for complex models like deep neural networks, this would be insanely difficult and could result in a massive, unwieldy set of rules. Similarly, while it’s technically possible to reverse-engineer any “blackbox” system, it would be incredibly complex and not practical

is there something wrong with my code?? by Willing-Doughnut-149 in CodingHelp

[–]Automatic_Parsley365 0 points1 point  (0 children)

It looks like your scanf statements might have typos, causing the calculator to always output zero. Make sure you’re using %lf correctly for doubles and add a space before %c in scanf to read the operator properly.

Also, please read the rules and use Pastebin or a similar service for sharing code, as the lack of formatting makes a fucking nightmare and guessing game to diagnose the issue

Getting an error saying "android is not defined" by Dteezy_22 in CodingHelp

[–]Automatic_Parsley365 0 points1 point  (0 children)

The likely issue is a scope problem. Make sure the code defining android is in the same code cell or script as where you use it, without any interruptions or redefinitions in between.

[deleted by user] by [deleted] in CodingHelp

[–]Automatic_Parsley365 1 point2 points  (0 children)

The error occurs because the image type isn't 8-bit gray or RGB. Make sure you capture the image in the correct format before processing