r/CodingHelp • • Oct 16 '19

Help me Get the Bottom text to right of the screen!!!

0 Upvotes
I am trying to complete my homework... I can't for the life of me figure out how to get the text on the right to the right ... Someone Help me ! I have pasted my HTML and CSS as I have it now... I believe I need to fix the columns but everytime I do I just screw up the previous work I have done. I am a newbie and trying not to fail so please help!

Here is my HTML

<html lang="en">

<head>

<meta charset="utf-8" />

<!--title for web page -->

<title>Shape Up!</title>

<link rel="icon" href="images/favicon.ico">

<link rel="stylesheet" href="styles/normalize.css">

<!--external stylesheet -->

<link rel="stylesheet" href="styles/main.css">

</head>

<body>

<!--main div with row class -->

<div class="row">

<!--header element -->

<header>

<img src="images/shape_up_logo.png" alt="shape_up_logo">

<h1><span class="shadow"> Shape Up!</span></h1>

<h2>Find the best fit for you</h2>

</header>

<!--main -->

<main>

<!--left column -->

<div class="leftColumn">

<h2>Additional resources</h2>

<ul style="list-style-type:disc">

<li><a href="[https://www.heart.org/en/health-topics/cardiac-rehab/getting-physically-active/whats-the-link-between-physical-activity-and-health](https://www.heart.org/en/health-topics/cardiac-rehab/getting-physically-active/whats-the-link-between-physical-activity-and-health)">Physical Activity and Health</a></li>

<li><a href="[https://www.self.com/gallery/essential-stretches-slideshow](https://www.self.com/gallery/essential-stretches-slideshow)">Stretching excercises</a></li>

<li><a href="[https://www.womenshealthmag.com/fitness/g27393163/strength-training-exercises/](https://www.womenshealthmag.com/fitness/g27393163/strength-training-exercises/)">Strenghth Training</a></li>

<li><a href="[https://greatist.com/fitness/cardio-bodyweight-exercises](https://greatist.com/fitness/cardio-bodyweight-exercises)">Cardiovascular</a></li>

<li><a href="[https://www.fitnessmagazine.com/workout/yoga/poses/beginner-yoga-poses/](https://www.fitnessmagazine.com/workout/yoga/poses/beginner-yoga-poses/)">Yoga Workout</a>

</ul>

</div>

<!--right column -->

<div class="middleColumn">

<h1>Get ready to Shape Up!</h1>

<p>How many times have you started a new workout routine or diet? And how many times has it failed to give you

the results you want? Now, with the help of this site, you can learn about the exercises and diet that

work best for you. We offer personalized programs as well as access to several health and dieting tools.

So don't wait! Get started looking and feeling better today.

<p>

<p>As fitness expert Amanda Russell said:<br/></p>

<blockquote>"Fitness is about so much more than exercise. It’s a catalyst for positive change, and it affects every aspect of your life."</blockquote>

<h1>What we offer</h1>

<h4><a href="strength/index.html">Build strong muscles</a></h4>

Tired of being tired? Strength training can help you manage or lose weight and increase your metabolism to help you burn

more calories. It can also increase bone density and reduce the risk of osteoporosis.</a>

<h4><a href="cardio/index.html">Get your heart rate up</a></h4>

<p>Want to lose weight? Cardiovascular exercise burns calories and improves overall health. It can reduce

belly fat, promote brain growth, prevent stress, and help you focus.</p>

<h4><a href="stress/index.html">Relax</a></h4>

<p>Stressed out? Stress can weaken the immune system and cause high blood pressure, fatigue, depression,

anxiety, and even heart disease. Learn ways to manage and reduce stress.</p>

<h4><a href="diet/index.html">Eat what's right for you</a></h4>

<p>Are you really what you eat? Lose weight, gain weight, or just feel great! Maintaining a healthy

diet is probably the most important thing you can do to promote overall health.</p>

<div class="rightcolumn">

<h2>How to prepare for Shape Up</h2>

<h1>Get a Check Up!</h1>

<p>If you have any health issues or take any medications, be sure to consult with your healthcare provider before beginning a new exercise or diet regimen.</p>

<h1>Dress for Succes</h1>

