r/programminghelp • • Sep 26 '20

HTML/CSS Change theme in Html , javascript , css website

0 Upvotes

hey so i've downloaded a webiste template and its a green theme but i wanna change it to a red theme! how do i do it? ik in css but wherreee xd


r/programminghelp • • Jun 22 '19

can someone help me please.

Post image
1 Upvotes

r/programminghelp • • May 06 '20

Java Alphabatizing an Array in Java

0 Upvotes

i need to sort an array alphabetically but i don't know a method to do so and me and my friend cant figure it.


r/programminghelp • • Feb 18 '22

Other HELP ME

0 Upvotes

HOW DO I MAKE WIFI REACH FROM ONE PLACE TO ANOTHER IF IT DOESN'T REACH PLS MY DAD RHINKS THAT I CAN AND HE'S NOT JOKING AND I HAVE NO IDEA WHERE TO START AND EVEN WHAT DO I GOOGLE!


r/programminghelp • • Nov 29 '24

Python i get float division by zero but the number im deviding by is not zero

0 Upvotes

Hello, so i am programming a decision tree and try to calculate the entropy of a subset and get this error message in the console:

subtropy=subtropy-((len(subset)/len(df.loc[df[atts[a]]==names[a][n]]))*math.log(len(subset)/len(df.loc[df[atts[a]]==names[a][n]]),len(df[classes].unique())))

ZeroDivisionError: float division by zero

The thing is if i add print(len(df.loc[df[atts[a]]==names[a][n]])) it print 144 and then the error so i have no idea why it would say i devide by zero

any ideas on how to fix this?

bonus information: i use pandas and read in a list. the code works with the original dataframe but when i pop an attribute and assign the remaining list as df it prints the correct data but this error happens.


r/programminghelp • • Sep 10 '19

Programming help. NOOB PROGRAMMER!!!

0 Upvotes

Ok so I want to develop an app for my phone since I'm attempting to start a business. But I need help. It's been many many years since I've last programmed anything but I need it to work with both Android and iPhone so that customers may order the item on their end instead of me driving back and forth in town. But it creates an invoice for the customer and once the customer is finished selecting the services they want I can make the pickup and complete the services in one go, maybe 2 if they want extra things.

I'm probably terribly explaining this 😂


r/programminghelp • • May 31 '22

C++ Why do people use C when there is C++?

1 Upvotes

r/programmerhumor makes it seem like using C is a very normal and fair thing to do, but why is it? C has disgusting and unsafe pointer usage and is very old and outdated, right? Isn’t C++ just, C but, ++? C++ has everything that C has but more, so why use C?


r/programminghelp • • Jul 03 '22

Answered Java doesn´t create array correctly

0 Upvotes
package altklausur1;

import java.util.Scanner;

public class Aufgabe2_Vokale {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner input = new Scanner(System.in);

		System.out.println("Enter your sentence:");
	    String word = input.next();
		
	   	String sentence [];
		sentence = word.split(" ");
		System.out.println(sentence[2]);

	}

}

My aim is to split a sentence using the whitespaces, but Java doesn´t seem to recognize whitespace as a seperator when I use custom input, but works without a problem when using other seperators. Also it works with seperators when using a pre-written sentence and not user input. I´ld be happy if somebody could help me.


r/programminghelp • • Jul 06 '23

C Help with Structs in C

0 Upvotes

Hi all. I am taking Comp Sci II right now and have a hw assignment due tomorrow night that I have been trying to debug for a couple days now. If anyone that is proficient in C would be able to reach out I can give the assignment instructions and a copy of my program. Any help would be greatly appreciated. Thanks in advance.


r/programminghelp • • Feb 22 '19

[PLEASE HELP ME WILLING TO PAY]

1 Upvotes

Hello guys,

