#tech-related-help

1 messages ยท Page 24 of 1

hidden forum
#

while JS its <= either one of them

#

i think thats the case

#

im not sure im checking the documentation

strange zodiac
idle dew
#

Hi, someone who know about java, to help me in a school proyect

hidden forum
strange zodiac
#

wait i think i sent you wrong screenshots when i tried it

#

i had the console.log() before it adds 2 for the while

hidden forum
#

that would mean that the while loop in JS does not require an iteration statement

#

hmm

#

forget what i said, that was a stupid comment lmao

strange zodiac
#

nah im stupid as well

#

its night alr i cant think

hidden forum
#
var x = 0;
while(x < 12) {
console.log(x);
x = x + 2;
};
//output 12
#

js in a nutshell

#

is 12 < 12

#

it isnt

#
int x = 0;
while(x < 12) {
  std::cout << x << std::endl;
x = x + 2;
};
//output 10
strange zodiac
#

wait i retract my earlier statement

hidden forum
#

๐Ÿ˜„

#

looking from a different angle

#

i cant see it any different than JS while loops initalize first

#

c++ while loops check first

#

i mean cant see it any different rn

strange zodiac
#

since it prints it in the console first. imagine that it just printed x=12. it should then add 2 to 12 making it 14 but it shouldnt print 14 anymore since going back to the top of the while loop 14 > 12

hidden forum
#

im walking away from the problem now

#

i cant get stuck for another hour i dont want to hehe

strange zodiac
#

but it does make sense logically right?

#

XD

hidden forum
#

thankyou for taking the time out of your day

#

no my mental block is strong hehe i dont get it

#

i agree with c++

#

bc im like you are comparing left side with the right side

strange zodiac
hidden forum
#

KEKW

#

im done

#

@strange zodiac think i got the winning answer here

strange zodiac
#

wait what

#

๐Ÿคฏ

#

i think it just prints out that 14

#

for some reason

#

yeah its just the browser console that i was using

#

when i do it here its only up to 12 but in the console it shows 14 but with that arrow

hidden forum
#

so the browser is the peace of shite then

#

piece*

#

@strange zodiac

strange zodiac
#

but why were you getting 14

hidden forum
#

i am using replit

strange zodiac
#

yeah idk why it shows 14 then ๐Ÿคทโ€โ™‚๏ธ

hidden forum
strange zodiac
#

it shows up to 12 only

hidden forum
#

KEKW

#

im so done

#

browser be like

#

its 14

#

ide be like its 12

#

i swear i cba

strange zodiac
#

it should be 12

hidden forum
#

yes the ide on mdn web docs its 12

strange zodiac
#

we should have talked about this in a thread ๐Ÿ˜‚

hidden forum
#

in the dev tools

#

its 14

#

yes i regret not doing it now ๐Ÿ˜ข

#

problem solved it guess

flat vale
#

I'm working on a dynamic website and am having some issues

#

so i have an insert.php file

#

but it comes up with this error on my localhost

#

and idk how to fix it

hard coral
#

Are you allowed to have a space before a semicolon in php?

deft badger
#

Is there someone who knows how to help me in cisco packet tracer ? ๐Ÿ˜ข

scenic oriole
#

yo anyone good with graphs and wants to help me understand a few algorithms better

#

im having trouble finding all possible cycles within an undirected graph that runs in O(|V| + |E|) and that I can understand lool

#

I know that you can detect that a graph has a cycle by running bfs on each node and seeing if you encounter another 'flagged' node while bfs is still running but i dont think this would help in any way

dawn sail
#

I know this was a while ago, but Javascript is asynchronous, meaning code doesn't execute in the order you write it, like C++, but it will execute multiple statements at the same time, and x being incremented executes faster than the print. Take a look into the await/async funcs

scenic oriole
#

and the issue is I dont even know if johnsons algorithm can apply to undirected graphs :/

hidden forum
red hare
#

seems sus, i wouldn't trust this ^

idle dew
#

it's a scam link

red hare
#

<@&717391911132069929> can you delete the link and kick the dude?

idle dew
#

every "giveaway" scam looks like that

idle dew
#

can someone please help me im having a mental breakdown ive to code this stupid button in python and its supposed to open something and I cant im about to drop out

mental flare
#

could someone tell me whats wrong with this code

verbal wraith
#

you need to tell us what's the expected behaviour

#

and what's the actual behaviour

#

also error logs if there are any

#

"What's wrong" is very vague

mental flare
#

im trying to swap the words in the spans

#

but when i try the console says it cant read the properties of the .innerHTML

idle dew
idle dew
mental flare
#

thank youuuu

sharp mortar
#

what's the language?

vale bear
#

Ignore what I just said...it's probably wrong anyway

strange zodiac
#

searching stuff on the internet and came across this

half stone
#

Does anybody know LU decomposition (linear algebra)? https://en.wikipedia.org/wiki/LU_decomposition
I have to program it and answer some questions, but I don't understand the questions

In numerical analysis and linear algebra, lowerโ€“upper (LU) decomposition or factorization factors a matrix as the product of a lower triangular matrix and an upper triangular matrix. The product sometimes includes a permutation matrix as well. LU decomposition can be viewed as the matrix form of Gaussian elimination. Computers usually solve squa...

modest wolf
#

89 is my best wpm in monkeytype what are yall best

strange zodiac
#

first time using monkeytype i like the visuals

#

ive been using 10fastfingers

modest wolf
#

lemme grow another hand to beat that score

jolly perch
#

is anyone here familiar with synthetic data generation?

deft badger
#

Can someone help me with smarty/php ???

outer snow
#

avg 130

peak yacht
#

does anyone know how to learn about gpu construction and how to modify gpu's bios?

red hare
#

I dont think you cant mess with it like you want

#

You can however learn about it's construction yeah

#

I recomend looking at wikipedia articles since they usually start from the beginning of graphic cards, and it's easier to follow

#

You can program your GPU tho, but i don't think that's what you meant

#

You have langs for that, like CUDA and OpenCL

peak yacht
#

Thanks for help

subtle heart
#

Is this chat also for theoretical CS?

soft summit
agile sonnet
#

I need help with these. using c++ stdio.h

idle dew
#

can someone help me with some simple codes? i'm new and i'm really confused๐Ÿฅบ ๐Ÿ˜ญ

red hare
#

#include <iostream>

#

This is the one you want for standard IO in C++

#

Second, you will need access to the math lib

#

because you will need the square function and the root function

red hare
#

Still, doens't make sense to use C libs on C++ (unless that are no other alternatives)

bold shadow
red hare
#

#include <cmath>

#

This is the lib for math related function and constant values

#

the functions you are looking for are std::pow() and std::sqrt()

#

If you have any trouble using them just post here your question and we'll help, but they are pretty straight forward to use

agile sonnet
peak iron
#

anybody how to fix thi

dawn sail
peak iron
#

@dawn sail is it the same for netbeans

#

this is the netbeans ide

dawn sail
peak iron
#

thanks a lot

#

๐Ÿ‘

fresh solstice
#

Can anybody which languages required for game development

dusky oxide
# fresh solstice Can anybody which languages required for game development

it depends entirely on what you want to create, youll have to see what programming language fits your needs

just a couple of examples (not going in-depth):

2d - python: python syntax is close to pseudo code making it easier to learn, plus it has the pygame library which is the most used 2d game making library in python. its popularity makes it easier to learn and solve problems.

