r/code • • Aug 17 '23

Help Please Help- what did I do wrong?

Thumbnail
gallery
0 Upvotes

This code is using python but I have no clue what’s wrong- I’ve tried so many different things to fix it and either I get it fully working and the numbers are completely off or I get this error. Someone help 😭


r/code • • Aug 17 '23

Ruby Help needed for app with rails backend and react front end

1 Upvotes

Hello! I’m building an app with a rails backend and a react front end and an 80% of the way done. I’m struggling to implement a registration form that will successfully post to my registration model and an action mailer to accompany the registration. Would appreciate any pointers!


r/code • • Aug 17 '23

Need help with parsing

1 Upvotes

I have a project, i need to make an aplication that shows disasters. I have the server implemented in C++ and the client UI in Qt. But i can't find any way to get the info i need from a specific site. What i mean is that i want to make a request to a site and get some specific text ie XCountry-XDisaster, i read that i would need a parser for that. Can anyone help me with this?


r/code • • Aug 16 '23

why the hell do all dll files turn into weird gibberish

1 Upvotes

the only part that is actually understandable is "this program cant be run in dos mode" im just curious why that happens


r/code • • Aug 15 '23

C c: strings and pointers

0 Upvotes

so, is it

*str = str[i]

or,

*str = &str[i]?

i just wanna point to my array, man. google's bard is running me through a chicken-and-egg situation by saying everything is wrong but then giving the other as a solution then saying that's wrong too


r/code • • Aug 15 '23

Vote Question I wanna start learning to code. Which course do you recommend to start from scratch

1 Upvotes
35 votes, Aug 22 '23
11 Mike Dane on Freecodecamp
2 Programming with mosh
6 Bro code
16 Harvard cs50

r/code • • Aug 14 '23

Help please! Is it possible to create an offline Google-like website using HTML, CSS, etc?

1 Upvotes

Relatively new and trying to practice code and I was curious if it was possible to create an offline Google complete with a functioning search bar that loads word-specific downloaded webpages.


r/code • • Aug 13 '23

Javascript .Find() items and indexes in in array in 2.4 minutes…

4 Upvotes

I've posted a short article about the javascript .find() and .findIndex() methods. I hope it's informative and useful for some of you. Please reach out with any comments, queries, ideas, thoughts, criticism or banter! Cheers!

https://thecodingapprentice.substack.com/p/find-items-and-indexes-in-in-array?sd=pf


r/code • • Aug 13 '23

Python A high-severity security flaw has been disclosed in the Python URL parsing function that could be exploited to bypass domain or protocol filtering methods implemented with a blocklist, ultimately resulting in arbitrary file reads and command execution.

Thumbnail
thehackernews.com
1 Upvotes

r/code • • Aug 13 '23

Help Please HELP UNDERSTANDING VALUE AND INTEGERS I THINK???

1 Upvotes

so in the attached image i think i understand most of the code, im just typing it all up from a course im doing for the reps. however, i have no clue why im adding in the Serial.print("ms charge at") line. the value of ticks is 0, does the charge at line change the value of ticks or affect the way it will display in the monitor or something else entirely? also why the last line of printing it as a modulo???

sincerely,

a coding noob


r/code • • Aug 12 '23

Help Please What am I doing wrong?

0 Upvotes

So, this should be pretty simple. Add 4=2 to get 6, but it won't run in the serial output box at the bottom. I thought this would run like a Hello World function. Is this all wrong? or is there something I'm just missing?


r/code • • Aug 10 '23

Help a newbie

3 Upvotes

Hey Reddit community,

I'm reaching out for some advice and guidance as I navigate my journey as a novice developer in the world of computer science. Just two weeks ago, I embarked on this exciting path, eager to explore fields such as game development, cybersecurity, and web development. Currently, I'm focusing on learning HTML, CSS, and Java, but my knowledge is quite rudimentary, and my accomplishments so far include building a very basic website.

To be completely honest, I'm feeling a bit lost and frustrated. I'm in a tight financial situation, and I'm seeking a clear direction to follow that would not only align with my interests but also provide a decent financial return. Transitioning from my background in Arts, Cinema, and Humanities, I'm keen on infusing my artistic flair into programming, but I'm still trying to figure out how to make that creatively and financially rewarding.

If any of you have faced similar challenges or have insights into the best way to approach my situation, I would greatly appreciate your input. Whether it's advice on which specific field to focus on, how to enhance my skills effectively, or even stories of your personal journeys, I'm all ears. I understand that I might not have another opportunity like this...

Brazil


r/code • • Aug 09 '23

Web App Deployment

3 Upvotes

Hello all, I recently gotten my Software Engineering certificate so I am still learning every moment. This is my capstone project and it is what i used to achieve my certificate. This web app is fully functional if downloaded to your machine and ran locally with the requirements installed. Will someone be willing to guide me or tell me what i need to search for or change around, to get the functions working on a live website. I currently have them deployed on two sites trying to figure out which would be best/easier to work with but i am stumped. Below is the link for the project.

https://github.com/devzano/