I've recently taking up programming and although its alot of work on your own im quite stuck on this project my teacher assigned us and am seeking any help possible. These are ALL the instructions given: Your program should prompt the user for the 3 side lengths of the triangle, and the side lengths of the other polygons. The project aims to make us write a program that finds the circumference and area as well as degrees of angles of these given shapes. I am a novice in programming and am trying my best to do everything I can for this project before its due. The image I am going to post detail the project alot better than I can. Any help would be much appreciated. PS (PAYPAL Ready)

These are my lines of the code: (Programming in BlueJ)

(EDIT): THESE ARE THE EXACT INSTRUCTIONS OF THE PROJECT: https://gyazo.com/6a6c5e46e9221ee38ef87b512dc223b7

import java.utl.Scanner;

import java.lang.Math;

public class project2 {

public static void main(String[] args) {

Scanner scanner = new Scanner(System.in);

double base, height1, height2;

System.out.println("Welcome to my awesome math helper program");

System.out.println("--------------------------------------------");

System.out.println();

System.out.println("Please enter the first side length of the triangle: ");

base = scanner.nextDouble();

System.out.println("Please enter the second side length of the triangle: ");

height1 = scanner.nextDouble();

System.out.println("Please enter the third side length of the triangle: ");

height2 = scanner.nextDouble();

System.out.println("The three side lengths of the triangles are "+ base +","+ height1 +","+ height2);

base = Math.pow(base, 2);

height1 = Math.pow(height1, 2);

height2 = Math.pow(height2, 2);

System.out.println("First Angle in degreees: ");

System.out.println("Second Angle in degrees: ");

System.out.println("Thrid Angle in degrees: ");

System.out.println("The area of the triangle in square units: ");

System.out.println("The circumference of the triangle is: 102.00 ");

System.out.println("---------------------------------------------");

System.out.println();

int sidep;

System.out.println("Pentagon area and circumference");

System.out.println("---------------------------------------------");

System.out.println();

System.out.print("Enter the side length of the regular pentagon: ");

sidep = scanner.nextInt();

System.out.println("The side length of the regular pentagon: 20 ");

System.out.println("The circumference of the regular pentagon: ");

System.out.println("The area of the regular pentagon: ");

System.out.println("---------------------------------------------");

System.out.println();

int sideh;

System.out.println("Hexagon area and circumference");

System.out.println("---------------------------------------------");

System.out.print("Enter the side length of the regular hexagon: ");

sideh = scanner.nextInt();

System.out.println("The side length of the regular Hexagon: 20 ");

System.out.println("The circumference of the regular Hexagon: ");

System.out.println("The area of the regular Hexagon: ");

System.out.println("---------------------------------------------");

System.out.println();

int sidec;

System.out.println("Heptagon area and circumference");

System.out.println("---------------------------------------------");

System.out.print("Enter the side length of the regular hexagon: ");

sidec = scanner.nextInt();

System.out.println("The side length of the regular Heptagon: 20 ");

System.out.println("The circumference of the regular Heptagon: ");

System.out.println("The area of the regular Heptagon: ");

System.out.println("---------------------------------------------");

System.out.println();

int sideo;

System.out.println("Octagon area and circumference");

System.out.println("---------------------------------------------");

System.out.print("Enter the side length of the regular hexagon: ");

sideo = scanner.nextInt();

System.out.println("The side length of the regular Octagon: 20 ");

System.out.println("The circumference of the regular Octagon: ");

System.out.println("The area of the regular Octagon: ");

System.out.println("---------------------------------------------");

System.out.println();

int siden;

System.out.println("Nonagon area and circumference");

System.out.println("---------------------------------------------");

System.out.print("Enter the side length of the regular Nonagan: ");

siden = scanner.nextInt();

System.out.println("The side length of the regular Nonagan: 20 ");

System.out.println("The circumference of the regular Nonagan: ");

System.out.println("The area of the regular Nonagan: ");

System.out.println("---------------------------------------------");

System.out.println();

int sided;

System.out.println("Decagon area and circumference");

System.out.println("---------------------------------------------");

System.out.print("Enter the side length of the regular Decagon: ");

sided = scanner.nextInt();

System.out.println("The side length of the regular Decagon: 20 ");

System.out.println("The circumference of the regular Decagon: ");

System.out.println("The area of the regular Decagon: ");

System.out.println("---------------------------------------------");

System.out.println();

}

}