-c#: c# can be used in the unity engine to create simple 2d games, the use of an engine is that it gives you a ton of features to work with. the unity community has a lot of tutorials and solutions so it is really and has a less steeper learning curve

3d - c++: c++ is a powerful low level language that communicates with the hardware with almost full capability. this makes games developed in it way faster although the low level aspect gives it a bigger learning curve (harder to learn). you can use the OpenGL library to communicate with your GPU to render stuff on the scree.

-c#: again, c# can be used to create 3d games in unity, with a ton of tutorial and a lot of help, learning unity "should" be pretty easy although i havent tried it so i cant give my full opinion on it

there are other programming languages that you can use such as java or javascript but i cant write about them as i dont have enough info about them (you could def research though!).

i hope this guides you in anyways and looking forward to see what you create!

idle dew
fallen steppe
#

is there anyone who know matlab for numerical method. I need some help for function commend

scenic oriole
#

hey i wanna make an app, ik react and i heard react native was easy to learn, but i was wondering what backend i should use or if theres one that works well with react native

#

I saw online that ppl said to use firebase?? but ive never used it as a backend framework so idk lol and suggestions

#

the app is gonna be simple i just need to have like login, store some images, text thats all lool

modest wolf
#

this is cool and im so enjoying my life.

mental pecan
#

high

tidal violet
#

Hey!
My uni offers me 2 courses as electives -

  1. Internet of Things
  2. Quantitative Analysis
    Can someone help me get a better idea about these subjects?
    Thanks in advance!
strange zodiac
tidal violet
#

Like quantitative analysis is mostly stats and will be helpful if one's into data science
And IoT well you get to know more about hardware ig

#

I mainly want to know which one has greater scope in cs field or are they equally good..

verbal wraith
#

They are both quite useful in different fields

#

It depends on your domains of interest, which one you go for

tidal violet
#

Yes yes, I'll look into these subjects in detail, thanks for helping :)

red hare
#

I wouldn't consider game dev till you are taught the basics of OOP @fresh solstice

#

Else it will be kinda annoying

#

And if you are a beginner I would stay away from C++, C++ is not a language you just pick up and start game dev'ing in, it's really hard to grasp expecially when you are starting with such an advanced topic as game dev'ing

#

Python i think would be a nice starting point

#

Maybe look into the Unreal Engine, i think they have a script lang

#

UnrealScript yeah

#

Or Java maybe, but again OOP principles are a must in my opinion

fresh solstice
dusky oxide
fresh solstice
red hare
#

Are you a beginner in programming?

fresh solstice
red hare
#

Maybe stay away from game dev'ing till you learn a bit more of what exactly is programming

#

Start small

dusky oxide
red hare
#

Make small stuff, learn slow

#

Don't rush into a big things like game dev, in my opinion

#

Take your time learning the basics of programming first

dusky oxide
red hare
#

You could, except he's new to programming

dusky oxide
red hare
#

Unless you're talking about Scratch, I would advice against starting like that

fresh solstice
dusky oxide
dusky oxide
red hare
#

Have you ever programmed annything?

#

At all?

fresh solstice
red hare
#

You shouldn't even be thinking about game deving then : )

dusky oxide
red hare
#

Are you a self learner?

#

Or do you have programming classes?

#

Actually, go to a library

fresh solstice
red hare
#

Grab a C book

#

or a Python book

#

and start from there

fresh solstice
red hare
#

So my advice is, get a book

#

Or find a book online, whatever suits you better

dusky oxide
fresh solstice
red hare
#

You could do that... or you could get a book

#

I'd say you'd be better off with a book

dusky oxide
dusky oxide
red hare
#

The reason why I'm more inclined for you to get a book is to force the habit of reading. If you want to be good at anything you will need to read

#

You will need to read documentation, hardware details, github projects, code, etc

#

Alot of people lack that

dusky oxide
red hare
#

The major problem with books is that once they are printed, you can't update what on the book

#

So alot of books that are printed stay deprecated as time goes by

#

Unless we are talking about like C or old languages

#

But usually for a beginner that's not really an issue

dusky oxide
red hare
#

Yeah, i'd still recommend a book, making people read is important

#

But also practise

#

Try to learn by try and error while you read

#

And don't be sad if you get errors

#

Every one get's errors

#

Errors are a regular occurrence in a programmer's life

#

Even the experts get errors, the only difference is that errors from experts usually can only be solved by other experts X)

glad lotus
#

yall does anyone know some good cs courses on udemy or coursera or something?
im in 2nd year and feeling unproductive af need help

sleek wyvern
glad lotus
#

is that on udemy?

sleek wyvern
glad lotus
#

ohh okay

verbal wraith
#

Or general computer science?

glad lotus
verbal wraith
#

Ah okay, I'm not acquainted with that field but I've heard praise for Andrew Ng courses

supple hawk
#

anyone here knows about a university its free like uofpeople teach aerospace engineering?

#

I found another free university for masters in finance in engineering but not for aerospace or civil or electrical engineer.

idle dew
#

i need to write a program in c that receives a string, corresponding to a mathematical formula, and prints out the result

#

im 3 weeks behind in my class, any type of help would be great

charred grove
#

is there anyone who knows how to use matlab

half stone
#

But I only use Octave

brazen lynx
#

Is anyone here really experienced with PHP and JavaScript? I need help practicing for an interview

scenic oriole
#

id say leetcode is ur friend here lol

valid cipher
#

guys guys what is this? it's in the upper-left of my screen?

idle dew
strange zodiac
#

maybe?

woeful hinge
#

heyy if i go for an internship in c++ what skills do i need ๐Ÿ˜ฆ

#

I want to do an internship soon to get more work experience

#

and if i follow software, is c++ ok?

#

-- i'm bad at english so i use google translate

main pythonBOT
#
TakeRep <User:User> [Num:Whole number]