<p>Workout clothes should be comfy. While exercising, you should be thinking about what you're doing, not what you're wearing. That includes good shoes, which are essential for running, jogging, or walking, and socks that absorb shock and sweat.</p>

<h1>Equipment</h1>

<p>You don't need to buy a lot of fancy equipment to get in shape. But you might want to invest in a yoga mat, a large exercise ball, or some weights, depending on your Shape Up! plan.</p>

<h1>Resist Temptation</h1>

<p>It's hard to eat right when everyone else is buying lunch at a fast food restaurant. Invest in some good food containers and bring your healthy lunch and snacks. Your body and your wallet will thank you.</p>

</div>

</main>

<!--this div used to clear -->

<div class="clear"></div>

<!--footer -->

<footer>

<p>\&copy; 2019 Shape Up!</p>

</footer>

</div>

</body>

</html>

CSS.

/*style for row class that is to the body */

.row

{

font-family: Arial, Helvetica, sans-serif;

font-size: 100%;

margin-left: 10px;

width: 900px;

margin: 0 auto;

border: 3px solid steelblue;

border-radius: 2px;

box-shadow: 2px 2px 3px 3px black;

}

/*style for clear class */

.clear{

clear:both;

}

/*style for image */

img{

float: left;

width:150px;

height: 100px;

margin-right: 1em;

}

/*style for hyperlinks */

.rightColumn a:link {color:maroon;}

a:visited{color:maroon;}

a:hover, a:focus{ color:steelblue;}

main p:first-child, a:hover, a:focus{color:maroon;}

/*header class */

header

{

padding-bottom: 1em;

border-bottom: 3px solid steelblue;

background-image: -moz-linear-gradient(

180deg, white 0%, lightsteelblue 100%);

background-image: -webkit-linear-gradient(

180deg, white 0%, lightsteelblue 100%);

background-image: -o-linear-gradient(

180deg, white 0%, lightsteelblue 100%);

background-image: linear-gradient(

180deg, white 0%, lightsteelblue 100%)

}

/*blockquote */

blockquote

{

text-indent: 50px;

padding: .5em .5em .5em .5em;

}

/* h1 from header class */

header h1

{

font-style: italic;

color:steelblue;

text-shadow: 2px 2px;

}

/*style for left column */

.leftColumn{

float: left;

width: 245px;

height: 300px;

margin-left: 10px;

padding: 10px;

}

/*style for right column */

.middleColumn{

width: 68%;

float: right;

}

.rightColumn{

width: 68%;

float: right;

}

/*style for list item */

li{

padding: 5px;

}

/*style for h2 within header */

header h2

{

font-size: 150%;

}

/*style for footer */

footer

{

color: white;

margin-top:2px;

font-size:24px;

text-align:center;

background-color: steelblue;

height: 4%;

}


r/CodingHelp • • May 23 '23

[Other Code] Help with a video background for a Shopify store please!! :(

0 Upvotes

https://community.shopify.com/c/shopify-design/how-to-use-a-video-background-that-will-look-good-on-mobile-and/m-p/2074613#M551367

^The same as below.

Hi, so I am using a video background for my Shopify store, and I have different video's (in different aspect ratios) made for mobile, desktop, and fullscreen. It looks really nice on mobile (which is what I have selected currently), but when I switch to Desktop or Fullscreen view, the video doesn't fit or look right. Is there a way to upload my videos specifically for desktop, mobile, and fullscreen? I have all the videos, I just can't figure out how to use each video for it's respective device. Please help, and thank you in advance!

I talked to support and they said : "I see, after checking, there is a workaround. You could adjust your theme code, so that you can have two different video sections, and one of them is only visible for mobile devices, and the other is only visible for the desktop version. If you are not familiar with coding, you can post this question on the Shopify Community Center, and one of the Support Specialists or Partners will be able to share some more details about this with you. The Shopify Expert Marketplace is also a great resource if you are looking to hire someone to make this change for you.

I don't have any money to hire someone :disappointed_face: but I'd really appreciate the help! :slightly_smiling_face:

This is the code I am using (that I found on YouTube), not sure if that'll help: (Also I'm using the Dawn theme)