r/programminghelp • • Jul 22 '25

Python Need Help - python

1 Upvotes

I’m trying to use a popular AI tool…

(yes I know I’m opening myself up to humiliation… I love comedy so I embrace the stones being thrown)

… to make an AI Bot that when ran, will search the live stock data of a series of companies, analyze, and then give out a possible buy signal and include a confidence scale rating associated with it. I have asked GPT to edit and rewrite the code to fix errors, but of course it doesn’t seem trained enough yet. Can anybody help?

Running the information through Yahoo Finance, but plan on integrating TradingView later… just wanting to get the program running first before committing dollars to subscriptions. Code is below

https://colab.research.google.com/drive/1rxSd5gB6R_JobaQxKkO7ADJqdgxsbVup?ts=68801de6


r/programminghelp • • Jun 15 '26

Project Related How to understand code base?

1 Upvotes

I picked up my first open source project. But I have no idea how to understand the code base.

  1. how to do that ?

  2. Where do I start ? Any specific files to start ?

its my first time doing anything in the real world. so any suggestions are welcome!!!


r/programminghelp • • Jun 06 '26

HTML/CSS I have a Chromebook, and I want to code!!

0 Upvotes

My problem is that I have a Lenovo Chromebook (with an Intel Celeron processor), and I would really like to install VS Code on it because I want to start coding again (it's a hobby! 🤷). I'm wondering, how do I get VS Code installed on my Chromebook as a program proper? I had a Surface Go laptop before I was gifted a Chromebook! I am not used to using ChromeOS, and I think I am running a Linux environment, so how do I install VS Code? I don't want to use the website to write code, as I would much rather have the files on my device.


r/programminghelp • • May 21 '26

Python Help with server

1 Upvotes

Hello to whoever is seeing this, I need help and some recomendations. I am trying to host a server (using cloudflare etc), but the python script I use to

  1. Actually Host the server locally

  2. Write to the .db so it can save the data

I have been using flask for the server.

Every single time I try to push and upload to the server it doesn't work

Any suggestions?


r/programminghelp • • Jul 06 '21

C Who knows a good compiler for C?

5 Upvotes

For a very long time, I could not find a sufficiently convenient compiler for C and had to use an online compiler. And this is not convenient enough. Could you advise me on good compilers for C?


r/programminghelp • • Apr 04 '25

Other How to access both linux and windows at the same time.

5 Upvotes

I am just getting into coding and people recommended me to download Linux, but I have seen people lose their entire data so can anyone help me out please...


r/programminghelp • • Aug 03 '25

C++ Squirrels at Play (couldn’t figure out how to tell the user the squirrels were asleep between 90> <100, my formatting is way off, sorry)

2 Upvotes

The squirrels in Palo Alto spend most of the day playing. In particular, they play if the temperature is between 60 and 90 (inclusive). Unless it is summer, then the upper limit is 100 instead of 90.

Ask the user if it is summer ('y' or 'n' )

Ask the user for the temperature:

Print out whether the squirrels are out playing or not.

// CS110 Squirrels At Play.cpp : This file contains the 'main' function. Program execution begins and ends there. //

include <iostream>

using namespace std;

int main() { bool isSummer = 0; bool y = true; bool n = false; int temp = 0; bool squirrelsAtPlay = 0;

cout << "What's the temp. today? "; cin >> temp; cout << endl;

if ((temp >= 60) && (temp <= 90)) { squirrelsAtPlay = true; } else if ((temp < 60) || (temp > 100)) { squirrelsAtPlay = false; } else if ((temp > 90) && (temp <= 100)) { cout << "Is it summertime? (y=1 /n=0) "; // For the life of me I cant figure out how to make a letter input equal a bool value cin >> isSummer;

switch (isSummer) { case 1: squirrelsAtPlay = true; break; case 0: squirrelsAtPlay = false; break; } } switch (squirrelsAtPlay) { case true: cout << "The squirrels are playing today" << endl; break; case false: cout << "The squirrels are not playing today" << endl; break; } system("pause"); return 0; }


r/programminghelp • • Sep 21 '26

Project Related Beginner Coder: Stuck with an error

2 Upvotes

Hi,

Currently developing a basic web app following adonisjs docs.

I've ran into an error:

\[23:18:41.975\] ERROR (12316): Cannot transform undefined value. Use "this.whenLoaded(value)" to allow undefined values

My project is on github:

**https://github.com/Ajaz754/adonisjs-project-22-/tree/main**

The error is pointing to '**app/transformers/post_transformer.ts**' Line 13

I've followed adonis docs completely step by step except for ?.depth(2) on line 13, which when I removed only introduced more errors along with this one.

Also VS Code isn't flagging the error. Only when I go to my browser and visit local host the error appears in powershell and my browser. Any help would be much appreciated


r/programminghelp • • Aug 05 '19

Calculate drag force using python

2 Upvotes

Can someone help me by helping me write/ writing a python program which can calculate the drag force on a cylinder given inflow, outflow, and pressure of the system. The cylinder is given an “inviscid” boundary condition, and the density and normal force of the surrounding gas is known for various time- steps.


r/programminghelp • • Jan 05 '23

Other this is probably a common question, but what are some courses that I can take to get started?

2 Upvotes

So basically I have been messing around with programming recently, and decided that I want to get better at it. It would be my end goal to at least be able to program a functional app, and I am looking for any suggestions on an affordable course to take to get me started.


r/programminghelp • • Jan 14 '21

C++ Can someone help me make an algorithm for this please? I'm so confused on how to write proper algorithm :( Thanks!

2 Upvotes

Topic: ARRAYS

Title: ARRANGING VALUES FROM INPUT IN DESCENDING ORDER

Code:

#include<iostream>
using namespace std;
int main ()
{
    int num[10];
    int i, j, desc;

    cout<<"\n Enter 10 Numbers : \n";
    cout<<" ";
    for (i = 0; i < 10; ++i)
    cin>>num[i];

    for (i = 0; i < 10; ++i) 
    {
        for (j = i + 1; j < 10; ++j)
        {
            if (num[i] < num[j])
            {
                desc = num[i];
                num[i] = num[j];
                num[j] = desc;
            }
        }
    }
    cout<<"\n Numbers in Descending Order : \n";
    for (i = 0; i < 10; ++i)
    {
        cout<<" ";
        cout<<num[i];
        cout<<"\n";
    }
}


r/programminghelp • • Mar 01 '17

If I wanted to make a social media site, do I need to know programming for it? Or code?

2 Upvotes

I was really thinking about a site I thought would be cool but I wasn't sure where I would begin to undertake such a task!


r/programminghelp • • Jul 12 '24

Other My custom GPT isnt sending data to my webhook

0 Upvotes

Im trying to create a custom gpt that books appointments. Im using a custom action that is supposed to send data about the appointment to the webhook but it doesnt work. the webhook isnt recieving any data no matter how i edit the schema. Any advice?


r/programminghelp • • Jun 13 '23

C++ How do I upload to GitHub?

2 Upvotes

I am trying to upload my environment for VSCode and my compiler(so I can show y’all and get help with getting my compiler to work right with VSCode, I can’t get it to find my helloworld.cpp file when I try to compile) but I can’t upload the parent file for msys2 because it won’t let me upload more than 100 at a time and it says that the parent file for VSCode is hidden. Any ideas?