Invalid arguments provided: Did you mean one of these? (I'm 1/5, I'm a Nacho, I'm back, i'm bored, I'm Cat) Please re-run the command with a narrower search, mention or ID

midnight osprey
#

[python] does anyone have an idea how to code an array of linked lists? conceptually, it looks like this:

fresh solstice
#

Can anyone tell that best course in web development in Udemy. in which to get a good structure

analog tulip
paper crest
versed spoke
#

wassup guys, just wanted a little help with creating a comand line program in C++ which tells the day you're born ( given date of birth) , thnx;

strange zodiac
faint depot
#

Does anyone know where I can create a website easily? I'm supposed to code it but I don't know anything about coding

void halo
paper raft
#

I am gonna be talkinf computer architechure next sem. Anyone take it yet and let me know what is the most difficult part about it.

void halo
paper raft
#

I am learning MIPS RN.

#

I am almost done with it.

#

It is kinda cool learning about some of the components of the CPU and how the registers hold and store info.

orchid pier
#

anyone any good with C?

woeful hinge
#

it me

#

๐Ÿ˜„

idle dew
#

This is weird, I just bought a T60 off Facebook Marketplace and it has a glossy screen, wasn't until I got home, I've realised it looks like a screen protector?

#

not too sure though

#

flash light it

#

you would be able to see the difference

idle dew
visual sapphire
#

I am deciding between choosing ipad m1 11' and 12.9' . 12.9' more than 11' $300 but only better at the screen. if i select 12.9' and paste paperlike on it, will the display quality drop much? if it's a lot, I should choose the 11' version right? please advise me which one to choose and type paperlike i should use

verbal bone
#

hi i need some help , In a system, which uses an ASCII code of 8-bits, how many pages one can store in hard disk space of 760 Mbytes. Suppose that each page contains 2000 characters.
-but ASCII only do about 256 characters i guess right ? ๐Ÿฅฒ
thank u

void halo
# visual sapphire I am deciding between choosing ipad m1 11' and 12.9' . 12.9' more than 11' $300 ...

I have the 12.9 version but one of the older version right before m1 chip came out. I also have it with the paperlike screen protector. If you are going to be using the iPad for school then paperlike in my opinion is a must have amenity. If you are just using it for leisure then honestly any amazon screen protector will be fine.

The paperlike screen protector does not impact the display quality at all. It is truly just an amenity that makes looking at the iPad easier and increases the feel of the iPad when using it for writing.

paper crest
#

don't say "is anyone any good with C"

#

it's like saying "is there any expert around to help me out with my code"

quiet vault
paper crest
#

๐Ÿคทโ€โ™‚๏ธ

quiet vault
#

actually sometimes i dnt answer people when they make those sort of questions cause idk if i will be really able to help or not so yeah good advice people make ur questions clear

paper crest
#

it's like this everywhere, instead of asking the question they asking for "experts" to help them, even a beginner can help if they actually read what the problem is

quiet vault
#

yeah

verbal wraith
quiet vault
#

well i had never seen that before but it makes a lot of sense i think everyone should read it tbh

paper crest
#

in this case for him no one replied, ofc no one did no one is gonna call themselves an expert when they don't really know what the issue is

quiet vault
#

yeah

paper crest
#

im just dropping it there so they can learn something ๐Ÿคทโ€โ™‚๏ธ

#

im actually helping if you think about it ๐Ÿ˜‰

quiet vault
#

well dnt get me wrong but do u know the answer to my question in maths by any chance?

verbal wraith
#

Apart from that, people often post questions without the relevant data associated with it

paper crest
verbal wraith
#

Like a screenshot of code and then "what's wrong with it" ๐Ÿ˜

quiet vault
paper crest
#

people should be specific when they ask question, when you ask a question you should give all the information needed for someone to help you out, you can't just say "help me with this"... What does the error say for example

nova basin
paper crest
#

yeah sure i'll just send my 300 lines of code to someone and make him read all that and see where the problem is like... just tell me where is the problem ๐Ÿ˜‚

#

people doing that are making others life harder doing this..

verbal wraith
#

I mean, people just won't reply to that message for help

paper crest
verbal wraith
#

No one wants to go through lines of code to find an arbitrary problem

paper crest
#

no one wants to go over 100 lines of code just to find a typo

#

like me yesterday spending my whole day in 500 lines of code just to find out i did a typo...

#

pain

quiet vault
#

well im sorry to bother u guys but seems like u two both know a lot about coding do u have any tips on how to understand loops? im having a hard time deciding whether i should use while or do... while in c sharp. Totally fine if u dnt

paper crest
paper crest
#

i'll send it

quiet vault
paper crow
paper crest
#

๐Ÿคฃ

quiet vault
paper crest
quiet vault
paper crow
paper crest
#

that's why im sending a video instead ๐Ÿคทโ€โ™‚๏ธ

quiet vault
quiet vault
paper crest
#

im pretty sure you can find other ones that work with a simple google search

quiet vault
#

u right i will try

paper crest
#

just type your problem and you might find it

quiet vault
#

yeah idk why i didnt think of that tbh mb

paper crest
#

no worries (:

paper crow
#

Happy learning!

nova basin
paper crest
#

she will understand better with the video im sending

quiet vault
#

ok thx everyone yall really helpful!

red hare
#

So that you don't have to type the same code N times, and if you don't know how many times to run the same piece of code for example

quiet vault
#

yeah thank you!!

red hare
#

What language btw?

paper crest
#

C#

red hare
#

sheesh

quiet vault
red hare
#

I just dislike it : ) But don't let my experience influence you! Is a nice language for beginners and web stuff

quiet vault
#

Ah alright!!

alpine mesa
#

hello everyone

paper crest
#

Hi

alpine mesa
#

hi

paper crest
alpine mesa
paper crest
#

Im good, still breathing yk :)

alpine mesa
#

๐Ÿ˜†

#

I have a bit of a boring question, is anyone in this group learning Assembly language?

red hare
#

C# is used for ALOT of web stuff

#

It's a web language

paper crest
#

C#?

#

I don't see anyone making websites in c#

red hare
alpine mesa
red hare
paper crest
#

I think you misunderstood

red hare
#

Look at the API's for C#

paper crest
#

C# can be used for web applications

red hare
#

They are all web oriented

paper crest
#

Now for websites, i don't think that's the same

red hare
#

Whatever you say man

paper crest
#
Easy to start: C# is a high-level language so it is closer to other popular programming languages like C, C++, and Java and thus becomes easy to learn for anyone. Widely used for developing Desktop and Web Application: C# is widely used for developing web applications and Desktop applications.
alpine mesa
#

now you can code web by any language

paper crest
#

well you're not wrong, but at the same time you're not right

#

if you use frameworks maybe

#

well im not really sure, but i feel like C# can't be used to make websites

#

but maybe for web applications

#

well if you're using some kind of a framework then yes but you can't really build a website without any kind of a framework ๐Ÿคทโ€โ™‚๏ธ

quiet vault
#

well i think it can be used for web but i im using it for "console"

red hare
#

that's usually how you start yeah

quiet vault
#

sadly i am still struggling with the exercises even though i understood the theory ๐Ÿ™ƒ

paper crest
#

What is the excercise?

quiet vault
#

Product of a sequence of real numbers, ending with 0.

#

i guess it dsnt seem very hard

#

but i am having a hard time doing it

#

and so i just delayed studying for tmrw

#

this is an example

#

product is multiplication (*)

quiet vault
paper crest
#

yeah idk how to help you with that

#

sorry ๐Ÿ˜ฆ

quiet vault
#

oh np dnt worry!

paper crest
#

did you try google about your problem?

quiet vault
#

i didnt cause idk seems like a very specific problem

#

but i did some coding

#

~its just some stuff that is not correct

#

and idk how to put it

paper crest
#

is there an error?

quiet vault
#