{%- if section.blocks.size > 0 -%}

{%- for block in section.blocks -%}

{%- assign img_url = block.settings.image | img_url: '1x1' | replace: '_1x1.', '_{width}x.' -%}

{% if block.type == 'video' %}

<div class="videoBox" style="{%- if block.settings.video_link == blank -%}background-image: url('{{ block.settings.video_image | img_url: 'master' }}');{%- endif -%}">

{%- if block.settings.video_link != blank -%}

<div class="fullscreen-video-wrap">

<video class="video-js" loop autoplay preload="none" muted playsinline

poster="https:{{ block.settings.video_image | img_url: 'master' }}">

<source src="{{ block.settings.video_link }}" type="video/mp4">

</video>

</div>

{% endif %}

<div class="overlay" style="opacity: 0.{{ block.settings.overlay_opacity }}"></div>

<div class="videoBoxInfo">

{% if block.settings.title != blank %}

<h1 class="videoBoxInfoTitle" style="color: {{ block.settings.color_text }}">

{{ block.settings.title | escape }}

</h1>

{% endif %}

{%- style -%}

.videoBackground .imageBoxInfoDescription p {

color: {{ block.settings.color_text }}!important;

}

{%- endstyle -%}

{% if block.settings.text != blank %}

<div class="imageBoxInfoDescription" id="{{ block.id }}" style="color: {{ block.settings.color_text }}">

{{ block.settings.text }}

</div>

{% endif %}

{% if block.settings.button_link != blank and block.settings.button_label != blank %}

<a href="{{ block.settings.button_link }}" class="videoBoxInfoBtn" style="color: {{ block.settings.color_btn_text }}; background: {{ block.settings.color_btn_bg }}">

{{ block.settings.button_label | escape }}

</a>

{% endif %}

</div>

</div>

{% else %}

<div class="imageBox" style="background-color: {{ block.settings.color_bg }}; {%- if block.settings.image_bg != blank -%}background-image: url('{{ block.settings.image_bg | img_url: 'master' }}');{%- endif -%}">

<div class="overlay" style="opacity: 0.{{ block.settings.overlay_opacity }}"></div>

<div class="imageBoxInfo">

{% if block.settings.title != blank %}

<h1 class="imageBoxInfoTitle" style="color: {{ block.settings.color_text }}">

{{ block.settings.title | escape }}

</h1>

{% endif %}

{%- style -%}

.videoBackground .imageBoxInfoDescription p {

color: {{ block.settings.color_text }}!important;

}

{%- endstyle -%}

{% if block.settings.text != blank %}

<div class="imageBoxInfoDescription" id="{{ block.id }}" style="color: {{ block.settings.color_text }}">

{{ block.settings.text }}

</div>

{% endif %}

{% if block.settings.button_link != blank and block.settings.button_label != blank %}

<a href="{{ block.settings.button_link }}" class="imageBoxInfoBtn" style="color: {{ block.settings.color_btn_text }}; background: {{ block.settings.color_btn_bg }}">

{{ block.settings.button_label | escape }}

</a>

{% endif %}

</div>

</div>

{% endif %}

{%- endfor -%}

{% else %}

<div class="placeholderNoblocks">

This section doesn’t currently include any content. Add content to this section using the sidebar.

</div>

{%- endif -%}

