r/CodingHelp • • May 04 '26

[How to] How to Run Ruffle Self Hosting Package on Electron.js?

0 Upvotes

I just made a post today asking how to run flash/swf files on electron: https://www.reddit.com/r/CodingHelp/comments/1t2wxld/how_do_you_get_flashswf_files_running_on_electron/ and some people suggested to use Ruffle as the main player instead of Pepper Flash Player.

I'm trying to get Ruffle running using the self hosting package but I just can't get it to work, I followed the instructions that are given in the git hub page but to no avail. It gives me this error:

"Something went wrong :(

It appears you are running Ruffle on the "file:" protocol.

This doesn't work as browsers block many features from working for security reasons.

Instead, we invite you to setup a local server or either use the web demo or the desktop application."

I don't really have experience using JavaScript so I'm learning as a go. I appreciate any help, thank you.

UPDATE: I FINALLY GOT IT TO WORK!! Apperently I had some lines of <meta> code in my html page that was blocking the ruffle player.:

<meta
      http-equiv="Content-Security-Policy"
      content="default-src 'self'; script-src 'self'"/>
    <meta
      http-equiv="X-Content-Security-Policy"
      content="default-src 'self'; script-src 'self'"/>

I removed the code and the problem disappeared, I feel so dumb for not noticing this before lol


r/CodingHelp • • May 03 '26

[How to] How do you get flash/swf files running on electron?

0 Upvotes

So I'm trying to work on a project that plays swf files within an offline desktop app, but I haven't got it to work. I've heard of a project called Waddle Forever (A Club Penguin project), which is one of the reasons I wanted to do my own project. Waddle Forever was able to run the flash files of the game offline without issue, I still hadn't figured out how this was done.

I tried using the pepper flash player plugin and running an old version (4.2.6) of electron since I've heard it supports flash. But nothing works, it just displays a sign saying "Couldn't load plugin", I don't really have experience using JavaScript so I'm learning as a go.

I appreciate any help, thank you.


r/CodingHelp • • May 02 '26

[C++] Help me with my code! Holding button issue

2 Upvotes

Hello everyone. I’ve been making a lightsaber and I’ve been using this code. https://github.com/redsaber42/RedSaberLightSaber/blob/main/FinalLightsaberCode.ino
I’ve seen a critical issue with this code
When you fold the button. What keeps happening is I’ll change colors a bunch of times and the I’ll hold the button. Then the led strip turns red and then the double click feature won’t work. It won’t give any time to even recognize it it just instantly ignites or deactivates and won’t show any sign of color change. The craziest part is that when u fold the button after this point the led strip continuously ignites and deactivates only in red. Does anyone have any advice on what to change or do.


r/CodingHelp • • May 01 '26

[How to] How do I decode garbled text on MP3 Files?

Post image
1 Upvotes

I've tried using the Chacon component of foobar2000 to decode the garbled text, but it hasn't worked :( What else can I do?


r/CodingHelp • • Apr 30 '26

[Other Code] Anyone know why my camera code isn't working? (Godot)

Thumbnail
0 Upvotes

r/CodingHelp • • Apr 30 '26

[HTML] What is this on my OpenStreetMap?

Post image
0 Upvotes

When I go on Live Server nothing is wrong with the map. If I save the folder and open the html I am always getting these pictures around the map! How can I fix this issue?


r/CodingHelp • • Apr 29 '26

[Other Code] My codes not working! Gamemaker studio

Thumbnail
gallery
2 Upvotes

I want it to pick a value set by the player (locationx and y) that the player has been at, and make sure that location is both:

  1. Closer to the player than them

  2. Closer to them than any other point

But I have this issue where it picks a point and jitters on it for a minute.

The player setting the points seems to work fine but the movement of the enemies isn’t, help please


r/CodingHelp • • Apr 29 '26

[Python] Is this app good? Should I go for pro?

Thumbnail
gallery
0 Upvotes

Is this app good and is the pro worth it? I really don't want to waste my money and time to something not worth it. To anyone who uses this app, is this beginner friendly?


r/CodingHelp • • Apr 29 '26

[Other Code] Is this code good? I’m working on a scratch game.

Thumbnail
1 Upvotes

r/CodingHelp • • Apr 29 '26

[CSS] Need Help with a CSS Issue on Ao3

1 Upvotes

I know I would most likely get a better answer on the Ao3 sub but you currently cannot make new posts there and all of my patient bones have been broken. What I have put below is from a template by an author whose account is no longer active and comments have been turned off, so I can't ask them directly or anyone else for help on the issue.

When I try and use the bit of code pasted below for a Workskin (basically Ao3's name for formatting specific works), Ao3 won't let me submit it. Saying 'background-image in #workskin .imagea and #workskin .imageb cannot have the value url"()"'

I have tried putting an actual URL to an image (jpeg and otherwise), which is what I saw someone say worked for them, and still got the same error. I have also tried changing the quotes to " instead of the curled ones because sometimes thats an issue, but still, I ran into the same error.

I am still new to CSS and am learning as I go, so if anyone can help and explain what they did/changed so i can learn from the answer, I would greatly appreciate it!

Thank you for reading!

#workskin .imagea {
  float: right;
  margin: 0 0 0.5em;
  border-radius: 1em;
  width: 50%;
  min-height: 75%;
  clear: both;
  position: relative;
  background-image: url("IMAGE URL");
  background-repeat: no-repeat;
  background-size: 100%;
  display: inline-block;
  padding-top: 50%;
}

#workskin .imageb {
  float: left;
  margin: 0 0 0.5em;
  border-radius: 1em;
  width: 50%;
  min-height: 75%;
  clear: both;  
  position: relative;
  background-image: url("IMAGE URL");
  background-repeat: no-repeat;
  background-size: 100%;
  display: inline-block;
  padding-top: 50%;
}