double numero, b=0, multiplicaรงรฃo;

        Console.Write("\nNรบmero? ");
        numero = Convert.ToDouble(Console.ReadLine());

        if (numero == 0)
            Console.Write("O produto dos nรบmeros รฉ 0.");
        else
        {
            while (numero != 0)
            {
                if (numero != 0)
                {
                    b =b+ numero;
                    multiplicaรงรฃo = 1.0*numero * b;
                
                    Console.Write("\nIntroduza um nรบmero: ");
                    numero = Convert.ToDouble(Console.ReadLine());
                }
                else   
                    Console.Write("\nO produto dos nรบmeros รฉ: {0}", multiplicaรงรฃo);
            }
#

i put this

#

but idk where to put the ahh idk how to say it in english, average i thinkk

#

not average

#

the multiplication

#

average was from the previous exercise

#

i will look at this again tmrw and try to figure it out tho

paper crest
#

well i can't see what's wrong

quiet vault
#

ah the multiplication i think its wrong and it lacks console.write ("The multiplication is equal to...") but i just dnt know where to put it

#

thx for trying to help tho

paper crest
#

i don't think you need to add this 1.0*numero * b

#

you can just do this instead 1.0 * numero

#

without the b

#

oh sorry

#

1.0 * b

#

without the numero

quiet vault
#

the thing is like that wont it just give me the last number i inserted? instead of the multiplication of all the numbers?

paper crest
#

you're already adding numero to b so i don't think there is a need to multiply them both again

quiet vault
#

hmm the thing is suppose i insert the numbers 5 and then 10 i will get b=0+5 and so b=5 then i insert 10 and i will get b=5+10 so b=15 that is different from 10*5 which is 50

thin hound
#

What exactly should the program do? Do you just keep entering numbers that will be multiplied until you enter 0?

quiet vault
#

yes that is it

thin hound
#
double new_number = 1;
double product = 1;
while (new_number != 0){
  // TODO: Ask for new number with Console.Write
  new_number = Convert.ToDouble(Console.ReadLine());
  if (new_number != 0)
    product = product * new_number;
}
// TODO: Write the product

You can try an approach like this

quiet vault
#

that looks way more simple thx i will try just a question in case the first number inserted is zero it should probably give a error message, how can i do that? do i put it inside a else under the if inside the while?

#

sorry if my message is kinda confusing

quiet vault
thin hound
thin hound
quiet vault
obsidian holly
#

Can someone help me with a little issue related to arrays in C?

thin hound
# midnight osprey [python] does anyone have an idea how to code an array of linked lists? conceptu...

Not sure if anyone answered this already, but you could do a list of Nones, and then use it as an array. Then you should make a Class ListNode for your implementation of the linked list. If you haven't made a linked list in python before, then you should start there. If it is not important that you make the linked list yourself, and just need a list of empty lists, you can do list = [[] for _ in range(8)]

thin hound
native pine
#

Anyone good with PHP?

quiet vault
paper crest
#

You will never get a reply if you don't tell us what your issue is

random wharf
#

Anyone knowlegeable about linear programming minimization to help me that has 4 or more constraints. Any help would be appreciated.
Like how Can I plot and find the x and y for finding the optimal solution.

honest linden
#

any help or information will be appreciated, thanks :>

strange zodiac
honest linden
#

Thanks, so the solution for me is that I changed my internet to another provider and it works

strange zodiac
#

really ๐Ÿ‘€

#

glad that it works now ๐Ÿ‘

idle dew
#

the string gets a value but is not loaded into the database.

strange zodiac
#

i would put the $email=$_POST["email"] as well as $nome above the $sql variable

#

you are inserting $email into your query without setting its value

#

i also dont think you need the '' in the VALUES()

idle dew
#

I did a new test, apparently the problem is that the PHP code doesn't connect with the Email and Name columns

strange zodiac
#

did you set a db connection in your code?

idle dew
#

y

strange zodiac
#

oh is it because you named it NOME?

idle dew
idle dew
strange zodiac
#

ohhh

idle dew
#

do you know what it can be?

idle dew
#

I FUCKING LOVE U

#

I WAS TRYING TO SOLVE IT FOR 5 HOURS

strange zodiac
#

Oh lol just got back

#

Np

#

You doing a cms page?

#

I would also sanitize and validate user input

#

Using filter_input()

idle dew
#

I'm doing work for my school, I'll polish this site in the future XD

strange zodiac
#

Niceee

strange zodiac
idle dew
#

but thank you so much, you saved me

idle dew
strange zodiac
#

Before you use a variable. You have to first create one and set a value

idle dew
#

I thought the order didn't matter xp

paper crest
#

it does actually

#

it's from top to bottom

#

you can't make a function and print a value that does not exist, you will get undefined, that happens for example if you put the variable below the function

#

if you put it above it does work (:

idle dew
#

this lesson I take to life 'v'

idle dew
#

can someone fix my code

#

this is the problem

#

pls ping me

thin hound
# idle dew

This is the function prototype for strncpy_s():

errno_t strncpy_s(char *restrict dest, rsize_t destsz, const char *restrict src, rsize_t count);
``` Notice how it takes four arguments
low swift
#

anyone can suggest any utube channel or website i can learn java programming?

wide thistle
#

can someone tell me why the output still blue pleaseee

hidden olive
#

If, anyone need any SEO help..Ask your question.i'll try to answer your question

novel breach
#

Can anyone guide me for which ipad to go for

strange zodiac
#

please elaborate on your preferences, requirements, budget, etc

shy gorge
#

hi guys, there are any differences between installing openCV if you use VisualStudioCode?

scenic oriole
#

just search 'install openCV {language} on {os}'

#

and you should find a tutorial or smth

rugged pasture
#

anyone pretty good at html? tyring to display data from a json file in a text field

#

I can display it in a text area but not text field for some reason

strange zodiac
#

are you assigning the the json data into the value attribute?

rugged pasture
#

Atm I was using AJAX to retrieve the JSON data by doing this

document.getElementById("bookID").innerHTML = (" " + Obj.books[i]["id"]);

Then in the HTML using id="bookID".

I couldnt get it to work for the text field, but it works for
<textarea id="bookID"
When I try to put anything for value inside of a text field, it'll display whatevers in the "" instead of bookID

strange zodiac
#

are you using both the text area and the text field? if so im pretty you cant have more than one element with the same ID

#

i just ran a test on w3schools idk if it helps or not

red lily
#

this is python, why does it come out has 84 and not 44

scenic oriole
#

when u use all if statements like that, they are all being checked one after another meaning one input could be true for multiple if statements, what u want is only one of those statements to be true and then u check the next input

#

change ur two inner if's to elifs and ur last one to an else and try again

red lily
#

thx

rugged pasture
novel breach
#

And 256 is way expensive than 64gb

potent prairie
#

anyone can teach me system analysis and design

late parrot
#

Hi

scenic oriole
#

64 is perfectly fine for school unless ur like a media major whos gonna make like a terabyte of video content then maybe lol

novel breach
#

thanks bro

#

the availiblity of this product sucks

#

60 days waiting time

quiet vault
#

hey can anyone help me? its in c sharp and i need to ask for a number and then check whether that number is prime or not and return that information to the user but idk how to check if the number is prime, ive tried to search it up but all i find are very complex answers that involved stuff i never talked about in classes, so does anyone know if its possible to check it in a simple way oh and i need to use " while" (the loop) in this exercise. thank you

#

edit : i found the solution thanks

paper crest
quiet vault
# paper crest What was it?

hi, well actually i changed something and i though it was working and i didnt want to waste anyone's time so i said i had fixed it however looking better it is actually not fixed so

strange zodiac
#

I would be looking into modulus operator

quiet vault
paper crest
quiet vault
#

thx for being friendly : )

paper crest
#

So if you need help just ask for it and if anyone is willing to good if not then they shouldn't reply ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

#

No worries :)

#

So just ask your question and what your problem is and wait for someone to help you, if not there are other places to ask for help aswell, tons of coding servers you can join

quiet vault
#

alright thank you!

paper crest
#

Np

rugged pasture
strange zodiac
scenic oriole
rugged pasture
#

If I have a group of text fields say named 1-5, that I want to edit all at once (toggle on/off the text field)
can I just put them in a div class and make one button that allows that toggle? instead of making an individual button for every text field.

strange zodiac
lost patio
#

Can anyone here help with some python?

open kestrel
#

please help me sign out my microsoft account out of my pc

#

:(((

#

idk why my laptop dont have "sign in with a local account instead" session

#

๐Ÿ˜ฆ

agile sonnet
#

how do i convert this into #include <stdio.h>?

using namespace std;


const int SIZE = 9;


int main()
{
int arr[SIZE] = {1, 2, 3, 4, 5, 6, 7, 8, 9};
cout << "Initial array:" << endl;
for (int i = 0; i < SIZE; i ++) cout << arr[i] << " ";
cout << endl;

for (int i = 0; i < SIZE/2; i ++)
{
int temp = arr[i];
arr[i] = arr[SIZE - i - 1];
arr[SIZE - i - 1] = temp;
}

cout << "Final array:" << endl;
for (int i = 0; i < SIZE; i ++) cout << arr[i] << " ";
cout << endl;

cin.get();
return 0;
}```
coarse oyster
#

Hi I am currently stuck at a problem. Can you provides me some ideas
How to calculate sum over all "x^2" of all subsequences of a string. Assume x is the number of occurrences of a subsequence of a string. Example: "banana" : 139
"aaa": 19Hi I am currently stuck at a problem. Can you provides me some ideas
How to calculate sum over all "x^2" of all subsequences of a string. Assume x is the number of occurrences of a subsequence of a string. Example: "banana" : 139
"aaa": 19

dawn sail
red hare
#

For example

#
cout << "Initial array:" << endl;

becomes

printf("Initial array:\n");
#

Read the documentation for printf or scanf, it will explain in detail how to use them

velvet pike
#

ayo i need someone to teach me computer science for my exam in 2 days
can someone help

agile sonnet
velvet pike
scenic oriole
#

like its impossible to teach u every thing in 2 days and also no one boutta sit here and tutor u lol u can ask questions and we can respond but

#

yea idk lol

velvet pike
#

Not the whole thing some parts of the chapter

scenic oriole
#

yea like i said just send specific questions here and ppl will help u

#

but u have to at least try no ones gonna put in effort to help u if ur not trying urself

wraith raven
#

Does anyone know how I can land a good internship position while pursing a BS in Computer Science. Everywhere i've looked it just seems like companies only want graduate students. I have setup a linkedin but havent optimized it to the best of my abilities. Currently I am adjusting to in-person college and trying to start projects to my name. Any tips would help

high crypt
#

does anyone have a reliable place where they get pdfs of books? I have a project for one of my uni english courses which i need quotes from my required texts. However I got covid and all of my textbooks were left in my dorm and I am currently quarantined in my hometown ๐Ÿ˜ฆ rip my finals week haha definitely one for the books

verbal wraith
rugged pasture
#

Anyone have vscode on their discord display or is that cheesy haha

dawn sail
strange zodiac
strange zodiac
# wraith raven Does anyone know how I can land a good internship position while pursing a BS in...

i would go with informational interviews. i recently just learned about them at school and we were able to practice it as a project. It is a good way to connect and learn more about the industry in the area you are interested in. I wouldnt say that doing these will get you jobs directly but it does build your network. if you stand out they might connect you with people they know who they know who has a spot for you.

idle dew
#

bro I need one help with android studio java

#

anyone here expertised?

wraith raven
#

a lot of people have been telling me to learn react. any idea why?

quiet vault
#

How to guarantee a number is natural in c sharp?

quiet vault
#

Edit i still dnt know how to do it but no longer need, i though the exercise required it but actually not : )

red hare
#

I dont really think there is a built in functionality for that

#

you could make a function to check it

#
bool isNatural(int number)
{
  return (num >= 0);
}
quiet vault
# red hare just check if it's `>= 0` i guess?

I did that but i though i had to make sure the given number wasnt like 2.3 or something but then i asked the teacher and actually it just couldnt be a negative number or zero the question was badly written thi

quiet vault
red hare
#

anytime ๐Ÿ‘

idle dew
#

Heyyy anyone good at developing native android apps in kotlin compose? I got a issue

#

Can i post my stackoverflow question link here? Is it allowed?

spice mulch
#

can anyone help me with Access 2016? in counting and average

rugged pasture
#

how can I get that image to align with the gomoku title? Gomoku is in header and image in the imghello. I think image link is in header as well.

#

Wait lmk try real quick

strange zodiac
rugged pasture
strange zodiac
#

youll have like a div#id for title and div#id logo

rugged pasture
modest glen
modest glen
ocean dawn
#

is someone familar and willing to help me with a simple MLP in pytorch?

dawn sail
simple patrol
#

Hi guys,
I have a Powershell problem, so I have a txt file which contains different values(coordinate,date,count of something) and I'd like to read it line by line and find the maximum "count of something" value, but for some reason the output is not correct. What could I miss? Here's what I wrote so far:

$max = 0
foreach ($data in $file) {
  $k1, $k2, $date, $t, $count = $data -split ' '

  if ($count -gt $max) 
  {
  $max = $count
  $maxk1 = $k1
  $maxk2 = $k2
  $maxdate = $date
  $maxt = $t
  }
  
 }
 
 Write-Host "$maxk1 $maxk2 $maxdate $maxt"```

and the file.txt's content has a pattern like this:
`77.9549770, 87.3876472 07.30 18:09 26`
hardy meteor
#

can someone tell me which are the best laptops to buy under 40k INR in india? for a student and a working professional

idle dew
#

does anybody now how i can safe my input on my website using (javascript)?

idle dew
idle dew
vale aspen
#

Can someone help!! I don't know how to write this in python.

#
  1. (HC) Offset encryption is a way of encrypting text so that each character of the text is cyclically moved by n places in the alphabet (English alphabet). Example of encrypting an individual letter for n = 2 (eg letter A => C, B => D, ..., Y => A, Z => B).
    Write a program that will enter the text (only capital letters of the English alphabet) and the number n, and print the text that we get by encrypting the input text by encrypting with an offset for the default n.
idle dew
vale aspen
#

thank you so much

idle dew
idle dew
# idle dew Yes

You can use function like this

function sanitize(string) {
  const map = {
      '&': '&amp;',
      '<': '&lt;',
      '>': '&gt;',
      '"': '&quot;',
      "'": '&#x27;',
      "/": '&#x2F;',
  };
  const reg = /[&<>"'/]/ig;
  return string.replace(reg, (match)=>(map[match]));
}
idle dew
knotty viper
#

Can anyone tell me how can I fix the thing next to the battery? It's supposed to be like in the 2nd pic

idle dew
#

im trying to screen record a vid using windows game bar
but im not able to record the device audio

any tips?

#

change this to all

idle dew
idle dew
fathom urchin
#

hiii anyone know how to code in c++???

fathom urchin
#

oo can you help me code something??

fathom urchin
idle dew
fathom urchin
copper agate
#

does any one knows where can I find classes/videos for programming python for data analysis for finance (like regression)

copper agate
glossy orbit
#

Anyone that is good with embedded systems, mainly 8051 assembly programming ?

kind ridge
#

hi. anyone with nodejs/express routers experience?

signal vector
#

Guys, i am a beginner and i want to learn how to code(python to be specific). Are there any good sites from where i can learn python for free?...there are a lot on the internet but they are just not good enough...thanks

worldly sluice
idle dew
idle dew
tulip anchor
#

Can anyone explain the meaning of this question? The programming language is JAVA

sleek wyvern
# tulip anchor

this is asking if the operation (in this case assignment) is done from left to right (left associative) or right to left (right associative).

tulip anchor
#

Oh, I understood

#

Thank you so much

sleek wyvern
#

no problem! good luck!!

paper crest
#
#

Python tutorial - Python for beginners - Go from Zero to Hero with Python (includes machine learning & web development project).
๐Ÿ”ฅ Want to master Python? Get my Python mastery course: http://bit.ly/35BLHHP
๐Ÿ‘ Subscribe for more Python tutorials like this: https://goo.gl/6PYaGF

๐Ÿ‘‰ Watch the new edition: https://youtu.be/kqtD5dpn9C8

๐Ÿ“• Get my FREE ...

โ–ถ Play video
signal vector
proper bolt
#

guys can some of you help me with c++

#

how to make cooding from this

#

i only get the ipo

ornate forge
#

Write python program to get data items from a list appearing odd number of times

#

loops and lists problem|
Can any one give me a ideea

coral iron
#

Can someone help with this by any chance? I generated the random integer like they asked, but I got no clue how to convert this single value back to a place on the board; how do i attach the values to a place/coordinate on the board?

#

I do have a snake_list which is a list with the coordinates of the snake (which is also used to calculate the number of available spots on the board)

lyric kestrel
#

do anyone know hot to fix this error ""

#

Access to fetch at 'https://w' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

compact whale
#

Which language should I start with c or c++? I am a complete beginner. I have tried the video for c by freecodecamp.org but they seem to explain very little of what is actually happening. Maybe a book on c might help. Please suggest a book for complete beginner and also verdict on starting with c or c++. Also a youtube channel which has detailed explanation.

mental flare
#

is there someone available to help me out in dms

zenith frigate
#

Anyone Familiar with SQL? I've been failing this exercise for the past 2 days, no hints are given, and my instructor still hasn't responded to my email.

#

I can't seem to use the YEAR and MONTH functions correctly

#

NVM I FIGURED IT OUT YAY

modest abyss
#

guys I need an idea
I gotta do a reaserch about 'unkown unkowns'
like I goota search abt someth that no one thought abt and then make a questionairre for my school students
so it has to be in the present and measurable
somone did abt the affect of sport on the academia
I wanna relate it computer science
any ideas?

idle dew
proper bolt
#

err I think some of them can help but need to pay first

haughty night
#

can i find someone who knows sql language

nova basin
sacred pier
honest nebula
#

Dose anyone know JS?

verbal wraith
#

Yes, but please lead with your questions

honest nebula
#

Im trying to make a avatar creator but im having trouble with updating the choice when picked

verbal wraith
#

@honest nebula so how are yu implementkng that functionality

honest nebula
lucid oyster
#

do you still need help for this?

honest nebula
#

Yeah

lucid oyster
#

what is your intention with the last line of code?

honest nebula
#

I want it to appear on when a user clicks on the button

quiet vault
#

Hi, a friend of mine turned on some LEDS with arduino to like make them "blink" but she only used one resistor for 2 LEDS, can u do that? Because i always used as many resistors as LEDS cause i was convinced i it could ruin the LEDS otherwise, can anyone confirm if u can do it or not? They do turn on and blink as we wanted but we are gonna be graded on that (and other stuff) so i want to make sure its not a mistake

#

pls ping me if u can answer that

idle dew
#

And the C programming language by Dennis Ritchie

idle dew
idle dew
#

That's all that will happen

rugged pasture
#

Anyone have php experience? trying to make my first functionable class

idle dew
#

hello I just started learning java, does anyone know why the output of my code is 98 when i equate int a to 'b' even tho int b = 0? thanks in advance

strange zodiac
#

you would use '' if a is a string datatype and you are assigning it a value (string a = 'b')

quiet vault
idle dew
strange zodiac
idle dew
strange zodiac
lucid oyster
#

since you assigned your variable to the character (not string) b before and it was still an integer you print out the value of the character b, it is 98 since it converts the character to ascii code

idle dew
idle dew
idle dew
quiet vault
idle dew
quiet vault
#

Alright thank you!

idle dew
#

Yeah, in the real world its common to see quite a few LED's with a single resistor. Though high performance/high voltage LED's typically have their own resistors.

quiet vault
#

Okkk thank u so muchh

idle dew
#

:)

quiet vault
#

Hey, so basically for this project in arduino uno i have a sensor of humidity and temperature connected to the arduino which gives me the information, i also have a fan with me and i would like to program the fan to once the temperature reaches a determined number the fan starts working, for instance if the sensor says the temperature is 21ยบC the fan turns on until the temperature is below 21ยบC, however i honestly dnt know how to connect the fan to arduino, idk if i even have everything i need, nor do i know how exactly i could code it, can anyone please help? i will send the code i have so far and a photo of the fan, it has 12V, thank you! (Also yes i ve tried to search it up and i will continue to but im not finding what i need).

quiet vault
#

EDIT: came to the conclusion i dnt think i have everything i need to make it work, thx anyway

kindred trail
#

any student or grad DevOps or blockchain engineers?

tribal ore
#

question about c# System.IO StreamReader

i need to get the string from a txt file, when it's in Main() it works, but when i do it in a function it just returns null, the function is correct(it works if i replace it with the same string in the program rather than making it read from the file) so idk what is messing with it, or how to fix it

tribal ore
#

wohooo i made it work by not using ReadLine() but rather ReadAllText() and then splitting it into lines

unborn topaz
#

Tech/cs/cis/mathematicians/mechatronics guys and gals can someone enlighten me which programming language used to build battlebots?

modest abyss
# nova basin AI?

well yea but I gotta ask ppl about this to make research it has to be specific

nova basin
#

Smth no one thought abt. ๐Ÿค” it could be any field or just education?

paper crow
#

If you wanted to adjust the speed that's another story because you may need to simulate a PWM, I don't know what is it supposed to do...

quiet vault
#

Ah i think i tried that i tried a lot of stuff but the thing is dnt i need something to power the fan? Cause the fan is 12V and i dnt think it was receiving enough volts from arduino

quiet vault
quiet vault
#

Yahh that is a issue right?

paper crow
#

does your arduino have any 12 output?

#

or just 5V

#

?

quiet vault
#

No sadly just 5v

paper crow
#

mmm

quiet vault
#

I did see it move once but barely moved cause it dsnt have enough volts

#

But i dnt have anything to give it volts

paper crow
#

yeah...

quiet vault
#

Well its ok i already send the report to the teacher and i wrote what i did but that i wasnt able to conclude this cause i didnt have all the materials necessary (all my material is borrowed and in college yah maybe i would have to buy it but in high school i think the teacher will understand). Thanks tho!

paper crow
#

you imagine that another led ON is the fan ON and viceversa

quiet vault
paper crow
#

because you cannot make the fan work, because no 12V supply... you can pretend a LED is your fan

quiet vault
#

Ah to put the light on if the temperature reaches a determined number yah i did not think of that :'(

quiet vault
#

I am currently a bit busy but i will try that later and if i can i will update the report and resend it, thank u for the idea!

paper crow
#

I used to do that back in uni when testing at home without the actuators, because those were at the lab

quiet vault
#

Yeah it was a good idea idk why i didnt think of that ahah thank you!

paper crow
red hare
#

@quiet vault รฉs portuguesa?

quiet vault
#

Talvez porquรช? Ahah

red hare
#

O cรณdigo que partilhaste tinha os comentรกrios em portuguรชs ๐Ÿ˜…

quiet vault
#

Verdade ahah

#

We should talk in english here tho

#

So whats up with 6 april? Ahah

red hare
#

๐Ÿ˜†

quiet vault
red hare
#

Yes

quiet vault
#

Cooll

#

U worked with arduino as well?

red hare
#

Yeah, I also own a raspberry pi for personal projects

quiet vault
#

Cool, this is only for a physics project tho

red hare
#

Well, if you ever need help programming related or math, you can add me and we can talk in portuguese, I'm usually online

quiet vault
#

Sure, thx

quiet vault
mental lark
#

Hey I'm kind of new to programming and I wish to execute my function in the console but it doesn't seems to work

#

I executed the file before trying (obviously) but it still says that my function has not be defined yet

thin hound
idle dew
mental lark
#

Oh my bad I didnt even see that, thanks guys

void halo
#

No problem good luck with your program

spice mulch
#

anyone knows how to use microsoft access?

crisp flame
#

im trying to get this code to run but it keeps returning this error despite me checking the brackets several times, does anyone see any issue? this is being written in arduino in c

#

theres more code above that i can send if necessary but i think its a bracket problem isolated to this function

indigo mantle
paper crest
#

I mean, you dropped an "}" before else, the error it's understandable enough

#

Look the code before the else if

#

The last else if

#

At the rotateRight you should put "}"

sour terrace
#

Hello
Do you know wether there is some good App/Website/program to track studying? Where you can log that you studied 2h of fluid dynamics and 1h of spanish etc and it then lets you visualize this data? I've been only able to find programs to plan study sessions, not to track them.

quiet vault
#

Or maybe try to see if any of these works better for u

red hare
#

plus you can perform computation on the data data you log, for statistic purposes or whatever

#

And you can format the data however you want

#

It's a very very powerful tool once you understand how it works

unkempt smelt
#

hiii could someone pleasee tell me what is wrong between the line number 4 and 32 ,i'm really confuse,sorry for the italian```c++
#include <cstdlib>
#include <iostream>
using namespace std;
void MediaPonderata(float v[], float p[], int n){
int t=0,j=0;
float media,l=0,d=0;
for(int i=0;i<n;i++){
t=t+p[i];
}
for(int i=0;i<n;i++){
l=v[i]*p[j];
d=d+l;
j++;
}
media=l/t;
cout<<"la media ponderata e"<<media<<endl;
}
int main()
{
int n;
cout<<"inserire la quantita di voti"<<endl;
cin>>n;
float vt[n],vp[n];
cout<<"inserire i voti"<<endl;
for(int i=0;i<n;i++){
cin>>vt[i];
}
cout<<"inserire il peso dil voto in ORDINE"<<endl;
for(int i=0;i<n;i++){
cin>>vp[i];
}
MediaPonderata(vt[n],vp[n],n);
}

swift socket
#

Can codechum still track activites even if the teacher is not in premium?

red hare
#

Also there is a few things wrong

#

Post the errors you are getting and pin me, tomorrow if no one helps you I'll reply, it's really late here currently

idle dew
idle dew
#

<@&717391911132069929>

shrewd canopy
#

i have a question with teams

#

what this shield in the upper left corner?

#

does it mean i can't use programs like obs to record my lesson?

unkempt smelt
red hare
# unkempt smelt

vt[n] gives you a float that is in position n in vt, the function is asking for a pointer to the start of a float array, just delete the [n] part

#

same for vp

unkempt smelt
red hare
#

just the name of the array

#

or if you insist on using []'s, do &vt[0]

unkempt smelt
#

you were really helpful

#

thanks for being patient with me, i really apreciate it

#

โค๏ธ

tacit kite
# shrewd canopy

Prob just means data between you and members travels end-to-end encrypted

red hare
#

You can still use OBS to record your session, it has nothing to do with what they are saying

#

They are only referring to how the data is passed around

#

OBS looks at your computer video memory, not network traffic

compact whale
#

I am a beginner at programming and want to start competitive. Therefore I am looking to start with C++ as it is regarded best for competitive. Now I might even get into embedded systems programming which requires c. Now I need to how much time is needed to learn C if I already know C++? And is the switch difficult?

pale mist
#

anyone know how to wrap code with github markdown?

dense jay
#

Hi! In C++
I'm trying to add words one by one to a string using cin. In a way that if I write a word that's already in the string, my program quits. But I'm completely lost and don't know how to do that. Could anyone help me?

lucid oyster
regal reef
#

Does anybody know what :@: means in Haskell?

#

I saw it in the defn. of a datatype:
| Termโ†‘ :@: Termโ†“

regal reef
#

nvm, apparently it means application in the paper I'm reading

#

Does anybody know if it is possible to have two datatypes reference each other in its definition in Agda? Apparently its possible in Haskell which Agda is based on. Something like:
type A :
_+_ : A -> B -> A
zero : A
type B :
_-_ : B -> A -> B
O : B

The type is nonsensical but gets the point across

regal reef
#

Lol, does anybody know if there is an equivalent to ref int in Agda or a number that stays in memory as the program is running. I would think not because Agda isn't a programming language but a proof checker, but I figured I'd ask in case somebody could confirm

wary needleBOT
#

If the message above contains a link to free nitro, it is most likely a phishing link. Please DON'T click on it to protect your privacy. You can notify the peeps by tagging them ( @peeps ) and they will take care of it as soon as they can.

tacit nymph
#

Is anyone here good with java?

#

Please ๐Ÿ˜ฆ

lucid oyster
#

what do you need?/what is your question? I might be able to help

red hare
#

there are so many ways to do this

#

the link from stackoverflow is good

tacit nymph
small solar
#

anyone has done google analytic course before??

dense jay
#

could someone explain to me the shannon fano algorithm? I never get the right number of questions for each letter

mental flare
#

`function numBox() {
var dropdown = document.getElementById("boxSize").elements["number"];
console.log ('working')

    for (var i = 1; i <= dropdown.value; i++){
        var newBox = document.createElement('div')
        var colour = document.getElementById('boxSize').elements['colour'].value
        var colGen = colorGen(colour)

        newBox.setAttribute('id', 'div')
        
        document.body.appendChild(newBox)

        console.log(colGen[0])

        var x = colGen[0]
        var y = colGen[1]
        var z = colGen[2]
        var generatedCol = 'rbg(' + x + ',' + y + ',' + z + ')'

        console.log (generatedCol)

        newBox.style.backgroundColor = generatedCol

    } 

}`
#

can someone tell me whats wrong with this code

#

im trying to get it to generate random colours and it all works in the console

#

but i cant get it to actually output the colours

red hare
mental flare
#

nvm solved it

coral iron
#

Can someone help me with this? ```python
class Matrix:
def init(self, matrix):
self.matrix = matrix
self.rows = len(matrix)
self.columns = len(matrix[0])

def __str__(self):
    pass
#

I tried

return "\n".join("  ".join(map(str, row)) for row in self.matrix)
#

But the instruction says to display two characters per number (and a space in between)

#

Matrix is a list of lists btw, so for example [[2, 4, 6],[8, 10, 12],[14,16,18]]

#

Has to be printed like this

dense jay
compact whale
#

can anyone suggest me a book for c++ beginner to advanced(with good STL explanation) main target:competitive

dense jay
#

int* v3 = &v1 ;
What does this mean ๐Ÿ˜ญ

#

I know about pointers and references

median hound
#

idk if this is the right channel to ask this but:

How can I iterate backwards in an array with a for() thing?

(C++ related)

#

like go backwards in an array

#

cause that is something that will be in my exam and I honestly have no clue.

errant bluff
#

for(int i=arr.length-1;i>=0;i--)

#

something like that?

median hound
#

yeah I was thinkign about that

#

hmm I still don't knwo tried that but it is not working

#

:(

errant bluff
#

what are you trying to do

median hound
#

make an array,

and go backwards in it with a for thing

and then cout it

errant bluff
#
int[] arr = new int[]{1,2,3,4,5,6,7};

for(int i=arr.length-1;i>=0;i--){
  cout<< arr[i] << \n;
}

#

im pretty sure this is it

median hound
#

:o

#

lemme try

#

nope still doesn't work ;_;

errant bluff
#

do ` three times follow by cpp then paste ur code and end with the three ticks

#

or pastebin

median hound
#

well it says that it can't get the length of the array

errant bluff
#

do u have elements in the array?

median hound
#

i have it like this int arr[]{1,2,3,4,5,6,7};

#

and then in the for thing:

 cout << " text " << arr[i] << endl;
} ```
errant bluff
#

oh lol i think i used java syntax

#

try int x[] = {1,2,3};

median hound
#

still doesn't work

#

;_;

#

compiler error says: request for member 'length' in 'x', which is of non class type 'int [7]'

#

pain

errant bluff
#

yeah i googled u have to use sizeof

#

i was doing java syntax

median hound
#

hmm lemme build a working array going upwards first

#

i'll see what I can change then

errant bluff
#

try watching this

median hound
#

alright thank you!

#

omg I am stupid

#

I think

errant bluff
#

yeah np

turbid flower
#

Hello guyss i have an homework about code writing can someone help me with it ๐Ÿฅฒ

velvet summit
#

Can someone help me with this code?
I dont know why is_category_valid('bus', L) and is_category_valid('railway', L)return False
when i try is_category_valid('salary', L) is_category_valid('bonus', L), it return True

L=['expense', ['food', ['meal', 'snack', 'drink'], 'transportation', ['bus', 'railway']], 'income', ['salary', 'bonus']]

def is_category_valid(category, categories):
    if category not in categories:
        for v in categories:
            if type(v)==list:
                p=is_category_valid(category, v)
                if p == True:
                    return True
                if p != False:
                    return False
    else:
        return True

print(is_category_valid('bus', L))```
median hound
# median hound omg I am stupid