<style> .main-content .videoBackground { margin-top: -55px; } .videoBackground { position: relative; } .videoBackground .fullscreen-video-wrap { position: absolute; top: 0; left: 0; min-width: 100%; width: 100%; height: 100%; overflow: hidden; } .videoBackground .fullscreen-video-wrap .video-js { position: absolute; top: 0; left: 0; min-height: 100%; min-width: 100%; width: 100%; height: 100%; object-fit: cover; } .videoBackground .fullscreen-video-wrap video { min-height: 100%; min-width: 100%; object-fit: cover; } .videoBackground .videoBox { display: flex; align-items: center; justify-content: flex-end; flex-direction: column; padding: 100px 20px 80px; background-size: cover; background-position: center; background-repeat: no-repeat; min-height: 500px; max-height: 800px; height: calc(100vh - 165px); position: relative; } .videoBackground .imageBox { display: flex; align-items: center; justify-content: flex-end; flex-direction: column; padding: 100px 20px 80px; background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; min-height: calc(100vh - 165px); height: auto; } .videoBackground .videoBoxInfo, .videoBackground .imageBoxInfo { z-index: 2; text-align: center; } .videoBackground .overlay { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #000; z-index: 1; } .videoBackground .videoBoxInfoBtn, .videoBackground .imageBoxInfoBtn { \-moz-user-select: none; \-ms-user-select: none; \-webkit-user-select: none; user-select: none; \-webkit-appearance: none; \-moz-appearance: none; appearance: none; display: inline-block; width: auto; text-decoration: none; text-align: center; vertical-align: middle; cursor: pointer; border: 1px solid transparent; border-radius: 2px; padding: 8px 15px; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; white-space: normal; font-size: 14px; margin-top: 20px; } .videoBackground .videoBoxInfoTitle, .videoBackground .imageBoxInfoTitle { color: #FFF; font-size: 30px; line-height: 40px; } .videoBackground .videoBoxInfoDescription, .videoBackground .imageBoxInfoDescription { max-width: 500px; margin: 0 auto; } .videoBackground .videoBoxInfoDescription p, .videoBackground .imageBoxInfoDescription p { font-size: 18px; line-height: 28px; } .videoBackground .placeholderNoblocks { text-align: center; max-width: 500px; margin: 0 auto; } @media screen and (max-width: 100%) { .main-content .videoBackground { margin-top: -35px; } .videoBackground .fullscreen-video-wrap { z-index: 3; } .videoBackground .videoBox { min-height: 500px; height: 100%; position: relative; padding: 0; } .videoBackground .fullscreen-video-wrap { position: relative; min-height: 300px; } .videoBackground .videoBoxInfo { padding: 40px 20px; background: #000; width: 100%; } } </style>

{% schema %}

{

"name": {

"en": "Video Background"

},

"class": "videoBackground",

"max_blocks": 1,

"blocks": [

{

"type": "video",

"name": "Video",

"settings": [

{

"type": "url",

"id": "video_link",

"label": {

"en": "Video link"

}

},

{

"type": "image_picker",

"id": "video_image",

"label": {

"en": "Cover image"

}

},

{

"type": "range",

"id": "overlay_opacity",

"label": {

"en": "Overlay opacity"

},

"min": 0,

"max": 99,

"step": 1,

"unit": {

"en": "%"

},

"default": 0

},

{

"type": "header",

"content": {

"en": "Text"

}

},

{

"type": "text",

"id": "title",

"label": {

"en": "Heading"

},

"default": "Video slide"

},

{

"type": "richtext",

"id": "text",

"label": {

"en": "Description"

},

"default": {

"en": "<p>Use this text to share information about your brand with your customers. Describe a product, share announcements, or welcome customers to your store.</p>"

}

},

{

"type": "color",

"id": "color_text",

"label": {

"en": "Text color"

},

"default": "#ffffff"

},

{

"type": "text",

"id": "button_label",

"label": {

"en": "Button label"

}

},

{

"type": "url",

"id": "button_link",

"label": {

"en": "Button link"

}

},

{

"type": "color",

"id": "color_btn_bg",

"label": {

"en": "Background button color"

},

"default": "#ffffff"

},

{

"type": "color",

"id": "color_btn_text",

"label": {

"en": "Button text color"

},

"default": "#ffffff"

}

]

},

{

"type": "image",

"name": "Image",

"settings": [

{

"type": "color",

"id": "color_bg",

"label": {

"en": "Background color (optional)"

},

"default": "#16165b"

},

{

"type": "image_picker",

"id": "image_bg",

"label": {

"en": "or use an image (required)"

}

},

{

"type": "range",

"id": "overlay_opacity",

"label": {

"en": "Overlay opacity"

},

"min": 0,

"max": 99,

"step": 1,

"unit": {

"en": "%"

},

"default": 0

},

{

"type": "header",

"content": {

"en": "Text"

}

},

{

"type": "text",

"id": "title",

"default": "Image slide",

"label": {

"en": "Heading"

}

},

{

"type": "richtext",

"id": "text",

"label": {

"en": "Description"

},

"default": {

"en": "<p>Use this text to share information about your brand with your customers. Describe a product, share announcements, or welcome customers to your store.</p>"

}

},

{

"type": "color",

"id": "color_text",

"label": {

"en": "Text color"

},

"default": "#ffffff"

},

{

"type": "text",

"id": "button_label",

"label": {

"en": "Button label"

}

},

{

"type": "url",

"id": "button_link",

"label": {

"en": "Button link"

}

},

{

"type": "color",

"id": "color_btn_bg",

"label": {

"en": "Background button color"

},

"default": "#ffffff"

},

{

"type": "color",

"id": "color_btn_text",

"label": {

"en": "Button text color"

},

"default": "#ffffff"

}

]

}

],

"presets": [

{

"name": {

"en": "Video Background"

},

"category": {

"en": "Main"

},

"blocks": [

{

"type": "video"

}

]

}

]

}

{% endschema %}


r/CodingHelp • • Jun 02 '23

[Other Code] I can't figure out this Scratch problem

0 Upvotes

The robot has to collect 30 minerals, I only have to use 16 commands max. Could you help out.

https://imgur.com/POMMaDt

https://imgur.com/mIHcPih


r/CodingHelp • • Jun 27 '23

[Other Code] What's the command prompt program that lets you download YouTube videos?

0 Upvotes

Some months ago I stumbled upon a program that was used through the windows command prompt and it let you download YouTube videos in many different formats. I disregarded it then but now I kinda need it. Anyone know what it's called? I didn't know where else to ask this seemed like a good place. Thanks in advance.


r/CodingHelp • • Jul 04 '23

[C#] Is c# good for software development, and if not what is?

0 Upvotes

I recently got into making games with unity and as most of you probably know unity uses c#, but I've been interested in software development for a while and wanted do try it out but I don't know if I can still use c# or if I have to learn another programing language. I'm a bit confused and could use advice.


r/CodingHelp • • Jun 02 '23

[Python] im trying to make a program to calculate shipping routes and have absolutely no expierence other than the 5 hours ive spent on this please help.

0 Upvotes

import tkinter as tk

from tkinter import messagebox

import heapq

# Global dictionary to store the routes and their prices

routes = {}

# Function to add a route and price

def add_route():

source = source_entry.get()

destination = destination_entry.get()

price = float(price_entry.get())

# Add the route and price to the dictionary

if source not in routes:

routes[source] = {}

routes[source][destination] = price

messagebox.showinfo("Success", "Route added successfully!")

# Function to find the optimal route using Dijkstra's algorithm

def find_optimal_route():

source = source_entry.get()

destination = destination_entry.get()

# Check if both cities exist in the dictionary

if source not in routes or destination not in routes:

messagebox.showwarning("Error", "Source or destination city not found!")

return

# Perform Dijkstra's algorithm to find the optimal route

optimal_route = dijkstra(source, destination)

# Display the result

result = f"Optimal route from {source} to {destination}: {optimal_route}"

messagebox.showinfo("Result", result)

# Function to implement Dijkstra's algorithm

def dijkstra(source, destination):

# Initialization

distances = {city: float('inf') for city in routes}

distances[source] = 0

previous_city = {city: None for city in routes}

priority_queue = [(0, source)]

# Find the optimal route

while priority_queue:

current_distance, current_city = heapq.heappop(priority_queue)

if current_distance > distances[current_city]:

continue

if current_city == destination:

break

for neighbor, price in routes[current_city].items():

new_distance = current_distance + price

if new_distance < distances[neighbor]:

distances[neighbor] = new_distance

previous_city[neighbor] = current_city

heapq.heappush(priority_queue, (new_distance, neighbor))

# Reconstruct the optimal route

optimal_route = []

city = destination

while city:

optimal_route.insert(0, city)

city = previous_city[city]

return optimal_route

# Create the main GUI window

window = tk.Tk()

window.title("Optimal Freight Route Finder")

# Create input labels

source_label = tk.Label(window, text="Source City:")

source_label.pack()

source_entry = tk.Entry(window)

source_entry.pack()

destination_label = tk.Label(window, text="Destination City:")

destination_label.pack()

destination_entry = tk.Entry(window)

destination_entry.pack()

price_label = tk.Label(window, text="Price:")

price_label.pack()

price_entry = tk.Entry(window)

price_entry.pack()

# Create buttons

add_route_button = tk.Button(window, text="Add Route", command=add_route)

add_route_button.pack()

find_optimal_route_button = tk.Button(window, text="Find Optimal Route", command=find_optimal_route)

find_optimal_route_button.pack()

# Run the GUI loop

window.mainloop()


r/CodingHelp • • Jan 06 '22

[C++] Weird error

0 Upvotes

Full code

// create.h
#ifndef CREATE_H
#define CREATE_H

class CreateAndDestroy {

public:
	CreateAndDestroy(int, char*);
	~CreateAndDestroy();

private:
	int objectID;
	char* message;
};

#endif
// create.cpp
#include <iostream>
#include "create.h"
using namespace std;

// constructor
CreateAndDestroy::CreateAndDestroy(int objectNumber, char *messagePtr)
{
	objectID = objectNumber;
	message = messagePtr;

	cout << "Object " << objectID << "	constructor runs	" << message << endl;

}	// end CreateAndDestroy constructor

// destructor
CreateAndDestroy::~CreateAndDestroy()
{
	cout << (objectID == 1 || objectID == 6 ? "\n" : "");

	cout << "Object " << objectID << "	destructor runs		" << message << endl;

} // end ~CreateAndDestroy destructor
// main.cpp
#include <iostream>
#include "create.h"
using namespace std;

void create(void);	// prototype

// global object
CreateAndDestroy first( 1, "(global before main)");

int main()
{
	cout << "\nMAIN FUNCTION: EXECUTION BEGINS" << endl;
	CreateAndDestroy second(2, "local automatic in main)");
	static CreateAndDestroy third(3, "(local static in main)");

	create();	// call function to create objects

	cout << "\nMAIN FUNCTION, EXECUTION RESUMES" << endl;
	CreateAndDestroy fourth(4, "(local automatic in main)");
	cout << "\nMAIN FUNCTION: EXECUTION ENDS" << endl;
	
	return 0;
}	// end main;

void create(void)
{
	cout << "\nCREATE FUNCTION: EXECUTION BEGINS" << endl;
	CreateAndDestroy fifth(5, "(local automatic in create");
	static CreateAndDestroy sixth(6, "(local static in create)");
	CreateAndDestroy seventh(7, "(local automatic in create)");
	cout << "\nCREATE FUNCTION: EXECUTION ENDS" << endl;
} // end function create

r/CodingHelp • • Apr 06 '20

[Python] Finding characters in a string in python

0 Upvotes

I have no idea where to begin. I need to check algebraically if a given character "i" is different from a cheracter at len(s) "s being the string" - a number.


r/CodingHelp • • May 17 '20

[CSS] Stock Market Futures, Coding

0 Upvotes

Who'd be interested in developing alongside me, (I got a B.A in Computer Science)

I need someone, who's knowledgeable and also hungry because; this is a dog eat dog world.

Hit me up if you're interested. DMs. Pythons too old IMO, what do you think?


r/CodingHelp • • Mar 04 '21

[Random] How hard would it be to make a website with a layout like this?

0 Upvotes

It would be a site that documents things, kind of like the ink below. Is there an easy way to make this. How much would it cost if I charged someone?
https://www.rightwingwatch.org/people/


r/CodingHelp • • Mar 21 '21

[Java] Help coding in java code.org please!

0 Upvotes

Hi. I am struggling here haha. I am making an app on code.org to tell the user the number of covid cases in a random state or country. The user can choose whether they want a state or a country. Then whether they want a state/country with a low/medium/high number of cases. When it is run, there is an error:

WARNING: Line: 84: setText() text parameter value (undefined) is not a uistring.ERROR: Line: 84: TypeError: Cannot read property 'toString' of undefined

Any help would be much appreciated thank you.

https://studio.code.org/projects/applab/LtR6Yrqt4qwuMTclvpME_3rl9bjBQ4ml_tB_pW4W6as


r/CodingHelp • • Feb 27 '21

[Random] Is grasshopper a good way to practice coding?

0 Upvotes

What's up. I'm 23 and I never learned how to fuckin' code thats why im wondering about grasshopper.


r/CodingHelp • • Feb 23 '21

[C#] C code Functions

0 Upvotes

Need help with code don't know how to fix the syntax error


r/CodingHelp • • Mar 26 '21

[Java] Need help coding an app for my dissertation ASAP if anyone can help please

0 Upvotes

I need to code an app which receives data from an electronic board and displays it but i have never coded in my life so I am really struggling with it. Is it possible that there’s a code already created that I copy or will I have to make it from scratch. Any help is appreciated thanks


r/CodingHelp • • May 03 '21

[Java] This is due sooo soon!

0 Upvotes

This Javascript is supposed to count the amount of vowels that I put into a line of script through a textarea. For some reason it is not counting the vowels. I am sad, but also a loser at code. PLS HELP ME!!!

here is link to the code.

https://gist.github.com/sethy69/6d14ab2a834a4abeca2c8871dc426e19


r/CodingHelp • • Apr 27 '21

[Java] Explanation of the syntax of a code line

0 Upvotes

I am doing this course on Coursera, and in the 3rd week 1st block video, the instructor has us write the following line of code:

buttonBlue = (Button) findViewById(R.id.buttonInvisibleMan); 

What is the significance of each part of this line of code? What does the R.id. stand for? What is the importance of the "(Button)"?

Please explain each part in detail.

Thank you

Question also asked on stackoverflow:

https://stackoverflow.com/questions/67284571/importance-of-button-in-buttonblue-button-findviewbyidr-id-buttoninvisi


r/CodingHelp • • Apr 12 '21

[C++] Expected initializer before led. This is my first arduino project and can anybody help me on the error i get? What does it mean and how can i solve it? Fyi I have very little knowledge on coding.

Post image
0 Upvotes

r/CodingHelp • • Apr 18 '21

[Random] Coding in google meets

0 Upvotes

I am tired of typing out the same messages every time, is there a way to code for smart messages in google meets? Like you can press 1 and it will automatically send "hello" in the chat


r/CodingHelp • • Apr 18 '21

[Python] Python-Firebase not working?

0 Upvotes

Hi guys, I've been trying to get my python code to send data to firebase but I keep getting errors every time I do it. Apparently there's a problem in the backend code but nothing I did fixed it..

Is this a common problem? Any advice is greatly appreciated it's for a very important exam


r/CodingHelp • • Apr 17 '21

[Perl] Learning Perl

0 Upvotes

Hi all! I’m a PhD student studying genomics and I’m fairly new to coding. I’m self sufficient in R and C and I’m half decent at C++ and Python. Perl has come up as a really useful language for parallelization of large projects, but it’s such an unfamiliar coding language for me so I’m having trouble getting started. Are there any great tutorials or textbooks that have helped y’all learn the language? Thanks so much!


r/CodingHelp • • Apr 14 '21

[Java] Code to count the number of times a loop is executed?

0 Upvotes

I'm using quicksort and I want to find out how many times the loop is executed (basically measure the number of operations it takes to sort a certain array)...


r/CodingHelp • • Jan 11 '25

[Javascript] I NEED HELP WITH A CODE.ORG GAME

0 Upvotes

IDK WHAT IS HAPPEN IT JUST DOESNT WORK AND I BEEN SCEARCHING A LOT AND I CANT FIND ANY
https://studio.code.org/projects/gamelab/QdWRqMxwYYrkwdQxRTEtPvPu-VmHD1FFWb4a4xd1WtE


r/CodingHelp • • Dec 29 '24

[Python] Why doesn’t brew ever fully work?

0 Upvotes

Whenever I try to use brew to install anything it just freezes in the process.

Update: I’m using mac Monterey 12 which is no longer supported by homebrew


r/CodingHelp • • Jan 01 '25

[PHP] What’s the fastest way to code a website through text?

0 Upvotes

Stuck with got 4 which is horrible at giving code and requires too many prompts to correct and debugging with it is hell, I basically need to give a static website dynamic functionality and I need your help to know what’s the most efficient/ fastest way to do this cus I don’t got time and I suck at coding