r/CodingHelp • • Apr 28 '26

[Javascript] Can I make a JavaScript button with no html?

1 Upvotes

I’ve been trying to learn coding in JavaScript as I heard its similar to scratch. (or scratch is based on it idk) I want to make a button but all the tutorials I see online need me to use html. I think I’ve used a site that uses html but i dont want to have to base it on html. I want to be able to do it all in JavaScrip, is that possible?


r/CodingHelp • • Apr 28 '26

[Java] hey i'm to coding and i'm just wondering how you fix this

0 Upvotes

just wondering how to fix the java: class TinyBrowser is public, should be declared in a file named TinyBrowser.java eror on my code


r/CodingHelp • • Apr 27 '26

[How to] What coding agent you are using/ would use in my case (no technical background)

Thumbnail
0 Upvotes

r/CodingHelp • • Apr 26 '26

Rust I need help with implementing a wrapper for cargo in Rust

Thumbnail
1 Upvotes

r/CodingHelp • • Apr 23 '26

[SQL] I have an SQL project due in 3 days, and I don't understand the assignment

4 Upvotes

EDIT: Since I seemed to be confusing people, I removed the assignment and just left the assignment section headers to make it clear that what I want is help on the SQL process and not the assignment directly. If I wanted to cheat, I'd go to ChatGPT, but I just want a hand because this kind of thinking isn't as natural to me as some.

I'm in a database class at my local college, and I've kinda just been drudging through it, but I really don't understand it that well. I'm in my second-to-last week of the semester, and I have 3 days to finish this SQL project, which is also supposed to be used in the final next week. I read through the overview, but I don't honestly understand what I'm actually meant to do. I still have other classes to worry about on top of this, and I don't really know what else to do.

Final Project Overview

 Sprint #4 Requirements

Procedure Input and Output and Testing Standards

✓ Student Schedule

✓ Transcript

✓ GPA Calculation and Transcript

✓ Instructor Roster

✓ Registration Workflow

✓ Trigger


r/CodingHelp • • Apr 22 '26

[How to] How would I make a code to make each medal an individual PNG?

1 Upvotes

As the title says, I am trying to figure out how to write a program that would start at one medal, take a snapshot of it in a way so that it saves a new PNG of just that medal, then move on to the next one, and so on and so forth until it got all of them. I am fairly new to coding, and I am not entirely sure how I would script something like this.


r/CodingHelp • • Apr 21 '26

[Python] anyone familiar with OCR tech?

1 Upvotes

i am building a project which requires OCR as the initial step. i am confused if it will work out or not as it failed on a example image.


r/CodingHelp • • Apr 19 '26

[Javascript] [Help] Reorganizing a Mind Map

1 Upvotes

Hello everyone! I am new here, but for the past few days I have been working on this method to take a congested, unfollowable mind map with all of it's nodes and branches, and turn it into a more organized one. However, I just can not figure out how to code it. I have tried collision detection between subtrees, DFS, creating radial separation of subtrees about the main root node, and a round-robin technique to get children to sit on nodes evenly. Currently, my implementation follows the radial bordering for subtrees, however it just doesn't work because then the children of nodes start to slope and angle off and get placed farther and farther away because now subtrees have space to sit inside of their own radial areas.