i found the answer to that one:

size_t size_arr = sizeof(arr) / sizeof(int);

for (size_t i = size_arr - 1; i > 0; i--) {
cout << "Array: " << arr[i] << '\n';
}

#

only problem left is: how do I do that when i = 0 and it should count from 7 downwards?

#

oh well don't care and fixed anotehr smol issue with that code lol

idle dew
wary needleBOT
#

If the message above contains a link to free nitro, it is most likely a phishing link. Please DON'T click on it to protect your privacy. You can notify the peeps by tagging them ( @peeps ) and they will take care of it as soon as they can. Please don't ping them if someone else already did in the chat thank you.

velvet summit
daring ocean
#

<@&717391911132069929>

floral anchor
#

does someone understand how to use CAD?

polar ferry
daring ocean
#

wait user banned already?

polar ferry
compact bay
#

guys can someone teach me how to install a sql map

dense jay
#

do you guys know how I can make my program stop in c++ ?
I use return(0) but it's not working T.T

quaint scarab
#

is there someone who wants to help me with a program? itโ€™s written in html/javascript/python/sql

errant bluff
#

return 0 is for int functions and the main function

hot anvil
#

any one wanna learn flutter

final bane
#

Amigos. anyone in cybersecurity field? pls

idle dew
#

guys my instagram acc have hacked and ig current acc mail is different different from my original mail and ฤฑdk what should ฤฑ do. i tried to get help but i couldn't. If you guys know this things please help me

tulip rover
#

hey guys, i hope i'm not bothering anyone but i'm thinking of taking a course that include a lot of game and web design

#

does anyone have advice on how to not fail? i'm usually afraid of coding and the like so if anyone had a similar experience to mine i could definitely use some advice

floral anchor
#

idk maybe take notes

floral anchor
#

who reacted with the laugh emoji

alpine steeple
# tulip rover does anyone have advice on how to not fail? i'm usually afraid of coding and the...

Taking notes is not the most effective way to learn coding. The best way to learn coding is to keep practicing and build up what you already know.
I was in your shoes once, my advice is donโ€™t procrastinate on your course, if youโ€™re a beginner, itโ€™s not an option. You would find yourself coding for 5 hours solving one easy question before you know it so always do your homework the day before. Donโ€™t be afraid to look up answers, the internet is your guide! Copying code is not bad, however no progress comes at the cost of copying, so try to understand the code as youโ€™re writing it, google what you donโ€™t know and donโ€™t copy paste everything down. I was afraid to code because I was comparing myself to other students but DONโ€™T. We all are on a different path. What matters here is our own progress. Work on yourself.

idle dew
#

yeah i made that mistake taking notes when i should have been just trying to code something even if it took me months to build my own wealth of knowledge

alpine steeple
#