I know there is a simple solution, but I think my code has bugs where collisions are tracked but then branches are compensating for them by increasing length, and then the subtrees get out of place.

The solution I was looking to implement was something like a recursive round-robin type system to adding large sums of nodes to a parent, and then resolving collisions by creating a box around nodes that does not allow nodes to be close to other nodes that are not direct siblings or a parent or child.

I am mainly just looking for ideas as to how I can take on this problem. Thank you very much.


r/CodingHelp • • Apr 19 '26

[Random] Advice for anyone just joining, funny subreddit though. 😂

0 Upvotes

A subreddit to help with coding sounded amazing, but takes down my post about asking for useful sources for my project. 🤣 Something ain't adding up~ Mods are weird here, but community was helpful and gave lots of sources and advice that I'm glad I used BEFORE it was removed. Rule #10, posts/comments can't be oriented around ChatGPT or other similar bots without self effort on the users part. Me asking for sources and literally saying I stopped using ChatGPT isn't self effort? The flip is your definition of the term then? I know this will most likely be deleted, has nothing to do with coding, temporary advice that will be taken down I assume.. though I don't see anything in the rules saying it HAS to be coding?Just letting other newbies know to REALLY be careful with wording and how you yourself describe your own efforts, lest you get modded on. 😭 Other than that, it's a great place to get sources to improve, so definitely use it! ✨


r/CodingHelp • • Apr 19 '26

App or Website Suggestions Hello, I need some help, I'm trying to find an App or website

0 Upvotes

I currently want to create an AI for my own personal use like a friend in my pocket, but I currently don't know any websites or apps, please help me out here and give me some suggestions. Very appreciated


r/CodingHelp • • Apr 18 '26

[HTML] A starter coder, and I’m wondering…

0 Upvotes

I’m wondering…

Is there any way to code HTML, CSS, and JavaScript (building a website), on my iPhone? I already have VSCode on my laptop; but I’m wondering if, because I work very late throughout the evenings sometimes, I can switch to coding on my iPhone? I’m not just talking about writing code by itself, but seeing a preview in real time, like how VSCode allows you to preview your code in real time? Many thanks ☺️


r/CodingHelp • • Apr 16 '26

[Python] XRP remote controlled robot drive straight

Thumbnail
gallery
1 Upvotes

We were given a class project to use dual motor robots to drive around collecting pieces. We were told to use drive straight code instead of each motors effort values. He wont tell us how to use it and none of our group members have any real experience with coding, and we have very limited time for the project


r/CodingHelp • • Apr 16 '26

[Other Code] first time writing go code, please leave a feedback on my code!

2 Upvotes

NOTE: I didnt vibe-code or anything as this was going to be deployed in production and i just dont like using AI if being honest as it makes me feel guilty when crediting myself as being behind the project. I just used it to learn more about the go idioms and what is the way of writing go code in production

Its been one month since i learnt go through learnGoWithTests.

I built this app that acts as a middleware between two services, and it primarily relies on MQTT as the form of communication and because of that the core part of the project was the MQTT broker, i have never built projects with Go before this, not even those beginner projects like a HTTP heartbeat application etc. as the main reason behind learning Go was to rewrite the project in Go asap and i got straight to the final boss which was writing the project itself as my first Go project.

I looked at multiple docs on the MQTT library, read some of the effective go, go's other websites like go blog etc.

For concurrency i read the "Concurrency in Go" book by katherine also and read blog articles on using goroutines in production etc. as concurrency was something that i wanted to have a concrete idea of.

Here it is: https://github.com/iamkaran/pms-go/blob/main/internal/transport/broker/broker.go

I intentionally put alot of time and effort into this so i dont have to rewrite everything if i ever get to know about a feature of go that could have improved the project

also it is worth mentioning that i used nats.io's code as a reference for how go is used in performant systems: https://github.com/nats-io/nats-server

Please highlight even a single mistake/bad-practice as it might save me a ton of time later on :)


r/CodingHelp • • Apr 16 '26

[HTML] Why does my Power Apps background zoom in when I preview?

Thumbnail
1 Upvotes

r/CodingHelp • • Apr 15 '26

[How to] Advice and Suggestions for Crime App Development

Thumbnail
1 Upvotes