Same, all my classes are online and my c++ prof gave us pdfs each week. I took down notes but didnโ€™t really write many codes either. The only thing I learned from that class are the terms/ function names and data structures hide

wheat vector
#

can someone explain to me why the second line is necessary
why would you need to assign everything to assign it to another variable
also, why do you need to put the math method in the array

floral anchor
#

that PS1 game

idle dew
floral anchor
dense jay
#

does anyone know how to check if a string is in uppercase in c++ ?

idle dew
#

like to check if all of it is uppercase?

#

like "HELLO" or "Hello"

dense jay
#

yes!

#

if all of it is uppercase

#

HELLO

idle dew
#

try using this

#

im not an expert at c++ so you'll have to forgive me if i give you bad advice, im still learning

dense jay
#

thank you i will check it out!!

tulip rover
#

i really appreciate thisss

tulip rover
dense jay
rotund crow
#

Hey

Please, create CRUD program in OOP (choose any comfortable for you programming language)

The topic of database: "types, markings and designations of paints and varnishes"
It should be at least 3 tables in database

Hope you can help

Thanks

stark meadow
#

Can someone help me with a python code real quick

idle dew
rotund crow
idle dew
#

Pick whatever you comfortable with

#

What database?

rotund crow
#

something like this

idle dew
#

Are you required to use a database though like MySQL or something?

rotund crow
#

yes

#

mysql

idle dew
#

Have you made your database?

#

Thats where you should start

rotund crow
#

yes

#

one moment

#

I also wrote some code

#

to select all from every table

#

but idk what to do next

#

(such as insert data, edit row, delete row)

#

Here i connected database:

#

Here I created new class, which extends connection class; and function that selects all from table "type":

#

Then I created view class (which i can call in future app):

rotund crow
#

just for one table

#

lfm_type

idle dew
#

Do you know SQL?

#

it will just be like function deleteType(id){ $sql = "DELETE FROM lfm_type WHERE type_id = " + id + ";"; }

#

for delete

#

it is all very similar

#

I don't write PHP so it may be wrong for function definition

rotund crow
#

honestly, im not very powerful in all this

#

Thank you)

visual citrus
#

can someone explain to me where I put the dots I mean how it works and what's the reason for it?

alpine steeple
#

True and false are Boolean statements

#

Itโ€™a not going to return anything if you didnโ€™t declare a statement.

wispy hamlet
# visual citrus can someone explain to me where I put the dots I mean how it works and what's th...

first_run = True means that we assign the boolean value True to a variable that we name first_run

The same goes for first_run = False -> we update the value of our previously-created variable first_run so that it now stores the boolean value False

if first_run: is just a Python syntax shortcut for if first_run == True:
They do exactly the same thing, but the first feels more natural because you could read it as "If it is the first run, do ..." (because that's what the variable first_run represents)

brisk scroll
#

somebody help me?

#

is it in Html

#

and IDK what am I doing wrong

strange zodiac
#

whats your problem?